diff --git a/generation_config.yaml b/generation_config.yaml index e420a2a345bf..7ff8389bbb88 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.50.0 -googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2 -libraries_bom_version: 26.50.0 +gapic_generator_version: 2.51.0 +googleapis_commitish: 7d0c6bee2517d77635beb2a1dd6d6e7d4d943512 +libraries_bom_version: 26.51.0 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 9d80422eaf01..7d0577b6d20a 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.54.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index e359981ba3e8..770d3a02c75d 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.54.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/README.md b/java-admanager/README.md index 020b0368085c..e07d5d50b953 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads ad-manager - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.12.0' +implementation 'com.google.api-ads:ad-manager:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.12.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.13.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 4083eda2f7ce..9a9b291328f6 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.42.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.43.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 73353d902912..e15e3f91cb6f 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.54.0 + 3.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.54.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java index 8b555b35372c..5d263762c231 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java @@ -159,6 +159,25 @@ * * * + *

UpdateEndpointLongRunning + *

Updates an Endpoint with a long running operation. + * + *

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

+ * + *

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.

+ * + * + * + * *

DeleteEndpoint *

Deletes an Endpoint. * @@ -1047,6 +1066,124 @@ public final UnaryCallable updateEndpointCallab return stub.updateEndpointCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   Endpoint endpoint = Endpoint.newBuilder().build();
+   *   Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get();
+   * }
+   * }
+ * + * @param endpoint Required. The Endpoint which replaces the resource on the server. Currently we + * only support updating the `client_connection_config` field, all the other fields' update + * will be blocked. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateEndpointLongRunningAsync(Endpoint endpoint) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder().setEndpoint(endpoint).build(); + return updateEndpointLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest request) { + return updateEndpointLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Endpoint response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + return stub.updateEndpointLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Endpoint with a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   UpdateEndpointLongRunningRequest request =
+   *       UpdateEndpointLongRunningRequest.newBuilder()
+   *           .setEndpoint(Endpoint.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateEndpointLongRunningCallable() { + return stub.updateEndpointLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an Endpoint. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java index c48e8cc1a56e..bc1746c6de4d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java @@ -152,6 +152,20 @@ public UnaryCallSettings updateEndpointSettings return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointSettings(); } + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings + updateEndpointLongRunningSettings() { + return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return ((EndpointServiceStubSettings) getStubSettings()) + .updateEndpointLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteEndpoint. */ public UnaryCallSettings deleteEndpointSettings() { return ((EndpointServiceStubSettings) getStubSettings()).deleteEndpointSettings(); @@ -353,6 +367,19 @@ public UnaryCallSettings.Builder updateEndpoint return getStubSettingsBuilder().updateEndpointSettings(); } + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings.Builder + updateEndpointLongRunningSettings() { + return getStubSettingsBuilder().updateEndpointLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return getStubSettingsBuilder().updateEndpointLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteEndpoint. */ public UnaryCallSettings.Builder deleteEndpointSettings() { return getStubSettingsBuilder().deleteEndpointSettings(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java new file mode 100644 index 000000000000..6fe0b57886f2 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java @@ -0,0 +1,2555 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +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.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.stub.VertexRagDataServiceStub; +import com.google.cloud.aiplatform.v1.stub.VertexRagDataServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service for managing user data for RAG. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+ *     VertexRagDataServiceClient.create()) {
+ *   RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+ *   RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name);
+ * }
+ * }
+ * + *

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

CreateRagCorpus

Creates a RagCorpus.

+ *

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

+ *
    + *
  • createRagCorpusAsync(CreateRagCorpusRequest request) + *

+ *

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

+ *
    + *
  • createRagCorpusAsync(LocationName parent, RagCorpus ragCorpus) + *

  • createRagCorpusAsync(String parent, RagCorpus ragCorpus) + *

+ *

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

+ *
    + *
  • createRagCorpusOperationCallable() + *

  • createRagCorpusCallable() + *

+ *

UpdateRagCorpus

Updates a RagCorpus.

+ *

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

+ *
    + *
  • updateRagCorpusAsync(UpdateRagCorpusRequest request) + *

+ *

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

+ *
    + *
  • updateRagCorpusAsync(RagCorpus ragCorpus) + *

+ *

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

+ *
    + *
  • updateRagCorpusOperationCallable() + *

  • updateRagCorpusCallable() + *

+ *

GetRagCorpus

Gets a RagCorpus.

+ *

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

+ *
    + *
  • getRagCorpus(GetRagCorpusRequest request) + *

+ *

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

+ *
    + *
  • getRagCorpus(RagCorpusName name) + *

  • getRagCorpus(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.

+ *
    + *
  • getRagCorpusCallable() + *

+ *

ListRagCorpora

Lists RagCorpora in a Location.

+ *

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

+ *
    + *
  • listRagCorpora(ListRagCorporaRequest request) + *

+ *

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

+ *
    + *
  • listRagCorpora(LocationName parent) + *

  • listRagCorpora(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.

+ *
    + *
  • listRagCorporaPagedCallable() + *

  • listRagCorporaCallable() + *

+ *

DeleteRagCorpus

Deletes a RagCorpus.

+ *

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

+ *
    + *
  • deleteRagCorpusAsync(DeleteRagCorpusRequest request) + *

+ *

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

+ *
    + *
  • deleteRagCorpusAsync(RagCorpusName name) + *

  • deleteRagCorpusAsync(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.

+ *
    + *
  • deleteRagCorpusOperationCallable() + *

  • deleteRagCorpusCallable() + *

+ *

UploadRagFile

Upload a file into a RagCorpus.

+ *

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

+ *
    + *
  • uploadRagFile(UploadRagFileRequest request) + *

+ *

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

+ *
    + *
  • uploadRagFile(RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) + *

  • uploadRagFile(String parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) + *

+ *

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

+ *
    + *
  • uploadRagFileCallable() + *

+ *

ImportRagFiles

Import files from Google Cloud Storage or Google Drive into a RagCorpus.

+ *

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

+ *
    + *
  • importRagFilesAsync(ImportRagFilesRequest request) + *

+ *

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

+ *
    + *
  • importRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) + *

  • importRagFilesAsync(String parent, ImportRagFilesConfig importRagFilesConfig) + *

+ *

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

+ *
    + *
  • importRagFilesOperationCallable() + *

  • importRagFilesCallable() + *

+ *

GetRagFile

Gets a RagFile.

+ *

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

+ *
    + *
  • getRagFile(GetRagFileRequest request) + *

+ *

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

+ *
    + *
  • getRagFile(RagFileName name) + *

  • getRagFile(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.

+ *
    + *
  • getRagFileCallable() + *

+ *

ListRagFiles

Lists RagFiles in a RagCorpus.

+ *

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

+ *
    + *
  • listRagFiles(ListRagFilesRequest request) + *

+ *

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

+ *
    + *
  • listRagFiles(RagCorpusName parent) + *

  • listRagFiles(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.

+ *
    + *
  • listRagFilesPagedCallable() + *

  • listRagFilesCallable() + *

+ *

DeleteRagFile

Deletes a RagFile.

+ *

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

+ *
    + *
  • deleteRagFileAsync(DeleteRagFileRequest request) + *

+ *

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

+ *
    + *
  • deleteRagFileAsync(RagFileName name) + *

  • deleteRagFileAsync(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.

+ *
    + *
  • deleteRagFileOperationCallable() + *

  • deleteRagFileCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 VertexRagDataServiceSettings + * 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
+ * VertexRagDataServiceSettings vertexRagDataServiceSettings =
+ *     VertexRagDataServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VertexRagDataServiceClient vertexRagDataServiceClient =
+ *     VertexRagDataServiceClient.create(vertexRagDataServiceSettings);
+ * }
+ * + *

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
+ * VertexRagDataServiceSettings vertexRagDataServiceSettings =
+ *     VertexRagDataServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VertexRagDataServiceClient vertexRagDataServiceClient =
+ *     VertexRagDataServiceClient.create(vertexRagDataServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class VertexRagDataServiceClient implements BackgroundResource { + private final VertexRagDataServiceSettings settings; + private final VertexRagDataServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of VertexRagDataServiceClient with default settings. */ + public static final VertexRagDataServiceClient create() throws IOException { + return create(VertexRagDataServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VertexRagDataServiceClient, 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 VertexRagDataServiceClient create(VertexRagDataServiceSettings settings) + throws IOException { + return new VertexRagDataServiceClient(settings); + } + + /** + * Constructs an instance of VertexRagDataServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(VertexRagDataServiceSettings). + */ + public static final VertexRagDataServiceClient create(VertexRagDataServiceStub stub) { + return new VertexRagDataServiceClient(stub); + } + + /** + * Constructs an instance of VertexRagDataServiceClient, 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 VertexRagDataServiceClient(VertexRagDataServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VertexRagDataServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected VertexRagDataServiceClient(VertexRagDataServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final VertexRagDataServiceSettings getSettings() { + return settings; + } + + public VertexRagDataServiceStub 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 OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   RagCorpus ragCorpus = RagCorpus.newBuilder().build();
+   *   RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(parent, ragCorpus).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the RagCorpus in. Format: + * `projects/{project}/locations/{location}` + * @param ragCorpus Required. The RagCorpus to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createRagCorpusAsync( + LocationName parent, RagCorpus ragCorpus) { + CreateRagCorpusRequest request = + CreateRagCorpusRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRagCorpus(ragCorpus) + .build(); + return createRagCorpusAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   RagCorpus ragCorpus = RagCorpus.newBuilder().build();
+   *   RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(parent, ragCorpus).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the RagCorpus in. Format: + * `projects/{project}/locations/{location}` + * @param ragCorpus Required. The RagCorpus to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createRagCorpusAsync( + String parent, RagCorpus ragCorpus) { + CreateRagCorpusRequest request = + CreateRagCorpusRequest.newBuilder().setParent(parent).setRagCorpus(ragCorpus).build(); + return createRagCorpusAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   CreateRagCorpusRequest request =
+   *       CreateRagCorpusRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRagCorpus(RagCorpus.newBuilder().build())
+   *           .build();
+   *   RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(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 createRagCorpusAsync( + CreateRagCorpusRequest request) { + return createRagCorpusOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   CreateRagCorpusRequest request =
+   *       CreateRagCorpusRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRagCorpus(RagCorpus.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       vertexRagDataServiceClient.createRagCorpusOperationCallable().futureCall(request);
+   *   // Do something.
+   *   RagCorpus response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationCallable() { + return stub.createRagCorpusOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   CreateRagCorpusRequest request =
+   *       CreateRagCorpusRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRagCorpus(RagCorpus.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.createRagCorpusCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createRagCorpusCallable() { + return stub.createRagCorpusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpus ragCorpus = RagCorpus.newBuilder().build();
+   *   RagCorpus response = vertexRagDataServiceClient.updateRagCorpusAsync(ragCorpus).get();
+   * }
+   * }
+ * + * @param ragCorpus Required. The RagCorpus which replaces the resource on the server. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateRagCorpusAsync( + RagCorpus ragCorpus) { + UpdateRagCorpusRequest request = + UpdateRagCorpusRequest.newBuilder().setRagCorpus(ragCorpus).build(); + return updateRagCorpusAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   UpdateRagCorpusRequest request =
+   *       UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build();
+   *   RagCorpus response = vertexRagDataServiceClient.updateRagCorpusAsync(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 updateRagCorpusAsync( + UpdateRagCorpusRequest request) { + return updateRagCorpusOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   UpdateRagCorpusRequest request =
+   *       UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build();
+   *   OperationFuture future =
+   *       vertexRagDataServiceClient.updateRagCorpusOperationCallable().futureCall(request);
+   *   // Do something.
+   *   RagCorpus response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationCallable() { + return stub.updateRagCorpusOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   UpdateRagCorpusRequest request =
+   *       UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.updateRagCorpusCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateRagCorpusCallable() { + return stub.updateRagCorpusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+   *   RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the RagCorpus resource. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RagCorpus getRagCorpus(RagCorpusName name) { + GetRagCorpusRequest request = + GetRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRagCorpus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString();
+   *   RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the RagCorpus resource. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RagCorpus getRagCorpus(String name) { + GetRagCorpusRequest request = GetRagCorpusRequest.newBuilder().setName(name).build(); + return getRagCorpus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetRagCorpusRequest request =
+   *       GetRagCorpusRequest.newBuilder()
+   *           .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .build();
+   *   RagCorpus response = vertexRagDataServiceClient.getRagCorpus(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 RagCorpus getRagCorpus(GetRagCorpusRequest request) { + return getRagCorpusCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetRagCorpusRequest request =
+   *       GetRagCorpusRequest.newBuilder()
+   *           .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.getRagCorpusCallable().futureCall(request);
+   *   // Do something.
+   *   RagCorpus response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRagCorpusCallable() { + return stub.getRagCorpusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagCorpora in a Location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to list the RagCorpora. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRagCorporaPagedResponse listRagCorpora(LocationName parent) { + ListRagCorporaRequest request = + ListRagCorporaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRagCorpora(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagCorpora in a Location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to list the RagCorpora. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRagCorporaPagedResponse listRagCorpora(String parent) { + ListRagCorporaRequest request = ListRagCorporaRequest.newBuilder().setParent(parent).build(); + return listRagCorpora(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagCorpora in a Location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagCorporaRequest request =
+   *       ListRagCorporaRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(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 ListRagCorporaPagedResponse listRagCorpora(ListRagCorporaRequest request) { + return listRagCorporaPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagCorpora in a Location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagCorporaRequest request =
+   *       ListRagCorporaRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.listRagCorporaPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (RagCorpus element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRagCorporaPagedCallable() { + return stub.listRagCorporaPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagCorpora in a Location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagCorporaRequest request =
+   *       ListRagCorporaRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListRagCorporaResponse response =
+   *         vertexRagDataServiceClient.listRagCorporaCallable().call(request);
+   *     for (RagCorpus element : response.getRagCorporaList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRagCorporaCallable() { + return stub.listRagCorporaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+   *   vertexRagDataServiceClient.deleteRagCorpusAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the RagCorpus resource to be deleted. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRagCorpusAsync( + RagCorpusName name) { + DeleteRagCorpusRequest request = + DeleteRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteRagCorpusAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString();
+   *   vertexRagDataServiceClient.deleteRagCorpusAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the RagCorpus resource to be deleted. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRagCorpusAsync(String name) { + DeleteRagCorpusRequest request = DeleteRagCorpusRequest.newBuilder().setName(name).build(); + return deleteRagCorpusAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagCorpusRequest request =
+   *       DeleteRagCorpusRequest.newBuilder()
+   *           .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   vertexRagDataServiceClient.deleteRagCorpusAsync(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 deleteRagCorpusAsync( + DeleteRagCorpusRequest request) { + return deleteRagCorpusOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagCorpusRequest request =
+   *       DeleteRagCorpusRequest.newBuilder()
+   *           .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteRagCorpusOperationCallable() { + return stub.deleteRagCorpusOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagCorpusRequest request =
+   *       DeleteRagCorpusRequest.newBuilder()
+   *           .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRagCorpusCallable() { + return stub.deleteRagCorpusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upload a file into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+   *   RagFile ragFile = RagFile.newBuilder().build();
+   *   UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build();
+   *   UploadRagFileResponse response =
+   *       vertexRagDataServiceClient.uploadRagFile(parent, ragFile, uploadRagFileConfig);
+   * }
+   * }
+ * + * @param parent Required. The name of the RagCorpus resource into which to upload the file. + * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @param ragFile Required. The RagFile to upload. + * @param uploadRagFileConfig Required. The config for the RagFiles to be uploaded into the + * RagCorpus. + * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UploadRagFileResponse uploadRagFile( + RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { + UploadRagFileRequest request = + UploadRagFileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRagFile(ragFile) + .setUploadRagFileConfig(uploadRagFileConfig) + .build(); + return uploadRagFile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upload a file into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString();
+   *   RagFile ragFile = RagFile.newBuilder().build();
+   *   UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build();
+   *   UploadRagFileResponse response =
+   *       vertexRagDataServiceClient.uploadRagFile(parent, ragFile, uploadRagFileConfig);
+   * }
+   * }
+ * + * @param parent Required. The name of the RagCorpus resource into which to upload the file. + * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @param ragFile Required. The RagFile to upload. + * @param uploadRagFileConfig Required. The config for the RagFiles to be uploaded into the + * RagCorpus. + * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UploadRagFileResponse uploadRagFile( + String parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { + UploadRagFileRequest request = + UploadRagFileRequest.newBuilder() + .setParent(parent) + .setRagFile(ragFile) + .setUploadRagFileConfig(uploadRagFileConfig) + .build(); + return uploadRagFile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upload a file into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   UploadRagFileRequest request =
+   *       UploadRagFileRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setRagFile(RagFile.newBuilder().build())
+   *           .setUploadRagFileConfig(UploadRagFileConfig.newBuilder().build())
+   *           .build();
+   *   UploadRagFileResponse response = vertexRagDataServiceClient.uploadRagFile(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 UploadRagFileResponse uploadRagFile(UploadRagFileRequest request) { + return uploadRagFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upload a file into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   UploadRagFileRequest request =
+   *       UploadRagFileRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setRagFile(RagFile.newBuilder().build())
+   *           .setUploadRagFileConfig(UploadRagFileConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.uploadRagFileCallable().futureCall(request);
+   *   // Do something.
+   *   UploadRagFileResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable uploadRagFileCallable() { + return stub.uploadRagFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Import files from Google Cloud Storage or Google Drive into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+   *   ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build();
+   *   ImportRagFilesResponse response =
+   *       vertexRagDataServiceClient.importRagFilesAsync(parent, importRagFilesConfig).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the RagCorpus resource into which to import files. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @param importRagFilesConfig Required. The config for the RagFiles to be synced and imported + * into the RagCorpus. + * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) { + ImportRagFilesRequest request = + ImportRagFilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setImportRagFilesConfig(importRagFilesConfig) + .build(); + return importRagFilesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Import files from Google Cloud Storage or Google Drive into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString();
+   *   ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build();
+   *   ImportRagFilesResponse response =
+   *       vertexRagDataServiceClient.importRagFilesAsync(parent, importRagFilesConfig).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the RagCorpus resource into which to import files. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @param importRagFilesConfig Required. The config for the RagFiles to be synced and imported + * into the RagCorpus. + * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + importRagFilesAsync(String parent, ImportRagFilesConfig importRagFilesConfig) { + ImportRagFilesRequest request = + ImportRagFilesRequest.newBuilder() + .setParent(parent) + .setImportRagFilesConfig(importRagFilesConfig) + .build(); + return importRagFilesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Import files from Google Cloud Storage or Google Drive into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ImportRagFilesRequest request =
+   *       ImportRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build())
+   *           .build();
+   *   ImportRagFilesResponse response =
+   *       vertexRagDataServiceClient.importRagFilesAsync(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 + importRagFilesAsync(ImportRagFilesRequest request) { + return importRagFilesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Import files from Google Cloud Storage or Google Drive into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ImportRagFilesRequest request =
+   *       ImportRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       vertexRagDataServiceClient.importRagFilesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportRagFilesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationCallable() { + return stub.importRagFilesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Import files from Google Cloud Storage or Google Drive into a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ImportRagFilesRequest request =
+   *       ImportRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.importRagFilesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importRagFilesCallable() { + return stub.importRagFilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
+   *   RagFile response = vertexRagDataServiceClient.getRagFile(name);
+   * }
+   * }
+ * + * @param name Required. The name of the RagFile resource. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RagFile getRagFile(RagFileName name) { + GetRagFileRequest request = + GetRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRagFile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String name =
+   *       RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString();
+   *   RagFile response = vertexRagDataServiceClient.getRagFile(name);
+   * }
+   * }
+ * + * @param name Required. The name of the RagFile resource. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RagFile getRagFile(String name) { + GetRagFileRequest request = GetRagFileRequest.newBuilder().setName(name).build(); + return getRagFile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetRagFileRequest request =
+   *       GetRagFileRequest.newBuilder()
+   *           .setName(
+   *               RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]")
+   *                   .toString())
+   *           .build();
+   *   RagFile response = vertexRagDataServiceClient.getRagFile(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 RagFile getRagFile(GetRagFileRequest request) { + return getRagFileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetRagFileRequest request =
+   *       GetRagFileRequest.newBuilder()
+   *           .setName(
+   *               RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.getRagFileCallable().futureCall(request);
+   *   // Do something.
+   *   RagFile response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRagFileCallable() { + return stub.getRagFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagFiles in a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+   *   for (RagFile element : vertexRagDataServiceClient.listRagFiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the RagCorpus from which to list the RagFiles. + * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRagFilesPagedResponse listRagFiles(RagCorpusName parent) { + ListRagFilesRequest request = + ListRagFilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRagFiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagFiles in a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString();
+   *   for (RagFile element : vertexRagDataServiceClient.listRagFiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the RagCorpus from which to list the RagFiles. + * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRagFilesPagedResponse listRagFiles(String parent) { + ListRagFilesRequest request = ListRagFilesRequest.newBuilder().setParent(parent).build(); + return listRagFiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagFiles in a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagFilesRequest request =
+   *       ListRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (RagFile element : vertexRagDataServiceClient.listRagFiles(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 ListRagFilesPagedResponse listRagFiles(ListRagFilesRequest request) { + return listRagFilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagFiles in a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagFilesRequest request =
+   *       ListRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.listRagFilesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (RagFile element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRagFilesPagedCallable() { + return stub.listRagFilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists RagFiles in a RagCorpus. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListRagFilesRequest request =
+   *       ListRagFilesRequest.newBuilder()
+   *           .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListRagFilesResponse response =
+   *         vertexRagDataServiceClient.listRagFilesCallable().call(request);
+   *     for (RagFile element : response.getRagFilesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRagFilesCallable() { + return stub.listRagFilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]");
+   *   vertexRagDataServiceClient.deleteRagFileAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the RagFile resource to be deleted. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRagFileAsync( + RagFileName name) { + DeleteRagFileRequest request = + DeleteRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteRagFileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   String name =
+   *       RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString();
+   *   vertexRagDataServiceClient.deleteRagFileAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the RagFile resource to be deleted. Format: + * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRagFileAsync(String name) { + DeleteRagFileRequest request = DeleteRagFileRequest.newBuilder().setName(name).build(); + return deleteRagFileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagFileRequest request =
+   *       DeleteRagFileRequest.newBuilder()
+   *           .setName(
+   *               RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]")
+   *                   .toString())
+   *           .build();
+   *   vertexRagDataServiceClient.deleteRagFileAsync(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 deleteRagFileAsync( + DeleteRagFileRequest request) { + return deleteRagFileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagFileRequest request =
+   *       DeleteRagFileRequest.newBuilder()
+   *           .setName(
+   *               RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       vertexRagDataServiceClient.deleteRagFileOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteRagFileOperationCallable() { + return stub.deleteRagFileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a RagFile. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   DeleteRagFileRequest request =
+   *       DeleteRagFileRequest.newBuilder()
+   *           .setName(
+   *               RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.deleteRagFileCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRagFileCallable() { + return stub.deleteRagFileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vertexRagDataServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         vertexRagDataServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vertexRagDataServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vertexRagDataServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vertexRagDataServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vertexRagDataServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+   *     VertexRagDataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagDataServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListRagCorporaPagedResponse + extends AbstractPagedListResponse< + ListRagCorporaRequest, + ListRagCorporaResponse, + RagCorpus, + ListRagCorporaPage, + ListRagCorporaFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRagCorporaPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRagCorporaPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRagCorporaPagedResponse(ListRagCorporaPage page) { + super(page, ListRagCorporaFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRagCorporaPage + extends AbstractPage< + ListRagCorporaRequest, ListRagCorporaResponse, RagCorpus, ListRagCorporaPage> { + + private ListRagCorporaPage( + PageContext context, + ListRagCorporaResponse response) { + super(context, response); + } + + private static ListRagCorporaPage createEmptyPage() { + return new ListRagCorporaPage(null, null); + } + + @Override + protected ListRagCorporaPage createPage( + PageContext context, + ListRagCorporaResponse response) { + return new ListRagCorporaPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRagCorporaFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRagCorporaRequest, + ListRagCorporaResponse, + RagCorpus, + ListRagCorporaPage, + ListRagCorporaFixedSizeCollection> { + + private ListRagCorporaFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRagCorporaFixedSizeCollection createEmptyCollection() { + return new ListRagCorporaFixedSizeCollection(null, 0); + } + + @Override + protected ListRagCorporaFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRagCorporaFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListRagFilesPagedResponse + extends AbstractPagedListResponse< + ListRagFilesRequest, + ListRagFilesResponse, + RagFile, + ListRagFilesPage, + ListRagFilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRagFilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRagFilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRagFilesPagedResponse(ListRagFilesPage page) { + super(page, ListRagFilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRagFilesPage + extends AbstractPage { + + private ListRagFilesPage( + PageContext context, + ListRagFilesResponse response) { + super(context, response); + } + + private static ListRagFilesPage createEmptyPage() { + return new ListRagFilesPage(null, null); + } + + @Override + protected ListRagFilesPage createPage( + PageContext context, + ListRagFilesResponse response) { + return new ListRagFilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRagFilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRagFilesRequest, + ListRagFilesResponse, + RagFile, + ListRagFilesPage, + ListRagFilesFixedSizeCollection> { + + private ListRagFilesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRagFilesFixedSizeCollection createEmptyCollection() { + return new ListRagFilesFixedSizeCollection(null, 0); + } + + @Override + protected ListRagFilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRagFilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java new file mode 100644 index 000000000000..2598c418351b --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java @@ -0,0 +1,462 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagCorporaPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagFilesPagedResponse; + +import com.google.api.core.ApiFunction; +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.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.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1.stub.VertexRagDataServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +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 VertexRagDataServiceClient}. + * + *

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

    + *
  • The default service address (aiplatform.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getRagCorpus: + * + *

{@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
+ * VertexRagDataServiceSettings.Builder vertexRagDataServiceSettingsBuilder =
+ *     VertexRagDataServiceSettings.newBuilder();
+ * vertexRagDataServiceSettingsBuilder
+ *     .getRagCorpusSettings()
+ *     .setRetrySettings(
+ *         vertexRagDataServiceSettingsBuilder
+ *             .getRagCorpusSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * VertexRagDataServiceSettings vertexRagDataServiceSettings =
+ *     vertexRagDataServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createRagCorpus: + * + *

{@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
+ * VertexRagDataServiceSettings.Builder vertexRagDataServiceSettingsBuilder =
+ *     VertexRagDataServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * vertexRagDataServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VertexRagDataServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createRagCorpus. */ + public UnaryCallSettings createRagCorpusSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).createRagCorpusSettings(); + } + + /** Returns the object with the settings used for calls to createRagCorpus. */ + public OperationCallSettings + createRagCorpusOperationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()) + .createRagCorpusOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateRagCorpus. */ + public UnaryCallSettings updateRagCorpusSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).updateRagCorpusSettings(); + } + + /** Returns the object with the settings used for calls to updateRagCorpus. */ + public OperationCallSettings + updateRagCorpusOperationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()) + .updateRagCorpusOperationSettings(); + } + + /** Returns the object with the settings used for calls to getRagCorpus. */ + public UnaryCallSettings getRagCorpusSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).getRagCorpusSettings(); + } + + /** Returns the object with the settings used for calls to listRagCorpora. */ + public PagedCallSettings< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).listRagCorporaSettings(); + } + + /** Returns the object with the settings used for calls to deleteRagCorpus. */ + public UnaryCallSettings deleteRagCorpusSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).deleteRagCorpusSettings(); + } + + /** Returns the object with the settings used for calls to deleteRagCorpus. */ + public OperationCallSettings + deleteRagCorpusOperationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()) + .deleteRagCorpusOperationSettings(); + } + + /** Returns the object with the settings used for calls to uploadRagFile. */ + public UnaryCallSettings uploadRagFileSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).uploadRagFileSettings(); + } + + /** Returns the object with the settings used for calls to importRagFiles. */ + public UnaryCallSettings importRagFilesSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).importRagFilesSettings(); + } + + /** Returns the object with the settings used for calls to importRagFiles. */ + public OperationCallSettings< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).importRagFilesOperationSettings(); + } + + /** Returns the object with the settings used for calls to getRagFile. */ + public UnaryCallSettings getRagFileSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).getRagFileSettings(); + } + + /** Returns the object with the settings used for calls to listRagFiles. */ + public PagedCallSettings + listRagFilesSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).listRagFilesSettings(); + } + + /** Returns the object with the settings used for calls to deleteRagFile. */ + public UnaryCallSettings deleteRagFileSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).deleteRagFileSettings(); + } + + /** Returns the object with the settings used for calls to deleteRagFile. */ + public OperationCallSettings + deleteRagFileOperationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).deleteRagFileOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((VertexRagDataServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final VertexRagDataServiceSettings create(VertexRagDataServiceStubSettings stub) + throws IOException { + return new VertexRagDataServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VertexRagDataServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VertexRagDataServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VertexRagDataServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VertexRagDataServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VertexRagDataServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VertexRagDataServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VertexRagDataServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 VertexRagDataServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VertexRagDataServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(VertexRagDataServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(VertexRagDataServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VertexRagDataServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(VertexRagDataServiceStubSettings.newBuilder()); + } + + public VertexRagDataServiceStubSettings.Builder getStubSettingsBuilder() { + return ((VertexRagDataServiceStubSettings.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 createRagCorpus. */ + public UnaryCallSettings.Builder createRagCorpusSettings() { + return getStubSettingsBuilder().createRagCorpusSettings(); + } + + /** Returns the builder for the settings used for calls to createRagCorpus. */ + public OperationCallSettings.Builder< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationSettings() { + return getStubSettingsBuilder().createRagCorpusOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateRagCorpus. */ + public UnaryCallSettings.Builder updateRagCorpusSettings() { + return getStubSettingsBuilder().updateRagCorpusSettings(); + } + + /** Returns the builder for the settings used for calls to updateRagCorpus. */ + public OperationCallSettings.Builder< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationSettings() { + return getStubSettingsBuilder().updateRagCorpusOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getRagCorpus. */ + public UnaryCallSettings.Builder getRagCorpusSettings() { + return getStubSettingsBuilder().getRagCorpusSettings(); + } + + /** Returns the builder for the settings used for calls to listRagCorpora. */ + public PagedCallSettings.Builder< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings() { + return getStubSettingsBuilder().listRagCorporaSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRagCorpus. */ + public UnaryCallSettings.Builder deleteRagCorpusSettings() { + return getStubSettingsBuilder().deleteRagCorpusSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRagCorpus. */ + public OperationCallSettings.Builder + deleteRagCorpusOperationSettings() { + return getStubSettingsBuilder().deleteRagCorpusOperationSettings(); + } + + /** Returns the builder for the settings used for calls to uploadRagFile. */ + public UnaryCallSettings.Builder + uploadRagFileSettings() { + return getStubSettingsBuilder().uploadRagFileSettings(); + } + + /** Returns the builder for the settings used for calls to importRagFiles. */ + public UnaryCallSettings.Builder importRagFilesSettings() { + return getStubSettingsBuilder().importRagFilesSettings(); + } + + /** Returns the builder for the settings used for calls to importRagFiles. */ + public OperationCallSettings.Builder< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings() { + return getStubSettingsBuilder().importRagFilesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getRagFile. */ + public UnaryCallSettings.Builder getRagFileSettings() { + return getStubSettingsBuilder().getRagFileSettings(); + } + + /** Returns the builder for the settings used for calls to listRagFiles. */ + public PagedCallSettings.Builder< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse> + listRagFilesSettings() { + return getStubSettingsBuilder().listRagFilesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRagFile. */ + public UnaryCallSettings.Builder deleteRagFileSettings() { + return getStubSettingsBuilder().deleteRagFileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRagFile. */ + public OperationCallSettings.Builder + deleteRagFileOperationSettings() { + return getStubSettingsBuilder().deleteRagFileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public VertexRagDataServiceSettings build() throws IOException { + return new VertexRagDataServiceSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java new file mode 100644 index 000000000000..38e91c3d6328 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +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.aiplatform.v1.stub.VertexRagServiceStub; +import com.google.cloud.aiplatform.v1.stub.VertexRagServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service for retrieving relevant contexts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   RagQuery query = RagQuery.newBuilder().build();
+ *   RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query);
+ * }
+ * }
+ * + *

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

RetrieveContexts

Retrieves relevant contexts for a query.

+ *

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

+ *
    + *
  • retrieveContexts(RetrieveContextsRequest request) + *

+ *

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

+ *
    + *
  • retrieveContexts(LocationName parent, RagQuery query) + *

  • retrieveContexts(String parent, RagQuery query) + *

+ *

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

+ *
    + *
  • retrieveContextsCallable() + *

+ *

AugmentPrompt

Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.

+ *

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

+ *
    + *
  • augmentPrompt(AugmentPromptRequest request) + *

+ *

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

+ *
    + *
  • augmentPrompt(LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) + *

  • augmentPrompt(String parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) + *

+ *

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

+ *
    + *
  • augmentPromptCallable() + *

+ *

CorroborateContent

Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.

+ *

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

+ *
    + *
  • corroborateContent(CorroborateContentRequest request) + *

+ *

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

+ *
    + *
  • corroborateContent(LocationName parent, Content content, List<Fact> facts) + *

  • corroborateContent(String parent, Content content, List<Fact> facts) + *

+ *

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

+ *
    + *
  • corroborateContentCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 VertexRagServiceSettings 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
+ * VertexRagServiceSettings vertexRagServiceSettings =
+ *     VertexRagServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VertexRagServiceClient vertexRagServiceClient =
+ *     VertexRagServiceClient.create(vertexRagServiceSettings);
+ * }
+ * + *

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
+ * VertexRagServiceSettings vertexRagServiceSettings =
+ *     VertexRagServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VertexRagServiceClient vertexRagServiceClient =
+ *     VertexRagServiceClient.create(vertexRagServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class VertexRagServiceClient implements BackgroundResource { + private final VertexRagServiceSettings settings; + private final VertexRagServiceStub stub; + + /** Constructs an instance of VertexRagServiceClient with default settings. */ + public static final VertexRagServiceClient create() throws IOException { + return create(VertexRagServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VertexRagServiceClient, 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 VertexRagServiceClient create(VertexRagServiceSettings settings) + throws IOException { + return new VertexRagServiceClient(settings); + } + + /** + * Constructs an instance of VertexRagServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(VertexRagServiceSettings). + */ + public static final VertexRagServiceClient create(VertexRagServiceStub stub) { + return new VertexRagServiceClient(stub); + } + + /** + * Constructs an instance of VertexRagServiceClient, 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 VertexRagServiceClient(VertexRagServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VertexRagServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected VertexRagServiceClient(VertexRagServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final VertexRagServiceSettings getSettings() { + return settings; + } + + public VertexRagServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves relevant contexts for a query. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   RagQuery query = RagQuery.newBuilder().build();
+   *   RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to retrieve RagContexts. + * The users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param query Required. Single RAG retrieve query. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetrieveContextsResponse retrieveContexts(LocationName parent, RagQuery query) { + RetrieveContextsRequest request = + RetrieveContextsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return retrieveContexts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves relevant contexts for a query. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   RagQuery query = RagQuery.newBuilder().build();
+   *   RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to retrieve RagContexts. + * The users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param query Required. Single RAG retrieve query. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetrieveContextsResponse retrieveContexts(String parent, RagQuery query) { + RetrieveContextsRequest request = + RetrieveContextsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return retrieveContexts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves relevant contexts for a query. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   RetrieveContextsRequest request =
+   *       RetrieveContextsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery(RagQuery.newBuilder().build())
+   *           .build();
+   *   RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(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 RetrieveContextsResponse retrieveContexts(RetrieveContextsRequest request) { + return retrieveContextsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves relevant contexts for a query. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   RetrieveContextsRequest request =
+   *       RetrieveContextsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setQuery(RagQuery.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.retrieveContextsCallable().futureCall(request);
+   *   // Do something.
+   *   RetrieveContextsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + retrieveContextsCallable() { + return stub.retrieveContextsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build();
+   *   VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build();
+   *   AugmentPromptResponse response =
+   *       vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to augment prompt. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param model Optional. Metadata of the backend deployed model. + * @param vertexRagStore Optional. Retrieves contexts from the Vertex RagStore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AugmentPromptResponse augmentPrompt( + LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setVertexRagStore(vertexRagStore) + .build(); + return augmentPrompt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build();
+   *   VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build();
+   *   AugmentPromptResponse response =
+   *       vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to augment prompt. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param model Optional. Metadata of the backend deployed model. + * @param vertexRagStore Optional. Retrieves contexts from the Vertex RagStore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AugmentPromptResponse augmentPrompt( + String parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setVertexRagStore(vertexRagStore) + .build(); + return augmentPrompt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   AugmentPromptRequest request =
+   *       AugmentPromptRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setModel(AugmentPromptRequest.Model.newBuilder().build())
+   *           .build();
+   *   AugmentPromptResponse response = vertexRagServiceClient.augmentPrompt(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 AugmentPromptResponse augmentPrompt(AugmentPromptRequest request) { + return augmentPromptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   AugmentPromptRequest request =
+   *       AugmentPromptRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setModel(AugmentPromptRequest.Model.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.augmentPromptCallable().futureCall(request);
+   *   // Do something.
+   *   AugmentPromptResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable augmentPromptCallable() { + return stub.augmentPromptCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Content content = Content.newBuilder().build();
+   *   List facts = new ArrayList<>();
+   *   CorroborateContentResponse response =
+   *       vertexRagServiceClient.corroborateContent(parent, content, facts);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to corroborate text. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param content Optional. Input content to corroborate, only text format is supported for now. + * @param facts Optional. Facts used to generate the text can also be used to corroborate the + * text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CorroborateContentResponse corroborateContent( + LocationName parent, Content content, List facts) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setContent(content) + .addAllFacts(facts) + .build(); + return corroborateContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Content content = Content.newBuilder().build();
+   *   List facts = new ArrayList<>();
+   *   CorroborateContentResponse response =
+   *       vertexRagServiceClient.corroborateContent(parent, content, facts);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to corroborate text. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param content Optional. Input content to corroborate, only text format is supported for now. + * @param facts Optional. Facts used to generate the text can also be used to corroborate the + * text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CorroborateContentResponse corroborateContent( + String parent, Content content, List facts) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(parent) + .setContent(content) + .addAllFacts(facts) + .build(); + return corroborateContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   CorroborateContentRequest request =
+   *       CorroborateContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setContent(Content.newBuilder().build())
+   *           .addAllFacts(new ArrayList())
+   *           .setParameters(CorroborateContentRequest.Parameters.newBuilder().build())
+   *           .build();
+   *   CorroborateContentResponse response = vertexRagServiceClient.corroborateContent(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 CorroborateContentResponse corroborateContent(CorroborateContentRequest request) { + return corroborateContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   CorroborateContentRequest request =
+   *       CorroborateContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setContent(Content.newBuilder().build())
+   *           .addAllFacts(new ArrayList())
+   *           .setParameters(CorroborateContentRequest.Parameters.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.corroborateContentCallable().futureCall(request);
+   *   // Do something.
+   *   CorroborateContentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + corroborateContentCallable() { + return stub.corroborateContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vertexRagServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         vertexRagServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vertexRagServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = vertexRagServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vertexRagServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vertexRagServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vertexRagServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vertexRagServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vertexRagServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java new file mode 100644 index 000000000000..ab114ae48d44 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java @@ -0,0 +1,289 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static com.google.cloud.aiplatform.v1.VertexRagServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +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.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.aiplatform.v1.stub.VertexRagServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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 VertexRagServiceClient}. + * + *

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

    + *
  • The default service address (aiplatform.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of retrieveContexts: + * + *

{@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
+ * VertexRagServiceSettings.Builder vertexRagServiceSettingsBuilder =
+ *     VertexRagServiceSettings.newBuilder();
+ * vertexRagServiceSettingsBuilder
+ *     .retrieveContextsSettings()
+ *     .setRetrySettings(
+ *         vertexRagServiceSettingsBuilder
+ *             .retrieveContextsSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * VertexRagServiceSettings vertexRagServiceSettings = vertexRagServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class VertexRagServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to retrieveContexts. */ + public UnaryCallSettings + retrieveContextsSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).retrieveContextsSettings(); + } + + /** Returns the object with the settings used for calls to augmentPrompt. */ + public UnaryCallSettings augmentPromptSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).augmentPromptSettings(); + } + + /** Returns the object with the settings used for calls to corroborateContent. */ + public UnaryCallSettings + corroborateContentSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).corroborateContentSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final VertexRagServiceSettings create(VertexRagServiceStubSettings stub) + throws IOException { + return new VertexRagServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VertexRagServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VertexRagServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VertexRagServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VertexRagServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VertexRagServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VertexRagServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VertexRagServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 VertexRagServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VertexRagServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(VertexRagServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(VertexRagServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VertexRagServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(VertexRagServiceStubSettings.newBuilder()); + } + + public VertexRagServiceStubSettings.Builder getStubSettingsBuilder() { + return ((VertexRagServiceStubSettings.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 retrieveContexts. */ + public UnaryCallSettings.Builder + retrieveContextsSettings() { + return getStubSettingsBuilder().retrieveContextsSettings(); + } + + /** Returns the builder for the settings used for calls to augmentPrompt. */ + public UnaryCallSettings.Builder + augmentPromptSettings() { + return getStubSettingsBuilder().augmentPromptSettings(); + } + + /** Returns the builder for the settings used for calls to corroborateContent. */ + public UnaryCallSettings.Builder + corroborateContentSettings() { + return getStubSettingsBuilder().corroborateContentSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public VertexRagServiceSettings build() throws IOException { + return new VertexRagServiceSettings(this); + } + } +} 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 7cf6fb30d063..d673caa075c2 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 @@ -171,6 +171,9 @@ }, "UpdateEndpoint": { "methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"] + }, + "UpdateEndpointLongRunning": { + "methods": ["updateEndpointLongRunningAsync", "updateEndpointLongRunningAsync", "updateEndpointLongRunningOperationCallable", "updateEndpointLongRunningCallable"] } } } @@ -1484,6 +1487,93 @@ } } }, + "VertexRagDataService": { + "clients": { + "grpc": { + "libraryClient": "VertexRagDataServiceClient", + "rpcs": { + "CreateRagCorpus": { + "methods": ["createRagCorpusAsync", "createRagCorpusAsync", "createRagCorpusAsync", "createRagCorpusOperationCallable", "createRagCorpusCallable"] + }, + "DeleteRagCorpus": { + "methods": ["deleteRagCorpusAsync", "deleteRagCorpusAsync", "deleteRagCorpusAsync", "deleteRagCorpusOperationCallable", "deleteRagCorpusCallable"] + }, + "DeleteRagFile": { + "methods": ["deleteRagFileAsync", "deleteRagFileAsync", "deleteRagFileAsync", "deleteRagFileOperationCallable", "deleteRagFileCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetRagCorpus": { + "methods": ["getRagCorpus", "getRagCorpus", "getRagCorpus", "getRagCorpusCallable"] + }, + "GetRagFile": { + "methods": ["getRagFile", "getRagFile", "getRagFile", "getRagFileCallable"] + }, + "ImportRagFiles": { + "methods": ["importRagFilesAsync", "importRagFilesAsync", "importRagFilesAsync", "importRagFilesOperationCallable", "importRagFilesCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListRagCorpora": { + "methods": ["listRagCorpora", "listRagCorpora", "listRagCorpora", "listRagCorporaPagedCallable", "listRagCorporaCallable"] + }, + "ListRagFiles": { + "methods": ["listRagFiles", "listRagFiles", "listRagFiles", "listRagFilesPagedCallable", "listRagFilesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateRagCorpus": { + "methods": ["updateRagCorpusAsync", "updateRagCorpusAsync", "updateRagCorpusOperationCallable", "updateRagCorpusCallable"] + }, + "UploadRagFile": { + "methods": ["uploadRagFile", "uploadRagFile", "uploadRagFile", "uploadRagFileCallable"] + } + } + } + } + }, + "VertexRagService": { + "clients": { + "grpc": { + "libraryClient": "VertexRagServiceClient", + "rpcs": { + "AugmentPrompt": { + "methods": ["augmentPrompt", "augmentPrompt", "augmentPrompt", "augmentPromptCallable"] + }, + "CorroborateContent": { + "methods": ["corroborateContent", "corroborateContent", "corroborateContent", "corroborateContentCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RetrieveContexts": { + "methods": ["retrieveContexts", "retrieveContexts", "retrieveContexts", "retrieveContextsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "VizierService": { "clients": { "grpc": { 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 d1266dc0b1c8..7f2017f15410 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 @@ -538,6 +538,44 @@ * } * } * + *

======================= VertexRagDataServiceClient ======================= + * + *

Service Description: A service for managing user data for RAG. + * + *

Sample for VertexRagDataServiceClient: + * + *

{@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 (VertexRagDataServiceClient vertexRagDataServiceClient =
+ *     VertexRagDataServiceClient.create()) {
+ *   RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]");
+ *   RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name);
+ * }
+ * }
+ * + *

======================= VertexRagServiceClient ======================= + * + *

Service Description: A service for retrieving relevant contexts. + * + *

Sample for VertexRagServiceClient: + * + *

{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   RagQuery query = RagQuery.newBuilder().build();
+ *   RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query);
+ * }
+ * }
+ * *

======================= VizierServiceClient ======================= * *

Service Description: Vertex AI Vizier API. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java index 3c77141dfcbc..3eafa6e91761 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java @@ -39,6 +39,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -93,6 +95,18 @@ public UnaryCallable updateEndpointCallable() { throw new UnsupportedOperationException("Not implemented: updateEndpointCallable()"); } + public OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateEndpointLongRunningOperationCallable()"); + } + + public UnaryCallable + updateEndpointLongRunningCallable() { + throw new UnsupportedOperationException("Not implemented: updateEndpointLongRunningCallable()"); + } + public OperationCallable deleteEndpointOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteEndpointOperationCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java index 5488e4e32bf5..0e52d9c16a57 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java @@ -62,6 +62,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -174,6 +176,11 @@ public class EndpointServiceStubSettings extends StubSettings listEndpointsSettings; private final UnaryCallSettings updateEndpointSettings; + private final UnaryCallSettings + updateEndpointLongRunningSettings; + private final OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings; private final UnaryCallSettings deleteEndpointSettings; private final OperationCallSettings deleteEndpointOperationSettings; @@ -330,6 +337,19 @@ public UnaryCallSettings updateEndpointSettings return updateEndpointSettings; } + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings + updateEndpointLongRunningSettings() { + return updateEndpointLongRunningSettings; + } + + /** Returns the object with the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return updateEndpointLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteEndpoint. */ public UnaryCallSettings deleteEndpointSettings() { return deleteEndpointSettings; @@ -492,6 +512,9 @@ protected EndpointServiceStubSettings(Builder settingsBuilder) throws IOExceptio getEndpointSettings = settingsBuilder.getEndpointSettings().build(); listEndpointsSettings = settingsBuilder.listEndpointsSettings().build(); updateEndpointSettings = settingsBuilder.updateEndpointSettings().build(); + updateEndpointLongRunningSettings = settingsBuilder.updateEndpointLongRunningSettings().build(); + updateEndpointLongRunningOperationSettings = + settingsBuilder.updateEndpointLongRunningOperationSettings().build(); deleteEndpointSettings = settingsBuilder.deleteEndpointSettings().build(); deleteEndpointOperationSettings = settingsBuilder.deleteEndpointOperationSettings().build(); deployModelSettings = settingsBuilder.deployModelSettings().build(); @@ -521,6 +544,11 @@ public static class Builder extends StubSettings.Builder listEndpointsSettings; private final UnaryCallSettings.Builder updateEndpointSettings; + private final UnaryCallSettings.Builder + updateEndpointLongRunningSettings; + private final OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteEndpointSettings; private final OperationCallSettings.Builder< @@ -581,6 +609,8 @@ protected Builder(ClientContext clientContext) { getEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listEndpointsSettings = PagedCallSettings.newBuilder(LIST_ENDPOINTS_PAGE_STR_FACT); updateEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateEndpointLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateEndpointLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteEndpointOperationSettings = OperationCallSettings.newBuilder(); deployModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -601,6 +631,7 @@ protected Builder(ClientContext clientContext) { getEndpointSettings, listEndpointsSettings, updateEndpointSettings, + updateEndpointLongRunningSettings, deleteEndpointSettings, deployModelSettings, undeployModelSettings, @@ -621,6 +652,9 @@ protected Builder(EndpointServiceStubSettings settings) { getEndpointSettings = settings.getEndpointSettings.toBuilder(); listEndpointsSettings = settings.listEndpointsSettings.toBuilder(); updateEndpointSettings = settings.updateEndpointSettings.toBuilder(); + updateEndpointLongRunningSettings = settings.updateEndpointLongRunningSettings.toBuilder(); + updateEndpointLongRunningOperationSettings = + settings.updateEndpointLongRunningOperationSettings.toBuilder(); deleteEndpointSettings = settings.deleteEndpointSettings.toBuilder(); deleteEndpointOperationSettings = settings.deleteEndpointOperationSettings.toBuilder(); deployModelSettings = settings.deployModelSettings.toBuilder(); @@ -642,6 +676,7 @@ protected Builder(EndpointServiceStubSettings settings) { getEndpointSettings, listEndpointsSettings, updateEndpointSettings, + updateEndpointLongRunningSettings, deleteEndpointSettings, deployModelSettings, undeployModelSettings, @@ -686,6 +721,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .updateEndpointLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteEndpointSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -756,6 +796,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateEndpointLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Endpoint.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateEndpointOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .deleteEndpointOperationSettings() .setInitialCallSettings( @@ -902,6 +968,19 @@ public UnaryCallSettings.Builder updateEndpoint return updateEndpointSettings; } + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public UnaryCallSettings.Builder + updateEndpointLongRunningSettings() { + return updateEndpointLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to updateEndpointLongRunning. */ + public OperationCallSettings.Builder< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationSettings() { + return updateEndpointLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteEndpoint. */ public UnaryCallSettings.Builder deleteEndpointSettings() { return deleteEndpointSettings; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java index 5cba25ef2c79..1b1a625aab86 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata; import com.google.cloud.aiplatform.v1.UndeployModelRequest; import com.google.cloud.aiplatform.v1.UndeployModelResponse; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateEndpointRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -110,6 +112,17 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Endpoint.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateEndpointLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.EndpointService/UpdateEndpointLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateEndpointLongRunningRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteEndpointMethodDescriptor = MethodDescriptor.newBuilder() @@ -202,6 +215,11 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub { private final UnaryCallable listEndpointsPagedCallable; private final UnaryCallable updateEndpointCallable; + private final UnaryCallable + updateEndpointLongRunningCallable; + private final OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable; private final UnaryCallable deleteEndpointCallable; private final OperationCallable deleteEndpointOperationCallable; @@ -312,6 +330,17 @@ protected GrpcEndpointServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateEndpointLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateEndpointLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint.name", String.valueOf(request.getEndpoint().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEndpointMethodDescriptor) @@ -425,6 +454,17 @@ protected GrpcEndpointServiceStub( this.updateEndpointCallable = callableFactory.createUnaryCallable( updateEndpointTransportSettings, settings.updateEndpointSettings(), clientContext); + this.updateEndpointLongRunningCallable = + callableFactory.createUnaryCallable( + updateEndpointLongRunningTransportSettings, + settings.updateEndpointLongRunningSettings(), + clientContext); + this.updateEndpointLongRunningOperationCallable = + callableFactory.createOperationCallable( + updateEndpointLongRunningTransportSettings, + settings.updateEndpointLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteEndpointCallable = callableFactory.createUnaryCallable( deleteEndpointTransportSettings, settings.deleteEndpointSettings(), clientContext); @@ -524,6 +564,19 @@ public UnaryCallable updateEndpointCallable() { return updateEndpointCallable; } + @Override + public UnaryCallable + updateEndpointLongRunningCallable() { + return updateEndpointLongRunningCallable; + } + + @Override + public OperationCallable< + UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata> + updateEndpointLongRunningOperationCallable() { + return updateEndpointLongRunningOperationCallable; + } + @Override public UnaryCallable deleteEndpointCallable() { return deleteEndpointCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceCallableFactory.java new file mode 100644 index 000000000000..2d9e8779f933 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceCallableFactory.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. + */ + +package com.google.cloud.aiplatform.v1.stub; + +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 VertexRagDataService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcVertexRagDataServiceCallableFactory 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-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceStub.java new file mode 100644 index 000000000000..9a81270a7116 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagDataServiceStub.java @@ -0,0 +1,709 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagCorporaPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagFilesPagedResponse; + +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.aiplatform.v1.CreateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.GetRagCorpusRequest; +import com.google.cloud.aiplatform.v1.GetRagFileRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.ListRagCorporaResponse; +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.ListRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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 VertexRagDataService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcVertexRagDataServiceStub extends VertexRagDataServiceStub { + private static final MethodDescriptor + createRagCorpusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/CreateRagCorpus") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRagCorpusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateRagCorpusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/UpdateRagCorpus") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateRagCorpusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getRagCorpusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/GetRagCorpus") + .setRequestMarshaller(ProtoUtils.marshaller(GetRagCorpusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RagCorpus.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRagCorporaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/ListRagCorpora") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRagCorporaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRagCorporaResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteRagCorpusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/DeleteRagCorpus") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteRagCorpusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + uploadRagFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/UploadRagFile") + .setRequestMarshaller( + ProtoUtils.marshaller(UploadRagFileRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(UploadRagFileResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importRagFilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/ImportRagFiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportRagFilesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getRagFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/GetRagFile") + .setRequestMarshaller(ProtoUtils.marshaller(GetRagFileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RagFile.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRagFilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/ListRagFiles") + .setRequestMarshaller(ProtoUtils.marshaller(ListRagFilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRagFilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteRagFileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagDataService/DeleteRagFile") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteRagFileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createRagCorpusCallable; + private final OperationCallable< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationCallable; + private final UnaryCallable updateRagCorpusCallable; + private final OperationCallable< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationCallable; + private final UnaryCallable getRagCorpusCallable; + private final UnaryCallable listRagCorporaCallable; + private final UnaryCallable + listRagCorporaPagedCallable; + private final UnaryCallable deleteRagCorpusCallable; + private final OperationCallable + deleteRagCorpusOperationCallable; + private final UnaryCallable uploadRagFileCallable; + private final UnaryCallable importRagFilesCallable; + private final OperationCallable< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationCallable; + private final UnaryCallable getRagFileCallable; + private final UnaryCallable listRagFilesCallable; + private final UnaryCallable + listRagFilesPagedCallable; + private final UnaryCallable deleteRagFileCallable; + private final OperationCallable + deleteRagFileOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVertexRagDataServiceStub create(VertexRagDataServiceStubSettings settings) + throws IOException { + return new GrpcVertexRagDataServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVertexRagDataServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcVertexRagDataServiceStub( + VertexRagDataServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVertexRagDataServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVertexRagDataServiceStub( + VertexRagDataServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVertexRagDataServiceStub, 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 GrpcVertexRagDataServiceStub( + VertexRagDataServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcVertexRagDataServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVertexRagDataServiceStub, 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 GrpcVertexRagDataServiceStub( + VertexRagDataServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createRagCorpusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRagCorpusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateRagCorpusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateRagCorpusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("rag_corpus.name", String.valueOf(request.getRagCorpus().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRagCorpusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRagCorpusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listRagCorporaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRagCorporaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteRagCorpusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRagCorpusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings uploadRagFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(uploadRagFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings importRagFilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importRagFilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRagFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRagFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listRagFilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRagFilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteRagFileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRagFileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.createRagCorpusCallable = + callableFactory.createUnaryCallable( + createRagCorpusTransportSettings, settings.createRagCorpusSettings(), clientContext); + this.createRagCorpusOperationCallable = + callableFactory.createOperationCallable( + createRagCorpusTransportSettings, + settings.createRagCorpusOperationSettings(), + clientContext, + operationsStub); + this.updateRagCorpusCallable = + callableFactory.createUnaryCallable( + updateRagCorpusTransportSettings, settings.updateRagCorpusSettings(), clientContext); + this.updateRagCorpusOperationCallable = + callableFactory.createOperationCallable( + updateRagCorpusTransportSettings, + settings.updateRagCorpusOperationSettings(), + clientContext, + operationsStub); + this.getRagCorpusCallable = + callableFactory.createUnaryCallable( + getRagCorpusTransportSettings, settings.getRagCorpusSettings(), clientContext); + this.listRagCorporaCallable = + callableFactory.createUnaryCallable( + listRagCorporaTransportSettings, settings.listRagCorporaSettings(), clientContext); + this.listRagCorporaPagedCallable = + callableFactory.createPagedCallable( + listRagCorporaTransportSettings, settings.listRagCorporaSettings(), clientContext); + this.deleteRagCorpusCallable = + callableFactory.createUnaryCallable( + deleteRagCorpusTransportSettings, settings.deleteRagCorpusSettings(), clientContext); + this.deleteRagCorpusOperationCallable = + callableFactory.createOperationCallable( + deleteRagCorpusTransportSettings, + settings.deleteRagCorpusOperationSettings(), + clientContext, + operationsStub); + this.uploadRagFileCallable = + callableFactory.createUnaryCallable( + uploadRagFileTransportSettings, settings.uploadRagFileSettings(), clientContext); + this.importRagFilesCallable = + callableFactory.createUnaryCallable( + importRagFilesTransportSettings, settings.importRagFilesSettings(), clientContext); + this.importRagFilesOperationCallable = + callableFactory.createOperationCallable( + importRagFilesTransportSettings, + settings.importRagFilesOperationSettings(), + clientContext, + operationsStub); + this.getRagFileCallable = + callableFactory.createUnaryCallable( + getRagFileTransportSettings, settings.getRagFileSettings(), clientContext); + this.listRagFilesCallable = + callableFactory.createUnaryCallable( + listRagFilesTransportSettings, settings.listRagFilesSettings(), clientContext); + this.listRagFilesPagedCallable = + callableFactory.createPagedCallable( + listRagFilesTransportSettings, settings.listRagFilesSettings(), clientContext); + this.deleteRagFileCallable = + callableFactory.createUnaryCallable( + deleteRagFileTransportSettings, settings.deleteRagFileSettings(), clientContext); + this.deleteRagFileOperationCallable = + callableFactory.createOperationCallable( + deleteRagFileTransportSettings, + settings.deleteRagFileOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createRagCorpusCallable() { + return createRagCorpusCallable; + } + + @Override + public OperationCallable + createRagCorpusOperationCallable() { + return createRagCorpusOperationCallable; + } + + @Override + public UnaryCallable updateRagCorpusCallable() { + return updateRagCorpusCallable; + } + + @Override + public OperationCallable + updateRagCorpusOperationCallable() { + return updateRagCorpusOperationCallable; + } + + @Override + public UnaryCallable getRagCorpusCallable() { + return getRagCorpusCallable; + } + + @Override + public UnaryCallable listRagCorporaCallable() { + return listRagCorporaCallable; + } + + @Override + public UnaryCallable + listRagCorporaPagedCallable() { + return listRagCorporaPagedCallable; + } + + @Override + public UnaryCallable deleteRagCorpusCallable() { + return deleteRagCorpusCallable; + } + + @Override + public OperationCallable + deleteRagCorpusOperationCallable() { + return deleteRagCorpusOperationCallable; + } + + @Override + public UnaryCallable uploadRagFileCallable() { + return uploadRagFileCallable; + } + + @Override + public UnaryCallable importRagFilesCallable() { + return importRagFilesCallable; + } + + @Override + public OperationCallable< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationCallable() { + return importRagFilesOperationCallable; + } + + @Override + public UnaryCallable getRagFileCallable() { + return getRagFileCallable; + } + + @Override + public UnaryCallable listRagFilesCallable() { + return listRagFilesCallable; + } + + @Override + public UnaryCallable listRagFilesPagedCallable() { + return listRagFilesPagedCallable; + } + + @Override + public UnaryCallable deleteRagFileCallable() { + return deleteRagFileCallable; + } + + @Override + public OperationCallable + deleteRagFileOperationCallable() { + return deleteRagFileOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceCallableFactory.java new file mode 100644 index 000000000000..e5edb81b3777 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceCallableFactory.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. + */ + +package com.google.cloud.aiplatform.v1.stub; + +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 VertexRagService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcVertexRagServiceCallableFactory 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-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceStub.java new file mode 100644 index 000000000000..a3a55d515de0 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVertexRagServiceStub.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.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagServiceClient.ListLocationsPagedResponse; + +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.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.RetrieveContextsRequest; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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 VertexRagService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcVertexRagServiceStub extends VertexRagServiceStub { + private static final MethodDescriptor + retrieveContextsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagService/RetrieveContexts") + .setRequestMarshaller( + ProtoUtils.marshaller(RetrieveContextsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RetrieveContextsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + augmentPromptMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagService/AugmentPrompt") + .setRequestMarshaller( + ProtoUtils.marshaller(AugmentPromptRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AugmentPromptResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + corroborateContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.VertexRagService/CorroborateContent") + .setRequestMarshaller( + ProtoUtils.marshaller(CorroborateContentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CorroborateContentResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + retrieveContextsCallable; + private final UnaryCallable augmentPromptCallable; + private final UnaryCallable + corroborateContentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVertexRagServiceStub create(VertexRagServiceStubSettings settings) + throws IOException { + return new GrpcVertexRagServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVertexRagServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcVertexRagServiceStub( + VertexRagServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVertexRagServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVertexRagServiceStub( + VertexRagServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVertexRagServiceStub, 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 GrpcVertexRagServiceStub( + VertexRagServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcVertexRagServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVertexRagServiceStub, 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 GrpcVertexRagServiceStub( + VertexRagServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + retrieveContextsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retrieveContextsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings augmentPromptTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(augmentPromptMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + corroborateContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(corroborateContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.retrieveContextsCallable = + callableFactory.createUnaryCallable( + retrieveContextsTransportSettings, settings.retrieveContextsSettings(), clientContext); + this.augmentPromptCallable = + callableFactory.createUnaryCallable( + augmentPromptTransportSettings, settings.augmentPromptSettings(), clientContext); + this.corroborateContentCallable = + callableFactory.createUnaryCallable( + corroborateContentTransportSettings, + settings.corroborateContentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + retrieveContextsCallable() { + return retrieveContextsCallable; + } + + @Override + public UnaryCallable augmentPromptCallable() { + return augmentPromptCallable; + } + + @Override + public UnaryCallable + corroborateContentCallable() { + return corroborateContentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java new file mode 100644 index 000000000000..132fcd148b4a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java @@ -0,0 +1,176 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagCorporaPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagFilesPagedResponse; + +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.CreateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.GetRagCorpusRequest; +import com.google.cloud.aiplatform.v1.GetRagFileRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.ListRagCorporaResponse; +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.ListRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the VertexRagDataService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class VertexRagDataServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable + createRagCorpusOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createRagCorpusOperationCallable()"); + } + + public UnaryCallable createRagCorpusCallable() { + throw new UnsupportedOperationException("Not implemented: createRagCorpusCallable()"); + } + + public OperationCallable + updateRagCorpusOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateRagCorpusOperationCallable()"); + } + + public UnaryCallable updateRagCorpusCallable() { + throw new UnsupportedOperationException("Not implemented: updateRagCorpusCallable()"); + } + + public UnaryCallable getRagCorpusCallable() { + throw new UnsupportedOperationException("Not implemented: getRagCorpusCallable()"); + } + + public UnaryCallable + listRagCorporaPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRagCorporaPagedCallable()"); + } + + public UnaryCallable listRagCorporaCallable() { + throw new UnsupportedOperationException("Not implemented: listRagCorporaCallable()"); + } + + public OperationCallable + deleteRagCorpusOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRagCorpusOperationCallable()"); + } + + public UnaryCallable deleteRagCorpusCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRagCorpusCallable()"); + } + + public UnaryCallable uploadRagFileCallable() { + throw new UnsupportedOperationException("Not implemented: uploadRagFileCallable()"); + } + + public OperationCallable< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importRagFilesOperationCallable()"); + } + + public UnaryCallable importRagFilesCallable() { + throw new UnsupportedOperationException("Not implemented: importRagFilesCallable()"); + } + + public UnaryCallable getRagFileCallable() { + throw new UnsupportedOperationException("Not implemented: getRagFileCallable()"); + } + + public UnaryCallable listRagFilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRagFilesPagedCallable()"); + } + + public UnaryCallable listRagFilesCallable() { + throw new UnsupportedOperationException("Not implemented: listRagFilesCallable()"); + } + + public OperationCallable + deleteRagFileOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRagFileOperationCallable()"); + } + + public UnaryCallable deleteRagFileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRagFileCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java new file mode 100644 index 000000000000..f44704f6912a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagCorporaPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagFilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +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.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +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.OperationCallSettings; +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.aiplatform.v1.CreateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.GetRagCorpusRequest; +import com.google.cloud.aiplatform.v1.GetRagFileRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.ListRagCorporaResponse; +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.ListRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link VertexRagDataServiceStub}. + * + *

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

    + *
  • The default service address (aiplatform.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getRagCorpus: + * + *

{@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
+ * VertexRagDataServiceStubSettings.Builder vertexRagDataServiceSettingsBuilder =
+ *     VertexRagDataServiceStubSettings.newBuilder();
+ * vertexRagDataServiceSettingsBuilder
+ *     .getRagCorpusSettings()
+ *     .setRetrySettings(
+ *         vertexRagDataServiceSettingsBuilder
+ *             .getRagCorpusSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * VertexRagDataServiceStubSettings vertexRagDataServiceSettings =
+ *     vertexRagDataServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createRagCorpus: + * + *

{@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
+ * VertexRagDataServiceStubSettings.Builder vertexRagDataServiceSettingsBuilder =
+ *     VertexRagDataServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * vertexRagDataServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VertexRagDataServiceStubSettings + 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 createRagCorpusSettings; + private final OperationCallSettings< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationSettings; + private final UnaryCallSettings updateRagCorpusSettings; + private final OperationCallSettings< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationSettings; + private final UnaryCallSettings getRagCorpusSettings; + private final PagedCallSettings< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings; + private final UnaryCallSettings deleteRagCorpusSettings; + private final OperationCallSettings + deleteRagCorpusOperationSettings; + private final UnaryCallSettings + uploadRagFileSettings; + private final UnaryCallSettings importRagFilesSettings; + private final OperationCallSettings< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings; + private final UnaryCallSettings getRagFileSettings; + private final PagedCallSettings< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse> + listRagFilesSettings; + private final UnaryCallSettings deleteRagFileSettings; + private final OperationCallSettings + deleteRagFileOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_RAG_CORPORA_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRagCorporaRequest injectToken(ListRagCorporaRequest payload, String token) { + return ListRagCorporaRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRagCorporaRequest injectPageSize( + ListRagCorporaRequest payload, int pageSize) { + return ListRagCorporaRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRagCorporaRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRagCorporaResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRagCorporaResponse payload) { + return payload.getRagCorporaList(); + } + }; + + private static final PagedListDescriptor + LIST_RAG_FILES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRagFilesRequest injectToken(ListRagFilesRequest payload, String token) { + return ListRagFilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRagFilesRequest injectPageSize(ListRagFilesRequest payload, int pageSize) { + return ListRagFilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRagFilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRagFilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRagFilesResponse payload) { + return payload.getRagFilesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + LIST_RAG_CORPORA_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRagCorporaRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_RAG_CORPORA_PAGE_STR_DESC, request, context); + return ListRagCorporaPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse> + LIST_RAG_FILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRagFilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_RAG_FILES_PAGE_STR_DESC, request, context); + return ListRagFilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createRagCorpus. */ + public UnaryCallSettings createRagCorpusSettings() { + return createRagCorpusSettings; + } + + /** Returns the object with the settings used for calls to createRagCorpus. */ + public OperationCallSettings + createRagCorpusOperationSettings() { + return createRagCorpusOperationSettings; + } + + /** Returns the object with the settings used for calls to updateRagCorpus. */ + public UnaryCallSettings updateRagCorpusSettings() { + return updateRagCorpusSettings; + } + + /** Returns the object with the settings used for calls to updateRagCorpus. */ + public OperationCallSettings + updateRagCorpusOperationSettings() { + return updateRagCorpusOperationSettings; + } + + /** Returns the object with the settings used for calls to getRagCorpus. */ + public UnaryCallSettings getRagCorpusSettings() { + return getRagCorpusSettings; + } + + /** Returns the object with the settings used for calls to listRagCorpora. */ + public PagedCallSettings< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings() { + return listRagCorporaSettings; + } + + /** Returns the object with the settings used for calls to deleteRagCorpus. */ + public UnaryCallSettings deleteRagCorpusSettings() { + return deleteRagCorpusSettings; + } + + /** Returns the object with the settings used for calls to deleteRagCorpus. */ + public OperationCallSettings + deleteRagCorpusOperationSettings() { + return deleteRagCorpusOperationSettings; + } + + /** Returns the object with the settings used for calls to uploadRagFile. */ + public UnaryCallSettings uploadRagFileSettings() { + return uploadRagFileSettings; + } + + /** Returns the object with the settings used for calls to importRagFiles. */ + public UnaryCallSettings importRagFilesSettings() { + return importRagFilesSettings; + } + + /** Returns the object with the settings used for calls to importRagFiles. */ + public OperationCallSettings< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings() { + return importRagFilesOperationSettings; + } + + /** Returns the object with the settings used for calls to getRagFile. */ + public UnaryCallSettings getRagFileSettings() { + return getRagFileSettings; + } + + /** Returns the object with the settings used for calls to listRagFiles. */ + public PagedCallSettings + listRagFilesSettings() { + return listRagFilesSettings; + } + + /** Returns the object with the settings used for calls to deleteRagFile. */ + public UnaryCallSettings deleteRagFileSettings() { + return deleteRagFileSettings; + } + + /** Returns the object with the settings used for calls to deleteRagFile. */ + public OperationCallSettings + deleteRagFileOperationSettings() { + return deleteRagFileOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public VertexRagDataServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVertexRagDataServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "aiplatform"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "aiplatform.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VertexRagDataServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 VertexRagDataServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createRagCorpusSettings = settingsBuilder.createRagCorpusSettings().build(); + createRagCorpusOperationSettings = settingsBuilder.createRagCorpusOperationSettings().build(); + updateRagCorpusSettings = settingsBuilder.updateRagCorpusSettings().build(); + updateRagCorpusOperationSettings = settingsBuilder.updateRagCorpusOperationSettings().build(); + getRagCorpusSettings = settingsBuilder.getRagCorpusSettings().build(); + listRagCorporaSettings = settingsBuilder.listRagCorporaSettings().build(); + deleteRagCorpusSettings = settingsBuilder.deleteRagCorpusSettings().build(); + deleteRagCorpusOperationSettings = settingsBuilder.deleteRagCorpusOperationSettings().build(); + uploadRagFileSettings = settingsBuilder.uploadRagFileSettings().build(); + importRagFilesSettings = settingsBuilder.importRagFilesSettings().build(); + importRagFilesOperationSettings = settingsBuilder.importRagFilesOperationSettings().build(); + getRagFileSettings = settingsBuilder.getRagFileSettings().build(); + listRagFilesSettings = settingsBuilder.listRagFilesSettings().build(); + deleteRagFileSettings = settingsBuilder.deleteRagFileSettings().build(); + deleteRagFileOperationSettings = settingsBuilder.deleteRagFileOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for VertexRagDataServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createRagCorpusSettings; + private final OperationCallSettings.Builder< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationSettings; + private final UnaryCallSettings.Builder + updateRagCorpusSettings; + private final OperationCallSettings.Builder< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationSettings; + private final UnaryCallSettings.Builder getRagCorpusSettings; + private final PagedCallSettings.Builder< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings; + private final UnaryCallSettings.Builder + deleteRagCorpusSettings; + private final OperationCallSettings.Builder< + DeleteRagCorpusRequest, Empty, DeleteOperationMetadata> + deleteRagCorpusOperationSettings; + private final UnaryCallSettings.Builder + uploadRagFileSettings; + private final UnaryCallSettings.Builder + importRagFilesSettings; + private final OperationCallSettings.Builder< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings; + private final UnaryCallSettings.Builder getRagFileSettings; + private final PagedCallSettings.Builder< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse> + listRagFilesSettings; + private final UnaryCallSettings.Builder deleteRagFileSettings; + private final OperationCallSettings.Builder< + DeleteRagFileRequest, Empty, DeleteOperationMetadata> + deleteRagFileOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + 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); + + createRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRagCorpusOperationSettings = OperationCallSettings.newBuilder(); + updateRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateRagCorpusOperationSettings = OperationCallSettings.newBuilder(); + getRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRagCorporaSettings = PagedCallSettings.newBuilder(LIST_RAG_CORPORA_PAGE_STR_FACT); + deleteRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRagCorpusOperationSettings = OperationCallSettings.newBuilder(); + uploadRagFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importRagFilesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importRagFilesOperationSettings = OperationCallSettings.newBuilder(); + getRagFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRagFilesSettings = PagedCallSettings.newBuilder(LIST_RAG_FILES_PAGE_STR_FACT); + deleteRagFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRagFileOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createRagCorpusSettings, + updateRagCorpusSettings, + getRagCorpusSettings, + listRagCorporaSettings, + deleteRagCorpusSettings, + uploadRagFileSettings, + importRagFilesSettings, + getRagFileSettings, + listRagFilesSettings, + deleteRagFileSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(VertexRagDataServiceStubSettings settings) { + super(settings); + + createRagCorpusSettings = settings.createRagCorpusSettings.toBuilder(); + createRagCorpusOperationSettings = settings.createRagCorpusOperationSettings.toBuilder(); + updateRagCorpusSettings = settings.updateRagCorpusSettings.toBuilder(); + updateRagCorpusOperationSettings = settings.updateRagCorpusOperationSettings.toBuilder(); + getRagCorpusSettings = settings.getRagCorpusSettings.toBuilder(); + listRagCorporaSettings = settings.listRagCorporaSettings.toBuilder(); + deleteRagCorpusSettings = settings.deleteRagCorpusSettings.toBuilder(); + deleteRagCorpusOperationSettings = settings.deleteRagCorpusOperationSettings.toBuilder(); + uploadRagFileSettings = settings.uploadRagFileSettings.toBuilder(); + importRagFilesSettings = settings.importRagFilesSettings.toBuilder(); + importRagFilesOperationSettings = settings.importRagFilesOperationSettings.toBuilder(); + getRagFileSettings = settings.getRagFileSettings.toBuilder(); + listRagFilesSettings = settings.listRagFilesSettings.toBuilder(); + deleteRagFileSettings = settings.deleteRagFileSettings.toBuilder(); + deleteRagFileOperationSettings = settings.deleteRagFileOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createRagCorpusSettings, + updateRagCorpusSettings, + getRagCorpusSettings, + listRagCorporaSettings, + deleteRagCorpusSettings, + uploadRagFileSettings, + importRagFilesSettings, + getRagFileSettings, + listRagFilesSettings, + deleteRagFileSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .createRagCorpusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateRagCorpusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getRagCorpusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listRagCorporaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteRagCorpusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .uploadRagFileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .importRagFilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getRagFileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listRagFilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteRagFileSettings() + .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")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createRagCorpusOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RagCorpus.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateRagCorpusOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateRagCorpusOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RagCorpus.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateRagCorpusOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteRagCorpusOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .importRagFilesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportRagFilesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportRagFilesOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteRagFileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(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 createRagCorpus. */ + public UnaryCallSettings.Builder createRagCorpusSettings() { + return createRagCorpusSettings; + } + + /** Returns the builder for the settings used for calls to createRagCorpus. */ + public OperationCallSettings.Builder< + CreateRagCorpusRequest, RagCorpus, CreateRagCorpusOperationMetadata> + createRagCorpusOperationSettings() { + return createRagCorpusOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateRagCorpus. */ + public UnaryCallSettings.Builder updateRagCorpusSettings() { + return updateRagCorpusSettings; + } + + /** Returns the builder for the settings used for calls to updateRagCorpus. */ + public OperationCallSettings.Builder< + UpdateRagCorpusRequest, RagCorpus, UpdateRagCorpusOperationMetadata> + updateRagCorpusOperationSettings() { + return updateRagCorpusOperationSettings; + } + + /** Returns the builder for the settings used for calls to getRagCorpus. */ + public UnaryCallSettings.Builder getRagCorpusSettings() { + return getRagCorpusSettings; + } + + /** Returns the builder for the settings used for calls to listRagCorpora. */ + public PagedCallSettings.Builder< + ListRagCorporaRequest, ListRagCorporaResponse, ListRagCorporaPagedResponse> + listRagCorporaSettings() { + return listRagCorporaSettings; + } + + /** Returns the builder for the settings used for calls to deleteRagCorpus. */ + public UnaryCallSettings.Builder deleteRagCorpusSettings() { + return deleteRagCorpusSettings; + } + + /** Returns the builder for the settings used for calls to deleteRagCorpus. */ + public OperationCallSettings.Builder + deleteRagCorpusOperationSettings() { + return deleteRagCorpusOperationSettings; + } + + /** Returns the builder for the settings used for calls to uploadRagFile. */ + public UnaryCallSettings.Builder + uploadRagFileSettings() { + return uploadRagFileSettings; + } + + /** Returns the builder for the settings used for calls to importRagFiles. */ + public UnaryCallSettings.Builder importRagFilesSettings() { + return importRagFilesSettings; + } + + /** Returns the builder for the settings used for calls to importRagFiles. */ + public OperationCallSettings.Builder< + ImportRagFilesRequest, ImportRagFilesResponse, ImportRagFilesOperationMetadata> + importRagFilesOperationSettings() { + return importRagFilesOperationSettings; + } + + /** Returns the builder for the settings used for calls to getRagFile. */ + public UnaryCallSettings.Builder getRagFileSettings() { + return getRagFileSettings; + } + + /** Returns the builder for the settings used for calls to listRagFiles. */ + public PagedCallSettings.Builder< + ListRagFilesRequest, ListRagFilesResponse, ListRagFilesPagedResponse> + listRagFilesSettings() { + return listRagFilesSettings; + } + + /** Returns the builder for the settings used for calls to deleteRagFile. */ + public UnaryCallSettings.Builder deleteRagFileSettings() { + return deleteRagFileSettings; + } + + /** Returns the builder for the settings used for calls to deleteRagFile. */ + public OperationCallSettings.Builder + deleteRagFileOperationSettings() { + return deleteRagFileOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public VertexRagDataServiceStubSettings build() throws IOException { + return new VertexRagDataServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java new file mode 100644 index 000000000000..7d79d942f28b --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.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. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.RetrieveContextsRequest; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the VertexRagService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class VertexRagServiceStub implements BackgroundResource { + + public UnaryCallable + retrieveContextsCallable() { + throw new UnsupportedOperationException("Not implemented: retrieveContextsCallable()"); + } + + public UnaryCallable augmentPromptCallable() { + throw new UnsupportedOperationException("Not implemented: augmentPromptCallable()"); + } + + public UnaryCallable + corroborateContentCallable() { + throw new UnsupportedOperationException("Not implemented: corroborateContentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java new file mode 100644 index 000000000000..c2c4b36d6b38 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java @@ -0,0 +1,535 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.aiplatform.v1.VertexRagServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +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.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.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.RetrieveContextsRequest; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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 VertexRagServiceStub}. + * + *

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

    + *
  • The default service address (aiplatform.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of retrieveContexts: + * + *

{@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
+ * VertexRagServiceStubSettings.Builder vertexRagServiceSettingsBuilder =
+ *     VertexRagServiceStubSettings.newBuilder();
+ * vertexRagServiceSettingsBuilder
+ *     .retrieveContextsSettings()
+ *     .setRetrySettings(
+ *         vertexRagServiceSettingsBuilder
+ *             .retrieveContextsSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * VertexRagServiceStubSettings vertexRagServiceSettings = vertexRagServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class VertexRagServiceStubSettings 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 + retrieveContextsSettings; + private final UnaryCallSettings + augmentPromptSettings; + private final UnaryCallSettings + corroborateContentSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to retrieveContexts. */ + public UnaryCallSettings + retrieveContextsSettings() { + return retrieveContextsSettings; + } + + /** Returns the object with the settings used for calls to augmentPrompt. */ + public UnaryCallSettings augmentPromptSettings() { + return augmentPromptSettings; + } + + /** Returns the object with the settings used for calls to corroborateContent. */ + public UnaryCallSettings + corroborateContentSettings() { + return corroborateContentSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public VertexRagServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVertexRagServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "aiplatform"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "aiplatform.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VertexRagServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 VertexRagServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + retrieveContextsSettings = settingsBuilder.retrieveContextsSettings().build(); + augmentPromptSettings = settingsBuilder.augmentPromptSettings().build(); + corroborateContentSettings = settingsBuilder.corroborateContentSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for VertexRagServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + retrieveContextsSettings; + private final UnaryCallSettings.Builder + augmentPromptSettings; + private final UnaryCallSettings.Builder + corroborateContentSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + 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); + + retrieveContextsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + augmentPromptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + corroborateContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + retrieveContextsSettings, + augmentPromptSettings, + corroborateContentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(VertexRagServiceStubSettings settings) { + super(settings); + + retrieveContextsSettings = settings.retrieveContextsSettings.toBuilder(); + augmentPromptSettings = settings.augmentPromptSettings.toBuilder(); + corroborateContentSettings = settings.corroborateContentSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + retrieveContextsSettings, + augmentPromptSettings, + corroborateContentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .retrieveContextsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .augmentPromptSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .corroborateContentSettings() + .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")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .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 retrieveContexts. */ + public UnaryCallSettings.Builder + retrieveContextsSettings() { + return retrieveContextsSettings; + } + + /** Returns the builder for the settings used for calls to augmentPrompt. */ + public UnaryCallSettings.Builder + augmentPromptSettings() { + return augmentPromptSettings; + } + + /** Returns the builder for the settings used for calls to corroborateContent. */ + public UnaryCallSettings.Builder + corroborateContentSettings() { + return corroborateContentSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public VertexRagServiceStubSettings build() throws IOException { + return new VertexRagServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java index 58a4fed53c56..06666288689f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java @@ -451,6 +451,7 @@ public final ListPublisherModelsPagedResponse listPublisherModels(String parent) * .setView(PublisherModelView.forNumber(0)) * .setOrderBy("orderBy-1207110587") * .setLanguageCode("languageCode-2092349083") + * .setListAllVersions(true) * .build(); * for (PublisherModel element : * modelGardenServiceClient.listPublisherModels(request).iterateAll()) { @@ -489,6 +490,7 @@ public final ListPublisherModelsPagedResponse listPublisherModels( * .setView(PublisherModelView.forNumber(0)) * .setOrderBy("orderBy-1207110587") * .setLanguageCode("languageCode-2092349083") + * .setListAllVersions(true) * .build(); * ApiFuture future = * modelGardenServiceClient.listPublisherModelsPagedCallable().futureCall(request); @@ -526,6 +528,7 @@ public final ListPublisherModelsPagedResponse listPublisherModels( * .setView(PublisherModelView.forNumber(0)) * .setOrderBy("orderBy-1207110587") * .setLanguageCode("languageCode-2092349083") + * .setListAllVersions(true) * .build(); * while (true) { * ListPublisherModelsResponse response = diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java index c6968a3aa513..afb968fe602b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import com.google.api.HttpBody; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -24,6 +25,7 @@ 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.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.stub.ReasoningEngineExecutionServiceStub; import com.google.cloud.aiplatform.v1beta1.stub.ReasoningEngineExecutionServiceStubSettings; @@ -63,6 +65,7 @@ * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") * .toString()) * .setInput(Struct.newBuilder().build()) + * .setClassMethod("classMethod-937857927") * .build(); * QueryReasoningEngineResponse response = * reasoningEngineExecutionServiceClient.queryReasoningEngine(request); @@ -95,6 +98,16 @@ * * * + *

StreamQueryReasoningEngine + *

Streams queries using a reasoning engine. + * + *

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

+ *
    + *
  • streamQueryReasoningEngineCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -286,6 +299,7 @@ public ReasoningEngineExecutionServiceStub getStub() { * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") * .toString()) * .setInput(Struct.newBuilder().build()) + * .setClassMethod("classMethod-937857927") * .build(); * QueryReasoningEngineResponse response = * reasoningEngineExecutionServiceClient.queryReasoningEngine(request); @@ -320,6 +334,7 @@ public final QueryReasoningEngineResponse queryReasoningEngine( * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") * .toString()) * .setInput(Struct.newBuilder().build()) + * .setClassMethod("classMethod-937857927") * .build(); * ApiFuture future = * reasoningEngineExecutionServiceClient.queryReasoningEngineCallable().futureCall(request); @@ -333,6 +348,41 @@ public final QueryReasoningEngineResponse queryReasoningEngine( return stub.queryReasoningEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Streams queries using a reasoning engine. + * + *

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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   StreamQueryReasoningEngineRequest request =
+   *       StreamQueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInput(Struct.newBuilder().build())
+   *           .setClassMethod("classMethod-937857927")
+   *           .build();
+   *   ServerStream stream =
+   *       reasoningEngineExecutionServiceClient.streamQueryReasoningEngineCallable().call(request);
+   *   for (HttpBody response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamQueryReasoningEngineCallable() { + return stub.streamQueryReasoningEngineCallable(); + } + // 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/v1beta1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java index af6ce7c2b95f..5757af98caf8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; +import com.google.api.HttpBody; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -27,6 +28,7 @@ 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.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.ReasoningEngineExecutionServiceStubSettings; @@ -106,6 +108,13 @@ public class ReasoningEngineExecutionServiceSettings .queryReasoningEngineSettings(); } + /** Returns the object with the settings used for calls to streamQueryReasoningEngine. */ + public ServerStreamingCallSettings + streamQueryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .streamQueryReasoningEngineSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -238,6 +247,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().queryReasoningEngineSettings(); } + /** Returns the builder for the settings used for calls to streamQueryReasoningEngine. */ + public ServerStreamingCallSettings.Builder + streamQueryReasoningEngineSettings() { + return getStubSettingsBuilder().streamQueryReasoningEngineSettings(); + } + /** 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/ReasoningEngineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java index f983bb5c5e73..5603e49e96f0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java @@ -852,7 +852,7 @@ public final ListReasoningEnginesPagedResponse listReasoningEngines( * } * * @param reasoningEngine Required. The ReasoningEngine which replaces the resource on the server. - * @param updateMask Required. Mask specifying which fields to update. + * @param updateMask Optional. Mask specifying which fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java index 739b857512fb..b4b26d272b8e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java @@ -93,6 +93,44 @@ * * * + *

AugmentPrompt + *

Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses. + * + *

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

+ *
    + *
  • augmentPrompt(AugmentPromptRequest request) + *

+ *

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

+ *
    + *
  • augmentPrompt(LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) + *

  • augmentPrompt(String parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) + *

+ *

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

+ *
    + *
  • augmentPromptCallable() + *

+ * + * + * + *

CorroborateContent + *

Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts. + * + *

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

+ *
    + *
  • corroborateContent(CorroborateContentRequest request) + *

+ *

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

+ *
    + *
  • corroborateContent(LocationName parent, Content content, List<Fact> facts) + *

  • corroborateContent(String parent, Content content, List<Fact> facts) + *

+ *

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

+ *
    + *
  • corroborateContentCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -383,6 +421,295 @@ public final RetrieveContextsResponse retrieveContexts(RetrieveContextsRequest r return stub.retrieveContextsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build();
+   *   VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build();
+   *   AugmentPromptResponse response =
+   *       vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to augment prompt. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param model Optional. Metadata of the backend deployed model. + * @param vertexRagStore Optional. Retrieves contexts from the Vertex RagStore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AugmentPromptResponse augmentPrompt( + LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModel(model) + .setVertexRagStore(vertexRagStore) + .build(); + return augmentPrompt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build();
+   *   VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build();
+   *   AugmentPromptResponse response =
+   *       vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to augment prompt. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param model Optional. Metadata of the backend deployed model. + * @param vertexRagStore Optional. Retrieves contexts from the Vertex RagStore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AugmentPromptResponse augmentPrompt( + String parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(parent) + .setModel(model) + .setVertexRagStore(vertexRagStore) + .build(); + return augmentPrompt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   AugmentPromptRequest request =
+   *       AugmentPromptRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setModel(AugmentPromptRequest.Model.newBuilder().build())
+   *           .build();
+   *   AugmentPromptResponse response = vertexRagServiceClient.augmentPrompt(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 AugmentPromptResponse augmentPrompt(AugmentPromptRequest request) { + return augmentPromptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards + * generating grounded responses. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   AugmentPromptRequest request =
+   *       AugmentPromptRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .addAllContents(new ArrayList())
+   *           .setModel(AugmentPromptRequest.Model.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.augmentPromptCallable().futureCall(request);
+   *   // Do something.
+   *   AugmentPromptResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable augmentPromptCallable() { + return stub.augmentPromptCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Content content = Content.newBuilder().build();
+   *   List facts = new ArrayList<>();
+   *   CorroborateContentResponse response =
+   *       vertexRagServiceClient.corroborateContent(parent, content, facts);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to corroborate text. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param content Optional. Input content to corroborate, only text format is supported for now. + * @param facts Optional. Facts used to generate the text can also be used to corroborate the + * text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CorroborateContentResponse corroborateContent( + LocationName parent, Content content, List facts) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setContent(content) + .addAllFacts(facts) + .build(); + return corroborateContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Content content = Content.newBuilder().build();
+   *   List facts = new ArrayList<>();
+   *   CorroborateContentResponse response =
+   *       vertexRagServiceClient.corroborateContent(parent, content, facts);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location from which to corroborate text. The + * users must have permission to make a call in the project. Format: + * `projects/{project}/locations/{location}`. + * @param content Optional. Input content to corroborate, only text format is supported for now. + * @param facts Optional. Facts used to generate the text can also be used to corroborate the + * text. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CorroborateContentResponse corroborateContent( + String parent, Content content, List facts) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(parent) + .setContent(content) + .addAllFacts(facts) + .build(); + return corroborateContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   CorroborateContentRequest request =
+   *       CorroborateContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setContent(Content.newBuilder().build())
+   *           .addAllFacts(new ArrayList())
+   *           .setParameters(CorroborateContentRequest.Parameters.newBuilder().build())
+   *           .build();
+   *   CorroborateContentResponse response = vertexRagServiceClient.corroborateContent(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 CorroborateContentResponse corroborateContent(CorroborateContentRequest request) { + return corroborateContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Given an input text, it returns a score that evaluates the factuality of the text. It also + * extracts and returns claims from the text and provides supporting facts. + * + *

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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+   *   CorroborateContentRequest request =
+   *       CorroborateContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setContent(Content.newBuilder().build())
+   *           .addAllFacts(new ArrayList())
+   *           .setParameters(CorroborateContentRequest.Parameters.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vertexRagServiceClient.corroborateContentCallable().futureCall(request);
+   *   // Do something.
+   *   CorroborateContentResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + corroborateContentCallable() { + return stub.corroborateContentCallable(); + } + // 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/v1beta1/VertexRagServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java index 9784befebb52..a6ace92c3482 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java @@ -103,6 +103,17 @@ public class VertexRagServiceSettings extends ClientSettings augmentPromptSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).augmentPromptSettings(); + } + + /** Returns the object with the settings used for calls to corroborateContent. */ + public UnaryCallSettings + corroborateContentSettings() { + return ((VertexRagServiceStubSettings) getStubSettings()).corroborateContentSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -232,6 +243,18 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().retrieveContextsSettings(); } + /** Returns the builder for the settings used for calls to augmentPrompt. */ + public UnaryCallSettings.Builder + augmentPromptSettings() { + return getStubSettingsBuilder().augmentPromptSettings(); + } + + /** Returns the builder for the settings used for calls to corroborateContent. */ + public UnaryCallSettings.Builder + corroborateContentSettings() { + return getStubSettingsBuilder().corroborateContentSettings(); + } + /** 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/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index ca13b427c8f4..913683532b9e 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 @@ -1504,6 +1504,9 @@ "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, + "StreamQueryReasoningEngine": { + "methods": ["streamQueryReasoningEngineCallable"] + }, "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] } @@ -1807,6 +1810,12 @@ "grpc": { "libraryClient": "VertexRagServiceClient", "rpcs": { + "AugmentPrompt": { + "methods": ["augmentPrompt", "augmentPrompt", "augmentPrompt", "augmentPromptCallable"] + }, + "CorroborateContent": { + "methods": ["corroborateContent", "corroborateContent", "corroborateContent", "corroborateContentCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, 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 ffd452f3259d..903494335d00 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 @@ -575,6 +575,7 @@ * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") * .toString()) * .setInput(Struct.newBuilder().build()) + * .setClassMethod("classMethod-937857927") * .build(); * QueryReasoningEngineResponse response = * reasoningEngineExecutionServiceClient.queryReasoningEngine(request); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java index 75c40cc37039..83ed477310c3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; +import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -25,9 +26,11 @@ 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.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -65,6 +68,17 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec ProtoUtils.marshaller(QueryReasoningEngineResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + streamQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService/StreamQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -113,6 +127,8 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec private final UnaryCallable queryReasoningEngineCallable; + private final ServerStreamingCallable + streamQueryReasoningEngineCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -180,6 +196,17 @@ protected GrpcReasoningEngineExecutionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + streamQueryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamQueryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -237,6 +264,11 @@ protected GrpcReasoningEngineExecutionServiceStub( queryReasoningEngineTransportSettings, settings.queryReasoningEngineSettings(), clientContext); + this.streamQueryReasoningEngineCallable = + callableFactory.createServerStreamingCallable( + streamQueryReasoningEngineTransportSettings, + settings.streamQueryReasoningEngineSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -272,6 +304,12 @@ public GrpcOperationsStub getOperationsStub() { return queryReasoningEngineCallable; } + @Override + public ServerStreamingCallable + streamQueryReasoningEngineCallable() { + return streamQueryReasoningEngineCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVertexRagServiceStub.java index 7f0d34fb799d..73d7e66436ac 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVertexRagServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVertexRagServiceStub.java @@ -26,6 +26,10 @@ 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.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse; import com.google.cloud.location.GetLocationRequest; @@ -65,6 +69,29 @@ public class GrpcVertexRagServiceStub extends VertexRagServiceStub { ProtoUtils.marshaller(RetrieveContextsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + augmentPromptMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.VertexRagService/AugmentPrompt") + .setRequestMarshaller( + ProtoUtils.marshaller(AugmentPromptRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AugmentPromptResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + corroborateContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.VertexRagService/CorroborateContent") + .setRequestMarshaller( + ProtoUtils.marshaller(CorroborateContentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CorroborateContentResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -113,6 +140,9 @@ public class GrpcVertexRagServiceStub extends VertexRagServiceStub { private final UnaryCallable retrieveContextsCallable; + private final UnaryCallable augmentPromptCallable; + private final UnaryCallable + corroborateContentCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -177,6 +207,27 @@ protected GrpcVertexRagServiceStub( return builder.build(); }) .build(); + GrpcCallSettings augmentPromptTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(augmentPromptMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + corroborateContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(corroborateContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -232,6 +283,14 @@ protected GrpcVertexRagServiceStub( this.retrieveContextsCallable = callableFactory.createUnaryCallable( retrieveContextsTransportSettings, settings.retrieveContextsSettings(), clientContext); + this.augmentPromptCallable = + callableFactory.createUnaryCallable( + augmentPromptTransportSettings, settings.augmentPromptSettings(), clientContext); + this.corroborateContentCallable = + callableFactory.createUnaryCallable( + corroborateContentTransportSettings, + settings.corroborateContentSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -267,6 +326,17 @@ public GrpcOperationsStub getOperationsStub() { return retrieveContextsCallable; } + @Override + public UnaryCallable augmentPromptCallable() { + return augmentPromptCallable; + } + + @Override + public UnaryCallable + corroborateContentCallable() { + return corroborateContentCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java index 713e9c68848b..1b02bbfb54d1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java @@ -18,11 +18,14 @@ import static com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; +import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -49,6 +52,12 @@ public abstract class ReasoningEngineExecutionServiceStub implements BackgroundR throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); } + public ServerStreamingCallable + streamQueryReasoningEngineCallable() { + throw new UnsupportedOperationException( + "Not implemented: streamQueryReasoningEngineCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java index b4470b7c3b02..214586bd00a8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; +import com.google.api.HttpBody; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -36,6 +37,7 @@ 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.ServerStreamingCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -43,6 +45,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -122,6 +125,8 @@ public class ReasoningEngineExecutionServiceStubSettings private final UnaryCallSettings queryReasoningEngineSettings; + private final ServerStreamingCallSettings + streamQueryReasoningEngineSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -188,6 +193,12 @@ public ApiFuture getFuturePagedResponse( return queryReasoningEngineSettings; } + /** Returns the object with the settings used for calls to streamQueryReasoningEngine. */ + public ServerStreamingCallSettings + streamQueryReasoningEngineSettings() { + return streamQueryReasoningEngineSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -299,6 +310,8 @@ protected ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) super(settingsBuilder); queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); + streamQueryReasoningEngineSettings = + settingsBuilder.streamQueryReasoningEngineSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -313,6 +326,8 @@ public static class Builder private final UnaryCallSettings.Builder< QueryReasoningEngineRequest, QueryReasoningEngineResponse> queryReasoningEngineSettings; + private final ServerStreamingCallSettings.Builder + streamQueryReasoningEngineSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -349,6 +364,7 @@ protected Builder(ClientContext clientContext) { super(clientContext); queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -370,6 +386,7 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { super(settings); queryReasoningEngineSettings = settings.queryReasoningEngineSettings.toBuilder(); + streamQueryReasoningEngineSettings = settings.streamQueryReasoningEngineSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -404,6 +421,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .streamQueryReasoningEngineSettings() + .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")) @@ -453,6 +475,12 @@ public Builder applyToAllUnaryMethods( return queryReasoningEngineSettings; } + /** Returns the builder for the settings used for calls to streamQueryReasoningEngine. */ + public ServerStreamingCallSettings.Builder + streamQueryReasoningEngineSettings() { + return streamQueryReasoningEngineSettings; + } + /** 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/stub/VertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java index f80e67b210a7..45a4e5a7aa12 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java @@ -21,6 +21,10 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse; import com.google.cloud.location.GetLocationRequest; @@ -49,6 +53,15 @@ public abstract class VertexRagServiceStub implements BackgroundResource { throw new UnsupportedOperationException("Not implemented: retrieveContextsCallable()"); } + public UnaryCallable augmentPromptCallable() { + throw new UnsupportedOperationException("Not implemented: augmentPromptCallable()"); + } + + public UnaryCallable + corroborateContentCallable() { + throw new UnsupportedOperationException("Not implemented: corroborateContentCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java index 26fd8db39108..ca9d6b411690 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java @@ -41,6 +41,10 @@ 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.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest; import com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse; import com.google.cloud.location.GetLocationRequest; @@ -119,6 +123,10 @@ public class VertexRagServiceStubSettings extends StubSettings retrieveContextsSettings; + private final UnaryCallSettings + augmentPromptSettings; + private final UnaryCallSettings + corroborateContentSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -185,6 +193,17 @@ public ApiFuture getFuturePagedResponse( return retrieveContextsSettings; } + /** Returns the object with the settings used for calls to augmentPrompt. */ + public UnaryCallSettings augmentPromptSettings() { + return augmentPromptSettings; + } + + /** Returns the object with the settings used for calls to corroborateContent. */ + public UnaryCallSettings + corroborateContentSettings() { + return corroborateContentSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -294,6 +313,8 @@ protected VertexRagServiceStubSettings(Builder settingsBuilder) throws IOExcepti super(settingsBuilder); retrieveContextsSettings = settingsBuilder.retrieveContextsSettings().build(); + augmentPromptSettings = settingsBuilder.augmentPromptSettings().build(); + corroborateContentSettings = settingsBuilder.corroborateContentSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -306,6 +327,10 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder retrieveContextsSettings; + private final UnaryCallSettings.Builder + augmentPromptSettings; + private final UnaryCallSettings.Builder + corroborateContentSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -342,6 +367,8 @@ protected Builder(ClientContext clientContext) { super(clientContext); retrieveContextsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + augmentPromptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + corroborateContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -351,6 +378,8 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( retrieveContextsSettings, + augmentPromptSettings, + corroborateContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -363,6 +392,8 @@ protected Builder(VertexRagServiceStubSettings settings) { super(settings); retrieveContextsSettings = settings.retrieveContextsSettings.toBuilder(); + augmentPromptSettings = settings.augmentPromptSettings.toBuilder(); + corroborateContentSettings = settings.corroborateContentSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -372,6 +403,8 @@ protected Builder(VertexRagServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( retrieveContextsSettings, + augmentPromptSettings, + corroborateContentSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -397,6 +430,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .augmentPromptSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .corroborateContentSettings() + .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")) @@ -446,6 +489,18 @@ public Builder applyToAllUnaryMethods( return retrieveContextsSettings; } + /** Returns the builder for the settings used for calls to augmentPrompt. */ + public UnaryCallSettings.Builder + augmentPromptSettings() { + return augmentPromptSettings; + } + + /** Returns the builder for the settings used for calls to corroborateContent. */ + public UnaryCallSettings.Builder + corroborateContentSettings() { + return corroborateContentSettings; + } + /** 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/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 c7bc66d5aa52..bb16982d264f 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 @@ -620,6 +620,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ApiAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ApiAuth$ApiKeyConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ApiAuth$ApiKeyConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ApiAuth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Artifact", "queryAllDeclaredConstructors": true, @@ -701,6 +737,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptRequest$Model", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptRequest$Model$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AugmentPromptResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.AutomaticResources", "queryAllDeclaredConstructors": true, @@ -1790,6 +1880,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Claim", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Claim$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ClientConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ClientConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CoherenceInput", "queryAllDeclaredConstructors": true, @@ -2141,6 +2267,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CorpusStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorpusStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorpusStatus$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentRequest$Parameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentRequest$Parameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CorroborateContentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CountTokensRequest", "queryAllDeclaredConstructors": true, @@ -2951,6 +3158,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateRagCorpusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateRagCorpusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4049,6 +4292,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteRagFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteRagFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest", "queryAllDeclaredConstructors": true, @@ -4428,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.DeployedModelRef", + "name": "com.google.cloud.aiplatform.v1.DeployedModel$Status", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.DeployedModelRef$Builder", + "name": "com.google.cloud.aiplatform.v1.DeployedModel$Status$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.DeploymentResourcePool", + "name": "com.google.cloud.aiplatform.v1.DeployedModelRef", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.DeploymentResourcePool$Builder", + "name": "com.google.cloud.aiplatform.v1.DeployedModelRef$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +4743,25 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.DestinationFeatureSetting", + "name": "com.google.cloud.aiplatform.v1.DeploymentResourcePool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeploymentResourcePool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DestinationFeatureSetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4553,6 +4850,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DirectUploadSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DirectUploadSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DiskSpec", "queryAllDeclaredConstructors": true, @@ -5678,6 +5993,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Fact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Fact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.FasterDeploymentConfig", "queryAllDeclaredConstructors": true, @@ -6542,6 +6875,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.FileStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.FileStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.FileStatus$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.FilterSplit", "queryAllDeclaredConstructors": true, @@ -7775,6 +8135,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GetRagCorpusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetRagCorpusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetRagFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetRagFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GetScheduleRequest", "queryAllDeclaredConstructors": true, @@ -7955,6 +8351,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleDriveSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleDriveSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleDriveSource$ResourceId", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleDriveSource$ResourceId$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GoogleDriveSource$ResourceId$ResourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GoogleSearchRetrieval", "queryAllDeclaredConstructors": true, @@ -8342,6 +8783,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImportRagFilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Index", "queryAllDeclaredConstructors": true, @@ -8576,6 +9089,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.JiraSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.JiraSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.JiraSource$JiraQueries", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.JiraSource$JiraQueries$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.JobState", "queryAllDeclaredConstructors": true, @@ -9954,7 +10503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesRequest", + "name": "com.google.cloud.aiplatform.v1.ListRagCorporaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9963,7 +10512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.ListRagCorporaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9972,7 +10521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesResponse", + "name": "com.google.cloud.aiplatform.v1.ListRagCorporaResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9981,7 +10530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesResponse$Builder", + "name": "com.google.cloud.aiplatform.v1.ListRagCorporaResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9990,7 +10539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSchedulesRequest", + "name": "com.google.cloud.aiplatform.v1.ListRagFilesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9999,7 +10548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSchedulesRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.ListRagFilesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10008,7 +10557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSchedulesResponse", + "name": "com.google.cloud.aiplatform.v1.ListRagFilesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10017,7 +10566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSchedulesResponse$Builder", + "name": "com.google.cloud.aiplatform.v1.ListRagFilesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10026,7 +10575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest", + "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10035,7 +10584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10044,7 +10593,79 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse", + "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSchedulesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSchedulesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSchedulesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSchedulesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -12158,6 +12779,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$CustomEnvironmentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$DataformRepositorySource", "queryAllDeclaredConstructors": true, @@ -12212,6 +12851,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$WorkbenchRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJob$WorkbenchRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.NotebookExecutionJobView", "queryAllDeclaredConstructors": true, @@ -13985,6 +14642,294 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RagContexts", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagContexts$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagContexts$Context", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagContexts$Context$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagCorpus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagCorpus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig$VertexPredictionEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig$VertexPredictionEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileChunkingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileChunkingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileChunkingConfig$FixedLengthChunking", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileChunkingConfig$FixedLengthChunking$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileTransformationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagFileTransformationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagRetrievalConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagRetrievalConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagRetrievalConfig$Filter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagRetrievalConfig$Filter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$Pinecone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$Pinecone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$VertexVectorSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$VertexVectorSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.RawPredictRequest", "queryAllDeclaredConstructors": true, @@ -14571,7 +15516,79 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourcePool$AutoscalingSpec$Builder", + "name": "com.google.cloud.aiplatform.v1.ResourcePool$AutoscalingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourcePool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourceRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourceRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourceRuntimeSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourceRuntimeSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourcesConsumed", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ResourcesConsumed$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14580,7 +15597,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourcePool$Builder", + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14589,7 +15606,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourceRuntime", + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14598,7 +15615,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourceRuntime$Builder", + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14607,7 +15624,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourceRuntimeSpec", + "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14616,7 +15633,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourceRuntimeSpec$Builder", + "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14625,7 +15642,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourcesConsumed", + "name": "com.google.cloud.aiplatform.v1.ResumeScheduleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14634,7 +15651,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResourcesConsumed$Builder", + "name": "com.google.cloud.aiplatform.v1.ResumeScheduleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14643,7 +15660,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata", + "name": "com.google.cloud.aiplatform.v1.Retrieval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14652,7 +15669,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata$Builder", + "name": "com.google.cloud.aiplatform.v1.Retrieval$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14661,7 +15678,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest", + "name": "com.google.cloud.aiplatform.v1.RetrievalMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14670,7 +15687,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.RetrievalMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14679,7 +15696,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14688,7 +15705,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14697,7 +15714,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResumeScheduleRequest", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest$VertexRagStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14706,7 +15723,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.ResumeScheduleRequest$Builder", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest$VertexRagStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14715,7 +15732,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.Retrieval", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest$VertexRagStore$RagResource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14724,7 +15741,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.Retrieval$Builder", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsRequest$VertexRagStore$RagResource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14733,7 +15750,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RetrievalMetadata", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14742,7 +15759,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1.RetrievalMetadata$Builder", + "name": "com.google.cloud.aiplatform.v1.RetrieveContextsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -15461,6 +16478,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SharePointSources", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SharePointSources$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SharePointSources$SharePointSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SharePointSources$SharePointSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ShieldedVmConfig", "queryAllDeclaredConstructors": true, @@ -15479,6 +16532,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource$SlackChannels", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource$SlackChannels$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource$SlackChannels$SlackChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SlackSource$SlackChannels$SlackChannel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.SmoothGradConfig", "queryAllDeclaredConstructors": true, @@ -17774,6 +18881,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpdateEndpointRequest", "queryAllDeclaredConstructors": true, @@ -18224,6 +19367,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpdateScheduleRequest", "queryAllDeclaredConstructors": true, @@ -18476,6 +19655,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UploadRagFileResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpsertDatapointsRequest", "queryAllDeclaredConstructors": true, @@ -18566,6 +19799,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.VertexRagStore", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexRagStore$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexRagStore$RagResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexRagStore$RagResource$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 bc40f9d5fb12..faf5d4505d98 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 @@ -755,6 +755,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest$Model", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest$Model$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AuthConfig", "queryAllDeclaredConstructors": true, @@ -2015,6 +2069,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Claim", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Claim$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ClientConnectionConfig", "queryAllDeclaredConstructors": true, @@ -2357,6 +2429,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest$Parameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest$Parameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CountTokensRequest", "queryAllDeclaredConstructors": true, @@ -5039,6 +5165,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeployedModel$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeployedModel$Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.DeployedModelRef", "queryAllDeclaredConstructors": true, @@ -6506,6 +6650,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Fact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Fact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig", "queryAllDeclaredConstructors": true, @@ -6632,6 +6794,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FeatureGroup$ServiceAgentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.FeatureMonitor", "queryAllDeclaredConstructors": true, @@ -8171,6 +8342,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerationConfig$MediaResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerationConfig$Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GenerationConfig$RoutingConfig", "queryAllDeclaredConstructors": true, @@ -14543,6 +14732,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", "queryAllDeclaredConstructors": true, @@ -14597,6 +14804,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView", "queryAllDeclaredConstructors": true, @@ -15479,6 +15704,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PredefinedSplit", "queryAllDeclaredConstructors": true, @@ -16821,7 +17064,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig$FixedLengthChunking", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16830,7 +17073,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig$FixedLengthChunking$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16839,7 +17082,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagQuery", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16848,7 +17091,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$AdvancedParser", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16857,7 +17100,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Ranking", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$AdvancedParser$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16866,7 +17109,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Ranking$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16875,7 +17118,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$LayoutParser", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16884,7 +17127,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$LayoutParser$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16893,7 +17136,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Pinecone", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$LlmParser", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16902,7 +17145,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Pinecone$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig$LlmParser$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16911,7 +17154,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16920,7 +17163,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16929,7 +17172,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore", + "name": "com.google.cloud.aiplatform.v1beta1.RagQuery", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16938,7 +17181,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16947,7 +17190,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexVectorSearch", + "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Ranking", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16956,7 +17199,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexVectorSearch$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagQuery$Ranking$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16965,7 +17208,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Weaviate", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16974,7 +17217,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Weaviate$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16983,7 +17226,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RawPredictRequest", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Filter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -16992,7 +17235,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RawPredictRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Filter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17001,7 +17244,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$HybridSearch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17010,7 +17253,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$HybridSearch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17019,7 +17262,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RayMetricSpec", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17028,7 +17271,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RayMetricSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17037,7 +17280,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RaySpec", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking$LlmRanker", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17046,7 +17289,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.RaySpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking$LlmRanker$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17055,7 +17298,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking$RankService", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17064,7 +17307,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig$Ranking$RankService$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17073,7 +17316,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse", + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17082,7 +17325,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17091,7 +17334,205 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse$EntityView", + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Pinecone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Pinecone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexVectorSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexVectorSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Weaviate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$Weaviate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RawPredictRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RawPredictRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RayLogsSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RayMetricSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RayMetricSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RaySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RaySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse$EntityView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18926,6 +19367,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SpeechConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SpeechConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata", "queryAllDeclaredConstructors": true, @@ -19142,6 +19601,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest", "queryAllDeclaredConstructors": true, @@ -20484,7 +20961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput", + "name": "com.google.cloud.aiplatform.v1beta1.Tool$GoogleSearch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20493,7 +20970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.Tool$GoogleSearch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20502,7 +20979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20511,7 +20988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20520,7 +20997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20529,7 +21006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20538,7 +21015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidResults", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20547,7 +21024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20556,7 +21033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidSpec", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20565,7 +21042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20574,7 +21051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolConfig", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidResults", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20583,7 +21060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidResults$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20592,7 +21069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInput", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20601,7 +21078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ToolCallValidSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20610,7 +21087,43 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInstance", + "name": "com.google.cloud.aiplatform.v1beta1.ToolConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20628,7 +21141,358 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$ExtensionOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$ExtensionOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrainingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrainingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrainingPipeline", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrainingPipeline$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Trajectory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Trajectory$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20637,7 +21501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20646,7 +21510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20655,7 +21519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20664,7 +21528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchSpec", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20673,7 +21537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolNameMatchSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20682,7 +21546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20691,7 +21555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20700,7 +21564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstance", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20709,7 +21573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstance$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20718,7 +21582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20727,7 +21591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20736,7 +21600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20745,7 +21609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20754,7 +21618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpec", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20763,7 +21627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20772,7 +21636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInput", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20781,7 +21645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20790,7 +21654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstance", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20799,7 +21663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstance$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20808,7 +21672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20817,7 +21681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20826,7 +21690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20835,7 +21699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20844,7 +21708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpec", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20853,7 +21717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20862,7 +21726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20871,7 +21735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20880,7 +21744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$ExtensionOperation", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20889,7 +21753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ToolUseExample$ExtensionOperation$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20898,7 +21762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.TrainingConfig", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20907,7 +21771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.TrainingConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20916,7 +21780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.TrainingPipeline", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -20925,7 +21789,214 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.TrainingPipeline$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -22337,6 +23408,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VertexRagStore", "queryAllDeclaredConstructors": true, @@ -22391,6 +23480,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java index e7e277cc1f3a..6247830ae818 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java @@ -134,6 +134,7 @@ public void createEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -207,6 +208,7 @@ public void createEndpointTest2() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -280,6 +282,7 @@ public void createEndpointTest3() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -356,6 +359,7 @@ public void createEndpointTest4() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -432,6 +436,7 @@ public void getEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -496,6 +501,7 @@ public void getEndpointTest2() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -646,6 +652,7 @@ public void updateEndpointTest() throws Exception { PredictRequestResponseLoggingConfig.newBuilder().build()) .setDedicatedEndpointEnabled(true) .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -684,6 +691,78 @@ public void updateEndpointExceptionTest() throws Exception { } } + @Test + public void updateEndpointLongRunningTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDeployedModels(new ArrayList()) + .putAllTrafficSplit(new HashMap()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") + .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) + .setModelDeploymentMonitoringJob( + ModelDeploymentMonitoringJobName.of( + "[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]") + .toString()) + .setPredictRequestResponseLoggingConfig( + PredictRequestResponseLoggingConfig.newBuilder().build()) + .setDedicatedEndpointEnabled(true) + .setDedicatedEndpointDns("dedicatedEndpointDns1492154853") + .setClientConnectionConfig(ClientConnectionConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateEndpointLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEndpointService.addResponse(resultOperation); + + Endpoint endpoint = Endpoint.newBuilder().build(); + + Endpoint actualResponse = client.updateEndpointLongRunningAsync(endpoint).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEndpointService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateEndpointLongRunningRequest actualRequest = + ((UpdateEndpointLongRunningRequest) actualRequests.get(0)); + + Assert.assertEquals(endpoint, actualRequest.getEndpoint()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateEndpointLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEndpointService.addException(exception); + + try { + Endpoint endpoint = Endpoint.newBuilder().build(); + client.updateEndpointLongRunningAsync(endpoint).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 deleteEndpointTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java index a50595d45eae..52b9b960f088 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java @@ -142,6 +142,27 @@ public void updateEndpoint( } } + @Override + public void updateEndpointLongRunning( + UpdateEndpointLongRunningRequest 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 UpdateEndpointLongRunning, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteEndpoint( DeleteEndpointRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataService.java new file mode 100644 index 000000000000..a92568f5982a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataService.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.aiplatform.v1; + +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 MockVertexRagDataService implements MockGrpcService { + private final MockVertexRagDataServiceImpl serviceImpl; + + public MockVertexRagDataService() { + serviceImpl = new MockVertexRagDataServiceImpl(); + } + + @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-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataServiceImpl.java new file mode 100644 index 000000000000..5a8ec0deccf3 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagDataServiceImpl.java @@ -0,0 +1,270 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceGrpc.VertexRagDataServiceImplBase; +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 MockVertexRagDataServiceImpl extends VertexRagDataServiceImplBase { + private List requests; + private Queue responses; + + public MockVertexRagDataServiceImpl() { + 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 createRagCorpus( + CreateRagCorpusRequest 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 CreateRagCorpus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRagCorpus( + UpdateRagCorpusRequest 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 UpdateRagCorpus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRagCorpus( + GetRagCorpusRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RagCorpus) { + requests.add(request); + responseObserver.onNext(((RagCorpus) 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 GetRagCorpus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RagCorpus.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRagCorpora( + ListRagCorporaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRagCorporaResponse) { + requests.add(request); + responseObserver.onNext(((ListRagCorporaResponse) 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 ListRagCorpora, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRagCorporaResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRagCorpus( + DeleteRagCorpusRequest 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 DeleteRagCorpus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void uploadRagFile( + UploadRagFileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UploadRagFileResponse) { + requests.add(request); + responseObserver.onNext(((UploadRagFileResponse) 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 UploadRagFile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UploadRagFileResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importRagFiles( + ImportRagFilesRequest 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 ImportRagFiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRagFile(GetRagFileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RagFile) { + requests.add(request); + responseObserver.onNext(((RagFile) 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 GetRagFile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RagFile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRagFiles( + ListRagFilesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRagFilesResponse) { + requests.add(request); + responseObserver.onNext(((ListRagFilesResponse) 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 ListRagFiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRagFilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRagFile( + DeleteRagFileRequest 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 DeleteRagFile, 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/MockVertexRagService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagService.java new file mode 100644 index 000000000000..47b89009e084 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagService.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.aiplatform.v1; + +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 MockVertexRagService implements MockGrpcService { + private final MockVertexRagServiceImpl serviceImpl; + + public MockVertexRagService() { + serviceImpl = new MockVertexRagServiceImpl(); + } + + @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-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagServiceImpl.java new file mode 100644 index 000000000000..117b5c5a4c7b --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVertexRagServiceImpl.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.aiplatform.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1.VertexRagServiceGrpc.VertexRagServiceImplBase; +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 MockVertexRagServiceImpl extends VertexRagServiceImplBase { + private List requests; + private Queue responses; + + public MockVertexRagServiceImpl() { + 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 retrieveContexts( + RetrieveContextsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetrieveContextsResponse) { + requests.add(request); + responseObserver.onNext(((RetrieveContextsResponse) 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 RetrieveContexts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RetrieveContextsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void augmentPrompt( + AugmentPromptRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AugmentPromptResponse) { + requests.add(request); + responseObserver.onNext(((AugmentPromptResponse) 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 AugmentPrompt, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AugmentPromptResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void corroborateContent( + CorroborateContentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CorroborateContentResponse) { + requests.add(request); + responseObserver.onNext(((CorroborateContentResponse) 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 CorroborateContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CorroborateContentResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java index 79ffabdbe31d..a45f4c17889f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/NotebookServiceClientTest.java @@ -1554,6 +1554,7 @@ public void createNotebookExecutionJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -1624,6 +1625,7 @@ public void createNotebookExecutionJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -1694,6 +1696,7 @@ public void getNotebookExecutionJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockNotebookService.addResponse(expectedResponse); @@ -1747,6 +1750,7 @@ public void getNotebookExecutionJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockNotebookService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClientTest.java new file mode 100644 index 000000000000..877359be33bd --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClientTest.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagCorporaPagedResponse; +import static com.google.cloud.aiplatform.v1.VertexRagDataServiceClient.ListRagFilesPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +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.HashMap; +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 VertexRagDataServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockVertexRagDataService mockVertexRagDataService; + private LocalChannelProvider channelProvider; + private VertexRagDataServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockVertexRagDataService = new MockVertexRagDataService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockVertexRagDataService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + VertexRagDataServiceSettings settings = + VertexRagDataServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VertexRagDataServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createRagCorpusTest() throws Exception { + RagCorpus expectedResponse = + RagCorpus.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCorpusStatus(CorpusStatus.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createRagCorpusTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + + RagCorpus actualResponse = client.createRagCorpusAsync(parent, ragCorpus).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRagCorpusRequest actualRequest = ((CreateRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(ragCorpus, actualRequest.getRagCorpus()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRagCorpusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + client.createRagCorpusAsync(parent, ragCorpus).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 createRagCorpusTest2() throws Exception { + RagCorpus expectedResponse = + RagCorpus.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCorpusStatus(CorpusStatus.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createRagCorpusTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + + RagCorpus actualResponse = client.createRagCorpusAsync(parent, ragCorpus).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRagCorpusRequest actualRequest = ((CreateRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(ragCorpus, actualRequest.getRagCorpus()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRagCorpusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String parent = "parent-995424086"; + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + client.createRagCorpusAsync(parent, ragCorpus).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 updateRagCorpusTest() throws Exception { + RagCorpus expectedResponse = + RagCorpus.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCorpusStatus(CorpusStatus.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateRagCorpusTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + + RagCorpus actualResponse = client.updateRagCorpusAsync(ragCorpus).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRagCorpusRequest actualRequest = ((UpdateRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(ragCorpus, actualRequest.getRagCorpus()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRagCorpusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + client.updateRagCorpusAsync(ragCorpus).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 getRagCorpusTest() throws Exception { + RagCorpus expectedResponse = + RagCorpus.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCorpusStatus(CorpusStatus.newBuilder().build()) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + + RagCorpus actualResponse = client.getRagCorpus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRagCorpusRequest actualRequest = ((GetRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRagCorpusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + client.getRagCorpus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRagCorpusTest2() throws Exception { + RagCorpus expectedResponse = + RagCorpus.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCorpusStatus(CorpusStatus.newBuilder().build()) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + String name = "name3373707"; + + RagCorpus actualResponse = client.getRagCorpus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRagCorpusRequest actualRequest = ((GetRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRagCorpusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String name = "name3373707"; + client.getRagCorpus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRagCorporaTest() throws Exception { + RagCorpus responsesElement = RagCorpus.newBuilder().build(); + ListRagCorporaResponse expectedResponse = + ListRagCorporaResponse.newBuilder() + .setNextPageToken("") + .addAllRagCorpora(Arrays.asList(responsesElement)) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRagCorporaPagedResponse pagedListResponse = client.listRagCorpora(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRagCorporaList().get(0), resources.get(0)); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRagCorporaRequest actualRequest = ((ListRagCorporaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRagCorporaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRagCorpora(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRagCorporaTest2() throws Exception { + RagCorpus responsesElement = RagCorpus.newBuilder().build(); + ListRagCorporaResponse expectedResponse = + ListRagCorporaResponse.newBuilder() + .setNextPageToken("") + .addAllRagCorpora(Arrays.asList(responsesElement)) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRagCorporaPagedResponse pagedListResponse = client.listRagCorpora(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRagCorporaList().get(0), resources.get(0)); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRagCorporaRequest actualRequest = ((ListRagCorporaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRagCorporaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRagCorpora(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRagCorpusTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRagCorpusTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + + client.deleteRagCorpusAsync(name).get(); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRagCorpusRequest actualRequest = ((DeleteRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRagCorpusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + client.deleteRagCorpusAsync(name).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 deleteRagCorpusTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRagCorpusTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteRagCorpusAsync(name).get(); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRagCorpusRequest actualRequest = ((DeleteRagCorpusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRagCorpusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteRagCorpusAsync(name).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 uploadRagFileTest() throws Exception { + UploadRagFileResponse expectedResponse = UploadRagFileResponse.newBuilder().build(); + mockVertexRagDataService.addResponse(expectedResponse); + + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + + UploadRagFileResponse actualResponse = + client.uploadRagFile(parent, ragFile, uploadRagFileConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UploadRagFileRequest actualRequest = ((UploadRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(ragFile, actualRequest.getRagFile()); + Assert.assertEquals(uploadRagFileConfig, actualRequest.getUploadRagFileConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void uploadRagFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + client.uploadRagFile(parent, ragFile, uploadRagFileConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void uploadRagFileTest2() throws Exception { + UploadRagFileResponse expectedResponse = UploadRagFileResponse.newBuilder().build(); + mockVertexRagDataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + + UploadRagFileResponse actualResponse = + client.uploadRagFile(parent, ragFile, uploadRagFileConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UploadRagFileRequest actualRequest = ((UploadRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(ragFile, actualRequest.getRagFile()); + Assert.assertEquals(uploadRagFileConfig, actualRequest.getUploadRagFileConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void uploadRagFileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String parent = "parent-995424086"; + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + client.uploadRagFile(parent, ragFile, uploadRagFileConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importRagFilesTest() throws Exception { + ImportRagFilesResponse expectedResponse = + ImportRagFilesResponse.newBuilder() + .setImportedRagFilesCount(1148003429) + .setFailedRagFilesCount(-854525026) + .setSkippedRagFilesCount(-1294759791) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importRagFilesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + + ImportRagFilesResponse actualResponse = + client.importRagFilesAsync(parent, importRagFilesConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportRagFilesRequest actualRequest = ((ImportRagFilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(importRagFilesConfig, actualRequest.getImportRagFilesConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importRagFilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + client.importRagFilesAsync(parent, importRagFilesConfig).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 importRagFilesTest2() throws Exception { + ImportRagFilesResponse expectedResponse = + ImportRagFilesResponse.newBuilder() + .setImportedRagFilesCount(1148003429) + .setFailedRagFilesCount(-854525026) + .setSkippedRagFilesCount(-1294759791) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importRagFilesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + + ImportRagFilesResponse actualResponse = + client.importRagFilesAsync(parent, importRagFilesConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportRagFilesRequest actualRequest = ((ImportRagFilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(importRagFilesConfig, actualRequest.getImportRagFilesConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importRagFilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String parent = "parent-995424086"; + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + client.importRagFilesAsync(parent, importRagFilesConfig).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 getRagFileTest() throws Exception { + RagFile expectedResponse = + RagFile.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setFileStatus(FileStatus.newBuilder().build()) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + + RagFile actualResponse = client.getRagFile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRagFileRequest actualRequest = ((GetRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRagFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + client.getRagFile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRagFileTest2() throws Exception { + RagFile expectedResponse = + RagFile.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setFileStatus(FileStatus.newBuilder().build()) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + String name = "name3373707"; + + RagFile actualResponse = client.getRagFile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRagFileRequest actualRequest = ((GetRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRagFileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String name = "name3373707"; + client.getRagFile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRagFilesTest() throws Exception { + RagFile responsesElement = RagFile.newBuilder().build(); + ListRagFilesResponse expectedResponse = + ListRagFilesResponse.newBuilder() + .setNextPageToken("") + .addAllRagFiles(Arrays.asList(responsesElement)) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + + ListRagFilesPagedResponse pagedListResponse = client.listRagFiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRagFilesList().get(0), resources.get(0)); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRagFilesRequest actualRequest = ((ListRagFilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRagFilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + client.listRagFiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRagFilesTest2() throws Exception { + RagFile responsesElement = RagFile.newBuilder().build(); + ListRagFilesResponse expectedResponse = + ListRagFilesResponse.newBuilder() + .setNextPageToken("") + .addAllRagFiles(Arrays.asList(responsesElement)) + .build(); + mockVertexRagDataService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRagFilesPagedResponse pagedListResponse = client.listRagFiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRagFilesList().get(0), resources.get(0)); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRagFilesRequest actualRequest = ((ListRagFilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRagFilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRagFiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRagFileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRagFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + + client.deleteRagFileAsync(name).get(); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRagFileRequest actualRequest = ((DeleteRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRagFileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + client.deleteRagFileAsync(name).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 deleteRagFileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRagFileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVertexRagDataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteRagFileAsync(name).get(); + + List actualRequests = mockVertexRagDataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRagFileRequest actualRequest = ((DeleteRagFileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRagFileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagDataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteRagFileAsync(name).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(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagServiceClientTest.java new file mode 100644 index 000000000000..89a2d9e8d5bb --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VertexRagServiceClientTest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static com.google.cloud.aiplatform.v1.VertexRagServiceClient.ListLocationsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +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; +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 VertexRagServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockVertexRagService mockVertexRagService; + private LocalChannelProvider channelProvider; + private VertexRagServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockVertexRagService = new MockVertexRagService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockVertexRagService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + VertexRagServiceSettings settings = + VertexRagServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VertexRagServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void retrieveContextsTest() throws Exception { + RetrieveContextsResponse expectedResponse = + RetrieveContextsResponse.newBuilder().setContexts(RagContexts.newBuilder().build()).build(); + mockVertexRagService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagQuery query = RagQuery.newBuilder().build(); + + RetrieveContextsResponse actualResponse = client.retrieveContexts(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveContextsRequest actualRequest = ((RetrieveContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveContextsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagQuery query = RagQuery.newBuilder().build(); + client.retrieveContexts(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveContextsTest2() throws Exception { + RetrieveContextsResponse expectedResponse = + RetrieveContextsResponse.newBuilder().setContexts(RagContexts.newBuilder().build()).build(); + mockVertexRagService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + RagQuery query = RagQuery.newBuilder().build(); + + RetrieveContextsResponse actualResponse = client.retrieveContexts(parent, query); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveContextsRequest actualRequest = ((RetrieveContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveContextsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + String parent = "parent-995424086"; + RagQuery query = RagQuery.newBuilder().build(); + client.retrieveContexts(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void augmentPromptTest() throws Exception { + AugmentPromptResponse expectedResponse = + AugmentPromptResponse.newBuilder() + .addAllAugmentedPrompt(new ArrayList()) + .addAllFacts(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + + AugmentPromptResponse actualResponse = client.augmentPrompt(parent, model, vertexRagStore); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AugmentPromptRequest actualRequest = ((AugmentPromptRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(vertexRagStore, actualRequest.getVertexRagStore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void augmentPromptExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + client.augmentPrompt(parent, model, vertexRagStore); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void augmentPromptTest2() throws Exception { + AugmentPromptResponse expectedResponse = + AugmentPromptResponse.newBuilder() + .addAllAugmentedPrompt(new ArrayList()) + .addAllFacts(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + + AugmentPromptResponse actualResponse = client.augmentPrompt(parent, model, vertexRagStore); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AugmentPromptRequest actualRequest = ((AugmentPromptRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(vertexRagStore, actualRequest.getVertexRagStore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void augmentPromptExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + String parent = "parent-995424086"; + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + client.augmentPrompt(parent, model, vertexRagStore); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void corroborateContentTest() throws Exception { + CorroborateContentResponse expectedResponse = + CorroborateContentResponse.newBuilder() + .setCorroborationScore(-1042003226) + .addAllClaims(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + + CorroborateContentResponse actualResponse = client.corroborateContent(parent, content, facts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CorroborateContentRequest actualRequest = ((CorroborateContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertEquals(facts, actualRequest.getFactsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void corroborateContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + client.corroborateContent(parent, content, facts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void corroborateContentTest2() throws Exception { + CorroborateContentResponse expectedResponse = + CorroborateContentResponse.newBuilder() + .setCorroborationScore(-1042003226) + .addAllClaims(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + + CorroborateContentResponse actualResponse = client.corroborateContent(parent, content, facts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CorroborateContentRequest actualRequest = ((CorroborateContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertEquals(facts, actualRequest.getFactsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void corroborateContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + String parent = "parent-995424086"; + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + client.corroborateContent(parent, content, facts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index 16f30f10d166..0114dc849e81 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java @@ -158,6 +158,18 @@ public void evaluateInstancesTest() throws Exception { request.getToolParameterKeyMatchInput(), actualRequest.getToolParameterKeyMatchInput()); Assert.assertEquals( request.getToolParameterKvMatchInput(), actualRequest.getToolParameterKvMatchInput()); + Assert.assertEquals( + request.getTrajectoryExactMatchInput(), actualRequest.getTrajectoryExactMatchInput()); + Assert.assertEquals( + request.getTrajectoryInOrderMatchInput(), actualRequest.getTrajectoryInOrderMatchInput()); + Assert.assertEquals( + request.getTrajectoryAnyOrderMatchInput(), actualRequest.getTrajectoryAnyOrderMatchInput()); + Assert.assertEquals( + request.getTrajectoryPrecisionInput(), actualRequest.getTrajectoryPrecisionInput()); + Assert.assertEquals( + request.getTrajectoryRecallInput(), actualRequest.getTrajectoryRecallInput()); + Assert.assertEquals( + request.getTrajectorySingleToolUseInput(), actualRequest.getTrajectorySingleToolUseInput()); Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); Assert.assertTrue( channelProvider.isHeaderSent( diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClientTest.java index 6b84d0c45b28..60a3aafd26df 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClientTest.java @@ -121,6 +121,7 @@ public void createFeatureGroupTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setDescription("description-1724546052") + .setServiceAccountEmail("serviceAccountEmail1825953988") .build(); Operation resultOperation = Operation.newBuilder() @@ -179,6 +180,7 @@ public void createFeatureGroupTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setDescription("description-1724546052") + .setServiceAccountEmail("serviceAccountEmail1825953988") .build(); Operation resultOperation = Operation.newBuilder() @@ -237,6 +239,7 @@ public void getFeatureGroupTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setDescription("description-1724546052") + .setServiceAccountEmail("serviceAccountEmail1825953988") .build(); mockFeatureRegistryService.addResponse(expectedResponse); @@ -280,6 +283,7 @@ public void getFeatureGroupTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setDescription("description-1724546052") + .setServiceAccountEmail("serviceAccountEmail1825953988") .build(); mockFeatureRegistryService.addResponse(expectedResponse); @@ -411,6 +415,7 @@ public void updateFeatureGroupTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setDescription("description-1724546052") + .setServiceAccountEmail("serviceAccountEmail1825953988") .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java index 5b910a3e25a5..b1afa3a7ddd4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; import com.google.protobuf.AbstractMessage; @@ -80,4 +81,25 @@ public void queryReasoningEngine( Exception.class.getName()))); } } + + @Override + public void streamQueryReasoningEngine( + StreamQueryReasoningEngineRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HttpBody) { + requests.add(request); + responseObserver.onNext(((HttpBody) 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 StreamQueryReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HttpBody.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVertexRagServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVertexRagServiceImpl.java index ee287fad1bcf..a9226ab7b4d6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVertexRagServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVertexRagServiceImpl.java @@ -78,4 +78,47 @@ public void retrieveContexts( Exception.class.getName()))); } } + + @Override + public void augmentPrompt( + AugmentPromptRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AugmentPromptResponse) { + requests.add(request); + responseObserver.onNext(((AugmentPromptResponse) 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 AugmentPrompt, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AugmentPromptResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void corroborateContent( + CorroborateContentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CorroborateContentResponse) { + requests.add(request); + responseObserver.onNext(((CorroborateContentResponse) 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 CorroborateContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CorroborateContentResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClientTest.java index 75decdc19cce..bd60b51b8f77 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClientTest.java @@ -1554,6 +1554,7 @@ public void createNotebookExecutionJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -1624,6 +1625,7 @@ public void createNotebookExecutionJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -1694,6 +1696,7 @@ public void getNotebookExecutionJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockNotebookService.addResponse(expectedResponse); @@ -1747,6 +1750,7 @@ public void getNotebookExecutionJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setKernelName("kernelName1230361704") .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockNotebookService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java index d29d07e07bf7..aca821380013 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java @@ -18,13 +18,17 @@ import static com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; +import com.google.api.HttpBody; 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.grpc.testing.MockStreamObserver; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -51,6 +55,7 @@ import java.util.HashMap; 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; @@ -116,6 +121,7 @@ public void queryReasoningEngineTest() throws Exception { .setName( ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") .build(); QueryReasoningEngineResponse actualResponse = client.queryReasoningEngine(request); @@ -128,6 +134,7 @@ public void queryReasoningEngineTest() throws Exception { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getInput(), actualRequest.getInput()); + Assert.assertEquals(request.getClassMethod(), actualRequest.getClassMethod()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -146,6 +153,7 @@ public void queryReasoningEngineExceptionTest() throws Exception { ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") .toString()) .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") .build(); client.queryReasoningEngine(request); Assert.fail("No exception raised"); @@ -154,6 +162,62 @@ public void queryReasoningEngineExceptionTest() throws Exception { } } + @Test + public void streamQueryReasoningEngineTest() throws Exception { + HttpBody expectedResponse = + HttpBody.newBuilder() + .setContentType("contentType-389131437") + .setData(ByteString.EMPTY) + .addAllExtensions(new ArrayList()) + .build(); + mockReasoningEngineExecutionService.addResponse(expectedResponse); + StreamQueryReasoningEngineRequest request = + StreamQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamQueryReasoningEngineCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamQueryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + StreamQueryReasoningEngineRequest request = + StreamQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamQueryReasoningEngineCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + 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/VertexRagServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClientTest.java index 141343c0a769..eae1ed60b3a3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClientTest.java @@ -178,6 +178,186 @@ public void retrieveContextsExceptionTest2() throws Exception { } } + @Test + public void augmentPromptTest() throws Exception { + AugmentPromptResponse expectedResponse = + AugmentPromptResponse.newBuilder() + .addAllAugmentedPrompt(new ArrayList()) + .addAllFacts(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + + AugmentPromptResponse actualResponse = client.augmentPrompt(parent, model, vertexRagStore); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AugmentPromptRequest actualRequest = ((AugmentPromptRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(vertexRagStore, actualRequest.getVertexRagStore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void augmentPromptExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + client.augmentPrompt(parent, model, vertexRagStore); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void augmentPromptTest2() throws Exception { + AugmentPromptResponse expectedResponse = + AugmentPromptResponse.newBuilder() + .addAllAugmentedPrompt(new ArrayList()) + .addAllFacts(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + + AugmentPromptResponse actualResponse = client.augmentPrompt(parent, model, vertexRagStore); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AugmentPromptRequest actualRequest = ((AugmentPromptRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(model, actualRequest.getModel()); + Assert.assertEquals(vertexRagStore, actualRequest.getVertexRagStore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void augmentPromptExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + String parent = "parent-995424086"; + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + client.augmentPrompt(parent, model, vertexRagStore); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void corroborateContentTest() throws Exception { + CorroborateContentResponse expectedResponse = + CorroborateContentResponse.newBuilder() + .setCorroborationScore(-1042003226) + .addAllClaims(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + + CorroborateContentResponse actualResponse = client.corroborateContent(parent, content, facts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CorroborateContentRequest actualRequest = ((CorroborateContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertEquals(facts, actualRequest.getFactsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void corroborateContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + client.corroborateContent(parent, content, facts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void corroborateContentTest2() throws Exception { + CorroborateContentResponse expectedResponse = + CorroborateContentResponse.newBuilder() + .setCorroborationScore(-1042003226) + .addAllClaims(new ArrayList()) + .build(); + mockVertexRagService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + + CorroborateContentResponse actualResponse = client.corroborateContent(parent, content, facts); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVertexRagService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CorroborateContentRequest actualRequest = ((CorroborateContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(content, actualRequest.getContent()); + Assert.assertEquals(facts, actualRequest.getFactsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void corroborateContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVertexRagService.addException(exception); + + try { + String parent = "parent-995424086"; + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + client.corroborateContent(parent, content, facts); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java index 6e19931d9c98..d5b73eb48b6d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceGrpc.java @@ -217,6 +217,57 @@ private EndpointServiceGrpc() {} return getUpdateEndpointMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEndpointLongRunning", + requestType = com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation> + getUpdateEndpointLongRunningMethod; + if ((getUpdateEndpointLongRunningMethod = + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod) + == null) { + synchronized (EndpointServiceGrpc.class) { + if ((getUpdateEndpointLongRunningMethod = + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod) + == null) { + EndpointServiceGrpc.getUpdateEndpointLongRunningMethod = + getUpdateEndpointLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEndpointLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EndpointServiceMethodDescriptorSupplier("UpdateEndpointLongRunning")) + .build(); + } + } + } + return getUpdateEndpointLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.DeleteEndpointRequest, com.google.longrunning.Operation> getDeleteEndpointMethod; @@ -501,6 +552,20 @@ default void updateEndpoint( getUpdateEndpointMethod(), responseObserver); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + default void updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointLongRunningMethod(), responseObserver); + } + /** * * @@ -661,6 +726,22 @@ public void updateEndpoint( responseObserver); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public void updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEndpointLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -801,6 +882,19 @@ public com.google.cloud.aiplatform.v1.Endpoint updateEndpoint( getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public com.google.longrunning.Operation updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -932,6 +1026,20 @@ protected EndpointServiceFutureStub build( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates an Endpoint with a long running operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateEndpointLongRunning( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEndpointLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -993,10 +1101,11 @@ protected EndpointServiceFutureStub build( private static final int METHODID_GET_ENDPOINT = 1; private static final int METHODID_LIST_ENDPOINTS = 2; private static final int METHODID_UPDATE_ENDPOINT = 3; - private static final int METHODID_DELETE_ENDPOINT = 4; - private static final int METHODID_DEPLOY_MODEL = 5; - private static final int METHODID_UNDEPLOY_MODEL = 6; - private static final int METHODID_MUTATE_DEPLOYED_MODEL = 7; + private static final int METHODID_UPDATE_ENDPOINT_LONG_RUNNING = 4; + private static final int METHODID_DELETE_ENDPOINT = 5; + private static final int METHODID_DEPLOY_MODEL = 6; + private static final int METHODID_UNDEPLOY_MODEL = 7; + private static final int METHODID_MUTATE_DEPLOYED_MODEL = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1038,6 +1147,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ENDPOINT_LONG_RUNNING: + serviceImpl.updateEndpointLongRunning( + (com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_ENDPOINT: serviceImpl.deleteEndpoint( (com.google.cloud.aiplatform.v1.DeleteEndpointRequest) request, @@ -1101,6 +1215,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateEndpointRequest, com.google.cloud.aiplatform.v1.Endpoint>(service, METHODID_UPDATE_ENDPOINT))) + .addMethod( + getUpdateEndpointLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_ENDPOINT_LONG_RUNNING))) .addMethod( getDeleteEndpointMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1180,6 +1301,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetEndpointMethod()) .addMethod(getListEndpointsMethod()) .addMethod(getUpdateEndpointMethod()) + .addMethod(getUpdateEndpointLongRunningMethod()) .addMethod(getDeleteEndpointMethod()) .addMethod(getDeployModelMethod()) .addMethod(getUndeployModelMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java new file mode 100644 index 000000000000..ffdef7bcb6f9 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceGrpc.java @@ -0,0 +1,1416 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for managing user data for RAG.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class VertexRagDataServiceGrpc { + + private VertexRagDataServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1.VertexRagDataService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest, com.google.longrunning.Operation> + getCreateRagCorpusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRagCorpus", + requestType = com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest, com.google.longrunning.Operation> + getCreateRagCorpusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest, com.google.longrunning.Operation> + getCreateRagCorpusMethod; + if ((getCreateRagCorpusMethod = VertexRagDataServiceGrpc.getCreateRagCorpusMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getCreateRagCorpusMethod = VertexRagDataServiceGrpc.getCreateRagCorpusMethod) + == null) { + VertexRagDataServiceGrpc.getCreateRagCorpusMethod = + getCreateRagCorpusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRagCorpus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("CreateRagCorpus")) + .build(); + } + } + } + return getCreateRagCorpusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest, com.google.longrunning.Operation> + getUpdateRagCorpusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRagCorpus", + requestType = com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest, com.google.longrunning.Operation> + getUpdateRagCorpusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest, com.google.longrunning.Operation> + getUpdateRagCorpusMethod; + if ((getUpdateRagCorpusMethod = VertexRagDataServiceGrpc.getUpdateRagCorpusMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getUpdateRagCorpusMethod = VertexRagDataServiceGrpc.getUpdateRagCorpusMethod) + == null) { + VertexRagDataServiceGrpc.getUpdateRagCorpusMethod = + getUpdateRagCorpusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRagCorpus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("UpdateRagCorpus")) + .build(); + } + } + } + return getUpdateRagCorpusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagCorpusRequest, + com.google.cloud.aiplatform.v1.RagCorpus> + getGetRagCorpusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRagCorpus", + requestType = com.google.cloud.aiplatform.v1.GetRagCorpusRequest.class, + responseType = com.google.cloud.aiplatform.v1.RagCorpus.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagCorpusRequest, + com.google.cloud.aiplatform.v1.RagCorpus> + getGetRagCorpusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagCorpusRequest, + com.google.cloud.aiplatform.v1.RagCorpus> + getGetRagCorpusMethod; + if ((getGetRagCorpusMethod = VertexRagDataServiceGrpc.getGetRagCorpusMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getGetRagCorpusMethod = VertexRagDataServiceGrpc.getGetRagCorpusMethod) == null) { + VertexRagDataServiceGrpc.getGetRagCorpusMethod = + getGetRagCorpusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRagCorpus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("GetRagCorpus")) + .build(); + } + } + } + return getGetRagCorpusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagCorporaRequest, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse> + getListRagCorporaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRagCorpora", + requestType = com.google.cloud.aiplatform.v1.ListRagCorporaRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListRagCorporaResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagCorporaRequest, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse> + getListRagCorporaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagCorporaRequest, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse> + getListRagCorporaMethod; + if ((getListRagCorporaMethod = VertexRagDataServiceGrpc.getListRagCorporaMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getListRagCorporaMethod = VertexRagDataServiceGrpc.getListRagCorporaMethod) == null) { + VertexRagDataServiceGrpc.getListRagCorporaMethod = + getListRagCorporaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRagCorpora")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListRagCorporaResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("ListRagCorpora")) + .build(); + } + } + } + return getListRagCorporaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest, com.google.longrunning.Operation> + getDeleteRagCorpusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRagCorpus", + requestType = com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest, com.google.longrunning.Operation> + getDeleteRagCorpusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest, com.google.longrunning.Operation> + getDeleteRagCorpusMethod; + if ((getDeleteRagCorpusMethod = VertexRagDataServiceGrpc.getDeleteRagCorpusMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getDeleteRagCorpusMethod = VertexRagDataServiceGrpc.getDeleteRagCorpusMethod) + == null) { + VertexRagDataServiceGrpc.getDeleteRagCorpusMethod = + getDeleteRagCorpusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRagCorpus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("DeleteRagCorpus")) + .build(); + } + } + } + return getDeleteRagCorpusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UploadRagFileRequest, + com.google.cloud.aiplatform.v1.UploadRagFileResponse> + getUploadRagFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UploadRagFile", + requestType = com.google.cloud.aiplatform.v1.UploadRagFileRequest.class, + responseType = com.google.cloud.aiplatform.v1.UploadRagFileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UploadRagFileRequest, + com.google.cloud.aiplatform.v1.UploadRagFileResponse> + getUploadRagFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UploadRagFileRequest, + com.google.cloud.aiplatform.v1.UploadRagFileResponse> + getUploadRagFileMethod; + if ((getUploadRagFileMethod = VertexRagDataServiceGrpc.getUploadRagFileMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getUploadRagFileMethod = VertexRagDataServiceGrpc.getUploadRagFileMethod) == null) { + VertexRagDataServiceGrpc.getUploadRagFileMethod = + getUploadRagFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadRagFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UploadRagFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UploadRagFileResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("UploadRagFile")) + .build(); + } + } + } + return getUploadRagFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ImportRagFilesRequest, com.google.longrunning.Operation> + getImportRagFilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportRagFiles", + requestType = com.google.cloud.aiplatform.v1.ImportRagFilesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ImportRagFilesRequest, com.google.longrunning.Operation> + getImportRagFilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ImportRagFilesRequest, com.google.longrunning.Operation> + getImportRagFilesMethod; + if ((getImportRagFilesMethod = VertexRagDataServiceGrpc.getImportRagFilesMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getImportRagFilesMethod = VertexRagDataServiceGrpc.getImportRagFilesMethod) == null) { + VertexRagDataServiceGrpc.getImportRagFilesMethod = + getImportRagFilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportRagFiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("ImportRagFiles")) + .build(); + } + } + } + return getImportRagFilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagFileRequest, com.google.cloud.aiplatform.v1.RagFile> + getGetRagFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRagFile", + requestType = com.google.cloud.aiplatform.v1.GetRagFileRequest.class, + responseType = com.google.cloud.aiplatform.v1.RagFile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagFileRequest, com.google.cloud.aiplatform.v1.RagFile> + getGetRagFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetRagFileRequest, + com.google.cloud.aiplatform.v1.RagFile> + getGetRagFileMethod; + if ((getGetRagFileMethod = VertexRagDataServiceGrpc.getGetRagFileMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getGetRagFileMethod = VertexRagDataServiceGrpc.getGetRagFileMethod) == null) { + VertexRagDataServiceGrpc.getGetRagFileMethod = + getGetRagFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRagFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetRagFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("GetRagFile")) + .build(); + } + } + } + return getGetRagFileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagFilesRequest, + com.google.cloud.aiplatform.v1.ListRagFilesResponse> + getListRagFilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRagFiles", + requestType = com.google.cloud.aiplatform.v1.ListRagFilesRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListRagFilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagFilesRequest, + com.google.cloud.aiplatform.v1.ListRagFilesResponse> + getListRagFilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListRagFilesRequest, + com.google.cloud.aiplatform.v1.ListRagFilesResponse> + getListRagFilesMethod; + if ((getListRagFilesMethod = VertexRagDataServiceGrpc.getListRagFilesMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getListRagFilesMethod = VertexRagDataServiceGrpc.getListRagFilesMethod) == null) { + VertexRagDataServiceGrpc.getListRagFilesMethod = + getListRagFilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRagFiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListRagFilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListRagFilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("ListRagFiles")) + .build(); + } + } + } + return getListRagFilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagFileRequest, com.google.longrunning.Operation> + getDeleteRagFileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRagFile", + requestType = com.google.cloud.aiplatform.v1.DeleteRagFileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagFileRequest, com.google.longrunning.Operation> + getDeleteRagFileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteRagFileRequest, com.google.longrunning.Operation> + getDeleteRagFileMethod; + if ((getDeleteRagFileMethod = VertexRagDataServiceGrpc.getDeleteRagFileMethod) == null) { + synchronized (VertexRagDataServiceGrpc.class) { + if ((getDeleteRagFileMethod = VertexRagDataServiceGrpc.getDeleteRagFileMethod) == null) { + VertexRagDataServiceGrpc.getDeleteRagFileMethod = + getDeleteRagFileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRagFile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagDataServiceMethodDescriptorSupplier("DeleteRagFile")) + .build(); + } + } + } + return getDeleteRagFileMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VertexRagDataServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagDataServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceStub(channel, callOptions); + } + }; + return VertexRagDataServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VertexRagDataServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagDataServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceBlockingStub(channel, callOptions); + } + }; + return VertexRagDataServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VertexRagDataServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagDataServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceFutureStub(channel, callOptions); + } + }; + return VertexRagDataServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for managing user data for RAG.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a RagCorpus.
+     * 
+ */ + default void createRagCorpus( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRagCorpusMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a RagCorpus.
+     * 
+ */ + default void updateRagCorpus( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRagCorpusMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a RagCorpus.
+     * 
+ */ + default void getRagCorpus( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRagCorpusMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists RagCorpora in a Location.
+     * 
+ */ + default void listRagCorpora( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRagCorporaMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a RagCorpus.
+     * 
+ */ + default void deleteRagCorpus( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRagCorpusMethod(), responseObserver); + } + + /** + * + * + *
+     * Upload a file into a RagCorpus.
+     * 
+ */ + default void uploadRagFile( + com.google.cloud.aiplatform.v1.UploadRagFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUploadRagFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Import files from Google Cloud Storage or Google Drive into a RagCorpus.
+     * 
+ */ + default void importRagFiles( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportRagFilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a RagFile.
+     * 
+ */ + default void getRagFile( + com.google.cloud.aiplatform.v1.GetRagFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRagFileMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists RagFiles in a RagCorpus.
+     * 
+ */ + default void listRagFiles( + com.google.cloud.aiplatform.v1.ListRagFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRagFilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a RagFile.
+     * 
+ */ + default void deleteRagFile( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRagFileMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service VertexRagDataService. + * + *
+   * A service for managing user data for RAG.
+   * 
+ */ + public abstract static class VertexRagDataServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return VertexRagDataServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service VertexRagDataService. + * + *
+   * A service for managing user data for RAG.
+   * 
+ */ + public static final class VertexRagDataServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private VertexRagDataServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagDataServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a RagCorpus.
+     * 
+ */ + public void createRagCorpus( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRagCorpusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a RagCorpus.
+     * 
+ */ + public void updateRagCorpus( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRagCorpusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a RagCorpus.
+     * 
+ */ + public void getRagCorpus( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRagCorpusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists RagCorpora in a Location.
+     * 
+ */ + public void listRagCorpora( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRagCorporaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a RagCorpus.
+     * 
+ */ + public void deleteRagCorpus( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRagCorpusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Upload a file into a RagCorpus.
+     * 
+ */ + public void uploadRagFile( + com.google.cloud.aiplatform.v1.UploadRagFileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUploadRagFileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Import files from Google Cloud Storage or Google Drive into a RagCorpus.
+     * 
+ */ + public void importRagFiles( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportRagFilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a RagFile.
+     * 
+ */ + public void getRagFile( + com.google.cloud.aiplatform.v1.GetRagFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRagFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists RagFiles in a RagCorpus.
+     * 
+ */ + public void listRagFiles( + com.google.cloud.aiplatform.v1.ListRagFilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRagFilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a RagFile.
+     * 
+ */ + public void deleteRagFile( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRagFileMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service VertexRagDataService. + * + *
+   * A service for managing user data for RAG.
+   * 
+ */ + public static final class VertexRagDataServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VertexRagDataServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagDataServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a RagCorpus.
+     * 
+ */ + public com.google.longrunning.Operation createRagCorpus( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRagCorpusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a RagCorpus.
+     * 
+ */ + public com.google.longrunning.Operation updateRagCorpus( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRagCorpusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a RagCorpus.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRagCorpusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists RagCorpora in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListRagCorporaResponse listRagCorpora( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRagCorporaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a RagCorpus.
+     * 
+ */ + public com.google.longrunning.Operation deleteRagCorpus( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRagCorpusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upload a file into a RagCorpus.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.UploadRagFileResponse uploadRagFile( + com.google.cloud.aiplatform.v1.UploadRagFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadRagFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Import files from Google Cloud Storage or Google Drive into a RagCorpus.
+     * 
+ */ + public com.google.longrunning.Operation importRagFiles( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportRagFilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a RagFile.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.RagFile getRagFile( + com.google.cloud.aiplatform.v1.GetRagFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRagFileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists RagFiles in a RagCorpus.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListRagFilesResponse listRagFiles( + com.google.cloud.aiplatform.v1.ListRagFilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRagFilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a RagFile.
+     * 
+ */ + public com.google.longrunning.Operation deleteRagFile( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRagFileMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service VertexRagDataService. + * + *
+   * A service for managing user data for RAG.
+   * 
+ */ + public static final class VertexRagDataServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VertexRagDataServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagDataServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagDataServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRagCorpus(com.google.cloud.aiplatform.v1.CreateRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRagCorpusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRagCorpus(com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRagCorpusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.RagCorpus> + getRagCorpus(com.google.cloud.aiplatform.v1.GetRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRagCorpusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists RagCorpora in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListRagCorporaResponse> + listRagCorpora(com.google.cloud.aiplatform.v1.ListRagCorporaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRagCorporaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRagCorpus(com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRagCorpusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Upload a file into a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.UploadRagFileResponse> + uploadRagFile(com.google.cloud.aiplatform.v1.UploadRagFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUploadRagFileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Import files from Google Cloud Storage or Google Drive into a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importRagFiles(com.google.cloud.aiplatform.v1.ImportRagFilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportRagFilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a RagFile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.RagFile> + getRagFile(com.google.cloud.aiplatform.v1.GetRagFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRagFileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists RagFiles in a RagCorpus.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListRagFilesResponse> + listRagFiles(com.google.cloud.aiplatform.v1.ListRagFilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRagFilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a RagFile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRagFile(com.google.cloud.aiplatform.v1.DeleteRagFileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRagFileMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RAG_CORPUS = 0; + private static final int METHODID_UPDATE_RAG_CORPUS = 1; + private static final int METHODID_GET_RAG_CORPUS = 2; + private static final int METHODID_LIST_RAG_CORPORA = 3; + private static final int METHODID_DELETE_RAG_CORPUS = 4; + private static final int METHODID_UPLOAD_RAG_FILE = 5; + private static final int METHODID_IMPORT_RAG_FILES = 6; + private static final int METHODID_GET_RAG_FILE = 7; + private static final int METHODID_LIST_RAG_FILES = 8; + private static final int METHODID_DELETE_RAG_FILE = 9; + + 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_CREATE_RAG_CORPUS: + serviceImpl.createRagCorpus( + (com.google.cloud.aiplatform.v1.CreateRagCorpusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RAG_CORPUS: + serviceImpl.updateRagCorpus( + (com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RAG_CORPUS: + serviceImpl.getRagCorpus( + (com.google.cloud.aiplatform.v1.GetRagCorpusRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RAG_CORPORA: + serviceImpl.listRagCorpora( + (com.google.cloud.aiplatform.v1.ListRagCorporaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RAG_CORPUS: + serviceImpl.deleteRagCorpus( + (com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPLOAD_RAG_FILE: + serviceImpl.uploadRagFile( + (com.google.cloud.aiplatform.v1.UploadRagFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_IMPORT_RAG_FILES: + serviceImpl.importRagFiles( + (com.google.cloud.aiplatform.v1.ImportRagFilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RAG_FILE: + serviceImpl.getRagFile( + (com.google.cloud.aiplatform.v1.GetRagFileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RAG_FILES: + serviceImpl.listRagFiles( + (com.google.cloud.aiplatform.v1.ListRagFilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_RAG_FILE: + serviceImpl.deleteRagFile( + (com.google.cloud.aiplatform.v1.DeleteRagFileRequest) 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( + getCreateRagCorpusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_RAG_CORPUS))) + .addMethod( + getUpdateRagCorpusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_RAG_CORPUS))) + .addMethod( + getGetRagCorpusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetRagCorpusRequest, + com.google.cloud.aiplatform.v1.RagCorpus>(service, METHODID_GET_RAG_CORPUS))) + .addMethod( + getListRagCorporaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListRagCorporaRequest, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse>( + service, METHODID_LIST_RAG_CORPORA))) + .addMethod( + getDeleteRagCorpusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_RAG_CORPUS))) + .addMethod( + getUploadRagFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UploadRagFileRequest, + com.google.cloud.aiplatform.v1.UploadRagFileResponse>( + service, METHODID_UPLOAD_RAG_FILE))) + .addMethod( + getImportRagFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ImportRagFilesRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_RAG_FILES))) + .addMethod( + getGetRagFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetRagFileRequest, + com.google.cloud.aiplatform.v1.RagFile>(service, METHODID_GET_RAG_FILE))) + .addMethod( + getListRagFilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListRagFilesRequest, + com.google.cloud.aiplatform.v1.ListRagFilesResponse>( + service, METHODID_LIST_RAG_FILES))) + .addMethod( + getDeleteRagFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteRagFileRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_RAG_FILE))) + .build(); + } + + private abstract static class VertexRagDataServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VertexRagDataServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VertexRagDataService"); + } + } + + private static final class VertexRagDataServiceFileDescriptorSupplier + extends VertexRagDataServiceBaseDescriptorSupplier { + VertexRagDataServiceFileDescriptorSupplier() {} + } + + private static final class VertexRagDataServiceMethodDescriptorSupplier + extends VertexRagDataServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + VertexRagDataServiceMethodDescriptorSupplier(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 (VertexRagDataServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VertexRagDataServiceFileDescriptorSupplier()) + .addMethod(getCreateRagCorpusMethod()) + .addMethod(getUpdateRagCorpusMethod()) + .addMethod(getGetRagCorpusMethod()) + .addMethod(getListRagCorporaMethod()) + .addMethod(getDeleteRagCorpusMethod()) + .addMethod(getUploadRagFileMethod()) + .addMethod(getImportRagFilesMethod()) + .addMethod(getGetRagFileMethod()) + .addMethod(getListRagFilesMethod()) + .addMethod(getDeleteRagFileMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java new file mode 100644 index 000000000000..35d11cf44ce7 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceGrpc.java @@ -0,0 +1,634 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for retrieving relevant contexts.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1/vertex_rag_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class VertexRagServiceGrpc { + + private VertexRagServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.aiplatform.v1.VertexRagService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse> + getRetrieveContextsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveContexts", + requestType = com.google.cloud.aiplatform.v1.RetrieveContextsRequest.class, + responseType = com.google.cloud.aiplatform.v1.RetrieveContextsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse> + getRetrieveContextsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse> + getRetrieveContextsMethod; + if ((getRetrieveContextsMethod = VertexRagServiceGrpc.getRetrieveContextsMethod) == null) { + synchronized (VertexRagServiceGrpc.class) { + if ((getRetrieveContextsMethod = VertexRagServiceGrpc.getRetrieveContextsMethod) == null) { + VertexRagServiceGrpc.getRetrieveContextsMethod = + getRetrieveContextsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveContexts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.RetrieveContextsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagServiceMethodDescriptorSupplier("RetrieveContexts")) + .build(); + } + } + } + return getRetrieveContextsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1.AugmentPromptResponse> + getAugmentPromptMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AugmentPrompt", + requestType = com.google.cloud.aiplatform.v1.AugmentPromptRequest.class, + responseType = com.google.cloud.aiplatform.v1.AugmentPromptResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1.AugmentPromptResponse> + getAugmentPromptMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1.AugmentPromptResponse> + getAugmentPromptMethod; + if ((getAugmentPromptMethod = VertexRagServiceGrpc.getAugmentPromptMethod) == null) { + synchronized (VertexRagServiceGrpc.class) { + if ((getAugmentPromptMethod = VertexRagServiceGrpc.getAugmentPromptMethod) == null) { + VertexRagServiceGrpc.getAugmentPromptMethod = + getAugmentPromptMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AugmentPrompt")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.AugmentPromptRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.AugmentPromptResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagServiceMethodDescriptorSupplier("AugmentPrompt")) + .build(); + } + } + } + return getAugmentPromptMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1.CorroborateContentResponse> + getCorroborateContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CorroborateContent", + requestType = com.google.cloud.aiplatform.v1.CorroborateContentRequest.class, + responseType = com.google.cloud.aiplatform.v1.CorroborateContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1.CorroborateContentResponse> + getCorroborateContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1.CorroborateContentResponse> + getCorroborateContentMethod; + if ((getCorroborateContentMethod = VertexRagServiceGrpc.getCorroborateContentMethod) == null) { + synchronized (VertexRagServiceGrpc.class) { + if ((getCorroborateContentMethod = VertexRagServiceGrpc.getCorroborateContentMethod) + == null) { + VertexRagServiceGrpc.getCorroborateContentMethod = + getCorroborateContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CorroborateContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CorroborateContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CorroborateContentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagServiceMethodDescriptorSupplier("CorroborateContent")) + .build(); + } + } + } + return getCorroborateContentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VertexRagServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceStub(channel, callOptions); + } + }; + return VertexRagServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VertexRagServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceBlockingStub(channel, callOptions); + } + }; + return VertexRagServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VertexRagServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VertexRagServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceFutureStub(channel, callOptions); + } + }; + return VertexRagServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for retrieving relevant contexts.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Retrieves relevant contexts for a query.
+     * 
+ */ + default void retrieveContexts( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveContextsMethod(), responseObserver); + } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + default void augmentPrompt( + com.google.cloud.aiplatform.v1.AugmentPromptRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAugmentPromptMethod(), responseObserver); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + default void corroborateContent( + com.google.cloud.aiplatform.v1.CorroborateContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCorroborateContentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service VertexRagService. + * + *
+   * A service for retrieving relevant contexts.
+   * 
+ */ + public abstract static class VertexRagServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return VertexRagServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service VertexRagService. + * + *
+   * A service for retrieving relevant contexts.
+   * 
+ */ + public static final class VertexRagServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private VertexRagServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves relevant contexts for a query.
+     * 
+ */ + public void retrieveContexts( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveContextsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public void augmentPrompt( + com.google.cloud.aiplatform.v1.AugmentPromptRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAugmentPromptMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public void corroborateContent( + com.google.cloud.aiplatform.v1.CorroborateContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service VertexRagService. + * + *
+   * A service for retrieving relevant contexts.
+   * 
+ */ + public static final class VertexRagServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VertexRagServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves relevant contexts for a query.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.RetrieveContextsResponse retrieveContexts( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.AugmentPromptResponse augmentPrompt( + com.google.cloud.aiplatform.v1.AugmentPromptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAugmentPromptMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.CorroborateContentResponse corroborateContent( + com.google.cloud.aiplatform.v1.CorroborateContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCorroborateContentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service VertexRagService. + * + *
+   * A service for retrieving relevant contexts.
+   * 
+ */ + public static final class VertexRagServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VertexRagServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VertexRagServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VertexRagServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieves relevant contexts for a query.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.RetrieveContextsResponse> + retrieveContexts(com.google.cloud.aiplatform.v1.RetrieveContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveContextsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.AugmentPromptResponse> + augmentPrompt(com.google.cloud.aiplatform.v1.AugmentPromptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAugmentPromptMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.CorroborateContentResponse> + corroborateContent(com.google.cloud.aiplatform.v1.CorroborateContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RETRIEVE_CONTEXTS = 0; + private static final int METHODID_AUGMENT_PROMPT = 1; + private static final int METHODID_CORROBORATE_CONTENT = 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_RETRIEVE_CONTEXTS: + serviceImpl.retrieveContexts( + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_AUGMENT_PROMPT: + serviceImpl.augmentPrompt( + (com.google.cloud.aiplatform.v1.AugmentPromptRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CORROBORATE_CONTENT: + serviceImpl.corroborateContent( + (com.google.cloud.aiplatform.v1.CorroborateContentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.CorroborateContentResponse>) + 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( + getRetrieveContextsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse>( + service, METHODID_RETRIEVE_CONTEXTS))) + .addMethod( + getAugmentPromptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1.AugmentPromptResponse>( + service, METHODID_AUGMENT_PROMPT))) + .addMethod( + getCorroborateContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1.CorroborateContentResponse>( + service, METHODID_CORROBORATE_CONTENT))) + .build(); + } + + private abstract static class VertexRagServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VertexRagServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VertexRagService"); + } + } + + private static final class VertexRagServiceFileDescriptorSupplier + extends VertexRagServiceBaseDescriptorSupplier { + VertexRagServiceFileDescriptorSupplier() {} + } + + private static final class VertexRagServiceMethodDescriptorSupplier + extends VertexRagServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + VertexRagServiceMethodDescriptorSupplier(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 (VertexRagServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VertexRagServiceFileDescriptorSupplier()) + .addMethod(getRetrieveContextsMethod()) + .addMethod(getAugmentPromptMethod()) + .addMethod(getCorroborateContentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java index 2b1a32106b27..0b28f643d063 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java @@ -89,6 +89,58 @@ private ReasoningEngineExecutionServiceGrpc() {} return getQueryReasoningEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, + com.google.api.HttpBody> + getStreamQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, + com.google.api.HttpBody> + getStreamQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, + com.google.api.HttpBody> + getStreamQueryReasoningEngineMethod; + if ((getStreamQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getStreamQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getStreamQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getStreamQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getStreamQueryReasoningEngineMethod = + getStreamQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamQueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "StreamQueryReasoningEngine")) + .build(); + } + } + } + return getStreamQueryReasoningEngineMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReasoningEngineExecutionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -155,6 +207,20 @@ default void queryReasoningEngine( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getQueryReasoningEngineMethod(), responseObserver); } + + /** + * + * + *
+     * Streams queries using a reasoning engine.
+     * 
+ */ + default void streamQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamQueryReasoningEngineMethod(), responseObserver); + } } /** @@ -211,6 +277,22 @@ public void queryReasoningEngine( request, responseObserver); } + + /** + * + * + *
+     * Streams queries using a reasoning engine.
+     * 
+ */ + public void streamQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -245,6 +327,19 @@ public com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse queryRea return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Streams queries using a reasoning engine.
+     * 
+ */ + public java.util.Iterator streamQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -285,6 +380,7 @@ protected ReasoningEngineExecutionServiceFutureStub build( } private static final int METHODID_QUERY_REASONING_ENGINE = 0; + private static final int METHODID_STREAM_QUERY_REASONING_ENGINE = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -310,6 +406,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse>) responseObserver); break; + case METHODID_STREAM_QUERY_REASONING_ENGINE: + serviceImpl.streamQueryReasoningEngine( + (com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -335,6 +436,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest, com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse>( service, METHODID_QUERY_REASONING_ENGINE))) + .addMethod( + getStreamQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, + com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) .build(); } @@ -389,6 +496,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor( new ReasoningEngineExecutionServiceFileDescriptorSupplier()) .addMethod(getQueryReasoningEngineMethod()) + .addMethod(getStreamQueryReasoningEngineMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java index 6284ba263f9a..52008ae842ba 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceGrpc.java @@ -83,6 +83,101 @@ private VertexRagServiceGrpc() {} return getRetrieveContextsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse> + getAugmentPromptMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AugmentPrompt", + requestType = com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse> + getAugmentPromptMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse> + getAugmentPromptMethod; + if ((getAugmentPromptMethod = VertexRagServiceGrpc.getAugmentPromptMethod) == null) { + synchronized (VertexRagServiceGrpc.class) { + if ((getAugmentPromptMethod = VertexRagServiceGrpc.getAugmentPromptMethod) == null) { + VertexRagServiceGrpc.getAugmentPromptMethod = + getAugmentPromptMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AugmentPrompt")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagServiceMethodDescriptorSupplier("AugmentPrompt")) + .build(); + } + } + } + return getAugmentPromptMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse> + getCorroborateContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CorroborateContent", + requestType = com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse> + getCorroborateContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse> + getCorroborateContentMethod; + if ((getCorroborateContentMethod = VertexRagServiceGrpc.getCorroborateContentMethod) == null) { + synchronized (VertexRagServiceGrpc.class) { + if ((getCorroborateContentMethod = VertexRagServiceGrpc.getCorroborateContentMethod) + == null) { + VertexRagServiceGrpc.getCorroborateContentMethod = + getCorroborateContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CorroborateContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VertexRagServiceMethodDescriptorSupplier("CorroborateContent")) + .build(); + } + } + } + return getCorroborateContentMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VertexRagServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -147,6 +242,39 @@ default void retrieveContexts( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRetrieveContextsMethod(), responseObserver); } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + default void augmentPrompt( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAugmentPromptMethod(), responseObserver); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + default void corroborateContent( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCorroborateContentMethod(), responseObserver); + } } /** @@ -199,6 +327,43 @@ public void retrieveContexts( request, responseObserver); } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public void augmentPrompt( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAugmentPromptMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public void corroborateContent( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -232,6 +397,35 @@ public com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse retrieveCont return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRetrieveContextsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse augmentPrompt( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAugmentPromptMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse corroborateContent( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCorroborateContentMethod(), getCallOptions(), request); + } } /** @@ -266,9 +460,42 @@ protected VertexRagServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRetrieveContextsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Given an input prompt, it returns augmented prompt from vertex rag store
+     *  to guide LLM towards generating grounded responses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse> + augmentPrompt(com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAugmentPromptMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Given an input text, it returns a score that evaluates the factuality of
+     * the text. It also extracts and returns claims from the text and provides
+     * supporting facts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse> + corroborateContent(com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), request); + } } private static final int METHODID_RETRIEVE_CONTEXTS = 0; + private static final int METHODID_AUGMENT_PROMPT = 1; + private static final int METHODID_CORROBORATE_CONTENT = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -294,6 +521,20 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse>) responseObserver); break; + case METHODID_AUGMENT_PROMPT: + serviceImpl.augmentPrompt( + (com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse>) + responseObserver); + break; + case METHODID_CORROBORATE_CONTENT: + serviceImpl.corroborateContent( + (com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -319,6 +560,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest, com.google.cloud.aiplatform.v1beta1.RetrieveContextsResponse>( service, METHODID_RETRIEVE_CONTEXTS))) + .addMethod( + getAugmentPromptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse>( + service, METHODID_AUGMENT_PROMPT))) + .addMethod( + getCorroborateContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse>( + service, METHODID_CORROBORATE_CONTENT))) .build(); } @@ -371,6 +626,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new VertexRagServiceFileDescriptorSupplier()) .addMethod(getRetrieveContextsMethod()) + .addMethod(getAugmentPromptMethod()) + .addMethod(getCorroborateContentMethod()) .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 c0beed86646b..938611a8264c 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 @@ -131,6 +131,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_80GB = 13; */ NVIDIA_H100_80GB(13), + /** + * + * + *
+   * Nvidia H100 Mega 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_MEGA_80GB = 14; + */ + NVIDIA_H100_MEGA_80GB(14), /** * * @@ -275,6 +285,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_80GB = 13; */ public static final int NVIDIA_H100_80GB_VALUE = 13; + /** + * + * + *
+   * Nvidia H100 Mega 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_MEGA_80GB = 14; + */ + public static final int NVIDIA_H100_MEGA_80GB_VALUE = 14; /** * * @@ -360,6 +380,8 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_L4; case 13: return NVIDIA_H100_80GB; + case 14: + return NVIDIA_H100_MEGA_80GB; case 6: return TPU_V2; case 7: diff --git a/java-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 9e937aba6dd9..8c81d3a3a65a 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,20 +38,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1/accelerator" + "_type.proto\022\032google.cloud.aiplatform.v1*" - + "\263\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + + "\316\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + "UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002\010\001\022" + "\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V" + "100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TES" + "LA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA" + "_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H1" - + "00_80GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU" - + "_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036com.go" - + "ogle.cloud.aiplatform.v1B\024AcceleratorTyp" - + "eProtoP\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" + + "00_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_80GB\020\016\022\n\n\006" + + "TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016" + + "TPU_V5_LITEPOD\020\014B\322\001\n\036com.google.cloud.ai" + + "platform.v1B\024AcceleratorTypeProtoP\001Z>clo" + + "ud.google.com/go/aiplatform/apiv1/aiplat" + + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla" + + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035" + + "Google::Cloud::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/ApiAuth.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuth.java new file mode 100644 index 000000000000..7bbf7462c804 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuth.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/api_auth.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The generic reusable api auth config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ApiAuth} + */ +public final class ApiAuth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ApiAuth) + ApiAuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiAuth.newBuilder() to construct. + private ApiAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiAuth() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiAuth(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ApiAuth.class, + com.google.cloud.aiplatform.v1.ApiAuth.Builder.class); + } + + public interface ApiKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + java.lang.String getApiKeySecretVersion(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + com.google.protobuf.ByteString getApiKeySecretVersionBytes(); + } + /** + * + * + *
+   * The API secret.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig} + */ + public static final class ApiKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) + ApiKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiKeyConfig.newBuilder() to construct. + private ApiKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiKeyConfig() { + apiKeySecretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.class, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder.class); + } + + public static final int API_KEY_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKeySecretVersion_ = ""; + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name storing API key.
+     * e.g. projects/{project}/secrets/{secret}/versions/{version}
+     * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKeySecretVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeySecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKeySecretVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig other = + (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) obj; + + if (!getApiKeySecretVersion().equals(other.getApiKeySecretVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + API_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiKeySecretVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.class, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKeySecretVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig build() { + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig buildPartial() { + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig result = + new com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKeySecretVersion_ = apiKeySecretVersion_; + } + } + + @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.ApiAuth.ApiKeyConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig other) { + if (other == com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance()) + return this; + if (!other.getApiKeySecretVersion().isEmpty()) { + apiKeySecretVersion_ = other.apiKeySecretVersion_; + 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: + { + apiKeySecretVersion_ = 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 apiKeySecretVersion_ = ""; + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApiKeySecretVersion() { + apiKeySecretVersion_ = getDefaultInstance().getApiKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name storing API key.
+       * e.g. projects/{project}/secrets/{secret}/versions/{version}
+       * 
+ * + * + * string api_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) + private static final com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig(); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyConfig 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.ApiAuth.ApiKeyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_KEY_CONFIG(1), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(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 AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return API_KEY_CONFIG; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (authConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_; + } + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_; + } + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (authConfigCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ApiAuth)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ApiAuth other = (com.google.cloud.aiplatform.v1.ApiAuth) obj; + + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 1: + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (authConfigCase_) { + case 1: + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth 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.ApiAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth 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.ApiAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.ApiAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The generic reusable api auth config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ApiAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ApiAuth) + com.google.cloud.aiplatform.v1.ApiAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ApiAuth.class, + com.google.cloud.aiplatform.v1.ApiAuth.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ApiAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.clear(); + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ApiAuthProto + .internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth build() { + com.google.cloud.aiplatform.v1.ApiAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth buildPartial() { + com.google.cloud.aiplatform.v1.ApiAuth result = + new com.google.cloud.aiplatform.v1.ApiAuth(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ApiAuth result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ApiAuth result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 1 && apiKeyConfigBuilder_ != null) { + result.authConfig_ = apiKeyConfigBuilder_.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.ApiAuth) { + return mergeFrom((com.google.cloud.aiplatform.v1.ApiAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ApiAuth other) { + if (other == com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance()) return this; + switch (other.getAuthConfigCase()) { + case API_KEY_CONFIG: + { + mergeApiKeyConfig(other.getApiKeyConfig()); + break; + } + case AUTHCONFIG_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(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 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 authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_; + } + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 1) { + return apiKeyConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + public Builder setApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + authConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + public Builder mergeApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1 + && authConfig_ + != com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.newBuilder( + (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 1) { + apiKeyConfigBuilder_.mergeFrom(value); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + public Builder clearApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + } + apiKeyConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder getApiKeyConfigBuilder() { + return getApiKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + if ((authConfigCase_ == 1) && (apiKeyConfigBuilder_ != null)) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_; + } + return com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * The API secret.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + if (!(authConfigCase_ == 1)) { + authConfig_ = com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance(); + } + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder>( + (com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 1; + onChanged(); + return apiKeyConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ApiAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ApiAuth) + private static final com.google.cloud.aiplatform.v1.ApiAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ApiAuth(); + } + + public static com.google.cloud.aiplatform.v1.ApiAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiAuth 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.ApiAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthOrBuilder.java new file mode 100644 index 000000000000..f622720c7525 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/api_auth.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ApiAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ApiAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + * + * @return The apiKeyConfig. + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig(); + /** + * + * + *
+   * The API secret.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 1; + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.ApiAuth.AuthConfigCase getAuthConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthProto.java new file mode 100644 index 000000000000..6c4718b2921f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ApiAuthProto.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/api_auth.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class ApiAuthProto { + private ApiAuthProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ApiAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/aiplatform/v1/api_auth.pr" + + "oto\022\032google.cloud.aiplatform.v1\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\"\310\001\n\007ApiAuth\022J\n\016api_key_confi" + + "g\030\001 \001(\01320.google.cloud.aiplatform.v1.Api" + + "Auth.ApiKeyConfigH\000\032b\n\014ApiKeyConfig\022R\n\026a" + + "pi_key_secret_version\030\001 \001(\tB2\340A\002\372A,\n*sec" + + "retmanager.googleapis.com/SecretVersionB" + + "\r\n\013auth_configB\270\002\n\036com.google.cloud.aipl" + + "atform.v1B\014ApiAuthProtoP\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::V1\352Ak\n*secretmanager.go" + + "ogleapis.com/SecretVersion\022=projects/{pr" + + "oject}/secrets/{secret}/versions/{secret" + + "_version}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_ApiAuth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor, + new java.lang.String[] { + "ApiKeyConfig", "AuthConfig", + }); + internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor = + internal_static_google_cloud_aiplatform_v1_ApiAuth_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ApiAuth_ApiKeyConfig_descriptor, + new java.lang.String[] { + "ApiKeySecretVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequest.java new file mode 100644 index 000000000000..b4d6272fc075 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequest.java @@ -0,0 +1,2761 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for AugmentPrompt.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptRequest} + */ +public final class AugmentPromptRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AugmentPromptRequest) + AugmentPromptRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AugmentPromptRequest.newBuilder() to construct. + private AugmentPromptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AugmentPromptRequest() { + parent_ = ""; + contents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AugmentPromptRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptRequest.class, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Builder.class); + } + + public interface ModelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AugmentPromptRequest.Model) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); + } + /** + * + * + *
+   * Metadata of the backend deployed model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptRequest.Model} + */ + public static final class Model extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AugmentPromptRequest.Model) + ModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use Model.newBuilder() to construct. + private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Model() { + model_ = ""; + modelVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Model(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.class, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + 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(); + modelVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = 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(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelVersion_); + } + 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(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelVersion_); + } + 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.AugmentPromptRequest.Model)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model other = + (com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model) obj; + + if (!getModel().equals(other.getModel())) return false; + if (!getModelVersion().equals(other.getModelVersion())) 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) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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 of the backend deployed model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptRequest.Model} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AugmentPromptRequest.Model) + com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.class, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + modelVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model build() { + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model buildPartial() { + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model result = + new com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + } + + @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.AugmentPromptRequest.Model) { + return mergeFrom((com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model other) { + if (other == com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance()) + return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + 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: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + modelVersion_ = 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 model_ = ""; + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelVersion_ = ""; + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = 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.AugmentPromptRequest.Model) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AugmentPromptRequest.Model) + private static final com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model(); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Model 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.AugmentPromptRequest.Model getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + 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 { + VERTEX_RAG_STORE(4), + 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 4: + return VERTEX_RAG_STORE; + 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 VERTEX_RAG_STORE_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List contents_; + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getContents(int index) { + return contents_.get(index); + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int MODEL_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model model_; + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model getModel() { + return model_ == null + ? com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder getModelOrBuilder() { + return model_ == null + ? com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + + 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 < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getModel()); + } + if (dataSourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1.VertexRagStore) 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getModel()); + } + if (dataSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1.VertexRagStore) 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.aiplatform.v1.AugmentPromptRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AugmentPromptRequest other = + (com.google.cloud.aiplatform.v1.AugmentPromptRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getContentsList().equals(other.getContentsList())) return false; + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel().equals(other.getModel())) return false; + } + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 4: + if (!getVertexRagStore().equals(other.getVertexRagStore())) 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(); + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + switch (dataSourceCase_) { + case 4: + hash = (37 * hash) + VERTEX_RAG_STORE_FIELD_NUMBER; + hash = (53 * hash) + getVertexRagStore().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest 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.AugmentPromptRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest 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.AugmentPromptRequest 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.AugmentPromptRequest 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.AugmentPromptRequest 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 AugmentPrompt.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AugmentPromptRequest) + com.google.cloud.aiplatform.v1.AugmentPromptRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptRequest.class, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AugmentPromptRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentsFieldBuilder(); + getModelFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vertexRagStoreBuilder_ != null) { + vertexRagStoreBuilder_.clear(); + } + parent_ = ""; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); + modelBuilder_ = null; + } + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AugmentPromptRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest build() { + com.google.cloud.aiplatform.v1.AugmentPromptRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptRequest buildPartial() { + com.google.cloud.aiplatform.v1.AugmentPromptRequest result = + new com.google.cloud.aiplatform.v1.AugmentPromptRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.AugmentPromptRequest result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.AugmentPromptRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.AugmentPromptRequest result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && vertexRagStoreBuilder_ != null) { + result.dataSource_ = vertexRagStoreBuilder_.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.AugmentPromptRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.AugmentPromptRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.AugmentPromptRequest other) { + if (other == com.google.cloud.aiplatform.v1.AugmentPromptRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + contentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (other.hasModel()) { + mergeModel(other.getModel()); + } + switch (other.getDataSourceCase()) { + case VERTEX_RAG_STORE: + { + mergeVertexRagStore(other.getVertexRagStore()); + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1.Content.parser(), extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(getVertexRagStoreFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 4; + 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 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.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder> + vertexRagStoreBuilder_; + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } else { + if (dataSourceCase_ == 4) { + return vertexRagStoreBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexRagStore(com.google.cloud.aiplatform.v1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexRagStore( + com.google.cloud.aiplatform.v1.VertexRagStore.Builder builderForValue) { + if (vertexRagStoreBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVertexRagStore(com.google.cloud.aiplatform.v1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4 + && dataSource_ != com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1.VertexRagStore.newBuilder( + (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 4) { + vertexRagStoreBuilder_.mergeFrom(value); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + } + vertexRagStoreBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.Builder getVertexRagStoreBuilder() { + return getVertexRagStoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder() { + if ((dataSourceCase_ == 4) && (vertexRagStoreBuilder_ != null)) { + return vertexRagStoreBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder> + getVertexRagStoreFieldBuilder() { + if (vertexRagStoreBuilder_ == null) { + if (!(dataSourceCase_ == 4)) { + dataSource_ = com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + vertexRagStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder>( + (com.google.cloud.aiplatform.v1.VertexRagStore) dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 4; + onChanged(); + return vertexRagStoreBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder getContentsBuilder(int index) { + return getContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder() { + return getContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder(int index) { + return getContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getContentsBuilderList() { + return getContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model model_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder> + modelBuilder_; + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model getModel() { + if (modelBuilder_ == null) { + return model_ == null + ? com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } else { + return modelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModel(com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model value) { + if (modelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + } else { + modelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModel( + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder builderForValue) { + if (modelBuilder_ == null) { + model_ = builderForValue.build(); + } else { + modelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModel(com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model value) { + if (modelBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && model_ != null + && model_ + != com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance()) { + getModelBuilder().mergeFrom(value); + } else { + model_ = value; + } + } else { + modelBuilder_.mergeFrom(value); + } + if (model_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModel() { + bitField0_ = (bitField0_ & ~0x00000008); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); + modelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder getModelBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getModelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder getModelOrBuilder() { + if (modelBuilder_ != null) { + return modelBuilder_.getMessageOrBuilder(); + } else { + return model_ == null + ? com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder> + getModelFieldBuilder() { + if (modelBuilder_ == null) { + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); + model_ = null; + } + return modelBuilder_; + } + + @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.AugmentPromptRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AugmentPromptRequest) + private static final com.google.cloud.aiplatform.v1.AugmentPromptRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AugmentPromptRequest(); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AugmentPromptRequest 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.AugmentPromptRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequestOrBuilder.java new file mode 100644 index 000000000000..694b62334a6b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptRequestOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface AugmentPromptRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AugmentPromptRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + boolean hasVertexRagStore(); + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore(); + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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(); + + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getContentsList(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.Content getContents(int index); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getContentsCount(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getContentsOrBuilderList(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + com.google.cloud.aiplatform.v1.AugmentPromptRequest.Model getModel(); + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.AugmentPromptRequest.ModelOrBuilder getModelOrBuilder(); + + com.google.cloud.aiplatform.v1.AugmentPromptRequest.DataSourceCase getDataSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponse.java new file mode 100644 index 000000000000..271f9d26a60b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponse.java @@ -0,0 +1,1428 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for AugmentPrompt.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptResponse} + */ +public final class AugmentPromptResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AugmentPromptResponse) + AugmentPromptResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AugmentPromptResponse.newBuilder() to construct. + private AugmentPromptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AugmentPromptResponse() { + augmentedPrompt_ = java.util.Collections.emptyList(); + facts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AugmentPromptResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptResponse.class, + com.google.cloud.aiplatform.v1.AugmentPromptResponse.Builder.class); + } + + public static final int AUGMENTED_PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List augmentedPrompt_; + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + @java.lang.Override + public java.util.List getAugmentedPromptList() { + return augmentedPrompt_; + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + @java.lang.Override + public java.util.List + getAugmentedPromptOrBuilderList() { + return augmentedPrompt_; + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + @java.lang.Override + public int getAugmentedPromptCount() { + return augmentedPrompt_.size(); + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getAugmentedPrompt(int index) { + return augmentedPrompt_.get(index); + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getAugmentedPromptOrBuilder(int index) { + return augmentedPrompt_.get(index); + } + + public static final int FACTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List facts_; + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + @java.lang.Override + public java.util.List getFactsList() { + return facts_; + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + @java.lang.Override + public java.util.List + getFactsOrBuilderList() { + return facts_; + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + @java.lang.Override + public int getFactsCount() { + return facts_.size(); + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Fact getFacts(int index) { + return facts_.get(index); + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index) { + return facts_.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 < augmentedPrompt_.size(); i++) { + output.writeMessage(1, augmentedPrompt_.get(i)); + } + for (int i = 0; i < facts_.size(); i++) { + output.writeMessage(2, facts_.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 < augmentedPrompt_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, augmentedPrompt_.get(i)); + } + for (int i = 0; i < facts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, facts_.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.AugmentPromptResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AugmentPromptResponse other = + (com.google.cloud.aiplatform.v1.AugmentPromptResponse) obj; + + if (!getAugmentedPromptList().equals(other.getAugmentedPromptList())) return false; + if (!getFactsList().equals(other.getFactsList())) 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 (getAugmentedPromptCount() > 0) { + hash = (37 * hash) + AUGMENTED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getAugmentedPromptList().hashCode(); + } + if (getFactsCount() > 0) { + hash = (37 * hash) + FACTS_FIELD_NUMBER; + hash = (53 * hash) + getFactsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse 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.AugmentPromptResponse 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.AugmentPromptResponse 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 AugmentPrompt.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AugmentPromptResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AugmentPromptResponse) + com.google.cloud.aiplatform.v1.AugmentPromptResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AugmentPromptResponse.class, + com.google.cloud.aiplatform.v1.AugmentPromptResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AugmentPromptResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (augmentedPromptBuilder_ == null) { + augmentedPrompt_ = java.util.Collections.emptyList(); + } else { + augmentedPrompt_ = null; + augmentedPromptBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + } else { + facts_ = null; + factsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AugmentPromptResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptResponse build() { + com.google.cloud.aiplatform.v1.AugmentPromptResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AugmentPromptResponse buildPartial() { + com.google.cloud.aiplatform.v1.AugmentPromptResponse result = + new com.google.cloud.aiplatform.v1.AugmentPromptResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.AugmentPromptResponse result) { + if (augmentedPromptBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + augmentedPrompt_ = java.util.Collections.unmodifiableList(augmentedPrompt_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.augmentedPrompt_ = augmentedPrompt_; + } else { + result.augmentedPrompt_ = augmentedPromptBuilder_.build(); + } + if (factsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + facts_ = java.util.Collections.unmodifiableList(facts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.facts_ = facts_; + } else { + result.facts_ = factsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.AugmentPromptResponse 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.AugmentPromptResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.AugmentPromptResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.AugmentPromptResponse other) { + if (other == com.google.cloud.aiplatform.v1.AugmentPromptResponse.getDefaultInstance()) + return this; + if (augmentedPromptBuilder_ == null) { + if (!other.augmentedPrompt_.isEmpty()) { + if (augmentedPrompt_.isEmpty()) { + augmentedPrompt_ = other.augmentedPrompt_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.addAll(other.augmentedPrompt_); + } + onChanged(); + } + } else { + if (!other.augmentedPrompt_.isEmpty()) { + if (augmentedPromptBuilder_.isEmpty()) { + augmentedPromptBuilder_.dispose(); + augmentedPromptBuilder_ = null; + augmentedPrompt_ = other.augmentedPrompt_; + bitField0_ = (bitField0_ & ~0x00000001); + augmentedPromptBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAugmentedPromptFieldBuilder() + : null; + } else { + augmentedPromptBuilder_.addAllMessages(other.augmentedPrompt_); + } + } + } + if (factsBuilder_ == null) { + if (!other.facts_.isEmpty()) { + if (facts_.isEmpty()) { + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFactsIsMutable(); + facts_.addAll(other.facts_); + } + onChanged(); + } + } else { + if (!other.facts_.isEmpty()) { + if (factsBuilder_.isEmpty()) { + factsBuilder_.dispose(); + factsBuilder_ = null; + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000002); + factsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFactsFieldBuilder() + : null; + } else { + factsBuilder_.addAllMessages(other.facts_); + } + } + } + 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.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1.Content.parser(), extensionRegistry); + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(m); + } else { + augmentedPromptBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1.Fact m = + input.readMessage( + com.google.cloud.aiplatform.v1.Fact.parser(), extensionRegistry); + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(m); + } else { + factsBuilder_.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 java.util.List augmentedPrompt_ = + java.util.Collections.emptyList(); + + private void ensureAugmentedPromptIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + augmentedPrompt_ = + new java.util.ArrayList(augmentedPrompt_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + augmentedPromptBuilder_; + + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public java.util.List getAugmentedPromptList() { + if (augmentedPromptBuilder_ == null) { + return java.util.Collections.unmodifiableList(augmentedPrompt_); + } else { + return augmentedPromptBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public int getAugmentedPromptCount() { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.size(); + } else { + return augmentedPromptBuilder_.getCount(); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1.Content getAugmentedPrompt(int index) { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.get(index); + } else { + return augmentedPromptBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder setAugmentedPrompt(int index, com.google.cloud.aiplatform.v1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.set(index, value); + onChanged(); + } else { + augmentedPromptBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder setAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.set(index, builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt(com.google.cloud.aiplatform.v1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(value); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt(int index, com.google.cloud.aiplatform.v1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(index, value); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt( + com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(index, builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder addAllAugmentedPrompt( + java.lang.Iterable values) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, augmentedPrompt_); + onChanged(); + } else { + augmentedPromptBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder clearAugmentedPrompt() { + if (augmentedPromptBuilder_ == null) { + augmentedPrompt_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + augmentedPromptBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public Builder removeAugmentedPrompt(int index) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.remove(index); + onChanged(); + } else { + augmentedPromptBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1.Content.Builder getAugmentedPromptBuilder(int index) { + return getAugmentedPromptFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getAugmentedPromptOrBuilder(int index) { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.get(index); + } else { + return augmentedPromptBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public java.util.List + getAugmentedPromptOrBuilderList() { + if (augmentedPromptBuilder_ != null) { + return augmentedPromptBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(augmentedPrompt_); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1.Content.Builder addAugmentedPromptBuilder() { + return getAugmentedPromptFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1.Content.Builder addAugmentedPromptBuilder(int index) { + return getAugmentedPromptFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + public java.util.List + getAugmentedPromptBuilderList() { + return getAugmentedPromptFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getAugmentedPromptFieldBuilder() { + if (augmentedPromptBuilder_ == null) { + augmentedPromptBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + augmentedPrompt_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + augmentedPrompt_ = null; + } + return augmentedPromptBuilder_; + } + + private java.util.List facts_ = + java.util.Collections.emptyList(); + + private void ensureFactsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + facts_ = new java.util.ArrayList(facts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder> + factsBuilder_; + + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public java.util.List getFactsList() { + if (factsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facts_); + } else { + return factsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public int getFactsCount() { + if (factsBuilder_ == null) { + return facts_.size(); + } else { + return factsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1.Fact getFacts(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder setFacts(int index, com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.set(index, value); + onChanged(); + } else { + factsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder setFacts( + int index, com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.set(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder addFacts(com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(value); + onChanged(); + } else { + factsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder addFacts(int index, com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(index, value); + onChanged(); + } else { + factsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder addFacts(com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder addFacts( + int index, com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder addAllFacts( + java.lang.Iterable values) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facts_); + onChanged(); + } else { + factsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder clearFacts() { + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + factsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public Builder removeFacts(int index) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.remove(index); + onChanged(); + } else { + factsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1.Fact.Builder getFactsBuilder(int index) { + return getFactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public java.util.List + getFactsOrBuilderList() { + if (factsBuilder_ != null) { + return factsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facts_); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1.Fact.Builder addFactsBuilder() { + return getFactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1.Fact.Builder addFactsBuilder(int index) { + return getFactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + public java.util.List getFactsBuilderList() { + return getFactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder> + getFactsFieldBuilder() { + if (factsBuilder_ == null) { + factsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder>( + facts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + facts_ = null; + } + return factsBuilder_; + } + + @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.AugmentPromptResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AugmentPromptResponse) + private static final com.google.cloud.aiplatform.v1.AugmentPromptResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AugmentPromptResponse(); + } + + public static com.google.cloud.aiplatform.v1.AugmentPromptResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AugmentPromptResponse 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.AugmentPromptResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponseOrBuilder.java new file mode 100644 index 000000000000..957975d3ac23 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AugmentPromptResponseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface AugmentPromptResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AugmentPromptResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + java.util.List getAugmentedPromptList(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + com.google.cloud.aiplatform.v1.Content getAugmentedPrompt(int index); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + int getAugmentedPromptCount(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + java.util.List + getAugmentedPromptOrBuilderList(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1; + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getAugmentedPromptOrBuilder(int index); + + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + java.util.List getFactsList(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + com.google.cloud.aiplatform.v1.Fact getFacts(int index); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + int getFactsCount(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + java.util.List getFactsOrBuilderList(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Fact facts = 2; + */ + com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Claim.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Claim.java new file mode 100644 index 000000000000..b9cc27ac1331 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Claim.java @@ -0,0 +1,1072 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Claim that is extracted from the input text and facts that support it.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Claim} + */ +public final class Claim extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Claim) + ClaimOrBuilder { + private static final long serialVersionUID = 0L; + // Use Claim.newBuilder() to construct. + private Claim(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Claim() { + factIndexes_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Claim(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Claim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Claim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Claim.class, + com.google.cloud.aiplatform.v1.Claim.Builder.class); + } + + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int FACT_INDEXES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList factIndexes_ = emptyIntList(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + @java.lang.Override + public java.util.List getFactIndexesList() { + return factIndexes_; + } + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + public int getFactIndexesCount() { + return factIndexes_.size(); + } + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + public int getFactIndexes(int index) { + return factIndexes_.getInt(index); + } + + private int factIndexesMemoizedSerializedSize = -1; + + public static final int SCORE_FIELD_NUMBER = 4; + private float score_ = 0F; + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, endIndex_); + } + if (getFactIndexesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(factIndexesMemoizedSerializedSize); + } + for (int i = 0; i < factIndexes_.size(); i++) { + output.writeInt32NoTag(factIndexes_.getInt(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(4, score_); + } + 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.computeInt32Size(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < factIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(factIndexes_.getInt(i)); + } + size += dataSize; + if (!getFactIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + factIndexesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + } + 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.Claim)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Claim other = (com.google.cloud.aiplatform.v1.Claim) obj; + + if (hasStartIndex() != other.hasStartIndex()) return false; + if (hasStartIndex()) { + if (getStartIndex() != other.getStartIndex()) return false; + } + if (hasEndIndex() != other.hasEndIndex()) return false; + if (hasEndIndex()) { + if (getEndIndex() != other.getEndIndex()) return false; + } + if (!getFactIndexesList().equals(other.getFactIndexesList())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasStartIndex()) { + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + if (getFactIndexesCount() > 0) { + hash = (37 * hash) + FACT_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getFactIndexesList().hashCode(); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Claim parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Claim 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.Claim parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Claim 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.Claim parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Claim 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.Claim parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Claim 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.Claim parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Claim 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.Claim 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.Claim 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.Claim 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; + } + /** + * + * + *
+   * Claim that is extracted from the input text and facts that support it.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Claim} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Claim) + com.google.cloud.aiplatform.v1.ClaimOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Claim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Claim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Claim.class, + com.google.cloud.aiplatform.v1.Claim.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Claim.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + factIndexes_ = emptyIntList(); + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Claim_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Claim getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Claim.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Claim build() { + com.google.cloud.aiplatform.v1.Claim result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Claim buildPartial() { + com.google.cloud.aiplatform.v1.Claim result = new com.google.cloud.aiplatform.v1.Claim(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Claim result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + factIndexes_.makeImmutable(); + result.factIndexes_ = factIndexes_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000004; + } + 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.Claim) { + return mergeFrom((com.google.cloud.aiplatform.v1.Claim) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Claim other) { + if (other == com.google.cloud.aiplatform.v1.Claim.getDefaultInstance()) return this; + if (other.hasStartIndex()) { + setStartIndex(other.getStartIndex()); + } + if (other.hasEndIndex()) { + setEndIndex(other.getEndIndex()); + } + if (!other.factIndexes_.isEmpty()) { + if (factIndexes_.isEmpty()) { + factIndexes_ = other.factIndexes_; + factIndexes_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureFactIndexesIsMutable(); + factIndexes_.addAll(other.factIndexes_); + } + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int v = input.readInt32(); + ensureFactIndexesIsMutable(); + factIndexes_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFactIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + factIndexes_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + case 37: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + 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 startIndex_; + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList factIndexes_ = emptyIntList(); + + private void ensureFactIndexesIsMutable() { + if (!factIndexes_.isModifiable()) { + factIndexes_ = makeMutableCopy(factIndexes_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + public java.util.List getFactIndexesList() { + factIndexes_.makeImmutable(); + return factIndexes_; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + public int getFactIndexesCount() { + return factIndexes_.size(); + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + public int getFactIndexes(int index) { + return factIndexes_.getInt(index); + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index to set the value at. + * @param value The factIndexes to set. + * @return This builder for chaining. + */ + public Builder setFactIndexes(int index, int value) { + + ensureFactIndexesIsMutable(); + factIndexes_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param value The factIndexes to add. + * @return This builder for chaining. + */ + public Builder addFactIndexes(int value) { + + ensureFactIndexesIsMutable(); + factIndexes_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param values The factIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllFactIndexes(java.lang.Iterable values) { + ensureFactIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, factIndexes_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return This builder for chaining. + */ + public Builder clearFactIndexes() { + factIndexes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private float score_; + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 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.Claim) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Claim) + private static final com.google.cloud.aiplatform.v1.Claim DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Claim(); + } + + public static com.google.cloud.aiplatform.v1.Claim getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Claim 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.Claim getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClaimOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClaimOrBuilder.java new file mode 100644 index 000000000000..063d66ed05f7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClaimOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ClaimOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Claim) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + boolean hasStartIndex(); + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + boolean hasEndIndex(); + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + java.util.List getFactIndexesList(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + int getFactIndexesCount(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + int getFactIndexes(int index); + + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java new file mode 100644 index 000000000000..4b4fe105e24f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfig.java @@ -0,0 +1,724 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configurations (e.g. inference timeout) that are applied on your endpoints.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ClientConnectionConfig} + */ +public final class ClientConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ClientConnectionConfig) + ClientConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientConnectionConfig.newBuilder() to construct. + private ClientConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientConnectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.class, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder.class); + } + + private int bitField0_; + public static final int INFERENCE_TIMEOUT_FIELD_NUMBER = 1; + private com.google.protobuf.Duration inferenceTimeout_; + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + @java.lang.Override + public boolean hasInferenceTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getInferenceTimeout() { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInferenceTimeout()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInferenceTimeout()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ClientConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ClientConnectionConfig other = + (com.google.cloud.aiplatform.v1.ClientConnectionConfig) obj; + + if (hasInferenceTimeout() != other.hasInferenceTimeout()) return false; + if (hasInferenceTimeout()) { + if (!getInferenceTimeout().equals(other.getInferenceTimeout())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInferenceTimeout()) { + hash = (37 * hash) + INFERENCE_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getInferenceTimeout().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig 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.ClientConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig 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.ClientConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ClientConnectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configurations (e.g. inference timeout) that are applied on your endpoints.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ClientConnectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ClientConnectionConfig) + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.class, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ClientConnectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInferenceTimeoutFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inferenceTimeout_ = null; + if (inferenceTimeoutBuilder_ != null) { + inferenceTimeoutBuilder_.dispose(); + inferenceTimeoutBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig build() { + com.google.cloud.aiplatform.v1.ClientConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig buildPartial() { + com.google.cloud.aiplatform.v1.ClientConnectionConfig result = + new com.google.cloud.aiplatform.v1.ClientConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ClientConnectionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inferenceTimeout_ = + inferenceTimeoutBuilder_ == null ? inferenceTimeout_ : inferenceTimeoutBuilder_.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.ClientConnectionConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.ClientConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ClientConnectionConfig other) { + if (other == com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance()) + return this; + if (other.hasInferenceTimeout()) { + mergeInferenceTimeout(other.getInferenceTimeout()); + } + 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( + getInferenceTimeoutFieldBuilder().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.Duration inferenceTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + inferenceTimeoutBuilder_; + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + public boolean hasInferenceTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + public com.google.protobuf.Duration getInferenceTimeout() { + if (inferenceTimeoutBuilder_ == null) { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } else { + return inferenceTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder setInferenceTimeout(com.google.protobuf.Duration value) { + if (inferenceTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inferenceTimeout_ = value; + } else { + inferenceTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder setInferenceTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (inferenceTimeoutBuilder_ == null) { + inferenceTimeout_ = builderForValue.build(); + } else { + inferenceTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder mergeInferenceTimeout(com.google.protobuf.Duration value) { + if (inferenceTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && inferenceTimeout_ != null + && inferenceTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInferenceTimeoutBuilder().mergeFrom(value); + } else { + inferenceTimeout_ = value; + } + } else { + inferenceTimeoutBuilder_.mergeFrom(value); + } + if (inferenceTimeout_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public Builder clearInferenceTimeout() { + bitField0_ = (bitField0_ & ~0x00000001); + inferenceTimeout_ = null; + if (inferenceTimeoutBuilder_ != null) { + inferenceTimeoutBuilder_.dispose(); + inferenceTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public com.google.protobuf.Duration.Builder getInferenceTimeoutBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInferenceTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + public com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder() { + if (inferenceTimeoutBuilder_ != null) { + return inferenceTimeoutBuilder_.getMessageOrBuilder(); + } else { + return inferenceTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inferenceTimeout_; + } + } + /** + * + * + *
+     * Customizable online prediction request timeout.
+     * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getInferenceTimeoutFieldBuilder() { + if (inferenceTimeoutBuilder_ == null) { + inferenceTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getInferenceTimeout(), getParentForChildren(), isClean()); + inferenceTimeout_ = null; + } + return inferenceTimeoutBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ClientConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ClientConnectionConfig) + private static final com.google.cloud.aiplatform.v1.ClientConnectionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ClientConnectionConfig(); + } + + public static com.google.cloud.aiplatform.v1.ClientConnectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientConnectionConfig 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.ClientConnectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.java new file mode 100644 index 000000000000..ec32e9d16ab2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ClientConnectionConfigOrBuilder.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/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ClientConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ClientConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return Whether the inferenceTimeout field is set. + */ + boolean hasInferenceTimeout(); + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + * + * @return The inferenceTimeout. + */ + com.google.protobuf.Duration getInferenceTimeout(); + /** + * + * + *
+   * Customizable online prediction request timeout.
+   * 
+ * + * .google.protobuf.Duration inference_timeout = 1; + */ + com.google.protobuf.DurationOrBuilder getInferenceTimeoutOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatus.java new file mode 100644 index 000000000000..969331f17873 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatus.java @@ -0,0 +1,969 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * RagCorpus status.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorpusStatus} + */ +public final class CorpusStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CorpusStatus) + CorpusStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorpusStatus.newBuilder() to construct. + private CorpusStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorpusStatus() { + state_ = 0; + errorStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CorpusStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_CorpusStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorpusStatus.class, + com.google.cloud.aiplatform.v1.CorpusStatus.Builder.class); + } + + /** + * + * + *
+   * RagCorpus life state.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.CorpusStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * This state is not supposed to happen.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * RagCorpus resource entry is initialized, but hasn't done validation.
+     * 
+ * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
+     * RagCorpus is provisioned successfully and is ready to serve.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * RagCorpus is in a problematic situation.
+     * See `error_message` field for details.
+     * 
+ * + * ERROR = 3; + */ + ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * This state is not supposed to happen.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * RagCorpus resource entry is initialized, but hasn't done validation.
+     * 
+ * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + /** + * + * + *
+     * RagCorpus is provisioned successfully and is ready to serve.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * RagCorpus is in a problematic situation.
+     * See `error_message` field for details.
+     * 
+ * + * ERROR = 3; + */ + public static final int ERROR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State 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 State forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return INITIALIZED; + case 2: + return ACTIVE; + case 3: + return ERROR; + 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 State findValueByNumber(int number) { + return State.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.CorpusStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.CorpusStatus.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+   * Output only. RagCorpus life state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. RagCorpus life state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus.State getState() { + com.google.cloud.aiplatform.v1.CorpusStatus.State result = + com.google.cloud.aiplatform.v1.CorpusStatus.State.forNumber(state_); + return result == null ? com.google.cloud.aiplatform.v1.CorpusStatus.State.UNRECOGNIZED : result; + } + + public static final int ERROR_STATUS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorStatus_ = ""; + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + @java.lang.Override + public java.lang.String getErrorStatus() { + java.lang.Object ref = errorStatus_; + 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(); + errorStatus_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorStatusBytes() { + java.lang.Object ref = errorStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorStatus_ = 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 (state_ != com.google.cloud.aiplatform.v1.CorpusStatus.State.UNKNOWN.getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.aiplatform.v1.CorpusStatus.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorStatus_); + } + 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.CorpusStatus)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CorpusStatus other = + (com.google.cloud.aiplatform.v1.CorpusStatus) obj; + + if (state_ != other.state_) return false; + if (!getErrorStatus().equals(other.getErrorStatus())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getErrorStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus 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.CorpusStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus 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.CorpusStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus 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.CorpusStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus 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.CorpusStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus 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.CorpusStatus 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.CorpusStatus 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.CorpusStatus 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; + } + /** + * + * + *
+   * RagCorpus status.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorpusStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CorpusStatus) + com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_CorpusStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorpusStatus.class, + com.google.cloud.aiplatform.v1.CorpusStatus.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CorpusStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + errorStatus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus build() { + com.google.cloud.aiplatform.v1.CorpusStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus buildPartial() { + com.google.cloud.aiplatform.v1.CorpusStatus result = + new com.google.cloud.aiplatform.v1.CorpusStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CorpusStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorStatus_ = errorStatus_; + } + } + + @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.CorpusStatus) { + return mergeFrom((com.google.cloud.aiplatform.v1.CorpusStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CorpusStatus other) { + if (other == com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorStatus().isEmpty()) { + errorStatus_ = other.errorStatus_; + 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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + errorStatus_ = 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 state_ = 0; + /** + * + * + *
+     * Output only. RagCorpus life state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. RagCorpus life state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagCorpus life state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus.State getState() { + com.google.cloud.aiplatform.v1.CorpusStatus.State result = + com.google.cloud.aiplatform.v1.CorpusStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.aiplatform.v1.CorpusStatus.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. RagCorpus life state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.CorpusStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagCorpus life state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorStatus_ = ""; + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + public java.lang.String getErrorStatus() { + java.lang.Object ref = errorStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + public com.google.protobuf.ByteString getErrorStatusBytes() { + java.lang.Object ref = errorStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorStatus to set. + * @return This builder for chaining. + */ + public Builder setErrorStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorStatus() { + errorStatus_ = getDefaultInstance().getErrorStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorStatus to set. + * @return This builder for chaining. + */ + public Builder setErrorStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorStatus_ = 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.CorpusStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CorpusStatus) + private static final com.google.cloud.aiplatform.v1.CorpusStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CorpusStatus(); + } + + public static com.google.cloud.aiplatform.v1.CorpusStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorpusStatus 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.CorpusStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatusOrBuilder.java new file mode 100644 index 000000000000..1e59a5c438ff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorpusStatusOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CorpusStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CorpusStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. RagCorpus life state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. RagCorpus life state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.CorpusStatus.State getState(); + + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + java.lang.String getErrorStatus(); + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + com.google.protobuf.ByteString getErrorStatusBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequest.java new file mode 100644 index 000000000000..e4a7abdc0cc8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequest.java @@ -0,0 +1,2413 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for CorroborateContent.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentRequest} + */ +public final class CorroborateContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CorroborateContentRequest) + CorroborateContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorroborateContentRequest.newBuilder() to construct. + private CorroborateContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorroborateContentRequest() { + parent_ = ""; + facts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CorroborateContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.class, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Builder.class); + } + + public interface ParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only return claims with citation score larger than the
+     * threshold.
+     * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + double getCitationThreshold(); + } + /** + * + * + *
+   * Parameters that can be overrided per request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters} + */ + public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) + ParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameters.newBuilder() to construct. + private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Parameters() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parameters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.class, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder.class); + } + + public static final int CITATION_THRESHOLD_FIELD_NUMBER = 1; + private double citationThreshold_ = 0D; + /** + * + * + *
+     * Optional. Only return claims with citation score larger than the
+     * threshold.
+     * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + @java.lang.Override + public double getCitationThreshold() { + return citationThreshold_; + } + + 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 (java.lang.Double.doubleToRawLongBits(citationThreshold_) != 0) { + output.writeDouble(1, citationThreshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(citationThreshold_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, citationThreshold_); + } + 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.CorroborateContentRequest.Parameters)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters other = + (com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) obj; + + if (java.lang.Double.doubleToLongBits(getCitationThreshold()) + != java.lang.Double.doubleToLongBits(other.getCitationThreshold())) 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) + CITATION_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCitationThreshold())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters 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.CorroborateContentRequest.Parameters 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; + } + /** + * + * + *
+     * Parameters that can be overrided per request.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) + com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.class, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + citationThreshold_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters build() { + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters buildPartial() { + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters result = + new com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.citationThreshold_ = citationThreshold_; + } + } + + @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.CorroborateContentRequest.Parameters) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters other) { + if (other + == com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + .getDefaultInstance()) return this; + if (other.getCitationThreshold() != 0D) { + setCitationThreshold(other.getCitationThreshold()); + } + 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 9: + { + citationThreshold_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + 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 double citationThreshold_; + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + @java.lang.Override + public double getCitationThreshold() { + return citationThreshold_; + } + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The citationThreshold to set. + * @return This builder for chaining. + */ + public Builder setCitationThreshold(double value) { + + citationThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCitationThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + citationThreshold_ = 0D; + 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.CorroborateContentRequest.Parameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters) + private static final com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters(); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameters 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.CorroborateContentRequest.Parameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.Content content_; + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + + public static final int FACTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List facts_; + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFactsList() { + return facts_; + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFactsOrBuilderList() { + return facts_; + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFactsCount() { + return facts_.size(); + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Fact getFacts(int index) { + return facts_.get(index); + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index) { + return facts_.get(index); + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters_; + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters getParameters() { + return parameters_ == null + ? com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.getDefaultInstance() + : parameters_; + } + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder() { + return parameters_ == null + ? com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.getDefaultInstance() + : parameters_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + for (int i = 0; i < facts_.size(); i++) { + output.writeMessage(3, facts_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getParameters()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + for (int i = 0; i < facts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, facts_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParameters()); + } + 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.CorroborateContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CorroborateContentRequest other = + (com.google.cloud.aiplatform.v1.CorroborateContentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (!getFactsList().equals(other.getFactsList())) return false; + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) 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 (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (getFactsCount() > 0) { + hash = (37 * hash) + FACTS_FIELD_NUMBER; + hash = (53 * hash) + getFactsList().hashCode(); + } + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest 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.CorroborateContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest 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.CorroborateContentRequest 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.CorroborateContentRequest 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.CorroborateContentRequest 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 CorroborateContent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CorroborateContentRequest) + com.google.cloud.aiplatform.v1.CorroborateContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.class, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CorroborateContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + getFactsFieldBuilder(); + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + } else { + facts_ = null; + factsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CorroborateContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest build() { + com.google.cloud.aiplatform.v1.CorroborateContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.CorroborateContentRequest result = + new com.google.cloud.aiplatform.v1.CorroborateContentRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.CorroborateContentRequest result) { + if (factsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + facts_ = java.util.Collections.unmodifiableList(facts_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.facts_ = facts_; + } else { + result.facts_ = factsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CorroborateContentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.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.aiplatform.v1.CorroborateContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CorroborateContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CorroborateContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.CorroborateContentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (factsBuilder_ == null) { + if (!other.facts_.isEmpty()) { + if (facts_.isEmpty()) { + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFactsIsMutable(); + facts_.addAll(other.facts_); + } + onChanged(); + } + } else { + if (!other.facts_.isEmpty()) { + if (factsBuilder_.isEmpty()) { + factsBuilder_.dispose(); + factsBuilder_ = null; + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000004); + factsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFactsFieldBuilder() + : null; + } else { + factsBuilder_.addAllMessages(other.facts_); + } + } + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + 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: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1.Fact m = + input.readMessage( + com.google.cloud.aiplatform.v1.Fact.parser(), extensionRegistry); + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(m); + } else { + factsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getParametersFieldBuilder().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 bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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.cloud.aiplatform.v1.Content content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + contentBuilder_; + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : content_; + } + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.util.List facts_ = + java.util.Collections.emptyList(); + + private void ensureFactsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + facts_ = new java.util.ArrayList(facts_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder> + factsBuilder_; + + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFactsList() { + if (factsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facts_); + } else { + return factsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFactsCount() { + if (factsBuilder_ == null) { + return facts_.size(); + } else { + return factsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Fact getFacts(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFacts(int index, com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.set(index, value); + onChanged(); + } else { + factsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFacts( + int index, com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.set(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(value); + onChanged(); + } else { + factsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(int index, com.google.cloud.aiplatform.v1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(index, value); + onChanged(); + } else { + factsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts( + int index, com.google.cloud.aiplatform.v1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFacts( + java.lang.Iterable values) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facts_); + onChanged(); + } else { + factsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFacts() { + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + factsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFacts(int index) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.remove(index); + onChanged(); + } else { + factsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Fact.Builder getFactsBuilder(int index) { + return getFactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFactsOrBuilderList() { + if (factsBuilder_ != null) { + return factsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facts_); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Fact.Builder addFactsBuilder() { + return getFactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Fact.Builder addFactsBuilder(int index) { + return getFactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFactsBuilderList() { + return getFactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder> + getFactsFieldBuilder() { + if (factsBuilder_ == null) { + factsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Fact, + com.google.cloud.aiplatform.v1.Fact.Builder, + com.google.cloud.aiplatform.v1.FactOrBuilder>( + facts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + facts_ = null; + } + return factsBuilder_; + } + + private com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder> + parametersBuilder_; + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null + ? com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder + builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters( + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + .getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder + getParametersBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null + ? com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + @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.CorroborateContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CorroborateContentRequest) + private static final com.google.cloud.aiplatform.v1.CorroborateContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CorroborateContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorroborateContentRequest 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.CorroborateContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequestOrBuilder.java new file mode 100644 index 000000000000..d86435e70a36 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentRequestOrBuilder.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/cloud/aiplatform/v1/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CorroborateContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CorroborateContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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(); + + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1.Content getContent(); + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFactsList(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.Fact getFacts(int index); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFactsCount(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFactsOrBuilderList(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.FactOrBuilder getFactsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters getParameters(); + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponse.java new file mode 100644 index 000000000000..d431033fc25b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponse.java @@ -0,0 +1,1098 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for CorroborateContent.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentResponse} + */ +public final class CorroborateContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CorroborateContentResponse) + CorroborateContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorroborateContentResponse.newBuilder() to construct. + private CorroborateContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorroborateContentResponse() { + claims_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CorroborateContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentResponse.class, + com.google.cloud.aiplatform.v1.CorroborateContentResponse.Builder.class); + } + + private int bitField0_; + public static final int CORROBORATION_SCORE_FIELD_NUMBER = 1; + private float corroborationScore_ = 0F; + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + @java.lang.Override + public boolean hasCorroborationScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + @java.lang.Override + public float getCorroborationScore() { + return corroborationScore_; + } + + public static final int CLAIMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List claims_; + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + @java.lang.Override + public java.util.List getClaimsList() { + return claims_; + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + @java.lang.Override + public java.util.List + getClaimsOrBuilderList() { + return claims_; + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + @java.lang.Override + public int getClaimsCount() { + return claims_.size(); + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Claim getClaims(int index) { + return claims_.get(index); + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClaimOrBuilder getClaimsOrBuilder(int index) { + return claims_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, corroborationScore_); + } + for (int i = 0; i < claims_.size(); i++) { + output.writeMessage(2, claims_.get(i)); + } + 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.computeFloatSize(1, corroborationScore_); + } + for (int i = 0; i < claims_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, claims_.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.CorroborateContentResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CorroborateContentResponse other = + (com.google.cloud.aiplatform.v1.CorroborateContentResponse) obj; + + if (hasCorroborationScore() != other.hasCorroborationScore()) return false; + if (hasCorroborationScore()) { + if (java.lang.Float.floatToIntBits(getCorroborationScore()) + != java.lang.Float.floatToIntBits(other.getCorroborationScore())) return false; + } + if (!getClaimsList().equals(other.getClaimsList())) 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 (hasCorroborationScore()) { + hash = (37 * hash) + CORROBORATION_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getCorroborationScore()); + } + if (getClaimsCount() > 0) { + hash = (37 * hash) + CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getClaimsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse 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.CorroborateContentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse 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.CorroborateContentResponse 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.CorroborateContentResponse 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.CorroborateContentResponse 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 CorroborateContent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CorroborateContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CorroborateContentResponse) + com.google.cloud.aiplatform.v1.CorroborateContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CorroborateContentResponse.class, + com.google.cloud.aiplatform.v1.CorroborateContentResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CorroborateContentResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + corroborationScore_ = 0F; + if (claimsBuilder_ == null) { + claims_ = java.util.Collections.emptyList(); + } else { + claims_ = null; + claimsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CorroborateContentResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentResponse build() { + com.google.cloud.aiplatform.v1.CorroborateContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorroborateContentResponse buildPartial() { + com.google.cloud.aiplatform.v1.CorroborateContentResponse result = + new com.google.cloud.aiplatform.v1.CorroborateContentResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.CorroborateContentResponse result) { + if (claimsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + claims_ = java.util.Collections.unmodifiableList(claims_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.claims_ = claims_; + } else { + result.claims_ = claimsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CorroborateContentResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.corroborationScore_ = corroborationScore_; + 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.CorroborateContentResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.CorroborateContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CorroborateContentResponse other) { + if (other == com.google.cloud.aiplatform.v1.CorroborateContentResponse.getDefaultInstance()) + return this; + if (other.hasCorroborationScore()) { + setCorroborationScore(other.getCorroborationScore()); + } + if (claimsBuilder_ == null) { + if (!other.claims_.isEmpty()) { + if (claims_.isEmpty()) { + claims_ = other.claims_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureClaimsIsMutable(); + claims_.addAll(other.claims_); + } + onChanged(); + } + } else { + if (!other.claims_.isEmpty()) { + if (claimsBuilder_.isEmpty()) { + claimsBuilder_.dispose(); + claimsBuilder_ = null; + claims_ = other.claims_; + bitField0_ = (bitField0_ & ~0x00000002); + claimsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClaimsFieldBuilder() + : null; + } else { + claimsBuilder_.addAllMessages(other.claims_); + } + } + } + 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 13: + { + corroborationScore_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + com.google.cloud.aiplatform.v1.Claim m = + input.readMessage( + com.google.cloud.aiplatform.v1.Claim.parser(), extensionRegistry); + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(m); + } else { + claimsBuilder_.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 float corroborationScore_; + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + @java.lang.Override + public boolean hasCorroborationScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + @java.lang.Override + public float getCorroborationScore() { + return corroborationScore_; + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @param value The corroborationScore to set. + * @return This builder for chaining. + */ + public Builder setCorroborationScore(float value) { + + corroborationScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return This builder for chaining. + */ + public Builder clearCorroborationScore() { + bitField0_ = (bitField0_ & ~0x00000001); + corroborationScore_ = 0F; + onChanged(); + return this; + } + + private java.util.List claims_ = + java.util.Collections.emptyList(); + + private void ensureClaimsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + claims_ = new java.util.ArrayList(claims_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Claim, + com.google.cloud.aiplatform.v1.Claim.Builder, + com.google.cloud.aiplatform.v1.ClaimOrBuilder> + claimsBuilder_; + + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public java.util.List getClaimsList() { + if (claimsBuilder_ == null) { + return java.util.Collections.unmodifiableList(claims_); + } else { + return claimsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public int getClaimsCount() { + if (claimsBuilder_ == null) { + return claims_.size(); + } else { + return claimsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1.Claim getClaims(int index) { + if (claimsBuilder_ == null) { + return claims_.get(index); + } else { + return claimsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder setClaims(int index, com.google.cloud.aiplatform.v1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.set(index, value); + onChanged(); + } else { + claimsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder setClaims( + int index, com.google.cloud.aiplatform.v1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.set(index, builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder addClaims(com.google.cloud.aiplatform.v1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.add(value); + onChanged(); + } else { + claimsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder addClaims(int index, com.google.cloud.aiplatform.v1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.add(index, value); + onChanged(); + } else { + claimsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder addClaims(com.google.cloud.aiplatform.v1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder addClaims( + int index, com.google.cloud.aiplatform.v1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(index, builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder addAllClaims( + java.lang.Iterable values) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claims_); + onChanged(); + } else { + claimsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder clearClaims() { + if (claimsBuilder_ == null) { + claims_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + claimsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public Builder removeClaims(int index) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.remove(index); + onChanged(); + } else { + claimsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1.Claim.Builder getClaimsBuilder(int index) { + return getClaimsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1.ClaimOrBuilder getClaimsOrBuilder(int index) { + if (claimsBuilder_ == null) { + return claims_.get(index); + } else { + return claimsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public java.util.List + getClaimsOrBuilderList() { + if (claimsBuilder_ != null) { + return claimsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(claims_); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1.Claim.Builder addClaimsBuilder() { + return getClaimsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Claim.getDefaultInstance()); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1.Claim.Builder addClaimsBuilder(int index) { + return getClaimsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Claim.getDefaultInstance()); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + public java.util.List getClaimsBuilderList() { + return getClaimsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Claim, + com.google.cloud.aiplatform.v1.Claim.Builder, + com.google.cloud.aiplatform.v1.ClaimOrBuilder> + getClaimsFieldBuilder() { + if (claimsBuilder_ == null) { + claimsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Claim, + com.google.cloud.aiplatform.v1.Claim.Builder, + com.google.cloud.aiplatform.v1.ClaimOrBuilder>( + claims_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + claims_ = null; + } + return claimsBuilder_; + } + + @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.CorroborateContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CorroborateContentResponse) + private static final com.google.cloud.aiplatform.v1.CorroborateContentResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CorroborateContentResponse(); + } + + public static com.google.cloud.aiplatform.v1.CorroborateContentResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorroborateContentResponse 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.CorroborateContentResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponseOrBuilder.java new file mode 100644 index 000000000000..b79a5748b44d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CorroborateContentResponseOrBuilder.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/aiplatform/v1/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CorroborateContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CorroborateContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + boolean hasCorroborationScore(); + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + float getCorroborationScore(); + + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + java.util.List getClaimsList(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + com.google.cloud.aiplatform.v1.Claim getClaims(int index); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + int getClaimsCount(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + java.util.List getClaimsOrBuilderList(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Claim claims = 2; + */ + com.google.cloud.aiplatform.v1.ClaimOrBuilder getClaimsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadata.java new file mode 100644 index 000000000000..7bdd093562c8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadata.java @@ -0,0 +1,740 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata} + */ +public final class CreateRagCorpusOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) + CreateRagCorpusOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRagCorpusOperationMetadata.newBuilder() to construct. + private CreateRagCorpusOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRagCorpusOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRagCorpusOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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.CreateRagCorpusOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata other = + (com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) 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.CreateRagCorpusOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata 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
+   * [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.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.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata build() { + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata result = + new com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata.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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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.CreateRagCorpusOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) + private static final com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRagCorpusOperationMetadata 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.CreateRagCorpusOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..c021afbc8b8c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusOperationMetadataOrBuilder.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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CreateRagCorpusOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/CreateRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusRequest.java new file mode 100644 index 000000000000..bd7e1b4b578f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateRagCorpusRequest} + */ +public final class CreateRagCorpusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateRagCorpusRequest) + CreateRagCorpusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRagCorpusRequest.newBuilder() to construct. + private CreateRagCorpusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRagCorpusRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRagCorpusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location to create the RagCorpus in.
+   * 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 resource name of the Location to create the RagCorpus in.
+   * 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 RAG_CORPUS_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.RagCorpus ragCorpus_; + /** + * + * + *
+   * Required. The RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + @java.lang.Override + public boolean hasRagCorpus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus() { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + /** + * + * + *
+   * Required. The RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder() { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRagCorpus()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRagCorpus()); + } + 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.CreateRagCorpusRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest other = + (com.google.cloud.aiplatform.v1.CreateRagCorpusRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasRagCorpus() != other.hasRagCorpus()) return false; + if (hasRagCorpus()) { + if (!getRagCorpus().equals(other.getRagCorpus())) 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 (hasRagCorpus()) { + hash = (37 * hash) + RAG_CORPUS_FIELD_NUMBER; + hash = (53 * hash) + getRagCorpus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest 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.CreateRagCorpusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest 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.CreateRagCorpusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest 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.CreateRagCorpusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest 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.CreateRagCorpusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest 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.CreateRagCorpusRequest 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.CreateRagCorpusRequest 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.CreateRagCorpusRequest 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
+   * [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateRagCorpusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateRagCorpusRequest) + com.google.cloud.aiplatform.v1.CreateRagCorpusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagCorpusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + ragCorpus_ = null; + if (ragCorpusBuilder_ != null) { + ragCorpusBuilder_.dispose(); + ragCorpusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusRequest build() { + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateRagCorpusRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreateRagCorpusRequest result = + new com.google.cloud.aiplatform.v1.CreateRagCorpusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateRagCorpusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ragCorpus_ = ragCorpusBuilder_ == null ? ragCorpus_ : ragCorpusBuilder_.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.CreateRagCorpusRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateRagCorpusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateRagCorpusRequest other) { + if (other == com.google.cloud.aiplatform.v1.CreateRagCorpusRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRagCorpus()) { + mergeRagCorpus(other.getRagCorpus()); + } + 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: + { + input.readMessage(getRagCorpusFieldBuilder().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 parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to create the RagCorpus in.
+     * 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 resource name of the Location to create the RagCorpus in.
+     * 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 resource name of the Location to create the RagCorpus in.
+     * 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 resource name of the Location to create the RagCorpus in.
+     * 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 resource name of the Location to create the RagCorpus in.
+     * 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.cloud.aiplatform.v1.RagCorpus ragCorpus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + ragCorpusBuilder_; + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + public boolean hasRagCorpus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus() { + if (ragCorpusBuilder_ == null) { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } else { + return ragCorpusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorpusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragCorpus_ = value; + } else { + ragCorpusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus.Builder builderForValue) { + if (ragCorpusBuilder_ == null) { + ragCorpus_ = builderForValue.build(); + } else { + ragCorpusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorpusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ragCorpus_ != null + && ragCorpus_ != com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance()) { + getRagCorpusBuilder().mergeFrom(value); + } else { + ragCorpus_ = value; + } + } else { + ragCorpusBuilder_.mergeFrom(value); + } + if (ragCorpus_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRagCorpus() { + bitField0_ = (bitField0_ & ~0x00000002); + ragCorpus_ = null; + if (ragCorpusBuilder_ != null) { + ragCorpusBuilder_.dispose(); + ragCorpusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagCorpus.Builder getRagCorpusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRagCorpusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder() { + if (ragCorpusBuilder_ != null) { + return ragCorpusBuilder_.getMessageOrBuilder(); + } else { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + } + /** + * + * + *
+     * Required. The RagCorpus to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + getRagCorpusFieldBuilder() { + if (ragCorpusBuilder_ == null) { + ragCorpusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder>( + getRagCorpus(), getParentForChildren(), isClean()); + ragCorpus_ = null; + } + return ragCorpusBuilder_; + } + + @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.CreateRagCorpusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateRagCorpusRequest) + private static final com.google.cloud.aiplatform.v1.CreateRagCorpusRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateRagCorpusRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreateRagCorpusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRagCorpusRequest 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.CreateRagCorpusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusRequestOrBuilder.java new file mode 100644 index 000000000000..41703e0c2def --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateRagCorpusRequestOrBuilder.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CreateRagCorpusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateRagCorpusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the RagCorpus in.
+   * 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 resource name of the Location to create the RagCorpus in.
+   * 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 RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + boolean hasRagCorpus(); + /** + * + * + *
+   * Required. The RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus(); + /** + * + * + *
+   * Required. The RagCorpus to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java index ab6201bf6a4e..b1417ea5cfcf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java @@ -181,6 +181,29 @@ public int getMaxReplicaCount() { return maxReplicaCount_; } + public static final int REQUIRED_REPLICA_COUNT_FIELD_NUMBER = 9; + private int requiredReplicaCount_ = 0; + /** + * + * + *
+   * Optional. Number of required available replicas for the deployment to
+   * succeed. This field is only needed when partial model deployment/mutation
+   * is desired. If set, the model deploy/mutate operation will succeed once
+   * available_replica_count reaches required_replica_count, and the rest of
+   * the replicas will be retried. If not set, the default
+   * required_replica_count will be min_replica_count.
+   * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + @java.lang.Override + public int getRequiredReplicaCount() { + return requiredReplicaCount_; + } + public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -423,6 +446,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (spot_ != false) { output.writeBool(5, spot_); } + if (requiredReplicaCount_ != 0) { + output.writeInt32(9, requiredReplicaCount_); + } getUnknownFields().writeTo(output); } @@ -449,6 +475,9 @@ public int getSerializedSize() { if (spot_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, spot_); } + if (requiredReplicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requiredReplicaCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -471,6 +500,7 @@ public boolean equals(final java.lang.Object obj) { } if (getMinReplicaCount() != other.getMinReplicaCount()) return false; if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false; + if (getRequiredReplicaCount() != other.getRequiredReplicaCount()) return false; if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList())) return false; if (getSpot() != other.getSpot()) return false; @@ -493,6 +523,8 @@ public int hashCode() { hash = (53 * hash) + getMinReplicaCount(); hash = (37 * hash) + MAX_REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxReplicaCount(); + hash = (37 * hash) + REQUIRED_REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRequiredReplicaCount(); if (getAutoscalingMetricSpecsCount() > 0) { hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER; hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode(); @@ -656,13 +688,14 @@ public Builder clear() { } minReplicaCount_ = 0; maxReplicaCount_ = 0; + requiredReplicaCount_ = 0; if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); } else { autoscalingMetricSpecs_ = null; autoscalingMetricSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); spot_ = false; return this; } @@ -702,9 +735,9 @@ public com.google.cloud.aiplatform.v1.DedicatedResources buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1.DedicatedResources result) { if (autoscalingMetricSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_; } else { @@ -726,7 +759,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.DedicatedResources res if (((from_bitField0_ & 0x00000004) != 0)) { result.maxReplicaCount_ = maxReplicaCount_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requiredReplicaCount_ = requiredReplicaCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.spot_ = spot_; } result.bitField0_ |= to_bitField0_; @@ -787,11 +823,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DedicatedResources other if (other.getMaxReplicaCount() != 0) { setMaxReplicaCount(other.getMaxReplicaCount()); } + if (other.getRequiredReplicaCount() != 0) { + setRequiredReplicaCount(other.getRequiredReplicaCount()); + } if (autoscalingMetricSpecsBuilder_ == null) { if (!other.autoscalingMetricSpecs_.isEmpty()) { if (autoscalingMetricSpecs_.isEmpty()) { autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAutoscalingMetricSpecsIsMutable(); autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_); @@ -804,7 +843,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DedicatedResources other autoscalingMetricSpecsBuilder_.dispose(); autoscalingMetricSpecsBuilder_ = null; autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); autoscalingMetricSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAutoscalingMetricSpecsFieldBuilder() @@ -878,9 +917,15 @@ public Builder mergeFrom( case 40: { spot_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 + case 72: + { + requiredReplicaCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1282,15 +1327,83 @@ public Builder clearMaxReplicaCount() { return this; } + private int requiredReplicaCount_; + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + @java.lang.Override + public int getRequiredReplicaCount() { + return requiredReplicaCount_; + } + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requiredReplicaCount to set. + * @return This builder for chaining. + */ + public Builder setRequiredReplicaCount(int value) { + + requiredReplicaCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequiredReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000008); + requiredReplicaCount_ = 0; + onChanged(); + return this; + } + private java.util.List autoscalingMetricSpecs_ = java.util.Collections.emptyList(); private void ensureAutoscalingMetricSpecsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { autoscalingMetricSpecs_ = new java.util.ArrayList( autoscalingMetricSpecs_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -1775,7 +1888,7 @@ public Builder addAllAutoscalingMetricSpecs( public Builder clearAutoscalingMetricSpecs() { if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { autoscalingMetricSpecsBuilder_.clear(); @@ -2071,7 +2184,7 @@ public Builder removeAutoscalingMetricSpecs(int index) { com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder, com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder>( autoscalingMetricSpecs_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); autoscalingMetricSpecs_ = null; @@ -2112,7 +2225,7 @@ public boolean getSpot() { public Builder setSpot(boolean value) { spot_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2129,7 +2242,7 @@ public Builder setSpot(boolean value) { * @return This builder for chaining. */ public Builder clearSpot() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); spot_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java index 209fe6985423..d16ab86994c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java @@ -115,6 +115,24 @@ public interface DedicatedResourcesOrBuilder */ int getMaxReplicaCount(); + /** + * + * + *
+   * Optional. Number of required available replicas for the deployment to
+   * succeed. This field is only needed when partial model deployment/mutation
+   * is desired. If set, the model deploy/mutate operation will succeed once
+   * available_replica_count reaches required_replica_count, and the rest of
+   * the replicas will be retried. If not set, the default
+   * required_replica_count will be min_replica_count.
+   * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + int getRequiredReplicaCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequest.java new file mode 100644 index 000000000000..52bbb431313b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequest.java @@ -0,0 +1,757 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.DeleteRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagCorpus].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteRagCorpusRequest} + */ +public final class DeleteRagCorpusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteRagCorpusRequest) + DeleteRagCorpusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRagCorpusRequest.newBuilder() to construct. + private DeleteRagCorpusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRagCorpusRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRagCorpusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the RagCorpus resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 name of the RagCorpus resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + /** + * + * + *
+   * Optional. If set to true, any RagFiles in this RagCorpus will also be
+   * deleted. Otherwise, the request will only work if the RagCorpus has no
+   * RagFiles.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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 (force_ != false) { + output.writeBool(2, force_); + } + 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 (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.DeleteRagCorpusRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest other = + (com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest 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.DeleteRagCorpusRequest 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
+   * [VertexRagDataService.DeleteRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagCorpus].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteRagCorpusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteRagCorpusRequest) + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest build() { + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest result = + new com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @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.DeleteRagCorpusRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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 16: + { + force_ = 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the RagCorpus resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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; + } + + private boolean force_; + /** + * + * + *
+     * Optional. If set to true, any RagFiles in this RagCorpus will also be
+     * deleted. Otherwise, the request will only work if the RagCorpus has no
+     * RagFiles.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. If set to true, any RagFiles in this RagCorpus will also be
+     * deleted. Otherwise, the request will only work if the RagCorpus has no
+     * RagFiles.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, any RagFiles in this RagCorpus will also be
+     * deleted. Otherwise, the request will only work if the RagCorpus has no
+     * RagFiles.
+     * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = 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.DeleteRagCorpusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteRagCorpusRequest) + private static final com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRagCorpusRequest 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.DeleteRagCorpusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequestOrBuilder.java new file mode 100644 index 000000000000..6798879625b6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagCorpusRequestOrBuilder.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface DeleteRagCorpusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteRagCorpusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagCorpus resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the RagCorpus resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set to true, any RagFiles in this RagCorpus will also be
+   * deleted. Otherwise, the request will only work if the RagCorpus has no
+   * RagFiles.
+   * 
+ * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequest.java new file mode 100644 index 000000000000..a5c80bdaf285 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.DeleteRagFile][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagFile].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteRagFileRequest} + */ +public final class DeleteRagFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteRagFileRequest) + DeleteRagFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRagFileRequest.newBuilder() to construct. + private DeleteRagFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRagFileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRagFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest.class, + com.google.cloud.aiplatform.v1.DeleteRagFileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the RagFile resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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 name of the RagFile resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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.aiplatform.v1.DeleteRagFileRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteRagFileRequest other = + (com.google.cloud.aiplatform.v1.DeleteRagFileRequest) 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.aiplatform.v1.DeleteRagFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.DeleteRagFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.DeleteRagFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.DeleteRagFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.DeleteRagFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.DeleteRagFileRequest 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.DeleteRagFileRequest 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.DeleteRagFileRequest 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
+   * [VertexRagDataService.DeleteRagFile][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagFile].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteRagFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteRagFileRequest) + com.google.cloud.aiplatform.v1.DeleteRagFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteRagFileRequest.class, + com.google.cloud.aiplatform.v1.DeleteRagFileRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteRagFileRequest.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.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagFileRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteRagFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagFileRequest build() { + com.google.cloud.aiplatform.v1.DeleteRagFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteRagFileRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteRagFileRequest result = + new com.google.cloud.aiplatform.v1.DeleteRagFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteRagFileRequest 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.aiplatform.v1.DeleteRagFileRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteRagFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteRagFileRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteRagFileRequest.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 name of the RagFile resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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.aiplatform.v1.DeleteRagFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteRagFileRequest) + private static final com.google.cloud.aiplatform.v1.DeleteRagFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteRagFileRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteRagFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRagFileRequest 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.DeleteRagFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequestOrBuilder.java new file mode 100644 index 000000000000..a0cf5c8d8470 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteRagFileRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface DeleteRagFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteRagFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagFile resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the RagFile resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java index d3abbba368d8..67b26c0b9939 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java @@ -79,6 +79,1103 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.aiplatform.v1.DeployedModel.Builder.class); } + public interface StatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeployedModel.Status) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + boolean hasLastUpdateTime(); + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + com.google.protobuf.Timestamp getLastUpdateTime(); + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The number of available replicas of the deployed model.
+     * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableReplicaCount. + */ + int getAvailableReplicaCount(); + } + /** + * + * + *
+   * Runtime status of the deployed model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeployedModel.Status} + */ + public static final class Status extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeployedModel.Status) + StatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use Status.newBuilder() to construct. + private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Status() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Status(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeployedModel.Status.class, + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastUpdateTime_; + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + @java.lang.Override + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastUpdateTime() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + + public static final int AVAILABLE_REPLICA_COUNT_FIELD_NUMBER = 3; + private int availableReplicaCount_ = 0; + /** + * + * + *
+     * Output only. The number of available replicas of the deployed model.
+     * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableReplicaCount. + */ + @java.lang.Override + public int getAvailableReplicaCount() { + return availableReplicaCount_; + } + + 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(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLastUpdateTime()); + } + if (availableReplicaCount_ != 0) { + output.writeInt32(3, availableReplicaCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); + } + if (availableReplicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, availableReplicaCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DeployedModel.Status)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeployedModel.Status other = + (com.google.cloud.aiplatform.v1.DeployedModel.Status) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; + if (hasLastUpdateTime()) { + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + } + if (getAvailableReplicaCount() != other.getAvailableReplicaCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasLastUpdateTime()) { + hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdateTime().hashCode(); + } + hash = (37 * hash) + AVAILABLE_REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAvailableReplicaCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status 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.DeployedModel.Status parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status 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.DeployedModel.Status parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status 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.DeployedModel.Status parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.DeployedModel.Status prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Runtime status of the deployed model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeployedModel.Status} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeployedModel.Status) + com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeployedModel.Status.class, + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeployedModel.Status.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + availableReplicaCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeployedModel.Status getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeployedModel.Status build() { + com.google.cloud.aiplatform.v1.DeployedModel.Status result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeployedModel.Status buildPartial() { + com.google.cloud.aiplatform.v1.DeployedModel.Status result = + new com.google.cloud.aiplatform.v1.DeployedModel.Status(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel.Status result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.availableReplicaCount_ = availableReplicaCount_; + } + 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.DeployedModel.Status) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeployedModel.Status) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel.Status other) { + if (other == com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLastUpdateTime()) { + mergeLastUpdateTime(other.getLastUpdateTime()); + } + if (other.getAvailableReplicaCount() != 0) { + setAvailableReplicaCount(other.getAvailableReplicaCount()); + } + 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: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + availableReplicaCount_ = 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 java.lang.Object message_ = ""; + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + public com.google.protobuf.Timestamp getLastUpdateTime() { + if (lastUpdateTimeBuilder_ == null) { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } else { + return lastUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUpdateTime_ = value; + } else { + lastUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastUpdateTimeBuilder_ == null) { + lastUpdateTime_ = builderForValue.build(); + } else { + lastUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); + } else { + lastUpdateTime_ = value; + } + } else { + lastUpdateTimeBuilder_.mergeFrom(value); + } + if (lastUpdateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + if (lastUpdateTimeBuilder_ != null) { + return lastUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastUpdateTimeFieldBuilder() { + if (lastUpdateTimeBuilder_ == null) { + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); + lastUpdateTime_ = null; + } + return lastUpdateTimeBuilder_; + } + + private int availableReplicaCount_; + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableReplicaCount. + */ + @java.lang.Override + public int getAvailableReplicaCount() { + return availableReplicaCount_; + } + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableReplicaCount to set. + * @return This builder for chaining. + */ + public Builder setAvailableReplicaCount(int value) { + + availableReplicaCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000004); + availableReplicaCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DeployedModel.Status) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeployedModel.Status) + private static final com.google.cloud.aiplatform.v1.DeployedModel.Status DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeployedModel.Status(); + } + + public static com.google.cloud.aiplatform.v1.DeployedModel.Status getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Status 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.DeployedModel.Status getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int predictionResourcesCase_ = 0; @@ -949,6 +2046,62 @@ public com.google.cloud.aiplatform.v1.FasterDeploymentConfig getFasterDeployment : fasterDeploymentConfig_; } + public static final int STATUS_FIELD_NUMBER = 26; + private com.google.cloud.aiplatform.v1.DeployedModel.Status status_; + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeployedModel.Status getStatus() { + return status_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance() + : status_; + } + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder getStatusOrBuilder() { + return status_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance() + : status_; + } + public static final int SYSTEM_LABELS_FIELD_NUMBER = 28; private static final class SystemLabelsDefaultEntryHolder { @@ -1118,6 +2271,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getFasterDeploymentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(26, getStatus()); + } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSystemLabels(), SystemLabelsDefaultEntryHolder.defaultEntry, 28); getUnknownFields().writeTo(output); @@ -1179,6 +2335,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getFasterDeploymentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getStatus()); + } for (java.util.Map.Entry entry : internalGetSystemLabels().getMap().entrySet()) { com.google.protobuf.MapEntry systemLabels__ = @@ -1229,6 +2388,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFasterDeploymentConfig()) { if (!getFasterDeploymentConfig().equals(other.getFasterDeploymentConfig())) return false; } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } if (!internalGetSystemLabels().equals(other.internalGetSystemLabels())) return false; if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false; switch (predictionResourcesCase_) { @@ -1287,6 +2450,10 @@ public int hashCode() { hash = (37 * hash) + FASTER_DEPLOYMENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFasterDeploymentConfig().hashCode(); } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } if (!internalGetSystemLabels().getMap().isEmpty()) { hash = (37 * hash) + SYSTEM_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetSystemLabels().hashCode(); @@ -1473,6 +2640,7 @@ private void maybeForceBuilderInitialization() { getExplanationSpecFieldBuilder(); getPrivateEndpointsFieldBuilder(); getFasterDeploymentConfigFieldBuilder(); + getStatusFieldBuilder(); } } @@ -1514,6 +2682,11 @@ public Builder clear() { fasterDeploymentConfigBuilder_.dispose(); fasterDeploymentConfigBuilder_ = null; } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } internalGetMutableSystemLabels().clear(); predictionResourcesCase_ = 0; predictionResources_ = null; @@ -1601,6 +2774,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel result) to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.systemLabels_ = internalGetSystemLabels(); result.systemLabels_.makeImmutable(); } @@ -1709,8 +2886,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other) { if (other.hasFasterDeploymentConfig()) { mergeFasterDeploymentConfig(other.getFasterDeploymentConfig()); } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } internalGetMutableSystemLabels().mergeFrom(other.internalGetSystemLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; switch (other.getPredictionResourcesCase()) { case DEDICATED_RESOURCES: { @@ -1855,6 +3035,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 186 + case 210: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 210 case 226: { com.google.protobuf.MapEntry systemLabels__ = @@ -1864,7 +3050,7 @@ public Builder mergeFrom( internalGetMutableSystemLabels() .getMutableMap() .put(systemLabels__.getKey(), systemLabels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 226 default: @@ -4303,6 +5489,211 @@ public Builder clearFasterDeploymentConfig() { return fasterDeploymentConfigBuilder_; } + private com.google.cloud.aiplatform.v1.DeployedModel.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DeployedModel.Status, + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + public com.google.cloud.aiplatform.v1.DeployedModel.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance() + : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStatus(com.google.cloud.aiplatform.v1.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStatus( + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStatus(com.google.cloud.aiplatform.v1.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && status_ != null + && status_ + != com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00008000); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.Status.getDefaultInstance() + : status_; + } + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DeployedModel.Status, + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DeployedModel.Status, + com.google.cloud.aiplatform.v1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + private com.google.protobuf.MapField systemLabels_; private com.google.protobuf.MapField @@ -4323,7 +5714,7 @@ public Builder clearFasterDeploymentConfig() { if (!systemLabels_.isMutable()) { systemLabels_ = systemLabels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return systemLabels_; } @@ -4412,7 +5803,7 @@ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) { } public Builder clearSystemLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableSystemLabels().getMutableMap().clear(); return this; } @@ -4436,7 +5827,7 @@ public Builder removeSystemLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSystemLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableSystemLabels().getMutableMap(); } /** @@ -4457,7 +5848,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableSystemLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -4472,7 +5863,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllSystemLabels(java.util.Map values) { internalGetMutableSystemLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java index 424bc10f7683..d7db66838d37 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java @@ -573,6 +573,47 @@ public interface DeployedModelOrBuilder com.google.cloud.aiplatform.v1.FasterDeploymentConfigOrBuilder getFasterDeploymentConfigOrBuilder(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.aiplatform.v1.DeployedModel.Status getStatus(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.DeployedModel.StatusOrBuilder getStatusOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSource.java new file mode 100644 index 000000000000..553e02d0ba22 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSource.java @@ -0,0 +1,432 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The input content is encapsulated and uploaded in the request.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DirectUploadSource} + */ +public final class DirectUploadSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DirectUploadSource) + DirectUploadSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DirectUploadSource.newBuilder() to construct. + private DirectUploadSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DirectUploadSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DirectUploadSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DirectUploadSource.class, + com.google.cloud.aiplatform.v1.DirectUploadSource.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.aiplatform.v1.DirectUploadSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DirectUploadSource other = + (com.google.cloud.aiplatform.v1.DirectUploadSource) 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.aiplatform.v1.DirectUploadSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource 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.DirectUploadSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource 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.DirectUploadSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource 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.DirectUploadSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource 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.DirectUploadSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource 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.DirectUploadSource 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.DirectUploadSource 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.DirectUploadSource 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 input content is encapsulated and uploaded in the request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DirectUploadSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DirectUploadSource) + com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DirectUploadSource.class, + com.google.cloud.aiplatform.v1.DirectUploadSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DirectUploadSource.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.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSource build() { + com.google.cloud.aiplatform.v1.DirectUploadSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSource buildPartial() { + com.google.cloud.aiplatform.v1.DirectUploadSource result = + new com.google.cloud.aiplatform.v1.DirectUploadSource(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.aiplatform.v1.DirectUploadSource) { + return mergeFrom((com.google.cloud.aiplatform.v1.DirectUploadSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DirectUploadSource other) { + if (other == com.google.cloud.aiplatform.v1.DirectUploadSource.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.aiplatform.v1.DirectUploadSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DirectUploadSource) + private static final com.google.cloud.aiplatform.v1.DirectUploadSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DirectUploadSource(); + } + + public static com.google.cloud.aiplatform.v1.DirectUploadSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DirectUploadSource 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.DirectUploadSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSourceOrBuilder.java new file mode 100644 index 000000000000..042fdac5697b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DirectUploadSourceOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface DirectUploadSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DirectUploadSource) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index 68017a7abedc..f0538eabe92e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -914,7 +914,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -1196,6 +1196,57 @@ public com.google.protobuf.ByteString getDedicatedEndpointDnsBytes() { } } + public static final int CLIENT_CONNECTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.aiplatform.v1.ClientConnectionConfig clientConnectionConfig_; + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return Whether the clientConnectionConfig field is set. + */ + @java.lang.Override + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return The clientConnectionConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig() { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; private boolean satisfiesPzs_ = false; /** @@ -1289,6 +1340,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(21, getPrivateServiceConnectConfig()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(23, getClientConnectionConfig()); + } if (dedicatedEndpointEnabled_ != false) { output.writeBool(24, dedicatedEndpointEnabled_); } @@ -1376,6 +1430,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getPrivateServiceConnectConfig()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); + } if (dedicatedEndpointEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, dedicatedEndpointEnabled_); } @@ -1439,6 +1497,10 @@ public boolean equals(final java.lang.Object obj) { } if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false; if (!getDedicatedEndpointDns().equals(other.getDedicatedEndpointDns())) return false; + if (hasClientConnectionConfig() != other.hasClientConnectionConfig()) return false; + if (hasClientConnectionConfig()) { + if (!getClientConnectionConfig().equals(other.getClientConnectionConfig())) return false; + } if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1502,6 +1564,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled()); hash = (37 * hash) + DEDICATED_ENDPOINT_DNS_FIELD_NUMBER; hash = (53 * hash) + getDedicatedEndpointDns().hashCode(); + if (hasClientConnectionConfig()) { + hash = (37 * hash) + CLIENT_CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientConnectionConfig().hashCode(); + } hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; @@ -1679,6 +1745,7 @@ private void maybeForceBuilderInitialization() { getEncryptionSpecFieldBuilder(); getPrivateServiceConnectConfigFieldBuilder(); getPredictRequestResponseLoggingConfigFieldBuilder(); + getClientConnectionConfigFieldBuilder(); } } @@ -1729,6 +1796,11 @@ public Builder clear() { } dedicatedEndpointEnabled_ = false; dedicatedEndpointDns_ = ""; + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; + } satisfiesPzs_ = false; satisfiesPzi_ = false; return this; @@ -1844,9 +1916,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Endpoint result) { result.dedicatedEndpointDns_ = dedicatedEndpointDns_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + result.clientConnectionConfig_ = + clientConnectionConfigBuilder_ == null + ? clientConnectionConfig_ + : clientConnectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } result.bitField0_ |= to_bitField0_; @@ -1984,6 +2063,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.hasClientConnectionConfig()) { + mergeClientConnectionConfig(other.getClientConnectionConfig()); + } if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } @@ -2128,6 +2210,13 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 186: + { + input.readMessage( + getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 case 192: { dedicatedEndpointEnabled_ = input.readBool(); @@ -2143,13 +2232,13 @@ public Builder mergeFrom( case 216: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 216 case 224: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 224 default: @@ -4328,7 +4417,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -4351,7 +4440,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -4378,7 +4467,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5179,6 +5268,206 @@ public Builder setDedicatedEndpointDnsBytes(com.google.protobuf.ByteString value return this; } + private com.google.cloud.aiplatform.v1.ClientConnectionConfig clientConnectionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder> + clientConnectionConfigBuilder_; + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * + * @return Whether the clientConnectionConfig field is set. + */ + public boolean hasClientConnectionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * + * @return The clientConnectionConfig. + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig() { + if (clientConnectionConfigBuilder_ == null) { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } else { + return clientConnectionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder setClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientConnectionConfig_ = value; + } else { + clientConnectionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder setClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder builderForValue) { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfig_ = builderForValue.build(); + } else { + clientConnectionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder mergeClientConnectionConfig( + com.google.cloud.aiplatform.v1.ClientConnectionConfig value) { + if (clientConnectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && clientConnectionConfig_ != null + && clientConnectionConfig_ + != com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance()) { + getClientConnectionConfigBuilder().mergeFrom(value); + } else { + clientConnectionConfig_ = value; + } + } else { + clientConnectionConfigBuilder_.mergeFrom(value); + } + if (clientConnectionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public Builder clearClientConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + clientConnectionConfig_ = null; + if (clientConnectionConfigBuilder_ != null) { + clientConnectionConfigBuilder_.dispose(); + clientConnectionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder + getClientConnectionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getClientConnectionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + public com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder() { + if (clientConnectionConfigBuilder_ != null) { + return clientConnectionConfigBuilder_.getMessageOrBuilder(); + } else { + return clientConnectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ClientConnectionConfig.getDefaultInstance() + : clientConnectionConfig_; + } + } + /** + * + * + *
+     * Configurations that are applied to the endpoint for online prediction.
+     * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder> + getClientConnectionConfigFieldBuilder() { + if (clientConnectionConfigBuilder_ == null) { + clientConnectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ClientConnectionConfig, + com.google.cloud.aiplatform.v1.ClientConnectionConfig.Builder, + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder>( + getClientConnectionConfig(), getParentForChildren(), isClean()); + clientConnectionConfig_ = null; + } + return clientConnectionConfigBuilder_; + } + private boolean satisfiesPzs_; /** * @@ -5210,7 +5499,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5226,7 +5515,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); satisfiesPzs_ = false; onChanged(); return this; @@ -5263,7 +5552,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5279,7 +5568,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java index d3da5ec58771..a4c20b8d6ade 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java @@ -585,7 +585,7 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/aiplatform/v1/endpoint.proto;l=127 + * See google/cloud/aiplatform/v1/endpoint.proto;l=128 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated @@ -775,6 +775,42 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getDedicatedEndpointDnsBytes(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return Whether the clientConnectionConfig field is set. + */ + boolean hasClientConnectionConfig(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + * + * @return The clientConnectionConfig. + */ + com.google.cloud.aiplatform.v1.ClientConnectionConfig getClientConnectionConfig(); + /** + * + * + *
+   * Configurations that are applied to the endpoint for online prediction.
+   * 
+ * + * .google.cloud.aiplatform.v1.ClientConnectionConfig client_connection_config = 23; + */ + com.google.cloud.aiplatform.v1.ClientConnectionConfigOrBuilder + getClientConnectionConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java index f4a9542669fb..2f1eeffa8e2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_DeployedModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_DeployedModel_SystemLabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -60,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -78,79 +86,89 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d/aiplatform/v1/io.proto\0322google/cloud/a" + "iplatform/v1/machine_resources.proto\0323go" + "ogle/cloud/aiplatform/v1/service_network" - + "ing.proto\032\037google/protobuf/timestamp.pro" - + "to\"\251\n\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di" - + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001" - + "(\t\022G\n\017deployed_models\030\004 \003(\0132).google.clo" - + "ud.aiplatform.v1.DeployedModelB\003\340A\003\022M\n\rt" - + "raffic_split\030\005 \003(\01326.google.cloud.aiplat" - + "form.v1.Endpoint.TrafficSplitEntry\022\014\n\004et" - + "ag\030\006 \001(\t\022@\n\006labels\030\007 \003(\01320.google.cloud." - + "aiplatform.v1.Endpoint.LabelsEntry\0224\n\013cr" - + "eate_time\030\010 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022C\n\017encryption_spe" - + "c\030\n \001(\0132*.google.cloud.aiplatform.v1.Enc" - + "ryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001\372A \n\036co" - + "mpute.googleapis.com/Network\022*\n\036enable_p" - + "rivate_service_connect\030\021 \001(\010B\002\030\001\022d\n\036priv" - + "ate_service_connect_config\030\025 \001(\01327.googl" - + "e.cloud.aiplatform.v1.PrivateServiceConn" - + "ectConfigB\003\340A\001\022g\n\037model_deployment_monit" - + "oring_job\030\016 \001(\tB>\340A\003\372A8\n6aiplatform.goog" - + "leapis.com/ModelDeploymentMonitoringJob\022" - + "p\n\'predict_request_response_logging_conf" - + "ig\030\022 \001(\0132?.google.cloud.aiplatform.v1.Pr" - + "edictRequestResponseLoggingConfig\022\"\n\032ded" - + "icated_endpoint_enabled\030\030 \001(\010\022#\n\026dedicat" - + "ed_endpoint_dns\030\031 \001(\tB\003\340A\003\022\032\n\rsatisfies_" - + "pzs\030\033 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340" - + "A\003\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatfor" - + "m.googleapis.com/Endpoint\022cloud.google.com/go/aipl" - + "atform/apiv1/aiplatformpb;aiplatformpb\252\002" - + "\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Clo" - + "ud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlat" - + "form::V1b\006proto3" + + "ing.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"\377\n\n\010E" + + "ndpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022G\n\017de" + + "ployed_models\030\004 \003(\0132).google.cloud.aipla" + + "tform.v1.DeployedModelB\003\340A\003\022M\n\rtraffic_s" + + "plit\030\005 \003(\01326.google.cloud.aiplatform.v1." + + "Endpoint.TrafficSplitEntry\022\014\n\004etag\030\006 \001(\t" + + "\022@\n\006labels\030\007 \003(\01320.google.cloud.aiplatfo" + + "rm.v1.Endpoint.LabelsEntry\0224\n\013create_tim" + + "e\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\t \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022C\n\017encryption_spec\030\n \001(\0132" + + "*.google.cloud.aiplatform.v1.EncryptionS" + + "pec\0227\n\007network\030\r \001(\tB&\340A\001\372A \n\036compute.go" + + "ogleapis.com/Network\022*\n\036enable_private_s" + + "ervice_connect\030\021 \001(\010B\002\030\001\022d\n\036private_serv" + + "ice_connect_config\030\025 \001(\01327.google.cloud." + + "aiplatform.v1.PrivateServiceConnectConfi" + + "gB\003\340A\001\022g\n\037model_deployment_monitoring_jo" + + "b\030\016 \001(\tB>\340A\003\372A8\n6aiplatform.googleapis.c" + + "om/ModelDeploymentMonitoringJob\022p\n\'predi" + + "ct_request_response_logging_config\030\022 \001(\013" + + "2?.google.cloud.aiplatform.v1.PredictReq" + + "uestResponseLoggingConfig\022\"\n\032dedicated_e" + + "ndpoint_enabled\030\030 \001(\010\022#\n\026dedicated_endpo" + + "int_dns\030\031 \001(\tB\003\340A\003\022T\n\030client_connection_" + + "config\030\027 \001(\01322.google.cloud.aiplatform.v" + + "1.ClientConnectionConfig\022\032\n\rsatisfies_pz" + + "s\030\033 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\034 \001(\010B\003\340A\003" + + "\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatform." + + "googleapis.com/Endpoint\022cloud.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( @@ -163,6 +181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(), com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_Endpoint_descriptor = @@ -188,6 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictRequestResponseLoggingConfig", "DedicatedEndpointEnabled", "DedicatedEndpointDns", + "ClientConnectionConfig", "SatisfiesPzs", "SatisfiesPzi", }); @@ -228,11 +248,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableAccessLogging", "PrivateEndpoints", "FasterDeploymentConfig", + "Status", "SystemLabels", "PredictionResources", }); - internal_static_google_cloud_aiplatform_v1_DeployedModel_SystemLabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor = internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor, + new java.lang.String[] { + "Message", "LastUpdateTime", "AvailableReplicaCount", + }); + internal_static_google_cloud_aiplatform_v1_DeployedModel_SystemLabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor.getNestedTypes().get(1); internal_static_google_cloud_aiplatform_v1_DeployedModel_SystemLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployedModel_SystemLabelsEntry_descriptor, @@ -263,6 +292,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FastTryoutEnabled", }); + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor, + new java.lang.String[] { + "InferenceTimeout", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -277,6 +314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(); com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java index 994d51f8b0cb..c8cdf943b3c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_UpdateEndpointRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_UpdateEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,97 +147,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\212\001\n\025UpdateEndpointRequest\022;\n\010endpoint\030\001 " + "\001(\0132$.google.cloud.aiplatform.v1.Endpoin" + "tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\"Q\n\025DeleteEndpointRe" - + "quest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform." - + "googleapis.com/Endpoint\"\250\002\n\022DeployModelR" - + "equest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplat" - + "form.googleapis.com/Endpoint\022F\n\016deployed" - + "_model\030\002 \001(\0132).google.cloud.aiplatform.v" - + "1.DeployedModelB\003\340A\002\022W\n\rtraffic_split\030\003 " - + "\003(\0132@.google.cloud.aiplatform.v1.DeployM" - + "odelRequest.TrafficSplitEntry\0323\n\021Traffic" - + "SplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" - + "8\001\"X\n\023DeployModelResponse\022A\n\016deployed_mo" - + "del\030\001 \001(\0132).google.cloud.aiplatform.v1.D" - + "eployedModel\"n\n\034DeployModelOperationMeta" - + "data\022N\n\020generic_metadata\030\001 \001(\01324.google." - + "cloud.aiplatform.v1.GenericOperationMeta" - + "data\"\204\002\n\024UndeployModelRequest\022<\n\010endpoin" - + "t\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.c" - + "om/Endpoint\022\036\n\021deployed_model_id\030\002 \001(\tB\003" - + "\340A\002\022Y\n\rtraffic_split\030\003 \003(\0132B.google.clou" - + "d.aiplatform.v1.UndeployModelRequest.Tra" - + "fficSplitEntry\0323\n\021TrafficSplitEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"\027\n\025UndeployM" - + "odelResponse\"p\n\036UndeployModelOperationMe" - + "tadata\022N\n\020generic_metadata\030\001 \001(\01324.googl" - + "e.cloud.aiplatform.v1.GenericOperationMe" - + "tadata\"\330\001\n\032MutateDeployedModelRequest\022<\n" - + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog" - + "leapis.com/Endpoint\022F\n\016deployed_model\030\002 " - + "\001(\0132).google.cloud.aiplatform.v1.Deploye" - + "dModelB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"`\n\033MutateDeplo" - + "yedModelResponse\022A\n\016deployed_model\030\001 \001(\013" - + "2).google.cloud.aiplatform.v1.DeployedMo" - + "del\"v\n$MutateDeployedModelOperationMetad" - + "ata\022N\n\020generic_metadata\030\001 \001(\01324.google.c" - + "loud.aiplatform.v1.GenericOperationMetad" - + "ata2\256\017\n\017EndpointService\022\202\002\n\016CreateEndpoi" - + "nt\0221.google.cloud.aiplatform.v1.CreateEn" + + "tobuf.FieldMaskB\003\340A\002\"_\n UpdateEndpointLo" + + "ngRunningRequest\022;\n\010endpoint\030\001 \001(\0132$.goo" + + "gle.cloud.aiplatform.v1.EndpointB\003\340A\002\"q\n" + + "\037UpdateEndpointOperationMetadata\022N\n\020gene" + + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" + + "form.v1.GenericOperationMetadata\"Q\n\025Dele" + + "teEndpointRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"aiplatform.googleapis.com/Endpoint\"\250\002\n\022" + + "DeployModelRequest\022<\n\010endpoint\030\001 \001(\tB*\340A" + + "\002\372A$\n\"aiplatform.googleapis.com/Endpoint" + + "\022F\n\016deployed_model\030\002 \001(\0132).google.cloud." + + "aiplatform.v1.DeployedModelB\003\340A\002\022W\n\rtraf" + + "fic_split\030\003 \003(\0132@.google.cloud.aiplatfor" + + "m.v1.DeployModelRequest.TrafficSplitEntr" + + "y\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\005:\0028\001\"X\n\023DeployModelResponse\022A\n" + + "\016deployed_model\030\001 \001(\0132).google.cloud.aip" + + "latform.v1.DeployedModel\"n\n\034DeployModelO" + + "perationMetadata\022N\n\020generic_metadata\030\001 \001" + + "(\01324.google.cloud.aiplatform.v1.GenericO" + + "perationMetadata\"\204\002\n\024UndeployModelReques" + + "t\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform." + + "googleapis.com/Endpoint\022\036\n\021deployed_mode" + + "l_id\030\002 \001(\tB\003\340A\002\022Y\n\rtraffic_split\030\003 \003(\0132B" + + ".google.cloud.aiplatform.v1.UndeployMode" + + "lRequest.TrafficSplitEntry\0323\n\021TrafficSpl" + + "itEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"" + + "\027\n\025UndeployModelResponse\"p\n\036UndeployMode" + + "lOperationMetadata\022N\n\020generic_metadata\030\001" + + " \001(\01324.google.cloud.aiplatform.v1.Generi" + + "cOperationMetadata\"\330\001\n\032MutateDeployedMod" + + "elRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aip" + + "latform.googleapis.com/Endpoint\022F\n\016deplo" + + "yed_model\030\002 \001(\0132).google.cloud.aiplatfor" + + "m.v1.DeployedModelB\003\340A\002\0224\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + + "\033MutateDeployedModelResponse\022A\n\016deployed" + + "_model\030\001 \001(\0132).google.cloud.aiplatform.v" + + "1.DeployedModel\"v\n$MutateDeployedModelOp" + + "erationMetadata\022N\n\020generic_metadata\030\001 \001(" + + "\01324.google.cloud.aiplatform.v1.GenericOp" + + "erationMetadata2\255\021\n\017EndpointService\022\202\002\n\016" + + "CreateEndpoint\0221.google.cloud.aiplatform" + + ".v1.CreateEndpointRequest\032\035.google.longr" + + "unning.Operation\"\235\001\312A+\n\010Endpoint\022\037Create" + + "EndpointOperationMetadata\332A\017parent,endpo" + + "int\332A\033parent,endpoint,endpoint_id\202\323\344\223\0029\"" + + "-/v1/{parent=projects/*/locations/*}/end" + + "points:\010endpoint\022\241\001\n\013GetEndpoint\022..googl" + + "e.cloud.aiplatform.v1.GetEndpointRequest" + + "\032$.google.cloud.aiplatform.v1.Endpoint\"<" + + "\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/loca" + + "tions/*/endpoints/*}\022\264\001\n\rListEndpoints\0220" + + ".google.cloud.aiplatform.v1.ListEndpoint" + + "sRequest\0321.google.cloud.aiplatform.v1.Li" + + "stEndpointsResponse\">\332A\006parent\202\323\344\223\002/\022-/v" + + "1/{parent=projects/*/locations/*}/endpoi" + + "nts\022\312\001\n\016UpdateEndpoint\0221.google.cloud.ai" + + "platform.v1.UpdateEndpointRequest\032$.goog" + + "le.cloud.aiplatform.v1.Endpoint\"_\332A\024endp" + + "oint,update_mask\202\323\344\223\002B26/v1/{endpoint.na" + + "me=projects/*/locations/*/endpoints/*}:\010" + + "endpoint\022\374\001\n\031UpdateEndpointLongRunning\022<" + + ".google.cloud.aiplatform.v1.UpdateEndpoi" + + "ntLongRunningRequest\032\035.google.longrunnin" + + "g.Operation\"\201\001\312A+\n\010Endpoint\022\037UpdateEndpo" + + "intOperationMetadata\332A\010endpoint\202\323\344\223\002B\"=/" + + "v1/{endpoint.name=projects/*/locations/*" + + "/endpoints/*}:update:\001*\022\323\001\n\016DeleteEndpoi" + + "nt\0221.google.cloud.aiplatform.v1.DeleteEn" + "dpointRequest\032\035.google.longrunning.Opera" - + "tion\"\235\001\312A+\n\010Endpoint\022\037CreateEndpointOper" - + "ationMetadata\332A\017parent,endpoint\332A\033parent" - + ",endpoint,endpoint_id\202\323\344\223\0029\"-/v1/{parent" - + "=projects/*/locations/*}/endpoints:\010endp" - + "oint\022\241\001\n\013GetEndpoint\022..google.cloud.aipl" - + "atform.v1.GetEndpointRequest\032$.google.cl" - + "oud.aiplatform.v1.Endpoint\"<\332A\004name\202\323\344\223\002" - + "/\022-/v1/{name=projects/*/locations/*/endp" - + "oints/*}\022\264\001\n\rListEndpoints\0220.google.clou" - + "d.aiplatform.v1.ListEndpointsRequest\0321.g" - + "oogle.cloud.aiplatform.v1.ListEndpointsR" - + "esponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=pr" - + "ojects/*/locations/*}/endpoints\022\312\001\n\016Upda" - + "teEndpoint\0221.google.cloud.aiplatform.v1." - + "UpdateEndpointRequest\032$.google.cloud.aip" - + "latform.v1.Endpoint\"_\332A\024endpoint,update_" - + "mask\202\323\344\223\002B26/v1/{endpoint.name=projects/" - + "*/locations/*/endpoints/*}:\010endpoint\022\323\001\n" - + "\016DeleteEndpoint\0221.google.cloud.aiplatfor" - + "m.v1.DeleteEndpointRequest\032\035.google.long" - + "running.Operation\"o\312A0\n\025google.protobuf." - + "Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344" - + "\223\002/*-/v1/{name=projects/*/locations/*/en" - + "dpoints/*}\022\205\002\n\013DeployModel\022..google.clou" - + "d.aiplatform.v1.DeployModelRequest\032\035.goo" - + "gle.longrunning.Operation\"\246\001\312A3\n\023DeployM" - + "odelResponse\022\034DeployModelOperationMetada" - + "ta\332A%endpoint,deployed_model,traffic_spl" - + "it\202\323\344\223\002B\"=/v1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:deployModel:\001*\022\222\002\n\rU" - + "ndeployModel\0220.google.cloud.aiplatform.v" - + "1.UndeployModelRequest\032\035.google.longrunn" - + "ing.Operation\"\257\001\312A7\n\025UndeployModelRespon" - + "se\022\036UndeployModelOperationMetadata\332A(end" - + "point,deployed_model_id,traffic_split\202\323\344" - + "\223\002D\"?/v1/{endpoint=projects/*/locations/" - + "*/endpoints/*}:undeployModel:\001*\022\253\002\n\023Muta" - + "teDeployedModel\0226.google.cloud.aiplatfor" - + "m.v1.MutateDeployedModelRequest\032\035.google" - + ".longrunning.Operation\"\274\001\312AC\n\033MutateDepl" - + "oyedModelResponse\022$MutateDeployedModelOp" - + "erationMetadata\332A#endpoint,deployed_mode" - + "l,update_mask\202\323\344\223\002J\"E/v1/{endpoint=proje" - + "cts/*/locations/*/endpoints/*}:mutateDep" - + "loyedModel:\001*\032M\312A\031aiplatform.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\322\001\n\036com.google.cloud.aiplat" - + "form.v1B\024EndpointServiceProtoP\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" + + "tion\"o\312A0\n\025google.protobuf.Empty\022\027Delete" + + "OperationMetadata\332A\004name\202\323\344\223\002/*-/v1/{nam" + + "e=projects/*/locations/*/endpoints/*}\022\205\002" + + "\n\013DeployModel\022..google.cloud.aiplatform." + + "v1.DeployModelRequest\032\035.google.longrunni" + + "ng.Operation\"\246\001\312A3\n\023DeployModelResponse\022" + + "\034DeployModelOperationMetadata\332A%endpoint" + + ",deployed_model,traffic_split\202\323\344\223\002B\"=/v1" + + "/{endpoint=projects/*/locations/*/endpoi" + + "nts/*}:deployModel:\001*\022\222\002\n\rUndeployModel\022" + + "0.google.cloud.aiplatform.v1.UndeployMod" + + "elRequest\032\035.google.longrunning.Operation" + + "\"\257\001\312A7\n\025UndeployModelResponse\022\036UndeployM" + + "odelOperationMetadata\332A(endpoint,deploye" + + "d_model_id,traffic_split\202\323\344\223\002D\"?/v1/{end" + + "point=projects/*/locations/*/endpoints/*" + + "}:undeployModel:\001*\022\253\002\n\023MutateDeployedMod" + + "el\0226.google.cloud.aiplatform.v1.MutateDe" + + "ployedModelRequest\032\035.google.longrunning." + + "Operation\"\274\001\312AC\n\033MutateDeployedModelResp" + + "onse\022$MutateDeployedModelOperationMetada" + + "ta\332A#endpoint,deployed_model,update_mask" + + "\202\323\344\223\002J\"E/v1/{endpoint=projects/*/locatio" + + "ns/*/endpoints/*}:mutateDeployedModel:\001*" + + "\032M\312A\031aiplatform.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\322\001\n\036com.google.cloud.aiplatform.v1B\024Endp" + + "ointServiceProtoP\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( @@ -293,8 +313,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Endpoint", "UpdateMask", }); - internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor, + new java.lang.String[] { + "Endpoint", + }); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteEndpointRequest_descriptor, @@ -302,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_DeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_DeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelRequest_descriptor, @@ -320,7 +356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1_DeployModelResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_DeployModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelResponse_descriptor, @@ -328,7 +364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployedModel", }); internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeployModelOperationMetadata_descriptor, @@ -336,7 +372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelRequest_descriptor, @@ -354,13 +390,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UndeployModelOperationMetadata_descriptor, @@ -368,7 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelRequest_descriptor, @@ -376,7 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "DeployedModel", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelResponse_descriptor, @@ -384,7 +420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployedModel", }); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MutateDeployedModelOperationMetadata_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java new file mode 100644 index 000000000000..c951f683eaeb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java @@ -0,0 +1,1636 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The fact used in grounding.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Fact} + */ +public final class Fact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Fact) + FactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Fact.newBuilder() to construct. + private Fact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Fact() { + query_ = ""; + title_ = ""; + uri_ = ""; + summary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Fact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Fact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Fact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Fact.class, + com.google.cloud.aiplatform.v1.Fact.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.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; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional 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; + } + } + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional 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; + } + } + + public static final int URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @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 present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @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 SUMMARY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_DISTANCE_FIELD_NUMBER = 5; + private double vectorDistance_ = 0D; + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistance() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return The vectorDistance. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistance() { + return vectorDistance_; + } + + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, summary_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, vectorDistance_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, score_); + } + 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.GeneratedMessageV3.computeStringSize(1, query_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, summary_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, vectorDistance_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + 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.Fact)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Fact other = (com.google.cloud.aiplatform.v1.Fact) obj; + + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasSummary() != other.hasSummary()) return false; + if (hasSummary()) { + if (!getSummary().equals(other.getSummary())) return false; + } + if (hasVectorDistance() != other.hasVectorDistance()) return false; + if (hasVectorDistance()) { + if (java.lang.Double.doubleToLongBits(getVectorDistance()) + != java.lang.Double.doubleToLongBits(other.getVectorDistance())) return false; + } + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) 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 (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + if (hasVectorDistance()) { + hash = (37 * hash) + VECTOR_DISTANCE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistance())); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Fact parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Fact 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.Fact parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Fact 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.Fact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Fact 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.Fact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Fact 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.Fact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Fact 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.Fact 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.Fact 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.Fact 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 fact used in grounding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Fact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Fact) + com.google.cloud.aiplatform.v1.FactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Fact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Fact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Fact.class, + com.google.cloud.aiplatform.v1.Fact.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Fact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + title_ = ""; + uri_ = ""; + summary_ = ""; + vectorDistance_ = 0D; + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_Fact_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Fact getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Fact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Fact build() { + com.google.cloud.aiplatform.v1.Fact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Fact buildPartial() { + com.google.cloud.aiplatform.v1.Fact result = new com.google.cloud.aiplatform.v1.Fact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Fact result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.summary_ = summary_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vectorDistance_ = vectorDistance_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000020; + } + 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.Fact) { + return mergeFrom((com.google.cloud.aiplatform.v1.Fact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Fact other) { + if (other == com.google.cloud.aiplatform.v1.Fact.getDefaultInstance()) return this; + if (other.hasQuery()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSummary()) { + summary_ = other.summary_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasVectorDistance()) { + setVectorDistance(other.getVectorDistance()); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: + { + vectorDistance_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + 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 query_ = ""; + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return The query. + */ + 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(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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; + } + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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; + } + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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; + } + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + public boolean hasSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double vectorDistance_; + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistance() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return The vectorDistance. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistance() { + return vectorDistance_; + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @param value The vectorDistance to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setVectorDistance(double value) { + + vectorDistance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearVectorDistance() { + bitField0_ = (bitField0_ & ~0x00000010); + vectorDistance_ = 0D; + onChanged(); + return this; + } + + private double score_; + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000020); + score_ = 0D; + 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.Fact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Fact) + private static final com.google.cloud.aiplatform.v1.Fact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Fact(); + } + + public static com.google.cloud.aiplatform.v1.Fact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fact 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.Fact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java new file mode 100644 index 000000000000..9dcd54718640 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java @@ -0,0 +1,244 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface FactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Fact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + java.lang.String getSummary(); + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Deprecated + boolean hasVectorDistance(); + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=284 + * @return The vectorDistance. + */ + @java.lang.Deprecated + double getVectorDistance(); + + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return The score. + */ + double getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatus.java new file mode 100644 index 000000000000..d749e821864f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatus.java @@ -0,0 +1,945 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * RagFile status.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FileStatus} + */ +public final class FileStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FileStatus) + FileStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileStatus.newBuilder() to construct. + private FileStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileStatus() { + state_ = 0; + errorStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_FileStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FileStatus.class, + com.google.cloud.aiplatform.v1.FileStatus.Builder.class); + } + + /** + * + * + *
+   * RagFile state.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.FileStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * RagFile state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * RagFile resource has been created and indexed successfully.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * RagFile resource is in a problematic state.
+     * See `error_message` field for details.
+     * 
+ * + * ERROR = 2; + */ + ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * RagFile state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * RagFile resource has been created and indexed successfully.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * RagFile resource is in a problematic state.
+     * See `error_message` field for details.
+     * 
+ * + * ERROR = 2; + */ + public static final int ERROR_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return ERROR; + 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 State findValueByNumber(int number) { + return State.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.FileStatus.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.FileStatus.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+   * Output only. RagFile state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. RagFile state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus.State getState() { + com.google.cloud.aiplatform.v1.FileStatus.State result = + com.google.cloud.aiplatform.v1.FileStatus.State.forNumber(state_); + return result == null ? com.google.cloud.aiplatform.v1.FileStatus.State.UNRECOGNIZED : result; + } + + public static final int ERROR_STATUS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorStatus_ = ""; + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + @java.lang.Override + public java.lang.String getErrorStatus() { + java.lang.Object ref = errorStatus_; + 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(); + errorStatus_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorStatusBytes() { + java.lang.Object ref = errorStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorStatus_ = 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 (state_ != com.google.cloud.aiplatform.v1.FileStatus.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.aiplatform.v1.FileStatus.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorStatus_); + } + 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.FileStatus)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.FileStatus other = + (com.google.cloud.aiplatform.v1.FileStatus) obj; + + if (state_ != other.state_) return false; + if (!getErrorStatus().equals(other.getErrorStatus())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getErrorStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.FileStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FileStatus 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.FileStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FileStatus 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.FileStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FileStatus 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.FileStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.FileStatus 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.FileStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.FileStatus 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.FileStatus 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.FileStatus 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.FileStatus 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; + } + /** + * + * + *
+   * RagFile status.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FileStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FileStatus) + com.google.cloud.aiplatform.v1.FileStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_FileStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FileStatus.class, + com.google.cloud.aiplatform.v1.FileStatus.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.FileStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + errorStatus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus build() { + com.google.cloud.aiplatform.v1.FileStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus buildPartial() { + com.google.cloud.aiplatform.v1.FileStatus result = + new com.google.cloud.aiplatform.v1.FileStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FileStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorStatus_ = errorStatus_; + } + } + + @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.FileStatus) { + return mergeFrom((com.google.cloud.aiplatform.v1.FileStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.FileStatus other) { + if (other == com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorStatus().isEmpty()) { + errorStatus_ = other.errorStatus_; + 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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + errorStatus_ = 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 state_ = 0; + /** + * + * + *
+     * Output only. RagFile state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. RagFile state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagFile state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus.State getState() { + com.google.cloud.aiplatform.v1.FileStatus.State result = + com.google.cloud.aiplatform.v1.FileStatus.State.forNumber(state_); + return result == null ? com.google.cloud.aiplatform.v1.FileStatus.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. RagFile state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.FileStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagFile state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorStatus_ = ""; + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + public java.lang.String getErrorStatus() { + java.lang.Object ref = errorStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + public com.google.protobuf.ByteString getErrorStatusBytes() { + java.lang.Object ref = errorStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorStatus to set. + * @return This builder for chaining. + */ + public Builder setErrorStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorStatus() { + errorStatus_ = getDefaultInstance().getErrorStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Only when the `state` field is ERROR.
+     * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorStatus to set. + * @return This builder for chaining. + */ + public Builder setErrorStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorStatus_ = 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.FileStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FileStatus) + private static final com.google.cloud.aiplatform.v1.FileStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.FileStatus(); + } + + public static com.google.cloud.aiplatform.v1.FileStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileStatus 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.FileStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatusOrBuilder.java new file mode 100644 index 000000000000..be6a52c5d156 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FileStatusOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface FileStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.FileStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. RagFile state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. RagFile state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.FileStatus.State getState(); + + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorStatus. + */ + java.lang.String getErrorStatus(); + /** + * + * + *
+   * Output only. Only when the `state` field is ERROR.
+   * 
+ * + * string error_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorStatus. + */ + com.google.protobuf.ByteString getErrorStatusBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequest.java new file mode 100644 index 000000000000..46559d4aa8fd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.GetRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.GetRagCorpus]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetRagCorpusRequest} + */ +public final class GetRagCorpusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetRagCorpusRequest) + GetRagCorpusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRagCorpusRequest.newBuilder() to construct. + private GetRagCorpusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRagCorpusRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRagCorpusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.GetRagCorpusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the RagCorpus resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 name of the RagCorpus resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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.aiplatform.v1.GetRagCorpusRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetRagCorpusRequest other = + (com.google.cloud.aiplatform.v1.GetRagCorpusRequest) 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.aiplatform.v1.GetRagCorpusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.GetRagCorpusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.GetRagCorpusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.GetRagCorpusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.GetRagCorpusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.GetRagCorpusRequest 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.GetRagCorpusRequest 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.GetRagCorpusRequest 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
+   * [VertexRagDataService.GetRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.GetRagCorpus]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetRagCorpusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetRagCorpusRequest) + com.google.cloud.aiplatform.v1.GetRagCorpusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.GetRagCorpusRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetRagCorpusRequest.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.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagCorpusRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetRagCorpusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagCorpusRequest build() { + com.google.cloud.aiplatform.v1.GetRagCorpusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagCorpusRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetRagCorpusRequest result = + new com.google.cloud.aiplatform.v1.GetRagCorpusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GetRagCorpusRequest 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.aiplatform.v1.GetRagCorpusRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetRagCorpusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetRagCorpusRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetRagCorpusRequest.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 name of the RagCorpus resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 name of the RagCorpus resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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.aiplatform.v1.GetRagCorpusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetRagCorpusRequest) + private static final com.google.cloud.aiplatform.v1.GetRagCorpusRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetRagCorpusRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetRagCorpusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRagCorpusRequest 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.GetRagCorpusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequestOrBuilder.java new file mode 100644 index 000000000000..cf4792b40c98 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagCorpusRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface GetRagCorpusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetRagCorpusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagCorpus resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the RagCorpus resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequest.java new file mode 100644 index 000000000000..b168ded62d20 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.GetRagFile][google.cloud.aiplatform.v1.VertexRagDataService.GetRagFile]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetRagFileRequest} + */ +public final class GetRagFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetRagFileRequest) + GetRagFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRagFileRequest.newBuilder() to construct. + private GetRagFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRagFileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRagFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetRagFileRequest.class, + com.google.cloud.aiplatform.v1.GetRagFileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the RagFile resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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 name of the RagFile resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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.aiplatform.v1.GetRagFileRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetRagFileRequest other = + (com.google.cloud.aiplatform.v1.GetRagFileRequest) 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.aiplatform.v1.GetRagFileRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest 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.GetRagFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest 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.GetRagFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest 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.GetRagFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest 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.GetRagFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest 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.GetRagFileRequest 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.GetRagFileRequest 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.GetRagFileRequest 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
+   * [VertexRagDataService.GetRagFile][google.cloud.aiplatform.v1.VertexRagDataService.GetRagFile]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetRagFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetRagFileRequest) + com.google.cloud.aiplatform.v1.GetRagFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetRagFileRequest.class, + com.google.cloud.aiplatform.v1.GetRagFileRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetRagFileRequest.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.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagFileRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetRagFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagFileRequest build() { + com.google.cloud.aiplatform.v1.GetRagFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetRagFileRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetRagFileRequest result = + new com.google.cloud.aiplatform.v1.GetRagFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GetRagFileRequest 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.aiplatform.v1.GetRagFileRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetRagFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetRagFileRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetRagFileRequest.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 name of the RagFile resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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 name of the RagFile resource.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+     * 
+ * + * + * 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.aiplatform.v1.GetRagFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetRagFileRequest) + private static final com.google.cloud.aiplatform.v1.GetRagFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetRagFileRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetRagFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRagFileRequest 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.GetRagFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequestOrBuilder.java new file mode 100644 index 000000000000..4eb7a79917c3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetRagFileRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface GetRagFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetRagFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagFile resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the RagFile resource.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}`
+   * 
+ * + * + * 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-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSource.java new file mode 100644 index 000000000000..11e37b47fbac --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSource.java @@ -0,0 +1,2015 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The Google Drive location for the input content.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GoogleDriveSource} + */ +public final class GoogleDriveSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GoogleDriveSource) + GoogleDriveSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleDriveSource.newBuilder() to construct. + private GoogleDriveSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleDriveSource() { + resourceIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleDriveSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GoogleDriveSource.class, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder.class); + } + + public interface ResourceIdOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The type of the Google Drive resource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+     * Required. The type of the Google Drive resource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType getResourceType(); + + /** + * + * + *
+     * Required. The ID of the Google Drive resource.
+     * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + java.lang.String getResourceId(); + /** + * + * + *
+     * Required. The ID of the Google Drive resource.
+     * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + com.google.protobuf.ByteString getResourceIdBytes(); + } + /** + * + * + *
+   * The type and ID of the Google Drive resource.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId} + */ + public static final class ResourceId extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) + ResourceIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceId.newBuilder() to construct. + private ResourceId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceId() { + resourceType_ = 0; + resourceId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.class, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder.class); + } + + /** + * + * + *
+     * The type of the Google Drive resource.
+     * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType} + */ + public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified resource type.
+       * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * File resource type.
+       * 
+ * + * RESOURCE_TYPE_FILE = 1; + */ + RESOURCE_TYPE_FILE(1), + /** + * + * + *
+       * Folder resource type.
+       * 
+ * + * RESOURCE_TYPE_FOLDER = 2; + */ + RESOURCE_TYPE_FOLDER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified resource type.
+       * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * File resource type.
+       * 
+ * + * RESOURCE_TYPE_FILE = 1; + */ + public static final int RESOURCE_TYPE_FILE_VALUE = 1; + /** + * + * + *
+       * Folder resource type.
+       * 
+ * + * RESOURCE_TYPE_FOLDER = 2; + */ + public static final int RESOURCE_TYPE_FOLDER_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 ResourceType 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 ResourceType forNumber(int value) { + switch (value) { + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return RESOURCE_TYPE_FILE; + case 2: + return RESOURCE_TYPE_FOLDER; + 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 ResourceType findValueByNumber(int number) { + return ResourceType.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.GoogleDriveSource.ResourceId.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType 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 ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType) + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_ = 0; + /** + * + * + *
+     * Required. The type of the Google Drive resource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * Required. The type of the Google Drive resource.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType + getResourceType() { + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType result = + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType.forNumber( + resourceType_); + return result == null + ? com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType.UNRECOGNIZED + : result; + } + + public static final int RESOURCE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceId_ = ""; + /** + * + * + *
+     * Required. The ID of the Google Drive resource.
+     * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + @java.lang.Override + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + 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(); + resourceId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The ID of the Google Drive resource.
+     * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = 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 (resourceType_ + != com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ + != com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType + .RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceId_); + } + 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.GoogleDriveSource.ResourceId)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId other = + (com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getResourceId().equals(other.getResourceId())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + RESOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getResourceId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId 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.GoogleDriveSource.ResourceId 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 type and ID of the Google Drive resource.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.class, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = 0; + resourceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId build() { + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId buildPartial() { + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId result = + new com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceId_ = resourceId_; + } + } + + @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.GoogleDriveSource.ResourceId) { + return mergeFrom((com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId other) { + if (other + == com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.getDefaultInstance()) + return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getResourceId().isEmpty()) { + resourceId_ = other.resourceId_; + 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: + { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + resourceId_ = 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 resourceType_ = 0; + /** + * + * + *
+       * Required. The type of the Google Drive resource.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+       * Required. The type of the Google Drive resource.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The type of the Google Drive resource.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType + getResourceType() { + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType result = + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType.forNumber( + resourceType_); + return result == null + ? com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The type of the Google Drive resource.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The type of the Google Drive resource.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000001); + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object resourceId_ = ""; + /** + * + * + *
+       * Required. The ID of the Google Drive resource.
+       * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceId. + */ + public java.lang.String getResourceId() { + java.lang.Object ref = resourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The ID of the Google Drive resource.
+       * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceId. + */ + public com.google.protobuf.ByteString getResourceIdBytes() { + java.lang.Object ref = resourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The ID of the Google Drive resource.
+       * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The ID of the Google Drive resource.
+       * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResourceId() { + resourceId_ = getDefaultInstance().getResourceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The ID of the Google Drive resource.
+       * 
+ * + * string resource_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resourceId to set. + * @return This builder for chaining. + */ + public Builder setResourceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceId_ = 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.GoogleDriveSource.ResourceId) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId) + private static final com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId(); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceId 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.GoogleDriveSource.ResourceId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List resourceIds_; + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getResourceIdsList() { + return resourceIds_; + } + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder> + getResourceIdsOrBuilderList() { + return resourceIds_; + } + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getResourceIdsCount() { + return resourceIds_.size(); + } + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId getResourceIds(int index) { + return resourceIds_.get(index); + } + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder + getResourceIdsOrBuilder(int index) { + return resourceIds_.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 < resourceIds_.size(); i++) { + output.writeMessage(1, resourceIds_.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 < resourceIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceIds_.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.GoogleDriveSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GoogleDriveSource other = + (com.google.cloud.aiplatform.v1.GoogleDriveSource) obj; + + if (!getResourceIdsList().equals(other.getResourceIdsList())) 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 (getResourceIdsCount() > 0) { + hash = (37 * hash) + RESOURCE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getResourceIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource 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.GoogleDriveSource 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.GoogleDriveSource 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 Google Drive location for the input content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GoogleDriveSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GoogleDriveSource) + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GoogleDriveSource.class, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GoogleDriveSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resourceIdsBuilder_ == null) { + resourceIds_ = java.util.Collections.emptyList(); + } else { + resourceIds_ = null; + resourceIdsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource build() { + com.google.cloud.aiplatform.v1.GoogleDriveSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource buildPartial() { + com.google.cloud.aiplatform.v1.GoogleDriveSource result = + new com.google.cloud.aiplatform.v1.GoogleDriveSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.GoogleDriveSource result) { + if (resourceIdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceIds_ = java.util.Collections.unmodifiableList(resourceIds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceIds_ = resourceIds_; + } else { + result.resourceIds_ = resourceIdsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GoogleDriveSource 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.GoogleDriveSource) { + return mergeFrom((com.google.cloud.aiplatform.v1.GoogleDriveSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GoogleDriveSource other) { + if (other == com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance()) + return this; + if (resourceIdsBuilder_ == null) { + if (!other.resourceIds_.isEmpty()) { + if (resourceIds_.isEmpty()) { + resourceIds_ = other.resourceIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceIdsIsMutable(); + resourceIds_.addAll(other.resourceIds_); + } + onChanged(); + } + } else { + if (!other.resourceIds_.isEmpty()) { + if (resourceIdsBuilder_.isEmpty()) { + resourceIdsBuilder_.dispose(); + resourceIdsBuilder_ = null; + resourceIds_ = other.resourceIds_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceIdsFieldBuilder() + : null; + } else { + resourceIdsBuilder_.addAllMessages(other.resourceIds_); + } + } + } + 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.GoogleDriveSource.ResourceId m = + input.readMessage( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.parser(), + extensionRegistry); + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + resourceIds_.add(m); + } else { + resourceIdsBuilder_.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 + resourceIds_ = java.util.Collections.emptyList(); + + private void ensureResourceIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceIds_ = + new java.util.ArrayList( + resourceIds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder> + resourceIdsBuilder_; + + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getResourceIdsList() { + if (resourceIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceIds_); + } else { + return resourceIdsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getResourceIdsCount() { + if (resourceIdsBuilder_ == null) { + return resourceIds_.size(); + } else { + return resourceIdsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId getResourceIds(int index) { + if (resourceIdsBuilder_ == null) { + return resourceIds_.get(index); + } else { + return resourceIdsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setResourceIds( + int index, com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId value) { + if (resourceIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIdsIsMutable(); + resourceIds_.set(index, value); + onChanged(); + } else { + resourceIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setResourceIds( + int index, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder builderForValue) { + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + resourceIds_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResourceIds( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId value) { + if (resourceIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIdsIsMutable(); + resourceIds_.add(value); + onChanged(); + } else { + resourceIdsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResourceIds( + int index, com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId value) { + if (resourceIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIdsIsMutable(); + resourceIds_.add(index, value); + onChanged(); + } else { + resourceIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResourceIds( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder builderForValue) { + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + resourceIds_.add(builderForValue.build()); + onChanged(); + } else { + resourceIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResourceIds( + int index, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder builderForValue) { + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + resourceIds_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllResourceIds( + java.lang.Iterable + values) { + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceIds_); + onChanged(); + } else { + resourceIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearResourceIds() { + if (resourceIdsBuilder_ == null) { + resourceIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceIdsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeResourceIds(int index) { + if (resourceIdsBuilder_ == null) { + ensureResourceIdsIsMutable(); + resourceIds_.remove(index); + onChanged(); + } else { + resourceIdsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder + getResourceIdsBuilder(int index) { + return getResourceIdsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder + getResourceIdsOrBuilder(int index) { + if (resourceIdsBuilder_ == null) { + return resourceIds_.get(index); + } else { + return resourceIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder> + getResourceIdsOrBuilderList() { + if (resourceIdsBuilder_ != null) { + return resourceIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceIds_); + } + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder + addResourceIdsBuilder() { + return getResourceIdsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder + addResourceIdsBuilder(int index) { + return getResourceIdsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Google Drive resource IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getResourceIdsBuilderList() { + return getResourceIdsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder> + getResourceIdsFieldBuilder() { + if (resourceIdsBuilder_ == null) { + resourceIdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder>( + resourceIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourceIds_ = null; + } + return resourceIdsBuilder_; + } + + @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.GoogleDriveSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GoogleDriveSource) + private static final com.google.cloud.aiplatform.v1.GoogleDriveSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GoogleDriveSource(); + } + + public static com.google.cloud.aiplatform.v1.GoogleDriveSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleDriveSource 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.GoogleDriveSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSourceOrBuilder.java new file mode 100644 index 000000000000..9323af9a57d9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleDriveSourceOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface GoogleDriveSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GoogleDriveSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getResourceIdsList(); + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId getResourceIds(int index); + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getResourceIdsCount(); + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getResourceIdsOrBuilderList(); + /** + * + * + *
+   * Required. Google Drive resource IDs.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.GoogleDriveSource.ResourceId resource_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.GoogleDriveSource.ResourceIdOrBuilder getResourceIdsOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java new file mode 100644 index 000000000000..d42952a944d5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java @@ -0,0 +1,3336 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Config for importing RagFiles.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesConfig} + */ +public final class ImportRagFilesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImportRagFilesConfig) + ImportRagFilesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportRagFilesConfig.newBuilder() to construct. + private ImportRagFilesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportRagFilesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportRagFilesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.class, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder.class); + } + + private int bitField0_; + private int importSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importSource_; + + public enum ImportSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(2), + GOOGLE_DRIVE_SOURCE(3), + SLACK_SOURCE(6), + JIRA_SOURCE(7), + SHARE_POINT_SOURCES(13), + IMPORTSOURCE_NOT_SET(0); + private final int value; + + private ImportSourceCase(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 ImportSourceCase valueOf(int value) { + return forNumber(value); + } + + public static ImportSourceCase forNumber(int value) { + switch (value) { + case 2: + return GCS_SOURCE; + case 3: + return GOOGLE_DRIVE_SOURCE; + case 6: + return SLACK_SOURCE; + case 7: + return JIRA_SOURCE; + case 13: + return SHARE_POINT_SOURCES; + case 0: + return IMPORTSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportSourceCase getImportSourceCase() { + return ImportSourceCase.forNumber(importSourceCase_); + } + + private int partialFailureSinkCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object partialFailureSink_; + + public enum PartialFailureSinkCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated + PARTIAL_FAILURE_GCS_SINK(11), + @java.lang.Deprecated + PARTIAL_FAILURE_BIGQUERY_SINK(12), + PARTIALFAILURESINK_NOT_SET(0); + private final int value; + + private PartialFailureSinkCase(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 PartialFailureSinkCase valueOf(int value) { + return forNumber(value); + } + + public static PartialFailureSinkCase forNumber(int value) { + switch (value) { + case 11: + return PARTIAL_FAILURE_GCS_SINK; + case 12: + return PARTIAL_FAILURE_BIGQUERY_SINK; + case 0: + return PARTIALFAILURESINK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PartialFailureSinkCase getPartialFailureSinkCase() { + return PartialFailureSinkCase.forNumber(partialFailureSinkCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourceCase_ == 2; + } + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { + if (importSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GcsSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (importSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GcsSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + + public static final int GOOGLE_DRIVE_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return Whether the googleDriveSource field is set. + */ + @java.lang.Override + public boolean hasGoogleDriveSource() { + return importSourceCase_ == 3; + } + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return The googleDriveSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource() { + if (importSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder() { + if (importSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + + public static final int SLACK_SOURCE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return importSourceCase_ == 6; + } + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource getSlackSource() { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + + public static final int JIRA_SOURCE_FIELD_NUMBER = 7; + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return importSourceCase_ == 7; + } + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource getJiraSource() { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + + public static final int SHARE_POINT_SOURCES_FIELD_NUMBER = 13; + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return Whether the sharePointSources field is set. + */ + @java.lang.Override + public boolean hasSharePointSources() { + return importSourceCase_ == 13; + } + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return The sharePointSources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources() { + if (importSourceCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SharePointSources) importSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder getSharePointSourcesOrBuilder() { + if (importSourceCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SharePointSources) importSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + + public static final int PARTIAL_FAILURE_GCS_SINK_FIELD_NUMBER = 11; + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return Whether the partialFailureGcsSink field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPartialFailureGcsSink() { + return partialFailureSinkCase_ == 11; + } + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return The partialFailureGcsSink. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.GcsDestination getPartialFailureGcsSink() { + if (partialFailureSinkCase_ == 11) { + return (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder + getPartialFailureGcsSinkOrBuilder() { + if (partialFailureSinkCase_ == 11) { + return (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } + + public static final int PARTIAL_FAILURE_BIGQUERY_SINK_FIELD_NUMBER = 12; + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return Whether the partialFailureBigquerySink field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPartialFailureBigquerySink() { + return partialFailureSinkCase_ == 12; + } + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return The partialFailureBigquerySink. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.BigQueryDestination getPartialFailureBigquerySink() { + if (partialFailureSinkCase_ == 12) { + return (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder + getPartialFailureBigquerySinkOrBuilder() { + if (partialFailureSinkCase_ == 12) { + return (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } + + public static final int RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1.RagFileTransformationConfig ragFileTransformationConfig_; + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig + getRagFileTransformationConfig() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + + public static final int MAX_EMBEDDING_REQUESTS_PER_MIN_FIELD_NUMBER = 5; + private int maxEmbeddingRequestsPerMin_ = 0; + /** + * + * + *
+   * Optional. The max number of queries per minute that this job is allowed to
+   * make to the embedding model specified on the corpus. This value is specific
+   * to this job and not shared across other import jobs. Consult the Quotas
+   * page on the project to set an appropriate value here.
+   * If unspecified, a default value of 1,000 QPM would be used.
+   * 
+ * + * int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEmbeddingRequestsPerMin. + */ + @java.lang.Override + public int getMaxEmbeddingRequestsPerMin() { + return maxEmbeddingRequestsPerMin_; + } + + 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 (importSourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.aiplatform.v1.GcsSource) importSource_); + } + if (importSourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_); + } + if (maxEmbeddingRequestsPerMin_ != 0) { + output.writeInt32(5, maxEmbeddingRequestsPerMin_); + } + if (importSourceCase_ == 6) { + output.writeMessage(6, (com.google.cloud.aiplatform.v1.SlackSource) importSource_); + } + if (importSourceCase_ == 7) { + output.writeMessage(7, (com.google.cloud.aiplatform.v1.JiraSource) importSource_); + } + if (partialFailureSinkCase_ == 11) { + output.writeMessage(11, (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_); + } + if (partialFailureSinkCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_); + } + if (importSourceCase_ == 13) { + output.writeMessage(13, (com.google.cloud.aiplatform.v1.SharePointSources) importSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(16, getRagFileTransformationConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importSourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1.GcsSource) importSource_); + } + if (importSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_); + } + if (maxEmbeddingRequestsPerMin_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxEmbeddingRequestsPerMin_); + } + if (importSourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1.SlackSource) importSource_); + } + if (importSourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.aiplatform.v1.JiraSource) importSource_); + } + if (partialFailureSinkCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_); + } + if (partialFailureSinkCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_); + } + if (importSourceCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.aiplatform.v1.SharePointSources) importSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getRagFileTransformationConfig()); + } + 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.ImportRagFilesConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImportRagFilesConfig other = + (com.google.cloud.aiplatform.v1.ImportRagFilesConfig) obj; + + if (hasRagFileTransformationConfig() != other.hasRagFileTransformationConfig()) return false; + if (hasRagFileTransformationConfig()) { + if (!getRagFileTransformationConfig().equals(other.getRagFileTransformationConfig())) + return false; + } + if (getMaxEmbeddingRequestsPerMin() != other.getMaxEmbeddingRequestsPerMin()) return false; + if (!getImportSourceCase().equals(other.getImportSourceCase())) return false; + switch (importSourceCase_) { + case 2: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 3: + if (!getGoogleDriveSource().equals(other.getGoogleDriveSource())) return false; + break; + case 6: + if (!getSlackSource().equals(other.getSlackSource())) return false; + break; + case 7: + if (!getJiraSource().equals(other.getJiraSource())) return false; + break; + case 13: + if (!getSharePointSources().equals(other.getSharePointSources())) return false; + break; + case 0: + default: + } + if (!getPartialFailureSinkCase().equals(other.getPartialFailureSinkCase())) return false; + switch (partialFailureSinkCase_) { + case 11: + if (!getPartialFailureGcsSink().equals(other.getPartialFailureGcsSink())) return false; + break; + case 12: + if (!getPartialFailureBigquerySink().equals(other.getPartialFailureBigquerySink())) + 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 (hasRagFileTransformationConfig()) { + hash = (37 * hash) + RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileTransformationConfig().hashCode(); + } + hash = (37 * hash) + MAX_EMBEDDING_REQUESTS_PER_MIN_FIELD_NUMBER; + hash = (53 * hash) + getMaxEmbeddingRequestsPerMin(); + switch (importSourceCase_) { + case 2: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GOOGLE_DRIVE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGoogleDriveSource().hashCode(); + break; + case 6: + hash = (37 * hash) + SLACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSlackSource().hashCode(); + break; + case 7: + hash = (37 * hash) + JIRA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getJiraSource().hashCode(); + break; + case 13: + hash = (37 * hash) + SHARE_POINT_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSharePointSources().hashCode(); + break; + case 0: + default: + } + switch (partialFailureSinkCase_) { + case 11: + hash = (37 * hash) + PARTIAL_FAILURE_GCS_SINK_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureGcsSink().hashCode(); + break; + case 12: + hash = (37 * hash) + PARTIAL_FAILURE_BIGQUERY_SINK_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureBigquerySink().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig 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.ImportRagFilesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig 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.ImportRagFilesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig 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.ImportRagFilesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig 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.ImportRagFilesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig 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.ImportRagFilesConfig 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.ImportRagFilesConfig 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.ImportRagFilesConfig 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; + } + /** + * + * + *
+   * Config for importing RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImportRagFilesConfig) + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.class, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImportRagFilesConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagFileTransformationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (googleDriveSourceBuilder_ != null) { + googleDriveSourceBuilder_.clear(); + } + if (slackSourceBuilder_ != null) { + slackSourceBuilder_.clear(); + } + if (jiraSourceBuilder_ != null) { + jiraSourceBuilder_.clear(); + } + if (sharePointSourcesBuilder_ != null) { + sharePointSourcesBuilder_.clear(); + } + if (partialFailureGcsSinkBuilder_ != null) { + partialFailureGcsSinkBuilder_.clear(); + } + if (partialFailureBigquerySinkBuilder_ != null) { + partialFailureBigquerySinkBuilder_.clear(); + } + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + maxEmbeddingRequestsPerMin_ = 0; + importSourceCase_ = 0; + importSource_ = null; + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig build() { + com.google.cloud.aiplatform.v1.ImportRagFilesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig buildPartial() { + com.google.cloud.aiplatform.v1.ImportRagFilesConfig result = + new com.google.cloud.aiplatform.v1.ImportRagFilesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportRagFilesConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ragFileTransformationConfig_ = + ragFileTransformationConfigBuilder_ == null + ? ragFileTransformationConfig_ + : ragFileTransformationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.maxEmbeddingRequestsPerMin_ = maxEmbeddingRequestsPerMin_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ImportRagFilesConfig result) { + result.importSourceCase_ = importSourceCase_; + result.importSource_ = this.importSource_; + if (importSourceCase_ == 2 && gcsSourceBuilder_ != null) { + result.importSource_ = gcsSourceBuilder_.build(); + } + if (importSourceCase_ == 3 && googleDriveSourceBuilder_ != null) { + result.importSource_ = googleDriveSourceBuilder_.build(); + } + if (importSourceCase_ == 6 && slackSourceBuilder_ != null) { + result.importSource_ = slackSourceBuilder_.build(); + } + if (importSourceCase_ == 7 && jiraSourceBuilder_ != null) { + result.importSource_ = jiraSourceBuilder_.build(); + } + if (importSourceCase_ == 13 && sharePointSourcesBuilder_ != null) { + result.importSource_ = sharePointSourcesBuilder_.build(); + } + result.partialFailureSinkCase_ = partialFailureSinkCase_; + result.partialFailureSink_ = this.partialFailureSink_; + if (partialFailureSinkCase_ == 11 && partialFailureGcsSinkBuilder_ != null) { + result.partialFailureSink_ = partialFailureGcsSinkBuilder_.build(); + } + if (partialFailureSinkCase_ == 12 && partialFailureBigquerySinkBuilder_ != null) { + result.partialFailureSink_ = partialFailureBigquerySinkBuilder_.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.ImportRagFilesConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImportRagFilesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportRagFilesConfig other) { + if (other == com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance()) + return this; + if (other.hasRagFileTransformationConfig()) { + mergeRagFileTransformationConfig(other.getRagFileTransformationConfig()); + } + if (other.getMaxEmbeddingRequestsPerMin() != 0) { + setMaxEmbeddingRequestsPerMin(other.getMaxEmbeddingRequestsPerMin()); + } + switch (other.getImportSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case GOOGLE_DRIVE_SOURCE: + { + mergeGoogleDriveSource(other.getGoogleDriveSource()); + break; + } + case SLACK_SOURCE: + { + mergeSlackSource(other.getSlackSource()); + break; + } + case JIRA_SOURCE: + { + mergeJiraSource(other.getJiraSource()); + break; + } + case SHARE_POINT_SOURCES: + { + mergeSharePointSources(other.getSharePointSources()); + break; + } + case IMPORTSOURCE_NOT_SET: + { + break; + } + } + switch (other.getPartialFailureSinkCase()) { + case PARTIAL_FAILURE_GCS_SINK: + { + mergePartialFailureGcsSink(other.getPartialFailureGcsSink()); + break; + } + case PARTIAL_FAILURE_BIGQUERY_SINK: + { + mergePartialFailureBigquerySink(other.getPartialFailureBigquerySink()); + break; + } + case PARTIALFAILURESINK_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(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getGoogleDriveSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 3; + break; + } // case 26 + case 40: + { + maxEmbeddingRequestsPerMin_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 40 + case 50: + { + input.readMessage(getSlackSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getJiraSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 7; + break; + } // case 58 + case 90: + { + input.readMessage( + getPartialFailureGcsSinkFieldBuilder().getBuilder(), extensionRegistry); + partialFailureSinkCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getPartialFailureBigquerySinkFieldBuilder().getBuilder(), extensionRegistry); + partialFailureSinkCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getSharePointSourcesFieldBuilder().getBuilder(), extensionRegistry); + importSourceCase_ = 13; + break; + } // case 106 + case 130: + { + input.readMessage( + getRagFileTransformationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 130 + 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 importSourceCase_ = 0; + private java.lang.Object importSource_; + + public ImportSourceCase getImportSourceCase() { + return ImportSourceCase.forNumber(importSourceCase_); + } + + public Builder clearImportSource() { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + return this; + } + + private int partialFailureSinkCase_ = 0; + private java.lang.Object partialFailureSink_; + + public PartialFailureSinkCase getPartialFailureSinkCase() { + return PartialFailureSinkCase.forNumber(partialFailureSinkCase_); + } + + public Builder clearPartialFailureSink() { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourceCase_ == 2; + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GcsSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 2) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + importSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (importSourceCase_ == 2 + && importSource_ != com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1.GcsSource.newBuilder( + (com.google.cloud.aiplatform.v1.GcsSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 2) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourceCase_ == 2) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 2) { + importSourceCase_ = 0; + importSource_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + public com.google.cloud.aiplatform.v1.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((importSourceCase_ == 2) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.GcsSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Google Cloud Storage location. Supports importing individual files as
+     * well as entire Google Cloud Storage directories. Sample formats:
+     * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+     * - `gs://bucket_name/my_directory`
+     * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(importSourceCase_ == 2)) { + importSource_ = com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.GcsSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 2; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder> + googleDriveSourceBuilder_; + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return Whether the googleDriveSource field is set. + */ + @java.lang.Override + public boolean hasGoogleDriveSource() { + return importSourceCase_ == 3; + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return The googleDriveSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource() { + if (googleDriveSourceBuilder_ == null) { + if (importSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 3) { + return googleDriveSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + public Builder setGoogleDriveSource(com.google.cloud.aiplatform.v1.GoogleDriveSource value) { + if (googleDriveSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + googleDriveSourceBuilder_.setMessage(value); + } + importSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + public Builder setGoogleDriveSource( + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder builderForValue) { + if (googleDriveSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + googleDriveSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + public Builder mergeGoogleDriveSource(com.google.cloud.aiplatform.v1.GoogleDriveSource value) { + if (googleDriveSourceBuilder_ == null) { + if (importSourceCase_ == 3 + && importSource_ + != com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1.GoogleDriveSource.newBuilder( + (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 3) { + googleDriveSourceBuilder_.mergeFrom(value); + } else { + googleDriveSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + public Builder clearGoogleDriveSource() { + if (googleDriveSourceBuilder_ == null) { + if (importSourceCase_ == 3) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 3) { + importSourceCase_ = 0; + importSource_ = null; + } + googleDriveSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder getGoogleDriveSourceBuilder() { + return getGoogleDriveSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder + getGoogleDriveSourceOrBuilder() { + if ((importSourceCase_ == 3) && (googleDriveSourceBuilder_ != null)) { + return googleDriveSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Google Drive location. Supports importing individual files as
+     * well as Google Drive folders.
+     * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder> + getGoogleDriveSourceFieldBuilder() { + if (googleDriveSourceBuilder_ == null) { + if (!(importSourceCase_ == 3)) { + importSource_ = com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + googleDriveSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.GoogleDriveSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 3; + onChanged(); + return googleDriveSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder> + slackSourceBuilder_; + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return importSourceCase_ == 6; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource getSlackSource() { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 6) { + return slackSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + public Builder setSlackSource(com.google.cloud.aiplatform.v1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + slackSourceBuilder_.setMessage(value); + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + public Builder setSlackSource( + com.google.cloud.aiplatform.v1.SlackSource.Builder builderForValue) { + if (slackSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + slackSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + public Builder mergeSlackSource(com.google.cloud.aiplatform.v1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6 + && importSource_ != com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1.SlackSource.newBuilder( + (com.google.cloud.aiplatform.v1.SlackSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 6) { + slackSourceBuilder_.mergeFrom(value); + } else { + slackSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + public Builder clearSlackSource() { + if (slackSourceBuilder_ == null) { + if (importSourceCase_ == 6) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 6) { + importSourceCase_ = 0; + importSource_ = null; + } + slackSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + public com.google.cloud.aiplatform.v1.SlackSource.Builder getSlackSourceBuilder() { + return getSlackSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if ((importSourceCase_ == 6) && (slackSourceBuilder_ != null)) { + return slackSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.SlackSource) importSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Slack channels with their corresponding access tokens.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder> + getSlackSourceFieldBuilder() { + if (slackSourceBuilder_ == null) { + if (!(importSourceCase_ == 6)) { + importSource_ = com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + slackSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.SlackSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 6; + onChanged(); + return slackSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder> + jiraSourceBuilder_; + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return importSourceCase_ == 7; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource getJiraSource() { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } else { + if (importSourceCase_ == 7) { + return jiraSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + public Builder setJiraSource(com.google.cloud.aiplatform.v1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + jiraSourceBuilder_.setMessage(value); + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + public Builder setJiraSource( + com.google.cloud.aiplatform.v1.JiraSource.Builder builderForValue) { + if (jiraSourceBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + jiraSourceBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + public Builder mergeJiraSource(com.google.cloud.aiplatform.v1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7 + && importSource_ != com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1.JiraSource.newBuilder( + (com.google.cloud.aiplatform.v1.JiraSource) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 7) { + jiraSourceBuilder_.mergeFrom(value); + } else { + jiraSourceBuilder_.setMessage(value); + } + } + importSourceCase_ = 7; + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + public Builder clearJiraSource() { + if (jiraSourceBuilder_ == null) { + if (importSourceCase_ == 7) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 7) { + importSourceCase_ = 0; + importSource_ = null; + } + jiraSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + public com.google.cloud.aiplatform.v1.JiraSource.Builder getJiraSourceBuilder() { + return getJiraSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if ((importSourceCase_ == 7) && (jiraSourceBuilder_ != null)) { + return jiraSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 7) { + return (com.google.cloud.aiplatform.v1.JiraSource) importSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Jira queries with their corresponding authentication.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder> + getJiraSourceFieldBuilder() { + if (jiraSourceBuilder_ == null) { + if (!(importSourceCase_ == 7)) { + importSource_ = com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + jiraSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.JiraSource) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 7; + onChanged(); + return jiraSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder> + sharePointSourcesBuilder_; + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return Whether the sharePointSources field is set. + */ + @java.lang.Override + public boolean hasSharePointSources() { + return importSourceCase_ == 13; + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return The sharePointSources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources() { + if (sharePointSourcesBuilder_ == null) { + if (importSourceCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SharePointSources) importSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } else { + if (importSourceCase_ == 13) { + return sharePointSourcesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + public Builder setSharePointSources(com.google.cloud.aiplatform.v1.SharePointSources value) { + if (sharePointSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSource_ = value; + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(value); + } + importSourceCase_ = 13; + return this; + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + public Builder setSharePointSources( + com.google.cloud.aiplatform.v1.SharePointSources.Builder builderForValue) { + if (sharePointSourcesBuilder_ == null) { + importSource_ = builderForValue.build(); + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(builderForValue.build()); + } + importSourceCase_ = 13; + return this; + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + public Builder mergeSharePointSources(com.google.cloud.aiplatform.v1.SharePointSources value) { + if (sharePointSourcesBuilder_ == null) { + if (importSourceCase_ == 13 + && importSource_ + != com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance()) { + importSource_ = + com.google.cloud.aiplatform.v1.SharePointSources.newBuilder( + (com.google.cloud.aiplatform.v1.SharePointSources) importSource_) + .mergeFrom(value) + .buildPartial(); + } else { + importSource_ = value; + } + onChanged(); + } else { + if (importSourceCase_ == 13) { + sharePointSourcesBuilder_.mergeFrom(value); + } else { + sharePointSourcesBuilder_.setMessage(value); + } + } + importSourceCase_ = 13; + return this; + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + public Builder clearSharePointSources() { + if (sharePointSourcesBuilder_ == null) { + if (importSourceCase_ == 13) { + importSourceCase_ = 0; + importSource_ = null; + onChanged(); + } + } else { + if (importSourceCase_ == 13) { + importSourceCase_ = 0; + importSource_ = null; + } + sharePointSourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + public com.google.cloud.aiplatform.v1.SharePointSources.Builder getSharePointSourcesBuilder() { + return getSharePointSourcesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder + getSharePointSourcesOrBuilder() { + if ((importSourceCase_ == 13) && (sharePointSourcesBuilder_ != null)) { + return sharePointSourcesBuilder_.getMessageOrBuilder(); + } else { + if (importSourceCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SharePointSources) importSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + } + /** + * + * + *
+     * SharePoint sources.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder> + getSharePointSourcesFieldBuilder() { + if (sharePointSourcesBuilder_ == null) { + if (!(importSourceCase_ == 13)) { + importSource_ = com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + sharePointSourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder>( + (com.google.cloud.aiplatform.v1.SharePointSources) importSource_, + getParentForChildren(), + isClean()); + importSource_ = null; + } + importSourceCase_ = 13; + onChanged(); + return sharePointSourcesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsDestination, + com.google.cloud.aiplatform.v1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder> + partialFailureGcsSinkBuilder_; + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return Whether the partialFailureGcsSink field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPartialFailureGcsSink() { + return partialFailureSinkCase_ == 11; + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return The partialFailureGcsSink. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.GcsDestination getPartialFailureGcsSink() { + if (partialFailureGcsSinkBuilder_ == null) { + if (partialFailureSinkCase_ == 11) { + return (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } else { + if (partialFailureSinkCase_ == 11) { + return partialFailureGcsSinkBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setPartialFailureGcsSink(com.google.cloud.aiplatform.v1.GcsDestination value) { + if (partialFailureGcsSinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureSink_ = value; + onChanged(); + } else { + partialFailureGcsSinkBuilder_.setMessage(value); + } + partialFailureSinkCase_ = 11; + return this; + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setPartialFailureGcsSink( + com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { + if (partialFailureGcsSinkBuilder_ == null) { + partialFailureSink_ = builderForValue.build(); + onChanged(); + } else { + partialFailureGcsSinkBuilder_.setMessage(builderForValue.build()); + } + partialFailureSinkCase_ = 11; + return this; + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergePartialFailureGcsSink(com.google.cloud.aiplatform.v1.GcsDestination value) { + if (partialFailureGcsSinkBuilder_ == null) { + if (partialFailureSinkCase_ == 11 + && partialFailureSink_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + partialFailureSink_ = + com.google.cloud.aiplatform.v1.GcsDestination.newBuilder( + (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_) + .mergeFrom(value) + .buildPartial(); + } else { + partialFailureSink_ = value; + } + onChanged(); + } else { + if (partialFailureSinkCase_ == 11) { + partialFailureGcsSinkBuilder_.mergeFrom(value); + } else { + partialFailureGcsSinkBuilder_.setMessage(value); + } + } + partialFailureSinkCase_ = 11; + return this; + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearPartialFailureGcsSink() { + if (partialFailureGcsSinkBuilder_ == null) { + if (partialFailureSinkCase_ == 11) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + } + } else { + if (partialFailureSinkCase_ == 11) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + } + partialFailureGcsSinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.GcsDestination.Builder getPartialFailureGcsSinkBuilder() { + return getPartialFailureGcsSinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder + getPartialFailureGcsSinkOrBuilder() { + if ((partialFailureSinkCase_ == 11) && (partialFailureGcsSinkBuilder_ != null)) { + return partialFailureGcsSinkBuilder_.getMessageOrBuilder(); + } else { + if (partialFailureSinkCase_ == 11) { + return (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsDestination, + com.google.cloud.aiplatform.v1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder> + getPartialFailureGcsSinkFieldBuilder() { + if (partialFailureGcsSinkBuilder_ == null) { + if (!(partialFailureSinkCase_ == 11)) { + partialFailureSink_ = com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance(); + } + partialFailureGcsSinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsDestination, + com.google.cloud.aiplatform.v1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1.GcsDestination) partialFailureSink_, + getParentForChildren(), + isClean()); + partialFailureSink_ = null; + } + partialFailureSinkCase_ = 11; + onChanged(); + return partialFailureGcsSinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder> + partialFailureBigquerySinkBuilder_; + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return Whether the partialFailureBigquerySink field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPartialFailureBigquerySink() { + return partialFailureSinkCase_ == 12; + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return The partialFailureBigquerySink. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.BigQueryDestination getPartialFailureBigquerySink() { + if (partialFailureBigquerySinkBuilder_ == null) { + if (partialFailureSinkCase_ == 12) { + return (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } else { + if (partialFailureSinkCase_ == 12) { + return partialFailureBigquerySinkBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setPartialFailureBigquerySink( + com.google.cloud.aiplatform.v1.BigQueryDestination value) { + if (partialFailureBigquerySinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureSink_ = value; + onChanged(); + } else { + partialFailureBigquerySinkBuilder_.setMessage(value); + } + partialFailureSinkCase_ = 12; + return this; + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setPartialFailureBigquerySink( + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder builderForValue) { + if (partialFailureBigquerySinkBuilder_ == null) { + partialFailureSink_ = builderForValue.build(); + onChanged(); + } else { + partialFailureBigquerySinkBuilder_.setMessage(builderForValue.build()); + } + partialFailureSinkCase_ = 12; + return this; + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergePartialFailureBigquerySink( + com.google.cloud.aiplatform.v1.BigQueryDestination value) { + if (partialFailureBigquerySinkBuilder_ == null) { + if (partialFailureSinkCase_ == 12 + && partialFailureSink_ + != com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()) { + partialFailureSink_ = + com.google.cloud.aiplatform.v1.BigQueryDestination.newBuilder( + (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_) + .mergeFrom(value) + .buildPartial(); + } else { + partialFailureSink_ = value; + } + onChanged(); + } else { + if (partialFailureSinkCase_ == 12) { + partialFailureBigquerySinkBuilder_.mergeFrom(value); + } else { + partialFailureBigquerySinkBuilder_.setMessage(value); + } + } + partialFailureSinkCase_ = 12; + return this; + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearPartialFailureBigquerySink() { + if (partialFailureBigquerySinkBuilder_ == null) { + if (partialFailureSinkCase_ == 12) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + } + } else { + if (partialFailureSinkCase_ == 12) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + } + partialFailureBigquerySinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.BigQueryDestination.Builder + getPartialFailureBigquerySinkBuilder() { + return getPartialFailureBigquerySinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder + getPartialFailureBigquerySinkOrBuilder() { + if ((partialFailureSinkCase_ == 12) && (partialFailureBigquerySinkBuilder_ != null)) { + return partialFailureBigquerySinkBuilder_.getMessageOrBuilder(); + } else { + if (partialFailureSinkCase_ == 12) { + return (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_; + } + return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery destination to write partial failures to. It should be a
+     * bigquery table resource name (e.g.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder> + getPartialFailureBigquerySinkFieldBuilder() { + if (partialFailureBigquerySinkBuilder_ == null) { + if (!(partialFailureSinkCase_ == 12)) { + partialFailureSink_ = + com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); + } + partialFailureBigquerySinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1.BigQueryDestination) partialFailureSink_, + getParentForChildren(), + isClean()); + partialFailureSink_ = null; + } + partialFailureSinkCase_ = 12; + onChanged(); + return partialFailureBigquerySinkBuilder_; + } + + private com.google.cloud.aiplatform.v1.RagFileTransformationConfig ragFileTransformationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder> + ragFileTransformationConfigBuilder_; + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig + getRagFileTransformationConfig() { + if (ragFileTransformationConfigBuilder_ == null) { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } else { + return ragFileTransformationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileTransformationConfig_ = value; + } else { + ragFileTransformationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder builderForValue) { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfig_ = builderForValue.build(); + } else { + ragFileTransformationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder mergeRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && ragFileTransformationConfig_ != null + && ragFileTransformationConfig_ + != com.google.cloud.aiplatform.v1.RagFileTransformationConfig + .getDefaultInstance()) { + getRagFileTransformationConfigBuilder().mergeFrom(value); + } else { + ragFileTransformationConfig_ = value; + } + } else { + ragFileTransformationConfigBuilder_.mergeFrom(value); + } + if (ragFileTransformationConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder clearRagFileTransformationConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder + getRagFileTransformationConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRagFileTransformationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + if (ragFileTransformationConfigBuilder_ != null) { + return ragFileTransformationConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder> + getRagFileTransformationConfigFieldBuilder() { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder>( + getRagFileTransformationConfig(), getParentForChildren(), isClean()); + ragFileTransformationConfig_ = null; + } + return ragFileTransformationConfigBuilder_; + } + + private int maxEmbeddingRequestsPerMin_; + /** + * + * + *
+     * Optional. The max number of queries per minute that this job is allowed to
+     * make to the embedding model specified on the corpus. This value is specific
+     * to this job and not shared across other import jobs. Consult the Quotas
+     * page on the project to set an appropriate value here.
+     * If unspecified, a default value of 1,000 QPM would be used.
+     * 
+ * + * int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEmbeddingRequestsPerMin. + */ + @java.lang.Override + public int getMaxEmbeddingRequestsPerMin() { + return maxEmbeddingRequestsPerMin_; + } + /** + * + * + *
+     * Optional. The max number of queries per minute that this job is allowed to
+     * make to the embedding model specified on the corpus. This value is specific
+     * to this job and not shared across other import jobs. Consult the Quotas
+     * page on the project to set an appropriate value here.
+     * If unspecified, a default value of 1,000 QPM would be used.
+     * 
+ * + * int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxEmbeddingRequestsPerMin to set. + * @return This builder for chaining. + */ + public Builder setMaxEmbeddingRequestsPerMin(int value) { + + maxEmbeddingRequestsPerMin_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The max number of queries per minute that this job is allowed to
+     * make to the embedding model specified on the corpus. This value is specific
+     * to this job and not shared across other import jobs. Consult the Quotas
+     * page on the project to set an appropriate value here.
+     * If unspecified, a default value of 1,000 QPM would be used.
+     * 
+ * + * int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxEmbeddingRequestsPerMin() { + bitField0_ = (bitField0_ & ~0x00000100); + maxEmbeddingRequestsPerMin_ = 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.ImportRagFilesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImportRagFilesConfig) + private static final com.google.cloud.aiplatform.v1.ImportRagFilesConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImportRagFilesConfig(); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRagFilesConfig 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.ImportRagFilesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java new file mode 100644 index 000000000000..eb31cd96e11a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java @@ -0,0 +1,396 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ImportRagFilesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImportRagFilesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1.GcsSource getGcsSource(); + /** + * + * + *
+   * Google Cloud Storage location. Supports importing individual files as
+   * well as entire Google Cloud Storage directories. Sample formats:
+   * - `gs://bucket_name/my_directory/object_name/my_file.txt`
+   * - `gs://bucket_name/my_directory`
+   * 
+ * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 2; + */ + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return Whether the googleDriveSource field is set. + */ + boolean hasGoogleDriveSource(); + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + * + * @return The googleDriveSource. + */ + com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource(); + /** + * + * + *
+   * Google Drive location. Supports importing individual files as
+   * well as Google Drive folders.
+   * 
+ * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 3; + */ + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder(); + + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return Whether the slackSource field is set. + */ + boolean hasSlackSource(); + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + * + * @return The slackSource. + */ + com.google.cloud.aiplatform.v1.SlackSource getSlackSource(); + /** + * + * + *
+   * Slack channels with their corresponding access tokens.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 6; + */ + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder(); + + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return Whether the jiraSource field is set. + */ + boolean hasJiraSource(); + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + * + * @return The jiraSource. + */ + com.google.cloud.aiplatform.v1.JiraSource getJiraSource(); + /** + * + * + *
+   * Jira queries with their corresponding authentication.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 7; + */ + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder(); + + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return Whether the sharePointSources field is set. + */ + boolean hasSharePointSources(); + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + * + * @return The sharePointSources. + */ + com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources(); + /** + * + * + *
+   * SharePoint sources.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 13; + */ + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder getSharePointSourcesOrBuilder(); + + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return Whether the partialFailureGcsSink field is set. + */ + @java.lang.Deprecated + boolean hasPartialFailureGcsSink(); + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=330 + * @return The partialFailureGcsSink. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.GcsDestination getPartialFailureGcsSink(); + /** + * + * + *
+   * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getPartialFailureGcsSinkOrBuilder(); + + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return Whether the partialFailureBigquerySink field is set. + */ + @java.lang.Deprecated + boolean hasPartialFailureBigquerySink(); + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=339 + * @return The partialFailureBigquerySink. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.BigQueryDestination getPartialFailureBigquerySink(); + /** + * + * + *
+   * The BigQuery destination to write partial failures to. It should be a
+   * bigquery table resource name (e.g.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder + getPartialFailureBigquerySinkOrBuilder(); + + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + boolean hasRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + com.google.cloud.aiplatform.v1.RagFileTransformationConfig getRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The max number of queries per minute that this job is allowed to
+   * make to the embedding model specified on the corpus. This value is specific
+   * to this job and not shared across other import jobs. Consult the Quotas
+   * page on the project to set an appropriate value here.
+   * If unspecified, a default value of 1,000 QPM would be used.
+   * 
+ * + * int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEmbeddingRequestsPerMin. + */ + int getMaxEmbeddingRequestsPerMin(); + + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.ImportSourceCase getImportSourceCase(); + + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.PartialFailureSinkCase + getPartialFailureSinkCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadata.java new file mode 100644 index 000000000000..a62f939a9949 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadata.java @@ -0,0 +1,1237 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata} + */ +public final class ImportRagFilesOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) + ImportRagFilesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportRagFilesOperationMetadata.newBuilder() to construct. + private ImportRagFilesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportRagFilesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportRagFilesOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.class, + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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_; + } + + public static final int RAG_CORPUS_ID_FIELD_NUMBER = 2; + private long ragCorpusId_ = 0L; + /** + * + * + *
+   * The resource ID of RagCorpus that this operation is executed on.
+   * 
+ * + * int64 rag_corpus_id = 2; + * + * @return The ragCorpusId. + */ + @java.lang.Override + public long getRagCorpusId() { + return ragCorpusId_; + } + + public static final int IMPORT_RAG_FILES_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.ImportRagFilesConfig importRagFilesConfig_; + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + @java.lang.Override + public boolean hasImportRagFilesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importRagFilesConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig() { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder + getImportRagFilesConfigOrBuilder() { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + + public static final int PROGRESS_PERCENTAGE_FIELD_NUMBER = 4; + private int progressPercentage_ = 0; + /** + * + * + *
+   * The progress percentage of the operation. Value is in the range [0, 100].
+   * This percentage is calculated as follows:
+   *    progress_percentage = 100 * (successes + failures + skips) / total
+   * 
+ * + * int32 progress_percentage = 4; + * + * @return The progressPercentage. + */ + @java.lang.Override + public int getProgressPercentage() { + return progressPercentage_; + } + + 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()); + } + if (ragCorpusId_ != 0L) { + output.writeInt64(2, ragCorpusId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getImportRagFilesConfig()); + } + if (progressPercentage_ != 0) { + output.writeInt32(4, progressPercentage_); + } + 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()); + } + if (ragCorpusId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ragCorpusId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImportRagFilesConfig()); + } + if (progressPercentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, progressPercentage_); + } + 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.ImportRagFilesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata other = + (com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (getRagCorpusId() != other.getRagCorpusId()) return false; + if (hasImportRagFilesConfig() != other.hasImportRagFilesConfig()) return false; + if (hasImportRagFilesConfig()) { + if (!getImportRagFilesConfig().equals(other.getImportRagFilesConfig())) return false; + } + if (getProgressPercentage() != other.getProgressPercentage()) 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 = (37 * hash) + RAG_CORPUS_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRagCorpusId()); + if (hasImportRagFilesConfig()) { + hash = (37 * hash) + IMPORT_RAG_FILES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getImportRagFilesConfig().hashCode(); + } + hash = (37 * hash) + PROGRESS_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getProgressPercentage(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata 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
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.class, + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.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(); + getImportRagFilesConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + ragCorpusId_ = 0L; + importRagFilesConfig_ = null; + if (importRagFilesConfigBuilder_ != null) { + importRagFilesConfigBuilder_.dispose(); + importRagFilesConfigBuilder_ = null; + } + progressPercentage_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata build() { + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata result = + new com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ragCorpusId_ = ragCorpusId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.importRagFilesConfig_ = + importRagFilesConfigBuilder_ == null + ? importRagFilesConfig_ + : importRagFilesConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.progressPercentage_ = progressPercentage_; + } + 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.ImportRagFilesOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.getDefaultInstance()) + return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + if (other.getRagCorpusId() != 0L) { + setRagCorpusId(other.getRagCorpusId()); + } + if (other.hasImportRagFilesConfig()) { + mergeImportRagFilesConfig(other.getImportRagFilesConfig()); + } + if (other.getProgressPercentage() != 0) { + setProgressPercentage(other.getProgressPercentage()); + } + 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 + case 16: + { + ragCorpusId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getImportRagFilesConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + progressPercentage_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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_; + } + + private long ragCorpusId_; + /** + * + * + *
+     * The resource ID of RagCorpus that this operation is executed on.
+     * 
+ * + * int64 rag_corpus_id = 2; + * + * @return The ragCorpusId. + */ + @java.lang.Override + public long getRagCorpusId() { + return ragCorpusId_; + } + /** + * + * + *
+     * The resource ID of RagCorpus that this operation is executed on.
+     * 
+ * + * int64 rag_corpus_id = 2; + * + * @param value The ragCorpusId to set. + * @return This builder for chaining. + */ + public Builder setRagCorpusId(long value) { + + ragCorpusId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource ID of RagCorpus that this operation is executed on.
+     * 
+ * + * int64 rag_corpus_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRagCorpusId() { + bitField0_ = (bitField0_ & ~0x00000002); + ragCorpusId_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.ImportRagFilesConfig importRagFilesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder> + importRagFilesConfigBuilder_; + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + public boolean hasImportRagFilesConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importRagFilesConfig. + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig() { + if (importRagFilesConfigBuilder_ == null) { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } else { + return importRagFilesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig value) { + if (importRagFilesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importRagFilesConfig_ = value; + } else { + importRagFilesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder builderForValue) { + if (importRagFilesConfigBuilder_ == null) { + importRagFilesConfig_ = builderForValue.build(); + } else { + importRagFilesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig value) { + if (importRagFilesConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && importRagFilesConfig_ != null + && importRagFilesConfig_ + != com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance()) { + getImportRagFilesConfigBuilder().mergeFrom(value); + } else { + importRagFilesConfig_ = value; + } + } else { + importRagFilesConfigBuilder_.mergeFrom(value); + } + if (importRagFilesConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearImportRagFilesConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + importRagFilesConfig_ = null; + if (importRagFilesConfigBuilder_ != null) { + importRagFilesConfigBuilder_.dispose(); + importRagFilesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder + getImportRagFilesConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getImportRagFilesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder + getImportRagFilesConfigOrBuilder() { + if (importRagFilesConfigBuilder_ != null) { + return importRagFilesConfigBuilder_.getMessageOrBuilder(); + } else { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + } + /** + * + * + *
+     * Output only. The config that was passed in the ImportRagFilesRequest.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder> + getImportRagFilesConfigFieldBuilder() { + if (importRagFilesConfigBuilder_ == null) { + importRagFilesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder>( + getImportRagFilesConfig(), getParentForChildren(), isClean()); + importRagFilesConfig_ = null; + } + return importRagFilesConfigBuilder_; + } + + private int progressPercentage_; + /** + * + * + *
+     * The progress percentage of the operation. Value is in the range [0, 100].
+     * This percentage is calculated as follows:
+     *    progress_percentage = 100 * (successes + failures + skips) / total
+     * 
+ * + * int32 progress_percentage = 4; + * + * @return The progressPercentage. + */ + @java.lang.Override + public int getProgressPercentage() { + return progressPercentage_; + } + /** + * + * + *
+     * The progress percentage of the operation. Value is in the range [0, 100].
+     * This percentage is calculated as follows:
+     *    progress_percentage = 100 * (successes + failures + skips) / total
+     * 
+ * + * int32 progress_percentage = 4; + * + * @param value The progressPercentage to set. + * @return This builder for chaining. + */ + public Builder setProgressPercentage(int value) { + + progressPercentage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The progress percentage of the operation. Value is in the range [0, 100].
+     * This percentage is calculated as follows:
+     *    progress_percentage = 100 * (successes + failures + skips) / total
+     * 
+ * + * int32 progress_percentage = 4; + * + * @return This builder for chaining. + */ + public Builder clearProgressPercentage() { + bitField0_ = (bitField0_ & ~0x00000008); + progressPercentage_ = 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.ImportRagFilesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) + private static final com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRagFilesOperationMetadata 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.ImportRagFilesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..388178ecabd5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesOperationMetadataOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ImportRagFilesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The resource ID of RagCorpus that this operation is executed on.
+   * 
+ * + * int64 rag_corpus_id = 2; + * + * @return The ragCorpusId. + */ + long getRagCorpusId(); + + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + boolean hasImportRagFilesConfig(); + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importRagFilesConfig. + */ + com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig(); + /** + * + * + *
+   * Output only. The config that was passed in the ImportRagFilesRequest.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder getImportRagFilesConfigOrBuilder(); + + /** + * + * + *
+   * The progress percentage of the operation. Value is in the range [0, 100].
+   * This percentage is calculated as follows:
+   *    progress_percentage = 100 * (successes + failures + skips) / total
+   * 
+ * + * int32 progress_percentage = 4; + * + * @return The progressPercentage. + */ + int getProgressPercentage(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequest.java new file mode 100644 index 000000000000..fd0fd0e22efb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequest.java @@ -0,0 +1,994 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesRequest} + */ +public final class ImportRagFilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImportRagFilesRequest) + ImportRagFilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportRagFilesRequest.newBuilder() to construct. + private ImportRagFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportRagFilesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportRagFilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest.class, + com.google.cloud.aiplatform.v1.ImportRagFilesRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to import files.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 RagCorpus resource into which to import files.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 IMPORT_RAG_FILES_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.ImportRagFilesConfig importRagFilesConfig_; + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + @java.lang.Override + public boolean hasImportRagFilesConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The importRagFilesConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig() { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder + getImportRagFilesConfigOrBuilder() { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getImportRagFilesConfig()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getImportRagFilesConfig()); + } + 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.ImportRagFilesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImportRagFilesRequest other = + (com.google.cloud.aiplatform.v1.ImportRagFilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasImportRagFilesConfig() != other.hasImportRagFilesConfig()) return false; + if (hasImportRagFilesConfig()) { + if (!getImportRagFilesConfig().equals(other.getImportRagFilesConfig())) 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 (hasImportRagFilesConfig()) { + hash = (37 * hash) + IMPORT_RAG_FILES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getImportRagFilesConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest 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.ImportRagFilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest 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.ImportRagFilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest 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.ImportRagFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest 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.ImportRagFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest 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.ImportRagFilesRequest 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.ImportRagFilesRequest 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.ImportRagFilesRequest 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
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImportRagFilesRequest) + com.google.cloud.aiplatform.v1.ImportRagFilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesRequest.class, + com.google.cloud.aiplatform.v1.ImportRagFilesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImportRagFilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getImportRagFilesConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + importRagFilesConfig_ = null; + if (importRagFilesConfigBuilder_ != null) { + importRagFilesConfigBuilder_.dispose(); + importRagFilesConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImportRagFilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesRequest build() { + com.google.cloud.aiplatform.v1.ImportRagFilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesRequest buildPartial() { + com.google.cloud.aiplatform.v1.ImportRagFilesRequest result = + new com.google.cloud.aiplatform.v1.ImportRagFilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportRagFilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importRagFilesConfig_ = + importRagFilesConfigBuilder_ == null + ? importRagFilesConfig_ + : importRagFilesConfigBuilder_.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.ImportRagFilesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImportRagFilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportRagFilesRequest other) { + if (other == com.google.cloud.aiplatform.v1.ImportRagFilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasImportRagFilesConfig()) { + mergeImportRagFilesConfig(other.getImportRagFilesConfig()); + } + 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: + { + input.readMessage( + getImportRagFilesConfigFieldBuilder().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 parent_ = ""; + /** + * + * + *
+     * Required. The name of the RagCorpus resource into which to import files.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to import files.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to import files.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to import files.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to import files.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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.cloud.aiplatform.v1.ImportRagFilesConfig importRagFilesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder> + importRagFilesConfigBuilder_; + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + public boolean hasImportRagFilesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The importRagFilesConfig. + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig() { + if (importRagFilesConfigBuilder_ == null) { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } else { + return importRagFilesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig value) { + if (importRagFilesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importRagFilesConfig_ = value; + } else { + importRagFilesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder builderForValue) { + if (importRagFilesConfigBuilder_ == null) { + importRagFilesConfig_ = builderForValue.build(); + } else { + importRagFilesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeImportRagFilesConfig( + com.google.cloud.aiplatform.v1.ImportRagFilesConfig value) { + if (importRagFilesConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && importRagFilesConfig_ != null + && importRagFilesConfig_ + != com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance()) { + getImportRagFilesConfigBuilder().mergeFrom(value); + } else { + importRagFilesConfig_ = value; + } + } else { + importRagFilesConfigBuilder_.mergeFrom(value); + } + if (importRagFilesConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearImportRagFilesConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + importRagFilesConfig_ = null; + if (importRagFilesConfigBuilder_ != null) { + importRagFilesConfigBuilder_.dispose(); + importRagFilesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder + getImportRagFilesConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getImportRagFilesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder + getImportRagFilesConfigOrBuilder() { + if (importRagFilesConfigBuilder_ != null) { + return importRagFilesConfigBuilder_.getMessageOrBuilder(); + } else { + return importRagFilesConfig_ == null + ? com.google.cloud.aiplatform.v1.ImportRagFilesConfig.getDefaultInstance() + : importRagFilesConfig_; + } + } + /** + * + * + *
+     * Required. The config for the RagFiles to be synced and imported into the
+     * RagCorpus.
+     * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder> + getImportRagFilesConfigFieldBuilder() { + if (importRagFilesConfigBuilder_ == null) { + importRagFilesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ImportRagFilesConfig, + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.Builder, + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder>( + getImportRagFilesConfig(), getParentForChildren(), isClean()); + importRagFilesConfig_ = null; + } + return importRagFilesConfigBuilder_; + } + + @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.ImportRagFilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImportRagFilesRequest) + private static final com.google.cloud.aiplatform.v1.ImportRagFilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImportRagFilesRequest(); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRagFilesRequest 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.ImportRagFilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequestOrBuilder.java new file mode 100644 index 000000000000..4d11d2c2325a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ImportRagFilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImportRagFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to import files.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to import files.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the importRagFilesConfig field is set. + */ + boolean hasImportRagFilesConfig(); + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The importRagFilesConfig. + */ + com.google.cloud.aiplatform.v1.ImportRagFilesConfig getImportRagFilesConfig(); + /** + * + * + *
+   * Required. The config for the RagFiles to be synced and imported into the
+   * RagCorpus.
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ImportRagFilesConfigOrBuilder getImportRagFilesConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponse.java new file mode 100644 index 000000000000..80cf97a17ad4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponse.java @@ -0,0 +1,1282 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesResponse} + */ +public final class ImportRagFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImportRagFilesResponse) + ImportRagFilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportRagFilesResponse.newBuilder() to construct. + private ImportRagFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportRagFilesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportRagFilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesResponse.class, + com.google.cloud.aiplatform.v1.ImportRagFilesResponse.Builder.class); + } + + private int partialFailureSinkCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object partialFailureSink_; + + public enum PartialFailureSinkCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARTIAL_FAILURES_GCS_PATH(4), + PARTIAL_FAILURES_BIGQUERY_TABLE(5), + PARTIALFAILURESINK_NOT_SET(0); + private final int value; + + private PartialFailureSinkCase(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 PartialFailureSinkCase valueOf(int value) { + return forNumber(value); + } + + public static PartialFailureSinkCase forNumber(int value) { + switch (value) { + case 4: + return PARTIAL_FAILURES_GCS_PATH; + case 5: + return PARTIAL_FAILURES_BIGQUERY_TABLE; + case 0: + return PARTIALFAILURESINK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PartialFailureSinkCase getPartialFailureSinkCase() { + return PartialFailureSinkCase.forNumber(partialFailureSinkCase_); + } + + public static final int PARTIAL_FAILURES_GCS_PATH_FIELD_NUMBER = 4; + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return Whether the partialFailuresGcsPath field is set. + */ + public boolean hasPartialFailuresGcsPath() { + return partialFailureSinkCase_ == 4; + } + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The partialFailuresGcsPath. + */ + public java.lang.String getPartialFailuresGcsPath() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 4) { + ref = partialFailureSink_; + } + 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 (partialFailureSinkCase_ == 4) { + partialFailureSink_ = s; + } + return s; + } + } + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The bytes for partialFailuresGcsPath. + */ + public com.google.protobuf.ByteString getPartialFailuresGcsPathBytes() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 4) { + ref = partialFailureSink_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (partialFailureSinkCase_ == 4) { + partialFailureSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTIAL_FAILURES_BIGQUERY_TABLE_FIELD_NUMBER = 5; + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return Whether the partialFailuresBigqueryTable field is set. + */ + public boolean hasPartialFailuresBigqueryTable() { + return partialFailureSinkCase_ == 5; + } + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The partialFailuresBigqueryTable. + */ + public java.lang.String getPartialFailuresBigqueryTable() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 5) { + ref = partialFailureSink_; + } + 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 (partialFailureSinkCase_ == 5) { + partialFailureSink_ = s; + } + return s; + } + } + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The bytes for partialFailuresBigqueryTable. + */ + public com.google.protobuf.ByteString getPartialFailuresBigqueryTableBytes() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 5) { + ref = partialFailureSink_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (partialFailureSinkCase_ == 5) { + partialFailureSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMPORTED_RAG_FILES_COUNT_FIELD_NUMBER = 1; + private long importedRagFilesCount_ = 0L; + /** + * + * + *
+   * The number of RagFiles that had been imported into the RagCorpus.
+   * 
+ * + * int64 imported_rag_files_count = 1; + * + * @return The importedRagFilesCount. + */ + @java.lang.Override + public long getImportedRagFilesCount() { + return importedRagFilesCount_; + } + + public static final int FAILED_RAG_FILES_COUNT_FIELD_NUMBER = 2; + private long failedRagFilesCount_ = 0L; + /** + * + * + *
+   * The number of RagFiles that had failed while importing into the RagCorpus.
+   * 
+ * + * int64 failed_rag_files_count = 2; + * + * @return The failedRagFilesCount. + */ + @java.lang.Override + public long getFailedRagFilesCount() { + return failedRagFilesCount_; + } + + public static final int SKIPPED_RAG_FILES_COUNT_FIELD_NUMBER = 3; + private long skippedRagFilesCount_ = 0L; + /** + * + * + *
+   * The number of RagFiles that was skipped while importing into the RagCorpus.
+   * 
+ * + * int64 skipped_rag_files_count = 3; + * + * @return The skippedRagFilesCount. + */ + @java.lang.Override + public long getSkippedRagFilesCount() { + return skippedRagFilesCount_; + } + + 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 (importedRagFilesCount_ != 0L) { + output.writeInt64(1, importedRagFilesCount_); + } + if (failedRagFilesCount_ != 0L) { + output.writeInt64(2, failedRagFilesCount_); + } + if (skippedRagFilesCount_ != 0L) { + output.writeInt64(3, skippedRagFilesCount_); + } + if (partialFailureSinkCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, partialFailureSink_); + } + if (partialFailureSinkCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partialFailureSink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (importedRagFilesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, importedRagFilesCount_); + } + if (failedRagFilesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, failedRagFilesCount_); + } + if (skippedRagFilesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, skippedRagFilesCount_); + } + if (partialFailureSinkCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, partialFailureSink_); + } + if (partialFailureSinkCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partialFailureSink_); + } + 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.ImportRagFilesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImportRagFilesResponse other = + (com.google.cloud.aiplatform.v1.ImportRagFilesResponse) obj; + + if (getImportedRagFilesCount() != other.getImportedRagFilesCount()) return false; + if (getFailedRagFilesCount() != other.getFailedRagFilesCount()) return false; + if (getSkippedRagFilesCount() != other.getSkippedRagFilesCount()) return false; + if (!getPartialFailureSinkCase().equals(other.getPartialFailureSinkCase())) return false; + switch (partialFailureSinkCase_) { + case 4: + if (!getPartialFailuresGcsPath().equals(other.getPartialFailuresGcsPath())) return false; + break; + case 5: + if (!getPartialFailuresBigqueryTable().equals(other.getPartialFailuresBigqueryTable())) + 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) + IMPORTED_RAG_FILES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedRagFilesCount()); + hash = (37 * hash) + FAILED_RAG_FILES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedRagFilesCount()); + hash = (37 * hash) + SKIPPED_RAG_FILES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSkippedRagFilesCount()); + switch (partialFailureSinkCase_) { + case 4: + hash = (37 * hash) + PARTIAL_FAILURES_GCS_PATH_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailuresGcsPath().hashCode(); + break; + case 5: + hash = (37 * hash) + PARTIAL_FAILURES_BIGQUERY_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailuresBigqueryTable().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse 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.ImportRagFilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse 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.ImportRagFilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse 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.ImportRagFilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse 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.ImportRagFilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse 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.ImportRagFilesResponse 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.ImportRagFilesResponse 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.ImportRagFilesResponse 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
+   * [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ImportRagFilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImportRagFilesResponse) + com.google.cloud.aiplatform.v1.ImportRagFilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImportRagFilesResponse.class, + com.google.cloud.aiplatform.v1.ImportRagFilesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImportRagFilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + importedRagFilesCount_ = 0L; + failedRagFilesCount_ = 0L; + skippedRagFilesCount_ = 0L; + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImportRagFilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesResponse build() { + com.google.cloud.aiplatform.v1.ImportRagFilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImportRagFilesResponse buildPartial() { + com.google.cloud.aiplatform.v1.ImportRagFilesResponse result = + new com.google.cloud.aiplatform.v1.ImportRagFilesResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportRagFilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.importedRagFilesCount_ = importedRagFilesCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failedRagFilesCount_ = failedRagFilesCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skippedRagFilesCount_ = skippedRagFilesCount_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ImportRagFilesResponse result) { + result.partialFailureSinkCase_ = partialFailureSinkCase_; + result.partialFailureSink_ = this.partialFailureSink_; + } + + @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.ImportRagFilesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImportRagFilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportRagFilesResponse other) { + if (other == com.google.cloud.aiplatform.v1.ImportRagFilesResponse.getDefaultInstance()) + return this; + if (other.getImportedRagFilesCount() != 0L) { + setImportedRagFilesCount(other.getImportedRagFilesCount()); + } + if (other.getFailedRagFilesCount() != 0L) { + setFailedRagFilesCount(other.getFailedRagFilesCount()); + } + if (other.getSkippedRagFilesCount() != 0L) { + setSkippedRagFilesCount(other.getSkippedRagFilesCount()); + } + switch (other.getPartialFailureSinkCase()) { + case PARTIAL_FAILURES_GCS_PATH: + { + partialFailureSinkCase_ = 4; + partialFailureSink_ = other.partialFailureSink_; + onChanged(); + break; + } + case PARTIAL_FAILURES_BIGQUERY_TABLE: + { + partialFailureSinkCase_ = 5; + partialFailureSink_ = other.partialFailureSink_; + onChanged(); + break; + } + case PARTIALFAILURESINK_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 8: + { + importedRagFilesCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 8 + case 16: + { + failedRagFilesCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 24: + { + skippedRagFilesCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + partialFailureSinkCase_ = 4; + partialFailureSink_ = s; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + partialFailureSinkCase_ = 5; + partialFailureSink_ = s; + 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 partialFailureSinkCase_ = 0; + private java.lang.Object partialFailureSink_; + + public PartialFailureSinkCase getPartialFailureSinkCase() { + return PartialFailureSinkCase.forNumber(partialFailureSinkCase_); + } + + public Builder clearPartialFailureSink() { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return Whether the partialFailuresGcsPath field is set. + */ + @java.lang.Override + public boolean hasPartialFailuresGcsPath() { + return partialFailureSinkCase_ == 4; + } + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The partialFailuresGcsPath. + */ + @java.lang.Override + public java.lang.String getPartialFailuresGcsPath() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 4) { + ref = partialFailureSink_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (partialFailureSinkCase_ == 4) { + partialFailureSink_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The bytes for partialFailuresGcsPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPartialFailuresGcsPathBytes() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 4) { + ref = partialFailureSink_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (partialFailureSinkCase_ == 4) { + partialFailureSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @param value The partialFailuresGcsPath to set. + * @return This builder for chaining. + */ + public Builder setPartialFailuresGcsPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureSinkCase_ = 4; + partialFailureSink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return This builder for chaining. + */ + public Builder clearPartialFailuresGcsPath() { + if (partialFailureSinkCase_ == 4) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The Google Cloud Storage path into which the partial failures were
+     * written.
+     * 
+ * + * string partial_failures_gcs_path = 4; + * + * @param value The bytes for partialFailuresGcsPath to set. + * @return This builder for chaining. + */ + public Builder setPartialFailuresGcsPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + partialFailureSinkCase_ = 4; + partialFailureSink_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return Whether the partialFailuresBigqueryTable field is set. + */ + @java.lang.Override + public boolean hasPartialFailuresBigqueryTable() { + return partialFailureSinkCase_ == 5; + } + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The partialFailuresBigqueryTable. + */ + @java.lang.Override + public java.lang.String getPartialFailuresBigqueryTable() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 5) { + ref = partialFailureSink_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (partialFailureSinkCase_ == 5) { + partialFailureSink_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The bytes for partialFailuresBigqueryTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPartialFailuresBigqueryTableBytes() { + java.lang.Object ref = ""; + if (partialFailureSinkCase_ == 5) { + ref = partialFailureSink_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (partialFailureSinkCase_ == 5) { + partialFailureSink_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @param value The partialFailuresBigqueryTable to set. + * @return This builder for chaining. + */ + public Builder setPartialFailuresBigqueryTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureSinkCase_ = 5; + partialFailureSink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return This builder for chaining. + */ + public Builder clearPartialFailuresBigqueryTable() { + if (partialFailureSinkCase_ == 5) { + partialFailureSinkCase_ = 0; + partialFailureSink_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The BigQuery table into which the partial failures were written.
+     * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @param value The bytes for partialFailuresBigqueryTable to set. + * @return This builder for chaining. + */ + public Builder setPartialFailuresBigqueryTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + partialFailureSinkCase_ = 5; + partialFailureSink_ = value; + onChanged(); + return this; + } + + private long importedRagFilesCount_; + /** + * + * + *
+     * The number of RagFiles that had been imported into the RagCorpus.
+     * 
+ * + * int64 imported_rag_files_count = 1; + * + * @return The importedRagFilesCount. + */ + @java.lang.Override + public long getImportedRagFilesCount() { + return importedRagFilesCount_; + } + /** + * + * + *
+     * The number of RagFiles that had been imported into the RagCorpus.
+     * 
+ * + * int64 imported_rag_files_count = 1; + * + * @param value The importedRagFilesCount to set. + * @return This builder for chaining. + */ + public Builder setImportedRagFilesCount(long value) { + + importedRagFilesCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of RagFiles that had been imported into the RagCorpus.
+     * 
+ * + * int64 imported_rag_files_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearImportedRagFilesCount() { + bitField0_ = (bitField0_ & ~0x00000004); + importedRagFilesCount_ = 0L; + onChanged(); + return this; + } + + private long failedRagFilesCount_; + /** + * + * + *
+     * The number of RagFiles that had failed while importing into the RagCorpus.
+     * 
+ * + * int64 failed_rag_files_count = 2; + * + * @return The failedRagFilesCount. + */ + @java.lang.Override + public long getFailedRagFilesCount() { + return failedRagFilesCount_; + } + /** + * + * + *
+     * The number of RagFiles that had failed while importing into the RagCorpus.
+     * 
+ * + * int64 failed_rag_files_count = 2; + * + * @param value The failedRagFilesCount to set. + * @return This builder for chaining. + */ + public Builder setFailedRagFilesCount(long value) { + + failedRagFilesCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of RagFiles that had failed while importing into the RagCorpus.
+     * 
+ * + * int64 failed_rag_files_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailedRagFilesCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failedRagFilesCount_ = 0L; + onChanged(); + return this; + } + + private long skippedRagFilesCount_; + /** + * + * + *
+     * The number of RagFiles that was skipped while importing into the RagCorpus.
+     * 
+ * + * int64 skipped_rag_files_count = 3; + * + * @return The skippedRagFilesCount. + */ + @java.lang.Override + public long getSkippedRagFilesCount() { + return skippedRagFilesCount_; + } + /** + * + * + *
+     * The number of RagFiles that was skipped while importing into the RagCorpus.
+     * 
+ * + * int64 skipped_rag_files_count = 3; + * + * @param value The skippedRagFilesCount to set. + * @return This builder for chaining. + */ + public Builder setSkippedRagFilesCount(long value) { + + skippedRagFilesCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of RagFiles that was skipped while importing into the RagCorpus.
+     * 
+ * + * int64 skipped_rag_files_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSkippedRagFilesCount() { + bitField0_ = (bitField0_ & ~0x00000010); + skippedRagFilesCount_ = 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.ImportRagFilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImportRagFilesResponse) + private static final com.google.cloud.aiplatform.v1.ImportRagFilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImportRagFilesResponse(); + } + + public static com.google.cloud.aiplatform.v1.ImportRagFilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRagFilesResponse 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.ImportRagFilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponseOrBuilder.java new file mode 100644 index 000000000000..22c1ef9d07a2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesResponseOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ImportRagFilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImportRagFilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return Whether the partialFailuresGcsPath field is set. + */ + boolean hasPartialFailuresGcsPath(); + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The partialFailuresGcsPath. + */ + java.lang.String getPartialFailuresGcsPath(); + /** + * + * + *
+   * The Google Cloud Storage path into which the partial failures were
+   * written.
+   * 
+ * + * string partial_failures_gcs_path = 4; + * + * @return The bytes for partialFailuresGcsPath. + */ + com.google.protobuf.ByteString getPartialFailuresGcsPathBytes(); + + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return Whether the partialFailuresBigqueryTable field is set. + */ + boolean hasPartialFailuresBigqueryTable(); + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The partialFailuresBigqueryTable. + */ + java.lang.String getPartialFailuresBigqueryTable(); + /** + * + * + *
+   * The BigQuery table into which the partial failures were written.
+   * 
+ * + * string partial_failures_bigquery_table = 5; + * + * @return The bytes for partialFailuresBigqueryTable. + */ + com.google.protobuf.ByteString getPartialFailuresBigqueryTableBytes(); + + /** + * + * + *
+   * The number of RagFiles that had been imported into the RagCorpus.
+   * 
+ * + * int64 imported_rag_files_count = 1; + * + * @return The importedRagFilesCount. + */ + long getImportedRagFilesCount(); + + /** + * + * + *
+   * The number of RagFiles that had failed while importing into the RagCorpus.
+   * 
+ * + * int64 failed_rag_files_count = 2; + * + * @return The failedRagFilesCount. + */ + long getFailedRagFilesCount(); + + /** + * + * + *
+   * The number of RagFiles that was skipped while importing into the RagCorpus.
+   * 
+ * + * int64 skipped_rag_files_count = 3; + * + * @return The skippedRagFilesCount. + */ + long getSkippedRagFilesCount(); + + com.google.cloud.aiplatform.v1.ImportRagFilesResponse.PartialFailureSinkCase + getPartialFailureSinkCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java index bd667be117f7..393eb693ca21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java @@ -64,6 +64,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -75,32 +115,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n#google/cloud/aiplatform/v1/io.proto\022\032g" + "oogle.cloud.aiplatform.v1\032\037google/api/fi" - + "eld_behavior.proto\"L\n\nAvroSource\022>\n\ngcs_" - + "source\030\001 \001(\0132%.google.cloud.aiplatform.v" - + "1.GcsSourceB\003\340A\002\"K\n\tCsvSource\022>\n\ngcs_sou" - + "rce\030\001 \001(\0132%.google.cloud.aiplatform.v1.G" - + "csSourceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004uris\030\001 \003(\t" - + "B\003\340A\002\"0\n\016GcsDestination\022\036\n\021output_uri_pr" - + "efix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySource\022\026\n\tinp" - + "ut_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDestination" - + "\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"Z\n\016CsvDestinat" - + "ion\022H\n\017gcs_destination\030\001 \001(\0132*.google.cl" - + "oud.aiplatform.v1.GcsDestinationB\003\340A\002\"_\n" - + "\023TFRecordDestination\022H\n\017gcs_destination\030" - + "\001 \001(\0132*.google.cloud.aiplatform.v1.GcsDe" - + "stinationB\003\340A\002\"7\n\034ContainerRegistryDesti" - + "nation\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002B\305\001\n\036com." - + "google.cloud.aiplatform.v1B\007IoProtoP\001Z>c" - + "loud.google.com/go/aiplatform/apiv1/aipl" - + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" - + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" - + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "eld_behavior.proto\032)google/cloud/aiplatf" + + "orm/v1/api_auth.proto\032\037google/protobuf/t" + + "imestamp.proto\"L\n\nAvroSource\022>\n\ngcs_sour" + + "ce\030\001 \001(\0132%.google.cloud.aiplatform.v1.Gc" + + "sSourceB\003\340A\002\"K\n\tCsvSource\022>\n\ngcs_source\030" + + "\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSo" + + "urceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004uris\030\001 \003(\tB\003\340A" + + "\002\"0\n\016GcsDestination\022\036\n\021output_uri_prefix" + + "\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySource\022\026\n\tinput_u" + + "ri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDestination\022\027\n\n" + + "output_uri\030\001 \001(\tB\003\340A\002\"Z\n\016CsvDestination\022" + + "H\n\017gcs_destination\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1.GcsDestinationB\003\340A\002\"_\n\023TFR" + + "ecordDestination\022H\n\017gcs_destination\030\001 \001(" + + "\0132*.google.cloud.aiplatform.v1.GcsDestin" + + "ationB\003\340A\002\"7\n\034ContainerRegistryDestinati" + + "on\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"\325\002\n\021GoogleDr" + + "iveSource\022S\n\014resource_ids\030\001 \003(\01328.google" + + ".cloud.aiplatform.v1.GoogleDriveSource.R" + + "esourceIdB\003\340A\002\032\352\001\n\nResourceId\022a\n\rresourc" + + "e_type\030\001 \001(\0162E.google.cloud.aiplatform.v" + + "1.GoogleDriveSource.ResourceId.ResourceT" + + "ypeB\003\340A\002\022\030\n\013resource_id\030\002 \001(\tB\003\340A\002\"_\n\014Re" + + "sourceType\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020" + + "\000\022\026\n\022RESOURCE_TYPE_FILE\020\001\022\030\n\024RESOURCE_TY" + + "PE_FOLDER\020\002\"\024\n\022DirectUploadSource\"\251\003\n\013Sl" + + "ackSource\022L\n\010channels\030\001 \003(\01325.google.clo" + + "ud.aiplatform.v1.SlackSource.SlackChanne" + + "lsB\003\340A\002\032\313\002\n\rSlackChannels\022Y\n\010channels\030\001 " + + "\003(\0132B.google.cloud.aiplatform.v1.SlackSo" + + "urce.SlackChannels.SlackChannelB\003\340A\002\022M\n\016" + + "api_key_config\030\003 \001(\01320.google.cloud.aipl" + + "atform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\032\217\001\n\014" + + "SlackChannel\022\027\n\nchannel_id\030\001 \001(\tB\003\340A\002\0223\n" + + "\nstart_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\001\0221\n\010end_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001\"\221\002\n\nJiraSource\022M\n\014" + + "jira_queries\030\001 \003(\01322.google.cloud.aiplat" + + "form.v1.JiraSource.JiraQueriesB\003\340A\002\032\263\001\n\013" + + "JiraQueries\022\020\n\010projects\030\003 \003(\t\022\026\n\016custom_" + + "queries\030\004 \003(\t\022\022\n\005email\030\005 \001(\tB\003\340A\002\022\027\n\nser" + + "ver_uri\030\006 \001(\tB\003\340A\002\022M\n\016api_key_config\030\007 \001" + + "(\01320.google.cloud.aiplatform.v1.ApiAuth." + + "ApiKeyConfigB\003\340A\002\"\265\003\n\021SharePointSources\022" + + "[\n\023share_point_sources\030\001 \003(\0132>.google.cl" + + "oud.aiplatform.v1.SharePointSources.Shar" + + "ePointSource\032\302\002\n\020SharePointSource\022 \n\026sha" + + "repoint_folder_path\030\005 \001(\tH\000\022\036\n\024sharepoin" + + "t_folder_id\030\006 \001(\tH\000\022\024\n\ndrive_name\030\007 \001(\tH" + + "\001\022\022\n\010drive_id\030\010 \001(\tH\001\022\021\n\tclient_id\030\001 \001(\t" + + "\022G\n\rclient_secret\030\002 \001(\01320.google.cloud.a" + + "iplatform.v1.ApiAuth.ApiKeyConfig\022\021\n\tten" + + "ant_id\030\003 \001(\t\022\034\n\024sharepoint_site_name\030\004 \001" + + "(\t\022\024\n\007file_id\030\t \001(\tB\003\340A\003B\017\n\rfolder_sourc" + + "eB\016\n\014drive_sourceB\305\001\n\036com.google.cloud.a" + + "iplatform.v1B\007IoProtoP\001Z>cloud.google.co" + + "m/go/aiplatform/apiv1/aiplatformpb;aipla" + + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_AvroSource_descriptor = getDescriptor().getMessageTypes().get(0); @@ -174,12 +256,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "OutputUri", }); + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor, + new java.lang.String[] { + "ResourceIds", + }); + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor = + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_ResourceId_descriptor, + new java.lang.String[] { + "ResourceType", "ResourceId", + }); + internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor, + new java.lang.String[] { + "Channels", + }); + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor = + internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor, + new java.lang.String[] { + "Channels", "ApiKeyConfig", + }); + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor = + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor, + new java.lang.String[] { + "ChannelId", "StartTime", "EndTime", + }); + internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor, + new java.lang.String[] { + "JiraQueries", + }); + internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor = + internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor, + new java.lang.String[] { + "Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig", + }); + internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor, + new java.lang.String[] { + "SharePointSources", + }); + internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor = + internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor, + new java.lang.String[] { + "SharepointFolderPath", + "SharepointFolderId", + "DriveName", + "DriveId", + "ClientId", + "ClientSecret", + "TenantId", + "SharepointSiteName", + "FileId", + "FolderSource", + "DriveSource", + }); 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.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSource.java new file mode 100644 index 000000000000..47997d7f372a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSource.java @@ -0,0 +1,2926 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The Jira source for the ImportRagFilesRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.JiraSource} + */ +public final class JiraSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.JiraSource) + JiraSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use JiraSource.newBuilder() to construct. + private JiraSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JiraSource() { + jiraQueries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JiraSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.JiraSource.class, + com.google.cloud.aiplatform.v1.JiraSource.Builder.class); + } + + public interface JiraQueriesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.JiraSource.JiraQueries) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + java.util.List getProjectsList(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + int getProjectsCount(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + java.lang.String getProjects(int index); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + com.google.protobuf.ByteString getProjectsBytes(int index); + + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + java.util.List getCustomQueriesList(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + int getCustomQueriesCount(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + java.lang.String getCustomQueries(int index); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + com.google.protobuf.ByteString getCustomQueriesBytes(int index); + + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + java.lang.String getServerUri(); + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + com.google.protobuf.ByteString getServerUriBytes(); + + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + } + /** + * + * + *
+   * JiraQueries contains the Jira queries and corresponding authentication.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.JiraSource.JiraQueries} + */ + public static final class JiraQueries extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.JiraSource.JiraQueries) + JiraQueriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use JiraQueries.newBuilder() to construct. + private JiraQueries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JiraQueries() { + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + email_ = ""; + serverUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JiraQueries(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.class, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder.class); + } + + private int bitField0_; + public static final int PROJECTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + return projects_; + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + /** + * + * + *
+     * A list of Jira projects to import in their entirety.
+     * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + + public static final int CUSTOM_QUERIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList customQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + public com.google.protobuf.ProtocolStringList getCustomQueriesList() { + return customQueries_; + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + public int getCustomQueriesCount() { + return customQueries_.size(); + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + public java.lang.String getCustomQueries(int index) { + return customQueries_.get(index); + } + /** + * + * + *
+     * A list of custom Jira queries to import. For information about JQL (Jira
+     * Query Language), see
+     * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+     * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + public com.google.protobuf.ByteString getCustomQueriesBytes(int index) { + return customQueries_.getByteString(index); + } + + public static final int EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Jira email address.
+     * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverUri_ = ""; + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + @java.lang.Override + public java.lang.String getServerUri() { + java.lang.Object ref = serverUri_; + 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(); + serverUri_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Jira server URI.
+     * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerUriBytes() { + java.lang.Object ref = serverUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig apiKeyConfig_; + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + + 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 < projects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projects_.getRaw(i)); + } + for (int i = 0; i < customQueries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customQueries_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serverUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getApiKeyConfig()); + } + 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 < projects_.size(); i++) { + dataSize += computeStringSizeNoTag(projects_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < customQueries_.size(); i++) { + dataSize += computeStringSizeNoTag(customQueries_.getRaw(i)); + } + size += dataSize; + size += 1 * getCustomQueriesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serverUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApiKeyConfig()); + } + 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.JiraSource.JiraQueries)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries other = + (com.google.cloud.aiplatform.v1.JiraSource.JiraQueries) obj; + + if (!getProjectsList().equals(other.getProjectsList())) return false; + if (!getCustomQueriesList().equals(other.getCustomQueriesList())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (!getServerUri().equals(other.getServerUri())) return false; + if (hasApiKeyConfig() != other.hasApiKeyConfig()) return false; + if (hasApiKeyConfig()) { + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) 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 (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + if (getCustomQueriesCount() > 0) { + hash = (37 * hash) + CUSTOM_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getCustomQueriesList().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + SERVER_URI_FIELD_NUMBER; + hash = (53 * hash) + getServerUri().hashCode(); + if (hasApiKeyConfig()) { + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries 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.JiraSource.JiraQueries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries 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.JiraSource.JiraQueries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries 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.JiraSource.JiraQueries parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries 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.JiraSource.JiraQueries parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries 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.JiraSource.JiraQueries 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.JiraSource.JiraQueries 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.JiraSource.JiraQueries 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; + } + /** + * + * + *
+     * JiraQueries contains the Jira queries and corresponding authentication.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.JiraSource.JiraQueries} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.JiraSource.JiraQueries) + com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.class, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getApiKeyConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + email_ = ""; + serverUri_ = ""; + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_JiraQueries_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries build() { + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries buildPartial() { + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries result = + new com.google.cloud.aiplatform.v1.JiraSource.JiraQueries(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.JiraSource.JiraQueries result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + projects_.makeImmutable(); + result.projects_ = projects_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + customQueries_.makeImmutable(); + result.customQueries_ = customQueries_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serverUri_ = serverUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.apiKeyConfig_ = + apiKeyConfigBuilder_ == null ? apiKeyConfig_ : apiKeyConfigBuilder_.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.JiraSource.JiraQueries) { + return mergeFrom((com.google.cloud.aiplatform.v1.JiraSource.JiraQueries) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.JiraSource.JiraQueries other) { + if (other == com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.getDefaultInstance()) + return this; + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ |= 0x00000001; + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + if (!other.customQueries_.isEmpty()) { + if (customQueries_.isEmpty()) { + customQueries_ = other.customQueries_; + bitField0_ |= 0x00000002; + } else { + ensureCustomQueriesIsMutable(); + customQueries_.addAll(other.customQueries_); + } + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getServerUri().isEmpty()) { + serverUri_ = other.serverUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasApiKeyConfig()) { + mergeApiKeyConfig(other.getApiKeyConfig()); + } + 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 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectsIsMutable(); + projects_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCustomQueriesIsMutable(); + customQueries_.add(s); + break; + } // case 34 + case 42: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + serverUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + 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 com.google.protobuf.LazyStringArrayList projects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProjectsIsMutable() { + if (!projects_.isModifiable()) { + projects_ = new com.google.protobuf.LazyStringArrayList(projects_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return A list containing the projects. + */ + public com.google.protobuf.ProtocolStringList getProjectsList() { + projects_.makeImmutable(); + return projects_; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return The count of projects. + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index of the element to return. + * @return The projects at the given index. + */ + public java.lang.String getProjects(int index) { + return projects_.get(index); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index of the value to return. + * @return The bytes of the projects at the given index. + */ + public com.google.protobuf.ByteString getProjectsBytes(int index) { + return projects_.getByteString(index); + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param index The index to set the value at. + * @param value The projects to set. + * @return This builder for chaining. + */ + public Builder setProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param value The projects to add. + * @return This builder for chaining. + */ + public Builder addProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param values The projects to add. + * @return This builder for chaining. + */ + public Builder addAllProjects(java.lang.Iterable values) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projects_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @return This builder for chaining. + */ + public Builder clearProjects() { + projects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of Jira projects to import in their entirety.
+       * 
+ * + * repeated string projects = 3; + * + * @param value The bytes of the projects to add. + * @return This builder for chaining. + */ + public Builder addProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectsIsMutable(); + projects_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList customQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCustomQueriesIsMutable() { + if (!customQueries_.isModifiable()) { + customQueries_ = new com.google.protobuf.LazyStringArrayList(customQueries_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return A list containing the customQueries. + */ + public com.google.protobuf.ProtocolStringList getCustomQueriesList() { + customQueries_.makeImmutable(); + return customQueries_; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return The count of customQueries. + */ + public int getCustomQueriesCount() { + return customQueries_.size(); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the element to return. + * @return The customQueries at the given index. + */ + public java.lang.String getCustomQueries(int index) { + return customQueries_.get(index); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the customQueries at the given index. + */ + public com.google.protobuf.ByteString getCustomQueriesBytes(int index) { + return customQueries_.getByteString(index); + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param index The index to set the value at. + * @param value The customQueries to set. + * @return This builder for chaining. + */ + public Builder setCustomQueries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomQueriesIsMutable(); + customQueries_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param value The customQueries to add. + * @return This builder for chaining. + */ + public Builder addCustomQueries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomQueriesIsMutable(); + customQueries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param values The customQueries to add. + * @return This builder for chaining. + */ + public Builder addAllCustomQueries(java.lang.Iterable values) { + ensureCustomQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customQueries_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomQueries() { + customQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * A list of custom Jira queries to import. For information about JQL (Jira
+       * Query Language), see
+       * https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
+       * 
+ * + * repeated string custom_queries = 4; + * + * @param value The bytes of the customQueries to add. + * @return This builder for chaining. + */ + public Builder addCustomQueriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCustomQueriesIsMutable(); + customQueries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira email address.
+       * 
+ * + * string email = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object serverUri_ = ""; + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverUri. + */ + public java.lang.String getServerUri() { + java.lang.Object ref = serverUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverUri. + */ + public com.google.protobuf.ByteString getServerUriBytes() { + java.lang.Object ref = serverUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serverUri to set. + * @return This builder for chaining. + */ + public Builder setServerUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServerUri() { + serverUri_ = getDefaultInstance().getServerUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Jira server URI.
+       * 
+ * + * string server_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serverUri to set. + * @return This builder for chaining. + */ + public Builder setServerUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig apiKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } else { + return apiKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiKeyConfig_ = value; + } else { + apiKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfig_ = builderForValue.build(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && apiKeyConfig_ != null + && apiKeyConfig_ + != com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance()) { + getApiKeyConfigBuilder().mergeFrom(value); + } else { + apiKeyConfig_ = value; + } + } else { + apiKeyConfigBuilder_.mergeFrom(value); + } + if (apiKeyConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApiKeyConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder getApiKeyConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getApiKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (apiKeyConfigBuilder_ != null) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder>( + getApiKeyConfig(), getParentForChildren(), isClean()); + apiKeyConfig_ = null; + } + return apiKeyConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.JiraSource.JiraQueries) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.JiraSource.JiraQueries) + private static final com.google.cloud.aiplatform.v1.JiraSource.JiraQueries DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.JiraSource.JiraQueries(); + } + + public static com.google.cloud.aiplatform.v1.JiraSource.JiraQueries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JiraQueries 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.JiraSource.JiraQueries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int JIRA_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List jiraQueries_; + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getJiraQueriesList() { + return jiraQueries_; + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getJiraQueriesOrBuilderList() { + return jiraQueries_; + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getJiraQueriesCount() { + return jiraQueries_.size(); + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries getJiraQueries(int index) { + return jiraQueries_.get(index); + } + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder getJiraQueriesOrBuilder( + int index) { + return jiraQueries_.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 < jiraQueries_.size(); i++) { + output.writeMessage(1, jiraQueries_.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 < jiraQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jiraQueries_.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.JiraSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.JiraSource other = + (com.google.cloud.aiplatform.v1.JiraSource) obj; + + if (!getJiraQueriesList().equals(other.getJiraQueriesList())) 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 (getJiraQueriesCount() > 0) { + hash = (37 * hash) + JIRA_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getJiraQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.JiraSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource 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.JiraSource 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.JiraSource 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 Jira source for the ImportRagFilesRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.JiraSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.JiraSource) + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.JiraSource.class, + com.google.cloud.aiplatform.v1.JiraSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.JiraSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (jiraQueriesBuilder_ == null) { + jiraQueries_ = java.util.Collections.emptyList(); + } else { + jiraQueries_ = null; + jiraQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource build() { + com.google.cloud.aiplatform.v1.JiraSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource buildPartial() { + com.google.cloud.aiplatform.v1.JiraSource result = + new com.google.cloud.aiplatform.v1.JiraSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.JiraSource result) { + if (jiraQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + jiraQueries_ = java.util.Collections.unmodifiableList(jiraQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jiraQueries_ = jiraQueries_; + } else { + result.jiraQueries_ = jiraQueriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.JiraSource 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.JiraSource) { + return mergeFrom((com.google.cloud.aiplatform.v1.JiraSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.JiraSource other) { + if (other == com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance()) return this; + if (jiraQueriesBuilder_ == null) { + if (!other.jiraQueries_.isEmpty()) { + if (jiraQueries_.isEmpty()) { + jiraQueries_ = other.jiraQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJiraQueriesIsMutable(); + jiraQueries_.addAll(other.jiraQueries_); + } + onChanged(); + } + } else { + if (!other.jiraQueries_.isEmpty()) { + if (jiraQueriesBuilder_.isEmpty()) { + jiraQueriesBuilder_.dispose(); + jiraQueriesBuilder_ = null; + jiraQueries_ = other.jiraQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + jiraQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJiraQueriesFieldBuilder() + : null; + } else { + jiraQueriesBuilder_.addAllMessages(other.jiraQueries_); + } + } + } + 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.JiraSource.JiraQueries m = + input.readMessage( + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.parser(), + extensionRegistry); + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(m); + } else { + jiraQueriesBuilder_.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 jiraQueries_ = + java.util.Collections.emptyList(); + + private void ensureJiraQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jiraQueries_ = + new java.util.ArrayList( + jiraQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder> + jiraQueriesBuilder_; + + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getJiraQueriesList() { + if (jiraQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(jiraQueries_); + } else { + return jiraQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getJiraQueriesCount() { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.size(); + } else { + return jiraQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries getJiraQueries(int index) { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.get(index); + } else { + return jiraQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setJiraQueries( + int index, com.google.cloud.aiplatform.v1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.set(index, value); + onChanged(); + } else { + jiraQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setJiraQueries( + int index, com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries(com.google.cloud.aiplatform.v1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.add(value); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + int index, com.google.cloud.aiplatform.v1.JiraSource.JiraQueries value) { + if (jiraQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJiraQueriesIsMutable(); + jiraQueries_.add(index, value); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addJiraQueries( + int index, com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder builderForValue) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + jiraQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllJiraQueries( + java.lang.Iterable + values) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jiraQueries_); + onChanged(); + } else { + jiraQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearJiraQueries() { + if (jiraQueriesBuilder_ == null) { + jiraQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jiraQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeJiraQueries(int index) { + if (jiraQueriesBuilder_ == null) { + ensureJiraQueriesIsMutable(); + jiraQueries_.remove(index); + onChanged(); + } else { + jiraQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder getJiraQueriesBuilder( + int index) { + return getJiraQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder getJiraQueriesOrBuilder( + int index) { + if (jiraQueriesBuilder_ == null) { + return jiraQueries_.get(index); + } else { + return jiraQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getJiraQueriesOrBuilderList() { + if (jiraQueriesBuilder_ != null) { + return jiraQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jiraQueries_); + } + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder addJiraQueriesBuilder() { + return getJiraQueriesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder addJiraQueriesBuilder( + int index) { + return getJiraQueriesFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Jira queries.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getJiraQueriesBuilderList() { + return getJiraQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder> + getJiraQueriesFieldBuilder() { + if (jiraQueriesBuilder_ == null) { + jiraQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries.Builder, + com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder>( + jiraQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jiraQueries_ = null; + } + return jiraQueriesBuilder_; + } + + @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.JiraSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.JiraSource) + private static final com.google.cloud.aiplatform.v1.JiraSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.JiraSource(); + } + + public static com.google.cloud.aiplatform.v1.JiraSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JiraSource 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.JiraSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSourceOrBuilder.java new file mode 100644 index 000000000000..f41f362096cc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JiraSourceOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface JiraSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.JiraSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getJiraQueriesList(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.JiraSource.JiraQueries getJiraQueries(int index); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getJiraQueriesCount(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getJiraQueriesOrBuilderList(); + /** + * + * + *
+   * Required. The Jira queries.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.JiraSource.JiraQueries jira_queries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.JiraSource.JiraQueriesOrBuilder getJiraQueriesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequest.java new file mode 100644 index 000000000000..bf14f806a472 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequest.java @@ -0,0 +1,958 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagCorporaRequest} + */ +public final class ListRagCorporaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListRagCorporaRequest) + ListRagCorporaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRagCorporaRequest.newBuilder() to construct. + private ListRagCorporaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRagCorporaRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRagCorporaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest.class, + com.google.cloud.aiplatform.v1.ListRagCorporaRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * RagCorpora. 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 resource name of the Location from which to list the
+   * RagCorpora. 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * 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. The standard list page token.
+   * Typically obtained via
+   * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+   * call.
+   * 
+ * + * 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. The standard list page token.
+   * Typically obtained via
+   * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+   * call.
+   * 
+ * + * 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.aiplatform.v1.ListRagCorporaRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListRagCorporaRequest other = + (com.google.cloud.aiplatform.v1.ListRagCorporaRequest) 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.aiplatform.v1.ListRagCorporaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.ListRagCorporaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.ListRagCorporaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.ListRagCorporaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.ListRagCorporaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.ListRagCorporaRequest 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.ListRagCorporaRequest 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.ListRagCorporaRequest 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
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagCorporaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListRagCorporaRequest) + com.google.cloud.aiplatform.v1.ListRagCorporaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagCorporaRequest.class, + com.google.cloud.aiplatform.v1.ListRagCorporaRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListRagCorporaRequest.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.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListRagCorporaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaRequest build() { + com.google.cloud.aiplatform.v1.ListRagCorporaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListRagCorporaRequest result = + new com.google.cloud.aiplatform.v1.ListRagCorporaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListRagCorporaRequest 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.aiplatform.v1.ListRagCorporaRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListRagCorporaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListRagCorporaRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListRagCorporaRequest.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 resource name of the Location from which to list the
+     * RagCorpora. 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 resource name of the Location from which to list the
+     * RagCorpora. 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 resource name of the Location from which to list the
+     * RagCorpora. 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 resource name of the Location from which to list the
+     * RagCorpora. 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 resource name of the Location from which to list the
+     * RagCorpora. 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 int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * 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. The standard list page size.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+     * call.
+     * 
+ * + * 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.aiplatform.v1.ListRagCorporaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListRagCorporaRequest) + private static final com.google.cloud.aiplatform.v1.ListRagCorporaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListRagCorporaRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRagCorporaRequest 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.ListRagCorporaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequestOrBuilder.java new file mode 100644 index 000000000000..de1c78ecee45 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListRagCorporaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListRagCorporaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to list the
+   * RagCorpora. 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 resource name of the Location from which to list the
+   * RagCorpora. 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(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponse.java new file mode 100644 index 000000000000..e5aa99438ff4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagCorporaResponse} + */ +public final class ListRagCorporaResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListRagCorporaResponse) + ListRagCorporaResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRagCorporaResponse.newBuilder() to construct. + private ListRagCorporaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRagCorporaResponse() { + ragCorpora_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRagCorporaResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagCorporaResponse.class, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse.Builder.class); + } + + public static final int RAG_CORPORA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ragCorpora_; + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + @java.lang.Override + public java.util.List getRagCorporaList() { + return ragCorpora_; + } + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + @java.lang.Override + public java.util.List + getRagCorporaOrBuilderList() { + return ragCorpora_; + } + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + @java.lang.Override + public int getRagCorporaCount() { + return ragCorpora_.size(); + } + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpora(int index) { + return ragCorpora_.get(index); + } + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorporaOrBuilder(int index) { + return ragCorpora_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+   * to obtain that 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; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+   * to obtain that 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 < ragCorpora_.size(); i++) { + output.writeMessage(1, ragCorpora_.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 < ragCorpora_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ragCorpora_.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.aiplatform.v1.ListRagCorporaResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListRagCorporaResponse other = + (com.google.cloud.aiplatform.v1.ListRagCorporaResponse) obj; + + if (!getRagCorporaList().equals(other.getRagCorporaList())) 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 (getRagCorporaCount() > 0) { + hash = (37 * hash) + RAG_CORPORA_FIELD_NUMBER; + hash = (53 * hash) + getRagCorporaList().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.aiplatform.v1.ListRagCorporaResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.ListRagCorporaResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.ListRagCorporaResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.ListRagCorporaResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.ListRagCorporaResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.ListRagCorporaResponse 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.ListRagCorporaResponse 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.ListRagCorporaResponse 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
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagCorporaResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListRagCorporaResponse) + com.google.cloud.aiplatform.v1.ListRagCorporaResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagCorporaResponse.class, + com.google.cloud.aiplatform.v1.ListRagCorporaResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListRagCorporaResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragCorporaBuilder_ == null) { + ragCorpora_ = java.util.Collections.emptyList(); + } else { + ragCorpora_ = null; + ragCorporaBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListRagCorporaResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaResponse build() { + com.google.cloud.aiplatform.v1.ListRagCorporaResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagCorporaResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListRagCorporaResponse result = + new com.google.cloud.aiplatform.v1.ListRagCorporaResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListRagCorporaResponse result) { + if (ragCorporaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ragCorpora_ = java.util.Collections.unmodifiableList(ragCorpora_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ragCorpora_ = ragCorpora_; + } else { + result.ragCorpora_ = ragCorporaBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListRagCorporaResponse 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.aiplatform.v1.ListRagCorporaResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListRagCorporaResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListRagCorporaResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListRagCorporaResponse.getDefaultInstance()) + return this; + if (ragCorporaBuilder_ == null) { + if (!other.ragCorpora_.isEmpty()) { + if (ragCorpora_.isEmpty()) { + ragCorpora_ = other.ragCorpora_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRagCorporaIsMutable(); + ragCorpora_.addAll(other.ragCorpora_); + } + onChanged(); + } + } else { + if (!other.ragCorpora_.isEmpty()) { + if (ragCorporaBuilder_.isEmpty()) { + ragCorporaBuilder_.dispose(); + ragCorporaBuilder_ = null; + ragCorpora_ = other.ragCorpora_; + bitField0_ = (bitField0_ & ~0x00000001); + ragCorporaBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRagCorporaFieldBuilder() + : null; + } else { + ragCorporaBuilder_.addAllMessages(other.ragCorpora_); + } + } + } + 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.aiplatform.v1.RagCorpus m = + input.readMessage( + com.google.cloud.aiplatform.v1.RagCorpus.parser(), extensionRegistry); + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + ragCorpora_.add(m); + } else { + ragCorporaBuilder_.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 ragCorpora_ = + java.util.Collections.emptyList(); + + private void ensureRagCorporaIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ragCorpora_ = + new java.util.ArrayList(ragCorpora_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + ragCorporaBuilder_; + + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public java.util.List getRagCorporaList() { + if (ragCorporaBuilder_ == null) { + return java.util.Collections.unmodifiableList(ragCorpora_); + } else { + return ragCorporaBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public int getRagCorporaCount() { + if (ragCorporaBuilder_ == null) { + return ragCorpora_.size(); + } else { + return ragCorporaBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpora(int index) { + if (ragCorporaBuilder_ == null) { + return ragCorpora_.get(index); + } else { + return ragCorporaBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder setRagCorpora(int index, com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorporaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagCorporaIsMutable(); + ragCorpora_.set(index, value); + onChanged(); + } else { + ragCorporaBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder setRagCorpora( + int index, com.google.cloud.aiplatform.v1.RagCorpus.Builder builderForValue) { + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + ragCorpora_.set(index, builderForValue.build()); + onChanged(); + } else { + ragCorporaBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder addRagCorpora(com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorporaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagCorporaIsMutable(); + ragCorpora_.add(value); + onChanged(); + } else { + ragCorporaBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder addRagCorpora(int index, com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorporaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagCorporaIsMutable(); + ragCorpora_.add(index, value); + onChanged(); + } else { + ragCorporaBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder addRagCorpora(com.google.cloud.aiplatform.v1.RagCorpus.Builder builderForValue) { + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + ragCorpora_.add(builderForValue.build()); + onChanged(); + } else { + ragCorporaBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder addRagCorpora( + int index, com.google.cloud.aiplatform.v1.RagCorpus.Builder builderForValue) { + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + ragCorpora_.add(index, builderForValue.build()); + onChanged(); + } else { + ragCorporaBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder addAllRagCorpora( + java.lang.Iterable values) { + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragCorpora_); + onChanged(); + } else { + ragCorporaBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder clearRagCorpora() { + if (ragCorporaBuilder_ == null) { + ragCorpora_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ragCorporaBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public Builder removeRagCorpora(int index) { + if (ragCorporaBuilder_ == null) { + ensureRagCorporaIsMutable(); + ragCorpora_.remove(index); + onChanged(); + } else { + ragCorporaBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public com.google.cloud.aiplatform.v1.RagCorpus.Builder getRagCorporaBuilder(int index) { + return getRagCorporaFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorporaOrBuilder(int index) { + if (ragCorporaBuilder_ == null) { + return ragCorpora_.get(index); + } else { + return ragCorporaBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public java.util.List + getRagCorporaOrBuilderList() { + if (ragCorporaBuilder_ != null) { + return ragCorporaBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ragCorpora_); + } + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public com.google.cloud.aiplatform.v1.RagCorpus.Builder addRagCorporaBuilder() { + return getRagCorporaFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance()); + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public com.google.cloud.aiplatform.v1.RagCorpus.Builder addRagCorporaBuilder(int index) { + return getRagCorporaFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance()); + } + /** + * + * + *
+     * List of RagCorpora in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + public java.util.List + getRagCorporaBuilderList() { + return getRagCorporaFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + getRagCorporaFieldBuilder() { + if (ragCorporaBuilder_ == null) { + ragCorporaBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder>( + ragCorpora_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ragCorpora_ = null; + } + return ragCorporaBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+     * to obtain that 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; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+     * to obtain that 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; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+     * to obtain that 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; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+     * to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+     * to obtain that 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.aiplatform.v1.ListRagCorporaResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListRagCorporaResponse) + private static final com.google.cloud.aiplatform.v1.ListRagCorporaResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListRagCorporaResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListRagCorporaResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRagCorporaResponse 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.ListRagCorporaResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponseOrBuilder.java new file mode 100644 index 000000000000..d86ce9c98768 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagCorporaResponseOrBuilder.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListRagCorporaResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListRagCorporaResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + java.util.List getRagCorporaList(); + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + com.google.cloud.aiplatform.v1.RagCorpus getRagCorpora(int index); + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + int getRagCorporaCount(); + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + java.util.List + getRagCorporaOrBuilderList(); + /** + * + * + *
+   * List of RagCorpora in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagCorpus rag_corpora = 1; + */ + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorporaOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+   * to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token]
+   * to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequest.java new file mode 100644 index 000000000000..888b4fd07ad0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequest.java @@ -0,0 +1,965 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagFilesRequest} + */ +public final class ListRagFilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListRagFilesRequest) + ListRagFilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRagFilesRequest.newBuilder() to construct. + private ListRagFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRagFilesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRagFilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagFilesRequest.class, + com.google.cloud.aiplatform.v1.ListRagFilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the RagCorpus from which to list the
+   * RagFiles. Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 resource name of the RagCorpus from which to list the
+   * RagFiles. Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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. The standard list page size.
+   * 
+ * + * 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. The standard list page token.
+   * Typically obtained via
+   * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+   * call.
+   * 
+ * + * 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. The standard list page token.
+   * Typically obtained via
+   * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+   * call.
+   * 
+ * + * 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.aiplatform.v1.ListRagFilesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListRagFilesRequest other = + (com.google.cloud.aiplatform.v1.ListRagFilesRequest) 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.aiplatform.v1.ListRagFilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.ListRagFilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.ListRagFilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.ListRagFilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.ListRagFilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.ListRagFilesRequest 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.ListRagFilesRequest 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.ListRagFilesRequest 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
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagFilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListRagFilesRequest) + com.google.cloud.aiplatform.v1.ListRagFilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagFilesRequest.class, + com.google.cloud.aiplatform.v1.ListRagFilesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListRagFilesRequest.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.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListRagFilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesRequest build() { + com.google.cloud.aiplatform.v1.ListRagFilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListRagFilesRequest result = + new com.google.cloud.aiplatform.v1.ListRagFilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListRagFilesRequest 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.aiplatform.v1.ListRagFilesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListRagFilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListRagFilesRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListRagFilesRequest.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 resource name of the RagCorpus from which to list the
+     * RagFiles. Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 resource name of the RagCorpus from which to list the
+     * RagFiles. Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 resource name of the RagCorpus from which to list the
+     * RagFiles. Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 resource name of the RagCorpus from which to list the
+     * RagFiles. Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 resource name of the RagCorpus from which to list the
+     * RagFiles. Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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. The standard list page size.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * 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. The standard list page size.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+     * call.
+     * 
+ * + * 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. The standard list page token.
+     * Typically obtained via
+     * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+     * of the previous
+     * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+     * call.
+     * 
+ * + * 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.aiplatform.v1.ListRagFilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListRagFilesRequest) + private static final com.google.cloud.aiplatform.v1.ListRagFilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListRagFilesRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRagFilesRequest 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.ListRagFilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequestOrBuilder.java new file mode 100644 index 000000000000..8131191753cc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListRagFilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListRagFilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the RagCorpus from which to list the
+   * RagFiles. Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the RagCorpus from which to list the
+   * RagFiles. Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token]
+   * of the previous
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponse.java new file mode 100644 index 000000000000..ad7eef61ff45 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponse.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagFilesResponse} + */ +public final class ListRagFilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListRagFilesResponse) + ListRagFilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRagFilesResponse.newBuilder() to construct. + private ListRagFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRagFilesResponse() { + ragFiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRagFilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagFilesResponse.class, + com.google.cloud.aiplatform.v1.ListRagFilesResponse.Builder.class); + } + + public static final int RAG_FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ragFiles_; + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + @java.lang.Override + public java.util.List getRagFilesList() { + return ragFiles_; + } + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + @java.lang.Override + public java.util.List + getRagFilesOrBuilderList() { + return ragFiles_; + } + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + @java.lang.Override + public int getRagFilesCount() { + return ragFiles_.size(); + } + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile getRagFiles(int index) { + return ragFiles_.get(index); + } + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFilesOrBuilder(int index) { + return ragFiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+   * to obtain that 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; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+   * to obtain that 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 < ragFiles_.size(); i++) { + output.writeMessage(1, ragFiles_.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 < ragFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ragFiles_.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.aiplatform.v1.ListRagFilesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListRagFilesResponse other = + (com.google.cloud.aiplatform.v1.ListRagFilesResponse) obj; + + if (!getRagFilesList().equals(other.getRagFilesList())) 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 (getRagFilesCount() > 0) { + hash = (37 * hash) + RAG_FILES_FIELD_NUMBER; + hash = (53 * hash) + getRagFilesList().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.aiplatform.v1.ListRagFilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.ListRagFilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.ListRagFilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.ListRagFilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.ListRagFilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.ListRagFilesResponse 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.ListRagFilesResponse 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.ListRagFilesResponse 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
+   * [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListRagFilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListRagFilesResponse) + com.google.cloud.aiplatform.v1.ListRagFilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListRagFilesResponse.class, + com.google.cloud.aiplatform.v1.ListRagFilesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListRagFilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragFilesBuilder_ == null) { + ragFiles_ = java.util.Collections.emptyList(); + } else { + ragFiles_ = null; + ragFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListRagFilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesResponse build() { + com.google.cloud.aiplatform.v1.ListRagFilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListRagFilesResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListRagFilesResponse result = + new com.google.cloud.aiplatform.v1.ListRagFilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListRagFilesResponse result) { + if (ragFilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ragFiles_ = java.util.Collections.unmodifiableList(ragFiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ragFiles_ = ragFiles_; + } else { + result.ragFiles_ = ragFilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListRagFilesResponse 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.aiplatform.v1.ListRagFilesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListRagFilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListRagFilesResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListRagFilesResponse.getDefaultInstance()) + return this; + if (ragFilesBuilder_ == null) { + if (!other.ragFiles_.isEmpty()) { + if (ragFiles_.isEmpty()) { + ragFiles_ = other.ragFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRagFilesIsMutable(); + ragFiles_.addAll(other.ragFiles_); + } + onChanged(); + } + } else { + if (!other.ragFiles_.isEmpty()) { + if (ragFilesBuilder_.isEmpty()) { + ragFilesBuilder_.dispose(); + ragFilesBuilder_ = null; + ragFiles_ = other.ragFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + ragFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRagFilesFieldBuilder() + : null; + } else { + ragFilesBuilder_.addAllMessages(other.ragFiles_); + } + } + } + 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.aiplatform.v1.RagFile m = + input.readMessage( + com.google.cloud.aiplatform.v1.RagFile.parser(), extensionRegistry); + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + ragFiles_.add(m); + } else { + ragFilesBuilder_.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 ragFiles_ = + java.util.Collections.emptyList(); + + private void ensureRagFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ragFiles_ = new java.util.ArrayList(ragFiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + ragFilesBuilder_; + + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public java.util.List getRagFilesList() { + if (ragFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ragFiles_); + } else { + return ragFilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public int getRagFilesCount() { + if (ragFilesBuilder_ == null) { + return ragFiles_.size(); + } else { + return ragFilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public com.google.cloud.aiplatform.v1.RagFile getRagFiles(int index) { + if (ragFilesBuilder_ == null) { + return ragFiles_.get(index); + } else { + return ragFilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder setRagFiles(int index, com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFilesIsMutable(); + ragFiles_.set(index, value); + onChanged(); + } else { + ragFilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder setRagFiles( + int index, com.google.cloud.aiplatform.v1.RagFile.Builder builderForValue) { + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + ragFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + ragFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder addRagFiles(com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFilesIsMutable(); + ragFiles_.add(value); + onChanged(); + } else { + ragFilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder addRagFiles(int index, com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFilesIsMutable(); + ragFiles_.add(index, value); + onChanged(); + } else { + ragFilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder addRagFiles(com.google.cloud.aiplatform.v1.RagFile.Builder builderForValue) { + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + ragFiles_.add(builderForValue.build()); + onChanged(); + } else { + ragFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder addRagFiles( + int index, com.google.cloud.aiplatform.v1.RagFile.Builder builderForValue) { + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + ragFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + ragFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder addAllRagFiles( + java.lang.Iterable values) { + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragFiles_); + onChanged(); + } else { + ragFilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder clearRagFiles() { + if (ragFilesBuilder_ == null) { + ragFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ragFilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public Builder removeRagFiles(int index) { + if (ragFilesBuilder_ == null) { + ensureRagFilesIsMutable(); + ragFiles_.remove(index); + onChanged(); + } else { + ragFilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public com.google.cloud.aiplatform.v1.RagFile.Builder getRagFilesBuilder(int index) { + return getRagFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFilesOrBuilder(int index) { + if (ragFilesBuilder_ == null) { + return ragFiles_.get(index); + } else { + return ragFilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public java.util.List + getRagFilesOrBuilderList() { + if (ragFilesBuilder_ != null) { + return ragFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ragFiles_); + } + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public com.google.cloud.aiplatform.v1.RagFile.Builder addRagFilesBuilder() { + return getRagFilesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance()); + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public com.google.cloud.aiplatform.v1.RagFile.Builder addRagFilesBuilder(int index) { + return getRagFilesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance()); + } + /** + * + * + *
+     * List of RagFiles in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + public java.util.List getRagFilesBuilderList() { + return getRagFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + getRagFilesFieldBuilder() { + if (ragFilesBuilder_ == null) { + ragFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder>( + ragFiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ragFiles_ = null; + } + return ragFilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+     * to obtain that 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; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+     * to obtain that 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; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+     * to obtain that 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; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+     * to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+     * to obtain that 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.aiplatform.v1.ListRagFilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListRagFilesResponse) + private static final com.google.cloud.aiplatform.v1.ListRagFilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListRagFilesResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListRagFilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRagFilesResponse 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.ListRagFilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponseOrBuilder.java new file mode 100644 index 000000000000..f5975f7e3c36 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListRagFilesResponseOrBuilder.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListRagFilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListRagFilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + java.util.List getRagFilesList(); + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + com.google.cloud.aiplatform.v1.RagFile getRagFiles(int index); + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + int getRagFilesCount(); + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + java.util.List + getRagFilesOrBuilderList(); + /** + * + * + *
+   * List of RagFiles in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagFile rag_files = 1; + */ + com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFilesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+   * to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token]
+   * to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java index 3e450e3414fb..fdc7bd0d38aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java @@ -89,34 +89,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003 \001(\005\022\031\n\014tpu_topology\030\004 \001(\tB\003\340A\005\022U\n\024rese" + "rvation_affinity\030\005 \001(\0132/.google.cloud.ai" + "platform.v1.ReservationAffinityB\006\340A\005\340A\001\"" - + "\213\002\n\022DedicatedResources\022E\n\014machine_spec\030\001" + + "\260\002\n\022DedicatedResources\022E\n\014machine_spec\030\001" + " \001(\0132\'.google.cloud.aiplatform.v1.Machin" + "eSpecB\006\340A\002\340A\005\022!\n\021min_replica_count\030\002 \001(\005" + "B\006\340A\002\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003\340A\005" - + "\022X\n\030autoscaling_metric_specs\030\004 \003(\01321.goo" - + "gle.cloud.aiplatform.v1.AutoscalingMetri" - + "cSpecB\003\340A\005\022\021\n\004spot\030\005 \001(\010B\003\340A\001\"T\n\022Automat" - + "icResources\022\036\n\021min_replica_count\030\001 \001(\005B\003" - + "\340A\005\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\245\001\n\027" - + "BatchDedicatedResources\022E\n\014machine_spec\030" - + "\001 \001(\0132\'.google.cloud.aiplatform.v1.Machi" - + "neSpecB\006\340A\002\340A\005\022#\n\026starting_replica_count" - + "\030\002 \001(\005B\003\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003" - + "\340A\005\"/\n\021ResourcesConsumed\022\032\n\rreplica_hour" - + "s\030\001 \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_ty" - + "pe\030\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005\"=\n\022P" - + "ersistentDiskSpec\022\021\n\tdisk_type\030\001 \001(\t\022\024\n\014" - + "disk_size_gb\030\002 \001(\003\"L\n\010NfsMount\022\023\n\006server" - + "\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\030\n\013mount_" - + "point\030\003 \001(\tB\003\340A\002\"A\n\025AutoscalingMetricSpe" - + "c\022\030\n\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n\006target\030\002 " - + "\001(\005\".\n\020ShieldedVmConfig\022\032\n\022enable_secure" - + "_boot\030\001 \001(\010B\323\001\n\036com.google.cloud.aiplatf" - + "orm.v1B\025MachineResourcesProtoP\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" + + "\022#\n\026required_replica_count\030\t \001(\005B\003\340A\001\022X\n" + + "\030autoscaling_metric_specs\030\004 \003(\01321.google" + + ".cloud.aiplatform.v1.AutoscalingMetricSp" + + "ecB\003\340A\005\022\021\n\004spot\030\005 \001(\010B\003\340A\001\"T\n\022AutomaticR" + + "esources\022\036\n\021min_replica_count\030\001 \001(\005B\003\340A\005" + + "\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\245\001\n\027Bat" + + "chDedicatedResources\022E\n\014machine_spec\030\001 \001" + + "(\0132\'.google.cloud.aiplatform.v1.MachineS" + + "pecB\006\340A\002\340A\005\022#\n\026starting_replica_count\030\002 " + + "\001(\005B\003\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003\340A\005" + + "\"/\n\021ResourcesConsumed\022\032\n\rreplica_hours\030\001" + + " \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_type\030" + + "\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005\"=\n\022Pers" + + "istentDiskSpec\022\021\n\tdisk_type\030\001 \001(\t\022\024\n\014dis" + + "k_size_gb\030\002 \001(\003\"L\n\010NfsMount\022\023\n\006server\030\001 " + + "\001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\030\n\013mount_poi" + + "nt\030\003 \001(\tB\003\340A\002\"A\n\025AutoscalingMetricSpec\022\030" + + "\n\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n\006target\030\002 \001(\005" + + "\".\n\020ShieldedVmConfig\022\032\n\022enable_secure_bo" + + "ot\030\001 \001(\010B\323\001\n\036com.google.cloud.aiplatform" + + ".v1B\025MachineResourcesProtoP\001Z>cloud.goog" + + "le.com/go/aiplatform/apiv1/aiplatformpb;" + + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V" + + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:" + + ":Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -144,7 +145,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DedicatedResources_descriptor, new java.lang.String[] { - "MachineSpec", "MinReplicaCount", "MaxReplicaCount", "AutoscalingMetricSpecs", "Spot", + "MachineSpec", + "MinReplicaCount", + "MaxReplicaCount", + "RequiredReplicaCount", + "AutoscalingMetricSpecs", + "Spot", }); internal_static_google_cloud_aiplatform_v1_AutomaticResources_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java index c4a4bf9acff6..3f85fb90eae2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java @@ -43,6 +43,7 @@ private NotebookExecutionJob() { displayName_ = ""; scheduleResourceName_ = ""; jobState_ = 0; + kernelName_ = ""; } @java.lang.Override @@ -2434,6 +2435,1833 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface CustomEnvironmentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + boolean hasPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder getPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + } + /** + * + * + *
+   * Compute configuration to use for an execution job.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class CustomEnvironmentSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + CustomEnvironmentSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomEnvironmentSpec.newBuilder() to construct. + private CustomEnvironmentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomEnvironmentSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomEnvironmentSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + private int bitField0_; + public static final int MACHINE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + + public static final int PERSISTENT_DISK_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.PersistentDiskSpec persistentDiskSpec_; + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + + 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, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getNetworkSpec()); + } + 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, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkSpec()); + } + 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.NotebookExecutionJob.CustomEnvironmentSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) obj; + + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasPersistentDiskSpec() != other.hasPersistentDiskSpec()) return false; + if (hasPersistentDiskSpec()) { + if (!getPersistentDiskSpec().equals(other.getPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) 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 (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasPersistentDiskSpec()) { + hash = (37 * hash) + PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec 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; + } + /** + * + * + *
+     * Compute configuration to use for an execution job.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMachineSpecFieldBuilder(); + getPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.persistentDiskSpec_ = + persistentDiskSpecBuilder_ == null + ? persistentDiskSpec_ + : persistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + 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.NotebookExecutionJob.CustomEnvironmentSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) return this; + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasPersistentDiskSpec()) { + mergePersistentDiskSpec(other.getPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } + 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(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder> + machineSpecBuilder_; + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } else { + return machineSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineSpec_ = value; + } else { + machineSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); + } else { + machineSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); + } else { + machineSpec_ = value; + } + } else { + machineSpecBuilder_.mergeFrom(value); + } + if (machineSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public Builder clearMachineSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMachineSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); + } else { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder> + getMachineSpecFieldBuilder() { + if (machineSpecBuilder_ == null) { + machineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder>( + getMachineSpec(), getParentForChildren(), isClean()); + machineSpec_ = null; + } + return machineSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1.PersistentDiskSpec persistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + persistentDiskSpecBuilder_; + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getPersistentDiskSpec() { + if (persistentDiskSpecBuilder_ == null) { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } else { + return persistentDiskSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistentDiskSpec_ = value; + } else { + persistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder builderForValue) { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpec_ = builderForValue.build(); + } else { + persistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder mergePersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && persistentDiskSpec_ != null + && persistentDiskSpec_ + != com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance()) { + getPersistentDiskSpecBuilder().mergeFrom(value); + } else { + persistentDiskSpec_ = value; + } + } else { + persistentDiskSpecBuilder_.mergeFrom(value); + } + if (persistentDiskSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder clearPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder + getPersistentDiskSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPersistentDiskSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + if (persistentDiskSpecBuilder_ != null) { + return persistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.PersistentDiskSpec persistent_disk_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + getPersistentDiskSpecFieldBuilder() { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder>( + getPersistentDiskSpec(), getParentForChildren(), isClean()); + persistentDiskSpec_ = null; + } + return persistentDiskSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder> + networkSpecBuilder_; + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + public com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } else { + return networkSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkSpec_ = value; + } else { + networkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && networkSpec_ != null + && networkSpec_ != com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance()) { + getNetworkSpecBuilder().mergeFrom(value); + } else { + networkSpec_ = value; + } + } else { + networkSpecBuilder_.mergeFrom(value); + } + if (networkSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + if (networkSpecBuilder_ != null) { + return networkSpecBuilder_.getMessageOrBuilder(); + } else { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder> + getNetworkSpecFieldBuilder() { + if (networkSpecBuilder_ == null) { + networkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder>( + getNetworkSpec(), getParentForChildren(), isClean()); + networkSpec_ = null; + } + return networkSpecBuilder_; + } + + @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.NotebookExecutionJob.CustomEnvironmentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomEnvironmentSpec 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.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WorkbenchRuntimeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration for a Workbench Instances-based environment.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime} + */ + public static final class WorkbenchRuntime extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + WorkbenchRuntimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkbenchRuntime.newBuilder() to construct. + private WorkbenchRuntime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkbenchRuntime() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkbenchRuntime(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.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.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime other = + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) 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.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime 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 a Workbench Instances-based environment.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.class, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.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.aiplatform.v1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime build() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime buildPartial() { + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime result = + new com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime(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.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime other) { + if (other + == com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .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.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + private static final com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime(); + } + + public static com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int notebookSourceCase_ = 0; @@ -2497,6 +4325,7 @@ public enum EnvironmentSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14), + CUSTOM_ENVIRONMENT_SPEC(16), ENVIRONMENTSPEC_NOT_SET(0); private final int value; @@ -2517,6 +4346,8 @@ public static EnvironmentSpecCase forNumber(int value) { switch (value) { case 14: return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME; + case 16: + return CUSTOM_ENVIRONMENT_SPEC; case 0: return ENVIRONMENTSPEC_NOT_SET; default: @@ -2628,6 +4459,52 @@ public ExecutionIdentityCase getExecutionIdentityCase() { return ExecutionIdentityCase.forNumber(executionIdentityCase_); } + private int runtimeEnvironmentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object runtimeEnvironment_; + + public enum RuntimeEnvironmentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WORKBENCH_RUNTIME(23), + RUNTIMEENVIRONMENT_NOT_SET(0); + private final int value; + + private RuntimeEnvironmentCase(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 RuntimeEnvironmentCase valueOf(int value) { + return forNumber(value); + } + + public static RuntimeEnvironmentCase forNumber(int value) { + switch (value) { + case 23: + return WORKBENCH_RUNTIME; + case 0: + return RUNTIMEENVIRONMENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuntimeEnvironmentCase getRuntimeEnvironmentCase() { + return RuntimeEnvironmentCase.forNumber(runtimeEnvironmentCase_); + } + public static final int DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER = 3; /** * @@ -2896,6 +4773,69 @@ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameByte } } + public static final int CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER = 16; + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8; /** * @@ -3109,6 +5049,66 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int WORKBENCH_RUNTIME_FIELD_NUMBER = 23; + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + @java.lang.Override + public boolean hasWorkbenchRuntime() { + return runtimeEnvironmentCase_ == 23; + } + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + getWorkbenchRuntime() { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder() { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -3650,6 +5650,59 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int KERNEL_NAME_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object kernelName_ = ""; + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + @java.lang.Override + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + 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(); + kernelName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 22; private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; /** @@ -3658,7 +5711,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -3675,7 +5729,8 @@ public boolean hasEncryptionSpec() { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -3694,7 +5749,8 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -3764,6 +5820,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentSpecCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + output.writeMessage( + 16, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { output.writeMessage( 17, @@ -3775,9 +5837,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 19); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, kernelName_); + } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(22, getEncryptionSpec()); } + if (runtimeEnvironmentCase_ == 23) { + output.writeMessage( + 23, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_); + } getUnknownFields().writeTo(output); } @@ -3834,6 +5905,13 @@ public int getSerializedSize() { if (environmentSpecCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3854,9 +5932,19 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, labels__); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, kernelName_); + } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getEncryptionSpec()); } + if (runtimeEnvironmentCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3894,6 +5982,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getKernelName().equals(other.getKernelName())) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; @@ -3919,6 +6008,9 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookRuntimeTemplateResourceName() .equals(other.getNotebookRuntimeTemplateResourceName())) return false; break; + case 16: + if (!getCustomEnvironmentSpec().equals(other.getCustomEnvironmentSpec())) return false; + break; case 0: default: } @@ -3941,6 +6033,14 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getRuntimeEnvironmentCase().equals(other.getRuntimeEnvironmentCase())) return false; + switch (runtimeEnvironmentCase_) { + case 23: + if (!getWorkbenchRuntime().equals(other.getWorkbenchRuntime())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3980,6 +6080,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKernelName().hashCode(); if (hasEncryptionSpec()) { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); @@ -4005,6 +6107,10 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode(); break; + case 16: + hash = (37 * hash) + CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomEnvironmentSpec().hashCode(); + break; case 0: default: } @@ -4028,6 +6134,14 @@ public int hashCode() { case 0: default: } + switch (runtimeEnvironmentCase_) { + case 23: + hash = (37 * hash) + WORKBENCH_RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getWorkbenchRuntime().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4211,6 +6325,12 @@ public Builder clear() { if (directNotebookSourceBuilder_ != null) { directNotebookSourceBuilder_.clear(); } + if (customEnvironmentSpecBuilder_ != null) { + customEnvironmentSpecBuilder_.clear(); + } + if (workbenchRuntimeBuilder_ != null) { + workbenchRuntimeBuilder_.clear(); + } name_ = ""; displayName_ = ""; executionTimeout_ = null; @@ -4236,6 +6356,7 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); + kernelName_ = ""; encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -4249,6 +6370,8 @@ public Builder clear() { executionSink_ = null; executionIdentityCase_ = 0; executionIdentity_ = null; + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; return this; } @@ -4286,41 +6409,44 @@ public com.google.cloud.aiplatform.v1.NotebookExecutionJob buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookExecutionJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.executionTimeout_ = executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.scheduleResourceName_ = scheduleResourceName_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.jobState_ = jobState_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.kernelName_ = kernelName_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; @@ -4342,10 +6468,18 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NotebookExecution } result.environmentSpecCase_ = environmentSpecCase_; result.environmentSpec_ = this.environmentSpec_; + if (environmentSpecCase_ == 16 && customEnvironmentSpecBuilder_ != null) { + result.environmentSpec_ = customEnvironmentSpecBuilder_.build(); + } result.executionSinkCase_ = executionSinkCase_; result.executionSink_ = this.executionSink_; result.executionIdentityCase_ = executionIdentityCase_; result.executionIdentity_ = this.executionIdentity_; + result.runtimeEnvironmentCase_ = runtimeEnvironmentCase_; + result.runtimeEnvironment_ = this.runtimeEnvironment_; + if (runtimeEnvironmentCase_ == 23 && workbenchRuntimeBuilder_ != null) { + result.runtimeEnvironment_ = workbenchRuntimeBuilder_.build(); + } } @java.lang.Override @@ -4396,12 +6530,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasExecutionTimeout()) { @@ -4409,7 +6543,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth } if (!other.getScheduleResourceName().isEmpty()) { scheduleResourceName_ = other.scheduleResourceName_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } if (other.jobState_ != 0) { @@ -4425,7 +6559,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; + if (!other.getKernelName().isEmpty()) { + kernelName_ = other.kernelName_; + bitField0_ |= 0x00040000; + onChanged(); + } if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4458,6 +6597,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth onChanged(); break; } + case CUSTOM_ENVIRONMENT_SPEC: + { + mergeCustomEnvironmentSpec(other.getCustomEnvironmentSpec()); + break; + } case ENVIRONMENTSPEC_NOT_SET: { break; @@ -4496,6 +6640,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookExecutionJob oth break; } } + switch (other.getRuntimeEnvironmentCase()) { + case WORKBENCH_RUNTIME: + { + mergeWorkbenchRuntime(other.getWorkbenchRuntime()); + break; + } + case RUNTIMEENVIRONMENT_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4525,13 +6680,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 18 case 26: @@ -4552,13 +6707,13 @@ public Builder mergeFrom( { input.readMessage( getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 42 case 50: { scheduleResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 50 case 66: @@ -4578,25 +6733,25 @@ public Builder mergeFrom( case 80: { jobState_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 80 case 90: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 106 case 114: @@ -4606,6 +6761,13 @@ public Builder mergeFrom( environmentSpec_ = s; break; } // case 114 + case 130: + { + input.readMessage( + getCustomEnvironmentSpecFieldBuilder().getBuilder(), extensionRegistry); + environmentSpecCase_ = 16; + break; + } // case 130 case 138: { input.readMessage( @@ -4629,15 +6791,28 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 154 + case 162: + { + kernelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 162 case 178: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 178 + case 186: + { + input.readMessage( + getWorkbenchRuntimeFieldBuilder().getBuilder(), extensionRegistry); + runtimeEnvironmentCase_ = 23; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4711,6 +6886,20 @@ public Builder clearExecutionIdentity() { return this; } + private int runtimeEnvironmentCase_ = 0; + private java.lang.Object runtimeEnvironment_; + + public RuntimeEnvironmentCase getRuntimeEnvironmentCase() { + return RuntimeEnvironmentCase.forNumber(runtimeEnvironmentCase_); + } + + public Builder clearRuntimeEnvironment() { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -5499,109 +7688,353 @@ public java.lang.String getNotebookRuntimeTemplateResourceName() { if (environmentSpecCase_ == 14) { environmentSpec_ = s; } - return s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for notebookRuntimeTemplateResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (environmentSpecCase_ == 14) { + environmentSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNotebookRuntimeTemplateResourceName() { + if (environmentSpecCase_ == 14) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + customEnvironmentSpecBuilder_; + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } else { + if (environmentSpecCase_ == 16) { + return customEnvironmentSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpec_ = value; + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + builderForValue) { + if (customEnvironmentSpecBuilder_ == null) { + environmentSpec_ = builderForValue.build(); + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(builderForValue.build()); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder mergeCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16 + && environmentSpec_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) { + environmentSpec_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + environmentSpec_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (environmentSpecCase_ == 16) { + customEnvironmentSpecBuilder_.mergeFrom(value); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } } + environmentSpecCase_ = 16; + return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @return The bytes for notebookRuntimeTemplateResourceName. */ - @java.lang.Override - public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { - java.lang.Object ref = ""; - if (environmentSpecCase_ == 14) { - ref = environmentSpec_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (environmentSpecCase_ == 14) { - environmentSpec_ = b; + public Builder clearCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); } - return b; } else { - return (com.google.protobuf.ByteString) ref; + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + } + customEnvironmentSpecBuilder_.clear(); } + return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @param value The notebookRuntimeTemplateResourceName to set. - * @return This builder for chaining. */ - public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - environmentSpecCase_ = 14; - environmentSpec_ = value; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + getCustomEnvironmentSpecBuilder() { + return getCustomEnvironmentSpecFieldBuilder().getBuilder(); } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @return This builder for chaining. */ - public Builder clearNotebookRuntimeTemplateResourceName() { - if (environmentSpecCase_ == 14) { - environmentSpecCase_ = 0; - environmentSpec_ = null; - onChanged(); + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if ((environmentSpecCase_ == 16) && (customEnvironmentSpecBuilder_ != null)) { + return customEnvironmentSpecBuilder_.getMessageOrBuilder(); + } else { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); } - return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @param value The bytes for notebookRuntimeTemplateResourceName to set. - * @return This builder for chaining. */ - public Builder setNotebookRuntimeTemplateResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + getCustomEnvironmentSpecFieldBuilder() { + if (customEnvironmentSpecBuilder_ == null) { + if (!(environmentSpecCase_ == 16)) { + environmentSpec_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + customEnvironmentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_, + getParentForChildren(), + isClean()); + environmentSpec_ = null; } - checkByteStringIsUtf8(value); - environmentSpecCase_ = 14; - environmentSpec_ = value; + environmentSpecCase_ = 16; onChanged(); - return this; + return customEnvironmentSpecBuilder_; } /** @@ -5897,119 +8330,363 @@ public boolean hasServiceAccount() { * * *
-     * The service account to run the execution as.
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 18) { + executionIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 18) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + if (executionIdentityCase_ == 18) { + executionIdentityCase_ = 0; + executionIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder> + workbenchRuntimeBuilder_; + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + @java.lang.Override + public boolean hasWorkbenchRuntime() { + return runtimeEnvironmentCase_ == 23; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + getWorkbenchRuntime() { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } else { + if (runtimeEnvironmentCase_ == 23) { + return workbenchRuntimeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + public Builder setWorkbenchRuntime( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime value) { + if (workbenchRuntimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeEnvironment_ = value; + onChanged(); + } else { + workbenchRuntimeBuilder_.setMessage(value); + } + runtimeEnvironmentCase_ = 23; + return this; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + public Builder setWorkbenchRuntime( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder + builderForValue) { + if (workbenchRuntimeBuilder_ == null) { + runtimeEnvironment_ = builderForValue.build(); + onChanged(); + } else { + workbenchRuntimeBuilder_.setMessage(builderForValue.build()); + } + runtimeEnvironmentCase_ = 23; + return this; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return The serviceAccount. + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = ""; - if (executionIdentityCase_ == 18) { - ref = executionIdentity_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (executionIdentityCase_ == 18) { - executionIdentity_ = s; + public Builder mergeWorkbenchRuntime( + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime value) { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23 + && runtimeEnvironment_ + != com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance()) { + runtimeEnvironment_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.newBuilder( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeEnvironment_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + if (runtimeEnvironmentCase_ == 23) { + workbenchRuntimeBuilder_.mergeFrom(value); + } else { + workbenchRuntimeBuilder_.setMessage(value); + } } + runtimeEnvironmentCase_ = 23; + return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return The bytes for serviceAccount. + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = ""; - if (executionIdentityCase_ == 18) { - ref = executionIdentity_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (executionIdentityCase_ == 18) { - executionIdentity_ = b; + public Builder clearWorkbenchRuntime() { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23) { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + onChanged(); } - return b; } else { - return (com.google.protobuf.ByteString) ref; + if (runtimeEnvironmentCase_ == 23) { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + } + workbenchRuntimeBuilder_.clear(); } + return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - executionIdentityCase_ = 18; - executionIdentity_ = value; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder + getWorkbenchRuntimeBuilder() { + return getWorkbenchRuntimeFieldBuilder().getBuilder(); } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder clearServiceAccount() { - if (executionIdentityCase_ == 18) { - executionIdentityCase_ = 0; - executionIdentity_ = null; - onChanged(); + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder() { + if ((runtimeEnvironmentCase_ == 23) && (workbenchRuntimeBuilder_ != null)) { + return workbenchRuntimeBuilder_.getMessageOrBuilder(); + } else { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); } - return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder> + getWorkbenchRuntimeFieldBuilder() { + if (workbenchRuntimeBuilder_ == null) { + if (!(runtimeEnvironmentCase_ == 23)) { + runtimeEnvironment_ = + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + workbenchRuntimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder>( + (com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_, + getParentForChildren(), + isClean()); + runtimeEnvironment_ = null; } - checkByteStringIsUtf8(value); - executionIdentityCase_ = 18; - executionIdentity_ = value; + runtimeEnvironmentCase_ = 23; onChanged(); - return this; + return workbenchRuntimeBuilder_; } private java.lang.Object name_ = ""; @@ -6077,7 +8754,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6095,7 +8772,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6118,7 +8795,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6188,7 +8865,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6206,7 +8883,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -6229,7 +8906,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6252,7 +8929,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -6292,7 +8969,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { } else { executionTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6311,7 +8988,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF } else { executionTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6326,7 +9003,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && executionTimeout_ != null && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getExecutionTimeoutBuilder().mergeFrom(value); @@ -6337,7 +9014,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { executionTimeoutBuilder_.mergeFrom(value); } if (executionTimeout_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -6352,7 +9029,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration execution_timeout = 5; */ public Builder clearExecutionTimeout() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); executionTimeout_ = null; if (executionTimeoutBuilder_ != null) { executionTimeoutBuilder_.dispose(); @@ -6371,7 +9048,7 @@ public Builder clearExecutionTimeout() { * .google.protobuf.Duration execution_timeout = 5; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } @@ -6493,7 +9170,7 @@ public Builder setScheduleResourceName(java.lang.String value) { throw new NullPointerException(); } scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6514,7 +9191,7 @@ public Builder setScheduleResourceName(java.lang.String value) { */ public Builder clearScheduleResourceName() { scheduleResourceName_ = getDefaultInstance().getScheduleResourceName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -6540,7 +9217,7 @@ public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6579,7 +9256,7 @@ public int getJobStateValue() { */ public Builder setJobStateValue(int value) { jobState_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6620,7 +9297,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; jobState_ = value.getNumber(); onChanged(); return this; @@ -6639,7 +9316,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearJobState() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); jobState_ = 0; onChanged(); return this; @@ -6663,7 +9340,7 @@ public Builder clearJobState() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6705,7 +9382,7 @@ public Builder setStatus(com.google.rpc.Status value) { } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6726,7 +9403,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6743,7 +9420,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00004000) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); @@ -6754,7 +9431,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -6771,7 +9448,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6792,7 +9469,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6859,7 +9536,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -6903,7 +9580,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6924,7 +9601,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6941,7 +9618,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00008000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -6952,7 +9629,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6969,7 +9646,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -6990,7 +9667,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7063,7 +9740,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7109,7 +9786,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7131,7 +9808,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7149,7 +9826,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00010000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -7160,7 +9837,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -7178,7 +9855,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -7200,7 +9877,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7271,7 +9948,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return labels_; } @@ -7388,7 +10065,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7419,7 +10096,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7447,7 +10124,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } /** @@ -7469,7 +10146,118 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; + return this; + } + + private java.lang.Object kernelName_ = ""; + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + public com.google.protobuf.ByteString getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @param value The kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kernelName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return This builder for chaining. + */ + public Builder clearKernelName() { + kernelName_ = getDefaultInstance().getKernelName(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @param value The bytes for kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kernelName_ = value; + bitField0_ |= 0x00040000; + onChanged(); return this; } @@ -7485,7 +10273,8 @@ public Builder putAllLabels(java.util.Map va *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -7493,7 +10282,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -7501,7 +10290,8 @@ public boolean hasEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -7523,7 +10313,8 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -7537,7 +10328,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7547,7 +10338,8 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -7559,7 +10351,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7569,14 +10361,15 @@ public Builder setEncryptionSpec( *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00080000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { @@ -7588,7 +10381,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -7599,13 +10392,14 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00080000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -7620,13 +10414,14 @@ public Builder clearEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -7636,7 +10431,8 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBu *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -7656,7 +10452,8 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java index ecd5ce95d9ee..0b33b11654c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java @@ -198,6 +198,49 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + boolean hasCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder(); + /** * * @@ -312,6 +355,45 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getServiceAccountBytes(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + boolean hasWorkbenchRuntime(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime getWorkbenchRuntime(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * .google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + com.google.cloud.aiplatform.v1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder(); + /** * * @@ -681,13 +763,41 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + java.lang.String getKernelName(); + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + com.google.protobuf.ByteString getKernelNameBytes(); + /** * * *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -701,7 +811,8 @@ java.lang.String getLabelsOrDefault( *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -715,7 +826,8 @@ java.lang.String getLabelsOrDefault( *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 22; @@ -730,4 +842,7 @@ java.lang.String getLabelsOrDefault( com.google.cloud.aiplatform.v1.NotebookExecutionJob.ExecutionIdentityCase getExecutionIdentityCase(); + + com.google.cloud.aiplatform.v1.NotebookExecutionJob.RuntimeEnvironmentCase + getRuntimeEnvironmentCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java index 7c4c8700eb1a..a924380b10f2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,53 +71,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/resource.proto\0320google/cloud/" + "aiplatform/v1/encryption_spec.proto\032*goo" + "gle/cloud/aiplatform/v1/job_state.proto\032" - + "\036google/protobuf/duration.proto\032\037google/" - + "protobuf/timestamp.proto\032\027google/rpc/sta" - + "tus.proto\"\222\014\n\024NotebookExecutionJob\022o\n\032da" - + "taform_repository_source\030\003 \001(\0132I.google." + + "2google/cloud/aiplatform/v1/machine_reso" + + "urces.proto\032-google/cloud/aiplatform/v1/" + + "network_spec.proto\032\036google/protobuf/dura" + + "tion.proto\032\037google/protobuf/timestamp.pr" + + "oto\032\027google/rpc/status.proto\"\203\020\n\024Noteboo" + + "kExecutionJob\022o\n\032dataform_repository_sou" + + "rce\030\003 \001(\0132I.google.cloud.aiplatform.v1.N" + + "otebookExecutionJob.DataformRepositorySo" + + "urceH\000\022a\n\023gcs_notebook_source\030\004 \001(\0132B.go" + + "ogle.cloud.aiplatform.v1.NotebookExecuti" + + "onJob.GcsNotebookSourceH\000\022g\n\026direct_note" + + "book_source\030\021 \001(\0132E.google.cloud.aiplatf" + + "orm.v1.NotebookExecutionJob.DirectNotebo" + + "okSourceH\000\022i\n\'notebook_runtime_template_" + + "resource_name\030\016 \001(\tB6\372A3\n1aiplatform.goo" + + "gleapis.com/NotebookRuntimeTemplateH\001\022i\n" + + "\027custom_environment_spec\030\020 \001(\0132F.google." + "cloud.aiplatform.v1.NotebookExecutionJob" - + ".DataformRepositorySourceH\000\022a\n\023gcs_noteb" - + "ook_source\030\004 \001(\0132B.google.cloud.aiplatfo" - + "rm.v1.NotebookExecutionJob.GcsNotebookSo" - + "urceH\000\022g\n\026direct_notebook_source\030\021 \001(\0132E" - + ".google.cloud.aiplatform.v1.NotebookExec" - + "utionJob.DirectNotebookSourceH\000\022i\n\'noteb" - + "ook_runtime_template_resource_name\030\016 \001(\t" - + "B6\372A3\n1aiplatform.googleapis.com/Noteboo" - + "kRuntimeTemplateH\001\022\030\n\016gcs_output_uri\030\010 \001" - + "(\tH\002\022\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017servic" - + "e_account\030\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014" - + "display_name\030\002 \001(\t\0224\n\021execution_timeout\030" - + "\005 \001(\0132\031.google.protobuf.Duration\022J\n\026sche" - + "dule_resource_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplat" - + "form.googleapis.com/Schedule\022<\n\tjob_stat" - + "e\030\n \001(\0162$.google.cloud.aiplatform.v1.Job" - + "StateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.google.rpc." - + "StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "L\n\006labels\030\023 \003(\0132<.google.cloud.aiplatfor" - + "m.v1.NotebookExecutionJob.LabelsEntry\022C\n" - + "\017encryption_spec\030\026 \001(\0132*.google.cloud.ai" - + "platform.v1.EncryptionSpec\032Y\n\030DataformRe" - + "positorySource\022)\n!dataform_repository_re" - + "source_name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t\0324\n" - + "\021GcsNotebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\ngener" - + "ation\030\002 \001(\t\032\'\n\024DirectNotebookSource\022\017\n\007c" - + "ontent\030\001 \001(\014\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.aiplatform.g" - + "oogleapis.com/NotebookExecutionJob\022Vproj" - + "ects/{project}/locations/{location}/note" - + "bookExecutionJobs/{notebook_execution_jo" - + "b}*\025notebookExecutionJobs2\024notebookExecu" - + "tionJobB\021\n\017notebook_sourceB\022\n\020environmen" - + "t_specB\020\n\016execution_sinkB\024\n\022execution_id" - + "entityB\327\001\n\036com.google.cloud.aiplatform.v" - + "1B\031NotebookExecutionJobProtoP\001Z>cloud.go" - + "ogle.com/go/aiplatform/apiv1/aiplatformp" - + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" - + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" - + "e::Cloud::AIPlatform::V1b\006proto3" + + ".CustomEnvironmentSpecH\001\022\030\n\016gcs_output_u" + + "ri\030\010 \001(\tH\002\022\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017" + + "service_account\030\022 \001(\tH\003\022^\n\021workbench_run" + + "time\030\027 \001(\0132A.google.cloud.aiplatform.v1." + + "NotebookExecutionJob.WorkbenchRuntimeH\004\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t" + + "\0224\n\021execution_timeout\030\005 \001(\0132\031.google.pro" + + "tobuf.Duration\022J\n\026schedule_resource_name" + + "\030\006 \001(\tB*\340A\003\372A$\n\"aiplatform.googleapis.co" + + "m/Schedule\022<\n\tjob_state\030\n \001(\0162$.google.c" + + "loud.aiplatform.v1.JobStateB\003\340A\003\022\'\n\006stat" + + "us\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013cre" + + "ate_time\030\014 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\r \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022L\n\006labels\030\023 \003(\0132<." + + "google.cloud.aiplatform.v1.NotebookExecu" + + "tionJob.LabelsEntry\022\023\n\013kernel_name\030\024 \001(\t" + + "\022C\n\017encryption_spec\030\026 \001(\0132*.google.cloud" + + ".aiplatform.v1.EncryptionSpec\032Y\n\030Datafor" + + "mRepositorySource\022)\n!dataform_repository" + + "_resource_name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t" + + "\0324\n\021GcsNotebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\nge" + + "neration\030\002 \001(\t\032\'\n\024DirectNotebookSource\022\017" + + "\n\007content\030\001 \001(\014\032\343\001\n\025CustomEnvironmentSpe" + + "c\022=\n\014machine_spec\030\001 \001(\0132\'.google.cloud.a" + + "iplatform.v1.MachineSpec\022L\n\024persistent_d" + + "isk_spec\030\002 \001(\0132..google.cloud.aiplatform" + + ".v1.PersistentDiskSpec\022=\n\014network_spec\030\003" + + " \001(\0132\'.google.cloud.aiplatform.v1.Networ" + + "kSpec\032\022\n\020WorkbenchRuntime\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n" + + ".aiplatform.googleapis.com/NotebookExecu" + + "tionJob\022Vprojects/{project}/locations/{l" + + "ocation}/notebookExecutionJobs/{notebook" + + "_execution_job}*\025notebookExecutionJobs2\024" + + "notebookExecutionJobB\021\n\017notebook_sourceB" + + "\022\n\020environment_specB\020\n\016execution_sinkB\024\n" + + "\022execution_identityB\025\n\023runtime_environme" + + "ntB\327\001\n\036com.google.cloud.aiplatform.v1B\031N" + + "otebookExecutionJobProtoP\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( @@ -119,6 +142,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1.NetworkSpecProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -133,9 +158,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", + "CustomEnvironmentSpec", "GcsOutputUri", "ExecutionUser", "ServiceAccount", + "WorkbenchRuntime", "Name", "DisplayName", "ExecutionTimeout", @@ -145,11 +172,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Labels", + "KernelName", "EncryptionSpec", "NotebookSource", "EnvironmentSpec", "ExecutionSink", "ExecutionIdentity", + "RuntimeEnvironment", }); internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_DataformRepositorySource_descriptor = internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor @@ -181,10 +210,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", }); - internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor = internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor .getNestedTypes() .get(3); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor, + new java.lang.String[] { + "MachineSpec", "PersistentDiskSpec", "NetworkSpec", + }); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_WorkbenchRuntime_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(5); internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_NotebookExecutionJob_LabelsEntry_descriptor, @@ -202,6 +249,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1.NetworkSpecProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContexts.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContexts.java new file mode 100644 index 000000000000..476aaa913481 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContexts.java @@ -0,0 +1,2234 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Relevant contexts for one query.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagContexts} + */ +public final class RagContexts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagContexts) + RagContextsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagContexts.newBuilder() to construct. + private RagContexts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagContexts() { + contexts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagContexts(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagContexts.class, + com.google.cloud.aiplatform.v1.RagContexts.Builder.class); + } + + public interface ContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagContexts.Context) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
+     * 
+ * + * string source_uri = 1; + * + * @return The sourceUri. + */ + java.lang.String getSourceUri(); + /** + * + * + *
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
+     * 
+ * + * string source_uri = 1; + * + * @return The bytes for sourceUri. + */ + com.google.protobuf.ByteString getSourceUriBytes(); + + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + java.lang.String getSourceDisplayName(); + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + com.google.protobuf.ByteString getSourceDisplayNameBytes(); + + /** + * + * + *
+     * The text chunk.
+     * 
+ * + * string text = 2; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+     * The text chunk.
+     * 
+ * + * string text = 2; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + double getScore(); + } + /** + * + * + *
+   * A context of the query.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagContexts.Context} + */ + public static final class Context extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagContexts.Context) + ContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use Context.newBuilder() to construct. + private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Context() { + sourceUri_ = ""; + sourceDisplayName_ = ""; + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Context(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagContexts.Context.class, + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceUri_ = ""; + /** + * + * + *
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
+     * 
+ * + * string source_uri = 1; + * + * @return The sourceUri. + */ + @java.lang.Override + public java.lang.String getSourceUri() { + java.lang.Object ref = sourceUri_; + 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(); + sourceUri_ = s; + return s; + } + } + /** + * + * + *
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
+     * 
+ * + * string source_uri = 1; + * + * @return The bytes for sourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceUriBytes() { + java.lang.Object ref = sourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceDisplayName_ = ""; + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + @java.lang.Override + public java.lang.String getSourceDisplayName() { + java.lang.Object ref = sourceDisplayName_; + 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(); + sourceDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceDisplayNameBytes() { + java.lang.Object ref = sourceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+     * The text chunk.
+     * 
+ * + * string text = 2; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + 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(); + text_ = s; + return s; + } + } + /** + * + * + *
+     * The text chunk.
+     * 
+ * + * string text = 2; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + 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(sourceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(6, score_); + } + 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(sourceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + 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.RagContexts.Context)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagContexts.Context other = + (com.google.cloud.aiplatform.v1.RagContexts.Context) obj; + + if (!getSourceUri().equals(other.getSourceUri())) return false; + if (!getSourceDisplayName().equals(other.getSourceDisplayName())) return false; + if (!getText().equals(other.getText())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) 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) + SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getSourceUri().hashCode(); + hash = (37 * hash) + SOURCE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSourceDisplayName().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context 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.RagContexts.Context parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context 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.RagContexts.Context parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context 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.RagContexts.Context parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context 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.RagContexts.Context parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context 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.RagContexts.Context 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.RagContexts.Context 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.RagContexts.Context 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 context of the query.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagContexts.Context} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagContexts.Context) + com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagContexts.Context.class, + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagContexts.Context.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceUri_ = ""; + sourceDisplayName_ = ""; + text_ = ""; + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts.Context getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagContexts.Context.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts.Context build() { + com.google.cloud.aiplatform.v1.RagContexts.Context result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts.Context buildPartial() { + com.google.cloud.aiplatform.v1.RagContexts.Context result = + new com.google.cloud.aiplatform.v1.RagContexts.Context(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagContexts.Context result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceUri_ = sourceUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceDisplayName_ = sourceDisplayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + 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.RagContexts.Context) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagContexts.Context) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagContexts.Context other) { + if (other == com.google.cloud.aiplatform.v1.RagContexts.Context.getDefaultInstance()) + return this; + if (!other.getSourceUri().isEmpty()) { + sourceUri_ = other.sourceUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceDisplayName().isEmpty()) { + sourceDisplayName_ = other.sourceDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + 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: + { + sourceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 42: + { + sourceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 49 + 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 sourceUri_ = ""; + /** + * + * + *
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
+       * 
+ * + * string source_uri = 1; + * + * @return The sourceUri. + */ + public java.lang.String getSourceUri() { + java.lang.Object ref = sourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
+       * 
+ * + * string source_uri = 1; + * + * @return The bytes for sourceUri. + */ + public com.google.protobuf.ByteString getSourceUriBytes() { + java.lang.Object ref = sourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
+       * 
+ * + * string source_uri = 1; + * + * @param value The sourceUri to set. + * @return This builder for chaining. + */ + public Builder setSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
+       * 
+ * + * string source_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceUri() { + sourceUri_ = getDefaultInstance().getSourceUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
+       * 
+ * + * string source_uri = 1; + * + * @param value The bytes for sourceUri to set. + * @return This builder for chaining. + */ + public Builder setSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceDisplayName_ = ""; + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + public java.lang.String getSourceDisplayName() { + java.lang.Object ref = sourceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + public com.google.protobuf.ByteString getSourceDisplayNameBytes() { + java.lang.Object ref = sourceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @param value The sourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSourceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearSourceDisplayName() { + sourceDisplayName_ = getDefaultInstance().getSourceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @param value The bytes for sourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSourceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
+       * The text chunk.
+       * 
+ * + * string text = 2; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The text chunk.
+       * 
+ * + * string text = 2; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The text chunk.
+       * 
+ * + * string text = 2; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The text chunk.
+       * 
+ * + * string text = 2; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * The text chunk.
+       * 
+ * + * string text = 2; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private double score_; + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 0D; + 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.RagContexts.Context) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagContexts.Context) + private static final com.google.cloud.aiplatform.v1.RagContexts.Context DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagContexts.Context(); + } + + public static com.google.cloud.aiplatform.v1.RagContexts.Context getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Context 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.RagContexts.Context getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CONTEXTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contexts_; + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + @java.lang.Override + public java.util.List getContextsList() { + return contexts_; + } + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + @java.lang.Override + public java.util.List + getContextsOrBuilderList() { + return contexts_; + } + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + @java.lang.Override + public int getContextsCount() { + return contexts_.size(); + } + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts.Context getContexts(int index) { + return contexts_.get(index); + } + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder getContextsOrBuilder( + int index) { + return contexts_.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 < contexts_.size(); i++) { + output.writeMessage(1, contexts_.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 < contexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contexts_.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.RagContexts)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagContexts other = + (com.google.cloud.aiplatform.v1.RagContexts) obj; + + if (!getContextsList().equals(other.getContextsList())) 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 (getContextsCount() > 0) { + hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getContextsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagContexts parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts 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.RagContexts 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.RagContexts 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; + } + /** + * + * + *
+   * Relevant contexts for one query.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagContexts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagContexts) + com.google.cloud.aiplatform.v1.RagContextsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagContexts.class, + com.google.cloud.aiplatform.v1.RagContexts.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagContexts.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contextsBuilder_ == null) { + contexts_ = java.util.Collections.emptyList(); + } else { + contexts_ = null; + contextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts build() { + com.google.cloud.aiplatform.v1.RagContexts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts buildPartial() { + com.google.cloud.aiplatform.v1.RagContexts result = + new com.google.cloud.aiplatform.v1.RagContexts(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.RagContexts result) { + if (contextsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contexts_ = java.util.Collections.unmodifiableList(contexts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contexts_ = contexts_; + } else { + result.contexts_ = contextsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagContexts 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.RagContexts) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagContexts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagContexts other) { + if (other == com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()) return this; + if (contextsBuilder_ == null) { + if (!other.contexts_.isEmpty()) { + if (contexts_.isEmpty()) { + contexts_ = other.contexts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContextsIsMutable(); + contexts_.addAll(other.contexts_); + } + onChanged(); + } + } else { + if (!other.contexts_.isEmpty()) { + if (contextsBuilder_.isEmpty()) { + contextsBuilder_.dispose(); + contextsBuilder_ = null; + contexts_ = other.contexts_; + bitField0_ = (bitField0_ & ~0x00000001); + contextsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContextsFieldBuilder() + : null; + } else { + contextsBuilder_.addAllMessages(other.contexts_); + } + } + } + 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.RagContexts.Context m = + input.readMessage( + com.google.cloud.aiplatform.v1.RagContexts.Context.parser(), + extensionRegistry); + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.add(m); + } else { + contextsBuilder_.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 contexts_ = + java.util.Collections.emptyList(); + + private void ensureContextsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contexts_ = + new java.util.ArrayList(contexts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts.Context, + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder, + com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder> + contextsBuilder_; + + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public java.util.List getContextsList() { + if (contextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contexts_); + } else { + return contextsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public int getContextsCount() { + if (contextsBuilder_ == null) { + return contexts_.size(); + } else { + return contextsBuilder_.getCount(); + } + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.Context getContexts(int index) { + if (contextsBuilder_ == null) { + return contexts_.get(index); + } else { + return contextsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder setContexts( + int index, com.google.cloud.aiplatform.v1.RagContexts.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.set(index, value); + onChanged(); + } else { + contextsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder setContexts( + int index, com.google.cloud.aiplatform.v1.RagContexts.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.set(index, builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder addContexts(com.google.cloud.aiplatform.v1.RagContexts.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.add(value); + onChanged(); + } else { + contextsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder addContexts( + int index, com.google.cloud.aiplatform.v1.RagContexts.Context value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextsIsMutable(); + contexts_.add(index, value); + onChanged(); + } else { + contextsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder addContexts( + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.add(builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder addContexts( + int index, com.google.cloud.aiplatform.v1.RagContexts.Context.Builder builderForValue) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.add(index, builderForValue.build()); + onChanged(); + } else { + contextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder addAllContexts( + java.lang.Iterable values) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contexts_); + onChanged(); + } else { + contextsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder clearContexts() { + if (contextsBuilder_ == null) { + contexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contextsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public Builder removeContexts(int index) { + if (contextsBuilder_ == null) { + ensureContextsIsMutable(); + contexts_.remove(index); + onChanged(); + } else { + contextsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.Context.Builder getContextsBuilder( + int index) { + return getContextsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder getContextsOrBuilder( + int index) { + if (contextsBuilder_ == null) { + return contexts_.get(index); + } else { + return contextsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public java.util.List + getContextsOrBuilderList() { + if (contextsBuilder_ != null) { + return contextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contexts_); + } + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.Context.Builder addContextsBuilder() { + return getContextsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.RagContexts.Context.getDefaultInstance()); + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.Context.Builder addContextsBuilder( + int index) { + return getContextsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.RagContexts.Context.getDefaultInstance()); + } + /** + * + * + *
+     * All its contexts.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + public java.util.List + getContextsBuilderList() { + return getContextsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts.Context, + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder, + com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder> + getContextsFieldBuilder() { + if (contextsBuilder_ == null) { + contextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts.Context, + com.google.cloud.aiplatform.v1.RagContexts.Context.Builder, + com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder>( + contexts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contexts_ = null; + } + return contextsBuilder_; + } + + @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.RagContexts) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagContexts) + private static final com.google.cloud.aiplatform.v1.RagContexts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagContexts(); + } + + public static com.google.cloud.aiplatform.v1.RagContexts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagContexts 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.RagContexts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContextsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContextsOrBuilder.java new file mode 100644 index 000000000000..930343ecbe6a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagContextsOrBuilder.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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagContextsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagContexts) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + java.util.List getContextsList(); + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + com.google.cloud.aiplatform.v1.RagContexts.Context getContexts(int index); + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + int getContextsCount(); + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + java.util.List + getContextsOrBuilderList(); + /** + * + * + *
+   * All its contexts.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1; + */ + com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder getContextsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpus.java new file mode 100644 index 000000000000..f6760494f230 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpus.java @@ -0,0 +1,2278 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A RagCorpus is a RagFile container and a project can have multiple
+ * RagCorpora.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagCorpus} + */ +public final class RagCorpus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagCorpus) + RagCorpusOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagCorpus.newBuilder() to construct. + private RagCorpus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagCorpus() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagCorpus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagCorpus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagCorpus.class, + com.google.cloud.aiplatform.v1.RagCorpus.Builder.class); + } + + private int bitField0_; + private int backendConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object backendConfig_; + + public enum BackendConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR_DB_CONFIG(9), + BACKENDCONFIG_NOT_SET(0); + private final int value; + + private BackendConfigCase(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 BackendConfigCase valueOf(int value) { + return forNumber(value); + } + + public static BackendConfigCase forNumber(int value) { + switch (value) { + case 9: + return VECTOR_DB_CONFIG; + case 0: + return BACKENDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BackendConfigCase getBackendConfigCase() { + return BackendConfigCase.forNumber(backendConfigCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the RagCorpus.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the RagCorpus.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 display name of the RagCorpus.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * 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 display name of the RagCorpus.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. The description of the RagCorpus.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The description of the RagCorpus.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.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 = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.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 CORPUS_STATUS_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1.CorpusStatus corpusStatus_; + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the corpusStatus field is set. + */ + @java.lang.Override + public boolean hasCorpusStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The corpusStatus. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatus getCorpusStatus() { + return corpusStatus_ == null + ? com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance() + : corpusStatus_; + } + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder getCorpusStatusOrBuilder() { + return corpusStatus_ == null + ? com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance() + : corpusStatus_; + } + + public static final int VECTOR_DB_CONFIG_FIELD_NUMBER = 9; + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + @java.lang.Override + public boolean hasVectorDbConfig() { + return backendConfigCase_ == 9; + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig getVectorDbConfig() { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder getVectorDbConfigOrBuilder() { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.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 (!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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getCorpusStatus()); + } + if (backendConfigCase_ == 9) { + output.writeMessage(9, (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCorpusStatus()); + } + if (backendConfigCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_); + } + 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.RagCorpus)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagCorpus other = (com.google.cloud.aiplatform.v1.RagCorpus) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasCorpusStatus() != other.hasCorpusStatus()) return false; + if (hasCorpusStatus()) { + if (!getCorpusStatus().equals(other.getCorpusStatus())) return false; + } + if (!getBackendConfigCase().equals(other.getBackendConfigCase())) return false; + switch (backendConfigCase_) { + case 9: + if (!getVectorDbConfig().equals(other.getVectorDbConfig())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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 (hasCorpusStatus()) { + hash = (37 * hash) + CORPUS_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getCorpusStatus().hashCode(); + } + switch (backendConfigCase_) { + case 9: + hash = (37 * hash) + VECTOR_DB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVectorDbConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagCorpus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus 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.RagCorpus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus 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.RagCorpus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus 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.RagCorpus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus 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.RagCorpus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus 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.RagCorpus 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.RagCorpus 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.RagCorpus 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 RagCorpus is a RagFile container and a project can have multiple
+   * RagCorpora.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagCorpus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagCorpus) + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagCorpus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagCorpus.class, + com.google.cloud.aiplatform.v1.RagCorpus.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagCorpus.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(); + getCorpusStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + corpusStatus_ = null; + if (corpusStatusBuilder_ != null) { + corpusStatusBuilder_.dispose(); + corpusStatusBuilder_ = null; + } + if (vectorDbConfigBuilder_ != null) { + vectorDbConfigBuilder_.clear(); + } + backendConfigCase_ = 0; + backendConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus build() { + com.google.cloud.aiplatform.v1.RagCorpus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus buildPartial() { + com.google.cloud.aiplatform.v1.RagCorpus result = + new com.google.cloud.aiplatform.v1.RagCorpus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagCorpus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.corpusStatus_ = + corpusStatusBuilder_ == null ? corpusStatus_ : corpusStatusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagCorpus result) { + result.backendConfigCase_ = backendConfigCase_; + result.backendConfig_ = this.backendConfig_; + if (backendConfigCase_ == 9 && vectorDbConfigBuilder_ != null) { + result.backendConfig_ = vectorDbConfigBuilder_.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.RagCorpus) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagCorpus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagCorpus other) { + if (other == com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasCorpusStatus()) { + mergeCorpusStatus(other.getCorpusStatus()); + } + switch (other.getBackendConfigCase()) { + case VECTOR_DB_CONFIG: + { + mergeVectorDbConfig(other.getVectorDbConfig()); + break; + } + case BACKENDCONFIG_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: + { + input.readMessage(getCorpusStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + input.readMessage(getVectorDbConfigFieldBuilder().getBuilder(), extensionRegistry); + backendConfigCase_ = 9; + break; + } // case 74 + 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 backendConfigCase_ = 0; + private java.lang.Object backendConfig_; + + public BackendConfigCase getBackendConfigCase() { + return BackendConfigCase.forNumber(backendConfigCase_); + } + + public Builder clearBackendConfig() { + backendConfigCase_ = 0; + backendConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the RagCorpus.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the RagCorpus.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the RagCorpus.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. The resource name of the RagCorpus.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the RagCorpus.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the RagCorpus.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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 display name of the RagCorpus.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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 display name of the RagCorpus.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the RagCorpus.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the RagCorpus.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. The description of the RagCorpus.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The description of the RagCorpus.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The description of the RagCorpus.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The description of the RagCorpus.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the RagCorpus.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 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. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Timestamp when this RagCorpus was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.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. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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. Timestamp when this RagCorpus was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1.CorpusStatus corpusStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorpusStatus, + com.google.cloud.aiplatform.v1.CorpusStatus.Builder, + com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder> + corpusStatusBuilder_; + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the corpusStatus field is set. + */ + public boolean hasCorpusStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The corpusStatus. + */ + public com.google.cloud.aiplatform.v1.CorpusStatus getCorpusStatus() { + if (corpusStatusBuilder_ == null) { + return corpusStatus_ == null + ? com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance() + : corpusStatus_; + } else { + return corpusStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCorpusStatus(com.google.cloud.aiplatform.v1.CorpusStatus value) { + if (corpusStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + corpusStatus_ = value; + } else { + corpusStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCorpusStatus( + com.google.cloud.aiplatform.v1.CorpusStatus.Builder builderForValue) { + if (corpusStatusBuilder_ == null) { + corpusStatus_ = builderForValue.build(); + } else { + corpusStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCorpusStatus(com.google.cloud.aiplatform.v1.CorpusStatus value) { + if (corpusStatusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && corpusStatus_ != null + && corpusStatus_ != com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance()) { + getCorpusStatusBuilder().mergeFrom(value); + } else { + corpusStatus_ = value; + } + } else { + corpusStatusBuilder_.mergeFrom(value); + } + if (corpusStatus_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCorpusStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + corpusStatus_ = null; + if (corpusStatusBuilder_ != null) { + corpusStatusBuilder_.dispose(); + corpusStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.CorpusStatus.Builder getCorpusStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCorpusStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder getCorpusStatusOrBuilder() { + if (corpusStatusBuilder_ != null) { + return corpusStatusBuilder_.getMessageOrBuilder(); + } else { + return corpusStatus_ == null + ? com.google.cloud.aiplatform.v1.CorpusStatus.getDefaultInstance() + : corpusStatus_; + } + } + /** + * + * + *
+     * Output only. RagCorpus state.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorpusStatus, + com.google.cloud.aiplatform.v1.CorpusStatus.Builder, + com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder> + getCorpusStatusFieldBuilder() { + if (corpusStatusBuilder_ == null) { + corpusStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CorpusStatus, + com.google.cloud.aiplatform.v1.CorpusStatus.Builder, + com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder>( + getCorpusStatus(), getParentForChildren(), isClean()); + corpusStatus_ = null; + } + return corpusStatusBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder> + vectorDbConfigBuilder_; + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + @java.lang.Override + public boolean hasVectorDbConfig() { + return backendConfigCase_ == 9; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig getVectorDbConfig() { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } else { + if (backendConfigCase_ == 9) { + return vectorDbConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVectorDbConfig(com.google.cloud.aiplatform.v1.RagVectorDbConfig value) { + if (vectorDbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendConfig_ = value; + onChanged(); + } else { + vectorDbConfigBuilder_.setMessage(value); + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVectorDbConfig( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder builderForValue) { + if (vectorDbConfigBuilder_ == null) { + backendConfig_ = builderForValue.build(); + onChanged(); + } else { + vectorDbConfigBuilder_.setMessage(builderForValue.build()); + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeVectorDbConfig(com.google.cloud.aiplatform.v1.RagVectorDbConfig value) { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9 + && backendConfig_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance()) { + backendConfig_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + backendConfig_ = value; + } + onChanged(); + } else { + if (backendConfigCase_ == 9) { + vectorDbConfigBuilder_.mergeFrom(value); + } else { + vectorDbConfigBuilder_.setMessage(value); + } + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearVectorDbConfig() { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9) { + backendConfigCase_ = 0; + backendConfig_ = null; + onChanged(); + } + } else { + if (backendConfigCase_ == 9) { + backendConfigCase_ = 0; + backendConfig_ = null; + } + vectorDbConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder getVectorDbConfigBuilder() { + return getVectorDbConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder getVectorDbConfigOrBuilder() { + if ((backendConfigCase_ == 9) && (vectorDbConfigBuilder_ != null)) { + return vectorDbConfigBuilder_.getMessageOrBuilder(); + } else { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder> + getVectorDbConfigFieldBuilder() { + if (vectorDbConfigBuilder_ == null) { + if (!(backendConfigCase_ == 9)) { + backendConfig_ = com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } + vectorDbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig) backendConfig_, + getParentForChildren(), + isClean()); + backendConfig_ = null; + } + backendConfigCase_ = 9; + onChanged(); + return vectorDbConfigBuilder_; + } + + @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.RagCorpus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagCorpus) + private static final com.google.cloud.aiplatform.v1.RagCorpus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagCorpus(); + } + + public static com.google.cloud.aiplatform.v1.RagCorpus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagCorpus 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.RagCorpus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java new file mode 100644 index 000000000000..b4de9d2207c4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.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.aiplatform.v1; + +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 RagCorpusName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RAG_CORPUS = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/ragCorpora/{rag_corpus}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String ragCorpus; + + @Deprecated + protected RagCorpusName() { + project = null; + location = null; + ragCorpus = null; + } + + private RagCorpusName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + ragCorpus = Preconditions.checkNotNull(builder.getRagCorpus()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRagCorpus() { + return ragCorpus; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RagCorpusName of(String project, String location, String ragCorpus) { + return newBuilder().setProject(project).setLocation(location).setRagCorpus(ragCorpus).build(); + } + + public static String format(String project, String location, String ragCorpus) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRagCorpus(ragCorpus) + .build() + .toString(); + } + + public static RagCorpusName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RAG_CORPUS.validatedMatch( + formattedString, "RagCorpusName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("rag_corpus")); + } + + 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 (RagCorpusName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RAG_CORPUS.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 (ragCorpus != null) { + fieldMapBuilder.put("rag_corpus", ragCorpus); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RAG_CORPUS.instantiate( + "project", project, "location", location, "rag_corpus", ragCorpus); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RagCorpusName that = ((RagCorpusName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.ragCorpus, that.ragCorpus); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(ragCorpus); + return h; + } + + /** Builder for projects/{project}/locations/{location}/ragCorpora/{rag_corpus}. */ + public static class Builder { + private String project; + private String location; + private String ragCorpus; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRagCorpus() { + return ragCorpus; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRagCorpus(String ragCorpus) { + this.ragCorpus = ragCorpus; + return this; + } + + private Builder(RagCorpusName ragCorpusName) { + this.project = ragCorpusName.project; + this.location = ragCorpusName.location; + this.ragCorpus = ragCorpusName.ragCorpus; + } + + public RagCorpusName build() { + return new RagCorpusName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusOrBuilder.java new file mode 100644 index 000000000000..4c0446954582 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusOrBuilder.java @@ -0,0 +1,265 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagCorpusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagCorpus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the RagCorpus.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the RagCorpus.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the RagCorpus.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the RagCorpus.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The description of the RagCorpus.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. The description of the RagCorpus.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagCorpus was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the corpusStatus field is set. + */ + boolean hasCorpusStatus(); + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The corpusStatus. + */ + com.google.cloud.aiplatform.v1.CorpusStatus getCorpusStatus(); + /** + * + * + *
+   * Output only. RagCorpus state.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CorpusStatus corpus_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.CorpusStatusOrBuilder getCorpusStatusOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + boolean hasVectorDbConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig getVectorDbConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder getVectorDbConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.RagCorpus.BackendConfigCase getBackendConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfig.java new file mode 100644 index 000000000000..d7f2cb365700 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfig.java @@ -0,0 +1,2122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Config for the embedding model to use for RAG.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagEmbeddingModelConfig} + */ +public final class RagEmbeddingModelConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagEmbeddingModelConfig) + RagEmbeddingModelConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagEmbeddingModelConfig.newBuilder() to construct. + private RagEmbeddingModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagEmbeddingModelConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagEmbeddingModelConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.class, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder.class); + } + + public interface VertexPredictionEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The endpoint resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+     * or
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+     * Required. The endpoint resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+     * or
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+     * Output only. The resource name of the model that is deployed on the
+     * endpoint. Present only when the endpoint is not a publisher model.
+     * Pattern:
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+     * Output only. The resource name of the model that is deployed on the
+     * endpoint. Present only when the endpoint is not a publisher model.
+     * Pattern:
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+     * Output only. Version ID of the model that is deployed on the endpoint.
+     * Present only when the endpoint is not a publisher model.
+     * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+     * Output only. Version ID of the model that is deployed on the endpoint.
+     * Present only when the endpoint is not a publisher model.
+     * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); + } + /** + * + * + *
+   * Config representing a model hosted on Vertex Prediction Endpoint.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint} + */ + public static final class VertexPredictionEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + VertexPredictionEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexPredictionEndpoint.newBuilder() to construct. + private VertexPredictionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexPredictionEndpoint() { + endpoint_ = ""; + model_ = ""; + modelVersionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexPredictionEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.class, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .Builder.class); + } + + public static final int ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * Required. The endpoint resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+     * or
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The endpoint resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+     * or
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
+     * Output only. The resource name of the model that is deployed on the
+     * endpoint. Present only when the endpoint is not a publisher model.
+     * Pattern:
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The resource name of the model that is deployed on the
+     * endpoint. Present only when the endpoint is not a publisher model.
+     * Pattern:
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. Version ID of the model that is deployed on the endpoint.
+     * Present only when the endpoint is not a publisher model.
+     * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Version ID of the model that is deployed on the endpoint.
+     * Present only when the endpoint is not a publisher model.
+     * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelVersionId_); + } + 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(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelVersionId_); + } + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint other = + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) obj; + + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) 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) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + 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.RagEmbeddingModelConfig.VertexPredictionEndpoint 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; + } + /** + * + * + *
+     * Config representing a model hosted on Vertex Prediction Endpoint.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .class, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = ""; + model_ = ""; + modelVersionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + build() { + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + buildPartial() { + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint result = + new com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelVersionId_ = modelVersionId_; + } + } + + @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.RagEmbeddingModelConfig.VertexPredictionEndpoint) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint other) { + if (other + == com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance()) return this; + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + 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: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + modelVersionId_ = 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 endpoint_ = ""; + /** + * + * + *
+       * Required. The endpoint resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+       * or
+       * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+       * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The endpoint resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+       * or
+       * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+       * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The endpoint resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+       * or
+       * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+       * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The endpoint resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+       * or
+       * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+       * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The endpoint resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
+       * or
+       * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+       * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+       * Output only. The resource name of the model that is deployed on the
+       * endpoint. Present only when the endpoint is not a publisher model.
+       * Pattern:
+       * `projects/{project}/locations/{location}/models/{model}`
+       * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The resource name of the model that is deployed on the
+       * endpoint. Present only when the endpoint is not a publisher model.
+       * Pattern:
+       * `projects/{project}/locations/{location}/models/{model}`
+       * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The resource name of the model that is deployed on the
+       * endpoint. Present only when the endpoint is not a publisher model.
+       * Pattern:
+       * `projects/{project}/locations/{location}/models/{model}`
+       * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The resource name of the model that is deployed on the
+       * endpoint. Present only when the endpoint is not a publisher model.
+       * Pattern:
+       * `projects/{project}/locations/{location}/models/{model}`
+       * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The resource name of the model that is deployed on the
+       * endpoint. Present only when the endpoint is not a publisher model.
+       * Pattern:
+       * `projects/{project}/locations/{location}/models/{model}`
+       * 
+ * + * + * string model = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+       * Output only. Version ID of the model that is deployed on the endpoint.
+       * Present only when the endpoint is not a publisher model.
+       * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Version ID of the model that is deployed on the endpoint.
+       * Present only when the endpoint is not a publisher model.
+       * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Version ID of the model that is deployed on the endpoint.
+       * Present only when the endpoint is not a publisher model.
+       * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Version ID of the model that is deployed on the endpoint.
+       * Present only when the endpoint is not a publisher model.
+       * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Version ID of the model that is deployed on the endpoint.
+       * Present only when the endpoint is not a publisher model.
+       * 
+ * + * string model_version_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersionId_ = 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.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + private static final com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig + .VertexPredictionEndpoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint(); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexPredictionEndpoint 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.RagEmbeddingModelConfig.VertexPredictionEndpoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int modelConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object modelConfig_; + + public enum ModelConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VERTEX_PREDICTION_ENDPOINT(1), + MODELCONFIG_NOT_SET(0); + private final int value; + + private ModelConfigCase(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 ModelConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ModelConfigCase forNumber(int value) { + switch (value) { + case 1: + return VERTEX_PREDICTION_ENDPOINT; + case 0: + return MODELCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModelConfigCase getModelConfigCase() { + return ModelConfigCase.forNumber(modelConfigCase_); + } + + public static final int VERTEX_PREDICTION_ENDPOINT_FIELD_NUMBER = 1; + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return Whether the vertexPredictionEndpoint field is set. + */ + @java.lang.Override + public boolean hasVertexPredictionEndpoint() { + return modelConfigCase_ == 1; + } + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return The vertexPredictionEndpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + getVertexPredictionEndpoint() { + if (modelConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_; + } + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder + getVertexPredictionEndpointOrBuilder() { + if (modelConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_; + } + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .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 (modelConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modelConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_); + } + 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.RagEmbeddingModelConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig other = + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig) obj; + + if (!getModelConfigCase().equals(other.getModelConfigCase())) return false; + switch (modelConfigCase_) { + case 1: + if (!getVertexPredictionEndpoint().equals(other.getVertexPredictionEndpoint())) + 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 (modelConfigCase_) { + case 1: + hash = (37 * hash) + VERTEX_PREDICTION_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getVertexPredictionEndpoint().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig 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.RagEmbeddingModelConfig 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; + } + /** + * + * + *
+   * Config for the embedding model to use for RAG.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagEmbeddingModelConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagEmbeddingModelConfig) + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.class, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vertexPredictionEndpointBuilder_ != null) { + vertexPredictionEndpointBuilder_.clear(); + } + modelConfigCase_ = 0; + modelConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig build() { + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig buildPartial() { + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig result = + new com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig result) { + result.modelConfigCase_ = modelConfigCase_; + result.modelConfig_ = this.modelConfig_; + if (modelConfigCase_ == 1 && vertexPredictionEndpointBuilder_ != null) { + result.modelConfig_ = vertexPredictionEndpointBuilder_.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.RagEmbeddingModelConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig other) { + if (other == com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance()) + return this; + switch (other.getModelConfigCase()) { + case VERTEX_PREDICTION_ENDPOINT: + { + mergeVertexPredictionEndpoint(other.getVertexPredictionEndpoint()); + break; + } + case MODELCONFIG_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( + getVertexPredictionEndpointFieldBuilder().getBuilder(), extensionRegistry); + modelConfigCase_ = 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 modelConfigCase_ = 0; + private java.lang.Object modelConfig_; + + public ModelConfigCase getModelConfigCase() { + return ModelConfigCase.forNumber(modelConfigCase_); + } + + public Builder clearModelConfig() { + modelConfigCase_ = 0; + modelConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig + .VertexPredictionEndpointOrBuilder> + vertexPredictionEndpointBuilder_; + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return Whether the vertexPredictionEndpoint field is set. + */ + @java.lang.Override + public boolean hasVertexPredictionEndpoint() { + return modelConfigCase_ == 1; + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return The vertexPredictionEndpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + getVertexPredictionEndpoint() { + if (vertexPredictionEndpointBuilder_ == null) { + if (modelConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_; + } + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } else { + if (modelConfigCase_ == 1) { + return vertexPredictionEndpointBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + public Builder setVertexPredictionEndpoint( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint value) { + if (vertexPredictionEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelConfig_ = value; + onChanged(); + } else { + vertexPredictionEndpointBuilder_.setMessage(value); + } + modelConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + public Builder setVertexPredictionEndpoint( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder + builderForValue) { + if (vertexPredictionEndpointBuilder_ == null) { + modelConfig_ = builderForValue.build(); + onChanged(); + } else { + vertexPredictionEndpointBuilder_.setMessage(builderForValue.build()); + } + modelConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + public Builder mergeVertexPredictionEndpoint( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint value) { + if (vertexPredictionEndpointBuilder_ == null) { + if (modelConfigCase_ == 1 + && modelConfig_ + != com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance()) { + modelConfig_ = + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .newBuilder( + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig + .VertexPredictionEndpoint) + modelConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + modelConfig_ = value; + } + onChanged(); + } else { + if (modelConfigCase_ == 1) { + vertexPredictionEndpointBuilder_.mergeFrom(value); + } else { + vertexPredictionEndpointBuilder_.setMessage(value); + } + } + modelConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + public Builder clearVertexPredictionEndpoint() { + if (vertexPredictionEndpointBuilder_ == null) { + if (modelConfigCase_ == 1) { + modelConfigCase_ = 0; + modelConfig_ = null; + onChanged(); + } + } else { + if (modelConfigCase_ == 1) { + modelConfigCase_ = 0; + modelConfig_ = null; + } + vertexPredictionEndpointBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder + getVertexPredictionEndpointBuilder() { + return getVertexPredictionEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder + getVertexPredictionEndpointOrBuilder() { + if ((modelConfigCase_ == 1) && (vertexPredictionEndpointBuilder_ != null)) { + return vertexPredictionEndpointBuilder_.getMessageOrBuilder(); + } else { + if (modelConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_; + } + return com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Vertex AI Prediction Endpoint that either refers to a publisher model
+     * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+     * Endpoints hosting non-1P fine-tuned text embedding models are
+     * currently not supported.
+     * This is used for dense vector search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig + .VertexPredictionEndpointOrBuilder> + getVertexPredictionEndpointFieldBuilder() { + if (vertexPredictionEndpointBuilder_ == null) { + if (!(modelConfigCase_ == 1)) { + modelConfig_ = + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .getDefaultInstance(); + } + vertexPredictionEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + .Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig + .VertexPredictionEndpointOrBuilder>( + (com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint) + modelConfig_, + getParentForChildren(), + isClean()); + modelConfig_ = null; + } + modelConfigCase_ = 1; + onChanged(); + return vertexPredictionEndpointBuilder_; + } + + @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.RagEmbeddingModelConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagEmbeddingModelConfig) + private static final com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig(); + } + + public static com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagEmbeddingModelConfig 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.RagEmbeddingModelConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfigOrBuilder.java new file mode 100644 index 000000000000..4a15f1eaa42f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEmbeddingModelConfigOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagEmbeddingModelConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagEmbeddingModelConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return Whether the vertexPredictionEndpoint field is set. + */ + boolean hasVertexPredictionEndpoint(); + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + * + * @return The vertexPredictionEndpoint. + */ + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint + getVertexPredictionEndpoint(); + /** + * + * + *
+   * The Vertex AI Prediction Endpoint that either refers to a publisher model
+   * or an endpoint that is hosting a 1P fine-tuned text embedding model.
+   * Endpoints hosting non-1P fine-tuned text embedding models are
+   * currently not supported.
+   * This is used for dense vector search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1; + * + */ + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder + getVertexPredictionEndpointOrBuilder(); + + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.ModelConfigCase getModelConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFile.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFile.java new file mode 100644 index 000000000000..d89cf0216709 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFile.java @@ -0,0 +1,3844 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A RagFile contains user data for chunking, embedding and indexing.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFile} + */ +public final class RagFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagFile) + RagFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagFile.newBuilder() to construct. + private RagFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagFile() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFile.class, + com.google.cloud.aiplatform.v1.RagFile.Builder.class); + } + + private int bitField0_; + private int ragFileSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object ragFileSource_; + + public enum RagFileSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(8), + GOOGLE_DRIVE_SOURCE(9), + DIRECT_UPLOAD_SOURCE(10), + SLACK_SOURCE(11), + JIRA_SOURCE(12), + SHARE_POINT_SOURCES(14), + RAGFILESOURCE_NOT_SET(0); + private final int value; + + private RagFileSourceCase(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 RagFileSourceCase valueOf(int value) { + return forNumber(value); + } + + public static RagFileSourceCase forNumber(int value) { + switch (value) { + case 8: + return GCS_SOURCE; + case 9: + return GOOGLE_DRIVE_SOURCE; + case 10: + return DIRECT_UPLOAD_SOURCE; + case 11: + return SLACK_SOURCE; + case 12: + return JIRA_SOURCE; + case 14: + return SHARE_POINT_SOURCES; + case 0: + return RAGFILESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RagFileSourceCase getRagFileSourceCase() { + return RagFileSourceCase.forNumber(ragFileSourceCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 8; + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return ragFileSourceCase_ == 8; + } + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { + if (ragFileSourceCase_ == 8) { + return (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (ragFileSourceCase_ == 8) { + return (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + + public static final int GOOGLE_DRIVE_SOURCE_FIELD_NUMBER = 9; + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDriveSource field is set. + */ + @java.lang.Override + public boolean hasGoogleDriveSource() { + return ragFileSourceCase_ == 9; + } + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDriveSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource() { + if (ragFileSourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder() { + if (ragFileSourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + + public static final int DIRECT_UPLOAD_SOURCE_FIELD_NUMBER = 10; + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the directUploadSource field is set. + */ + @java.lang.Override + public boolean hasDirectUploadSource() { + return ragFileSourceCase_ == 10; + } + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The directUploadSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSource getDirectUploadSource() { + if (ragFileSourceCase_ == 10) { + return (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder + getDirectUploadSourceOrBuilder() { + if (ragFileSourceCase_ == 10) { + return (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + + public static final int SLACK_SOURCE_FIELD_NUMBER = 11; + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return ragFileSourceCase_ == 11; + } + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource getSlackSource() { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + + public static final int JIRA_SOURCE_FIELD_NUMBER = 12; + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return ragFileSourceCase_ == 12; + } + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource getJiraSource() { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + + public static final int SHARE_POINT_SOURCES_FIELD_NUMBER = 14; + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return Whether the sharePointSources field is set. + */ + @java.lang.Override + public boolean hasSharePointSources() { + return ragFileSourceCase_ == 14; + } + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return The sharePointSources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources() { + if (ragFileSourceCase_ == 14) { + return (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder getSharePointSourcesOrBuilder() { + if (ragFileSourceCase_ == 14) { + return (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the RagFile.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the RagFile.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 display name of the RagFile.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * 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 display name of the RagFile.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. The description of the RagFile.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The description of the RagFile.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.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 FILE_STATUS_FIELD_NUMBER = 13; + private com.google.cloud.aiplatform.v1.FileStatus fileStatus_; + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the fileStatus field is set. + */ + @java.lang.Override + public boolean hasFileStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The fileStatus. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatus getFileStatus() { + return fileStatus_ == null + ? com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance() + : fileStatus_; + } + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FileStatusOrBuilder getFileStatusOrBuilder() { + return fileStatus_ == null + ? com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance() + : fileStatus_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (ragFileSourceCase_ == 8) { + output.writeMessage(8, (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_); + } + if (ragFileSourceCase_ == 9) { + output.writeMessage(9, (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_); + } + if (ragFileSourceCase_ == 10) { + output.writeMessage(10, (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_); + } + if (ragFileSourceCase_ == 11) { + output.writeMessage(11, (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_); + } + if (ragFileSourceCase_ == 12) { + output.writeMessage(12, (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getFileStatus()); + } + if (ragFileSourceCase_ == 14) { + output.writeMessage(14, (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (ragFileSourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_); + } + if (ragFileSourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_); + } + if (ragFileSourceCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_); + } + if (ragFileSourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_); + } + if (ragFileSourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFileStatus()); + } + if (ragFileSourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_); + } + 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.RagFile)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagFile other = (com.google.cloud.aiplatform.v1.RagFile) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (hasFileStatus() != other.hasFileStatus()) return false; + if (hasFileStatus()) { + if (!getFileStatus().equals(other.getFileStatus())) return false; + } + if (!getRagFileSourceCase().equals(other.getRagFileSourceCase())) return false; + switch (ragFileSourceCase_) { + case 8: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 9: + if (!getGoogleDriveSource().equals(other.getGoogleDriveSource())) return false; + break; + case 10: + if (!getDirectUploadSource().equals(other.getDirectUploadSource())) return false; + break; + case 11: + if (!getSlackSource().equals(other.getSlackSource())) return false; + break; + case 12: + if (!getJiraSource().equals(other.getJiraSource())) return false; + break; + case 14: + if (!getSharePointSources().equals(other.getSharePointSources())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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 (hasFileStatus()) { + hash = (37 * hash) + FILE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getFileStatus().hashCode(); + } + switch (ragFileSourceCase_) { + case 8: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 9: + hash = (37 * hash) + GOOGLE_DRIVE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGoogleDriveSource().hashCode(); + break; + case 10: + hash = (37 * hash) + DIRECT_UPLOAD_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDirectUploadSource().hashCode(); + break; + case 11: + hash = (37 * hash) + SLACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSlackSource().hashCode(); + break; + case 12: + hash = (37 * hash) + JIRA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getJiraSource().hashCode(); + break; + case 14: + hash = (37 * hash) + SHARE_POINT_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSharePointSources().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagFile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFile 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.RagFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFile 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.RagFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFile 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.RagFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFile 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.RagFile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFile 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.RagFile 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.RagFile 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.RagFile 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 RagFile contains user data for chunking, embedding and indexing.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagFile) + com.google.cloud.aiplatform.v1.RagFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFile.class, + com.google.cloud.aiplatform.v1.RagFile.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagFile.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(); + getFileStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (googleDriveSourceBuilder_ != null) { + googleDriveSourceBuilder_.clear(); + } + if (directUploadSourceBuilder_ != null) { + directUploadSourceBuilder_.clear(); + } + if (slackSourceBuilder_ != null) { + slackSourceBuilder_.clear(); + } + if (jiraSourceBuilder_ != null) { + jiraSourceBuilder_.clear(); + } + if (sharePointSourcesBuilder_ != null) { + sharePointSourcesBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + fileStatus_ = null; + if (fileStatusBuilder_ != null) { + fileStatusBuilder_.dispose(); + fileStatusBuilder_ = null; + } + ragFileSourceCase_ = 0; + ragFileSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile build() { + com.google.cloud.aiplatform.v1.RagFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile buildPartial() { + com.google.cloud.aiplatform.v1.RagFile result = + new com.google.cloud.aiplatform.v1.RagFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.fileStatus_ = fileStatusBuilder_ == null ? fileStatus_ : fileStatusBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagFile result) { + result.ragFileSourceCase_ = ragFileSourceCase_; + result.ragFileSource_ = this.ragFileSource_; + if (ragFileSourceCase_ == 8 && gcsSourceBuilder_ != null) { + result.ragFileSource_ = gcsSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 9 && googleDriveSourceBuilder_ != null) { + result.ragFileSource_ = googleDriveSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 10 && directUploadSourceBuilder_ != null) { + result.ragFileSource_ = directUploadSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 11 && slackSourceBuilder_ != null) { + result.ragFileSource_ = slackSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 12 && jiraSourceBuilder_ != null) { + result.ragFileSource_ = jiraSourceBuilder_.build(); + } + if (ragFileSourceCase_ == 14 && sharePointSourcesBuilder_ != null) { + result.ragFileSource_ = sharePointSourcesBuilder_.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.RagFile) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagFile other) { + if (other == com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasFileStatus()) { + mergeFileStatus(other.getFileStatus()); + } + switch (other.getRagFileSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case GOOGLE_DRIVE_SOURCE: + { + mergeGoogleDriveSource(other.getGoogleDriveSource()); + break; + } + case DIRECT_UPLOAD_SOURCE: + { + mergeDirectUploadSource(other.getDirectUploadSource()); + break; + } + case SLACK_SOURCE: + { + mergeSlackSource(other.getSlackSource()); + break; + } + case JIRA_SOURCE: + { + mergeJiraSource(other.getJiraSource()); + break; + } + case SHARE_POINT_SOURCES: + { + mergeSharePointSources(other.getSharePointSources()); + break; + } + case RAGFILESOURCE_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_ |= 0x00000040; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 26 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 58 + case 66: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getGoogleDriveSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getDirectUploadSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage(getSlackSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage(getJiraSourceFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage(getFileStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: + { + input.readMessage( + getSharePointSourcesFieldBuilder().getBuilder(), extensionRegistry); + ragFileSourceCase_ = 14; + break; + } // case 114 + 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 ragFileSourceCase_ = 0; + private java.lang.Object ragFileSource_; + + public RagFileSourceCase getRagFileSourceCase() { + return RagFileSourceCase.forNumber(ragFileSourceCase_); + } + + public Builder clearRagFileSource() { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return ragFileSourceCase_ == 8; + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (ragFileSourceCase_ == 8) { + return (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 8) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 8; + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 8; + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (ragFileSourceCase_ == 8 + && ragFileSource_ != com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.GcsSource.newBuilder( + (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 8) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 8; + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (ragFileSourceCase_ == 8) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 8) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((ragFileSourceCase_ == 8) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 8) { + return (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Google Cloud Storage location of the RagFile.
+     * It does not support wildcards in the Cloud Storage uri for now.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 8)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GcsSource, + com.google.cloud.aiplatform.v1.GcsSource.Builder, + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.GcsSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 8; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder> + googleDriveSourceBuilder_; + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDriveSource field is set. + */ + @java.lang.Override + public boolean hasGoogleDriveSource() { + return ragFileSourceCase_ == 9; + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDriveSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource() { + if (googleDriveSourceBuilder_ == null) { + if (ragFileSourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 9) { + return googleDriveSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGoogleDriveSource(com.google.cloud.aiplatform.v1.GoogleDriveSource value) { + if (googleDriveSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + googleDriveSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 9; + return this; + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGoogleDriveSource( + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder builderForValue) { + if (googleDriveSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + googleDriveSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 9; + return this; + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGoogleDriveSource(com.google.cloud.aiplatform.v1.GoogleDriveSource value) { + if (googleDriveSourceBuilder_ == null) { + if (ragFileSourceCase_ == 9 + && ragFileSource_ + != com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.GoogleDriveSource.newBuilder( + (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 9) { + googleDriveSourceBuilder_.mergeFrom(value); + } else { + googleDriveSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 9; + return this; + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGoogleDriveSource() { + if (googleDriveSourceBuilder_ == null) { + if (ragFileSourceCase_ == 9) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 9) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + googleDriveSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder getGoogleDriveSourceBuilder() { + return getGoogleDriveSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder + getGoogleDriveSourceOrBuilder() { + if ((ragFileSourceCase_ == 9) && (googleDriveSourceBuilder_ != null)) { + return googleDriveSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. Google Drive location. Supports importing individual files
+     * as well as Google Drive folders.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder> + getGoogleDriveSourceFieldBuilder() { + if (googleDriveSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 9)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.GoogleDriveSource.getDefaultInstance(); + } + googleDriveSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleDriveSource, + com.google.cloud.aiplatform.v1.GoogleDriveSource.Builder, + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.GoogleDriveSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 9; + onChanged(); + return googleDriveSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DirectUploadSource, + com.google.cloud.aiplatform.v1.DirectUploadSource.Builder, + com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder> + directUploadSourceBuilder_; + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the directUploadSource field is set. + */ + @java.lang.Override + public boolean hasDirectUploadSource() { + return ragFileSourceCase_ == 10; + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The directUploadSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSource getDirectUploadSource() { + if (directUploadSourceBuilder_ == null) { + if (ragFileSourceCase_ == 10) { + return (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 10) { + return directUploadSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDirectUploadSource(com.google.cloud.aiplatform.v1.DirectUploadSource value) { + if (directUploadSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + directUploadSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 10; + return this; + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDirectUploadSource( + com.google.cloud.aiplatform.v1.DirectUploadSource.Builder builderForValue) { + if (directUploadSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + directUploadSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 10; + return this; + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDirectUploadSource( + com.google.cloud.aiplatform.v1.DirectUploadSource value) { + if (directUploadSourceBuilder_ == null) { + if (ragFileSourceCase_ == 10 + && ragFileSource_ + != com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.DirectUploadSource.newBuilder( + (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 10) { + directUploadSourceBuilder_.mergeFrom(value); + } else { + directUploadSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 10; + return this; + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDirectUploadSource() { + if (directUploadSourceBuilder_ == null) { + if (ragFileSourceCase_ == 10) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 10) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + directUploadSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.DirectUploadSource.Builder + getDirectUploadSourceBuilder() { + return getDirectUploadSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder + getDirectUploadSourceOrBuilder() { + if ((ragFileSourceCase_ == 10) && (directUploadSourceBuilder_ != null)) { + return directUploadSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 10) { + return (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The RagFile is encapsulated and uploaded in the
+     * UploadRagFile request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DirectUploadSource, + com.google.cloud.aiplatform.v1.DirectUploadSource.Builder, + com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder> + getDirectUploadSourceFieldBuilder() { + if (directUploadSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 10)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.DirectUploadSource.getDefaultInstance(); + } + directUploadSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DirectUploadSource, + com.google.cloud.aiplatform.v1.DirectUploadSource.Builder, + com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.DirectUploadSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 10; + onChanged(); + return directUploadSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder> + slackSourceBuilder_; + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + @java.lang.Override + public boolean hasSlackSource() { + return ragFileSourceCase_ == 11; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource getSlackSource() { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 11) { + return slackSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + public Builder setSlackSource(com.google.cloud.aiplatform.v1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + slackSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + public Builder setSlackSource( + com.google.cloud.aiplatform.v1.SlackSource.Builder builderForValue) { + if (slackSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + slackSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + public Builder mergeSlackSource(com.google.cloud.aiplatform.v1.SlackSource value) { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11 + && ragFileSource_ != com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.SlackSource.newBuilder( + (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 11) { + slackSourceBuilder_.mergeFrom(value); + } else { + slackSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 11; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + public Builder clearSlackSource() { + if (slackSourceBuilder_ == null) { + if (ragFileSourceCase_ == 11) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 11) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + slackSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + public com.google.cloud.aiplatform.v1.SlackSource.Builder getSlackSourceBuilder() { + return getSlackSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder() { + if ((ragFileSourceCase_ == 11) && (slackSourceBuilder_ != null)) { + return slackSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 11) { + return (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Slack channel.
+     * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder> + getSlackSourceFieldBuilder() { + if (slackSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 11)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + slackSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource, + com.google.cloud.aiplatform.v1.SlackSource.Builder, + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.SlackSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 11; + onChanged(); + return slackSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder> + jiraSourceBuilder_; + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + @java.lang.Override + public boolean hasJiraSource() { + return ragFileSourceCase_ == 12; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSource getJiraSource() { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 12) { + return jiraSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + public Builder setJiraSource(com.google.cloud.aiplatform.v1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + jiraSourceBuilder_.setMessage(value); + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + public Builder setJiraSource( + com.google.cloud.aiplatform.v1.JiraSource.Builder builderForValue) { + if (jiraSourceBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + jiraSourceBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + public Builder mergeJiraSource(com.google.cloud.aiplatform.v1.JiraSource value) { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12 + && ragFileSource_ != com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.JiraSource.newBuilder( + (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 12) { + jiraSourceBuilder_.mergeFrom(value); + } else { + jiraSourceBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 12; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + public Builder clearJiraSource() { + if (jiraSourceBuilder_ == null) { + if (ragFileSourceCase_ == 12) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 12) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + jiraSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + public com.google.cloud.aiplatform.v1.JiraSource.Builder getJiraSourceBuilder() { + return getJiraSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder() { + if ((ragFileSourceCase_ == 12) && (jiraSourceBuilder_ != null)) { + return jiraSourceBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 12) { + return (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a Jira query.
+     * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder> + getJiraSourceFieldBuilder() { + if (jiraSourceBuilder_ == null) { + if (!(ragFileSourceCase_ == 12)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.JiraSource.getDefaultInstance(); + } + jiraSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.JiraSource, + com.google.cloud.aiplatform.v1.JiraSource.Builder, + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.JiraSource) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 12; + onChanged(); + return jiraSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder> + sharePointSourcesBuilder_; + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return Whether the sharePointSources field is set. + */ + @java.lang.Override + public boolean hasSharePointSources() { + return ragFileSourceCase_ == 14; + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return The sharePointSources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources() { + if (sharePointSourcesBuilder_ == null) { + if (ragFileSourceCase_ == 14) { + return (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } else { + if (ragFileSourceCase_ == 14) { + return sharePointSourcesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + public Builder setSharePointSources(com.google.cloud.aiplatform.v1.SharePointSources value) { + if (sharePointSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileSource_ = value; + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(value); + } + ragFileSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + public Builder setSharePointSources( + com.google.cloud.aiplatform.v1.SharePointSources.Builder builderForValue) { + if (sharePointSourcesBuilder_ == null) { + ragFileSource_ = builderForValue.build(); + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(builderForValue.build()); + } + ragFileSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + public Builder mergeSharePointSources(com.google.cloud.aiplatform.v1.SharePointSources value) { + if (sharePointSourcesBuilder_ == null) { + if (ragFileSourceCase_ == 14 + && ragFileSource_ + != com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance()) { + ragFileSource_ = + com.google.cloud.aiplatform.v1.SharePointSources.newBuilder( + (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_) + .mergeFrom(value) + .buildPartial(); + } else { + ragFileSource_ = value; + } + onChanged(); + } else { + if (ragFileSourceCase_ == 14) { + sharePointSourcesBuilder_.mergeFrom(value); + } else { + sharePointSourcesBuilder_.setMessage(value); + } + } + ragFileSourceCase_ = 14; + return this; + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + public Builder clearSharePointSources() { + if (sharePointSourcesBuilder_ == null) { + if (ragFileSourceCase_ == 14) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + onChanged(); + } + } else { + if (ragFileSourceCase_ == 14) { + ragFileSourceCase_ = 0; + ragFileSource_ = null; + } + sharePointSourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + public com.google.cloud.aiplatform.v1.SharePointSources.Builder getSharePointSourcesBuilder() { + return getSharePointSourcesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder + getSharePointSourcesOrBuilder() { + if ((ragFileSourceCase_ == 14) && (sharePointSourcesBuilder_ != null)) { + return sharePointSourcesBuilder_.getMessageOrBuilder(); + } else { + if (ragFileSourceCase_ == 14) { + return (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_; + } + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile is imported from a SharePoint source.
+     * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder> + getSharePointSourcesFieldBuilder() { + if (sharePointSourcesBuilder_ == null) { + if (!(ragFileSourceCase_ == 14)) { + ragFileSource_ = com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + sharePointSourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources, + com.google.cloud.aiplatform.v1.SharePointSources.Builder, + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder>( + (com.google.cloud.aiplatform.v1.SharePointSources) ragFileSource_, + getParentForChildren(), + isClean()); + ragFileSource_ = null; + } + ragFileSourceCase_ = 14; + onChanged(); + return sharePointSourcesBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the RagFile.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the RagFile.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the RagFile.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the RagFile.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the RagFile.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the RagFile.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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 display name of the RagFile.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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 display name of the RagFile.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the RagFile.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the RagFile.
+     * The name can be up to 128 characters long and can consist of any UTF-8
+     * characters.
+     * 
+ * + * 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_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. The description of the RagFile.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The description of the RagFile.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The description of the RagFile.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the RagFile.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the RagFile.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Timestamp when this RagFile was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.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. Timestamp when this RagFile was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1.FileStatus fileStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FileStatus, + com.google.cloud.aiplatform.v1.FileStatus.Builder, + com.google.cloud.aiplatform.v1.FileStatusOrBuilder> + fileStatusBuilder_; + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the fileStatus field is set. + */ + public boolean hasFileStatus() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The fileStatus. + */ + public com.google.cloud.aiplatform.v1.FileStatus getFileStatus() { + if (fileStatusBuilder_ == null) { + return fileStatus_ == null + ? com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance() + : fileStatus_; + } else { + return fileStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFileStatus(com.google.cloud.aiplatform.v1.FileStatus value) { + if (fileStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileStatus_ = value; + } else { + fileStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFileStatus( + com.google.cloud.aiplatform.v1.FileStatus.Builder builderForValue) { + if (fileStatusBuilder_ == null) { + fileStatus_ = builderForValue.build(); + } else { + fileStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFileStatus(com.google.cloud.aiplatform.v1.FileStatus value) { + if (fileStatusBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && fileStatus_ != null + && fileStatus_ != com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance()) { + getFileStatusBuilder().mergeFrom(value); + } else { + fileStatus_ = value; + } + } else { + fileStatusBuilder_.mergeFrom(value); + } + if (fileStatus_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFileStatus() { + bitField0_ = (bitField0_ & ~0x00000800); + fileStatus_ = null; + if (fileStatusBuilder_ != null) { + fileStatusBuilder_.dispose(); + fileStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.FileStatus.Builder getFileStatusBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getFileStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.FileStatusOrBuilder getFileStatusOrBuilder() { + if (fileStatusBuilder_ != null) { + return fileStatusBuilder_.getMessageOrBuilder(); + } else { + return fileStatus_ == null + ? com.google.cloud.aiplatform.v1.FileStatus.getDefaultInstance() + : fileStatus_; + } + } + /** + * + * + *
+     * Output only. State of the RagFile.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FileStatus, + com.google.cloud.aiplatform.v1.FileStatus.Builder, + com.google.cloud.aiplatform.v1.FileStatusOrBuilder> + getFileStatusFieldBuilder() { + if (fileStatusBuilder_ == null) { + fileStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FileStatus, + com.google.cloud.aiplatform.v1.FileStatus.Builder, + com.google.cloud.aiplatform.v1.FileStatusOrBuilder>( + getFileStatus(), getParentForChildren(), isClean()); + fileStatus_ = null; + } + return fileStatusBuilder_; + } + + @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.RagFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagFile) + private static final com.google.cloud.aiplatform.v1.RagFile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagFile(); + } + + public static com.google.cloud.aiplatform.v1.RagFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagFile 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.RagFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfig.java new file mode 100644 index 000000000000..8afcc42edf00 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfig.java @@ -0,0 +1,1539 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Specifies the size and overlap of chunks for RagFiles.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileChunkingConfig} + */ +public final class RagFileChunkingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagFileChunkingConfig) + RagFileChunkingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagFileChunkingConfig.newBuilder() to construct. + private RagFileChunkingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagFileChunkingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagFileChunkingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.class, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder.class); + } + + public interface FixedLengthChunkingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The size of the chunks.
+     * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + int getChunkSize(); + + /** + * + * + *
+     * The overlap between chunks.
+     * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + int getChunkOverlap(); + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking} + */ + public static final class FixedLengthChunking extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + FixedLengthChunkingOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedLengthChunking.newBuilder() to construct. + private FixedLengthChunking(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FixedLengthChunking() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedLengthChunking(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.class, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder + .class); + } + + public static final int CHUNK_SIZE_FIELD_NUMBER = 1; + private int chunkSize_ = 0; + /** + * + * + *
+     * The size of the chunks.
+     * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + + public static final int CHUNK_OVERLAP_FIELD_NUMBER = 2; + private int chunkOverlap_ = 0; + /** + * + * + *
+     * The overlap between chunks.
+     * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + @java.lang.Override + public int getChunkOverlap() { + return chunkOverlap_; + } + + 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 (chunkOverlap_ != 0) { + output.writeInt32(2, chunkOverlap_); + } + 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 (chunkOverlap_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, chunkOverlap_); + } + 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.RagFileChunkingConfig.FixedLengthChunking)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking other = + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) obj; + + if (getChunkSize() != other.getChunkSize()) return false; + if (getChunkOverlap() != other.getChunkOverlap()) 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) + CHUNK_OVERLAP_FIELD_NUMBER; + hash = (53 * hash) + getChunkOverlap(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking 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 fixed length chunking config.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.class, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.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; + chunkOverlap_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking build() { + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + buildPartial() { + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking result = + new com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunkSize_ = chunkSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.chunkOverlap_ = chunkOverlap_; + } + } + + @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.RagFileChunkingConfig.FixedLengthChunking) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking other) { + if (other + == com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance()) return this; + if (other.getChunkSize() != 0) { + setChunkSize(other.getChunkSize()); + } + if (other.getChunkOverlap() != 0) { + setChunkOverlap(other.getChunkOverlap()); + } + 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: + { + chunkOverlap_ = input.readInt32(); + 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 size of the chunks.
+       * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + /** + * + * + *
+       * The size of the chunks.
+       * 
+ * + * 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 size of the chunks.
+       * 
+ * + * int32 chunk_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkSize() { + bitField0_ = (bitField0_ & ~0x00000001); + chunkSize_ = 0; + onChanged(); + return this; + } + + private int chunkOverlap_; + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + @java.lang.Override + public int getChunkOverlap() { + return chunkOverlap_; + } + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @param value The chunkOverlap to set. + * @return This builder for chaining. + */ + public Builder setChunkOverlap(int value) { + + chunkOverlap_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @return This builder for chaining. + */ + public Builder clearChunkOverlap() { + bitField0_ = (bitField0_ & ~0x00000002); + chunkOverlap_ = 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.RagFileChunkingConfig.FixedLengthChunking) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + private static final com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking(); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedLengthChunking 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.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int chunkingConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object chunkingConfig_; + + public enum ChunkingConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_LENGTH_CHUNKING(3), + CHUNKINGCONFIG_NOT_SET(0); + private final int value; + + private ChunkingConfigCase(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 ChunkingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ChunkingConfigCase forNumber(int value) { + switch (value) { + case 3: + return FIXED_LENGTH_CHUNKING; + case 0: + return CHUNKINGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkingConfigCase getChunkingConfigCase() { + return ChunkingConfigCase.forNumber(chunkingConfigCase_); + } + + public static final int FIXED_LENGTH_CHUNKING_FIELD_NUMBER = 3; + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + @java.lang.Override + public boolean hasFixedLengthChunking() { + return chunkingConfigCase_ == 3; + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + getFixedLengthChunking() { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder() { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .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 (chunkingConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chunkingConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_); + } + 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.RagFileChunkingConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagFileChunkingConfig other = + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig) obj; + + if (!getChunkingConfigCase().equals(other.getChunkingConfigCase())) return false; + switch (chunkingConfigCase_) { + case 3: + if (!getFixedLengthChunking().equals(other.getFixedLengthChunking())) 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 (chunkingConfigCase_) { + case 3: + hash = (37 * hash) + FIXED_LENGTH_CHUNKING_FIELD_NUMBER; + hash = (53 * hash) + getFixedLengthChunking().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig 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.RagFileChunkingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig 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.RagFileChunkingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig 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.RagFileChunkingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig 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.RagFileChunkingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig 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.RagFileChunkingConfig 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.RagFileChunkingConfig 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.RagFileChunkingConfig 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 size and overlap of chunks for RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileChunkingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagFileChunkingConfig) + com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.class, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagFileChunkingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fixedLengthChunkingBuilder_ != null) { + fixedLengthChunkingBuilder_.clear(); + } + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig build() { + com.google.cloud.aiplatform.v1.RagFileChunkingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig buildPartial() { + com.google.cloud.aiplatform.v1.RagFileChunkingConfig result = + new com.google.cloud.aiplatform.v1.RagFileChunkingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagFileChunkingConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagFileChunkingConfig result) { + result.chunkingConfigCase_ = chunkingConfigCase_; + result.chunkingConfig_ = this.chunkingConfig_; + if (chunkingConfigCase_ == 3 && fixedLengthChunkingBuilder_ != null) { + result.chunkingConfig_ = fixedLengthChunkingBuilder_.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.RagFileChunkingConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagFileChunkingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagFileChunkingConfig other) { + if (other == com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance()) + return this; + switch (other.getChunkingConfigCase()) { + case FIXED_LENGTH_CHUNKING: + { + mergeFixedLengthChunking(other.getFixedLengthChunking()); + break; + } + case CHUNKINGCONFIG_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 26: + { + input.readMessage( + getFixedLengthChunkingFieldBuilder().getBuilder(), extensionRegistry); + chunkingConfigCase_ = 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 chunkingConfigCase_ = 0; + private java.lang.Object chunkingConfig_; + + public ChunkingConfigCase getChunkingConfigCase() { + return ChunkingConfigCase.forNumber(chunkingConfigCase_); + } + + public Builder clearChunkingConfig() { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder> + fixedLengthChunkingBuilder_; + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + @java.lang.Override + public boolean hasFixedLengthChunking() { + return chunkingConfigCase_ == 3; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + getFixedLengthChunking() { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } else { + if (chunkingConfigCase_ == 3) { + return fixedLengthChunkingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder setFixedLengthChunking( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking value) { + if (fixedLengthChunkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkingConfig_ = value; + onChanged(); + } else { + fixedLengthChunkingBuilder_.setMessage(value); + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder setFixedLengthChunking( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder + builderForValue) { + if (fixedLengthChunkingBuilder_ == null) { + chunkingConfig_ = builderForValue.build(); + onChanged(); + } else { + fixedLengthChunkingBuilder_.setMessage(builderForValue.build()); + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder mergeFixedLengthChunking( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking value) { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3 + && chunkingConfig_ + != com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance()) { + chunkingConfig_ = + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.newBuilder( + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkingConfig_ = value; + } + onChanged(); + } else { + if (chunkingConfigCase_ == 3) { + fixedLengthChunkingBuilder_.mergeFrom(value); + } else { + fixedLengthChunkingBuilder_.setMessage(value); + } + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder clearFixedLengthChunking() { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3) { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + onChanged(); + } + } else { + if (chunkingConfigCase_ == 3) { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + } + fixedLengthChunkingBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder + getFixedLengthChunkingBuilder() { + return getFixedLengthChunkingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder() { + if ((chunkingConfigCase_ == 3) && (fixedLengthChunkingBuilder_ != null)) { + return fixedLengthChunkingBuilder_.getMessageOrBuilder(); + } else { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder> + getFixedLengthChunkingFieldBuilder() { + if (fixedLengthChunkingBuilder_ == null) { + if (!(chunkingConfigCase_ == 3)) { + chunkingConfig_ = + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + fixedLengthChunkingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder>( + (com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_, + getParentForChildren(), + isClean()); + chunkingConfig_ = null; + } + chunkingConfigCase_ = 3; + onChanged(); + return fixedLengthChunkingBuilder_; + } + + @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.RagFileChunkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagFileChunkingConfig) + private static final com.google.cloud.aiplatform.v1.RagFileChunkingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagFileChunkingConfig(); + } + + public static com.google.cloud.aiplatform.v1.RagFileChunkingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagFileChunkingConfig 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.RagFileChunkingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfigOrBuilder.java new file mode 100644 index 000000000000..c9c74b7f153a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileChunkingConfigOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagFileChunkingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagFileChunkingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + boolean hasFixedLengthChunking(); + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking getFixedLengthChunking(); + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder(); + + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.ChunkingConfigCase getChunkingConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java new file mode 100644 index 000000000000..f0d5ed8acbb9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java @@ -0,0 +1,260 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +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 RagFileName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RAG_CORPUS_RAG_FILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String ragCorpus; + private final String ragFile; + + @Deprecated + protected RagFileName() { + project = null; + location = null; + ragCorpus = null; + ragFile = null; + } + + private RagFileName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + ragCorpus = Preconditions.checkNotNull(builder.getRagCorpus()); + ragFile = Preconditions.checkNotNull(builder.getRagFile()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRagCorpus() { + return ragCorpus; + } + + public String getRagFile() { + return ragFile; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RagFileName of(String project, String location, String ragCorpus, String ragFile) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRagCorpus(ragCorpus) + .setRagFile(ragFile) + .build(); + } + + public static String format(String project, String location, String ragCorpus, String ragFile) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRagCorpus(ragCorpus) + .setRagFile(ragFile) + .build() + .toString(); + } + + public static RagFileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RAG_CORPUS_RAG_FILE.validatedMatch( + formattedString, "RagFileName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("rag_corpus"), + matchMap.get("rag_file")); + } + + 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 (RagFileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RAG_CORPUS_RAG_FILE.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 (ragCorpus != null) { + fieldMapBuilder.put("rag_corpus", ragCorpus); + } + if (ragFile != null) { + fieldMapBuilder.put("rag_file", ragFile); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RAG_CORPUS_RAG_FILE.instantiate( + "project", project, "location", location, "rag_corpus", ragCorpus, "rag_file", ragFile); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RagFileName that = ((RagFileName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.ragCorpus, that.ragCorpus) + && Objects.equals(this.ragFile, that.ragFile); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(ragCorpus); + h *= 1000003; + h ^= Objects.hashCode(ragFile); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}. + */ + public static class Builder { + private String project; + private String location; + private String ragCorpus; + private String ragFile; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRagCorpus() { + return ragCorpus; + } + + public String getRagFile() { + return ragFile; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRagCorpus(String ragCorpus) { + this.ragCorpus = ragCorpus; + return this; + } + + public Builder setRagFile(String ragFile) { + this.ragFile = ragFile; + return this; + } + + private Builder(RagFileName ragFileName) { + this.project = ragFileName.project; + this.location = ragFileName.location; + this.ragCorpus = ragFileName.ragCorpus; + this.ragFile = ragFileName.ragFile; + } + + public RagFileName build() { + return new RagFileName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileOrBuilder.java new file mode 100644 index 000000000000..0245659e913f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileOrBuilder.java @@ -0,0 +1,461 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1.GcsSource getGcsSource(); + /** + * + * + *
+   * Output only. Google Cloud Storage location of the RagFile.
+   * It does not support wildcards in the Cloud Storage uri for now.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDriveSource field is set. + */ + boolean hasGoogleDriveSource(); + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDriveSource. + */ + com.google.cloud.aiplatform.v1.GoogleDriveSource getGoogleDriveSource(); + /** + * + * + *
+   * Output only. Google Drive location. Supports importing individual files
+   * as well as Google Drive folders.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder(); + + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the directUploadSource field is set. + */ + boolean hasDirectUploadSource(); + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The directUploadSource. + */ + com.google.cloud.aiplatform.v1.DirectUploadSource getDirectUploadSource(); + /** + * + * + *
+   * Output only. The RagFile is encapsulated and uploaded in the
+   * UploadRagFile request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.DirectUploadSourceOrBuilder getDirectUploadSourceOrBuilder(); + + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return Whether the slackSource field is set. + */ + boolean hasSlackSource(); + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + * + * @return The slackSource. + */ + com.google.cloud.aiplatform.v1.SlackSource getSlackSource(); + /** + * + * + *
+   * The RagFile is imported from a Slack channel.
+   * 
+ * + * .google.cloud.aiplatform.v1.SlackSource slack_source = 11; + */ + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder getSlackSourceOrBuilder(); + + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return Whether the jiraSource field is set. + */ + boolean hasJiraSource(); + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + * + * @return The jiraSource. + */ + com.google.cloud.aiplatform.v1.JiraSource getJiraSource(); + /** + * + * + *
+   * The RagFile is imported from a Jira query.
+   * 
+ * + * .google.cloud.aiplatform.v1.JiraSource jira_source = 12; + */ + com.google.cloud.aiplatform.v1.JiraSourceOrBuilder getJiraSourceOrBuilder(); + + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return Whether the sharePointSources field is set. + */ + boolean hasSharePointSources(); + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + * + * @return The sharePointSources. + */ + com.google.cloud.aiplatform.v1.SharePointSources getSharePointSources(); + /** + * + * + *
+   * The RagFile is imported from a SharePoint source.
+   * 
+ * + * .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14; + */ + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder getSharePointSourcesOrBuilder(); + + /** + * + * + *
+   * Output only. The resource name of the RagFile.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the RagFile.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the RagFile.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the RagFile.
+   * The name can be up to 128 characters long and can consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The description of the RagFile.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. The description of the RagFile.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagFile was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this RagFile was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the fileStatus field is set. + */ + boolean hasFileStatus(); + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The fileStatus. + */ + com.google.cloud.aiplatform.v1.FileStatus getFileStatus(); + /** + * + * + *
+   * Output only. State of the RagFile.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.FileStatusOrBuilder getFileStatusOrBuilder(); + + com.google.cloud.aiplatform.v1.RagFile.RagFileSourceCase getRagFileSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfig.java new file mode 100644 index 000000000000..1a63b5ab4b34 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfig.java @@ -0,0 +1,734 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Specifies the transformation config for RagFiles.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileTransformationConfig} + */ +public final class RagFileTransformationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagFileTransformationConfig) + RagFileTransformationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagFileTransformationConfig.newBuilder() to construct. + private RagFileTransformationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagFileTransformationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagFileTransformationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.class, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder.class); + } + + private int bitField0_; + public static final int RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.RagFileChunkingConfig ragFileChunkingConfig_; + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return Whether the ragFileChunkingConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return The ragFileChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig getRagFileChunkingConfig() { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder + getRagFileChunkingConfigOrBuilder() { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + + 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, getRagFileChunkingConfig()); + } + 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, getRagFileChunkingConfig()); + } + 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.RagFileTransformationConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagFileTransformationConfig other = + (com.google.cloud.aiplatform.v1.RagFileTransformationConfig) obj; + + if (hasRagFileChunkingConfig() != other.hasRagFileChunkingConfig()) return false; + if (hasRagFileChunkingConfig()) { + if (!getRagFileChunkingConfig().equals(other.getRagFileChunkingConfig())) 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 (hasRagFileChunkingConfig()) { + hash = (37 * hash) + RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileChunkingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig 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.RagFileTransformationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig 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.RagFileTransformationConfig 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.RagFileTransformationConfig 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.RagFileTransformationConfig 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 transformation config for RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagFileTransformationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagFileTransformationConfig) + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.class, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagFileTransformationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagFileChunkingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragFileChunkingConfig_ = null; + if (ragFileChunkingConfigBuilder_ != null) { + ragFileChunkingConfigBuilder_.dispose(); + ragFileChunkingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig build() { + com.google.cloud.aiplatform.v1.RagFileTransformationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig buildPartial() { + com.google.cloud.aiplatform.v1.RagFileTransformationConfig result = + new com.google.cloud.aiplatform.v1.RagFileTransformationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagFileTransformationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragFileChunkingConfig_ = + ragFileChunkingConfigBuilder_ == null + ? ragFileChunkingConfig_ + : ragFileChunkingConfigBuilder_.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.RagFileTransformationConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagFileTransformationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagFileTransformationConfig other) { + if (other == com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance()) + return this; + if (other.hasRagFileChunkingConfig()) { + mergeRagFileChunkingConfig(other.getRagFileChunkingConfig()); + } + 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( + getRagFileChunkingConfigFieldBuilder().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.RagFileChunkingConfig ragFileChunkingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder> + ragFileChunkingConfigBuilder_; + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return Whether the ragFileChunkingConfig field is set. + */ + public boolean hasRagFileChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return The ragFileChunkingConfig. + */ + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig getRagFileChunkingConfig() { + if (ragFileChunkingConfigBuilder_ == null) { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } else { + return ragFileChunkingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public Builder setRagFileChunkingConfig( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig value) { + if (ragFileChunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileChunkingConfig_ = value; + } else { + ragFileChunkingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public Builder setRagFileChunkingConfig( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder builderForValue) { + if (ragFileChunkingConfigBuilder_ == null) { + ragFileChunkingConfig_ = builderForValue.build(); + } else { + ragFileChunkingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public Builder mergeRagFileChunkingConfig( + com.google.cloud.aiplatform.v1.RagFileChunkingConfig value) { + if (ragFileChunkingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && ragFileChunkingConfig_ != null + && ragFileChunkingConfig_ + != com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance()) { + getRagFileChunkingConfigBuilder().mergeFrom(value); + } else { + ragFileChunkingConfig_ = value; + } + } else { + ragFileChunkingConfigBuilder_.mergeFrom(value); + } + if (ragFileChunkingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public Builder clearRagFileChunkingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + ragFileChunkingConfig_ = null; + if (ragFileChunkingConfigBuilder_ != null) { + ragFileChunkingConfigBuilder_.dispose(); + ragFileChunkingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder + getRagFileChunkingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRagFileChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + public com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder + getRagFileChunkingConfigOrBuilder() { + if (ragFileChunkingConfigBuilder_ != null) { + return ragFileChunkingConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder> + getRagFileChunkingConfigFieldBuilder() { + if (ragFileChunkingConfigBuilder_ == null) { + ragFileChunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder>( + getRagFileChunkingConfig(), getParentForChildren(), isClean()); + ragFileChunkingConfig_ = null; + } + return ragFileChunkingConfigBuilder_; + } + + @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.RagFileTransformationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagFileTransformationConfig) + private static final com.google.cloud.aiplatform.v1.RagFileTransformationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagFileTransformationConfig(); + } + + public static com.google.cloud.aiplatform.v1.RagFileTransformationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagFileTransformationConfig 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.RagFileTransformationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfigOrBuilder.java new file mode 100644 index 000000000000..b711bf8aa0c0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileTransformationConfigOrBuilder.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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagFileTransformationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagFileTransformationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return Whether the ragFileChunkingConfig field is set. + */ + boolean hasRagFileChunkingConfig(); + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * @return The ragFileChunkingConfig. + */ + com.google.cloud.aiplatform.v1.RagFileChunkingConfig getRagFileChunkingConfig(); + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFileChunkingConfig rag_file_chunking_config = 1; + */ + com.google.cloud.aiplatform.v1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQuery.java new file mode 100644 index 000000000000..0d47c811f4cc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQuery.java @@ -0,0 +1,1067 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A query to retrieve relevant contexts.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagQuery} + */ +public final class RagQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagQuery) + RagQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagQuery.newBuilder() to construct. + private RagQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagQuery() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagQuery(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagQuery.class, + com.google.cloud.aiplatform.v1.RagQuery.Builder.class); + } + + private int bitField0_; + private int queryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object query_; + + public enum QueryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + QUERY_NOT_SET(0); + private final int value; + + private QueryCase(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 QueryCase valueOf(int value) { + return forNumber(value); + } + + public static QueryCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 0: + return QUERY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return queryCase_ == 1; + } + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 1) { + ref = query_; + } + 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 (queryCase_ == 1) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 1) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 1) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAG_RETRIEVAL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1.RagRetrievalConfig ragRetrievalConfig_; + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + + 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 (queryCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getRagRetrievalConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRagRetrievalConfig()); + } + 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.RagQuery)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagQuery other = (com.google.cloud.aiplatform.v1.RagQuery) obj; + + if (hasRagRetrievalConfig() != other.hasRagRetrievalConfig()) return false; + if (hasRagRetrievalConfig()) { + if (!getRagRetrievalConfig().equals(other.getRagRetrievalConfig())) return false; + } + if (!getQueryCase().equals(other.getQueryCase())) return false; + switch (queryCase_) { + case 1: + if (!getText().equals(other.getText())) 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 (hasRagRetrievalConfig()) { + hash = (37 * hash) + RAG_RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagRetrievalConfig().hashCode(); + } + switch (queryCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagQuery 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.RagQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagQuery 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.RagQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagQuery 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.RagQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagQuery 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.RagQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagQuery 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.RagQuery 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.RagQuery 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.RagQuery 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 query to retrieve relevant contexts.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagQuery) + com.google.cloud.aiplatform.v1.RagQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagQuery.class, + com.google.cloud.aiplatform.v1.RagQuery.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagRetrievalConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } + queryCase_ = 0; + query_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagQuery getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagQuery build() { + com.google.cloud.aiplatform.v1.RagQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagQuery buildPartial() { + com.google.cloud.aiplatform.v1.RagQuery result = + new com.google.cloud.aiplatform.v1.RagQuery(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagQuery result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ragRetrievalConfig_ = + ragRetrievalConfigBuilder_ == null + ? ragRetrievalConfig_ + : ragRetrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagQuery result) { + result.queryCase_ = queryCase_; + result.query_ = this.query_; + } + + @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.RagQuery) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagQuery other) { + if (other == com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()) return this; + if (other.hasRagRetrievalConfig()) { + mergeRagRetrievalConfig(other.getRagRetrievalConfig()); + } + switch (other.getQueryCase()) { + case TEXT: + { + queryCase_ = 1; + query_ = other.query_; + onChanged(); + break; + } + case QUERY_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(); + queryCase_ = 1; + query_ = s; + break; + } // case 10 + case 50: + { + input.readMessage( + getRagRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 queryCase_ = 0; + private java.lang.Object query_; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + + public Builder clearQuery() { + queryCase_ = 0; + query_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return queryCase_ == 1; + } + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 1) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 1) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 1) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 1) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 1; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (queryCase_ == 1) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The query in text format to get relevant contexts.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 1; + query_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.RagRetrievalConfig ragRetrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder> + ragRetrievalConfigBuilder_; + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig() { + if (ragRetrievalConfigBuilder_ == null) { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } else { + return ragRetrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig(com.google.cloud.aiplatform.v1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragRetrievalConfig_ = value; + } else { + ragRetrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder builderForValue) { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfig_ = builderForValue.build(); + } else { + ragRetrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRagRetrievalConfig( + com.google.cloud.aiplatform.v1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ragRetrievalConfig_ != null + && ragRetrievalConfig_ + != com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance()) { + getRagRetrievalConfigBuilder().mergeFrom(value); + } else { + ragRetrievalConfig_ = value; + } + } else { + ragRetrievalConfigBuilder_.mergeFrom(value); + } + if (ragRetrievalConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder + getRagRetrievalConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRagRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + if (ragRetrievalConfigBuilder_ != null) { + return ragRetrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder> + getRagRetrievalConfigFieldBuilder() { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder>( + getRagRetrievalConfig(), getParentForChildren(), isClean()); + ragRetrievalConfig_ = null; + } + return ragRetrievalConfigBuilder_; + } + + @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.RagQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagQuery) + private static final com.google.cloud.aiplatform.v1.RagQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagQuery(); + } + + public static com.google.cloud.aiplatform.v1.RagQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagQuery 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.RagQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQueryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQueryOrBuilder.java new file mode 100644 index 000000000000..7f427e6c79d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagQueryOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * Optional. The query in text format to get relevant contexts.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + boolean hasRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.RagQuery.QueryCase getQueryCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfig.java new file mode 100644 index 000000000000..a0c9f39ac22e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfig.java @@ -0,0 +1,1922 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Specifies the context retrieval config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagRetrievalConfig} + */ +public final class RagRetrievalConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagRetrievalConfig) + RagRetrievalConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagRetrievalConfig.newBuilder() to construct. + private RagRetrievalConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagRetrievalConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagRetrievalConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.class, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder.class); + } + + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the vectorDistanceThreshold field is set. + */ + boolean hasVectorDistanceThreshold(); + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vectorDistanceThreshold. + */ + double getVectorDistanceThreshold(); + + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + boolean hasVectorSimilarityThreshold(); + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + double getVectorSimilarityThreshold(); + + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + java.lang.String getMetadataFilter(); + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + com.google.protobuf.ByteString getMetadataFilterBytes(); + + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.VectorDbThresholdCase + getVectorDbThresholdCase(); + } + /** + * + * + *
+   * Config for filters.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagRetrievalConfig.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() { + metadataFilter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.class, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder.class); + } + + private int vectorDbThresholdCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object vectorDbThreshold_; + + public enum VectorDbThresholdCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR_DISTANCE_THRESHOLD(3), + VECTOR_SIMILARITY_THRESHOLD(4), + VECTORDBTHRESHOLD_NOT_SET(0); + private final int value; + + private VectorDbThresholdCase(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 VectorDbThresholdCase valueOf(int value) { + return forNumber(value); + } + + public static VectorDbThresholdCase forNumber(int value) { + switch (value) { + case 3: + return VECTOR_DISTANCE_THRESHOLD; + case 4: + return VECTOR_SIMILARITY_THRESHOLD; + case 0: + return VECTORDBTHRESHOLD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VectorDbThresholdCase getVectorDbThresholdCase() { + return VectorDbThresholdCase.forNumber(vectorDbThresholdCase_); + } + + public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + public boolean hasVectorDistanceThreshold() { + return vectorDbThresholdCase_ == 3; + } + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + public double getVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + + public static final int VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + @java.lang.Override + public boolean hasVectorSimilarityThreshold() { + return vectorDbThresholdCase_ == 4; + } + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + @java.lang.Override + public double getVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + + public static final int METADATA_FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataFilter_ = ""; + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + @java.lang.Override + public java.lang.String getMetadataFilter() { + java.lang.Object ref = metadataFilter_; + 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(); + metadataFilter_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataFilterBytes() { + java.lang.Object ref = metadataFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataFilter_ = 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(metadataFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metadataFilter_); + } + if (vectorDbThresholdCase_ == 3) { + output.writeDouble(3, (double) ((java.lang.Double) vectorDbThreshold_)); + } + if (vectorDbThresholdCase_ == 4) { + output.writeDouble(4, (double) ((java.lang.Double) vectorDbThreshold_)); + } + 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(metadataFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metadataFilter_); + } + if (vectorDbThresholdCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) vectorDbThreshold_)); + } + if (vectorDbThresholdCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, (double) ((java.lang.Double) vectorDbThreshold_)); + } + 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.RagRetrievalConfig.Filter)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter other = + (com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) obj; + + if (!getMetadataFilter().equals(other.getMetadataFilter())) return false; + if (!getVectorDbThresholdCase().equals(other.getVectorDbThresholdCase())) return false; + switch (vectorDbThresholdCase_) { + case 3: + if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold())) + return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getVectorSimilarityThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorSimilarityThreshold())) + 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) + METADATA_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetadataFilter().hashCode(); + switch (vectorDbThresholdCase_) { + case 3: + hash = (37 * hash) + VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())); + break; + case 4: + hash = (37 * hash) + VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorSimilarityThreshold())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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; + } + /** + * + * + *
+     * Config for filters.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagRetrievalConfig.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) + com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.class, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadataFilter_ = ""; + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = 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_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter build() { + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter buildPartial() { + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter result = + new com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataFilter_ = metadataFilter_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter result) { + result.vectorDbThresholdCase_ = vectorDbThresholdCase_; + result.vectorDbThreshold_ = this.vectorDbThreshold_; + } + + @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.RagRetrievalConfig.Filter) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter other) { + if (other == com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance()) + return this; + if (!other.getMetadataFilter().isEmpty()) { + metadataFilter_ = other.metadataFilter_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getVectorDbThresholdCase()) { + case VECTOR_DISTANCE_THRESHOLD: + { + setVectorDistanceThreshold(other.getVectorDistanceThreshold()); + break; + } + case VECTOR_SIMILARITY_THRESHOLD: + { + setVectorSimilarityThreshold(other.getVectorSimilarityThreshold()); + break; + } + case VECTORDBTHRESHOLD_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: + { + metadataFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 25: + { + vectorDbThreshold_ = input.readDouble(); + vectorDbThresholdCase_ = 3; + break; + } // case 25 + case 33: + { + vectorDbThreshold_ = input.readDouble(); + vectorDbThresholdCase_ = 4; + break; + } // case 33 + 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 vectorDbThresholdCase_ = 0; + private java.lang.Object vectorDbThreshold_; + + public VectorDbThresholdCase getVectorDbThresholdCase() { + return VectorDbThresholdCase.forNumber(vectorDbThresholdCase_); + } + + public Builder clearVectorDbThreshold() { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorDistanceThreshold field is set. + */ + public boolean hasVectorDistanceThreshold() { + return vectorDbThresholdCase_ == 3; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorDistanceThreshold. + */ + public double getVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The vectorDistanceThreshold to set. + * @return This builder for chaining. + */ + public Builder setVectorDistanceThreshold(double value) { + + vectorDbThresholdCase_ = 3; + vectorDbThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + public boolean hasVectorSimilarityThreshold() { + return vectorDbThresholdCase_ == 4; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + public double getVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The vectorSimilarityThreshold to set. + * @return This builder for chaining. + */ + public Builder setVectorSimilarityThreshold(double value) { + + vectorDbThresholdCase_ = 4; + vectorDbThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object metadataFilter_ = ""; + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + public java.lang.String getMetadataFilter() { + java.lang.Object ref = metadataFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + public com.google.protobuf.ByteString getMetadataFilterBytes() { + java.lang.Object ref = metadataFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataFilter to set. + * @return This builder for chaining. + */ + public Builder setMetadataFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metadataFilter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataFilter() { + metadataFilter_ = getDefaultInstance().getMetadataFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metadataFilter to set. + * @return This builder for chaining. + */ + public Builder setMetadataFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataFilter_ = 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.aiplatform.v1.RagRetrievalConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagRetrievalConfig.Filter) + private static final com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter(); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter 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.RagRetrievalConfig.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TOP_K_FIELD_NUMBER = 1; + private int topK_ = 0; + /** + * + * + *
+   * Optional. The number of contexts to retrieve.
+   * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter_; + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter getFilter() { + return filter_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + + 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 (topK_ != 0) { + output.writeInt32(1, topK_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (topK_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, topK_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); + } + 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.RagRetrievalConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagRetrievalConfig other = + (com.google.cloud.aiplatform.v1.RagRetrievalConfig) obj; + + if (getTopK() != other.getTopK()) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + 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) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + getTopK(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig 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.RagRetrievalConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig 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.RagRetrievalConfig 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.RagRetrievalConfig 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.RagRetrievalConfig 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 context retrieval config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagRetrievalConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagRetrievalConfig) + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.class, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagRetrievalConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topK_ = 0; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = 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_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig build() { + com.google.cloud.aiplatform.v1.RagRetrievalConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig buildPartial() { + com.google.cloud.aiplatform.v1.RagRetrievalConfig result = + new com.google.cloud.aiplatform.v1.RagRetrievalConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagRetrievalConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topK_ = topK_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.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.RagRetrievalConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagRetrievalConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagRetrievalConfig other) { + if (other == com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance()) + return this; + if (other.getTopK() != 0) { + setTopK(other.getTopK()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + 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: + { + topK_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 int topK_; + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(int value) { + + topK_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000001); + topK_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter(com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFilter(com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && filter_ != null + && filter_ + != com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + @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.RagRetrievalConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagRetrievalConfig) + private static final com.google.cloud.aiplatform.v1.RagRetrievalConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagRetrievalConfig(); + } + + public static com.google.cloud.aiplatform.v1.RagRetrievalConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagRetrievalConfig 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.RagRetrievalConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfigOrBuilder.java new file mode 100644 index 000000000000..4ef22de1c8cd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagRetrievalConfigOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.5 +package com.google.cloud.aiplatform.v1; + +public interface RagRetrievalConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagRetrievalConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The number of contexts to retrieve.
+   * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + int getTopK(); + + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Filter getFilter(); + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java new file mode 100644 index 000000000000..a01fa5b8d259 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java @@ -0,0 +1,4020 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Config for the Vector DB to use for RAG.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig} + */ +public final class RagVectorDbConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig) + RagVectorDbConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagVectorDbConfig.newBuilder() to construct. + private RagVectorDbConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagVectorDbConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagVectorDbConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder.class); + } + + public interface RagManagedDbOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * The config for the default RAG-managed Vector DB.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb} + */ + public static final class RagManagedDb extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + RagManagedDbOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagManagedDb.newBuilder() to construct. + private RagManagedDb(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagManagedDb() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagManagedDb(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.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.aiplatform.v1.RagVectorDbConfig.RagManagedDb)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) 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.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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 config for the default RAG-managed Vector DB.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.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.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb(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.aiplatform.v1.RagVectorDbConfig.RagManagedDb) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb other) { + if (other + == com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.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.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagManagedDb 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.RagVectorDbConfig.RagManagedDb + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PineconeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Pinecone index name.
+     * This value cannot be changed after it's set.
+     * 
+ * + * string index_name = 1; + * + * @return The indexName. + */ + java.lang.String getIndexName(); + /** + * + * + *
+     * Pinecone index name.
+     * This value cannot be changed after it's set.
+     * 
+ * + * string index_name = 1; + * + * @return The bytes for indexName. + */ + com.google.protobuf.ByteString getIndexNameBytes(); + } + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone} + */ + public static final class Pinecone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) + PineconeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Pinecone.newBuilder() to construct. + private Pinecone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Pinecone() { + indexName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Pinecone(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder.class); + } + + public static final int INDEX_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexName_ = ""; + /** + * + * + *
+     * Pinecone index name.
+     * This value cannot be changed after it's set.
+     * 
+ * + * string index_name = 1; + * + * @return The indexName. + */ + @java.lang.Override + public java.lang.String getIndexName() { + java.lang.Object ref = indexName_; + 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(); + indexName_ = s; + return s; + } + } + /** + * + * + *
+     * Pinecone index name.
+     * This value cannot be changed after it's set.
+     * 
+ * + * string index_name = 1; + * + * @return The bytes for indexName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexNameBytes() { + java.lang.Object ref = indexName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexName_ = 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(indexName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_); + } + 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(indexName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_); + } + 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.RagVectorDbConfig.Pinecone)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) obj; + + if (!getIndexName().equals(other.getIndexName())) 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) + INDEX_NAME_FIELD_NUMBER; + hash = (53 * hash) + getIndexName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone 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.RagVectorDbConfig.Pinecone 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 config for the Pinecone.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + indexName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexName_ = indexName_; + } + } + + @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.RagVectorDbConfig.Pinecone) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone other) { + if (other == com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance()) + return this; + if (!other.getIndexName().isEmpty()) { + indexName_ = other.indexName_; + 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: + { + indexName_ = 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 indexName_ = ""; + /** + * + * + *
+       * Pinecone index name.
+       * This value cannot be changed after it's set.
+       * 
+ * + * string index_name = 1; + * + * @return The indexName. + */ + public java.lang.String getIndexName() { + java.lang.Object ref = indexName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indexName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Pinecone index name.
+       * This value cannot be changed after it's set.
+       * 
+ * + * string index_name = 1; + * + * @return The bytes for indexName. + */ + public com.google.protobuf.ByteString getIndexNameBytes() { + java.lang.Object ref = indexName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Pinecone index name.
+       * This value cannot be changed after it's set.
+       * 
+ * + * string index_name = 1; + * + * @param value The indexName to set. + * @return This builder for chaining. + */ + public Builder setIndexName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + indexName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Pinecone index name.
+       * This value cannot be changed after it's set.
+       * 
+ * + * string index_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearIndexName() { + indexName_ = getDefaultInstance().getIndexName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Pinecone index name.
+       * This value cannot be changed after it's set.
+       * 
+ * + * string index_name = 1; + * + * @param value The bytes for indexName to set. + * @return This builder for chaining. + */ + public Builder setIndexNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexName_ = 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.RagVectorDbConfig.Pinecone) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pinecone 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.RagVectorDbConfig.Pinecone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface VertexVectorSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The resource name of the Index Endpoint.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * string index_endpoint = 1; + * + * @return The indexEndpoint. + */ + java.lang.String getIndexEndpoint(); + /** + * + * + *
+     * The resource name of the Index Endpoint.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * string index_endpoint = 1; + * + * @return The bytes for indexEndpoint. + */ + com.google.protobuf.ByteString getIndexEndpointBytes(); + + /** + * + * + *
+     * The resource name of the Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * string index = 2; + * + * @return The index. + */ + java.lang.String getIndex(); + /** + * + * + *
+     * The resource name of the Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * string index = 2; + * + * @return The bytes for index. + */ + com.google.protobuf.ByteString getIndexBytes(); + } + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch} + */ + public static final class VertexVectorSearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) + VertexVectorSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexVectorSearch.newBuilder() to construct. + private VertexVectorSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexVectorSearch() { + indexEndpoint_ = ""; + index_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexVectorSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder.class); + } + + public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; + /** + * + * + *
+     * The resource name of the Index Endpoint.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * string index_endpoint = 1; + * + * @return The indexEndpoint. + */ + @java.lang.Override + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + 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(); + indexEndpoint_ = s; + return s; + } + } + /** + * + * + *
+     * The resource name of the Index Endpoint.
+     * Format:
+     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+     * 
+ * + * string index_endpoint = 1; + * + * @return The bytes for indexEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; + /** + * + * + *
+     * The resource name of the Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * string index = 2; + * + * @return The index. + */ + @java.lang.Override + public java.lang.String getIndex() { + java.lang.Object ref = index_; + 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(); + index_ = s; + return s; + } + } + /** + * + * + *
+     * The resource name of the Index.
+     * Format:
+     * `projects/{project}/locations/{location}/indexes/{index}`
+     * 
+ * + * string index = 2; + * + * @return The bytes for index. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = 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(indexEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, index_); + } + 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(indexEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(index_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, index_); + } + 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.RagVectorDbConfig.VertexVectorSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) obj; + + if (!getIndexEndpoint().equals(other.getIndexEndpoint())) return false; + if (!getIndex().equals(other.getIndex())) 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) + INDEX_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIndexEndpoint().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + 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.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch 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 config for the Vertex Vector Search.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + indexEndpoint_ = ""; + index_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; + } + } + + @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.RagVectorDbConfig.VertexVectorSearch) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch other) { + if (other + == com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance()) return this; + if (!other.getIndexEndpoint().isEmpty()) { + indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIndex().isEmpty()) { + index_ = other.index_; + 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: + { + indexEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + index_ = 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 indexEndpoint_ = ""; + /** + * + * + *
+       * The resource name of the Index Endpoint.
+       * Format:
+       * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+       * 
+ * + * string index_endpoint = 1; + * + * @return The indexEndpoint. + */ + public java.lang.String getIndexEndpoint() { + java.lang.Object ref = indexEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indexEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name of the Index Endpoint.
+       * Format:
+       * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+       * 
+ * + * string index_endpoint = 1; + * + * @return The bytes for indexEndpoint. + */ + public com.google.protobuf.ByteString getIndexEndpointBytes() { + java.lang.Object ref = indexEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + indexEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name of the Index Endpoint.
+       * Format:
+       * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+       * 
+ * + * string index_endpoint = 1; + * + * @param value The indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + indexEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Index Endpoint.
+       * Format:
+       * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+       * 
+ * + * string index_endpoint = 1; + * + * @return This builder for chaining. + */ + public Builder clearIndexEndpoint() { + indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Index Endpoint.
+       * Format:
+       * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+       * 
+ * + * string index_endpoint = 1; + * + * @param value The bytes for indexEndpoint to set. + * @return This builder for chaining. + */ + public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + indexEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object index_ = ""; + /** + * + * + *
+       * The resource name of the Index.
+       * Format:
+       * `projects/{project}/locations/{location}/indexes/{index}`
+       * 
+ * + * string index = 2; + * + * @return The index. + */ + public java.lang.String getIndex() { + java.lang.Object ref = index_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + index_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The resource name of the Index.
+       * Format:
+       * `projects/{project}/locations/{location}/indexes/{index}`
+       * 
+ * + * string index = 2; + * + * @return The bytes for index. + */ + public com.google.protobuf.ByteString getIndexBytes() { + java.lang.Object ref = index_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + index_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The resource name of the Index.
+       * Format:
+       * `projects/{project}/locations/{location}/indexes/{index}`
+       * 
+ * + * string index = 2; + * + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + index_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Index.
+       * Format:
+       * `projects/{project}/locations/{location}/indexes/{index}`
+       * 
+ * + * string index = 2; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource name of the Index.
+       * Format:
+       * `projects/{project}/locations/{location}/indexes/{index}`
+       * 
+ * + * string index = 2; + * + * @param value The bytes for index to set. + * @return This builder for chaining. + */ + public Builder setIndexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + index_ = 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.RagVectorDbConfig.VertexVectorSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexVectorSearch 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.RagVectorDbConfig.VertexVectorSearch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int vectorDbCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object vectorDb_; + + public enum VectorDbCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RAG_MANAGED_DB(1), + PINECONE(3), + VERTEX_VECTOR_SEARCH(6), + VECTORDB_NOT_SET(0); + private final int value; + + private VectorDbCase(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 VectorDbCase valueOf(int value) { + return forNumber(value); + } + + public static VectorDbCase forNumber(int value) { + switch (value) { + case 1: + return RAG_MANAGED_DB; + case 3: + return PINECONE; + case 6: + return VERTEX_VECTOR_SEARCH; + case 0: + return VECTORDB_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VectorDbCase getVectorDbCase() { + return VectorDbCase.forNumber(vectorDbCase_); + } + + public static final int RAG_MANAGED_DB_FIELD_NUMBER = 1; + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return Whether the ragManagedDb field is set. + */ + @java.lang.Override + public boolean hasRagManagedDb() { + return vectorDbCase_ == 1; + } + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return The ragManagedDb. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb getRagManagedDb() { + if (vectorDbCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder + getRagManagedDbOrBuilder() { + if (vectorDbCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + + public static final int PINECONE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return Whether the pinecone field is set. + */ + @java.lang.Override + public boolean hasPinecone() { + return vectorDbCase_ == 3; + } + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return The pinecone. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone getPinecone() { + if (vectorDbCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder getPineconeOrBuilder() { + if (vectorDbCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + + public static final int VERTEX_VECTOR_SEARCH_FIELD_NUMBER = 6; + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return Whether the vertexVectorSearch field is set. + */ + @java.lang.Override + public boolean hasVertexVectorSearch() { + return vectorDbCase_ == 6; + } + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return The vertexVectorSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + getVertexVectorSearch() { + if (vectorDbCase_ == 6) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.getDefaultInstance(); + } + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder + getVertexVectorSearchOrBuilder() { + if (vectorDbCase_ == 6) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.getDefaultInstance(); + } + + public static final int API_AUTH_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1.ApiAuth apiAuth_; + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return Whether the apiAuth field is set. + */ + @java.lang.Override + public boolean hasApiAuth() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return The apiAuth. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth getApiAuth() { + return apiAuth_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance() + : apiAuth_; + } + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuthOrBuilder getApiAuthOrBuilder() { + return apiAuth_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance() + : apiAuth_; + } + + public static final int RAG_EMBEDDING_MODEL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig ragEmbeddingModelConfig_; + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + @java.lang.Override + public boolean hasRagEmbeddingModelConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig getRagEmbeddingModelConfig() { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder() { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + + 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 (vectorDbCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_); + } + if (vectorDbCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getApiAuth()); + } + if (vectorDbCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getRagEmbeddingModelConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (vectorDbCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_); + } + if (vectorDbCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getApiAuth()); + } + if (vectorDbCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRagEmbeddingModelConfig()); + } + 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.RagVectorDbConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig) obj; + + if (hasApiAuth() != other.hasApiAuth()) return false; + if (hasApiAuth()) { + if (!getApiAuth().equals(other.getApiAuth())) return false; + } + if (hasRagEmbeddingModelConfig() != other.hasRagEmbeddingModelConfig()) return false; + if (hasRagEmbeddingModelConfig()) { + if (!getRagEmbeddingModelConfig().equals(other.getRagEmbeddingModelConfig())) return false; + } + if (!getVectorDbCase().equals(other.getVectorDbCase())) return false; + switch (vectorDbCase_) { + case 1: + if (!getRagManagedDb().equals(other.getRagManagedDb())) return false; + break; + case 3: + if (!getPinecone().equals(other.getPinecone())) return false; + break; + case 6: + if (!getVertexVectorSearch().equals(other.getVertexVectorSearch())) 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 (hasApiAuth()) { + hash = (37 * hash) + API_AUTH_FIELD_NUMBER; + hash = (53 * hash) + getApiAuth().hashCode(); + } + if (hasRagEmbeddingModelConfig()) { + hash = (37 * hash) + RAG_EMBEDDING_MODEL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagEmbeddingModelConfig().hashCode(); + } + switch (vectorDbCase_) { + case 1: + hash = (37 * hash) + RAG_MANAGED_DB_FIELD_NUMBER; + hash = (53 * hash) + getRagManagedDb().hashCode(); + break; + case 3: + hash = (37 * hash) + PINECONE_FIELD_NUMBER; + hash = (53 * hash) + getPinecone().hashCode(); + break; + case 6: + hash = (37 * hash) + VERTEX_VECTOR_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getVertexVectorSearch().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig 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.RagVectorDbConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig 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.RagVectorDbConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig 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.RagVectorDbConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig 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.RagVectorDbConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig 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.RagVectorDbConfig 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.RagVectorDbConfig 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.RagVectorDbConfig 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; + } + /** + * + * + *
+   * Config for the Vector DB to use for RAG.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig) + com.google.cloud.aiplatform.v1.RagVectorDbConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagVectorDbConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getApiAuthFieldBuilder(); + getRagEmbeddingModelConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragManagedDbBuilder_ != null) { + ragManagedDbBuilder_.clear(); + } + if (pineconeBuilder_ != null) { + pineconeBuilder_.clear(); + } + if (vertexVectorSearchBuilder_ != null) { + vertexVectorSearchBuilder_.clear(); + } + apiAuth_ = null; + if (apiAuthBuilder_ != null) { + apiAuthBuilder_.dispose(); + apiAuthBuilder_ = null; + } + ragEmbeddingModelConfig_ = null; + if (ragEmbeddingModelConfigBuilder_ != null) { + ragEmbeddingModelConfigBuilder_.dispose(); + ragEmbeddingModelConfigBuilder_ = null; + } + vectorDbCase_ = 0; + vectorDb_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RagVectorDbConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.apiAuth_ = apiAuthBuilder_ == null ? apiAuth_ : apiAuthBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ragEmbeddingModelConfig_ = + ragEmbeddingModelConfigBuilder_ == null + ? ragEmbeddingModelConfig_ + : ragEmbeddingModelConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RagVectorDbConfig result) { + result.vectorDbCase_ = vectorDbCase_; + result.vectorDb_ = this.vectorDb_; + if (vectorDbCase_ == 1 && ragManagedDbBuilder_ != null) { + result.vectorDb_ = ragManagedDbBuilder_.build(); + } + if (vectorDbCase_ == 3 && pineconeBuilder_ != null) { + result.vectorDb_ = pineconeBuilder_.build(); + } + if (vectorDbCase_ == 6 && vertexVectorSearchBuilder_ != null) { + result.vectorDb_ = vertexVectorSearchBuilder_.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.RagVectorDbConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RagVectorDbConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RagVectorDbConfig other) { + if (other == com.google.cloud.aiplatform.v1.RagVectorDbConfig.getDefaultInstance()) + return this; + if (other.hasApiAuth()) { + mergeApiAuth(other.getApiAuth()); + } + if (other.hasRagEmbeddingModelConfig()) { + mergeRagEmbeddingModelConfig(other.getRagEmbeddingModelConfig()); + } + switch (other.getVectorDbCase()) { + case RAG_MANAGED_DB: + { + mergeRagManagedDb(other.getRagManagedDb()); + break; + } + case PINECONE: + { + mergePinecone(other.getPinecone()); + break; + } + case VERTEX_VECTOR_SEARCH: + { + mergeVertexVectorSearch(other.getVertexVectorSearch()); + break; + } + case VECTORDB_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(getRagManagedDbFieldBuilder().getBuilder(), extensionRegistry); + vectorDbCase_ = 1; + break; + } // case 10 + case 26: + { + input.readMessage(getPineconeFieldBuilder().getBuilder(), extensionRegistry); + vectorDbCase_ = 3; + break; + } // case 26 + case 42: + { + input.readMessage(getApiAuthFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + getVertexVectorSearchFieldBuilder().getBuilder(), extensionRegistry); + vectorDbCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getRagEmbeddingModelConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + 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 vectorDbCase_ = 0; + private java.lang.Object vectorDb_; + + public VectorDbCase getVectorDbCase() { + return VectorDbCase.forNumber(vectorDbCase_); + } + + public Builder clearVectorDb() { + vectorDbCase_ = 0; + vectorDb_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder> + ragManagedDbBuilder_; + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return Whether the ragManagedDb field is set. + */ + @java.lang.Override + public boolean hasRagManagedDb() { + return vectorDbCase_ == 1; + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return The ragManagedDb. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb getRagManagedDb() { + if (ragManagedDbBuilder_ == null) { + if (vectorDbCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } else { + if (vectorDbCase_ == 1) { + return ragManagedDbBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + public Builder setRagManagedDb( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb value) { + if (ragManagedDbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vectorDb_ = value; + onChanged(); + } else { + ragManagedDbBuilder_.setMessage(value); + } + vectorDbCase_ = 1; + return this; + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + public Builder setRagManagedDb( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder builderForValue) { + if (ragManagedDbBuilder_ == null) { + vectorDb_ = builderForValue.build(); + onChanged(); + } else { + ragManagedDbBuilder_.setMessage(builderForValue.build()); + } + vectorDbCase_ = 1; + return this; + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + public Builder mergeRagManagedDb( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb value) { + if (ragManagedDbBuilder_ == null) { + if (vectorDbCase_ == 1 + && vectorDb_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb + .getDefaultInstance()) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_) + .mergeFrom(value) + .buildPartial(); + } else { + vectorDb_ = value; + } + onChanged(); + } else { + if (vectorDbCase_ == 1) { + ragManagedDbBuilder_.mergeFrom(value); + } else { + ragManagedDbBuilder_.setMessage(value); + } + } + vectorDbCase_ = 1; + return this; + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + public Builder clearRagManagedDb() { + if (ragManagedDbBuilder_ == null) { + if (vectorDbCase_ == 1) { + vectorDbCase_ = 0; + vectorDb_ = null; + onChanged(); + } + } else { + if (vectorDbCase_ == 1) { + vectorDbCase_ = 0; + vectorDb_ = null; + } + ragManagedDbBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder + getRagManagedDbBuilder() { + return getRagManagedDbFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder + getRagManagedDbOrBuilder() { + if ((vectorDbCase_ == 1) && (ragManagedDbBuilder_ != null)) { + return ragManagedDbBuilder_.getMessageOrBuilder(); + } else { + if (vectorDbCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the RAG-managed Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder> + getRagManagedDbFieldBuilder() { + if (ragManagedDbBuilder_ == null) { + if (!(vectorDbCase_ == 1)) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + ragManagedDbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) vectorDb_, + getParentForChildren(), + isClean()); + vectorDb_ = null; + } + vectorDbCase_ = 1; + onChanged(); + return ragManagedDbBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder> + pineconeBuilder_; + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return Whether the pinecone field is set. + */ + @java.lang.Override + public boolean hasPinecone() { + return vectorDbCase_ == 3; + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return The pinecone. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone getPinecone() { + if (pineconeBuilder_ == null) { + if (vectorDbCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } else { + if (vectorDbCase_ == 3) { + return pineconeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + public Builder setPinecone(com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone value) { + if (pineconeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vectorDb_ = value; + onChanged(); + } else { + pineconeBuilder_.setMessage(value); + } + vectorDbCase_ = 3; + return this; + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + public Builder setPinecone( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder builderForValue) { + if (pineconeBuilder_ == null) { + vectorDb_ = builderForValue.build(); + onChanged(); + } else { + pineconeBuilder_.setMessage(builderForValue.build()); + } + vectorDbCase_ = 3; + return this; + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + public Builder mergePinecone(com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone value) { + if (pineconeBuilder_ == null) { + if (vectorDbCase_ == 3 + && vectorDb_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance()) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_) + .mergeFrom(value) + .buildPartial(); + } else { + vectorDb_ = value; + } + onChanged(); + } else { + if (vectorDbCase_ == 3) { + pineconeBuilder_.mergeFrom(value); + } else { + pineconeBuilder_.setMessage(value); + } + } + vectorDbCase_ = 3; + return this; + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + public Builder clearPinecone() { + if (pineconeBuilder_ == null) { + if (vectorDbCase_ == 3) { + vectorDbCase_ = 0; + vectorDb_ = null; + onChanged(); + } + } else { + if (vectorDbCase_ == 3) { + vectorDbCase_ = 0; + vectorDb_ = null; + } + pineconeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder getPineconeBuilder() { + return getPineconeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder + getPineconeOrBuilder() { + if ((vectorDbCase_ == 3) && (pineconeBuilder_ != null)) { + return pineconeBuilder_.getMessageOrBuilder(); + } else { + if (vectorDbCase_ == 3) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the Pinecone.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder> + getPineconeFieldBuilder() { + if (pineconeBuilder_ == null) { + if (!(vectorDbCase_ == 3)) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.getDefaultInstance(); + } + pineconeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone) vectorDb_, + getParentForChildren(), + isClean()); + vectorDb_ = null; + } + vectorDbCase_ = 3; + onChanged(); + return pineconeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder> + vertexVectorSearchBuilder_; + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return Whether the vertexVectorSearch field is set. + */ + @java.lang.Override + public boolean hasVertexVectorSearch() { + return vectorDbCase_ == 6; + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return The vertexVectorSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + getVertexVectorSearch() { + if (vertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 6) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance(); + } else { + if (vectorDbCase_ == 6) { + return vertexVectorSearchBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + public Builder setVertexVectorSearch( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch value) { + if (vertexVectorSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vectorDb_ = value; + onChanged(); + } else { + vertexVectorSearchBuilder_.setMessage(value); + } + vectorDbCase_ = 6; + return this; + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + public Builder setVertexVectorSearch( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder + builderForValue) { + if (vertexVectorSearchBuilder_ == null) { + vectorDb_ = builderForValue.build(); + onChanged(); + } else { + vertexVectorSearchBuilder_.setMessage(builderForValue.build()); + } + vectorDbCase_ = 6; + return this; + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + public Builder mergeVertexVectorSearch( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch value) { + if (vertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 6 + && vectorDb_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance()) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) + vectorDb_) + .mergeFrom(value) + .buildPartial(); + } else { + vectorDb_ = value; + } + onChanged(); + } else { + if (vectorDbCase_ == 6) { + vertexVectorSearchBuilder_.mergeFrom(value); + } else { + vertexVectorSearchBuilder_.setMessage(value); + } + } + vectorDbCase_ = 6; + return this; + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + public Builder clearVertexVectorSearch() { + if (vertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 6) { + vectorDbCase_ = 0; + vectorDb_ = null; + onChanged(); + } + } else { + if (vectorDbCase_ == 6) { + vectorDbCase_ = 0; + vectorDb_ = null; + } + vertexVectorSearchBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder + getVertexVectorSearchBuilder() { + return getVertexVectorSearchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder + getVertexVectorSearchOrBuilder() { + if ((vectorDbCase_ == 6) && (vertexVectorSearchBuilder_ != null)) { + return vertexVectorSearchBuilder_.getMessageOrBuilder(); + } else { + if (vectorDbCase_ == 6) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The config for the Vertex Vector Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder> + getVertexVectorSearchFieldBuilder() { + if (vertexVectorSearchBuilder_ == null) { + if (!(vectorDbCase_ == 6)) { + vectorDb_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch + .getDefaultInstance(); + } + vertexVectorSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch) vectorDb_, + getParentForChildren(), + isClean()); + vectorDb_ = null; + } + vectorDbCase_ = 6; + onChanged(); + return vertexVectorSearchBuilder_; + } + + private com.google.cloud.aiplatform.v1.ApiAuth apiAuth_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth, + com.google.cloud.aiplatform.v1.ApiAuth.Builder, + com.google.cloud.aiplatform.v1.ApiAuthOrBuilder> + apiAuthBuilder_; + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return Whether the apiAuth field is set. + */ + public boolean hasApiAuth() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return The apiAuth. + */ + public com.google.cloud.aiplatform.v1.ApiAuth getApiAuth() { + if (apiAuthBuilder_ == null) { + return apiAuth_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance() + : apiAuth_; + } else { + return apiAuthBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public Builder setApiAuth(com.google.cloud.aiplatform.v1.ApiAuth value) { + if (apiAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiAuth_ = value; + } else { + apiAuthBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public Builder setApiAuth(com.google.cloud.aiplatform.v1.ApiAuth.Builder builderForValue) { + if (apiAuthBuilder_ == null) { + apiAuth_ = builderForValue.build(); + } else { + apiAuthBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public Builder mergeApiAuth(com.google.cloud.aiplatform.v1.ApiAuth value) { + if (apiAuthBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && apiAuth_ != null + && apiAuth_ != com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance()) { + getApiAuthBuilder().mergeFrom(value); + } else { + apiAuth_ = value; + } + } else { + apiAuthBuilder_.mergeFrom(value); + } + if (apiAuth_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public Builder clearApiAuth() { + bitField0_ = (bitField0_ & ~0x00000008); + apiAuth_ = null; + if (apiAuthBuilder_ != null) { + apiAuthBuilder_.dispose(); + apiAuthBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public com.google.cloud.aiplatform.v1.ApiAuth.Builder getApiAuthBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getApiAuthFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + public com.google.cloud.aiplatform.v1.ApiAuthOrBuilder getApiAuthOrBuilder() { + if (apiAuthBuilder_ != null) { + return apiAuthBuilder_.getMessageOrBuilder(); + } else { + return apiAuth_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.getDefaultInstance() + : apiAuth_; + } + } + /** + * + * + *
+     * Authentication config for the chosen Vector DB.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth, + com.google.cloud.aiplatform.v1.ApiAuth.Builder, + com.google.cloud.aiplatform.v1.ApiAuthOrBuilder> + getApiAuthFieldBuilder() { + if (apiAuthBuilder_ == null) { + apiAuthBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth, + com.google.cloud.aiplatform.v1.ApiAuth.Builder, + com.google.cloud.aiplatform.v1.ApiAuthOrBuilder>( + getApiAuth(), getParentForChildren(), isClean()); + apiAuth_ = null; + } + return apiAuthBuilder_; + } + + private com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig ragEmbeddingModelConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder> + ragEmbeddingModelConfigBuilder_; + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + public boolean hasRagEmbeddingModelConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig getRagEmbeddingModelConfig() { + if (ragEmbeddingModelConfigBuilder_ == null) { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } else { + return ragEmbeddingModelConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig value) { + if (ragEmbeddingModelConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragEmbeddingModelConfig_ = value; + } else { + ragEmbeddingModelConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder builderForValue) { + if (ragEmbeddingModelConfigBuilder_ == null) { + ragEmbeddingModelConfig_ = builderForValue.build(); + } else { + ragEmbeddingModelConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig value) { + if (ragEmbeddingModelConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ragEmbeddingModelConfig_ != null + && ragEmbeddingModelConfig_ + != com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance()) { + getRagEmbeddingModelConfigBuilder().mergeFrom(value); + } else { + ragEmbeddingModelConfig_ = value; + } + } else { + ragEmbeddingModelConfigBuilder_.mergeFrom(value); + } + if (ragEmbeddingModelConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearRagEmbeddingModelConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + ragEmbeddingModelConfig_ = null; + if (ragEmbeddingModelConfigBuilder_ != null) { + ragEmbeddingModelConfigBuilder_.dispose(); + ragEmbeddingModelConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder + getRagEmbeddingModelConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRagEmbeddingModelConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder() { + if (ragEmbeddingModelConfigBuilder_ != null) { + return ragEmbeddingModelConfigBuilder_.getMessageOrBuilder(); + } else { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder> + getRagEmbeddingModelConfigFieldBuilder() { + if (ragEmbeddingModelConfigBuilder_ == null) { + ragEmbeddingModelConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder>( + getRagEmbeddingModelConfig(), getParentForChildren(), isClean()); + ragEmbeddingModelConfig_ = null; + } + return ragEmbeddingModelConfigBuilder_; + } + + @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.RagVectorDbConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagVectorDbConfig 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.RagVectorDbConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfigOrBuilder.java new file mode 100644 index 000000000000..f1cf724edf1c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfigOrBuilder.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RagVectorDbConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return Whether the ragManagedDb field is set. + */ + boolean hasRagManagedDb(); + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + * + * @return The ragManagedDb. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb getRagManagedDb(); + /** + * + * + *
+   * The config for the RAG-managed Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb rag_managed_db = 1; + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder getRagManagedDbOrBuilder(); + + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return Whether the pinecone field is set. + */ + boolean hasPinecone(); + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + * + * @return The pinecone. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone getPinecone(); + /** + * + * + *
+   * The config for the Pinecone.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone pinecone = 3; + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.PineconeOrBuilder getPineconeOrBuilder(); + + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return Whether the vertexVectorSearch field is set. + */ + boolean hasVertexVectorSearch(); + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + * + * @return The vertexVectorSearch. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch getVertexVectorSearch(); + /** + * + * + *
+   * The config for the Vertex Vector Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch vertex_vector_search = 6; + * + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchOrBuilder + getVertexVectorSearchOrBuilder(); + + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return Whether the apiAuth field is set. + */ + boolean hasApiAuth(); + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + * + * @return The apiAuth. + */ + com.google.cloud.aiplatform.v1.ApiAuth getApiAuth(); + /** + * + * + *
+   * Authentication config for the chosen Vector DB.
+   * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth api_auth = 5; + */ + com.google.cloud.aiplatform.v1.ApiAuthOrBuilder getApiAuthOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + boolean hasRagEmbeddingModelConfig(); + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfig getRagEmbeddingModelConfig(); + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.RagVectorDbConfig.VectorDbCase getVectorDbCase(); +} 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 index 28c81ce1b01c..3a6425f9c55f 100644 --- 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 @@ -71,6 +71,7 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VERTEX_AI_SEARCH(2), + VERTEX_RAG_STORE(4), SOURCE_NOT_SET(0); private final int value; @@ -91,6 +92,8 @@ public static SourceCase forNumber(int value) { switch (value) { case 2: return VERTEX_AI_SEARCH; + case 4: + return VERTEX_RAG_STORE; case 0: return SOURCE_NOT_SET; default: @@ -158,6 +161,60 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance(); } + public static final int VERTEX_RAG_STORE_FIELD_NUMBER = 4; + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return sourceCase_ == 4; + } + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) source_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) source_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 3; private boolean disableAttribution_ = false; /** @@ -172,7 +229,7 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=138 + * google/cloud/aiplatform/v1/tool.proto;l=142 * @return The disableAttribution. */ @java.lang.Override @@ -201,6 +258,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableAttribution_ != false) { output.writeBool(3, disableAttribution_); } + if (sourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1.VertexRagStore) source_); + } getUnknownFields().writeTo(output); } @@ -218,6 +278,11 @@ public int getSerializedSize() { if (disableAttribution_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableAttribution_); } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1.VertexRagStore) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +304,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getVertexAiSearch().equals(other.getVertexAiSearch())) return false; break; + case 4: + if (!getVertexRagStore().equals(other.getVertexRagStore())) return false; + break; case 0: default: } @@ -260,6 +328,10 @@ public int hashCode() { hash = (37 * hash) + VERTEX_AI_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getVertexAiSearch().hashCode(); break; + case 4: + hash = (37 * hash) + VERTEX_RAG_STORE_FIELD_NUMBER; + hash = (53 * hash) + getVertexRagStore().hashCode(); + break; case 0: default: } @@ -405,6 +477,9 @@ public Builder clear() { if (vertexAiSearchBuilder_ != null) { vertexAiSearchBuilder_.clear(); } + if (vertexRagStoreBuilder_ != null) { + vertexRagStoreBuilder_.clear(); + } disableAttribution_ = false; sourceCase_ = 0; source_ = null; @@ -445,7 +520,7 @@ public com.google.cloud.aiplatform.v1.Retrieval buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1.Retrieval result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.disableAttribution_ = disableAttribution_; } } @@ -456,6 +531,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Retrieval result) if (sourceCase_ == 2 && vertexAiSearchBuilder_ != null) { result.source_ = vertexAiSearchBuilder_.build(); } + if (sourceCase_ == 4 && vertexRagStoreBuilder_ != null) { + result.source_ = vertexRagStoreBuilder_.build(); + } } @java.lang.Override @@ -512,6 +590,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Retrieval other) { mergeVertexAiSearch(other.getVertexAiSearch()); break; } + case VERTEX_RAG_STORE: + { + mergeVertexRagStore(other.getVertexRagStore()); + break; + } case SOURCE_NOT_SET: { break; @@ -552,9 +635,15 @@ public Builder mergeFrom( case 24: { disableAttribution_ = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + input.readMessage(getVertexRagStoreFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -797,6 +886,224 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO return vertexAiSearchBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder> + vertexRagStoreBuilder_; + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return sourceCase_ == 4; + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) source_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return vertexRagStoreBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + public Builder setVertexRagStore(com.google.cloud.aiplatform.v1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + public Builder setVertexRagStore( + com.google.cloud.aiplatform.v1.VertexRagStore.Builder builderForValue) { + if (vertexRagStoreBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + public Builder mergeVertexRagStore(com.google.cloud.aiplatform.v1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (sourceCase_ == 4 + && source_ != com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.VertexRagStore.newBuilder( + (com.google.cloud.aiplatform.v1.VertexRagStore) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + vertexRagStoreBuilder_.mergeFrom(value); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + public Builder clearVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + vertexRagStoreBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.Builder getVertexRagStoreBuilder() { + return getVertexRagStoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder() { + if ((sourceCase_ == 4) && (vertexRagStoreBuilder_ != null)) { + return vertexRagStoreBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexRagStore) source_; + } + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Set to use data source powered by Vertex RAG store.
+     * User data is uploaded via the VertexRagDataService.
+     * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder> + getVertexRagStoreFieldBuilder() { + if (vertexRagStoreBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + vertexRagStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder>( + (com.google.cloud.aiplatform.v1.VertexRagStore) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return vertexRagStoreBuilder_; + } + private boolean disableAttribution_; /** * @@ -810,7 +1117,7 @@ public com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=138 + * google/cloud/aiplatform/v1/tool.proto;l=142 * @return The disableAttribution. */ @java.lang.Override @@ -830,7 +1137,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=138 + * google/cloud/aiplatform/v1/tool.proto;l=142 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -838,7 +1145,7 @@ public boolean getDisableAttribution() { public Builder setDisableAttribution(boolean value) { disableAttribution_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -854,12 +1161,12 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=138 + * google/cloud/aiplatform/v1/tool.proto;l=142 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDisableAttribution() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); disableAttribution_ = false; onChanged(); return this; 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 index b6cf1ca9c51b..75c37b905160 100644 --- 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 @@ -59,6 +59,44 @@ public interface RetrievalOrBuilder */ com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder getVertexAiSearchOrBuilder(); + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return Whether the vertexRagStore field is set. + */ + boolean hasVertexRagStore(); + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + * + * @return The vertexRagStore. + */ + com.google.cloud.aiplatform.v1.VertexRagStore getVertexRagStore(); + /** + * + * + *
+   * Set to use data source powered by Vertex RAG store.
+   * User data is uploaded via the VertexRagDataService.
+   * 
+ * + * .google.cloud.aiplatform.v1.VertexRagStore vertex_rag_store = 4; + */ + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder(); + /** * * @@ -71,7 +109,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=138 + * google/cloud/aiplatform/v1/tool.proto;l=142 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java new file mode 100644 index 000000000000..8f1561b87f31 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java @@ -0,0 +1,3873 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsRequest} + */ +public final class RetrieveContextsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest) + RetrieveContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrieveContextsRequest.newBuilder() to construct. + private RetrieveContextsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrieveContextsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrieveContextsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.Builder.class); + } + + public interface VertexRagStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource> + getRagResourcesList(); + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + getRagResources(int index); + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRagResourcesCount(); + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder> + getRagResourcesOrBuilderList(); + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder + getRagResourcesOrBuilder(int index); + + /** + * + * + *
+     * Optional. Only return contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Deprecated + boolean hasVectorDistanceThreshold(); + /** + * + * + *
+     * Optional. Only return contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return The vectorDistanceThreshold. + */ + @java.lang.Deprecated + double getVectorDistanceThreshold(); + } + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore} + */ + public static final class VertexRagStore extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + VertexRagStoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexRagStore.newBuilder() to construct. + private VertexRagStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexRagStore() { + ragResources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexRagStore(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder.class); + } + + public interface RagResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + java.lang.String getRagCorpus(); + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + com.google.protobuf.ByteString getRagCorpusBytes(); + + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + java.util.List getRagFileIdsList(); + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + int getRagFileIdsCount(); + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + java.lang.String getRagFileIds(int index); + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + com.google.protobuf.ByteString getRagFileIdsBytes(int index); + } + /** + * + * + *
+     * The definition of the Rag resource.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource} + */ + public static final class RagResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) + RagResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagResource.newBuilder() to construct. + private RagResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagResource() { + ragCorpus_ = ""; + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder.class); + } + + public static final int RAG_CORPUS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ragCorpus_ = ""; + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + @java.lang.Override + public java.lang.String getRagCorpus() { + java.lang.Object ref = ragCorpus_; + 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(); + ragCorpus_ = s; + return s; + } + } + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRagCorpusBytes() { + java.lang.Object ref = ragCorpus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ragCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAG_FILE_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ragFileIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + public com.google.protobuf.ProtocolStringList getRagFileIdsList() { + return ragFileIds_; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + public int getRagFileIdsCount() { + return ragFileIds_.size(); + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + public java.lang.String getRagFileIds(int index) { + return ragFileIds_.get(index); + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set
+       * in rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + public com.google.protobuf.ByteString getRagFileIdsBytes(int index) { + return ragFileIds_.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(ragCorpus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ragCorpus_); + } + for (int i = 0; i < ragFileIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ragFileIds_.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(ragCorpus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ragCorpus_); + } + { + int dataSize = 0; + for (int i = 0; i < ragFileIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ragFileIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getRagFileIdsList().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.RetrieveContextsRequest.VertexRagStore.RagResource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource other = + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) obj; + + if (!getRagCorpus().equals(other.getRagCorpus())) return false; + if (!getRagFileIdsList().equals(other.getRagFileIdsList())) 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) + RAG_CORPUS_FIELD_NUMBER; + hash = (53 * hash) + getRagCorpus().hashCode(); + if (getRagFileIdsCount() > 0) { + hash = (37 * hash) + RAG_FILE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getRagFileIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore + .RagResource + 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.RetrieveContextsRequest.VertexRagStore.RagResource + 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 definition of the Rag resource.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragCorpus_ = ""; + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + build() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + buildPartial() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource result = + new com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragCorpus_ = ragCorpus_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + ragFileIds_.makeImmutable(); + result.ragFileIds_ = ragFileIds_; + } + } + + @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.RetrieveContextsRequest.VertexRagStore.RagResource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + other) { + if (other + == com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .getDefaultInstance()) return this; + if (!other.getRagCorpus().isEmpty()) { + ragCorpus_ = other.ragCorpus_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.ragFileIds_.isEmpty()) { + if (ragFileIds_.isEmpty()) { + ragFileIds_ = other.ragFileIds_; + bitField0_ |= 0x00000002; + } else { + ensureRagFileIdsIsMutable(); + ragFileIds_.addAll(other.ragFileIds_); + } + 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: + { + ragCorpus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRagFileIdsIsMutable(); + ragFileIds_.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 ragCorpus_ = ""; + /** + * + * + *
+         * Optional. RagCorpora resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+         * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + public java.lang.String getRagCorpus() { + java.lang.Object ref = ragCorpus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ragCorpus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Optional. RagCorpora resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+         * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + public com.google.protobuf.ByteString getRagCorpusBytes() { + java.lang.Object ref = ragCorpus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ragCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Optional. RagCorpora resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+         * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The ragCorpus to set. + * @return This builder for chaining. + */ + public Builder setRagCorpus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ragCorpus_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. RagCorpora resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+         * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRagCorpus() { + ragCorpus_ = getDefaultInstance().getRagCorpus(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. RagCorpora resource name.
+         * Format:
+         * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+         * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for ragCorpus to set. + * @return This builder for chaining. + */ + public Builder setRagCorpusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ragCorpus_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList ragFileIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRagFileIdsIsMutable() { + if (!ragFileIds_.isModifiable()) { + ragFileIds_ = new com.google.protobuf.LazyStringArrayList(ragFileIds_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + public com.google.protobuf.ProtocolStringList getRagFileIdsList() { + ragFileIds_.makeImmutable(); + return ragFileIds_; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + public int getRagFileIdsCount() { + return ragFileIds_.size(); + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + public java.lang.String getRagFileIds(int index) { + return ragFileIds_.get(index); + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + public com.google.protobuf.ByteString getRagFileIdsBytes(int index) { + return ragFileIds_.getByteString(index); + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The ragFileIds to set. + * @return This builder for chaining. + */ + public Builder setRagFileIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFileIdsIsMutable(); + ragFileIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addRagFileIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFileIdsIsMutable(); + ragFileIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addAllRagFileIds(java.lang.Iterable values) { + ensureRagFileIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragFileIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRagFileIds() { + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. rag_file_id. The files should be in the same rag_corpus set
+         * in rag_corpus field.
+         * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addRagFileIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRagFileIdsIsMutable(); + ragFileIds_.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.RetrieveContextsRequest.VertexRagStore.RagResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource) + private static final com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource(); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagResource 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.RetrieveContextsRequest.VertexRagStore.RagResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RAG_RESOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource> + ragResources_; + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource> + getRagResourcesList() { + return ragResources_; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder> + getRagResourcesOrBuilderList() { + return ragResources_; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRagResourcesCount() { + return ragResources_.size(); + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + getRagResources(int index) { + return ragResources_.get(index); + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder + getRagResourcesOrBuilder(int index) { + return ragResources_.get(index); + } + + public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER = 2; + private double vectorDistanceThreshold_ = 0D; + /** + * + * + *
+     * Optional. Only return contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistanceThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Only return contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistanceThreshold() { + return vectorDistanceThreshold_; + } + + 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.writeDouble(2, vectorDistanceThreshold_); + } + for (int i = 0; i < ragResources_.size(); i++) { + output.writeMessage(3, ragResources_.get(i)); + } + 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.computeDoubleSize(2, vectorDistanceThreshold_); + } + for (int i = 0; i < ragResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, ragResources_.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.RetrieveContextsRequest.VertexRagStore)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore other = + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) obj; + + if (!getRagResourcesList().equals(other.getRagResourcesList())) return false; + if (hasVectorDistanceThreshold() != other.hasVectorDistanceThreshold()) return false; + if (hasVectorDistanceThreshold()) { + if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold())) 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 (getRagResourcesCount() > 0) { + hash = (37 * hash) + RAG_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getRagResourcesList().hashCode(); + } + if (hasVectorDistanceThreshold()) { + hash = (37 * hash) + VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + 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.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore 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.RetrieveContextsRequest.VertexRagStore 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 data source for Vertex RagStore.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragResourcesBuilder_ == null) { + ragResources_ = java.util.Collections.emptyList(); + } else { + ragResources_ = null; + ragResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + vectorDistanceThreshold_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore build() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore buildPartial() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore result = + new com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore result) { + if (ragResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ragResources_ = java.util.Collections.unmodifiableList(ragResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ragResources_ = ragResources_; + } else { + result.ragResources_ = ragResourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vectorDistanceThreshold_ = vectorDistanceThreshold_; + 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.RetrieveContextsRequest.VertexRagStore) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore other) { + if (other + == com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance()) return this; + if (ragResourcesBuilder_ == null) { + if (!other.ragResources_.isEmpty()) { + if (ragResources_.isEmpty()) { + ragResources_ = other.ragResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRagResourcesIsMutable(); + ragResources_.addAll(other.ragResources_); + } + onChanged(); + } + } else { + if (!other.ragResources_.isEmpty()) { + if (ragResourcesBuilder_.isEmpty()) { + ragResourcesBuilder_.dispose(); + ragResourcesBuilder_ = null; + ragResources_ = other.ragResources_; + bitField0_ = (bitField0_ & ~0x00000001); + ragResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRagResourcesFieldBuilder() + : null; + } else { + ragResourcesBuilder_.addAllMessages(other.ragResources_); + } + } + } + if (other.hasVectorDistanceThreshold()) { + setVectorDistanceThreshold(other.getVectorDistanceThreshold()); + } + 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 17: + { + vectorDistanceThreshold_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 26: + { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + m = + input.readMessage( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource.parser(), + extensionRegistry); + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(m); + } else { + ragResourcesBuilder_.addMessage(m); + } + 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< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource> + ragResources_ = java.util.Collections.emptyList(); + + private void ensureRagResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ragResources_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource>(ragResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder> + ragResourcesBuilder_; + + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource> + getRagResourcesList() { + if (ragResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ragResources_); + } else { + return ragResourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRagResourcesCount() { + if (ragResourcesBuilder_ == null) { + return ragResources_.size(); + } else { + return ragResourcesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + getRagResources(int index) { + if (ragResourcesBuilder_ == null) { + return ragResources_.get(index); + } else { + return ragResourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagResources( + int index, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.set(index, value); + onChanged(); + } else { + ragResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagResources( + int index, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource.Builder + builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.set(index, builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.add(value); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + int index, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.add(index, value); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource.Builder + builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + int index, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource.Builder + builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(index, builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRagResources( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResource> + values) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragResources_); + onChanged(); + } else { + ragResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagResources() { + if (ragResourcesBuilder_ == null) { + ragResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ragResourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRagResources(int index) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.remove(index); + onChanged(); + } else { + ragResourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder + getRagResourcesBuilder(int index) { + return getRagResourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder + getRagResourcesOrBuilder(int index) { + if (ragResourcesBuilder_ == null) { + return ragResources_.get(index); + } else { + return ragResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder> + getRagResourcesOrBuilderList() { + if (ragResourcesBuilder_ != null) { + return ragResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ragResources_); + } + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder + addRagResourcesBuilder() { + return getRagResourcesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder + addRagResourcesBuilder(int index) { + return getRagResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. The representation of the rag source. It can be used to specify
+       * corpus only or ragfiles. Currently only support one corpus or multiple
+       * files from one corpus. In the future we may open up multiple corpora
+       * support.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder> + getRagResourcesBuilderList() { + return getRagResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder> + getRagResourcesFieldBuilder() { + if (ragResourcesBuilder_ == null) { + ragResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource + .Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .RagResourceOrBuilder>( + ragResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + ragResources_ = null; + } + return ragResourcesBuilder_; + } + + private double vectorDistanceThreshold_; + /** + * + * + *
+       * Optional. Only return contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistanceThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. Only return contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistanceThreshold() { + return vectorDistanceThreshold_; + } + /** + * + * + *
+       * Optional. Only return contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @param value The vectorDistanceThreshold to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setVectorDistanceThreshold(double value) { + + vectorDistanceThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only return contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=117 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearVectorDistanceThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + vectorDistanceThreshold_ = 0D; + 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.RetrieveContextsRequest.VertexRagStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + private static final com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore(); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexRagStore 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.RetrieveContextsRequest.VertexRagStore + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + 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 { + VERTEX_RAG_STORE(2), + 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 VERTEX_RAG_STORE; + 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 VERTEX_RAG_STORE_FIELD_NUMBER = 2; + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 2; + } + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore getVertexRagStore() { + if (dataSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder + getVertexRagStoreOrBuilder() { + if (dataSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to retrieve
+   * RagContexts. The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to retrieve
+   * RagContexts. The users must have permission to make a call in the project.
+   * 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 QUERY_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.RagQuery query_; + /** + * + * + *
+   * Required. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagQuery getQuery() { + return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_; + } + /** + * + * + *
+   * Required. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() { + return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_; + } + + 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 (dataSourceCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQuery()); + } + 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 (dataSourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQuery()); + } + 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.RetrieveContextsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RetrieveContextsRequest other = + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 2: + if (!getVertexRagStore().equals(other.getVertexRagStore())) 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(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + switch (dataSourceCase_) { + case 2: + hash = (37 * hash) + VERTEX_RAG_STORE_FIELD_NUMBER; + hash = (53 * hash) + getVertexRagStore().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest 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.RetrieveContextsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest 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.RetrieveContextsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest 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.RetrieveContextsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest 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.RetrieveContextsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest 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.RetrieveContextsRequest 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.RetrieveContextsRequest 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.RetrieveContextsRequest 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
+   * [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RetrieveContextsRequest) + com.google.cloud.aiplatform.v1.RetrieveContextsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.class, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RetrieveContextsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vertexRagStoreBuilder_ != null) { + vertexRagStoreBuilder_.clear(); + } + parent_ = ""; + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest build() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest buildPartial() { + com.google.cloud.aiplatform.v1.RetrieveContextsRequest result = + new com.google.cloud.aiplatform.v1.RetrieveContextsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RetrieveContextsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.RetrieveContextsRequest result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 2 && vertexRagStoreBuilder_ != null) { + result.dataSource_ = vertexRagStoreBuilder_.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.RetrieveContextsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.RetrieveContextsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RetrieveContextsRequest other) { + if (other == com.google.cloud.aiplatform.v1.RetrieveContextsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + switch (other.getDataSourceCase()) { + case VERTEX_RAG_STORE: + { + mergeVertexRagStore(other.getVertexRagStore()); + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getVertexRagStoreFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry); + 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 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.aiplatform.v1.RetrieveContextsRequest.VertexRagStore, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder> + vertexRagStoreBuilder_; + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 2; + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + getVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + dataSource_; + } + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } else { + if (dataSourceCase_ == 2) { + return vertexRagStoreBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + public Builder setVertexRagStore( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + public Builder setVertexRagStore( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder + builderForValue) { + if (vertexRagStoreBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + public Builder mergeVertexRagStore( + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 2 + && dataSource_ + != com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.newBuilder( + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 2) { + vertexRagStoreBuilder_.mergeFrom(value); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + public Builder clearVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 2) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 2) { + dataSourceCase_ = 0; + dataSource_ = null; + } + vertexRagStoreBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder + getVertexRagStoreBuilder() { + return getVertexRagStoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder + getVertexRagStoreOrBuilder() { + if ((dataSourceCase_ == 2) && (vertexRagStoreBuilder_ != null)) { + return vertexRagStoreBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) + dataSource_; + } + return com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The data source for Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder> + getVertexRagStoreFieldBuilder() { + if (vertexRagStoreBuilder_ == null) { + if (!(dataSourceCase_ == 2)) { + dataSource_ = + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore + .getDefaultInstance(); + } + vertexRagStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder>( + (com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore) dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 2; + onChanged(); + return vertexRagStoreBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to retrieve
+     * RagContexts. The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to retrieve
+     * RagContexts. The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to retrieve
+     * RagContexts. The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to retrieve
+     * RagContexts. The users must have permission to make a call in the project.
+     * 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_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to retrieve
+     * RagContexts. The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.RagQuery query_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagQuery, + com.google.cloud.aiplatform.v1.RagQuery.Builder, + com.google.cloud.aiplatform.v1.RagQueryOrBuilder> + queryBuilder_; + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + public com.google.cloud.aiplatform.v1.RagQuery getQuery() { + if (queryBuilder_ == null) { + return query_ == null + ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() + : query_; + } else { + return queryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + } else { + queryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQuery(com.google.cloud.aiplatform.v1.RagQuery value) { + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && query_ != null + && query_ != com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()) { + getQueryBuilder().mergeFrom(value); + } else { + query_ = value; + } + } else { + queryBuilder_.mergeFrom(value); + } + if (query_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000004); + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagQuery.Builder getQueryBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null + ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() + : query_; + } + } + /** + * + * + *
+     * Required. Single RAG retrieve query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagQuery, + com.google.cloud.aiplatform.v1.RagQuery.Builder, + com.google.cloud.aiplatform.v1.RagQueryOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagQuery, + com.google.cloud.aiplatform.v1.RagQuery.Builder, + com.google.cloud.aiplatform.v1.RagQueryOrBuilder>( + getQuery(), getParentForChildren(), isClean()); + query_ = null; + } + return queryBuilder_; + } + + @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.RetrieveContextsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RetrieveContextsRequest) + private static final com.google.cloud.aiplatform.v1.RetrieveContextsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RetrieveContextsRequest(); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveContextsRequest 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.RetrieveContextsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequestOrBuilder.java new file mode 100644 index 000000000000..fe758cab1315 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RetrieveContextsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RetrieveContextsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return Whether the vertexRagStore field is set. + */ + boolean hasVertexRagStore(); + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + * + * @return The vertexRagStore. + */ + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore getVertexRagStore(); + /** + * + * + *
+   * The data source for Vertex RagStore.
+   * 
+ * + * .google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore vertex_rag_store = 2; + * + */ + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreOrBuilder + getVertexRagStoreOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the Location from which to retrieve
+   * RagContexts. The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to retrieve
+   * RagContexts. The users must have permission to make a call in the project.
+   * 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. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + /** + * + * + *
+   * Required. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + com.google.cloud.aiplatform.v1.RagQuery getQuery(); + /** + * + * + *
+   * Required. Single RAG retrieve query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagQuery query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder(); + + com.google.cloud.aiplatform.v1.RetrieveContextsRequest.DataSourceCase getDataSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponse.java new file mode 100644 index 000000000000..bb4c35a1ac8c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponse.java @@ -0,0 +1,724 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsResponse} + */ +public final class RetrieveContextsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RetrieveContextsResponse) + RetrieveContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrieveContextsResponse.newBuilder() to construct. + private RetrieveContextsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrieveContextsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrieveContextsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsResponse.class, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse.Builder.class); + } + + private int bitField0_; + public static final int CONTEXTS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.RagContexts contexts_; + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return Whether the contexts field is set. + */ + @java.lang.Override + public boolean hasContexts() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return The contexts. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContexts getContexts() { + return contexts_ == null + ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance() + : contexts_; + } + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() { + return contexts_ == null + ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance() + : contexts_; + } + + 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, getContexts()); + } + 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, getContexts()); + } + 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.RetrieveContextsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RetrieveContextsResponse other = + (com.google.cloud.aiplatform.v1.RetrieveContextsResponse) obj; + + if (hasContexts() != other.hasContexts()) return false; + if (hasContexts()) { + if (!getContexts().equals(other.getContexts())) 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 (hasContexts()) { + hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getContexts().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse 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.RetrieveContextsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse 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.RetrieveContextsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse 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.RetrieveContextsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse 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.RetrieveContextsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse 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.RetrieveContextsResponse 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.RetrieveContextsResponse 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.RetrieveContextsResponse 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
+   * [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrieveContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RetrieveContextsResponse) + com.google.cloud.aiplatform.v1.RetrieveContextsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrieveContextsResponse.class, + com.google.cloud.aiplatform.v1.RetrieveContextsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RetrieveContextsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContextsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contexts_ = null; + if (contextsBuilder_ != null) { + contextsBuilder_.dispose(); + contextsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RetrieveContextsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsResponse build() { + com.google.cloud.aiplatform.v1.RetrieveContextsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrieveContextsResponse buildPartial() { + com.google.cloud.aiplatform.v1.RetrieveContextsResponse result = + new com.google.cloud.aiplatform.v1.RetrieveContextsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RetrieveContextsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contexts_ = contextsBuilder_ == null ? contexts_ : contextsBuilder_.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.RetrieveContextsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.RetrieveContextsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RetrieveContextsResponse other) { + if (other == com.google.cloud.aiplatform.v1.RetrieveContextsResponse.getDefaultInstance()) + return this; + if (other.hasContexts()) { + mergeContexts(other.getContexts()); + } + 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(getContextsFieldBuilder().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.RagContexts contexts_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts, + com.google.cloud.aiplatform.v1.RagContexts.Builder, + com.google.cloud.aiplatform.v1.RagContextsOrBuilder> + contextsBuilder_; + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return Whether the contexts field is set. + */ + public boolean hasContexts() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return The contexts. + */ + public com.google.cloud.aiplatform.v1.RagContexts getContexts() { + if (contextsBuilder_ == null) { + return contexts_ == null + ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance() + : contexts_; + } else { + return contextsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts value) { + if (contextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contexts_ = value; + } else { + contextsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts.Builder builderForValue) { + if (contextsBuilder_ == null) { + contexts_ = builderForValue.build(); + } else { + contextsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public Builder mergeContexts(com.google.cloud.aiplatform.v1.RagContexts value) { + if (contextsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && contexts_ != null + && contexts_ != com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()) { + getContextsBuilder().mergeFrom(value); + } else { + contexts_ = value; + } + } else { + contextsBuilder_.mergeFrom(value); + } + if (contexts_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public Builder clearContexts() { + bitField0_ = (bitField0_ & ~0x00000001); + contexts_ = null; + if (contextsBuilder_ != null) { + contextsBuilder_.dispose(); + contextsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContexts.Builder getContextsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContextsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() { + if (contextsBuilder_ != null) { + return contextsBuilder_.getMessageOrBuilder(); + } else { + return contexts_ == null + ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance() + : contexts_; + } + } + /** + * + * + *
+     * The contexts of the query.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts, + com.google.cloud.aiplatform.v1.RagContexts.Builder, + com.google.cloud.aiplatform.v1.RagContextsOrBuilder> + getContextsFieldBuilder() { + if (contextsBuilder_ == null) { + contextsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagContexts, + com.google.cloud.aiplatform.v1.RagContexts.Builder, + com.google.cloud.aiplatform.v1.RagContextsOrBuilder>( + getContexts(), getParentForChildren(), isClean()); + contexts_ = null; + } + return contextsBuilder_; + } + + @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.RetrieveContextsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RetrieveContextsResponse) + private static final com.google.cloud.aiplatform.v1.RetrieveContextsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RetrieveContextsResponse(); + } + + public static com.google.cloud.aiplatform.v1.RetrieveContextsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveContextsResponse 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.RetrieveContextsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponseOrBuilder.java new file mode 100644 index 000000000000..5010501bf5a6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsResponseOrBuilder.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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RetrieveContextsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RetrieveContextsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return Whether the contexts field is set. + */ + boolean hasContexts(); + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + * + * @return The contexts. + */ + com.google.cloud.aiplatform.v1.RagContexts getContexts(); + /** + * + * + *
+   * The contexts of the query.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagContexts contexts = 1; + */ + com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSources.java new file mode 100644 index 000000000000..bc1c2b40b5b0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSources.java @@ -0,0 +1,3881 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The SharePointSources to pass to ImportRagFiles.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SharePointSources} + */ +public final class SharePointSources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SharePointSources) + SharePointSourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SharePointSources.newBuilder() to construct. + private SharePointSources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SharePointSources() { + sharePointSources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SharePointSources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SharePointSources.class, + com.google.cloud.aiplatform.v1.SharePointSources.Builder.class); + } + + public interface SharePointSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SharePointSources.SharePointSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return Whether the sharepointFolderPath field is set. + */ + boolean hasSharepointFolderPath(); + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The sharepointFolderPath. + */ + java.lang.String getSharepointFolderPath(); + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The bytes for sharepointFolderPath. + */ + com.google.protobuf.ByteString getSharepointFolderPathBytes(); + + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return Whether the sharepointFolderId field is set. + */ + boolean hasSharepointFolderId(); + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The sharepointFolderId. + */ + java.lang.String getSharepointFolderId(); + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The bytes for sharepointFolderId. + */ + com.google.protobuf.ByteString getSharepointFolderIdBytes(); + + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return Whether the driveName field is set. + */ + boolean hasDriveName(); + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return The driveName. + */ + java.lang.String getDriveName(); + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return The bytes for driveName. + */ + com.google.protobuf.ByteString getDriveNameBytes(); + + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return Whether the driveId field is set. + */ + boolean hasDriveId(); + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return The driveId. + */ + java.lang.String getDriveId(); + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return The bytes for driveId. + */ + com.google.protobuf.ByteString getDriveIdBytes(); + + /** + * + * + *
+     * The Application ID for the app registered in Microsoft Azure Portal.
+     * The application must also be configured with MS Graph permissions
+     * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+     * 
+ * + * string client_id = 1; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+     * The Application ID for the app registered in Microsoft Azure Portal.
+     * The application must also be configured with MS Graph permissions
+     * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+     * 
+ * + * string client_id = 1; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return Whether the clientSecret field is set. + */ + boolean hasClientSecret(); + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return The clientSecret. + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getClientSecret(); + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getClientSecretOrBuilder(); + + /** + * + * + *
+     * Unique identifier of the Azure Active Directory Instance.
+     * 
+ * + * string tenant_id = 3; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + /** + * + * + *
+     * Unique identifier of the Azure Active Directory Instance.
+     * 
+ * + * string tenant_id = 3; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); + + /** + * + * + *
+     * The name of the SharePoint site to download from. This can be the site
+     * name or the site id.
+     * 
+ * + * string sharepoint_site_name = 4; + * + * @return The sharepointSiteName. + */ + java.lang.String getSharepointSiteName(); + /** + * + * + *
+     * The name of the SharePoint site to download from. This can be the site
+     * name or the site id.
+     * 
+ * + * string sharepoint_site_name = 4; + * + * @return The bytes for sharepointSiteName. + */ + com.google.protobuf.ByteString getSharepointSiteNameBytes(); + + /** + * + * + *
+     * Output only. The SharePoint file id. Output only.
+     * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileId. + */ + java.lang.String getFileId(); + /** + * + * + *
+     * Output only. The SharePoint file id. Output only.
+     * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileId. + */ + com.google.protobuf.ByteString getFileIdBytes(); + + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.FolderSourceCase + getFolderSourceCase(); + + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.DriveSourceCase + getDriveSourceCase(); + } + /** + * + * + *
+   * An individual SharePointSource.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SharePointSources.SharePointSource} + */ + public static final class SharePointSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SharePointSources.SharePointSource) + SharePointSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SharePointSource.newBuilder() to construct. + private SharePointSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SharePointSource() { + clientId_ = ""; + tenantId_ = ""; + sharepointSiteName_ = ""; + fileId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SharePointSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.class, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder.class); + } + + private int bitField0_; + private int folderSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object folderSource_; + + public enum FolderSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SHAREPOINT_FOLDER_PATH(5), + SHAREPOINT_FOLDER_ID(6), + FOLDERSOURCE_NOT_SET(0); + private final int value; + + private FolderSourceCase(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 FolderSourceCase valueOf(int value) { + return forNumber(value); + } + + public static FolderSourceCase forNumber(int value) { + switch (value) { + case 5: + return SHAREPOINT_FOLDER_PATH; + case 6: + return SHAREPOINT_FOLDER_ID; + case 0: + return FOLDERSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FolderSourceCase getFolderSourceCase() { + return FolderSourceCase.forNumber(folderSourceCase_); + } + + private int driveSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object driveSource_; + + public enum DriveSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DRIVE_NAME(7), + DRIVE_ID(8), + DRIVESOURCE_NOT_SET(0); + private final int value; + + private DriveSourceCase(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 DriveSourceCase valueOf(int value) { + return forNumber(value); + } + + public static DriveSourceCase forNumber(int value) { + switch (value) { + case 7: + return DRIVE_NAME; + case 8: + return DRIVE_ID; + case 0: + return DRIVESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DriveSourceCase getDriveSourceCase() { + return DriveSourceCase.forNumber(driveSourceCase_); + } + + public static final int SHAREPOINT_FOLDER_PATH_FIELD_NUMBER = 5; + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return Whether the sharepointFolderPath field is set. + */ + public boolean hasSharepointFolderPath() { + return folderSourceCase_ == 5; + } + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The sharepointFolderPath. + */ + public java.lang.String getSharepointFolderPath() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 5) { + ref = folderSource_; + } + 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 (folderSourceCase_ == 5) { + folderSource_ = s; + } + return s; + } + } + /** + * + * + *
+     * The path of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The bytes for sharepointFolderPath. + */ + public com.google.protobuf.ByteString getSharepointFolderPathBytes() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 5) { + ref = folderSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (folderSourceCase_ == 5) { + folderSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAREPOINT_FOLDER_ID_FIELD_NUMBER = 6; + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return Whether the sharepointFolderId field is set. + */ + public boolean hasSharepointFolderId() { + return folderSourceCase_ == 6; + } + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The sharepointFolderId. + */ + public java.lang.String getSharepointFolderId() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 6) { + ref = folderSource_; + } + 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 (folderSourceCase_ == 6) { + folderSource_ = s; + } + return s; + } + } + /** + * + * + *
+     * The ID of the SharePoint folder to download from.
+     * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The bytes for sharepointFolderId. + */ + public com.google.protobuf.ByteString getSharepointFolderIdBytes() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 6) { + ref = folderSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (folderSourceCase_ == 6) { + folderSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DRIVE_NAME_FIELD_NUMBER = 7; + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return Whether the driveName field is set. + */ + public boolean hasDriveName() { + return driveSourceCase_ == 7; + } + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return The driveName. + */ + public java.lang.String getDriveName() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 7) { + ref = driveSource_; + } + 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 (driveSourceCase_ == 7) { + driveSource_ = s; + } + return s; + } + } + /** + * + * + *
+     * The name of the drive to download from.
+     * 
+ * + * string drive_name = 7; + * + * @return The bytes for driveName. + */ + public com.google.protobuf.ByteString getDriveNameBytes() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 7) { + ref = driveSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driveSourceCase_ == 7) { + driveSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DRIVE_ID_FIELD_NUMBER = 8; + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return Whether the driveId field is set. + */ + public boolean hasDriveId() { + return driveSourceCase_ == 8; + } + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return The driveId. + */ + public java.lang.String getDriveId() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 8) { + ref = driveSource_; + } + 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 (driveSourceCase_ == 8) { + driveSource_ = s; + } + return s; + } + } + /** + * + * + *
+     * The ID of the drive to download from.
+     * 
+ * + * string drive_id = 8; + * + * @return The bytes for driveId. + */ + public com.google.protobuf.ByteString getDriveIdBytes() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 8) { + ref = driveSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driveSourceCase_ == 8) { + driveSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * + * + *
+     * The Application ID for the app registered in Microsoft Azure Portal.
+     * The application must also be configured with MS Graph permissions
+     * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+     * 
+ * + * string client_id = 1; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + /** + * + * + *
+     * The Application ID for the app registered in Microsoft Azure Portal.
+     * The application must also be configured with MS Graph permissions
+     * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+     * 
+ * + * string client_id = 1; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig clientSecret_; + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return Whether the clientSecret field is set. + */ + @java.lang.Override + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return The clientSecret. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getClientSecret() { + return clientSecret_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : clientSecret_; + } + /** + * + * + *
+     * The application secret for the app registered in Azure.
+     * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getClientSecretOrBuilder() { + return clientSecret_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : clientSecret_; + } + + public static final int TENANT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + /** + * + * + *
+     * Unique identifier of the Azure Active Directory Instance.
+     * 
+ * + * string tenant_id = 3; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + 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(); + tenantId_ = s; + return s; + } + } + /** + * + * + *
+     * Unique identifier of the Azure Active Directory Instance.
+     * 
+ * + * string tenant_id = 3; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAREPOINT_SITE_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sharepointSiteName_ = ""; + /** + * + * + *
+     * The name of the SharePoint site to download from. This can be the site
+     * name or the site id.
+     * 
+ * + * string sharepoint_site_name = 4; + * + * @return The sharepointSiteName. + */ + @java.lang.Override + public java.lang.String getSharepointSiteName() { + java.lang.Object ref = sharepointSiteName_; + 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(); + sharepointSiteName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the SharePoint site to download from. This can be the site
+     * name or the site id.
+     * 
+ * + * string sharepoint_site_name = 4; + * + * @return The bytes for sharepointSiteName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharepointSiteNameBytes() { + java.lang.Object ref = sharepointSiteName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharepointSiteName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileId_ = ""; + /** + * + * + *
+     * Output only. The SharePoint file id. Output only.
+     * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileId. + */ + @java.lang.Override + public java.lang.String getFileId() { + java.lang.Object ref = fileId_; + 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(); + fileId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The SharePoint file id. Output only.
+     * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileIdBytes() { + java.lang.Object ref = fileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileId_ = 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(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getClientSecret()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharepointSiteName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sharepointSiteName_); + } + if (folderSourceCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, folderSource_); + } + if (folderSourceCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, folderSource_); + } + if (driveSourceCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, driveSource_); + } + if (driveSourceCase_ == 8) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, driveSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, fileId_); + } + 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(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientSecret()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sharepointSiteName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sharepointSiteName_); + } + if (folderSourceCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, folderSource_); + } + if (folderSourceCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, folderSource_); + } + if (driveSourceCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, driveSource_); + } + if (driveSourceCase_ == 8) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, driveSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, fileId_); + } + 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.SharePointSources.SharePointSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource other = + (com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource) obj; + + if (!getClientId().equals(other.getClientId())) return false; + if (hasClientSecret() != other.hasClientSecret()) return false; + if (hasClientSecret()) { + if (!getClientSecret().equals(other.getClientSecret())) return false; + } + if (!getTenantId().equals(other.getTenantId())) return false; + if (!getSharepointSiteName().equals(other.getSharepointSiteName())) return false; + if (!getFileId().equals(other.getFileId())) return false; + if (!getFolderSourceCase().equals(other.getFolderSourceCase())) return false; + switch (folderSourceCase_) { + case 5: + if (!getSharepointFolderPath().equals(other.getSharepointFolderPath())) return false; + break; + case 6: + if (!getSharepointFolderId().equals(other.getSharepointFolderId())) return false; + break; + case 0: + default: + } + if (!getDriveSourceCase().equals(other.getDriveSourceCase())) return false; + switch (driveSourceCase_) { + case 7: + if (!getDriveName().equals(other.getDriveName())) return false; + break; + case 8: + if (!getDriveId().equals(other.getDriveId())) 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) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + if (hasClientSecret()) { + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + } + hash = (37 * hash) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + hash = (37 * hash) + SHAREPOINT_SITE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSharepointSiteName().hashCode(); + hash = (37 * hash) + FILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFileId().hashCode(); + switch (folderSourceCase_) { + case 5: + hash = (37 * hash) + SHAREPOINT_FOLDER_PATH_FIELD_NUMBER; + hash = (53 * hash) + getSharepointFolderPath().hashCode(); + break; + case 6: + hash = (37 * hash) + SHAREPOINT_FOLDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getSharepointFolderId().hashCode(); + break; + case 0: + default: + } + switch (driveSourceCase_) { + case 7: + hash = (37 * hash) + DRIVE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDriveName().hashCode(); + break; + case 8: + hash = (37 * hash) + DRIVE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDriveId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + 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.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource 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.SharePointSources.SharePointSource 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 individual SharePointSource.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SharePointSources.SharePointSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SharePointSources.SharePointSource) + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.class, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClientSecretFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientId_ = ""; + clientSecret_ = null; + if (clientSecretBuilder_ != null) { + clientSecretBuilder_.dispose(); + clientSecretBuilder_ = null; + } + tenantId_ = ""; + sharepointSiteName_ = ""; + fileId_ = ""; + folderSourceCase_ = 0; + folderSource_ = null; + driveSourceCase_ = 0; + driveSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_SharePointSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource build() { + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource buildPartial() { + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource result = + new com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clientId_ = clientId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clientSecret_ = + clientSecretBuilder_ == null ? clientSecret_ : clientSecretBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tenantId_ = tenantId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.sharepointSiteName_ = sharepointSiteName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fileId_ = fileId_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource result) { + result.folderSourceCase_ = folderSourceCase_; + result.folderSource_ = this.folderSource_; + result.driveSourceCase_ = driveSourceCase_; + result.driveSource_ = this.driveSource_; + } + + @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.SharePointSources.SharePointSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource other) { + if (other + == com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + .getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasClientSecret()) { + mergeClientSecret(other.getClientSecret()); + } + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getSharepointSiteName().isEmpty()) { + sharepointSiteName_ = other.sharepointSiteName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getFileId().isEmpty()) { + fileId_ = other.fileId_; + bitField0_ |= 0x00000100; + onChanged(); + } + switch (other.getFolderSourceCase()) { + case SHAREPOINT_FOLDER_PATH: + { + folderSourceCase_ = 5; + folderSource_ = other.folderSource_; + onChanged(); + break; + } + case SHAREPOINT_FOLDER_ID: + { + folderSourceCase_ = 6; + folderSource_ = other.folderSource_; + onChanged(); + break; + } + case FOLDERSOURCE_NOT_SET: + { + break; + } + } + switch (other.getDriveSourceCase()) { + case DRIVE_NAME: + { + driveSourceCase_ = 7; + driveSource_ = other.driveSource_; + onChanged(); + break; + } + case DRIVE_ID: + { + driveSourceCase_ = 8; + driveSource_ = other.driveSource_; + onChanged(); + break; + } + case DRIVESOURCE_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: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + input.readMessage(getClientSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 18 + case 26: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + sharepointSiteName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + folderSourceCase_ = 5; + folderSource_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + folderSourceCase_ = 6; + folderSource_ = s; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + driveSourceCase_ = 7; + driveSource_ = s; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + driveSourceCase_ = 8; + driveSource_ = s; + break; + } // case 66 + case 74: + { + fileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 folderSourceCase_ = 0; + private java.lang.Object folderSource_; + + public FolderSourceCase getFolderSourceCase() { + return FolderSourceCase.forNumber(folderSourceCase_); + } + + public Builder clearFolderSource() { + folderSourceCase_ = 0; + folderSource_ = null; + onChanged(); + return this; + } + + private int driveSourceCase_ = 0; + private java.lang.Object driveSource_; + + public DriveSourceCase getDriveSourceCase() { + return DriveSourceCase.forNumber(driveSourceCase_); + } + + public Builder clearDriveSource() { + driveSourceCase_ = 0; + driveSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @return Whether the sharepointFolderPath field is set. + */ + @java.lang.Override + public boolean hasSharepointFolderPath() { + return folderSourceCase_ == 5; + } + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The sharepointFolderPath. + */ + @java.lang.Override + public java.lang.String getSharepointFolderPath() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 5) { + ref = folderSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (folderSourceCase_ == 5) { + folderSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @return The bytes for sharepointFolderPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharepointFolderPathBytes() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 5) { + ref = folderSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (folderSourceCase_ == 5) { + folderSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @param value The sharepointFolderPath to set. + * @return This builder for chaining. + */ + public Builder setSharepointFolderPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folderSourceCase_ = 5; + folderSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @return This builder for chaining. + */ + public Builder clearSharepointFolderPath() { + if (folderSourceCase_ == 5) { + folderSourceCase_ = 0; + folderSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The path of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_path = 5; + * + * @param value The bytes for sharepointFolderPath to set. + * @return This builder for chaining. + */ + public Builder setSharepointFolderPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folderSourceCase_ = 5; + folderSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @return Whether the sharepointFolderId field is set. + */ + @java.lang.Override + public boolean hasSharepointFolderId() { + return folderSourceCase_ == 6; + } + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The sharepointFolderId. + */ + @java.lang.Override + public java.lang.String getSharepointFolderId() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 6) { + ref = folderSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (folderSourceCase_ == 6) { + folderSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @return The bytes for sharepointFolderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharepointFolderIdBytes() { + java.lang.Object ref = ""; + if (folderSourceCase_ == 6) { + ref = folderSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (folderSourceCase_ == 6) { + folderSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @param value The sharepointFolderId to set. + * @return This builder for chaining. + */ + public Builder setSharepointFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folderSourceCase_ = 6; + folderSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearSharepointFolderId() { + if (folderSourceCase_ == 6) { + folderSourceCase_ = 0; + folderSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The ID of the SharePoint folder to download from.
+       * 
+ * + * string sharepoint_folder_id = 6; + * + * @param value The bytes for sharepointFolderId to set. + * @return This builder for chaining. + */ + public Builder setSharepointFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folderSourceCase_ = 6; + folderSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @return Whether the driveName field is set. + */ + @java.lang.Override + public boolean hasDriveName() { + return driveSourceCase_ == 7; + } + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @return The driveName. + */ + @java.lang.Override + public java.lang.String getDriveName() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 7) { + ref = driveSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (driveSourceCase_ == 7) { + driveSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @return The bytes for driveName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDriveNameBytes() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 7) { + ref = driveSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driveSourceCase_ == 7) { + driveSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @param value The driveName to set. + * @return This builder for chaining. + */ + public Builder setDriveName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + driveSourceCase_ = 7; + driveSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearDriveName() { + if (driveSourceCase_ == 7) { + driveSourceCase_ = 0; + driveSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The name of the drive to download from.
+       * 
+ * + * string drive_name = 7; + * + * @param value The bytes for driveName to set. + * @return This builder for chaining. + */ + public Builder setDriveNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driveSourceCase_ = 7; + driveSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @return Whether the driveId field is set. + */ + @java.lang.Override + public boolean hasDriveId() { + return driveSourceCase_ == 8; + } + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @return The driveId. + */ + @java.lang.Override + public java.lang.String getDriveId() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 8) { + ref = driveSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (driveSourceCase_ == 8) { + driveSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @return The bytes for driveId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDriveIdBytes() { + java.lang.Object ref = ""; + if (driveSourceCase_ == 8) { + ref = driveSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driveSourceCase_ == 8) { + driveSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @param value The driveId to set. + * @return This builder for chaining. + */ + public Builder setDriveId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + driveSourceCase_ = 8; + driveSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @return This builder for chaining. + */ + public Builder clearDriveId() { + if (driveSourceCase_ == 8) { + driveSourceCase_ = 0; + driveSource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The ID of the drive to download from.
+       * 
+ * + * string drive_id = 8; + * + * @param value The bytes for driveId to set. + * @return This builder for chaining. + */ + public Builder setDriveIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driveSourceCase_ = 8; + driveSource_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
+       * The Application ID for the app registered in Microsoft Azure Portal.
+       * The application must also be configured with MS Graph permissions
+       * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+       * 
+ * + * string client_id = 1; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The Application ID for the app registered in Microsoft Azure Portal.
+       * The application must also be configured with MS Graph permissions
+       * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+       * 
+ * + * string client_id = 1; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The Application ID for the app registered in Microsoft Azure Portal.
+       * The application must also be configured with MS Graph permissions
+       * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+       * 
+ * + * string client_id = 1; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * The Application ID for the app registered in Microsoft Azure Portal.
+       * The application must also be configured with MS Graph permissions
+       * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+       * 
+ * + * string client_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * The Application ID for the app registered in Microsoft Azure Portal.
+       * The application must also be configured with MS Graph permissions
+       * "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All.
+       * 
+ * + * string client_id = 1; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig clientSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + clientSecretBuilder_; + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return Whether the clientSecret field is set. + */ + public boolean hasClientSecret() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + * + * @return The clientSecret. + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getClientSecret() { + if (clientSecretBuilder_ == null) { + return clientSecret_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : clientSecret_; + } else { + return clientSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public Builder setClientSecret(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (clientSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + } else { + clientSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public Builder setClientSecret( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (clientSecretBuilder_ == null) { + clientSecret_ = builderForValue.build(); + } else { + clientSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public Builder mergeClientSecret(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (clientSecretBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && clientSecret_ != null + && clientSecret_ + != com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance()) { + getClientSecretBuilder().mergeFrom(value); + } else { + clientSecret_ = value; + } + } else { + clientSecretBuilder_.mergeFrom(value); + } + if (clientSecret_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public Builder clearClientSecret() { + bitField0_ = (bitField0_ & ~0x00000020); + clientSecret_ = null; + if (clientSecretBuilder_ != null) { + clientSecretBuilder_.dispose(); + clientSecretBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder getClientSecretBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getClientSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder + getClientSecretOrBuilder() { + if (clientSecretBuilder_ != null) { + return clientSecretBuilder_.getMessageOrBuilder(); + } else { + return clientSecret_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : clientSecret_; + } + } + /** + * + * + *
+       * The application secret for the app registered in Azure.
+       * 
+ * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig client_secret = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + getClientSecretFieldBuilder() { + if (clientSecretBuilder_ == null) { + clientSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder>( + getClientSecret(), getParentForChildren(), isClean()); + clientSecret_ = null; + } + return clientSecretBuilder_; + } + + private java.lang.Object tenantId_ = ""; + /** + * + * + *
+       * Unique identifier of the Azure Active Directory Instance.
+       * 
+ * + * string tenant_id = 3; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Unique identifier of the Azure Active Directory Instance.
+       * 
+ * + * string tenant_id = 3; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Unique identifier of the Azure Active Directory Instance.
+       * 
+ * + * string tenant_id = 3; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * Unique identifier of the Azure Active Directory Instance.
+       * 
+ * + * string tenant_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+       * Unique identifier of the Azure Active Directory Instance.
+       * 
+ * + * string tenant_id = 3; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object sharepointSiteName_ = ""; + /** + * + * + *
+       * The name of the SharePoint site to download from. This can be the site
+       * name or the site id.
+       * 
+ * + * string sharepoint_site_name = 4; + * + * @return The sharepointSiteName. + */ + public java.lang.String getSharepointSiteName() { + java.lang.Object ref = sharepointSiteName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharepointSiteName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the SharePoint site to download from. This can be the site
+       * name or the site id.
+       * 
+ * + * string sharepoint_site_name = 4; + * + * @return The bytes for sharepointSiteName. + */ + public com.google.protobuf.ByteString getSharepointSiteNameBytes() { + java.lang.Object ref = sharepointSiteName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharepointSiteName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the SharePoint site to download from. This can be the site
+       * name or the site id.
+       * 
+ * + * string sharepoint_site_name = 4; + * + * @param value The sharepointSiteName to set. + * @return This builder for chaining. + */ + public Builder setSharepointSiteName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sharepointSiteName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the SharePoint site to download from. This can be the site
+       * name or the site id.
+       * 
+ * + * string sharepoint_site_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearSharepointSiteName() { + sharepointSiteName_ = getDefaultInstance().getSharepointSiteName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the SharePoint site to download from. This can be the site
+       * name or the site id.
+       * 
+ * + * string sharepoint_site_name = 4; + * + * @param value The bytes for sharepointSiteName to set. + * @return This builder for chaining. + */ + public Builder setSharepointSiteNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sharepointSiteName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object fileId_ = ""; + /** + * + * + *
+       * Output only. The SharePoint file id. Output only.
+       * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileId. + */ + public java.lang.String getFileId() { + java.lang.Object ref = fileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The SharePoint file id. Output only.
+       * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileId. + */ + public com.google.protobuf.ByteString getFileIdBytes() { + java.lang.Object ref = fileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The SharePoint file id. Output only.
+       * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The fileId to set. + * @return This builder for chaining. + */ + public Builder setFileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The SharePoint file id. Output only.
+       * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFileId() { + fileId_ = getDefaultInstance().getFileId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The SharePoint file id. Output only.
+       * 
+ * + * string file_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for fileId to set. + * @return This builder for chaining. + */ + public Builder setFileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileId_ = value; + bitField0_ |= 0x00000100; + 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.SharePointSources.SharePointSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SharePointSources.SharePointSource) + private static final com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource(); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SharePointSource 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.SharePointSources.SharePointSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SHARE_POINT_SOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + sharePointSources_; + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + @java.lang.Override + public java.util.List + getSharePointSourcesList() { + return sharePointSources_; + } + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder> + getSharePointSourcesOrBuilderList() { + return sharePointSources_; + } + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + @java.lang.Override + public int getSharePointSourcesCount() { + return sharePointSources_.size(); + } + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource getSharePointSources( + int index) { + return sharePointSources_.get(index); + } + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder + getSharePointSourcesOrBuilder(int index) { + return sharePointSources_.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 < sharePointSources_.size(); i++) { + output.writeMessage(1, sharePointSources_.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 < sharePointSources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, sharePointSources_.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.SharePointSources)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SharePointSources other = + (com.google.cloud.aiplatform.v1.SharePointSources) obj; + + if (!getSharePointSourcesList().equals(other.getSharePointSourcesList())) 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 (getSharePointSourcesCount() > 0) { + hash = (37 * hash) + SHARE_POINT_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSharePointSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SharePointSources parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources 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.SharePointSources 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.SharePointSources 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 SharePointSources to pass to ImportRagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SharePointSources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SharePointSources) + com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SharePointSources.class, + com.google.cloud.aiplatform.v1.SharePointSources.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SharePointSources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sharePointSourcesBuilder_ == null) { + sharePointSources_ = java.util.Collections.emptyList(); + } else { + sharePointSources_ = null; + sharePointSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources build() { + com.google.cloud.aiplatform.v1.SharePointSources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SharePointSources buildPartial() { + com.google.cloud.aiplatform.v1.SharePointSources result = + new com.google.cloud.aiplatform.v1.SharePointSources(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SharePointSources result) { + if (sharePointSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sharePointSources_ = java.util.Collections.unmodifiableList(sharePointSources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sharePointSources_ = sharePointSources_; + } else { + result.sharePointSources_ = sharePointSourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SharePointSources 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.SharePointSources) { + return mergeFrom((com.google.cloud.aiplatform.v1.SharePointSources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SharePointSources other) { + if (other == com.google.cloud.aiplatform.v1.SharePointSources.getDefaultInstance()) + return this; + if (sharePointSourcesBuilder_ == null) { + if (!other.sharePointSources_.isEmpty()) { + if (sharePointSources_.isEmpty()) { + sharePointSources_ = other.sharePointSources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSharePointSourcesIsMutable(); + sharePointSources_.addAll(other.sharePointSources_); + } + onChanged(); + } + } else { + if (!other.sharePointSources_.isEmpty()) { + if (sharePointSourcesBuilder_.isEmpty()) { + sharePointSourcesBuilder_.dispose(); + sharePointSourcesBuilder_ = null; + sharePointSources_ = other.sharePointSources_; + bitField0_ = (bitField0_ & ~0x00000001); + sharePointSourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSharePointSourcesFieldBuilder() + : null; + } else { + sharePointSourcesBuilder_.addAllMessages(other.sharePointSources_); + } + } + } + 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.SharePointSources.SharePointSource m = + input.readMessage( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.parser(), + extensionRegistry); + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + sharePointSources_.add(m); + } else { + sharePointSourcesBuilder_.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 + sharePointSources_ = java.util.Collections.emptyList(); + + private void ensureSharePointSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sharePointSources_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource>( + sharePointSources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder> + sharePointSourcesBuilder_; + + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public java.util.List + getSharePointSourcesList() { + if (sharePointSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sharePointSources_); + } else { + return sharePointSourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public int getSharePointSourcesCount() { + if (sharePointSourcesBuilder_ == null) { + return sharePointSources_.size(); + } else { + return sharePointSourcesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource getSharePointSources( + int index) { + if (sharePointSourcesBuilder_ == null) { + return sharePointSources_.get(index); + } else { + return sharePointSourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder setSharePointSources( + int index, com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource value) { + if (sharePointSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharePointSourcesIsMutable(); + sharePointSources_.set(index, value); + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder setSharePointSources( + int index, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder builderForValue) { + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + sharePointSources_.set(index, builderForValue.build()); + onChanged(); + } else { + sharePointSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder addSharePointSources( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource value) { + if (sharePointSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharePointSourcesIsMutable(); + sharePointSources_.add(value); + onChanged(); + } else { + sharePointSourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder addSharePointSources( + int index, com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource value) { + if (sharePointSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharePointSourcesIsMutable(); + sharePointSources_.add(index, value); + onChanged(); + } else { + sharePointSourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder addSharePointSources( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder builderForValue) { + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + sharePointSources_.add(builderForValue.build()); + onChanged(); + } else { + sharePointSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder addSharePointSources( + int index, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder builderForValue) { + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + sharePointSources_.add(index, builderForValue.build()); + onChanged(); + } else { + sharePointSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder addAllSharePointSources( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource> + values) { + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sharePointSources_); + onChanged(); + } else { + sharePointSourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder clearSharePointSources() { + if (sharePointSourcesBuilder_ == null) { + sharePointSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sharePointSourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public Builder removeSharePointSources(int index) { + if (sharePointSourcesBuilder_ == null) { + ensureSharePointSourcesIsMutable(); + sharePointSources_.remove(index); + onChanged(); + } else { + sharePointSourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder + getSharePointSourcesBuilder(int index) { + return getSharePointSourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder + getSharePointSourcesOrBuilder(int index) { + if (sharePointSourcesBuilder_ == null) { + return sharePointSources_.get(index); + } else { + return sharePointSourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder> + getSharePointSourcesOrBuilderList() { + if (sharePointSourcesBuilder_ != null) { + return sharePointSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sharePointSources_); + } + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder + addSharePointSourcesBuilder() { + return getSharePointSourcesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + .getDefaultInstance()); + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder + addSharePointSourcesBuilder(int index) { + return getSharePointSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource + .getDefaultInstance()); + } + /** + * + * + *
+     * The SharePoint sources.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + public java.util.List + getSharePointSourcesBuilderList() { + return getSharePointSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder> + getSharePointSourcesFieldBuilder() { + if (sharePointSourcesBuilder_ == null) { + sharePointSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource.Builder, + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder>( + sharePointSources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sharePointSources_ = null; + } + return sharePointSourcesBuilder_; + } + + @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.SharePointSources) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SharePointSources) + private static final com.google.cloud.aiplatform.v1.SharePointSources DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SharePointSources(); + } + + public static com.google.cloud.aiplatform.v1.SharePointSources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SharePointSources 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.SharePointSources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSourcesOrBuilder.java new file mode 100644 index 000000000000..0cb1a3c2fa6d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SharePointSourcesOrBuilder.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/aiplatform/v1/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface SharePointSourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SharePointSources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + java.util.List + getSharePointSourcesList(); + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSource getSharePointSources(int index); + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + int getSharePointSourcesCount(); + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder> + getSharePointSourcesOrBuilderList(); + /** + * + * + *
+   * The SharePoint sources.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1; + * + */ + com.google.cloud.aiplatform.v1.SharePointSources.SharePointSourceOrBuilder + getSharePointSourcesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSource.java new file mode 100644 index 000000000000..7de3f5a24045 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSource.java @@ -0,0 +1,3772 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The Slack source for the ImportRagFilesRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource} + */ +public final class SlackSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SlackSource) + SlackSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackSource.newBuilder() to construct. + private SlackSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackSource() { + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.class, + com.google.cloud.aiplatform.v1.SlackSource.Builder.class); + } + + public interface SlackChannelsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SlackSource.SlackChannels) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getChannelsList(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel getChannels(int index); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getChannelsCount(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsOrBuilderList(); + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index); + + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig(); + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + } + /** + * + * + *
+   * SlackChannels contains the Slack channels and corresponding access token.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource.SlackChannels} + */ + public static final class SlackChannels extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SlackSource.SlackChannels) + SlackChannelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackChannels.newBuilder() to construct. + private SlackChannels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackChannels() { + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackChannels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.class, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder.class); + } + + public interface SlackChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + java.lang.String getChannelId(); + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + com.google.protobuf.ByteString getChannelIdBytes(); + + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + * + * + *
+     * SlackChannel contains the Slack channel ID and the time range to import.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel} + */ + public static final class SlackChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) + SlackChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackChannel.newBuilder() to construct. + private SlackChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SlackChannel() { + channelId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SlackChannel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.class, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + .class); + } + + private int bitField0_; + public static final int CHANNEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object channelId_ = ""; + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + @java.lang.Override + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + 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(); + channelId_ = s; + return s; + } + } + /** + * + * + *
+       * Required. The Slack channel ID.
+       * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+       * Optional. The starting timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+       * Optional. The ending timestamp for messages to import.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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(channelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + 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(channelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + 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.SlackSource.SlackChannels.SlackChannel)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel other = + (com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) obj; + + if (!getChannelId().equals(other.getChannelId())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + 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.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel 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.SlackSource.SlackChannels.SlackChannel 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; + } + /** + * + * + *
+       * SlackChannel contains the Slack channel ID and the time range to import.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.class, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channelId_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_SlackChannel_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel build() { + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + buildPartial() { + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel result = + new com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelId_ = channelId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.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.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel other) { + if (other + == com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()) return this; + if (!other.getChannelId().isEmpty()) { + channelId_ = other.channelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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: + { + channelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 channelId_ = ""; + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The channelId. + */ + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for channelId. + */ + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearChannelId() { + channelId_ = getDefaultInstance().getChannelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The Slack channel ID.
+         * 
+ * + * string channel_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+         * Optional. The starting timestamp for messages to import.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+         * Optional. The ending timestamp for messages to import.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.SlackSource.SlackChannels.SlackChannel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel) + private static final com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel(); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackChannel 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.SlackSource.SlackChannels.SlackChannel + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CHANNELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + channels_; + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel getChannels( + int index) { + return channels_.get(index); + } + /** + * + * + *
+     * Required. The Slack channel IDs.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index) { + return channels_.get(index); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig apiKeyConfig_; + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + /** + * + * + *
+     * Required. The SecretManager secret version resource name (e.g.
+     * projects/{project}/secrets/{secret}/versions/{version}) storing the
+     * Slack channel access token that has access to the slack channel IDs.
+     * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + + 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 < channels_.size(); i++) { + output.writeMessage(1, channels_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getApiKeyConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channels_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApiKeyConfig()); + } + 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.SlackSource.SlackChannels)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels other = + (com.google.cloud.aiplatform.v1.SlackSource.SlackChannels) obj; + + if (!getChannelsList().equals(other.getChannelsList())) return false; + if (hasApiKeyConfig() != other.hasApiKeyConfig()) return false; + if (hasApiKeyConfig()) { + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) 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 (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } + if (hasApiKeyConfig()) { + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels 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.SlackSource.SlackChannels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels 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.SlackSource.SlackChannels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels 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.SlackSource.SlackChannels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels 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.SlackSource.SlackChannels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels 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.SlackSource.SlackChannels 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.SlackSource.SlackChannels 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.SlackSource.SlackChannels 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; + } + /** + * + * + *
+     * SlackChannels contains the Slack channels and corresponding access token.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource.SlackChannels} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SlackSource.SlackChannels) + com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.class, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChannelsFieldBuilder(); + getApiKeyConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_SlackChannels_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels build() { + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels buildPartial() { + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels result = + new com.google.cloud.aiplatform.v1.SlackSource.SlackChannels(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SlackSource.SlackChannels result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiKeyConfig_ = + apiKeyConfigBuilder_ == null ? apiKeyConfig_ : apiKeyConfigBuilder_.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.SlackSource.SlackChannels) { + return mergeFrom((com.google.cloud.aiplatform.v1.SlackSource.SlackChannels) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SlackSource.SlackChannels other) { + if (other == com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.getDefaultInstance()) + return this; + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + if (other.hasApiKeyConfig()) { + mergeApiKeyConfig(other.getApiKeyConfig()); + } + 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.SlackSource.SlackChannels.SlackChannel m = + input.readMessage( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + .parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 26: + { + input.readMessage(getApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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 + channels_ = java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + channels_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel>(channels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> + channelsBuilder_; + + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel getChannels( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllChannels( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel> + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + getChannelsBuilder(int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder + getChannelsOrBuilder(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder + addChannelsBuilder(int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel + .getDefaultInstance()); + } + /** + * + * + *
+       * Required. The Slack channel IDs.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder> + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder>( + channels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + private com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig apiKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + public boolean hasApiKeyConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The apiKeyConfig. + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } else { + return apiKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiKeyConfig_ = value; + } else { + apiKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setApiKeyConfig( + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfig_ = builderForValue.build(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeApiKeyConfig(com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && apiKeyConfig_ != null + && apiKeyConfig_ + != com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance()) { + getApiKeyConfigBuilder().mergeFrom(value); + } else { + apiKeyConfig_ = value; + } + } else { + apiKeyConfigBuilder_.mergeFrom(value); + } + if (apiKeyConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearApiKeyConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + apiKeyConfig_ = null; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.dispose(); + apiKeyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder getApiKeyConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getApiKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder + getApiKeyConfigOrBuilder() { + if (apiKeyConfigBuilder_ != null) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return apiKeyConfig_ == null + ? com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.getDefaultInstance() + : apiKeyConfig_; + } + } + /** + * + * + *
+       * Required. The SecretManager secret version resource name (e.g.
+       * projects/{project}/secrets/{secret}/versions/{version}) storing the
+       * Slack channel access token that has access to the slack channel IDs.
+       * See: https://api.slack.com/tutorials/tracks/getting-a-token.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder> + getApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig.Builder, + com.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigOrBuilder>( + getApiKeyConfig(), getParentForChildren(), isClean()); + apiKeyConfig_ = null; + } + return apiKeyConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SlackSource.SlackChannels) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SlackSource.SlackChannels) + private static final com.google.cloud.aiplatform.v1.SlackSource.SlackChannels DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SlackSource.SlackChannels(); + } + + public static com.google.cloud.aiplatform.v1.SlackSource.SlackChannels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackChannels 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.SlackSource.SlackChannels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CHANNELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List channels_; + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels getChannels(int index) { + return channels_.get(index); + } + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder getChannelsOrBuilder( + int index) { + return channels_.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 < channels_.size(); i++) { + output.writeMessage(1, channels_.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 < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channels_.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.SlackSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SlackSource other = + (com.google.cloud.aiplatform.v1.SlackSource) obj; + + if (!getChannelsList().equals(other.getChannelsList())) 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 (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SlackSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource 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.SlackSource 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.SlackSource 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 Slack source for the ImportRagFilesRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SlackSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SlackSource) + com.google.cloud.aiplatform.v1.SlackSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SlackSource.class, + com.google.cloud.aiplatform.v1.SlackSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SlackSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource build() { + com.google.cloud.aiplatform.v1.SlackSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SlackSource buildPartial() { + com.google.cloud.aiplatform.v1.SlackSource result = + new com.google.cloud.aiplatform.v1.SlackSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.SlackSource result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SlackSource 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.SlackSource) { + return mergeFrom((com.google.cloud.aiplatform.v1.SlackSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SlackSource other) { + if (other == com.google.cloud.aiplatform.v1.SlackSource.getDefaultInstance()) return this; + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000001); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + 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.SlackSource.SlackChannels m = + input.readMessage( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.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 channels_ = + java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, com.google.cloud.aiplatform.v1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannels( + int index, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels(com.google.cloud.aiplatform.v1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, com.google.cloud.aiplatform.v1.SlackSource.SlackChannels value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addChannels( + int index, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder getChannelsBuilder( + int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder getChannelsOrBuilder( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder addChannelsBuilder( + int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The Slack channels.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder, + com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder>( + channels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + @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.SlackSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SlackSource) + private static final com.google.cloud.aiplatform.v1.SlackSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SlackSource(); + } + + public static com.google.cloud.aiplatform.v1.SlackSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackSource 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.SlackSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSourceOrBuilder.java new file mode 100644 index 000000000000..c6cafb718db9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SlackSourceOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/io.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface SlackSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SlackSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getChannelsList(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SlackSource.SlackChannels getChannels(int index); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getChannelsCount(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getChannelsOrBuilderList(); + /** + * + * + *
+   * Required. The Slack channels.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels channels = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SlackSource.SlackChannelsOrBuilder getChannelsOrBuilder(int index); +} 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 28104ef20983..96900e618816 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 @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_VertexRagStore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -68,6 +76,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -97,31 +113,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" - + "\"\201\001\n\tRetrieval\022F\n\020vertex_ai_search\030\002 \001(\013" + + "\"\311\001\n\tRetrieval\022F\n\020vertex_ai_search\030\002 \001(\013" + "2*.google.cloud.aiplatform.v1.VertexAISe" - + "archH\000\022\"\n\023disable_attribution\030\003 \001(\010B\005\030\001\340" - + "A\001B\010\n\006source\"(\n\016VertexAISearch\022\026\n\tdatast" - + "ore\030\001 \001(\tB\003\340A\002\"m\n\025GoogleSearchRetrieval\022" - + "T\n\030dynamic_retrieval_config\030\002 \001(\01322.goog" - + "le.cloud.aiplatform.v1.DynamicRetrievalC" - + "onfig\"\312\001\n\026DynamicRetrievalConfig\022E\n\004mode" - + "\030\001 \001(\01627.google.cloud.aiplatform.v1.Dyna" - + "micRetrievalConfig.Mode\022#\n\021dynamic_thres" - + "hold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n\004Mode\022\024\n\020MODE_UNS" - + "PECIFIED\020\000\022\020\n\014MODE_DYNAMIC\020\001B\024\n\022_dynamic" - + "_threshold\"e\n\nToolConfig\022W\n\027function_cal" - + "ling_config\030\001 \001(\01321.google.cloud.aiplatf" - + "orm.v1.FunctionCallingConfigB\003\340A\001\"\302\001\n\025Fu" - + "nctionCallingConfig\022I\n\004mode\030\001 \001(\01626.goog" - + "le.cloud.aiplatform.v1.FunctionCallingCo" - + "nfig.ModeB\003\340A\001\022#\n\026allowed_function_names" - + "\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003B\307\001\n\036com.g" - + "oogle.cloud.aiplatform.v1B\tToolProtoP\001Z>" - + "cloud.google.com/go/aiplatform/apiv1/aip" - + "latformpb;aiplatformpb\252\002\032Google.Cloud.AI" - + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1" - + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "archH\000\022F\n\020vertex_rag_store\030\004 \001(\0132*.googl" + + "e.cloud.aiplatform.v1.VertexRagStoreH\000\022\"" + + "\n\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006so" + + "urce\"\252\003\n\016VertexRagStore\022R\n\rrag_resources" + + "\030\004 \003(\01326.google.cloud.aiplatform.v1.Vert" + + "exRagStore.RagResourceB\003\340A\001\022$\n\020similarit" + + "y_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n\031vector_dist" + + "ance_threshold\030\003 \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n\024rag_" + + "retrieval_config\030\006 \001(\0132..google.cloud.ai" + + "platform.v1.RagRetrievalConfigB\003\340A\001\032i\n\013R" + + "agResource\022?\n\nrag_corpus\030\001 \001(\tB+\340A\001\372A%\n#" + + "aiplatform.googleapis.com/RagCorpus\022\031\n\014r" + + "ag_file_ids\030\002 \003(\tB\003\340A\001B\023\n\021_similarity_to" + + "p_kB\034\n\032_vector_distance_threshold\"(\n\016Ver" + + "texAISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"m\n\025G" + + "oogleSearchRetrieval\022T\n\030dynamic_retrieva" + + "l_config\030\002 \001(\01322.google.cloud.aiplatform" + + ".v1.DynamicRetrievalConfig\"\312\001\n\026DynamicRe" + + "trievalConfig\022E\n\004mode\030\001 \001(\01627.google.clo" + + "ud.aiplatform.v1.DynamicRetrievalConfig." + + "Mode\022#\n\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001" + + "\001\".\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014MODE_" + + "DYNAMIC\020\001B\024\n\022_dynamic_threshold\"e\n\nToolC" + + "onfig\022W\n\027function_calling_config\030\001 \001(\01321" + + ".google.cloud.aiplatform.v1.FunctionCall" + + "ingConfigB\003\340A\001\"\302\001\n\025FunctionCallingConfig" + + "\022I\n\004mode\030\001 \001(\01626.google.cloud.aiplatform" + + ".v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n\026a" + + "llowed_function_names\030\002 \003(\tB\003\340A\001\"9\n\004Mode" + + "\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020" + + "\002\022\010\n\004NONE\020\003\"\212\002\n\022RagRetrievalConfig\022\022\n\005to" + + "p_k\030\001 \001(\005B\003\340A\001\022J\n\006filter\030\003 \001(\01325.google." + + "cloud.aiplatform.v1.RagRetrievalConfig.F" + + "ilterB\003\340A\001\032\223\001\n\006Filter\022(\n\031vector_distance" + + "_threshold\030\003 \001(\001B\003\340A\001H\000\022*\n\033vector_simila" + + "rity_threshold\030\004 \001(\001B\003\340A\001H\000\022\034\n\017metadata_" + + "filter\030\002 \001(\tB\003\340A\001B\025\n\023vector_db_threshold" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -170,10 +206,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor, new java.lang.String[] { - "VertexAiSearch", "DisableAttribution", "Source", + "VertexAiSearch", "VertexRagStore", "DisableAttribution", "Source", }); - internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor = + internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor, + new java.lang.String[] { + "RagResources", "SimilarityTopK", "VectorDistanceThreshold", "RagRetrievalConfig", + }); + internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_descriptor = + internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_descriptor, + new java.lang.String[] { + "RagCorpus", "RagFileIds", + }); + internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor, @@ -181,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Datastore", }); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor, @@ -189,7 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DynamicRetrievalConfig", }); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor, @@ -197,7 +251,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", "DynamicThreshold", }); internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_ToolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor, @@ -205,16 +259,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FunctionCallingConfig", }); internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor, new java.lang.String[] { "Mode", "AllowedFunctionNames", }); + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor, + new java.lang.String[] { + "TopK", "Filter", + }); + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_descriptor = + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_Filter_descriptor, + new java.lang.String[] { + "VectorDistanceThreshold", + "VectorSimilarityThreshold", + "MetadataFilter", + "VectorDbThreshold", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java new file mode 100644 index 000000000000..fc3f9867751e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequest.java @@ -0,0 +1,780 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest} + */ +public final class UpdateEndpointLongRunningRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + UpdateEndpointLongRunningRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEndpointLongRunningRequest.newBuilder() to construct. + private UpdateEndpointLongRunningRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEndpointLongRunningRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEndpointLongRunningRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.Builder.class); + } + + private int bitField0_; + public static final int ENDPOINT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.Endpoint endpoint_; + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + @java.lang.Override + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + + 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, getEndpoint()); + } + 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, getEndpoint()); + } + 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.UpdateEndpointLongRunningRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest other = + (com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) obj; + + if (hasEndpoint() != other.hasEndpoint()) return false; + if (hasEndpoint()) { + if (!getEndpoint().equals(other.getEndpoint())) 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 (hasEndpoint()) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest 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
+   * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.class, + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndpointFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); + endpointBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointLongRunningRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest build() { + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest buildPartial() { + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result = + new com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.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.UpdateEndpointLongRunningRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest.getDefaultInstance()) + return this; + if (other.hasEndpoint()) { + mergeEndpoint(other.getEndpoint()); + } + 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(getEndpointFieldBuilder().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.Endpoint endpoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder> + endpointBuilder_; + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { + if (endpointBuilder_ == null) { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } else { + return endpointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { + if (endpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + } else { + endpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder builderForValue) { + if (endpointBuilder_ == null) { + endpoint_ = builderForValue.build(); + } else { + endpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { + if (endpointBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); + } else { + endpoint_ = value; + } + } else { + endpointBuilder_.mergeFrom(value); + } + if (endpoint_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndpoint() { + bitField0_ = (bitField0_ & ~0x00000001); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); + endpointBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.Endpoint.Builder getEndpointBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { + if (endpointBuilder_ != null) { + return endpointBuilder_.getMessageOrBuilder(); + } else { + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; + } + } + /** + * + * + *
+     * Required. The Endpoint which replaces the resource on the server. Currently
+     * we only support updating the `client_connection_config` field, all the
+     * other fields' update will be blocked.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder> + getEndpointFieldBuilder() { + if (endpointBuilder_ == null) { + endpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Endpoint, + com.google.cloud.aiplatform.v1.Endpoint.Builder, + com.google.cloud.aiplatform.v1.EndpointOrBuilder>( + getEndpoint(), getParentForChildren(), isClean()); + endpoint_ = null; + } + return endpointBuilder_; + } + + @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.UpdateEndpointLongRunningRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + private static final com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest(); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEndpointLongRunningRequest 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.UpdateEndpointLongRunningRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.java new file mode 100644 index 000000000000..9e5d2b1fb660 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointLongRunningRequestOrBuilder.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/aiplatform/v1/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateEndpointLongRunningRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endpoint field is set. + */ + boolean hasEndpoint(); + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endpoint. + */ + com.google.cloud.aiplatform.v1.Endpoint getEndpoint(); + /** + * + * + *
+   * Required. The Endpoint which replaces the resource on the server. Currently
+   * we only support updating the `client_connection_config` field, all the
+   * other fields' update will be blocked.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Endpoint endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java new file mode 100644 index 000000000000..0f80d5fec8eb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadata.java @@ -0,0 +1,739 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata} + */ +public final class UpdateEndpointOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + UpdateEndpointOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEndpointOperationMetadata.newBuilder() to construct. + private UpdateEndpointOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEndpointOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEndpointOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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.UpdateEndpointOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata other = + (com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) 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.UpdateEndpointOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata 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
+   * [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.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.EndpointServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateEndpointOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata build() { + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata result = + new com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata.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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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.UpdateEndpointOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + private static final com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEndpointOperationMetadata 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.UpdateEndpointOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..f04844473d61 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointOperationMetadataOrBuilder.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/endpoint_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateEndpointOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/UpdateRagCorpusOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusOperationMetadata.java new file mode 100644 index 000000000000..423245460658 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusOperationMetadata.java @@ -0,0 +1,740 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata} + */ +public final class UpdateRagCorpusOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) + UpdateRagCorpusOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateRagCorpusOperationMetadata.newBuilder() to construct. + private UpdateRagCorpusOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateRagCorpusOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRagCorpusOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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 operation generic information.
+   * 
+ * + * .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.UpdateRagCorpusOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata other = + (com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) 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.UpdateRagCorpusOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata 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
+   * [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.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.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata build() { + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata result = + new com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata.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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .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 operation generic information.
+     * 
+ * + * .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.UpdateRagCorpusOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) + private static final com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRagCorpusOperationMetadata 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.UpdateRagCorpusOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..04ab1f0daec6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusOperationMetadataOrBuilder.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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateRagCorpusOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .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/UpdateRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusRequest.java new file mode 100644 index 000000000000..8c27e6137411 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusRequest.java @@ -0,0 +1,748 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateRagCorpusRequest} + */ +public final class UpdateRagCorpusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateRagCorpusRequest) + UpdateRagCorpusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateRagCorpusRequest.newBuilder() to construct. + private UpdateRagCorpusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateRagCorpusRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRagCorpusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.Builder.class); + } + + private int bitField0_; + public static final int RAG_CORPUS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.RagCorpus ragCorpus_; + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + @java.lang.Override + public boolean hasRagCorpus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus() { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder() { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + + 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, getRagCorpus()); + } + 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, getRagCorpus()); + } + 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.UpdateRagCorpusRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest other = + (com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest) obj; + + if (hasRagCorpus() != other.hasRagCorpus()) return false; + if (hasRagCorpus()) { + if (!getRagCorpus().equals(other.getRagCorpus())) 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 (hasRagCorpus()) { + hash = (37 * hash) + RAG_CORPUS_FIELD_NUMBER; + hash = (53 * hash) + getRagCorpus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest 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.UpdateRagCorpusRequest 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
+   * [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateRagCorpusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateRagCorpusRequest) + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.class, + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagCorpusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragCorpus_ = null; + if (ragCorpusBuilder_ != null) { + ragCorpusBuilder_.dispose(); + ragCorpusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest build() { + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest buildPartial() { + com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest result = + new com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragCorpus_ = ragCorpusBuilder_ == null ? ragCorpus_ : ragCorpusBuilder_.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.UpdateRagCorpusRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest other) { + if (other == com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest.getDefaultInstance()) + return this; + if (other.hasRagCorpus()) { + mergeRagCorpus(other.getRagCorpus()); + } + 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(getRagCorpusFieldBuilder().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.RagCorpus ragCorpus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + ragCorpusBuilder_; + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + public boolean hasRagCorpus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + public com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus() { + if (ragCorpusBuilder_ == null) { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } else { + return ragCorpusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorpusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragCorpus_ = value; + } else { + ragCorpusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus.Builder builderForValue) { + if (ragCorpusBuilder_ == null) { + ragCorpus_ = builderForValue.build(); + } else { + ragCorpusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRagCorpus(com.google.cloud.aiplatform.v1.RagCorpus value) { + if (ragCorpusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && ragCorpus_ != null + && ragCorpus_ != com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance()) { + getRagCorpusBuilder().mergeFrom(value); + } else { + ragCorpus_ = value; + } + } else { + ragCorpusBuilder_.mergeFrom(value); + } + if (ragCorpus_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRagCorpus() { + bitField0_ = (bitField0_ & ~0x00000001); + ragCorpus_ = null; + if (ragCorpusBuilder_ != null) { + ragCorpusBuilder_.dispose(); + ragCorpusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagCorpus.Builder getRagCorpusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRagCorpusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder() { + if (ragCorpusBuilder_ != null) { + return ragCorpusBuilder_.getMessageOrBuilder(); + } else { + return ragCorpus_ == null + ? com.google.cloud.aiplatform.v1.RagCorpus.getDefaultInstance() + : ragCorpus_; + } + } + /** + * + * + *
+     * Required. The RagCorpus which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder> + getRagCorpusFieldBuilder() { + if (ragCorpusBuilder_ == null) { + ragCorpusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagCorpus, + com.google.cloud.aiplatform.v1.RagCorpus.Builder, + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder>( + getRagCorpus(), getParentForChildren(), isClean()); + ragCorpus_ = null; + } + return ragCorpusBuilder_; + } + + @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.UpdateRagCorpusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateRagCorpusRequest) + private static final com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest(); + } + + public static com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRagCorpusRequest 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.UpdateRagCorpusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusRequestOrBuilder.java new file mode 100644 index 000000000000..182e8686cf64 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateRagCorpusRequestOrBuilder.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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateRagCorpusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateRagCorpusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragCorpus field is set. + */ + boolean hasRagCorpus(); + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragCorpus. + */ + com.google.cloud.aiplatform.v1.RagCorpus getRagCorpus(); + /** + * + * + *
+   * Required. The RagCorpus which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagCorpus rag_corpus = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.RagCorpusOrBuilder getRagCorpusOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfig.java new file mode 100644 index 000000000000..2c2c6bdb20fc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfig.java @@ -0,0 +1,762 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Config for uploading RagFile.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileConfig} + */ +public final class UploadRagFileConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UploadRagFileConfig) + UploadRagFileConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadRagFileConfig.newBuilder() to construct. + private UploadRagFileConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadRagFileConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadRagFileConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileConfig.class, + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder.class); + } + + private int bitField0_; + public static final int RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.RagFileTransformationConfig ragFileTransformationConfig_; + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig + getRagFileTransformationConfig() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + + 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(3, getRagFileTransformationConfig()); + } + 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( + 3, getRagFileTransformationConfig()); + } + 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.UploadRagFileConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UploadRagFileConfig other = + (com.google.cloud.aiplatform.v1.UploadRagFileConfig) obj; + + if (hasRagFileTransformationConfig() != other.hasRagFileTransformationConfig()) return false; + if (hasRagFileTransformationConfig()) { + if (!getRagFileTransformationConfig().equals(other.getRagFileTransformationConfig())) + 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 (hasRagFileTransformationConfig()) { + hash = (37 * hash) + RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileTransformationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig 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.UploadRagFileConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig 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.UploadRagFileConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig 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.UploadRagFileConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig 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.UploadRagFileConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig 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.UploadRagFileConfig 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.UploadRagFileConfig 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.UploadRagFileConfig 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; + } + /** + * + * + *
+   * Config for uploading RagFile.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UploadRagFileConfig) + com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileConfig.class, + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UploadRagFileConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagFileTransformationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileConfig build() { + com.google.cloud.aiplatform.v1.UploadRagFileConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileConfig buildPartial() { + com.google.cloud.aiplatform.v1.UploadRagFileConfig result = + new com.google.cloud.aiplatform.v1.UploadRagFileConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadRagFileConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragFileTransformationConfig_ = + ragFileTransformationConfigBuilder_ == null + ? ragFileTransformationConfig_ + : ragFileTransformationConfigBuilder_.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.UploadRagFileConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.UploadRagFileConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadRagFileConfig other) { + if (other == com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance()) + return this; + if (other.hasRagFileTransformationConfig()) { + mergeRagFileTransformationConfig(other.getRagFileTransformationConfig()); + } + 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 26: + { + input.readMessage( + getRagFileTransformationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 com.google.cloud.aiplatform.v1.RagFileTransformationConfig ragFileTransformationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder> + ragFileTransformationConfigBuilder_; + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig + getRagFileTransformationConfig() { + if (ragFileTransformationConfigBuilder_ == null) { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } else { + return ragFileTransformationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileTransformationConfig_ = value; + } else { + ragFileTransformationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder builderForValue) { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfig_ = builderForValue.build(); + } else { + ragFileTransformationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder mergeRagFileTransformationConfig( + com.google.cloud.aiplatform.v1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && ragFileTransformationConfig_ != null + && ragFileTransformationConfig_ + != com.google.cloud.aiplatform.v1.RagFileTransformationConfig + .getDefaultInstance()) { + getRagFileTransformationConfigBuilder().mergeFrom(value); + } else { + ragFileTransformationConfig_ = value; + } + } else { + ragFileTransformationConfigBuilder_.mergeFrom(value); + } + if (ragFileTransformationConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder clearRagFileTransformationConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder + getRagFileTransformationConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRagFileTransformationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + if (ragFileTransformationConfigBuilder_ != null) { + return ragFileTransformationConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder> + getRagFileTransformationConfigFieldBuilder() { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder>( + getRagFileTransformationConfig(), getParentForChildren(), isClean()); + ragFileTransformationConfig_ = null; + } + return ragFileTransformationConfigBuilder_; + } + + @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.UploadRagFileConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UploadRagFileConfig) + private static final com.google.cloud.aiplatform.v1.UploadRagFileConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UploadRagFileConfig(); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadRagFileConfig 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.UploadRagFileConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfigOrBuilder.java new file mode 100644 index 000000000000..5b2fc1f473a8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UploadRagFileConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UploadRagFileConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + boolean hasRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + com.google.cloud.aiplatform.v1.RagFileTransformationConfig getRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + com.google.cloud.aiplatform.v1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequest.java new file mode 100644 index 000000000000..f5497b9dce37 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequest.java @@ -0,0 +1,1273 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileRequest} + */ +public final class UploadRagFileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UploadRagFileRequest) + UploadRagFileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadRagFileRequest.newBuilder() to construct. + private UploadRagFileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadRagFileRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadRagFileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileRequest.class, + com.google.cloud.aiplatform.v1.UploadRagFileRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to upload the file.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 RagCorpus resource into which to upload the file.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * 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 RAG_FILE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.RagFile ragFile_; + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragFile field is set. + */ + @java.lang.Override + public boolean hasRagFile() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragFile. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile getRagFile() { + return ragFile_ == null + ? com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance() + : ragFile_; + } + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder() { + return ragFile_ == null + ? com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance() + : ragFile_; + } + + public static final int UPLOAD_RAG_FILE_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1.UploadRagFileConfig uploadRagFileConfig_; + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the uploadRagFileConfig field is set. + */ + @java.lang.Override + public boolean hasUploadRagFileConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The uploadRagFileConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileConfig getUploadRagFileConfig() { + return uploadRagFileConfig_ == null + ? com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance() + : uploadRagFileConfig_; + } + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder + getUploadRagFileConfigOrBuilder() { + return uploadRagFileConfig_ == null + ? com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance() + : uploadRagFileConfig_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRagFile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUploadRagFileConfig()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRagFile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUploadRagFileConfig()); + } + 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.UploadRagFileRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UploadRagFileRequest other = + (com.google.cloud.aiplatform.v1.UploadRagFileRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasRagFile() != other.hasRagFile()) return false; + if (hasRagFile()) { + if (!getRagFile().equals(other.getRagFile())) return false; + } + if (hasUploadRagFileConfig() != other.hasUploadRagFileConfig()) return false; + if (hasUploadRagFileConfig()) { + if (!getUploadRagFileConfig().equals(other.getUploadRagFileConfig())) 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 (hasRagFile()) { + hash = (37 * hash) + RAG_FILE_FIELD_NUMBER; + hash = (53 * hash) + getRagFile().hashCode(); + } + if (hasUploadRagFileConfig()) { + hash = (37 * hash) + UPLOAD_RAG_FILE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUploadRagFileConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest 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.UploadRagFileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest 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.UploadRagFileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest 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.UploadRagFileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest 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.UploadRagFileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest 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.UploadRagFileRequest 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.UploadRagFileRequest 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.UploadRagFileRequest 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
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UploadRagFileRequest) + com.google.cloud.aiplatform.v1.UploadRagFileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileRequest.class, + com.google.cloud.aiplatform.v1.UploadRagFileRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UploadRagFileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagFileFieldBuilder(); + getUploadRagFileConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + ragFile_ = null; + if (ragFileBuilder_ != null) { + ragFileBuilder_.dispose(); + ragFileBuilder_ = null; + } + uploadRagFileConfig_ = null; + if (uploadRagFileConfigBuilder_ != null) { + uploadRagFileConfigBuilder_.dispose(); + uploadRagFileConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UploadRagFileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileRequest build() { + com.google.cloud.aiplatform.v1.UploadRagFileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileRequest buildPartial() { + com.google.cloud.aiplatform.v1.UploadRagFileRequest result = + new com.google.cloud.aiplatform.v1.UploadRagFileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadRagFileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ragFile_ = ragFileBuilder_ == null ? ragFile_ : ragFileBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uploadRagFileConfig_ = + uploadRagFileConfigBuilder_ == null + ? uploadRagFileConfig_ + : uploadRagFileConfigBuilder_.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.aiplatform.v1.UploadRagFileRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UploadRagFileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadRagFileRequest other) { + if (other == com.google.cloud.aiplatform.v1.UploadRagFileRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRagFile()) { + mergeRagFile(other.getRagFile()); + } + if (other.hasUploadRagFileConfig()) { + mergeUploadRagFileConfig(other.getUploadRagFileConfig()); + } + 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: + { + input.readMessage(getRagFileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 42: + { + input.readMessage( + getUploadRagFileConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 parent_ = ""; + /** + * + * + *
+     * Required. The name of the RagCorpus resource into which to upload the file.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to upload the file.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to upload the file.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to upload the file.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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 RagCorpus resource into which to upload the file.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * 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.cloud.aiplatform.v1.RagFile ragFile_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + ragFileBuilder_; + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragFile field is set. + */ + public boolean hasRagFile() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragFile. + */ + public com.google.cloud.aiplatform.v1.RagFile getRagFile() { + if (ragFileBuilder_ == null) { + return ragFile_ == null + ? com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance() + : ragFile_; + } else { + return ragFileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagFile(com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFile_ = value; + } else { + ragFileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRagFile(com.google.cloud.aiplatform.v1.RagFile.Builder builderForValue) { + if (ragFileBuilder_ == null) { + ragFile_ = builderForValue.build(); + } else { + ragFileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRagFile(com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFileBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ragFile_ != null + && ragFile_ != com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance()) { + getRagFileBuilder().mergeFrom(value); + } else { + ragFile_ = value; + } + } else { + ragFileBuilder_.mergeFrom(value); + } + if (ragFile_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRagFile() { + bitField0_ = (bitField0_ & ~0x00000002); + ragFile_ = null; + if (ragFileBuilder_ != null) { + ragFileBuilder_.dispose(); + ragFileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagFile.Builder getRagFileBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRagFileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder() { + if (ragFileBuilder_ != null) { + return ragFileBuilder_.getMessageOrBuilder(); + } else { + return ragFile_ == null + ? com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance() + : ragFile_; + } + } + /** + * + * + *
+     * Required. The RagFile to upload.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + getRagFileFieldBuilder() { + if (ragFileBuilder_ == null) { + ragFileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder>( + getRagFile(), getParentForChildren(), isClean()); + ragFile_ = null; + } + return ragFileBuilder_; + } + + private com.google.cloud.aiplatform.v1.UploadRagFileConfig uploadRagFileConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UploadRagFileConfig, + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder, + com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder> + uploadRagFileConfigBuilder_; + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the uploadRagFileConfig field is set. + */ + public boolean hasUploadRagFileConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The uploadRagFileConfig. + */ + public com.google.cloud.aiplatform.v1.UploadRagFileConfig getUploadRagFileConfig() { + if (uploadRagFileConfigBuilder_ == null) { + return uploadRagFileConfig_ == null + ? com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance() + : uploadRagFileConfig_; + } else { + return uploadRagFileConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUploadRagFileConfig( + com.google.cloud.aiplatform.v1.UploadRagFileConfig value) { + if (uploadRagFileConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uploadRagFileConfig_ = value; + } else { + uploadRagFileConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUploadRagFileConfig( + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder builderForValue) { + if (uploadRagFileConfigBuilder_ == null) { + uploadRagFileConfig_ = builderForValue.build(); + } else { + uploadRagFileConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUploadRagFileConfig( + com.google.cloud.aiplatform.v1.UploadRagFileConfig value) { + if (uploadRagFileConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && uploadRagFileConfig_ != null + && uploadRagFileConfig_ + != com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance()) { + getUploadRagFileConfigBuilder().mergeFrom(value); + } else { + uploadRagFileConfig_ = value; + } + } else { + uploadRagFileConfigBuilder_.mergeFrom(value); + } + if (uploadRagFileConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUploadRagFileConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + uploadRagFileConfig_ = null; + if (uploadRagFileConfigBuilder_ != null) { + uploadRagFileConfigBuilder_.dispose(); + uploadRagFileConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder + getUploadRagFileConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUploadRagFileConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder + getUploadRagFileConfigOrBuilder() { + if (uploadRagFileConfigBuilder_ != null) { + return uploadRagFileConfigBuilder_.getMessageOrBuilder(); + } else { + return uploadRagFileConfig_ == null + ? com.google.cloud.aiplatform.v1.UploadRagFileConfig.getDefaultInstance() + : uploadRagFileConfig_; + } + } + /** + * + * + *
+     * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+     * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UploadRagFileConfig, + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder, + com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder> + getUploadRagFileConfigFieldBuilder() { + if (uploadRagFileConfigBuilder_ == null) { + uploadRagFileConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.UploadRagFileConfig, + com.google.cloud.aiplatform.v1.UploadRagFileConfig.Builder, + com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder>( + getUploadRagFileConfig(), getParentForChildren(), isClean()); + uploadRagFileConfig_ = null; + } + return uploadRagFileConfigBuilder_; + } + + @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.UploadRagFileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UploadRagFileRequest) + private static final com.google.cloud.aiplatform.v1.UploadRagFileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UploadRagFileRequest(); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadRagFileRequest 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.UploadRagFileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequestOrBuilder.java new file mode 100644 index 000000000000..e11f26092d1d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UploadRagFileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UploadRagFileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to upload the file.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the RagCorpus resource into which to upload the file.
+   * Format:
+   * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the ragFile field is set. + */ + boolean hasRagFile(); + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The ragFile. + */ + com.google.cloud.aiplatform.v1.RagFile getRagFile(); + /** + * + * + *
+   * Required. The RagFile to upload.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagFile rag_file = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder(); + + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the uploadRagFileConfig field is set. + */ + boolean hasUploadRagFileConfig(); + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The uploadRagFileConfig. + */ + com.google.cloud.aiplatform.v1.UploadRagFileConfig getUploadRagFileConfig(); + /** + * + * + *
+   * Required. The config for the RagFiles to be uploaded into the RagCorpus.
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.UploadRagFileConfig upload_rag_file_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.UploadRagFileConfigOrBuilder getUploadRagFileConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponse.java new file mode 100644 index 000000000000..d5e99c88c934 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponse.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileResponse} + */ +public final class UploadRagFileResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UploadRagFileResponse) + UploadRagFileResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadRagFileResponse.newBuilder() to construct. + private UploadRagFileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadRagFileResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadRagFileResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileResponse.class, + com.google.cloud.aiplatform.v1.UploadRagFileResponse.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RAG_FILE(1), + ERROR(4), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(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 ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return RAG_FILE; + case 4: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int RAG_FILE_FIELD_NUMBER = 1; + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return Whether the ragFile field is set. + */ + @java.lang.Override + public boolean hasRagFile() { + return resultCase_ == 1; + } + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return The ragFile. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile getRagFile() { + if (resultCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagFile) result_; + } + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder() { + if (resultCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagFile) result_; + } + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 4; + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 4; + } + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (resultCase_ == 4) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (resultCase_ == 4) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.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 (resultCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1.RagFile) result_); + } + if (resultCase_ == 4) { + output.writeMessage(4, (com.google.rpc.Status) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1.RagFile) result_); + } + if (resultCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.rpc.Status) result_); + } + 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.UploadRagFileResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UploadRagFileResponse other = + (com.google.cloud.aiplatform.v1.UploadRagFileResponse) obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getRagFile().equals(other.getRagFile())) return false; + break; + case 4: + if (!getError().equals(other.getError())) 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 (resultCase_) { + case 1: + hash = (37 * hash) + RAG_FILE_FIELD_NUMBER; + hash = (53 * hash) + getRagFile().hashCode(); + break; + case 4: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse 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.UploadRagFileResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse 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.UploadRagFileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse 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.UploadRagFileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse 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.UploadRagFileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse 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.UploadRagFileResponse 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.UploadRagFileResponse 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.UploadRagFileResponse 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
+   * [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UploadRagFileResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UploadRagFileResponse) + com.google.cloud.aiplatform.v1.UploadRagFileResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UploadRagFileResponse.class, + com.google.cloud.aiplatform.v1.UploadRagFileResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UploadRagFileResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragFileBuilder_ != null) { + ragFileBuilder_.clear(); + } + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataServiceProto + .internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UploadRagFileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileResponse build() { + com.google.cloud.aiplatform.v1.UploadRagFileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UploadRagFileResponse buildPartial() { + com.google.cloud.aiplatform.v1.UploadRagFileResponse result = + new com.google.cloud.aiplatform.v1.UploadRagFileResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadRagFileResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.UploadRagFileResponse result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 1 && ragFileBuilder_ != null) { + result.result_ = ragFileBuilder_.build(); + } + if (resultCase_ == 4 && errorBuilder_ != null) { + result.result_ = errorBuilder_.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.UploadRagFileResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.UploadRagFileResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadRagFileResponse other) { + if (other == com.google.cloud.aiplatform.v1.UploadRagFileResponse.getDefaultInstance()) + return this; + switch (other.getResultCase()) { + case RAG_FILE: + { + mergeRagFile(other.getRagFile()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESULT_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(getRagFileFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + case 34: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 4; + 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 resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + ragFileBuilder_; + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return Whether the ragFile field is set. + */ + @java.lang.Override + public boolean hasRagFile() { + return resultCase_ == 1; + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return The ragFile. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFile getRagFile() { + if (ragFileBuilder_ == null) { + if (resultCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagFile) result_; + } + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } else { + if (resultCase_ == 1) { + return ragFileBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + public Builder setRagFile(com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + ragFileBuilder_.setMessage(value); + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + public Builder setRagFile(com.google.cloud.aiplatform.v1.RagFile.Builder builderForValue) { + if (ragFileBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + ragFileBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + public Builder mergeRagFile(com.google.cloud.aiplatform.v1.RagFile value) { + if (ragFileBuilder_ == null) { + if (resultCase_ == 1 + && result_ != com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance()) { + result_ = + com.google.cloud.aiplatform.v1.RagFile.newBuilder( + (com.google.cloud.aiplatform.v1.RagFile) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 1) { + ragFileBuilder_.mergeFrom(value); + } else { + ragFileBuilder_.setMessage(value); + } + } + resultCase_ = 1; + return this; + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + public Builder clearRagFile() { + if (ragFileBuilder_ == null) { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + } + ragFileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + public com.google.cloud.aiplatform.v1.RagFile.Builder getRagFileBuilder() { + return getRagFileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder() { + if ((resultCase_ == 1) && (ragFileBuilder_ != null)) { + return ragFileBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagFile) result_; + } + return com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + } + /** + * + * + *
+     * The RagFile that had been uploaded into the RagCorpus.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder> + getRagFileFieldBuilder() { + if (ragFileBuilder_ == null) { + if (!(resultCase_ == 1)) { + result_ = com.google.cloud.aiplatform.v1.RagFile.getDefaultInstance(); + } + ragFileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagFile, + com.google.cloud.aiplatform.v1.RagFile.Builder, + com.google.cloud.aiplatform.v1.RagFileOrBuilder>( + (com.google.cloud.aiplatform.v1.RagFile) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 1; + onChanged(); + return ragFileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 4; + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (resultCase_ == 4) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (resultCase_ == 4) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + resultCase_ = 4; + return this; + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 4; + return this; + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (resultCase_ == 4 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 4) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + resultCase_ = 4; + return this; + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (resultCase_ == 4) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 4) { + resultCase_ = 0; + result_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((resultCase_ == 4) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 4) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + * + * + *
+     * The error that occurred while processing the RagFile.
+     * 
+ * + * .google.rpc.Status error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(resultCase_ == 4)) { + result_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + result_ = null; + } + resultCase_ = 4; + onChanged(); + return errorBuilder_; + } + + @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.UploadRagFileResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UploadRagFileResponse) + private static final com.google.cloud.aiplatform.v1.UploadRagFileResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UploadRagFileResponse(); + } + + public static com.google.cloud.aiplatform.v1.UploadRagFileResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadRagFileResponse 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.UploadRagFileResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponseOrBuilder.java new file mode 100644 index 000000000000..a6ea5ce02115 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadRagFileResponseOrBuilder.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/aiplatform/v1/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UploadRagFileResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UploadRagFileResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return Whether the ragFile field is set. + */ + boolean hasRagFile(); + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + * + * @return The ragFile. + */ + com.google.cloud.aiplatform.v1.RagFile getRagFile(); + /** + * + * + *
+   * The RagFile that had been uploaded into the RagCorpus.
+   * 
+ * + * .google.cloud.aiplatform.v1.RagFile rag_file = 1; + */ + com.google.cloud.aiplatform.v1.RagFileOrBuilder getRagFileOrBuilder(); + + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * The error that occurred while processing the RagFile.
+   * 
+ * + * .google.rpc.Status error = 4; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + com.google.cloud.aiplatform.v1.UploadRagFileResponse.ResultCase getResultCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java new file mode 100644 index 000000000000..14a8c8c73a1e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java @@ -0,0 +1,395 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class VertexRagDataProto { + private VertexRagDataProto() {} + + 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_aiplatform_v1_RagEmbeddingModelConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_FileStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CorpusStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagCorpus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_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/aiplatform/v1/vertex_rag_" + + "data.proto\022\032google.cloud.aiplatform.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032)google/cloud/aiplatf" + + "orm/v1/api_auth.proto\032#google/cloud/aipl" + + "atform/v1/io.proto\032\037google/protobuf/time" + + "stamp.proto\"\317\002\n\027RagEmbeddingModelConfig\022" + + "r\n\032vertex_prediction_endpoint\030\001 \001(\0132L.go" + + "ogle.cloud.aiplatform.v1.RagEmbeddingMod" + + "elConfig.VertexPredictionEndpointH\000\032\257\001\n\030" + + "VertexPredictionEndpoint\022<\n\010endpoint\030\001 \001" + + "(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/En" + + "dpoint\0226\n\005model\030\002 \001(\tB\'\340A\003\372A!\n\037aiplatfor" + + "m.googleapis.com/Model\022\035\n\020model_version_" + + "id\030\003 \001(\tB\003\340A\003B\016\n\014model_config\"\251\004\n\021RagVec" + + "torDbConfig\022T\n\016rag_managed_db\030\001 \001(\0132:.go" + + "ogle.cloud.aiplatform.v1.RagVectorDbConf" + + "ig.RagManagedDbH\000\022J\n\010pinecone\030\003 \001(\01326.go" + + "ogle.cloud.aiplatform.v1.RagVectorDbConf" + + "ig.PineconeH\000\022`\n\024vertex_vector_search\030\006 " + + "\001(\0132@.google.cloud.aiplatform.v1.RagVect" + + "orDbConfig.VertexVectorSearchH\000\0225\n\010api_a" + + "uth\030\005 \001(\0132#.google.cloud.aiplatform.v1.A" + + "piAuth\022_\n\032rag_embedding_model_config\030\007 \001" + + "(\01323.google.cloud.aiplatform.v1.RagEmbed" + + "dingModelConfigB\006\340A\001\340A\005\032\016\n\014RagManagedDb\032" + + "\036\n\010Pinecone\022\022\n\nindex_name\030\001 \001(\t\032;\n\022Verte" + + "xVectorSearch\022\026\n\016index_endpoint\030\001 \001(\t\022\r\n" + + "\005index\030\002 \001(\tB\013\n\tvector_db\"\240\001\n\nFileStatus" + + "\022@\n\005state\030\001 \001(\0162,.google.cloud.aiplatfor" + + "m.v1.FileStatus.StateB\003\340A\003\022\031\n\014error_stat" + + "us\030\002 \001(\tB\003\340A\003\"5\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\001\022\t\n\005ERROR\020\002\"\253\001\n\014CorpusS" + + "tatus\022B\n\005state\030\001 \001(\0162..google.cloud.aipl" + + "atform.v1.CorpusStatus.StateB\003\340A\003\022\031\n\014err" + + "or_status\030\002 \001(\tB\003\340A\003\"<\n\005State\022\013\n\007UNKNOWN" + + "\020\000\022\017\n\013INITIALIZED\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005ERROR" + + "\020\003\"\355\003\n\tRagCorpus\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014d" + + "isplay_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 " + + "\001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\r" + + "corpus_status\030\010 \001(\0132(.google.cloud.aipla" + + "tform.v1.CorpusStatusB\003\340A\003\022Q\n\020vector_db_" + + "config\030\t \001(\0132-.google.cloud.aiplatform.v" + + "1.RagVectorDbConfigB\006\340A\001\340A\005H\000:\200\001\352A}\n#aip" + + "latform.googleapis.com/RagCorpus\022?projec" + + "ts/{project}/locations/{location}/ragCor" + + "pora/{rag_corpus}*\nragCorpora2\tragCorpus" + + "B\020\n\016backend_config\"\334\006\n\007RagFile\022@\n\ngcs_so" + + "urce\030\010 \001(\0132%.google.cloud.aiplatform.v1." + + "GcsSourceB\003\340A\003H\000\022Q\n\023google_drive_source\030" + + "\t \001(\0132-.google.cloud.aiplatform.v1.Googl" + + "eDriveSourceB\003\340A\003H\000\022S\n\024direct_upload_sou" + + "rce\030\n \001(\0132..google.cloud.aiplatform.v1.D" + + "irectUploadSourceB\003\340A\003H\000\022?\n\014slack_source" + + "\030\013 \001(\0132\'.google.cloud.aiplatform.v1.Slac" + + "kSourceH\000\022=\n\013jira_source\030\014 \001(\0132&.google." + + "cloud.aiplatform.v1.JiraSourceH\000\022L\n\023shar" + + "e_point_sources\030\016 \001(\0132-.google.cloud.aip" + + "latform.v1.SharePointSourcesH\000\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013" + + "description\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\006 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022@\n\013file_status\030\r \001(\0132&.google" + + ".cloud.aiplatform.v1.FileStatusB\003\340A\003:\217\001\352" + + "A\213\001\n!aiplatform.googleapis.com/RagFile\022S" + + "projects/{project}/locations/{location}/" + + "ragCorpora/{rag_corpus}/ragFiles/{rag_fi" + + "le}*\010ragFiles2\007ragFileB\021\n\017rag_file_sourc" + + "e\"\324\001\n\025RagFileChunkingConfig\022f\n\025fixed_len" + + "gth_chunking\030\003 \001(\0132E.google.cloud.aiplat" + + "form.v1.RagFileChunkingConfig.FixedLengt" + + "hChunkingH\000\032@\n\023FixedLengthChunking\022\022\n\nch" + + "unk_size\030\001 \001(\005\022\025\n\rchunk_overlap\030\002 \001(\005B\021\n" + + "\017chunking_config\"r\n\033RagFileTransformatio" + + "nConfig\022S\n\030rag_file_chunking_config\030\001 \001(" + + "\01321.google.cloud.aiplatform.v1.RagFileCh" + + "unkingConfig\"v\n\023UploadRagFileConfig\022_\n\036r" + + "ag_file_transformation_config\030\003 \001(\01327.go" + + "ogle.cloud.aiplatform.v1.RagFileTransfor" + + "mationConfig\"\330\005\n\024ImportRagFilesConfig\022;\n" + + "\ngcs_source\030\002 \001(\0132%.google.cloud.aiplatf" + + "orm.v1.GcsSourceH\000\022L\n\023google_drive_sourc" + + "e\030\003 \001(\0132-.google.cloud.aiplatform.v1.Goo" + + "gleDriveSourceH\000\022?\n\014slack_source\030\006 \001(\0132\'" + + ".google.cloud.aiplatform.v1.SlackSourceH" + + "\000\022=\n\013jira_source\030\007 \001(\0132&.google.cloud.ai" + + "platform.v1.JiraSourceH\000\022L\n\023share_point_" + + "sources\030\r \001(\0132-.google.cloud.aiplatform." + + "v1.SharePointSourcesH\000\022R\n\030partial_failur" + + "e_gcs_sink\030\013 \001(\0132*.google.cloud.aiplatfo" + + "rm.v1.GcsDestinationB\002\030\001H\001\022\\\n\035partial_fa" + + "ilure_bigquery_sink\030\014 \001(\0132/.google.cloud" + + ".aiplatform.v1.BigQueryDestinationB\002\030\001H\001" + + "\022_\n\036rag_file_transformation_config\030\020 \001(\013" + + "27.google.cloud.aiplatform.v1.RagFileTra" + + "nsformationConfig\022+\n\036max_embedding_reque" + + "sts_per_min\030\005 \001(\005B\003\340A\001B\017\n\rimport_sourceB" + + "\026\n\024partial_failure_sinkB\320\001\n\036com.google.c" + + "loud.aiplatform.v1B\022VertexRagDataProtoP\001" + + "Z>cloud.google.com/go/aiplatform/apiv1/a" + + "iplatformpb;aiplatformpb\252\002\032Google.Cloud." + + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" + + "V1\352\002\035Google::Cloud::AIPlatform::V1b\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(), + com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(), + com.google.cloud.aiplatform.v1.IoProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor, + new java.lang.String[] { + "VertexPredictionEndpoint", "ModelConfig", + }); + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor = + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagEmbeddingModelConfig_VertexPredictionEndpoint_descriptor, + new java.lang.String[] { + "Endpoint", "Model", "ModelVersionId", + }); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor, + new java.lang.String[] { + "RagManagedDb", + "Pinecone", + "VertexVectorSearch", + "ApiAuth", + "RagEmbeddingModelConfig", + "VectorDb", + }); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor = + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor = + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor, + new java.lang.String[] { + "IndexName", + }); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor = + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_VertexVectorSearch_descriptor, + new java.lang.String[] { + "IndexEndpoint", "Index", + }); + internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_FileStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_FileStatus_descriptor, + new java.lang.String[] { + "State", "ErrorStatus", + }); + internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_CorpusStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CorpusStatus_descriptor, + new java.lang.String[] { + "State", "ErrorStatus", + }); + internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_RagCorpus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagCorpus_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "CorpusStatus", + "VectorDbConfig", + "BackendConfig", + }); + internal_static_google_cloud_aiplatform_v1_RagFile_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_RagFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagFile_descriptor, + new java.lang.String[] { + "GcsSource", + "GoogleDriveSource", + "DirectUploadSource", + "SlackSource", + "JiraSource", + "SharePointSources", + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "FileStatus", + "RagFileSource", + }); + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor, + new java.lang.String[] { + "FixedLengthChunking", "ChunkingConfig", + }); + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor = + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagFileChunkingConfig_FixedLengthChunking_descriptor, + new java.lang.String[] { + "ChunkSize", "ChunkOverlap", + }); + internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagFileTransformationConfig_descriptor, + new java.lang.String[] { + "RagFileChunkingConfig", + }); + internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UploadRagFileConfig_descriptor, + new java.lang.String[] { + "RagFileTransformationConfig", + }); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ImportRagFilesConfig_descriptor, + new java.lang.String[] { + "GcsSource", + "GoogleDriveSource", + "SlackSource", + "JiraSource", + "SharePointSources", + "PartialFailureGcsSink", + "PartialFailureBigquerySink", + "RagFileTransformationConfig", + "MaxEmbeddingRequestsPerMin", + "ImportSource", + "PartialFailureSink", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(); + com.google.cloud.aiplatform.v1.IoProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceProto.java new file mode 100644 index 000000000000..b3b1364769fc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceProto.java @@ -0,0 +1,417 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class VertexRagDataServiceProto { + private VertexRagDataServiceProto() {} + + 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_aiplatform_v1_CreateRagCorpusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_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/aiplatform/v1/vertex_rag_" + + "data_service.proto\022\032google.cloud.aiplatf" + + "orm.v1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\032*google/cloud/aiplatform/v1/operation." + + "proto\0320google/cloud/aiplatform/v1/vertex" + + "_rag_data.proto\032#google/longrunning/oper" + + "ations.proto\032\033google/protobuf/empty.prot" + + "o\032\027google/rpc/status.proto\"\223\001\n\026CreateRag" + + "CorpusRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022>\n\nrag_" + + "corpus\030\002 \001(\0132%.google.cloud.aiplatform.v" + + "1.RagCorpusB\003\340A\002\"P\n\023GetRagCorpusRequest\022" + + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.google" + + "apis.com/RagCorpus\"\203\001\n\025ListRagCorporaReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\026\n\tpage_size\030\002 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"m\n\026List" + + "RagCorporaResponse\022:\n\013rag_corpora\030\001 \003(\0132" + + "%.google.cloud.aiplatform.v1.RagCorpus\022\027" + + "\n\017next_page_token\030\002 \001(\t\"g\n\026DeleteRagCorp" + + "usRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatf" + + "orm.googleapis.com/RagCorpus\022\022\n\005force\030\002 " + + "\001(\010B\003\340A\001\"\345\001\n\024UploadRagFileRequest\022;\n\006par" + + "ent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis" + + ".com/RagCorpus\022:\n\010rag_file\030\002 \001(\0132#.googl" + + "e.cloud.aiplatform.v1.RagFileB\003\340A\002\022T\n\026up" + + "load_rag_file_config\030\005 \001(\0132/.google.clou" + + "d.aiplatform.v1.UploadRagFileConfigB\003\340A\002" + + "\"\177\n\025UploadRagFileResponse\0227\n\010rag_file\030\001 " + + "\001(\0132#.google.cloud.aiplatform.v1.RagFile" + + "H\000\022#\n\005error\030\004 \001(\0132\022.google.rpc.StatusH\000B" + + "\010\n\006result\"\254\001\n\025ImportRagFilesRequest\022;\n\006p" + + "arent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleap" + + "is.com/RagCorpus\022V\n\027import_rag_files_con" + + "fig\030\002 \001(\01320.google.cloud.aiplatform.v1.I" + + "mportRagFilesConfigB\003\340A\002\"\343\001\n\026ImportRagFi" + + "lesResponse\022#\n\031partial_failures_gcs_path" + + "\030\004 \001(\tH\000\022)\n\037partial_failures_bigquery_ta" + + "ble\030\005 \001(\tH\000\022 \n\030imported_rag_files_count\030" + + "\001 \001(\003\022\036\n\026failed_rag_files_count\030\002 \001(\003\022\037\n" + + "\027skipped_rag_files_count\030\003 \001(\003B\026\n\024partia" + + "l_failure_sink\"L\n\021GetRagFileRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis" + + ".com/RagFile\"\203\001\n\023ListRagFilesRequest\022;\n\006" + + "parent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googlea" + + "pis.com/RagCorpus\022\026\n\tpage_size\030\002 \001(\005B\003\340A" + + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"g\n\024ListRagFil" + + "esResponse\0226\n\trag_files\030\001 \003(\0132#.google.c" + + "loud.aiplatform.v1.RagFile\022\027\n\017next_page_" + + "token\030\002 \001(\t\"O\n\024DeleteRagFileRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis" + + ".com/RagFile\"r\n CreateRagCorpusOperation" + + "Metadata\022N\n\020generic_metadata\030\001 \001(\01324.goo" + + "gle.cloud.aiplatform.v1.GenericOperation" + + "Metadata\"X\n\026UpdateRagCorpusRequest\022>\n\nra" + + "g_corpus\030\001 \001(\0132%.google.cloud.aiplatform" + + ".v1.RagCorpusB\003\340A\002\"r\n UpdateRagCorpusOpe" + + "rationMetadata\022N\n\020generic_metadata\030\001 \001(\013" + + "24.google.cloud.aiplatform.v1.GenericOpe" + + "rationMetadata\"\375\001\n\037ImportRagFilesOperati" + + "onMetadata\022N\n\020generic_metadata\030\001 \001(\01324.g" + + "oogle.cloud.aiplatform.v1.GenericOperati" + + "onMetadata\022\025\n\rrag_corpus_id\030\002 \001(\003\022V\n\027imp" + + "ort_rag_files_config\030\003 \001(\01320.google.clou" + + "d.aiplatform.v1.ImportRagFilesConfigB\003\340A" + + "\003\022\033\n\023progress_percentage\030\004 \001(\0052\317\021\n\024Verte" + + "xRagDataService\022\355\001\n\017CreateRagCorpus\0222.go" + + "ogle.cloud.aiplatform.v1.CreateRagCorpus" + + "Request\032\035.google.longrunning.Operation\"\206" + + "\001\312A-\n\tRagCorpus\022 CreateRagCorpusOperatio" + + "nMetadata\332A\021parent,rag_corpus\202\323\344\223\002<\"./v1" + + "/{parent=projects/*/locations/*}/ragCorp" + + "ora:\nrag_corpus\022\361\001\n\017UpdateRagCorpus\0222.go" + + "ogle.cloud.aiplatform.v1.UpdateRagCorpus" + + "Request\032\035.google.longrunning.Operation\"\212" + + "\001\312A-\n\tRagCorpus\022 UpdateRagCorpusOperatio" + + "nMetadata\332A\nrag_corpus\202\323\344\223\002G29/v1/{rag_c" + + "orpus.name=projects/*/locations/*/ragCor" + + "pora/*}:\nrag_corpus\022\245\001\n\014GetRagCorpus\022/.g" + + "oogle.cloud.aiplatform.v1.GetRagCorpusRe" + + "quest\032%.google.cloud.aiplatform.v1.RagCo" + + "rpus\"=\332A\004name\202\323\344\223\0020\022./v1/{name=projects/" + + "*/locations/*/ragCorpora/*}\022\270\001\n\016ListRagC" + + "orpora\0221.google.cloud.aiplatform.v1.List" + + "RagCorporaRequest\0322.google.cloud.aiplatf" + + "orm.v1.ListRagCorporaResponse\"?\332A\006parent" + + "\202\323\344\223\0020\022./v1/{parent=projects/*/locations" + + "/*}/ragCorpora\022\326\001\n\017DeleteRagCorpus\0222.goo" + + "gle.cloud.aiplatform.v1.DeleteRagCorpusR" + + "equest\032\035.google.longrunning.Operation\"p\312" + + "A0\n\025google.protobuf.Empty\022\027DeleteOperati" + + "onMetadata\332A\004name\202\323\344\223\0020*./v1/{name=proje" + + "cts/*/locations/*/ragCorpora/*}\022\352\001\n\rUplo" + + "adRagFile\0220.google.cloud.aiplatform.v1.U" + + "ploadRagFileRequest\0321.google.cloud.aipla" + + "tform.v1.UploadRagFileResponse\"t\332A&paren" + + "t,rag_file,upload_rag_file_config\202\323\344\223\002E\"" + + "@/v1/{parent=projects/*/locations/*/ragC" + + "orpora/*}/ragFiles:upload:\001*\022\215\002\n\016ImportR" + + "agFiles\0221.google.cloud.aiplatform.v1.Imp" + + "ortRagFilesRequest\032\035.google.longrunning." + + "Operation\"\250\001\312A9\n\026ImportRagFilesResponse\022" + + "\037ImportRagFilesOperationMetadata\332A\036paren" + + "t,import_rag_files_config\202\323\344\223\002E\"@/v1/{pa" + + "rent=projects/*/locations/*/ragCorpora/*" + + "}/ragFiles:import:\001*\022\252\001\n\nGetRagFile\022-.go" + + "ogle.cloud.aiplatform.v1.GetRagFileReque" + + "st\032#.google.cloud.aiplatform.v1.RagFile\"" + + "H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/loc" + + "ations/*/ragCorpora/*/ragFiles/*}\022\275\001\n\014Li" + + "stRagFiles\022/.google.cloud.aiplatform.v1." + + "ListRagFilesRequest\0320.google.cloud.aipla" + + "tform.v1.ListRagFilesResponse\"J\332A\006parent" + + "\202\323\344\223\002;\0229/v1/{parent=projects/*/locations" + + "/*/ragCorpora/*}/ragFiles\022\335\001\n\rDeleteRagF" + + "ile\0220.google.cloud.aiplatform.v1.DeleteR" + + "agFileRequest\032\035.google.longrunning.Opera" + + "tion\"{\312A0\n\025google.protobuf.Empty\022\027Delete" + + "OperationMetadata\332A\004name\202\323\344\223\002;*9/v1/{nam" + + "e=projects/*/locations/*/ragCorpora/*/ra" + + "gFiles/*}\032M\312A\031aiplatform.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\327\001\n\036com.google.cloud.aiplatform" + + ".v1B\031VertexRagDataServiceProtoP\001Z>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" + }; + 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.aiplatform.v1.OperationProto.getDescriptor(), + com.google.cloud.aiplatform.v1.VertexRagDataProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusRequest_descriptor, + new java.lang.String[] { + "Parent", "RagCorpus", + }); + internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetRagCorpusRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListRagCorporaRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListRagCorporaResponse_descriptor, + new java.lang.String[] { + "RagCorpora", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteRagCorpusRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UploadRagFileRequest_descriptor, + new java.lang.String[] { + "Parent", "RagFile", "UploadRagFileConfig", + }); + internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UploadRagFileResponse_descriptor, + new java.lang.String[] { + "RagFile", "Error", "Result", + }); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ImportRagFilesRequest_descriptor, + new java.lang.String[] { + "Parent", "ImportRagFilesConfig", + }); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ImportRagFilesResponse_descriptor, + new java.lang.String[] { + "PartialFailuresGcsPath", + "PartialFailuresBigqueryTable", + "ImportedRagFilesCount", + "FailedRagFilesCount", + "SkippedRagFilesCount", + "PartialFailureSink", + }); + internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetRagFileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListRagFilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListRagFilesResponse_descriptor, + new java.lang.String[] { + "RagFiles", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteRagFileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateRagCorpusOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusRequest_descriptor, + new java.lang.String[] { + "RagCorpus", + }); + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateRagCorpusOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ImportRagFilesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", "RagCorpusId", "ImportRagFilesConfig", "ProgressPercentage", + }); + 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); + 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.aiplatform.v1.OperationProto.getDescriptor(); + com.google.cloud.aiplatform.v1.VertexRagDataProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java new file mode 100644 index 000000000000..0bd00e804076 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java @@ -0,0 +1,349 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class VertexRagServiceProto { + private VertexRagServiceProto() {} + + 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_aiplatform_v1_RagQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagContexts_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagContexts_Context_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Fact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Fact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Claim_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Claim_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/aiplatform/v1/vertex_rag_" + + "service.proto\022\032google.cloud.aiplatform.v" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032(go" + + "ogle/cloud/aiplatform/v1/content.proto\032%" + + "google/cloud/aiplatform/v1/tool.proto\"{\n" + + "\010RagQuery\022\023\n\004text\030\001 \001(\tB\003\340A\001H\000\022Q\n\024rag_re" + + "trieval_config\030\006 \001(\0132..google.cloud.aipl" + + "atform.v1.RagRetrievalConfigB\003\340A\001B\007\n\005que" + + "ry\"\264\004\n\027RetrieveContextsRequest\022^\n\020vertex" + + "_rag_store\030\002 \001(\0132B.google.cloud.aiplatfo" + + "rm.v1.RetrieveContextsRequest.VertexRagS" + + "toreH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\0228\n\005query\030\003 \001(\013" + + "2$.google.cloud.aiplatform.v1.RagQueryB\003" + + "\340A\002\032\264\002\n\016VertexRagStore\022j\n\rrag_resources\030" + + "\003 \003(\0132N.google.cloud.aiplatform.v1.Retri" + + "eveContextsRequest.VertexRagStore.RagRes" + + "ourceB\003\340A\001\022-\n\031vector_distance_threshold\030" + + "\002 \001(\001B\005\030\001\340A\001H\000\210\001\001\032i\n\013RagResource\022?\n\nrag_" + + "corpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatform.googlea" + + "pis.com/RagCorpus\022\031\n\014rag_file_ids\030\002 \003(\tB" + + "\003\340A\001B\034\n\032_vector_distance_thresholdB\r\n\013da" + + "ta_source\"\270\001\n\013RagContexts\022A\n\010contexts\030\001 " + + "\003(\0132/.google.cloud.aiplatform.v1.RagCont" + + "exts.Context\032f\n\007Context\022\022\n\nsource_uri\030\001 " + + "\001(\t\022\033\n\023source_display_name\030\005 \001(\t\022\014\n\004text" + + "\030\002 \001(\t\022\022\n\005score\030\006 \001(\001H\000\210\001\001B\010\n\006_score\"U\n\030" + + "RetrieveContextsResponse\0229\n\010contexts\030\001 \001" + + "(\0132\'.google.cloud.aiplatform.v1.RagConte" + + "xts\"\356\002\n\024AugmentPromptRequest\022K\n\020vertex_r" + + "ag_store\030\004 \001(\0132*.google.cloud.aiplatform" + + ".v1.VertexRagStoreB\003\340A\001H\000\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022:\n\010contents\030\002 \003(\0132#.google.cloud.ai" + + "platform.v1.ContentB\003\340A\001\022J\n\005model\030\003 \001(\0132" + + "6.google.cloud.aiplatform.v1.AugmentProm" + + "ptRequest.ModelB\003\340A\001\0327\n\005Model\022\022\n\005model\030\001" + + " \001(\tB\003\340A\001\022\032\n\rmodel_version\030\002 \001(\tB\003\340A\001B\r\n" + + "\013data_source\"\207\001\n\025AugmentPromptResponse\022=" + + "\n\020augmented_prompt\030\001 \003(\0132#.google.cloud." + + "aiplatform.v1.Content\022/\n\005facts\030\002 \003(\0132 .g" + + "oogle.cloud.aiplatform.v1.Fact\"\342\002\n\031Corro" + + "borateContentRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + ">\n\007content\030\002 \001(\0132#.google.cloud.aiplatfo" + + "rm.v1.ContentB\003\340A\001H\000\210\001\001\0224\n\005facts\030\003 \003(\0132 " + + ".google.cloud.aiplatform.v1.FactB\003\340A\001\022Y\n" + + "\nparameters\030\004 \001(\0132@.google.cloud.aiplatf" + + "orm.v1.CorroborateContentRequest.Paramet" + + "ersB\003\340A\001\032-\n\nParameters\022\037\n\022citation_thres" + + "hold\030\001 \001(\001B\003\340A\001B\n\n\010_content\"\211\001\n\032Corrobor" + + "ateContentResponse\022 \n\023corroboration_scor" + + "e\030\001 \001(\002H\000\210\001\001\0221\n\006claims\030\002 \003(\0132!.google.cl" + + "oud.aiplatform.v1.ClaimB\026\n\024_corroboratio" + + "n_score\"\322\001\n\004Fact\022\022\n\005query\030\001 \001(\tH\000\210\001\001\022\022\n\005" + + "title\030\002 \001(\tH\001\210\001\001\022\020\n\003uri\030\003 \001(\tH\002\210\001\001\022\024\n\007su" + + "mmary\030\004 \001(\tH\003\210\001\001\022 \n\017vector_distance\030\005 \001(" + + "\001B\002\030\001H\004\210\001\001\022\022\n\005score\030\006 \001(\001H\005\210\001\001B\010\n\006_query" + + "B\010\n\006_titleB\006\n\004_uriB\n\n\010_summaryB\022\n\020_vecto" + + "r_distanceB\010\n\006_score\"\213\001\n\005Claim\022\030\n\013start_" + + "index\030\001 \001(\005H\000\210\001\001\022\026\n\tend_index\030\002 \001(\005H\001\210\001\001" + + "\022\024\n\014fact_indexes\030\003 \003(\005\022\022\n\005score\030\004 \001(\002H\002\210" + + "\001\001B\016\n\014_start_indexB\014\n\n_end_indexB\010\n\006_sco" + + "re2\346\005\n\020VertexRagService\022\315\001\n\020RetrieveCont" + + "exts\0223.google.cloud.aiplatform.v1.Retrie" + + "veContextsRequest\0324.google.cloud.aiplatf" + + "orm.v1.RetrieveContextsResponse\"N\332A\014pare" + + "nt,query\202\323\344\223\0029\"4/v1/{parent=projects/*/l" + + "ocations/*}:retrieveContexts:\001*\022\322\001\n\rAugm" + + "entPrompt\0220.google.cloud.aiplatform.v1.A" + + "ugmentPromptRequest\0321.google.cloud.aipla" + + "tform.v1.AugmentPromptResponse\"\\\332A\035paren" + + "t,model,vertex_rag_store\202\323\344\223\0026\"1/v1/{par" + + "ent=projects/*/locations/*}:augmentPromp" + + "t:\001*\022\335\001\n\022CorroborateContent\0225.google.clo" + + "ud.aiplatform.v1.CorroborateContentReque" + + "st\0326.google.cloud.aiplatform.v1.Corrobor" + + "ateContentResponse\"X\332A\024parent,content,fa" + + "cts\202\323\344\223\002;\"6/v1/{parent=projects/*/locati" + + "ons/*}:corroborateContent:\001*\032M\312A\031aiplatf" + + "orm.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\323\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\025VertexRagService" + + "ProtoP\001Z>cloud.google.com/go/aiplatform/" + + "apiv1/aiplatformpb;aiplatformpb\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\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.aiplatform.v1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_RagQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor, + new java.lang.String[] { + "Text", "RagRetrievalConfig", "Query", + }); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor, + new java.lang.String[] { + "VertexRagStore", "Parent", "Query", "DataSource", + }); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor = + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor, + new java.lang.String[] { + "RagResources", "VectorDistanceThreshold", + }); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor = + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RetrieveContextsRequest_VertexRagStore_RagResource_descriptor, + new java.lang.String[] { + "RagCorpus", "RagFileIds", + }); + internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_RagContexts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor, + new java.lang.String[] { + "Contexts", + }); + internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor = + internal_static_google_cloud_aiplatform_v1_RagContexts_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_RagContexts_Context_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagContexts_Context_descriptor, + new java.lang.String[] { + "SourceUri", "SourceDisplayName", "Text", "Score", + }); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RetrieveContextsResponse_descriptor, + new java.lang.String[] { + "Contexts", + }); + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor, + new java.lang.String[] { + "VertexRagStore", "Parent", "Contents", "Model", "DataSource", + }); + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor = + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AugmentPromptRequest_Model_descriptor, + new java.lang.String[] { + "Model", "ModelVersion", + }); + internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AugmentPromptResponse_descriptor, + new java.lang.String[] { + "AugmentedPrompt", "Facts", + }); + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor, + new java.lang.String[] { + "Parent", "Content", "Facts", "Parameters", + }); + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CorroborateContentRequest_Parameters_descriptor, + new java.lang.String[] { + "CitationThreshold", + }); + internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CorroborateContentResponse_descriptor, + new java.lang.String[] { + "CorroborationScore", "Claims", + }); + internal_static_google_cloud_aiplatform_v1_Fact_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_Fact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Fact_descriptor, + new java.lang.String[] { + "Query", "Title", "Uri", "Summary", "VectorDistance", "Score", + }); + internal_static_google_cloud_aiplatform_v1_Claim_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_Claim_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Claim_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "FactIndexes", "Score", + }); + 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.aiplatform.v1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java new file mode 100644 index 000000000000..4eceae9c5b6b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java @@ -0,0 +1,2736 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Retrieve from Vertex RAG Store for grounding.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexRagStore} + */ +public final class VertexRagStore extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexRagStore) + VertexRagStoreOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexRagStore.newBuilder() to construct. + private VertexRagStore(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexRagStore() { + ragResources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexRagStore(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexRagStore.class, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder.class); + } + + public interface RagResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VertexRagStore.RagResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. RagCorpora resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + java.lang.String getRagCorpus(); + /** + * + * + *
+     * Optional. RagCorpora resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + com.google.protobuf.ByteString getRagCorpusBytes(); + + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + java.util.List getRagFileIdsList(); + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + int getRagFileIdsCount(); + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + java.lang.String getRagFileIds(int index); + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + com.google.protobuf.ByteString getRagFileIdsBytes(int index); + } + /** + * + * + *
+   * The definition of the Rag resource.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexRagStore.RagResource} + */ + public static final class RagResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexRagStore.RagResource) + RagResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagResource.newBuilder() to construct. + private RagResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagResource() { + ragCorpus_ = ""; + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.class, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder.class); + } + + public static final int RAG_CORPUS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ragCorpus_ = ""; + /** + * + * + *
+     * Optional. RagCorpora resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + @java.lang.Override + public java.lang.String getRagCorpus() { + java.lang.Object ref = ragCorpus_; + 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(); + ragCorpus_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. RagCorpora resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+     * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRagCorpusBytes() { + java.lang.Object ref = ragCorpus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ragCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAG_FILE_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ragFileIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + public com.google.protobuf.ProtocolStringList getRagFileIdsList() { + return ragFileIds_; + } + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + public int getRagFileIdsCount() { + return ragFileIds_.size(); + } + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + public java.lang.String getRagFileIds(int index) { + return ragFileIds_.get(index); + } + /** + * + * + *
+     * Optional. rag_file_id. The files should be in the same rag_corpus set in
+     * rag_corpus field.
+     * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + public com.google.protobuf.ByteString getRagFileIdsBytes(int index) { + return ragFileIds_.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(ragCorpus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ragCorpus_); + } + for (int i = 0; i < ragFileIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ragFileIds_.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(ragCorpus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ragCorpus_); + } + { + int dataSize = 0; + for (int i = 0; i < ragFileIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ragFileIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getRagFileIdsList().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.VertexRagStore.RagResource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource other = + (com.google.cloud.aiplatform.v1.VertexRagStore.RagResource) obj; + + if (!getRagCorpus().equals(other.getRagCorpus())) return false; + if (!getRagFileIdsList().equals(other.getRagFileIdsList())) 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) + RAG_CORPUS_FIELD_NUMBER; + hash = (53 * hash) + getRagCorpus().hashCode(); + if (getRagFileIdsCount() > 0) { + hash = (37 * hash) + RAG_FILE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getRagFileIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource 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.VertexRagStore.RagResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource 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.VertexRagStore.RagResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource 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.VertexRagStore.RagResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource 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.VertexRagStore.RagResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource 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.VertexRagStore.RagResource 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.VertexRagStore.RagResource 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.VertexRagStore.RagResource 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 definition of the Rag resource.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexRagStore.RagResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VertexRagStore.RagResource) + com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_RagResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.class, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragCorpus_ = ""; + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_VertexRagStore_RagResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource build() { + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource buildPartial() { + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource result = + new com.google.cloud.aiplatform.v1.VertexRagStore.RagResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.VertexRagStore.RagResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragCorpus_ = ragCorpus_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + ragFileIds_.makeImmutable(); + result.ragFileIds_ = ragFileIds_; + } + } + + @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.VertexRagStore.RagResource) { + return mergeFrom((com.google.cloud.aiplatform.v1.VertexRagStore.RagResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.VertexRagStore.RagResource other) { + if (other == com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.getDefaultInstance()) + return this; + if (!other.getRagCorpus().isEmpty()) { + ragCorpus_ = other.ragCorpus_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.ragFileIds_.isEmpty()) { + if (ragFileIds_.isEmpty()) { + ragFileIds_ = other.ragFileIds_; + bitField0_ |= 0x00000002; + } else { + ensureRagFileIdsIsMutable(); + ragFileIds_.addAll(other.ragFileIds_); + } + 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: + { + ragCorpus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRagFileIdsIsMutable(); + ragFileIds_.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 ragCorpus_ = ""; + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The ragCorpus. + */ + public java.lang.String getRagCorpus() { + java.lang.Object ref = ragCorpus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ragCorpus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ragCorpus. + */ + public com.google.protobuf.ByteString getRagCorpusBytes() { + java.lang.Object ref = ragCorpus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ragCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The ragCorpus to set. + * @return This builder for chaining. + */ + public Builder setRagCorpus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ragCorpus_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRagCorpus() { + ragCorpus_ = getDefaultInstance().getRagCorpus(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. RagCorpora resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
+       * 
+ * + * + * string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for ragCorpus to set. + * @return This builder for chaining. + */ + public Builder setRagCorpusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ragCorpus_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList ragFileIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRagFileIdsIsMutable() { + if (!ragFileIds_.isModifiable()) { + ragFileIds_ = new com.google.protobuf.LazyStringArrayList(ragFileIds_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the ragFileIds. + */ + public com.google.protobuf.ProtocolStringList getRagFileIdsList() { + ragFileIds_.makeImmutable(); + return ragFileIds_; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of ragFileIds. + */ + public int getRagFileIdsCount() { + return ragFileIds_.size(); + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The ragFileIds at the given index. + */ + public java.lang.String getRagFileIds(int index) { + return ragFileIds_.get(index); + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the ragFileIds at the given index. + */ + public com.google.protobuf.ByteString getRagFileIdsBytes(int index) { + return ragFileIds_.getByteString(index); + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The ragFileIds to set. + * @return This builder for chaining. + */ + public Builder setRagFileIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFileIdsIsMutable(); + ragFileIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addRagFileIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagFileIdsIsMutable(); + ragFileIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addAllRagFileIds(java.lang.Iterable values) { + ensureRagFileIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragFileIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRagFileIds() { + ragFileIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. rag_file_id. The files should be in the same rag_corpus set in
+       * rag_corpus field.
+       * 
+ * + * repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the ragFileIds to add. + * @return This builder for chaining. + */ + public Builder addRagFileIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRagFileIdsIsMutable(); + ragFileIds_.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.VertexRagStore.RagResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexRagStore.RagResource) + private static final com.google.cloud.aiplatform.v1.VertexRagStore.RagResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexRagStore.RagResource(); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagResource 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.VertexRagStore.RagResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RAG_RESOURCES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List ragResources_; + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRagResourcesList() { + return ragResources_; + } + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder> + getRagResourcesOrBuilderList() { + return ragResources_; + } + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRagResourcesCount() { + return ragResources_.size(); + } + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources(int index) { + return ragResources_.get(index); + } + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder + getRagResourcesOrBuilder(int index) { + return ragResources_.get(index); + } + + public static final int SIMILARITY_TOP_K_FIELD_NUMBER = 2; + private int similarityTopK_ = 0; + /** + * + * + *
+   * Optional. Number of top k results to return from the selected corpora.
+   * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return Whether the similarityTopK field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasSimilarityTopK() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Number of top k results to return from the selected corpora.
+   * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return The similarityTopK. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSimilarityTopK() { + return similarityTopK_; + } + + public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER = 3; + private double vectorDistanceThreshold_ = 0D; + /** + * + * + *
+   * Optional. Only return results with vector distance smaller than the
+   * threshold.
+   * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. + * See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistanceThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Only return results with vector distance smaller than the
+   * threshold.
+   * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. + * See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistanceThreshold() { + return vectorDistanceThreshold_; + } + + public static final int RAG_RETRIEVAL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1.RagRetrievalConfig ragRetrievalConfig_; + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + + 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.writeInt32(2, similarityTopK_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, vectorDistanceThreshold_); + } + for (int i = 0; i < ragResources_.size(); i++) { + output.writeMessage(4, ragResources_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getRagRetrievalConfig()); + } + 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.computeInt32Size(2, similarityTopK_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, vectorDistanceThreshold_); + } + for (int i = 0; i < ragResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, ragResources_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRagRetrievalConfig()); + } + 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.VertexRagStore)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VertexRagStore other = + (com.google.cloud.aiplatform.v1.VertexRagStore) obj; + + if (!getRagResourcesList().equals(other.getRagResourcesList())) return false; + if (hasSimilarityTopK() != other.hasSimilarityTopK()) return false; + if (hasSimilarityTopK()) { + if (getSimilarityTopK() != other.getSimilarityTopK()) return false; + } + if (hasVectorDistanceThreshold() != other.hasVectorDistanceThreshold()) return false; + if (hasVectorDistanceThreshold()) { + if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold())) return false; + } + if (hasRagRetrievalConfig() != other.hasRagRetrievalConfig()) return false; + if (hasRagRetrievalConfig()) { + if (!getRagRetrievalConfig().equals(other.getRagRetrievalConfig())) 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 (getRagResourcesCount() > 0) { + hash = (37 * hash) + RAG_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getRagResourcesList().hashCode(); + } + if (hasSimilarityTopK()) { + hash = (37 * hash) + SIMILARITY_TOP_K_FIELD_NUMBER; + hash = (53 * hash) + getSimilarityTopK(); + } + if (hasVectorDistanceThreshold()) { + hash = (37 * hash) + VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())); + } + if (hasRagRetrievalConfig()) { + hash = (37 * hash) + RAG_RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagRetrievalConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore 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.VertexRagStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore 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.VertexRagStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore 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.VertexRagStore parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore 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.VertexRagStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore 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.VertexRagStore 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.VertexRagStore 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.VertexRagStore 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 RAG Store for grounding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexRagStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VertexRagStore) + com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexRagStore.class, + com.google.cloud.aiplatform.v1.VertexRagStore.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.VertexRagStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagResourcesFieldBuilder(); + getRagRetrievalConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ragResourcesBuilder_ == null) { + ragResources_ = java.util.Collections.emptyList(); + } else { + ragResources_ = null; + ragResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + similarityTopK_ = 0; + vectorDistanceThreshold_ = 0D; + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = 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_VertexRagStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore build() { + com.google.cloud.aiplatform.v1.VertexRagStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexRagStore buildPartial() { + com.google.cloud.aiplatform.v1.VertexRagStore result = + new com.google.cloud.aiplatform.v1.VertexRagStore(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.VertexRagStore result) { + if (ragResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ragResources_ = java.util.Collections.unmodifiableList(ragResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ragResources_ = ragResources_; + } else { + result.ragResources_ = ragResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.VertexRagStore result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.similarityTopK_ = similarityTopK_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vectorDistanceThreshold_ = vectorDistanceThreshold_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ragRetrievalConfig_ = + ragRetrievalConfigBuilder_ == null + ? ragRetrievalConfig_ + : ragRetrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + 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.VertexRagStore) { + return mergeFrom((com.google.cloud.aiplatform.v1.VertexRagStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.VertexRagStore other) { + if (other == com.google.cloud.aiplatform.v1.VertexRagStore.getDefaultInstance()) return this; + if (ragResourcesBuilder_ == null) { + if (!other.ragResources_.isEmpty()) { + if (ragResources_.isEmpty()) { + ragResources_ = other.ragResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRagResourcesIsMutable(); + ragResources_.addAll(other.ragResources_); + } + onChanged(); + } + } else { + if (!other.ragResources_.isEmpty()) { + if (ragResourcesBuilder_.isEmpty()) { + ragResourcesBuilder_.dispose(); + ragResourcesBuilder_ = null; + ragResources_ = other.ragResources_; + bitField0_ = (bitField0_ & ~0x00000001); + ragResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRagResourcesFieldBuilder() + : null; + } else { + ragResourcesBuilder_.addAllMessages(other.ragResources_); + } + } + } + if (other.hasSimilarityTopK()) { + setSimilarityTopK(other.getSimilarityTopK()); + } + if (other.hasVectorDistanceThreshold()) { + setVectorDistanceThreshold(other.getVectorDistanceThreshold()); + } + if (other.hasRagRetrievalConfig()) { + mergeRagRetrievalConfig(other.getRagRetrievalConfig()); + } + 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 16: + { + similarityTopK_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 25: + { + vectorDistanceThreshold_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource m = + input.readMessage( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.parser(), + extensionRegistry); + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(m); + } else { + ragResourcesBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: + { + input.readMessage( + getRagRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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.util.List + ragResources_ = java.util.Collections.emptyList(); + + private void ensureRagResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ragResources_ = + new java.util.ArrayList( + ragResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder> + ragResourcesBuilder_; + + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRagResourcesList() { + if (ragResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ragResources_); + } else { + return ragResourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRagResourcesCount() { + if (ragResourcesBuilder_ == null) { + return ragResources_.size(); + } else { + return ragResourcesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources(int index) { + if (ragResourcesBuilder_ == null) { + return ragResources_.get(index); + } else { + return ragResourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagResources( + int index, com.google.cloud.aiplatform.v1.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.set(index, value); + onChanged(); + } else { + ragResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagResources( + int index, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.set(index, builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.add(value); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + int index, com.google.cloud.aiplatform.v1.VertexRagStore.RagResource value) { + if (ragResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRagResourcesIsMutable(); + ragResources_.add(index, value); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRagResources( + int index, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder builderForValue) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.add(index, builderForValue.build()); + onChanged(); + } else { + ragResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRagResources( + java.lang.Iterable + values) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ragResources_); + onChanged(); + } else { + ragResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagResources() { + if (ragResourcesBuilder_ == null) { + ragResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ragResourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRagResources(int index) { + if (ragResourcesBuilder_ == null) { + ensureRagResourcesIsMutable(); + ragResources_.remove(index); + onChanged(); + } else { + ragResourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder getRagResourcesBuilder( + int index) { + return getRagResourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder + getRagResourcesOrBuilder(int index) { + if (ragResourcesBuilder_ == null) { + return ragResources_.get(index); + } else { + return ragResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder> + getRagResourcesOrBuilderList() { + if (ragResourcesBuilder_ != null) { + return ragResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ragResources_); + } + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder + addRagResourcesBuilder() { + return getRagResourcesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagResourcesBuilder( + int index) { + return getRagResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. The representation of the rag source. It can be used to specify
+     * corpus only or ragfiles. Currently only support one corpus or multiple
+     * files from one corpus. In the future we may open up multiple corpora
+     * support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRagResourcesBuilderList() { + return getRagResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder> + getRagResourcesFieldBuilder() { + if (ragResourcesBuilder_ == null) { + ragResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder, + com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder>( + ragResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ragResources_ = null; + } + return ragResourcesBuilder_; + } + + private int similarityTopK_; + /** + * + * + *
+     * Optional. Number of top k results to return from the selected corpora.
+     * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return Whether the similarityTopK field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasSimilarityTopK() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Number of top k results to return from the selected corpora.
+     * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return The similarityTopK. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSimilarityTopK() { + return similarityTopK_; + } + /** + * + * + *
+     * Optional. Number of top k results to return from the selected corpora.
+     * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @param value The similarityTopK to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSimilarityTopK(int value) { + + similarityTopK_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of top k results to return from the selected corpora.
+     * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSimilarityTopK() { + bitField0_ = (bitField0_ & ~0x00000002); + similarityTopK_ = 0; + onChanged(); + return this; + } + + private double vectorDistanceThreshold_; + /** + * + * + *
+     * Optional. Only return results with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistanceThreshold() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Only return results with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistanceThreshold() { + return vectorDistanceThreshold_; + } + /** + * + * + *
+     * Optional. Only return results with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * @param value The vectorDistanceThreshold to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setVectorDistanceThreshold(double value) { + + vectorDistanceThreshold_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Only return results with vector distance smaller than the
+     * threshold.
+     * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearVectorDistanceThreshold() { + bitField0_ = (bitField0_ & ~0x00000004); + vectorDistanceThreshold_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.RagRetrievalConfig ragRetrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder> + ragRetrievalConfigBuilder_; + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig() { + if (ragRetrievalConfigBuilder_ == null) { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } else { + return ragRetrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig(com.google.cloud.aiplatform.v1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragRetrievalConfig_ = value; + } else { + ragRetrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder builderForValue) { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfig_ = builderForValue.build(); + } else { + ragRetrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRagRetrievalConfig( + com.google.cloud.aiplatform.v1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && ragRetrievalConfig_ != null + && ragRetrievalConfig_ + != com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance()) { + getRagRetrievalConfigBuilder().mergeFrom(value); + } else { + ragRetrievalConfig_ = value; + } + } else { + ragRetrievalConfigBuilder_.mergeFrom(value); + } + if (ragRetrievalConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder + getRagRetrievalConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRagRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + if (ragRetrievalConfigBuilder_ != null) { + return ragRetrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder> + getRagRetrievalConfigFieldBuilder() { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder>( + getRagRetrievalConfig(), getParentForChildren(), isClean()); + ragRetrievalConfig_ = null; + } + return ragRetrievalConfigBuilder_; + } + + @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.VertexRagStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexRagStore) + private static final com.google.cloud.aiplatform.v1.VertexRagStore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexRagStore(); + } + + public static com.google.cloud.aiplatform.v1.VertexRagStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexRagStore 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.VertexRagStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java new file mode 100644 index 000000000000..02d36764eb1b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.5 +package com.google.cloud.aiplatform.v1; + +public interface VertexRagStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VertexRagStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRagResourcesList(); + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources(int index); + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRagResourcesCount(); + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRagResourcesOrBuilderList(); + /** + * + * + *
+   * Optional. The representation of the rag source. It can be used to specify
+   * corpus only or ragfiles. Currently only support one corpus or multiple
+   * files from one corpus. In the future we may open up multiple corpora
+   * support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourcesOrBuilder( + int index); + + /** + * + * + *
+   * Optional. Number of top k results to return from the selected corpora.
+   * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return Whether the similarityTopK field is set. + */ + @java.lang.Deprecated + boolean hasSimilarityTopK(); + /** + * + * + *
+   * Optional. Number of top k results to return from the selected corpora.
+   * 
+ * + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1/tool.proto;l=173 + * @return The similarityTopK. + */ + @java.lang.Deprecated + int getSimilarityTopK(); + + /** + * + * + *
+   * Optional. Only return results with vector distance smaller than the
+   * threshold.
+   * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. + * See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Deprecated + boolean hasVectorDistanceThreshold(); + /** + * + * + *
+   * Optional. Only return results with vector distance smaller than the
+   * threshold.
+   * 
+ * + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. + * See google/cloud/aiplatform/v1/tool.proto;l=178 + * @return The vectorDistanceThreshold. + */ + @java.lang.Deprecated + double getVectorDistanceThreshold(); + + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + boolean hasRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfig getRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder(); +} 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 790eddc6f6c5..dfffde6245c1 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 @@ -57,6 +57,9 @@ enum AcceleratorType { // Nvidia H100 80Gb GPU. NVIDIA_H100_80GB = 13; + // Nvidia H100 Mega 80Gb GPU. + NVIDIA_H100_MEGA_80GB = 14; + // TPU v2. TPU_V2 = 6; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/api_auth.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/api_auth.proto new file mode 100644 index 000000000000..be63e884b05d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/api_auth.proto @@ -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 +// +// 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.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ApiAuthProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "secretmanager.googleapis.com/SecretVersion" + pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}" +}; + +// The generic reusable api auth config. +message ApiAuth { + // The API secret. + message ApiKeyConfig { + // Required. The SecretManager secret version resource name storing API key. + // e.g. projects/{project}/secrets/{secret}/versions/{version} + string api_key_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + } + + // The auth config. + oneof auth_config { + // The API secret. + ApiKeyConfig api_key_config = 1; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 9ef20473d4f8..b87c962831a5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1/explanation.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/cloud/aiplatform/v1/service_networking.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -167,6 +168,9 @@ message Endpoint { string dedicated_endpoint_dns = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Configurations that are applied to the endpoint for online prediction. + ClientConnectionConfig client_connection_config = 23; + // Output only. Reserved for future use. bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -176,6 +180,20 @@ message Endpoint { // A deployment of a Model. Endpoints contain one or more DeployedModels. message DeployedModel { + // Runtime status of the deployed model. + message Status { + // Output only. The latest deployed model's status message (if any). + string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the status was last updated. + google.protobuf.Timestamp last_update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of available replicas of the deployed model. + int32 available_replica_count = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The prediction (for example, the machine) resources that the DeployedModel // uses. The user is billed for the resources (at least their minimal amount) // even if the DeployedModel receives no traffic. @@ -297,6 +315,9 @@ message DeployedModel { // Configuration for faster model deployment. FasterDeploymentConfig faster_deployment_config = 23; + // Output only. Runtime status of the deployed model. + Status status = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + // System labels to apply to Model Garden deployments. // System labels are managed by Google for internal use only. map system_labels = 28; @@ -345,3 +366,9 @@ message FasterDeploymentConfig { // If true, enable fast tryout feature for this deployed model. bool fast_tryout_enabled = 2; } + +// Configurations (e.g. inference timeout) that are applied on your endpoints. +message ClientConnectionConfig { + // Customizable online prediction request timeout. + google.protobuf.Duration inference_timeout = 1; +} 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 85b04746010b..b69ba90f3da6 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 @@ -80,6 +80,20 @@ service EndpointService { option (google.api.method_signature) = "endpoint,update_mask"; } + // Updates an Endpoint with a long running operation. + rpc UpdateEndpointLongRunning(UpdateEndpointLongRunningRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{endpoint.name=projects/*/locations/*/endpoints/*}:update" + body: "*" + }; + option (google.api.method_signature) = "endpoint"; + option (google.longrunning.operation_info) = { + response_type: "Endpoint" + metadata_type: "UpdateEndpointOperationMetadata" + }; + } + // Deletes an Endpoint. rpc DeleteEndpoint(DeleteEndpointRequest) returns (google.longrunning.Operation) { @@ -280,6 +294,22 @@ message UpdateEndpointRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for +// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning]. +message UpdateEndpointLongRunningRequest { + // Required. The Endpoint which replaces the resource on the server. Currently + // we only support updating the `client_connection_config` field, all the + // other fields' update will be blocked. + Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for +// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning]. +message UpdateEndpointOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint]. message DeleteEndpointRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto index 5c1684d3d9d8..c0c8c8759744 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto @@ -17,6 +17,8 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1/api_auth.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -107,3 +109,142 @@ message ContainerRegistryDestination { // If a tag is not specified, "latest" will be used as the default tag. string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } + +// The Google Drive location for the input content. +message GoogleDriveSource { + // The type and ID of the Google Drive resource. + message ResourceId { + // The type of the Google Drive resource. + enum ResourceType { + // Unspecified resource type. + RESOURCE_TYPE_UNSPECIFIED = 0; + + // File resource type. + RESOURCE_TYPE_FILE = 1; + + // Folder resource type. + RESOURCE_TYPE_FOLDER = 2; + } + + // Required. The type of the Google Drive resource. + ResourceType resource_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID of the Google Drive resource. + string resource_id = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Google Drive resource IDs. + repeated ResourceId resource_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The input content is encapsulated and uploaded in the request. +message DirectUploadSource {} + +// The Slack source for the ImportRagFilesRequest. +message SlackSource { + // SlackChannels contains the Slack channels and corresponding access token. + message SlackChannels { + // SlackChannel contains the Slack channel ID and the time range to import. + message SlackChannel { + // Required. The Slack channel ID. + string channel_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The starting timestamp for messages to import. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ending timestamp for messages to import. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The Slack channel IDs. + repeated SlackChannel channels = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The SecretManager secret version resource name (e.g. + // projects/{project}/secrets/{secret}/versions/{version}) storing the + // Slack channel access token that has access to the slack channel IDs. + // See: https://api.slack.com/tutorials/tracks/getting-a-token. + ApiAuth.ApiKeyConfig api_key_config = 3 + [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The Slack channels. + repeated SlackChannels channels = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The Jira source for the ImportRagFilesRequest. +message JiraSource { + // JiraQueries contains the Jira queries and corresponding authentication. + message JiraQueries { + // A list of Jira projects to import in their entirety. + repeated string projects = 3; + + // A list of custom Jira queries to import. For information about JQL (Jira + // Query Language), see + // https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/ + repeated string custom_queries = 4; + + // Required. The Jira email address. + string email = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Jira server URI. + string server_uri = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The SecretManager secret version resource name (e.g. + // projects/{project}/secrets/{secret}/versions/{version}) storing the + // Jira API key. See [Manage API tokens for your Atlassian + // account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/). + ApiAuth.ApiKeyConfig api_key_config = 7 + [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The Jira queries. + repeated JiraQueries jira_queries = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// The SharePointSources to pass to ImportRagFiles. +message SharePointSources { + // An individual SharePointSource. + message SharePointSource { + // The SharePoint folder source. If not provided, uses "root". + oneof folder_source { + // The path of the SharePoint folder to download from. + string sharepoint_folder_path = 5; + + // The ID of the SharePoint folder to download from. + string sharepoint_folder_id = 6; + } + + // The SharePoint drive source. + oneof drive_source { + // The name of the drive to download from. + string drive_name = 7; + + // The ID of the drive to download from. + string drive_id = 8; + } + + // The Application ID for the app registered in Microsoft Azure Portal. + // The application must also be configured with MS Graph permissions + // "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All. + string client_id = 1; + + // The application secret for the app registered in Azure. + ApiAuth.ApiKeyConfig client_secret = 2; + + // Unique identifier of the Azure Active Directory Instance. + string tenant_id = 3; + + // The name of the SharePoint site to download from. This can be the site + // name or the site id. + string sharepoint_site_name = 4; + + // Output only. The SharePoint file id. Output only. + string file_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The SharePoint sources. + repeated SharePointSource share_point_sources = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto index 52112a886015..0018c896ffb9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto @@ -104,6 +104,14 @@ message DedicatedResources { // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Optional. Number of required available replicas for the deployment to + // succeed. This field is only needed when partial model deployment/mutation + // is desired. If set, the model deploy/mutate operation will succeed once + // available_replica_count reaches required_replica_count, and the rest of + // the replicas will be retried. If not set, the default + // required_replica_count will be min_replica_count. + int32 required_replica_count = 9 [(google.api.field_behavior) = OPTIONAL]; + // Immutable. The metric specifications that overrides a resource // utilization metric (CPU utilization, accelerator's duty cycle, and so on) // target value (default to 60 if not set). At most one entry is allowed per diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto index 43c961e31f4c..f5b218828b38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto @@ -20,6 +20,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/network_spec.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -70,6 +72,21 @@ message NotebookExecutionJob { bytes content = 1; } + // Compute configuration to use for an execution job. + message CustomEnvironmentSpec { + // The specification of a single machine for the execution job. + MachineSpec machine_spec = 1; + + // The specification of a persistent disk to attach for the execution job. + PersistentDiskSpec persistent_disk_spec = 2; + + // The network configuration to use for the execution job. + NetworkSpec network_spec = 3; + } + + // Configuration for a Workbench Instances-based environment. + message WorkbenchRuntime {} + // The input notebook. oneof notebook_source { // The Dataform Repository pointing to a single file notebook repository. @@ -90,6 +107,9 @@ message NotebookExecutionJob { [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" }]; + + // The custom compute configuration for an execution job. + CustomEnvironmentSpec custom_environment_spec = 16; } // The location to store the notebook execution result. @@ -108,6 +128,13 @@ message NotebookExecutionJob { string service_account = 18; } + // Runtime environment for the notebook execution job. If unspecified, the + // default runtime of Colab is used. + oneof runtime_environment { + // The Workbench runtime configuration to use for the notebook execution. + WorkbenchRuntime workbench_runtime = 23; + } + // Output only. The resource name of this NotebookExecutionJob. Format: // `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -157,8 +184,13 @@ message NotebookExecutionJob { // and are immutable. map labels = 19; + // The name of the kernel to use during notebook execution. If unset, the + // default kernel is used. + string kernel_name = 20; + // Customer-managed encryption key spec for the notebook execution job. // This field is auto-populated if the - // [NotebookService.NotebookRuntimeTemplate][] has an encryption spec. + // [NotebookRuntimeTemplate][google.cloud.aiplatform.v1.NotebookRuntimeTemplate] + // has an encryption spec. EncryptionSpec encryption_spec = 22; } 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 885d0a507988..27af5c222ba3 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 @@ -133,6 +133,10 @@ message Retrieval { oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; + + // Set to use data source powered by Vertex RAG store. + // User data is uploaded via the VertexRagDataService. + VertexRagStore vertex_rag_store = 4; } // Optional. Deprecated. This option is no longer supported. @@ -140,6 +144,46 @@ message Retrieval { [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } +// Retrieve from Vertex RAG Store for grounding. +message VertexRagStore { + // The definition of the Rag resource. + message RagResource { + // Optional. RagCorpora resource name. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string rag_corpus = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Optional. rag_file_id. The files should be in the same rag_corpus set in + // rag_corpus field. + repeated string rag_file_ids = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The representation of the rag source. It can be used to specify + // corpus only or ragfiles. Currently only support one corpus or multiple + // files from one corpus. In the future we may open up multiple corpora + // support. + repeated RagResource rag_resources = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of top k results to return from the selected corpora. + optional int32 similarity_top_k = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Only return results with vector distance smaller than the + // threshold. + optional double vector_distance_threshold = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The retrieval config for the Rag query. + RagRetrievalConfig rag_retrieval_config = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + // Retrieve from Vertex AI Search datastore for grounding. // See https://cloud.google.com/products/agent-builder message VertexAISearch { @@ -212,3 +256,32 @@ message FunctionCallingConfig { repeated string allowed_function_names = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Specifies the context retrieval config. +message RagRetrievalConfig { + // Config for filters. + message Filter { + // Filter contexts retrieved from the vector DB based on either vector + // distance or vector similarity. + oneof vector_db_threshold { + // Optional. Only returns contexts with vector distance smaller than the + // threshold. + double vector_distance_threshold = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only returns contexts with vector similarity larger than the + // threshold. + double vector_similarity_threshold = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. String for metadata filtering. + string metadata_filter = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The number of contexts to retrieve. + int32 top_k = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for filters. + Filter filter = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto new file mode 100644 index 000000000000..2b1d92319715 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto @@ -0,0 +1,353 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/api_auth.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "VertexRagDataProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Config for the embedding model to use for RAG. +message RagEmbeddingModelConfig { + // Config representing a model hosted on Vertex Prediction Endpoint. + message VertexPredictionEndpoint { + // Required. The endpoint resource name. + // Format: + // `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + // or + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Output only. The resource name of the model that is deployed on the + // endpoint. Present only when the endpoint is not a publisher model. + // Pattern: + // `projects/{project}/locations/{location}/models/{model}` + string model = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Output only. Version ID of the model that is deployed on the endpoint. + // Present only when the endpoint is not a publisher model. + string model_version_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The model config to use. + oneof model_config { + // The Vertex AI Prediction Endpoint that either refers to a publisher model + // or an endpoint that is hosting a 1P fine-tuned text embedding model. + // Endpoints hosting non-1P fine-tuned text embedding models are + // currently not supported. + // This is used for dense vector search. + VertexPredictionEndpoint vertex_prediction_endpoint = 1; + } +} + +// Config for the Vector DB to use for RAG. +message RagVectorDbConfig { + // The config for the default RAG-managed Vector DB. + message RagManagedDb {} + + // The config for the Pinecone. + message Pinecone { + // Pinecone index name. + // This value cannot be changed after it's set. + string index_name = 1; + } + + // The config for the Vertex Vector Search. + message VertexVectorSearch { + // The resource name of the Index Endpoint. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string index_endpoint = 1; + + // The resource name of the Index. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 2; + } + + // The config for the Vector DB. + oneof vector_db { + // The config for the RAG-managed Vector DB. + RagManagedDb rag_managed_db = 1; + + // The config for the Pinecone. + Pinecone pinecone = 3; + + // The config for the Vertex Vector Search. + VertexVectorSearch vertex_vector_search = 6; + } + + // Authentication config for the chosen Vector DB. + ApiAuth api_auth = 5; + + // Optional. Immutable. The embedding model config of the Vector DB. + RagEmbeddingModelConfig rag_embedding_model_config = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// RagFile status. +message FileStatus { + // RagFile state. + enum State { + // RagFile state is unspecified. + STATE_UNSPECIFIED = 0; + + // RagFile resource has been created and indexed successfully. + ACTIVE = 1; + + // RagFile resource is in a problematic state. + // See `error_message` field for details. + ERROR = 2; + } + + // Output only. RagFile state. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only when the `state` field is ERROR. + string error_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// RagCorpus status. +message CorpusStatus { + // RagCorpus life state. + enum State { + // This state is not supposed to happen. + UNKNOWN = 0; + + // RagCorpus resource entry is initialized, but hasn't done validation. + INITIALIZED = 1; + + // RagCorpus is provisioned successfully and is ready to serve. + ACTIVE = 2; + + // RagCorpus is in a problematic situation. + // See `error_message` field for details. + ERROR = 3; + } + + // Output only. RagCorpus life state. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only when the `state` field is ERROR. + string error_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A RagCorpus is a RagFile container and a project can have multiple +// RagCorpora. +message RagCorpus { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/RagCorpus" + pattern: "projects/{project}/locations/{location}/ragCorpora/{rag_corpus}" + plural: "ragCorpora" + singular: "ragCorpus" + }; + + // Output only. The resource name of the RagCorpus. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the RagCorpus. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the RagCorpus. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when this RagCorpus was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this RagCorpus was last updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. RagCorpus state. + CorpusStatus corpus_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The backend config of the RagCorpus. + // It can be data store and/or retrieval engine. + oneof backend_config { + // Optional. Immutable. The config for the Vector DBs. + RagVectorDbConfig vector_db_config = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + } +} + +// A RagFile contains user data for chunking, embedding and indexing. +message RagFile { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/RagFile" + pattern: "projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}" + plural: "ragFiles" + singular: "ragFile" + }; + + // The origin location of the RagFile if it is imported from Google Cloud + // Storage or Google Drive. + oneof rag_file_source { + // Output only. Google Cloud Storage location of the RagFile. + // It does not support wildcards in the Cloud Storage uri for now. + GcsSource gcs_source = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google Drive location. Supports importing individual files + // as well as Google Drive folders. + GoogleDriveSource google_drive_source = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The RagFile is encapsulated and uploaded in the + // UploadRagFile request. + DirectUploadSource direct_upload_source = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The RagFile is imported from a Slack channel. + SlackSource slack_source = 11; + + // The RagFile is imported from a Jira query. + JiraSource jira_source = 12; + + // The RagFile is imported from a SharePoint source. + SharePointSources share_point_sources = 14; + } + + // Output only. The resource name of the RagFile. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the RagFile. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the RagFile. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when this RagFile was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this RagFile was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the RagFile. + FileStatus file_status = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Specifies the size and overlap of chunks for RagFiles. +message RagFileChunkingConfig { + // Specifies the fixed length chunking config. + message FixedLengthChunking { + // The size of the chunks. + int32 chunk_size = 1; + + // The overlap between chunks. + int32 chunk_overlap = 2; + } + + // Specifies the chunking config for RagFiles. + oneof chunking_config { + // Specifies the fixed length chunking config. + FixedLengthChunking fixed_length_chunking = 3; + } +} + +// Specifies the transformation config for RagFiles. +message RagFileTransformationConfig { + // Specifies the chunking config for RagFiles. + RagFileChunkingConfig rag_file_chunking_config = 1; +} + +// Config for uploading RagFile. +message UploadRagFileConfig { + // Specifies the transformation config for RagFiles. + RagFileTransformationConfig rag_file_transformation_config = 3; +} + +// Config for importing RagFiles. +message ImportRagFilesConfig { + // The source of the import. + oneof import_source { + // Google Cloud Storage location. Supports importing individual files as + // well as entire Google Cloud Storage directories. Sample formats: + // - `gs://bucket_name/my_directory/object_name/my_file.txt` + // - `gs://bucket_name/my_directory` + GcsSource gcs_source = 2; + + // Google Drive location. Supports importing individual files as + // well as Google Drive folders. + GoogleDriveSource google_drive_source = 3; + + // Slack channels with their corresponding access tokens. + SlackSource slack_source = 6; + + // Jira queries with their corresponding authentication. + JiraSource jira_source = 7; + + // SharePoint sources. + SharePointSources share_point_sources = 13; + } + + // Optional. If provided, all partial failures are written to the sink. + // Deprecated. Prefer to use the `import_result_sink`. + oneof partial_failure_sink { + // The Cloud Storage path to write partial failures to. + // Deprecated. Prefer to use `import_result_gcs_sink`. + GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + + // The BigQuery destination to write partial failures to. It should be a + // bigquery table resource name (e.g. + // "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the + // table does not exist, it will be created with the expected schema. If the + // table exists, the schema will be validated and data will be added to this + // existing table. + // Deprecated. Prefer to use `import_result_bq_sink`. + BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; + } + + // Specifies the transformation config for RagFiles. + RagFileTransformationConfig rag_file_transformation_config = 16; + + // Optional. The max number of queries per minute that this job is allowed to + // make to the embedding model specified on the corpus. This value is specific + // to this job and not shared across other import jobs. Consult the Quotas + // page on the project to set an appropriate value here. + // If unspecified, a default value of 1,000 QPM would be used. + int32 max_embedding_requests_per_min = 5 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data_service.proto new file mode 100644 index 000000000000..eb1c0ee4f94a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data_service.proto @@ -0,0 +1,422 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/vertex_rag_data.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "VertexRagDataServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// A service for managing user data for RAG. +service VertexRagDataService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a RagCorpus. + rpc CreateRagCorpus(CreateRagCorpusRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/ragCorpora" + body: "rag_corpus" + }; + option (google.api.method_signature) = "parent,rag_corpus"; + option (google.longrunning.operation_info) = { + response_type: "RagCorpus" + metadata_type: "CreateRagCorpusOperationMetadata" + }; + } + + // Updates a RagCorpus. + rpc UpdateRagCorpus(UpdateRagCorpusRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{rag_corpus.name=projects/*/locations/*/ragCorpora/*}" + body: "rag_corpus" + }; + option (google.api.method_signature) = "rag_corpus"; + option (google.longrunning.operation_info) = { + response_type: "RagCorpus" + metadata_type: "UpdateRagCorpusOperationMetadata" + }; + } + + // Gets a RagCorpus. + rpc GetRagCorpus(GetRagCorpusRequest) returns (RagCorpus) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/ragCorpora/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists RagCorpora in a Location. + rpc ListRagCorpora(ListRagCorporaRequest) returns (ListRagCorporaResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/ragCorpora" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a RagCorpus. + rpc DeleteRagCorpus(DeleteRagCorpusRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/ragCorpora/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Upload a file into a RagCorpus. + rpc UploadRagFile(UploadRagFileRequest) returns (UploadRagFileResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:upload" + body: "*" + }; + option (google.api.method_signature) = + "parent,rag_file,upload_rag_file_config"; + } + + // Import files from Google Cloud Storage or Google Drive into a RagCorpus. + rpc ImportRagFiles(ImportRagFilesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:import" + body: "*" + }; + option (google.api.method_signature) = "parent,import_rag_files_config"; + option (google.longrunning.operation_info) = { + response_type: "ImportRagFilesResponse" + metadata_type: "ImportRagFilesOperationMetadata" + }; + } + + // Gets a RagFile. + rpc GetRagFile(GetRagFileRequest) returns (RagFile) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists RagFiles in a RagCorpus. + rpc ListRagFiles(ListRagFilesRequest) returns (ListRagFilesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a RagFile. + rpc DeleteRagFile(DeleteRagFileRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } +} + +// Request message for +// [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus]. +message CreateRagCorpusRequest { + // Required. The resource name of the Location to create the RagCorpus in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The RagCorpus to create. + RagCorpus rag_corpus = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [VertexRagDataService.GetRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.GetRagCorpus] +message GetRagCorpusRequest { + // Required. The name of the RagCorpus resource. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; +} + +// Request message for +// [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]. +message ListRagCorporaRequest { + // Required. The resource name of the Location from which to list the + // RagCorpora. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The standard list page size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListRagCorporaResponse.next_page_token][google.cloud.aiplatform.v1.ListRagCorporaResponse.next_page_token] + // of the previous + // [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora]. +message ListRagCorporaResponse { + // List of RagCorpora in the requested page. + repeated RagCorpus rag_corpora = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListRagCorporaRequest.page_token][google.cloud.aiplatform.v1.ListRagCorporaRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [VertexRagDataService.DeleteRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagCorpus]. +message DeleteRagCorpusRequest { + // Required. The name of the RagCorpus resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Optional. If set to true, any RagFiles in this RagCorpus will also be + // deleted. Otherwise, the request will only work if the RagCorpus has no + // RagFiles. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile]. +message UploadRagFileRequest { + // Required. The name of the RagCorpus resource into which to upload the file. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Required. The RagFile to upload. + RagFile rag_file = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The config for the RagFiles to be uploaded into the RagCorpus. + // [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile]. + UploadRagFileConfig upload_rag_file_config = 5 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [VertexRagDataService.UploadRagFile][google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile]. +message UploadRagFileResponse { + // The result of the upload. + oneof result { + // The RagFile that had been uploaded into the RagCorpus. + RagFile rag_file = 1; + + // The error that occurred while processing the RagFile. + google.rpc.Status error = 4; + } +} + +// Request message for +// [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. +message ImportRagFilesRequest { + // Required. The name of the RagCorpus resource into which to import files. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Required. The config for the RagFiles to be synced and imported into the + // RagCorpus. + // [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. + ImportRagFilesConfig import_rag_files_config = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. +message ImportRagFilesResponse { + // The location into which the partial failures were written. + oneof partial_failure_sink { + // The Google Cloud Storage path into which the partial failures were + // written. + string partial_failures_gcs_path = 4; + + // The BigQuery table into which the partial failures were written. + string partial_failures_bigquery_table = 5; + } + + // The number of RagFiles that had been imported into the RagCorpus. + int64 imported_rag_files_count = 1; + + // The number of RagFiles that had failed while importing into the RagCorpus. + int64 failed_rag_files_count = 2; + + // The number of RagFiles that was skipped while importing into the RagCorpus. + int64 skipped_rag_files_count = 3; +} + +// Request message for +// [VertexRagDataService.GetRagFile][google.cloud.aiplatform.v1.VertexRagDataService.GetRagFile] +message GetRagFileRequest { + // Required. The name of the RagFile resource. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagFile" + } + ]; +} + +// Request message for +// [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]. +message ListRagFilesRequest { + // Required. The resource name of the RagCorpus from which to list the + // RagFiles. Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Optional. The standard list page size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListRagFilesResponse.next_page_token][google.cloud.aiplatform.v1.ListRagFilesResponse.next_page_token] + // of the previous + // [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [VertexRagDataService.ListRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles]. +message ListRagFilesResponse { + // List of RagFiles in the requested page. + repeated RagFile rag_files = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListRagFilesRequest.page_token][google.cloud.aiplatform.v1.ListRagFilesRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [VertexRagDataService.DeleteRagFile][google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagFile]. +message DeleteRagFileRequest { + // Required. The name of the RagFile resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagFile" + } + ]; +} + +// Runtime operation information for +// [VertexRagDataService.CreateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus]. +message CreateRagCorpusOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for +// [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus]. +message UpdateRagCorpusRequest { + // Required. The RagCorpus which replaces the resource on the server. + RagCorpus rag_corpus = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for +// [VertexRagDataService.UpdateRagCorpus][google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus]. +message UpdateRagCorpusOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Runtime operation information for +// [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles]. +message ImportRagFilesOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; + + // The resource ID of RagCorpus that this operation is executed on. + int64 rag_corpus_id = 2; + + // Output only. The config that was passed in the ImportRagFilesRequest. + ImportRagFilesConfig import_rag_files_config = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The progress percentage of the operation. Value is in the range [0, 100]. + // This percentage is calculated as follows: + // progress_percentage = 100 * (successes + failures + skips) / total + int32 progress_percentage = 4; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto new file mode 100644 index 000000000000..897a2a50aa7e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto @@ -0,0 +1,311 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/content.proto"; +import "google/cloud/aiplatform/v1/tool.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "VertexRagServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// A service for retrieving relevant contexts. +service VertexRagService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves relevant contexts for a query. + rpc RetrieveContexts(RetrieveContextsRequest) + returns (RetrieveContextsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:retrieveContexts" + body: "*" + }; + option (google.api.method_signature) = "parent,query"; + } + + // Given an input prompt, it returns augmented prompt from vertex rag store + // to guide LLM towards generating grounded responses. + rpc AugmentPrompt(AugmentPromptRequest) returns (AugmentPromptResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:augmentPrompt" + body: "*" + }; + option (google.api.method_signature) = "parent,model,vertex_rag_store"; + } + + // Given an input text, it returns a score that evaluates the factuality of + // the text. It also extracts and returns claims from the text and provides + // supporting facts. + rpc CorroborateContent(CorroborateContentRequest) + returns (CorroborateContentResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:corroborateContent" + body: "*" + }; + option (google.api.method_signature) = "parent,content,facts"; + } +} + +// A query to retrieve relevant contexts. +message RagQuery { + // The query to retrieve contexts. + // Currently only text query is supported. + oneof query { + // Optional. The query in text format to get relevant contexts. + string text = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The retrieval config for the query. + RagRetrievalConfig rag_retrieval_config = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts]. +message RetrieveContextsRequest { + // The data source for Vertex RagStore. + message VertexRagStore { + // The definition of the Rag resource. + message RagResource { + // Optional. RagCorpora resource name. + // Format: + // `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + string rag_corpus = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/RagCorpus" + } + ]; + + // Optional. rag_file_id. The files should be in the same rag_corpus set + // in rag_corpus field. + repeated string rag_file_ids = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The representation of the rag source. It can be used to specify + // corpus only or ragfiles. Currently only support one corpus or multiple + // files from one corpus. In the future we may open up multiple corpora + // support. + repeated RagResource rag_resources = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only return contexts with vector distance smaller than the + // threshold. + optional double vector_distance_threshold = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + } + + // Data Source to retrieve contexts. + oneof data_source { + // The data source for Vertex RagStore. + VertexRagStore vertex_rag_store = 2; + } + + // Required. The resource name of the Location from which to retrieve + // RagContexts. The users must have permission to make a call in the project. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Single RAG retrieve query. + RagQuery query = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Relevant contexts for one query. +message RagContexts { + // A context of the query. + message Context { + // If the file is imported from Cloud Storage or Google Drive, source_uri + // will be original file URI in Cloud Storage or Google Drive; if file is + // uploaded, source_uri will be file display name. + string source_uri = 1; + + // The file display name. + string source_display_name = 5; + + // The text chunk. + string text = 2; + + // According to the underlying Vector DB and the selected metric type, the + // score can be either the distance or the similarity between the query and + // the context and its range depends on the metric type. + // + // For example, if the metric type is COSINE_DISTANCE, it represents the + // distance between the query and the context. The larger the distance, the + // less relevant the context is to the query. The range is [0, 2], while 0 + // means the most relevant and 2 means the least relevant. + optional double score = 6; + } + + // All its contexts. + repeated Context contexts = 1; +} + +// Response message for +// [VertexRagService.RetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts]. +message RetrieveContextsResponse { + // The contexts of the query. + RagContexts contexts = 1; +} + +// Request message for AugmentPrompt. +message AugmentPromptRequest { + // Metadata of the backend deployed model. + message Model { + // Optional. The model that the user will send the augmented prompt for + // content generation. + string model = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The model version of the backend deployed model. + string model_version = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The data source for retrieving contexts. + oneof data_source { + // Optional. Retrieves contexts from the Vertex RagStore. + VertexRagStore vertex_rag_store = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the Location from which to augment prompt. + // The users must have permission to make a call in the project. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Input content to augment, only text format is supported for now. + repeated Content contents = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata of the backend deployed model. + Model model = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for AugmentPrompt. +message AugmentPromptResponse { + // Augmented prompt, only text format is supported for now. + repeated Content augmented_prompt = 1; + + // Retrieved facts from RAG data sources. + repeated Fact facts = 2; +} + +// Request message for CorroborateContent. +message CorroborateContentRequest { + // Parameters that can be overrided per request. + message Parameters { + // Optional. Only return claims with citation score larger than the + // threshold. + double citation_threshold = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the Location from which to corroborate text. + // The users must have permission to make a call in the project. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Input content to corroborate, only text format is supported for + // now. + optional Content content = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Facts used to generate the text can also be used to corroborate + // the text. + repeated Fact facts = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Parameters that can be set to override default settings per + // request. + Parameters parameters = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for CorroborateContent. +message CorroborateContentResponse { + // Confidence score of corroborating content. Value is [0,1] with 1 is the + // most confidence. + optional float corroboration_score = 1; + + // Claims that are extracted from the input content and facts that support the + // claims. + repeated Claim claims = 2; +} + +// The fact used in grounding. +message Fact { + // Query that is used to retrieve this fact. + optional string query = 1; + + // If present, it refers to the title of this fact. + optional string title = 2; + + // If present, this uri links to the source of the fact. + optional string uri = 3; + + // If present, the summary/snippet of the fact. + optional string summary = 4; + + // If present, the distance between the query vector and this fact vector. + optional double vector_distance = 5 [deprecated = true]; + + // If present, according to the underlying Vector DB and the selected metric + // type, the score can be either the distance or the similarity between the + // query and the fact and its range depends on the metric type. + // + // For example, if the metric type is COSINE_DISTANCE, it represents the + // distance between the query and the fact. The larger the distance, the less + // relevant the fact is to the query. The range is [0, 2], while 0 means the + // most relevant and 2 means the least relevant. + optional double score = 6; +} + +// Claim that is extracted from the input text and facts that support it. +message Claim { + // Index in the input text where the claim starts (inclusive). + optional int32 start_index = 1; + + // Index in the input text where the claim ends (exclusive). + optional int32 end_index = 2; + + // Indexes of the facts supporting this claim. + repeated int32 fact_indexes = 3; + + // Confidence score of this corroboration. + optional float score = 4; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java index 86e87f92a443..83d13a6146d8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java @@ -131,6 +131,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_80GB = 13; */ NVIDIA_H100_80GB(13), + /** + * + * + *
+   * Nvidia H100 Mega 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_MEGA_80GB = 14; + */ + NVIDIA_H100_MEGA_80GB(14), /** * * @@ -275,6 +285,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_80GB = 13; */ public static final int NVIDIA_H100_80GB_VALUE = 13; + /** + * + * + *
+   * Nvidia H100 Mega 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_MEGA_80GB = 14; + */ + public static final int NVIDIA_H100_MEGA_80GB_VALUE = 14; /** * * @@ -360,6 +380,8 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_L4; case 13: return NVIDIA_H100_80GB; + case 14: + return NVIDIA_H100_MEGA_80GB; case 6: return TPU_V2; case 7: diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index 6bca39468c03..fd2bf46e8185 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -38,21 +38,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/accele" + "rator_type.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1*\263\002\n\017AcceleratorType\022 \n\034ACCELER" + + "m.v1beta1*\316\002\n\017AcceleratorType\022 \n\034ACCELER" + "ATOR_TYPE_UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_" + "K80\020\001\032\002\010\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVID" + "IA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017" + "NVIDIA_TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010" + "\022\024\n\020NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n" - + "\020NVIDIA_H100_80GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V" - + "3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B" - + "\353\001\n#com.google.cloud.aiplatform.v1beta1B" - + "\024AcceleratorTypeProtoP\001ZCcloud.google.co" - + "m/go/aiplatform/apiv1beta1/aiplatformpb;" - + "aiplatformpb\252\002\037Google.Cloud.AIPlatform.V" - + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" - + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" - + "roto3" + + "\020NVIDIA_H100_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_" + + "80GB\020\016\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4" + + "_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\353\001\n#com.googl" + + "e.cloud.aiplatform.v1beta1B\024AcceleratorT" + + "ypeProtoP\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( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequest.java new file mode 100644 index 000000000000..69a2f0a4d2cb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequest.java @@ -0,0 +1,2779 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for AugmentPrompt.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptRequest} + */ +public final class AugmentPromptRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AugmentPromptRequest) + AugmentPromptRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AugmentPromptRequest.newBuilder() to construct. + private AugmentPromptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AugmentPromptRequest() { + parent_ = ""; + contents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AugmentPromptRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Builder.class); + } + + public interface ModelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); + } + /** + * + * + *
+   * Metadata of the backend deployed model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model} + */ + public static final class Model extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) + ModelOrBuilder { + private static final long serialVersionUID = 0L; + // Use Model.newBuilder() to construct. + private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Model() { + model_ = ""; + modelVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Model(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The model that the user will send the augmented prompt for
+     * content generation.
+     * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + 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(); + modelVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The model version of the backend deployed model.
+     * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = 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(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelVersion_); + } + 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(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelVersion_); + } + 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.AugmentPromptRequest.Model)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model other = + (com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) obj; + + if (!getModel().equals(other.getModel())) return false; + if (!getModelVersion().equals(other.getModelVersion())) 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) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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.AugmentPromptRequest.Model 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 of the backend deployed model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + modelVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model build() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model buildPartial() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model result = + new com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + } + + @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.AugmentPromptRequest.Model) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance()) + return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + 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: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + modelVersion_ = 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 model_ = ""; + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model that the user will send the augmented prompt for
+       * content generation.
+       * 
+ * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object modelVersion_ = ""; + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The model version of the backend deployed model.
+       * 
+ * + * string model_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = 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.v1beta1.AugmentPromptRequest.Model) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model) + private static final com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model(); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Model 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.AugmentPromptRequest.Model + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + 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 { + VERTEX_RAG_STORE(4), + 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 4: + return VERTEX_RAG_STORE; + 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 VERTEX_RAG_STORE_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexRagStore getVertexRagStore() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List contents_; + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + return contents_.get(index); + } + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int MODEL_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model_; + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model getModel() { + return model_ == null + ? com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder + getModelOrBuilder() { + return model_ == null + ? com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + + 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 < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getModel()); + } + if (dataSourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1beta1.VertexRagStore) 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getModel()); + } + if (dataSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.VertexRagStore) 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.aiplatform.v1beta1.AugmentPromptRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest other = + (com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getContentsList().equals(other.getContentsList())) return false; + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel().equals(other.getModel())) return false; + } + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 4: + if (!getVertexRagStore().equals(other.getVertexRagStore())) 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(); + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + switch (dataSourceCase_) { + case 4: + hash = (37 * hash) + VERTEX_RAG_STORE_FIELD_NUMBER; + hash = (53 * hash) + getVertexRagStore().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest 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.AugmentPromptRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest 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.AugmentPromptRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest 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.AugmentPromptRequest 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.AugmentPromptRequest 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.AugmentPromptRequest 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 AugmentPrompt.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AugmentPromptRequest) + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentsFieldBuilder(); + getModelFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vertexRagStoreBuilder_ != null) { + vertexRagStoreBuilder_.clear(); + } + parent_ = ""; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); + modelBuilder_ = null; + } + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest build() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest result = + new com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && vertexRagStoreBuilder_ != null) { + result.dataSource_ = vertexRagStoreBuilder_.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.AugmentPromptRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000004); + contentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (other.hasModel()) { + mergeModel(other.getModel()); + } + switch (other.getDataSourceCase()) { + case VERTEX_RAG_STORE: + { + mergeVertexRagStore(other.getVertexRagStore()); + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(getVertexRagStoreFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 4; + 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 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.aiplatform.v1beta1.VertexRagStore, + com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder> + vertexRagStoreBuilder_; + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + @java.lang.Override + public boolean hasVertexRagStore() { + return dataSourceCase_ == 4; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexRagStore getVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } else { + if (dataSourceCase_ == 4) { + return vertexRagStoreBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexRagStore(com.google.cloud.aiplatform.v1beta1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexRagStore( + com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder builderForValue) { + if (vertexRagStoreBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + vertexRagStoreBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVertexRagStore(com.google.cloud.aiplatform.v1beta1.VertexRagStore value) { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4 + && dataSource_ + != com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.VertexRagStore.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 4) { + vertexRagStoreBuilder_.mergeFrom(value); + } else { + vertexRagStoreBuilder_.setMessage(value); + } + } + dataSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVertexRagStore() { + if (vertexRagStoreBuilder_ == null) { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + } + vertexRagStoreBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagStoreBuilder() { + return getVertexRagStoreFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder + getVertexRagStoreOrBuilder() { + if ((dataSourceCase_ == 4) && (vertexRagStoreBuilder_ != null)) { + return vertexRagStoreBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Retrieves contexts from the Vertex RagStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VertexRagStore, + com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder> + getVertexRagStoreFieldBuilder() { + if (vertexRagStoreBuilder_ == null) { + if (!(dataSourceCase_ == 4)) { + dataSource_ = com.google.cloud.aiplatform.v1beta1.VertexRagStore.getDefaultInstance(); + } + vertexRagStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VertexRagStore, + com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder, + com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VertexRagStore) dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 4; + onChanged(); + return vertexRagStoreBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location from which to augment prompt.
+     * The users must have permission to make a call in the project.
+     * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { + return getContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { + return getContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { + return getContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input content to augment, only text format is supported for now.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsBuilderList() { + return getContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder> + modelBuilder_; + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model getModel() { + if (modelBuilder_ == null) { + return model_ == null + ? com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } else { + return modelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModel(com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model value) { + if (modelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + } else { + modelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModel( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder builderForValue) { + if (modelBuilder_ == null) { + model_ = builderForValue.build(); + } else { + modelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModel( + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model value) { + if (modelBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && model_ != null + && model_ + != com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model + .getDefaultInstance()) { + getModelBuilder().mergeFrom(value); + } else { + model_ = value; + } + } else { + modelBuilder_.mergeFrom(value); + } + if (model_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModel() { + bitField0_ = (bitField0_ & ~0x00000008); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); + modelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder + getModelBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getModelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder + getModelOrBuilder() { + if (modelBuilder_ != null) { + return modelBuilder_.getMessageOrBuilder(); + } else { + return model_ == null + ? com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.getDefaultInstance() + : model_; + } + } + /** + * + * + *
+     * Optional. Metadata of the backend deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder> + getModelFieldBuilder() { + if (modelBuilder_ == null) { + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model.Builder, + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); + model_ = null; + } + return modelBuilder_; + } + + @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.AugmentPromptRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AugmentPromptRequest) + private static final com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AugmentPromptRequest 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.AugmentPromptRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequestOrBuilder.java new file mode 100644 index 000000000000..459437c0dbac --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptRequestOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface AugmentPromptRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AugmentPromptRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagStore field is set. + */ + boolean hasVertexRagStore(); + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagStore. + */ + com.google.cloud.aiplatform.v1beta1.VertexRagStore getVertexRagStore(); + /** + * + * + *
+   * Optional. Retrieves contexts from the Vertex RagStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexRagStore vertex_rag_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagStoreOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to augment prompt.
+   * The users must have permission to make a call in the project.
+   * 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(); + + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getContentsList(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getContents(int index); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getContentsCount(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getContentsOrBuilderList(); + /** + * + * + *
+   * Optional. Input content to augment, only text format is supported for now.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The model. + */ + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model getModel(); + /** + * + * + *
+   * Optional. Metadata of the backend deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelOrBuilder getModelOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.DataSourceCase getDataSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponse.java new file mode 100644 index 000000000000..8425f0663924 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponse.java @@ -0,0 +1,1435 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for AugmentPrompt.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptResponse} + */ +public final class AugmentPromptResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AugmentPromptResponse) + AugmentPromptResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AugmentPromptResponse.newBuilder() to construct. + private AugmentPromptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AugmentPromptResponse() { + augmentedPrompt_ = java.util.Collections.emptyList(); + facts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AugmentPromptResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.Builder.class); + } + + public static final int AUGMENTED_PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List augmentedPrompt_; + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + @java.lang.Override + public java.util.List getAugmentedPromptList() { + return augmentedPrompt_; + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + @java.lang.Override + public java.util.List + getAugmentedPromptOrBuilderList() { + return augmentedPrompt_; + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + @java.lang.Override + public int getAugmentedPromptCount() { + return augmentedPrompt_.size(); + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getAugmentedPrompt(int index) { + return augmentedPrompt_.get(index); + } + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getAugmentedPromptOrBuilder( + int index) { + return augmentedPrompt_.get(index); + } + + public static final int FACTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List facts_; + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + @java.lang.Override + public java.util.List getFactsList() { + return facts_; + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + @java.lang.Override + public java.util.List + getFactsOrBuilderList() { + return facts_; + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + @java.lang.Override + public int getFactsCount() { + return facts_.size(); + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index) { + return facts_.get(index); + } + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index) { + return facts_.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 < augmentedPrompt_.size(); i++) { + output.writeMessage(1, augmentedPrompt_.get(i)); + } + for (int i = 0; i < facts_.size(); i++) { + output.writeMessage(2, facts_.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 < augmentedPrompt_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, augmentedPrompt_.get(i)); + } + for (int i = 0; i < facts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, facts_.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.v1beta1.AugmentPromptResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse other = + (com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse) obj; + + if (!getAugmentedPromptList().equals(other.getAugmentedPromptList())) return false; + if (!getFactsList().equals(other.getFactsList())) 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 (getAugmentedPromptCount() > 0) { + hash = (37 * hash) + AUGMENTED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getAugmentedPromptList().hashCode(); + } + if (getFactsCount() > 0) { + hash = (37 * hash) + FACTS_FIELD_NUMBER; + hash = (53 * hash) + getFactsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.AugmentPromptResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.AugmentPromptResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.AugmentPromptResponse 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.AugmentPromptResponse 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.AugmentPromptResponse 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 AugmentPrompt.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AugmentPromptResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AugmentPromptResponse) + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.class, + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (augmentedPromptBuilder_ == null) { + augmentedPrompt_ = java.util.Collections.emptyList(); + } else { + augmentedPrompt_ = null; + augmentedPromptBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + } else { + facts_ = null; + factsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse build() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse result = + new com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse result) { + if (augmentedPromptBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + augmentedPrompt_ = java.util.Collections.unmodifiableList(augmentedPrompt_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.augmentedPrompt_ = augmentedPrompt_; + } else { + result.augmentedPrompt_ = augmentedPromptBuilder_.build(); + } + if (factsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + facts_ = java.util.Collections.unmodifiableList(facts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.facts_ = facts_; + } else { + result.facts_ = factsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse 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.v1beta1.AugmentPromptResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse.getDefaultInstance()) + return this; + if (augmentedPromptBuilder_ == null) { + if (!other.augmentedPrompt_.isEmpty()) { + if (augmentedPrompt_.isEmpty()) { + augmentedPrompt_ = other.augmentedPrompt_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.addAll(other.augmentedPrompt_); + } + onChanged(); + } + } else { + if (!other.augmentedPrompt_.isEmpty()) { + if (augmentedPromptBuilder_.isEmpty()) { + augmentedPromptBuilder_.dispose(); + augmentedPromptBuilder_ = null; + augmentedPrompt_ = other.augmentedPrompt_; + bitField0_ = (bitField0_ & ~0x00000001); + augmentedPromptBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAugmentedPromptFieldBuilder() + : null; + } else { + augmentedPromptBuilder_.addAllMessages(other.augmentedPrompt_); + } + } + } + if (factsBuilder_ == null) { + if (!other.facts_.isEmpty()) { + if (facts_.isEmpty()) { + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFactsIsMutable(); + facts_.addAll(other.facts_); + } + onChanged(); + } + } else { + if (!other.facts_.isEmpty()) { + if (factsBuilder_.isEmpty()) { + factsBuilder_.dispose(); + factsBuilder_ = null; + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000002); + factsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFactsFieldBuilder() + : null; + } else { + factsBuilder_.addAllMessages(other.facts_); + } + } + } + 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.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), extensionRegistry); + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(m); + } else { + augmentedPromptBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Fact m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Fact.parser(), extensionRegistry); + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(m); + } else { + factsBuilder_.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 java.util.List augmentedPrompt_ = + java.util.Collections.emptyList(); + + private void ensureAugmentedPromptIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + augmentedPrompt_ = + new java.util.ArrayList(augmentedPrompt_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + augmentedPromptBuilder_; + + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public java.util.List getAugmentedPromptList() { + if (augmentedPromptBuilder_ == null) { + return java.util.Collections.unmodifiableList(augmentedPrompt_); + } else { + return augmentedPromptBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public int getAugmentedPromptCount() { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.size(); + } else { + return augmentedPromptBuilder_.getCount(); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Content getAugmentedPrompt(int index) { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.get(index); + } else { + return augmentedPromptBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder setAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.set(index, value); + onChanged(); + } else { + augmentedPromptBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder setAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.set(index, builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt(com.google.cloud.aiplatform.v1beta1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(value); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (augmentedPromptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(index, value); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder addAugmentedPrompt( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.add(index, builderForValue.build()); + onChanged(); + } else { + augmentedPromptBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder addAllAugmentedPrompt( + java.lang.Iterable values) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, augmentedPrompt_); + onChanged(); + } else { + augmentedPromptBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder clearAugmentedPrompt() { + if (augmentedPromptBuilder_ == null) { + augmentedPrompt_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + augmentedPromptBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public Builder removeAugmentedPrompt(int index) { + if (augmentedPromptBuilder_ == null) { + ensureAugmentedPromptIsMutable(); + augmentedPrompt_.remove(index); + onChanged(); + } else { + augmentedPromptBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getAugmentedPromptBuilder( + int index) { + return getAugmentedPromptFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getAugmentedPromptOrBuilder( + int index) { + if (augmentedPromptBuilder_ == null) { + return augmentedPrompt_.get(index); + } else { + return augmentedPromptBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public java.util.List + getAugmentedPromptOrBuilderList() { + if (augmentedPromptBuilder_ != null) { + return augmentedPromptBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(augmentedPrompt_); + } + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addAugmentedPromptBuilder() { + return getAugmentedPromptFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addAugmentedPromptBuilder( + int index) { + return getAugmentedPromptFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Augmented prompt, only text format is supported for now.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + public java.util.List + getAugmentedPromptBuilderList() { + return getAugmentedPromptFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getAugmentedPromptFieldBuilder() { + if (augmentedPromptBuilder_ == null) { + augmentedPromptBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + augmentedPrompt_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + augmentedPrompt_ = null; + } + return augmentedPromptBuilder_; + } + + private java.util.List facts_ = + java.util.Collections.emptyList(); + + private void ensureFactsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + facts_ = new java.util.ArrayList(facts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder> + factsBuilder_; + + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public java.util.List getFactsList() { + if (factsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facts_); + } else { + return factsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public int getFactsCount() { + if (factsBuilder_ == null) { + return facts_.size(); + } else { + return factsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder setFacts(int index, com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.set(index, value); + onChanged(); + } else { + factsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder setFacts( + int index, com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.set(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder addFacts(com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(value); + onChanged(); + } else { + factsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder addFacts(int index, com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(index, value); + onChanged(); + } else { + factsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder addFacts(com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder addFacts( + int index, com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder addAllFacts( + java.lang.Iterable values) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facts_); + onChanged(); + } else { + factsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder clearFacts() { + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + factsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public Builder removeFacts(int index) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.remove(index); + onChanged(); + } else { + factsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder getFactsBuilder(int index) { + return getFactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public java.util.List + getFactsOrBuilderList() { + if (factsBuilder_ != null) { + return factsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facts_); + } + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder addFactsBuilder() { + return getFactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder addFactsBuilder(int index) { + return getFactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Retrieved facts from RAG data sources.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + public java.util.List getFactsBuilderList() { + return getFactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder> + getFactsFieldBuilder() { + if (factsBuilder_ == null) { + factsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder>( + facts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + facts_ = null; + } + return factsBuilder_; + } + + @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.AugmentPromptResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AugmentPromptResponse) + private static final com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AugmentPromptResponse 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.AugmentPromptResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponseOrBuilder.java new file mode 100644 index 000000000000..638e23caed63 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AugmentPromptResponseOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface AugmentPromptResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AugmentPromptResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + java.util.List getAugmentedPromptList(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + com.google.cloud.aiplatform.v1beta1.Content getAugmentedPrompt(int index); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + int getAugmentedPromptCount(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + java.util.List + getAugmentedPromptOrBuilderList(); + /** + * + * + *
+   * Augmented prompt, only text format is supported for now.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1; + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getAugmentedPromptOrBuilder(int index); + + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + java.util.List getFactsList(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + int getFactsCount(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + java.util.List + getFactsOrBuilderList(); + /** + * + * + *
+   * Retrieved facts from RAG data sources.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2; + */ + com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Claim.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Claim.java new file mode 100644 index 000000000000..99b0a9ae3d0c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Claim.java @@ -0,0 +1,1075 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Claim that is extracted from the input text and facts that support it.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Claim} + */ +public final class Claim extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Claim) + ClaimOrBuilder { + private static final long serialVersionUID = 0L; + // Use Claim.newBuilder() to construct. + private Claim(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Claim() { + factIndexes_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Claim(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Claim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Claim.class, + com.google.cloud.aiplatform.v1beta1.Claim.Builder.class); + } + + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int FACT_INDEXES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList factIndexes_ = emptyIntList(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + @java.lang.Override + public java.util.List getFactIndexesList() { + return factIndexes_; + } + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + public int getFactIndexesCount() { + return factIndexes_.size(); + } + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + public int getFactIndexes(int index) { + return factIndexes_.getInt(index); + } + + private int factIndexesMemoizedSerializedSize = -1; + + public static final int SCORE_FIELD_NUMBER = 4; + private float score_ = 0F; + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, endIndex_); + } + if (getFactIndexesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(factIndexesMemoizedSerializedSize); + } + for (int i = 0; i < factIndexes_.size(); i++) { + output.writeInt32NoTag(factIndexes_.getInt(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(4, score_); + } + 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.computeInt32Size(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < factIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(factIndexes_.getInt(i)); + } + size += dataSize; + if (!getFactIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + factIndexesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, score_); + } + 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.Claim)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Claim other = + (com.google.cloud.aiplatform.v1beta1.Claim) obj; + + if (hasStartIndex() != other.hasStartIndex()) return false; + if (hasStartIndex()) { + if (getStartIndex() != other.getStartIndex()) return false; + } + if (hasEndIndex() != other.hasEndIndex()) return false; + if (hasEndIndex()) { + if (getEndIndex() != other.getEndIndex()) return false; + } + if (!getFactIndexesList().equals(other.getFactIndexesList())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasStartIndex()) { + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + if (getFactIndexesCount() > 0) { + hash = (37 * hash) + FACT_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getFactIndexesList().hashCode(); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Claim parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim 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.Claim parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim 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.Claim parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim 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.Claim parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim 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.Claim parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim 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.Claim 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.Claim 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.Claim 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; + } + /** + * + * + *
+   * Claim that is extracted from the input text and facts that support it.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Claim} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Claim) + com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Claim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Claim.class, + com.google.cloud.aiplatform.v1beta1.Claim.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Claim.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + factIndexes_ = emptyIntList(); + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Claim getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Claim.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Claim build() { + com.google.cloud.aiplatform.v1beta1.Claim result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Claim buildPartial() { + com.google.cloud.aiplatform.v1beta1.Claim result = + new com.google.cloud.aiplatform.v1beta1.Claim(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Claim result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + factIndexes_.makeImmutable(); + result.factIndexes_ = factIndexes_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000004; + } + 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.v1beta1.Claim) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Claim) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Claim other) { + if (other == com.google.cloud.aiplatform.v1beta1.Claim.getDefaultInstance()) return this; + if (other.hasStartIndex()) { + setStartIndex(other.getStartIndex()); + } + if (other.hasEndIndex()) { + setEndIndex(other.getEndIndex()); + } + if (!other.factIndexes_.isEmpty()) { + if (factIndexes_.isEmpty()) { + factIndexes_ = other.factIndexes_; + factIndexes_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureFactIndexesIsMutable(); + factIndexes_.addAll(other.factIndexes_); + } + onChanged(); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int v = input.readInt32(); + ensureFactIndexesIsMutable(); + factIndexes_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFactIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + factIndexes_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + case 37: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + 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 startIndex_; + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Index in the input text where the claim starts (inclusive).
+     * 
+ * + * optional int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Index in the input text where the claim ends (exclusive).
+     * 
+ * + * optional int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList factIndexes_ = emptyIntList(); + + private void ensureFactIndexesIsMutable() { + if (!factIndexes_.isModifiable()) { + factIndexes_ = makeMutableCopy(factIndexes_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + public java.util.List getFactIndexesList() { + factIndexes_.makeImmutable(); + return factIndexes_; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + public int getFactIndexesCount() { + return factIndexes_.size(); + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + public int getFactIndexes(int index) { + return factIndexes_.getInt(index); + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index to set the value at. + * @param value The factIndexes to set. + * @return This builder for chaining. + */ + public Builder setFactIndexes(int index, int value) { + + ensureFactIndexesIsMutable(); + factIndexes_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param value The factIndexes to add. + * @return This builder for chaining. + */ + public Builder addFactIndexes(int value) { + + ensureFactIndexesIsMutable(); + factIndexes_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param values The factIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllFactIndexes(java.lang.Iterable values) { + ensureFactIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, factIndexes_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indexes of the facts supporting this claim.
+     * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return This builder for chaining. + */ + public Builder clearFactIndexes() { + factIndexes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private float score_; + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of this corroboration.
+     * 
+ * + * optional float score = 4; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 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.v1beta1.Claim) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Claim) + private static final com.google.cloud.aiplatform.v1beta1.Claim DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Claim(); + } + + public static com.google.cloud.aiplatform.v1beta1.Claim getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Claim 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.Claim getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ClaimOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ClaimOrBuilder.java new file mode 100644 index 000000000000..d978b6c49aa4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ClaimOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ClaimOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Claim) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + boolean hasStartIndex(); + /** + * + * + *
+   * Index in the input text where the claim starts (inclusive).
+   * 
+ * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + boolean hasEndIndex(); + /** + * + * + *
+   * Index in the input text where the claim ends (exclusive).
+   * 
+ * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return A list containing the factIndexes. + */ + java.util.List getFactIndexesList(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @return The count of factIndexes. + */ + int getFactIndexesCount(); + /** + * + * + *
+   * Indexes of the facts supporting this claim.
+   * 
+ * + * repeated int32 fact_indexes = 3; + * + * @param index The index of the element to return. + * @return The factIndexes at the given index. + */ + int getFactIndexes(int index); + + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Confidence score of this corroboration.
+   * 
+ * + * optional float score = 4; + * + * @return The score. + */ + float getScore(); +} 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 64b47258a3ef..b2005e937584 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 @@ -48,6 +48,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_VideoMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_VideoMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,182 +151,204 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/aiplatform/v1beta1/conten" + "t.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\037google/api/field_behavior.proto\032-googl" - + "e/cloud/aiplatform/v1beta1/openapi.proto" - + "\032*google/cloud/aiplatform/v1beta1/tool.p" - + "roto\032\036google/protobuf/duration.proto\032\026go" - + "ogle/type/date.proto\"W\n\007Content\022\021\n\004role\030" - + "\001 \001(\tB\003\340A\001\0229\n\005parts\030\002 \003(\0132%.google.cloud" - + ".aiplatform.v1beta1.PartB\003\340A\002\"\325\004\n\004Part\022\023" - + "\n\004text\030\001 \001(\tB\003\340A\001H\000\022A\n\013inline_data\030\002 \001(\013" - + "2%.google.cloud.aiplatform.v1beta1.BlobB" - + "\003\340A\001H\000\022C\n\tfile_data\030\003 \001(\0132).google.cloud" - + ".aiplatform.v1beta1.FileDataB\003\340A\001H\000\022K\n\rf" - + "unction_call\030\005 \001(\0132-.google.cloud.aiplat" - + "form.v1beta1.FunctionCallB\003\340A\001H\000\022S\n\021func" - + "tion_response\030\006 \001(\01321.google.cloud.aipla" - + "tform.v1beta1.FunctionResponseB\003\340A\001H\000\022O\n" - + "\017executable_code\030\010 \001(\0132/.google.cloud.ai" - + "platform.v1beta1.ExecutableCodeB\003\340A\001H\000\022Z" - + "\n\025code_execution_result\030\t \001(\01324.google.c" - + "loud.aiplatform.v1beta1.CodeExecutionRes" - + "ultB\003\340A\001H\000\022M\n\016video_metadata\030\004 \001(\0132..goo" - + "gle.cloud.aiplatform.v1beta1.VideoMetada" - + "taB\003\340A\001H\001B\006\n\004dataB\n\n\010metadata\"1\n\004Blob\022\026\n" - + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n\004data\030\002 \001(\014B\003\340A\002" - + "\"9\n\010FileData\022\026\n\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n\010" - + "file_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014" - + "start_offset\030\001 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\001\"\221\013\n\020GenerationCon" - + "fig\022\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005to" - + "p_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H" - + "\002\210\001\001\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022" - + "#\n\021max_output_tokens\030\005 \001(\005B\003\340A\001H\004\210\001\001\022\033\n\016" - + "stop_sequences\030\006 \003(\tB\003\340A\001\022#\n\021response_lo" - + "gprobs\030\022 \001(\010B\003\340A\001H\005\210\001\001\022\032\n\010logprobs\030\007 \001(\005" - + "B\003\340A\001H\006\210\001\001\022\"\n\020presence_penalty\030\010 \001(\002B\003\340A" - + "\001H\007\210\001\001\022#\n\021frequency_penalty\030\t \001(\002B\003\340A\001H\010" - + "\210\001\001\022\026\n\004seed\030\014 \001(\005B\003\340A\001H\t\210\001\001\022\037\n\022response_" - + "mime_type\030\r \001(\tB\003\340A\001\022J\n\017response_schema\030" - + "\020 \001(\0132\'.google.cloud.aiplatform.v1beta1." - + "SchemaB\003\340A\001H\n\210\001\001\022a\n\016routing_config\030\021 \001(\013" - + "2?.google.cloud.aiplatform.v1beta1.Gener" - + "ationConfig.RoutingConfigB\003\340A\001H\013\210\001\001\022!\n\017a" - + "udio_timestamp\030\024 \001(\010B\003\340A\001H\014\210\001\001\032\321\004\n\rRouti" - + "ngConfig\022d\n\tauto_mode\030\001 \001(\0132O.google.clo" - + "ud.aiplatform.v1beta1.GenerationConfig.R" - + "outingConfig.AutoRoutingModeH\000\022h\n\013manual" - + "_mode\030\002 \001(\0132Q.google.cloud.aiplatform.v1" - + "beta1.GenerationConfig.RoutingConfig.Man" - + "ualRoutingModeH\000\032\240\002\n\017AutoRoutingMode\022\215\001\n" - + "\030model_routing_preference\030\001 \001(\0162f.google" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032-google/cloud/aipla" + + "tform/v1beta1/openapi.proto\032*google/clou" + + "d/aiplatform/v1beta1/tool.proto\032\036google/" + + "protobuf/duration.proto\032\026google/type/dat" + + "e.proto\"W\n\007Content\022\021\n\004role\030\001 \001(\tB\003\340A\001\0229\n" + + "\005parts\030\002 \003(\0132%.google.cloud.aiplatform.v" + + "1beta1.PartB\003\340A\002\"\325\004\n\004Part\022\023\n\004text\030\001 \001(\tB" + + "\003\340A\001H\000\022A\n\013inline_data\030\002 \001(\0132%.google.clo" + + "ud.aiplatform.v1beta1.BlobB\003\340A\001H\000\022C\n\tfil" + + "e_data\030\003 \001(\0132).google.cloud.aiplatform.v" + + "1beta1.FileDataB\003\340A\001H\000\022K\n\rfunction_call\030" + + "\005 \001(\0132-.google.cloud.aiplatform.v1beta1." + + "FunctionCallB\003\340A\001H\000\022S\n\021function_response" + + "\030\006 \001(\01321.google.cloud.aiplatform.v1beta1" + + ".FunctionResponseB\003\340A\001H\000\022O\n\017executable_c" + + "ode\030\010 \001(\0132/.google.cloud.aiplatform.v1be" + + "ta1.ExecutableCodeB\003\340A\001H\000\022Z\n\025code_execut" + + "ion_result\030\t \001(\01324.google.cloud.aiplatfo" + + "rm.v1beta1.CodeExecutionResultB\003\340A\001H\000\022M\n" + + "\016video_metadata\030\004 \001(\0132..google.cloud.aip" + + "latform.v1beta1.VideoMetadataB\003\340A\001H\001B\006\n\004" + + "dataB\n\n\010metadata\"1\n\004Blob\022\026\n\tmime_type\030\001 " + + "\001(\tB\003\340A\002\022\021\n\004data\030\002 \001(\014B\003\340A\002\"9\n\010FileData\022" + + "\026\n\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n\010file_uri\030\002 \001(" + + "\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014start_offset\030" + + "\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n" + + "\nend_offset\030\002 \001(\0132\031.google.protobuf.Dura" + + "tionB\003\340A\001\"=\n\023PrebuiltVoiceConfig\022\027\n\nvoic" + + "e_name\030\001 \001(\tH\000\210\001\001B\r\n\013_voice_name\"t\n\013Voic" + + "eConfig\022U\n\025prebuilt_voice_config\030\001 \001(\01324" + + ".google.cloud.aiplatform.v1beta1.Prebuil" + + "tVoiceConfigH\000B\016\n\014voice_config\"R\n\014Speech" + + "Config\022B\n\014voice_config\030\001 \001(\0132,.google.cl" + + "oud.aiplatform.v1beta1.VoiceConfig\"\233\017\n\020G" + + "enerationConfig\022\035\n\013temperature\030\001 \001(\002B\003\340A" + + "\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k" + + "\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candidate_count\030\004 \001(" + + "\005B\003\340A\001H\003\210\001\001\022#\n\021max_output_tokens\030\005 \001(\005B\003" + + "\340A\001H\004\210\001\001\022\033\n\016stop_sequences\030\006 \003(\tB\003\340A\001\022#\n" + + "\021response_logprobs\030\022 \001(\010B\003\340A\001H\005\210\001\001\022\032\n\010lo" + + "gprobs\030\007 \001(\005B\003\340A\001H\006\210\001\001\022\"\n\020presence_penal" + + "ty\030\010 \001(\002B\003\340A\001H\007\210\001\001\022#\n\021frequency_penalty\030" + + "\t \001(\002B\003\340A\001H\010\210\001\001\022\026\n\004seed\030\014 \001(\005B\003\340A\001H\t\210\001\001\022" + + "\037\n\022response_mime_type\030\r \001(\tB\003\340A\001\022J\n\017resp" + + "onse_schema\030\020 \001(\0132\'.google.cloud.aiplatf" + + "orm.v1beta1.SchemaB\003\340A\001H\n\210\001\001\022a\n\016routing_" + + "config\030\021 \001(\0132?.google.cloud.aiplatform.v" + + "1beta1.GenerationConfig.RoutingConfigB\003\340" + + "A\001H\013\210\001\001\022!\n\017audio_timestamp\030\024 \001(\010B\003\340A\001H\014\210" + + "\001\001\022\\\n\023response_modalities\030\025 \003(\0162:.google" + ".cloud.aiplatform.v1beta1.GenerationConf" - + "ig.RoutingConfig.AutoRoutingMode.ModelRo" - + "utingPreferenceH\000\210\001\001\"`\n\026ModelRoutingPref" - + "erence\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALIT" - + "Y\020\001\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033" - + "\n\031_model_routing_preference\032;\n\021ManualRou" - + "tingMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_mo" - + "del_nameB\020\n\016routing_configB\016\n\014_temperatu" - + "reB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_candidate_cou" - + "ntB\024\n\022_max_output_tokensB\024\n\022_response_lo" - + "gprobsB\013\n\t_logprobsB\023\n\021_presence_penalty" - + "B\024\n\022_frequency_penaltyB\007\n\005_seedB\022\n\020_resp" - + "onse_schemaB\021\n\017_routing_configB\022\n\020_audio" - + "_timestamp\"\372\003\n\rSafetySetting\022D\n\010category" - + "\030\001 \001(\0162-.google.cloud.aiplatform.v1beta1" - + ".HarmCategoryB\003\340A\002\022Y\n\tthreshold\030\002 \001(\0162A." - + "google.cloud.aiplatform.v1beta1.SafetySe" - + "tting.HarmBlockThresholdB\003\340A\002\022S\n\006method\030" - + "\004 \001(\0162>.google.cloud.aiplatform.v1beta1." - + "SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n\022H" - + "armBlockThreshold\022$\n HARM_BLOCK_THRESHOL" - + "D_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001" - + "\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ON" - + "LY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017Ha" - + "rmBlockMethod\022!\n\035HARM_BLOCK_METHOD_UNSPE" - + "CIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILITY\020\002\"" - + "\316\004\n\014SafetyRating\022D\n\010category\030\001 \001(\0162-.goo" - + "gle.cloud.aiplatform.v1beta1.HarmCategor" - + "yB\003\340A\003\022W\n\013probability\030\002 \001(\0162=.google.clo" - + "ud.aiplatform.v1beta1.SafetyRating.HarmP" - + "robabilityB\003\340A\003\022\036\n\021probability_score\030\005 \001" - + "(\002B\003\340A\003\022Q\n\010severity\030\006 \001(\0162:.google.cloud" - + ".aiplatform.v1beta1.SafetyRating.HarmSev" - + "erityB\003\340A\003\022\033\n\016severity_score\030\007 \001(\002B\003\340A\003\022" - + "\024\n\007blocked\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability" - + "\022 \n\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\nNE" - + "GLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020" - + "\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM_SEVERITY_UNSP" - + "ECIFIED\020\000\022\034\n\030HARM_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\"U\n\020Cita" - + "tionMetadata\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\340" - + "A\003\0220\n\020publication_date\030\006 \001(\0132\021.google.ty" - + "pe.DateB\003\340A\003\"\206\006\n\tCandidate\022\022\n\005index\030\001 \001(" - + "\005B\003\340A\003\022>\n\007content\030\002 \001(\0132(.google.cloud.a" - + "iplatform.v1beta1.ContentB\003\340A\003\022\031\n\014avg_lo" - + "gprobs\030\t \001(\001B\003\340A\003\022M\n\017logprobs_result\030\n \001" - + "(\0132/.google.cloud.aiplatform.v1beta1.Log" - + "probsResultB\003\340A\003\022S\n\rfinish_reason\030\003 \001(\0162" - + "7.google.cloud.aiplatform.v1beta1.Candid" - + "ate.FinishReasonB\003\340A\003\022J\n\016safety_ratings\030" - + "\004 \003(\0132-.google.cloud.aiplatform.v1beta1." - + "SafetyRatingB\003\340A\003\022 \n\016finish_message\030\005 \001(" - + "\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_metadata\030\006 \001(\01321" - + ".google.cloud.aiplatform.v1beta1.Citatio" - + "nMetadataB\003\340A\003\022S\n\022grounding_metadata\030\007 \001" - + "(\01322.google.cloud.aiplatform.v1beta1.Gro" - + "undingMetadataB\003\340A\003\"\274\001\n\014FinishReason\022\035\n\031" - + "FINISH_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\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITE" - + "D_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFORMED_FUNCT" - + "ION_CALL\020\tB\021\n\017_finish_message\"\236\003\n\016Logpro" - + "bsResult\022U\n\016top_candidates\030\001 \003(\0132=.googl" - + "e.cloud.aiplatform.v1beta1.LogprobsResul" - + "t.TopCandidates\022T\n\021chosen_candidates\030\002 \003" - + "(\01329.google.cloud.aiplatform.v1beta1.Log" - + "probsResult.Candidate\032\177\n\tCandidate\022\022\n\005to" - + "ken\030\001 \001(\tH\000\210\001\001\022\025\n\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n" - + "\017log_probability\030\002 \001(\002H\002\210\001\001B\010\n\006_tokenB\013\n" - + "\t_token_idB\022\n\020_log_probability\032^\n\rTopCan" - + "didates\022M\n\ncandidates\030\001 \003(\01329.google.clo" - + "ud.aiplatform.v1beta1.LogprobsResult.Can" - + "didate\"g\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340" - + "A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_inde" - + "x\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\350\002\n\016Grou" - + "ndingChunk\022B\n\003web\030\001 \001(\01323.google.cloud.a" - + "iplatform.v1beta1.GroundingChunk.WebH\000\022]" - + "\n\021retrieved_context\030\002 \001(\0132@.google.cloud" - + ".aiplatform.v1beta1.GroundingChunk.Retri" - + "evedContextH\000\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022" - + "\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020" - + "RetrievedContext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005ti" - + "tle\030\002 \001(\tH\001\210\001\001\022\021\n\004text\030\003 \001(\tH\002\210\001\001B\006\n\004_ur" - + "iB\010\n\006_titleB\007\n\005_textB\014\n\nchunk_type\"\232\001\n\020G" - + "roundingSupport\022>\n\007segment\030\001 \001(\0132(.googl" - + "e.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022" - + "\037\n\027grounding_chunk_indices\030\002 \003(\005\022\031\n\021conf" - + "idence_scores\030\003 \003(\002B\n\n\010_segment\"\327\003\n\021Grou" - + "ndingMetadata\022\037\n\022web_search_queries\030\001 \003(" - + "\tB\003\340A\001\022W\n\022search_entry_point\030\004 \001(\01321.goo" - + "gle.cloud.aiplatform.v1beta1.SearchEntry" - + "PointB\003\340A\001H\000\210\001\001\022\036\n\021retrieval_queries\030\003 \003" - + "(\tB\003\340A\001\022I\n\020grounding_chunks\030\005 \003(\0132/.goog" - + "le.cloud.aiplatform.v1beta1.GroundingChu" - + "nk\022R\n\022grounding_supports\030\006 \003(\01321.google." - + "cloud.aiplatform.v1beta1.GroundingSuppor" - + "tB\003\340A\001\022[\n\022retrieval_metadata\030\007 \001(\01322.goo" - + "gle.cloud.aiplatform.v1beta1.RetrievalMe" - + "tadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_search_entry_poi" - + "ntB\025\n\023_retrieval_metadata\"H\n\020SearchEntry" - + "Point\022\035\n\020rendered_content\030\001 \001(\tB\003\340A\001\022\025\n\010" - + "sdk_blob\030\002 \001(\014B\003\340A\001\"G\n\021RetrievalMetadata" - + "\0222\n%google_search_dynamic_retrieval_scor" - + "e\030\002 \001(\002B\003\340A\001*\327\001\n\014HarmCategory\022\035\n\031HARM_CA" - + "TEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HA" - + "TE_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_C" - + "ONTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#" - + "\n\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035H" - + "ARM_CATEGORY_CIVIC_INTEGRITY\020\005B\343\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\014ContentP" - + "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" + + "ig.ModalityB\003\340A\001\022e\n\020media_resolution\030\026 \001" + + "(\0162A.google.cloud.aiplatform.v1beta1.Gen" + + "erationConfig.MediaResolutionB\003\340A\001H\r\210\001\001\022" + + "N\n\rspeech_config\030\027 \001(\0132-.google.cloud.ai" + + "platform.v1beta1.SpeechConfigB\003\340A\001H\016\210\001\001\032" + + "\321\004\n\rRoutingConfig\022d\n\tauto_mode\030\001 \001(\0132O.g" + + "oogle.cloud.aiplatform.v1beta1.Generatio" + + "nConfig.RoutingConfig.AutoRoutingModeH\000\022" + + "h\n\013manual_mode\030\002 \001(\0132Q.google.cloud.aipl" + + "atform.v1beta1.GenerationConfig.RoutingC" + + "onfig.ManualRoutingModeH\000\032\240\002\n\017AutoRoutin" + + "gMode\022\215\001\n\030model_routing_preference\030\001 \001(\016" + + "2f.google.cloud.aiplatform.v1beta1.Gener" + + "ationConfig.RoutingConfig.AutoRoutingMod" + + "e.ModelRoutingPreferenceH\000\210\001\001\"`\n\026ModelRo" + + "utingPreference\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITI" + + "ZE_QUALITY\020\001\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE" + + "_COST\020\003B\033\n\031_model_routing_preference\032;\n\021" + + "ManualRoutingMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210" + + "\001\001B\r\n\013_model_nameB\020\n\016routing_config\"D\n\010M" + + "odality\022\030\n\024MODALITY_UNSPECIFIED\020\000\022\010\n\004TEX" + + "T\020\001\022\t\n\005IMAGE\020\002\022\t\n\005AUDIO\020\003\"\205\001\n\017MediaResol" + + "ution\022 \n\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022" + + "\030\n\024MEDIA_RESOLUTION_LOW\020\001\022\033\n\027MEDIA_RESOL" + + "UTION_MEDIUM\020\002\022\031\n\025MEDIA_RESOLUTION_HIGH\020" + + "\003B\016\n\014_temperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n" + + "\020_candidate_countB\024\n\022_max_output_tokensB" + + "\024\n\022_response_logprobsB\013\n\t_logprobsB\023\n\021_p" + + "resence_penaltyB\024\n\022_frequency_penaltyB\007\n" + + "\005_seedB\022\n\020_response_schemaB\021\n\017_routing_c" + + "onfigB\022\n\020_audio_timestampB\023\n\021_media_reso" + + "lutionB\020\n\016_speech_config\"\372\003\n\rSafetySetti" + + "ng\022D\n\010category\030\001 \001(\0162-.google.cloud.aipl" + + "atform.v1beta1.HarmCategoryB\003\340A\002\022Y\n\tthre" + + "shold\030\002 \001(\0162A.google.cloud.aiplatform.v1" + + "beta1.SafetySetting.HarmBlockThresholdB\003" + + "\340A\002\022S\n\006method\030\004 \001(\0162>.google.cloud.aipla" + + "tform.v1beta1.SafetySetting.HarmBlockMet" + + "hodB\003\340A\001\"\235\001\n\022HarmBlockThreshold\022$\n HARM_" + + "BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_L" + + "OW_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\022" + + "\007\n\003OFF\020\005\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOC" + + "K_METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013" + + "PROBABILITY\020\002\"\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\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\"\206\006\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\022\031\n\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n\017logpr" + + "obs_result\030\n \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.LogprobsResultB\003\340A\003\022S\n\rfinish" + + "_reason\030\003 \001(\01627.google.cloud.aiplatform." + + "v1beta1.Candidate.FinishReasonB\003\340A\003\022J\n\016s" + + "afety_ratings\030\004 \003(\0132-.google.cloud.aipla" + + "tform.v1beta1.SafetyRatingB\003\340A\003\022 \n\016finis" + + "h_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_me" + + "tadata\030\006 \001(\01321.google.cloud.aiplatform.v" + + "1beta1.CitationMetadataB\003\340A\003\022S\n\022groundin" + + "g_metadata\030\007 \001(\01322.google.cloud.aiplatfo" + + "rm.v1beta1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fi" + + "nishReason\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\005\022\r\n\tBLOCKLIST\020" + + "\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027M" + + "ALFORMED_FUNCTION_CALL\020\tB\021\n\017_finish_mess" + + "age\"\236\003\n\016LogprobsResult\022U\n\016top_candidates" + + "\030\001 \003(\0132=.google.cloud.aiplatform.v1beta1" + + ".LogprobsResult.TopCandidates\022T\n\021chosen_" + + "candidates\030\002 \003(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.LogprobsResult.Candidate\032\177\n\tC" + + "andidate\022\022\n\005token\030\001 \001(\tH\000\210\001\001\022\025\n\010token_id" + + "\030\003 \001(\005H\001\210\001\001\022\034\n\017log_probability\030\002 \001(\002H\002\210\001" + + "\001B\010\n\006_tokenB\013\n\t_token_idB\022\n\020_log_probabi" + + "lity\032^\n\rTopCandidates\022M\n\ncandidates\030\001 \003(" + + "\01329.google.cloud.aiplatform.v1beta1.Logp" + + "robsResult.Candidate\"g\n\007Segment\022\027\n\npart_" + + "index\030\001 \001(\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340" + + "A\003\022\026\n\tend_index\030\003 \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\t" + + "B\003\340A\003\"\350\002\n\016GroundingChunk\022B\n\003web\030\001 \001(\01323." + + "google.cloud.aiplatform.v1beta1.Groundin" + + "gChunk.WebH\000\022]\n\021retrieved_context\030\002 \001(\0132" + + "@.google.cloud.aiplatform.v1beta1.Ground" + + "ingChunk.RetrievedContextH\000\032=\n\003Web\022\020\n\003ur" + + "i\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001B\006\n\004_uri" + + "B\010\n\006_title\032f\n\020RetrievedContext\022\020\n\003uri\030\001 " + + "\001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001\022\021\n\004text\030\003 \001" + + "(\tH\002\210\001\001B\006\n\004_uriB\010\n\006_titleB\007\n\005_textB\014\n\nch" + + "unk_type\"\232\001\n\020GroundingSupport\022>\n\007segment" + + "\030\001 \001(\0132(.google.cloud.aiplatform.v1beta1" + + ".SegmentH\000\210\001\001\022\037\n\027grounding_chunk_indices" + + "\030\002 \003(\005\022\031\n\021confidence_scores\030\003 \003(\002B\n\n\010_se" + + "gment\"\327\003\n\021GroundingMetadata\022\037\n\022web_searc" + + "h_queries\030\001 \003(\tB\003\340A\001\022W\n\022search_entry_poi" + + "nt\030\004 \001(\01321.google.cloud.aiplatform.v1bet" + + "a1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n\021retriev" + + "al_queries\030\003 \003(\tB\003\340A\001\022I\n\020grounding_chunk" + + "s\030\005 \003(\0132/.google.cloud.aiplatform.v1beta" + + "1.GroundingChunk\022R\n\022grounding_supports\030\006" + + " \003(\01321.google.cloud.aiplatform.v1beta1.G" + + "roundingSupportB\003\340A\001\022[\n\022retrieval_metada" + + "ta\030\007 \001(\01322.google.cloud.aiplatform.v1bet" + + "a1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_se" + + "arch_entry_pointB\025\n\023_retrieval_metadata\"" + + "H\n\020SearchEntryPoint\022\035\n\020rendered_content\030" + + "\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001\"G\n\021Ret" + + "rievalMetadata\0222\n%google_search_dynamic_" + + "retrieval_score\030\002 \001(\002B\003\340A\001*\327\001\n\014HarmCateg" + + "ory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HA" + + "RM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGO" + + "RY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_" + + "HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_E" + + "XPLICIT\020\004\022!\n\035HARM_CATEGORY_CIVIC_INTEGRI" + + "TY\020\005B\343\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B\014ContentProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\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(), com.google.cloud.aiplatform.v1beta1.OpenApiProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -369,8 +403,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StartOffset", "EndOffset", }); - internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor, + new java.lang.String[] { + "VoiceName", + }); + internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor, + new java.lang.String[] { + "PrebuiltVoiceConfig", "VoiceConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor, + new java.lang.String[] { + "VoiceConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor, @@ -390,6 +448,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResponseSchema", "RoutingConfig", "AudioTimestamp", + "ResponseModalities", + "MediaResolution", + "SpeechConfig", }); internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_RoutingConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_GenerationConfig_descriptor @@ -422,7 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelName", }); internal_static_google_cloud_aiplatform_v1beta1_SafetySetting_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_SafetySetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SafetySetting_descriptor, @@ -430,7 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Category", "Threshold", "Method", }); internal_static_google_cloud_aiplatform_v1beta1_SafetyRating_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_SafetyRating_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SafetyRating_descriptor, @@ -438,7 +499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Category", "Probability", "ProbabilityScore", "Severity", "SeverityScore", "Blocked", }); internal_static_google_cloud_aiplatform_v1beta1_CitationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_CitationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CitationMetadata_descriptor, @@ -446,7 +507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Citations", }); internal_static_google_cloud_aiplatform_v1beta1_Citation_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_Citation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Citation_descriptor, @@ -454,7 +515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartIndex", "EndIndex", "Uri", "Title", "License", "PublicationDate", }); internal_static_google_cloud_aiplatform_v1beta1_Candidate_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_Candidate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Candidate_descriptor, @@ -470,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroundingMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_LogprobsResult_descriptor, @@ -498,7 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Candidates", }); internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_Segment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor, @@ -506,7 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartIndex", "StartIndex", "EndIndex", "Text", }); internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor, @@ -534,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Title", "Text", }); internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor, @@ -542,7 +603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Segment", "GroundingChunkIndices", "ConfidenceScores", }); internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor, @@ -555,7 +616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RetrievalMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor, @@ -563,7 +624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RenderedContent", "SdkBlob", }); internal_static_google_cloud_aiplatform_v1beta1_RetrievalMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_RetrievalMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RetrievalMetadata_descriptor, @@ -576,6 +637,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.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequest.java new file mode 100644 index 000000000000..61925468833b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequest.java @@ -0,0 +1,2432 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for CorroborateContent.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentRequest} + */ +public final class CorroborateContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CorroborateContentRequest) + CorroborateContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorroborateContentRequest.newBuilder() to construct. + private CorroborateContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorroborateContentRequest() { + parent_ = ""; + facts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CorroborateContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Builder.class); + } + + public interface ParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only return claims with citation score larger than the
+     * threshold.
+     * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + double getCitationThreshold(); + } + /** + * + * + *
+   * Parameters that can be overrided per request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters} + */ + public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) + ParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameters.newBuilder() to construct. + private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Parameters() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parameters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder + .class); + } + + public static final int CITATION_THRESHOLD_FIELD_NUMBER = 1; + private double citationThreshold_ = 0D; + /** + * + * + *
+     * Optional. Only return claims with citation score larger than the
+     * threshold.
+     * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + @java.lang.Override + public double getCitationThreshold() { + return citationThreshold_; + } + + 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 (java.lang.Double.doubleToRawLongBits(citationThreshold_) != 0) { + output.writeDouble(1, citationThreshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(citationThreshold_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, citationThreshold_); + } + 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.CorroborateContentRequest.Parameters)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters other = + (com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) obj; + + if (java.lang.Double.doubleToLongBits(getCitationThreshold()) + != java.lang.Double.doubleToLongBits(other.getCitationThreshold())) 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) + CITATION_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCitationThreshold())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters + 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.CorroborateContentRequest.Parameters 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; + } + /** + * + * + *
+     * Parameters that can be overrided per request.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + citationThreshold_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters build() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters result = + new com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.citationThreshold_ = citationThreshold_; + } + } + + @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.CorroborateContentRequest.Parameters) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance()) return this; + if (other.getCitationThreshold() != 0D) { + setCitationThreshold(other.getCitationThreshold()); + } + 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 9: + { + citationThreshold_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + 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 double citationThreshold_; + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The citationThreshold. + */ + @java.lang.Override + public double getCitationThreshold() { + return citationThreshold_; + } + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The citationThreshold to set. + * @return This builder for chaining. + */ + public Builder setCitationThreshold(double value) { + + citationThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only return claims with citation score larger than the
+       * threshold.
+       * 
+ * + * double citation_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCitationThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + citationThreshold_ = 0D; + 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.CorroborateContentRequest.Parameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters) + private static final com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters(); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameters 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.CorroborateContentRequest.Parameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int FACTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List facts_; + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFactsList() { + return facts_; + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFactsOrBuilderList() { + return facts_; + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFactsCount() { + return facts_.size(); + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index) { + return facts_.get(index); + } + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index) { + return facts_.get(index); + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters_; + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters getParameters() { + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder() { + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + for (int i = 0; i < facts_.size(); i++) { + output.writeMessage(3, facts_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getParameters()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + for (int i = 0; i < facts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, facts_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParameters()); + } + 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.CorroborateContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest other = + (com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (!getFactsList().equals(other.getFactsList())) return false; + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) 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 (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (getFactsCount() > 0) { + hash = (37 * hash) + FACTS_FIELD_NUMBER; + hash = (53 * hash) + getFactsList().hashCode(); + } + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest 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.CorroborateContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest 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.CorroborateContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest 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.CorroborateContentRequest 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.CorroborateContentRequest 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.CorroborateContentRequest 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 CorroborateContent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CorroborateContentRequest) + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + getFactsFieldBuilder(); + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + } else { + facts_ = null; + factsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest build() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest result = + new com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest result) { + if (factsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + facts_ = java.util.Collections.unmodifiableList(facts_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.facts_ = facts_; + } else { + result.facts_ = factsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.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.aiplatform.v1beta1.CorroborateContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (factsBuilder_ == null) { + if (!other.facts_.isEmpty()) { + if (facts_.isEmpty()) { + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFactsIsMutable(); + facts_.addAll(other.facts_); + } + onChanged(); + } + } else { + if (!other.facts_.isEmpty()) { + if (factsBuilder_.isEmpty()) { + factsBuilder_.dispose(); + factsBuilder_ = null; + facts_ = other.facts_; + bitField0_ = (bitField0_ & ~0x00000004); + factsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFactsFieldBuilder() + : null; + } else { + factsBuilder_.addAllMessages(other.facts_); + } + } + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + 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: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.Fact m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Fact.parser(), extensionRegistry); + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(m); + } else { + factsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getParametersFieldBuilder().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 bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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 resource name of the Location from which to corroborate text.
+     * The users must have permission to make a call in the project.
+     * 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.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + /** + * + * + *
+     * Optional. Input content to corroborate, only text format is supported for
+     * now.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.util.List facts_ = + java.util.Collections.emptyList(); + + private void ensureFactsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + facts_ = new java.util.ArrayList(facts_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder> + factsBuilder_; + + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFactsList() { + if (factsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facts_); + } else { + return factsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFactsCount() { + if (factsBuilder_ == null) { + return facts_.size(); + } else { + return factsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFacts(int index, com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.set(index, value); + onChanged(); + } else { + factsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFacts( + int index, com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.set(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(value); + onChanged(); + } else { + factsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(int index, com.google.cloud.aiplatform.v1beta1.Fact value) { + if (factsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFactsIsMutable(); + facts_.add(index, value); + onChanged(); + } else { + factsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts(com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFacts( + int index, com.google.cloud.aiplatform.v1beta1.Fact.Builder builderForValue) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.add(index, builderForValue.build()); + onChanged(); + } else { + factsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFacts( + java.lang.Iterable values) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facts_); + onChanged(); + } else { + factsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFacts() { + if (factsBuilder_ == null) { + facts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + factsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFacts(int index) { + if (factsBuilder_ == null) { + ensureFactsIsMutable(); + facts_.remove(index); + onChanged(); + } else { + factsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder getFactsBuilder(int index) { + return getFactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index) { + if (factsBuilder_ == null) { + return facts_.get(index); + } else { + return factsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFactsOrBuilderList() { + if (factsBuilder_ != null) { + return factsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facts_); + } + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder addFactsBuilder() { + return getFactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Fact.Builder addFactsBuilder(int index) { + return getFactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Facts used to generate the text can also be used to corroborate
+     * the text.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFactsBuilderList() { + return getFactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder> + getFactsFieldBuilder() { + if (factsBuilder_ == null) { + factsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Fact, + com.google.cloud.aiplatform.v1beta1.Fact.Builder, + com.google.cloud.aiplatform.v1beta1.FactOrBuilder>( + facts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + facts_ = null; + } + return factsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder> + parametersBuilder_; + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder + builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters( + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder + getParametersBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters + .getDefaultInstance() + : parameters_; + } + } + /** + * + * + *
+     * Optional. Parameters that can be set to override default settings per
+     * request.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters.Builder, + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + @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.CorroborateContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CorroborateContentRequest) + private static final com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorroborateContentRequest 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.CorroborateContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequestOrBuilder.java new file mode 100644 index 000000000000..c517338b1b23 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentRequestOrBuilder.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CorroborateContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CorroborateContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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 resource name of the Location from which to corroborate text.
+   * The users must have permission to make a call in the project.
+   * 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(); + + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + /** + * + * + *
+   * Optional. Input content to corroborate, only text format is supported for
+   * now.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFactsList(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Fact getFacts(int index); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFactsCount(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFactsOrBuilderList(); + /** + * + * + *
+   * Optional. Facts used to generate the text can also be used to corroborate
+   * the text.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FactOrBuilder getFactsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters getParameters(); + /** + * + * + *
+   * Optional. Parameters that can be set to override default settings per
+   * request.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest.ParametersOrBuilder + getParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponse.java new file mode 100644 index 000000000000..018ebc5d7249 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponse.java @@ -0,0 +1,1105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for CorroborateContent.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentResponse} + */ +public final class CorroborateContentResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CorroborateContentResponse) + CorroborateContentResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorroborateContentResponse.newBuilder() to construct. + private CorroborateContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorroborateContentResponse() { + claims_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CorroborateContentResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.Builder.class); + } + + private int bitField0_; + public static final int CORROBORATION_SCORE_FIELD_NUMBER = 1; + private float corroborationScore_ = 0F; + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + @java.lang.Override + public boolean hasCorroborationScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + @java.lang.Override + public float getCorroborationScore() { + return corroborationScore_; + } + + public static final int CLAIMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List claims_; + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + @java.lang.Override + public java.util.List getClaimsList() { + return claims_; + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + @java.lang.Override + public java.util.List + getClaimsOrBuilderList() { + return claims_; + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + @java.lang.Override + public int getClaimsCount() { + return claims_.size(); + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Claim getClaims(int index) { + return claims_.get(index); + } + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder getClaimsOrBuilder(int index) { + return claims_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, corroborationScore_); + } + for (int i = 0; i < claims_.size(); i++) { + output.writeMessage(2, claims_.get(i)); + } + 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.computeFloatSize(1, corroborationScore_); + } + for (int i = 0; i < claims_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, claims_.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.v1beta1.CorroborateContentResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse other = + (com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse) obj; + + if (hasCorroborationScore() != other.hasCorroborationScore()) return false; + if (hasCorroborationScore()) { + if (java.lang.Float.floatToIntBits(getCorroborationScore()) + != java.lang.Float.floatToIntBits(other.getCorroborationScore())) return false; + } + if (!getClaimsList().equals(other.getClaimsList())) 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 (hasCorroborationScore()) { + hash = (37 * hash) + CORROBORATION_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getCorroborationScore()); + } + if (getClaimsCount() > 0) { + hash = (37 * hash) + CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getClaimsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse 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.CorroborateContentResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse 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.CorroborateContentResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse 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.CorroborateContentResponse 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.CorroborateContentResponse 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.CorroborateContentResponse 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 CorroborateContent.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CorroborateContentResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CorroborateContentResponse) + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.class, + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + corroborationScore_ = 0F; + if (claimsBuilder_ == null) { + claims_ = java.util.Collections.emptyList(); + } else { + claims_ = null; + claimsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse build() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse result = + new com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse result) { + if (claimsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + claims_ = java.util.Collections.unmodifiableList(claims_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.claims_ = claims_; + } else { + result.claims_ = claimsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.corroborationScore_ = corroborationScore_; + 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.v1beta1.CorroborateContentResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse.getDefaultInstance()) + return this; + if (other.hasCorroborationScore()) { + setCorroborationScore(other.getCorroborationScore()); + } + if (claimsBuilder_ == null) { + if (!other.claims_.isEmpty()) { + if (claims_.isEmpty()) { + claims_ = other.claims_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureClaimsIsMutable(); + claims_.addAll(other.claims_); + } + onChanged(); + } + } else { + if (!other.claims_.isEmpty()) { + if (claimsBuilder_.isEmpty()) { + claimsBuilder_.dispose(); + claimsBuilder_ = null; + claims_ = other.claims_; + bitField0_ = (bitField0_ & ~0x00000002); + claimsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClaimsFieldBuilder() + : null; + } else { + claimsBuilder_.addAllMessages(other.claims_); + } + } + } + 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 13: + { + corroborationScore_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Claim m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Claim.parser(), extensionRegistry); + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(m); + } else { + claimsBuilder_.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 float corroborationScore_; + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + @java.lang.Override + public boolean hasCorroborationScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + @java.lang.Override + public float getCorroborationScore() { + return corroborationScore_; + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @param value The corroborationScore to set. + * @return This builder for chaining. + */ + public Builder setCorroborationScore(float value) { + + corroborationScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of corroborating content. Value is [0,1] with 1 is the
+     * most confidence.
+     * 
+ * + * optional float corroboration_score = 1; + * + * @return This builder for chaining. + */ + public Builder clearCorroborationScore() { + bitField0_ = (bitField0_ & ~0x00000001); + corroborationScore_ = 0F; + onChanged(); + return this; + } + + private java.util.List claims_ = + java.util.Collections.emptyList(); + + private void ensureClaimsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + claims_ = new java.util.ArrayList(claims_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Claim, + com.google.cloud.aiplatform.v1beta1.Claim.Builder, + com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder> + claimsBuilder_; + + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public java.util.List getClaimsList() { + if (claimsBuilder_ == null) { + return java.util.Collections.unmodifiableList(claims_); + } else { + return claimsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public int getClaimsCount() { + if (claimsBuilder_ == null) { + return claims_.size(); + } else { + return claimsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Claim getClaims(int index) { + if (claimsBuilder_ == null) { + return claims_.get(index); + } else { + return claimsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder setClaims(int index, com.google.cloud.aiplatform.v1beta1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.set(index, value); + onChanged(); + } else { + claimsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder setClaims( + int index, com.google.cloud.aiplatform.v1beta1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.set(index, builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder addClaims(com.google.cloud.aiplatform.v1beta1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.add(value); + onChanged(); + } else { + claimsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder addClaims(int index, com.google.cloud.aiplatform.v1beta1.Claim value) { + if (claimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsIsMutable(); + claims_.add(index, value); + onChanged(); + } else { + claimsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder addClaims(com.google.cloud.aiplatform.v1beta1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder addClaims( + int index, com.google.cloud.aiplatform.v1beta1.Claim.Builder builderForValue) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.add(index, builderForValue.build()); + onChanged(); + } else { + claimsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder addAllClaims( + java.lang.Iterable values) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claims_); + onChanged(); + } else { + claimsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder clearClaims() { + if (claimsBuilder_ == null) { + claims_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + claimsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public Builder removeClaims(int index) { + if (claimsBuilder_ == null) { + ensureClaimsIsMutable(); + claims_.remove(index); + onChanged(); + } else { + claimsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Claim.Builder getClaimsBuilder(int index) { + return getClaimsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder getClaimsOrBuilder(int index) { + if (claimsBuilder_ == null) { + return claims_.get(index); + } else { + return claimsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public java.util.List + getClaimsOrBuilderList() { + if (claimsBuilder_ != null) { + return claimsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(claims_); + } + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Claim.Builder addClaimsBuilder() { + return getClaimsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Claim.getDefaultInstance()); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Claim.Builder addClaimsBuilder(int index) { + return getClaimsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Claim.getDefaultInstance()); + } + /** + * + * + *
+     * Claims that are extracted from the input content and facts that support the
+     * claims.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + public java.util.List + getClaimsBuilderList() { + return getClaimsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Claim, + com.google.cloud.aiplatform.v1beta1.Claim.Builder, + com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder> + getClaimsFieldBuilder() { + if (claimsBuilder_ == null) { + claimsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Claim, + com.google.cloud.aiplatform.v1beta1.Claim.Builder, + com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder>( + claims_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + claims_ = null; + } + return claimsBuilder_; + } + + @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.CorroborateContentResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CorroborateContentResponse) + private static final com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorroborateContentResponse 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.CorroborateContentResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponseOrBuilder.java new file mode 100644 index 000000000000..3ec12fe5b4f1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CorroborateContentResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CorroborateContentResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CorroborateContentResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return Whether the corroborationScore field is set. + */ + boolean hasCorroborationScore(); + /** + * + * + *
+   * Confidence score of corroborating content. Value is [0,1] with 1 is the
+   * most confidence.
+   * 
+ * + * optional float corroboration_score = 1; + * + * @return The corroborationScore. + */ + float getCorroborationScore(); + + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + java.util.List getClaimsList(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + com.google.cloud.aiplatform.v1beta1.Claim getClaims(int index); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + int getClaimsCount(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + java.util.List + getClaimsOrBuilderList(); + /** + * + * + *
+   * Claims that are extracted from the input content and facts that support the
+   * claims.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Claim claims = 2; + */ + com.google.cloud.aiplatform.v1beta1.ClaimOrBuilder getClaimsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java index baadfc03fdbc..b075b085249d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java @@ -181,6 +181,29 @@ public int getMaxReplicaCount() { return maxReplicaCount_; } + public static final int REQUIRED_REPLICA_COUNT_FIELD_NUMBER = 9; + private int requiredReplicaCount_ = 0; + /** + * + * + *
+   * Optional. Number of required available replicas for the deployment to
+   * succeed. This field is only needed when partial model deployment/mutation
+   * is desired. If set, the model deploy/mutate operation will succeed once
+   * available_replica_count reaches required_replica_count, and the rest of
+   * the replicas will be retried. If not set, the default
+   * required_replica_count will be min_replica_count.
+   * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + @java.lang.Override + public int getRequiredReplicaCount() { + return requiredReplicaCount_; + } + public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -425,6 +448,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (spot_ != false) { output.writeBool(5, spot_); } + if (requiredReplicaCount_ != 0) { + output.writeInt32(9, requiredReplicaCount_); + } getUnknownFields().writeTo(output); } @@ -451,6 +477,9 @@ public int getSerializedSize() { if (spot_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, spot_); } + if (requiredReplicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requiredReplicaCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -473,6 +502,7 @@ public boolean equals(final java.lang.Object obj) { } if (getMinReplicaCount() != other.getMinReplicaCount()) return false; if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false; + if (getRequiredReplicaCount() != other.getRequiredReplicaCount()) return false; if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList())) return false; if (getSpot() != other.getSpot()) return false; @@ -495,6 +525,8 @@ public int hashCode() { hash = (53 * hash) + getMinReplicaCount(); hash = (37 * hash) + MAX_REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxReplicaCount(); + hash = (37 * hash) + REQUIRED_REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRequiredReplicaCount(); if (getAutoscalingMetricSpecsCount() > 0) { hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER; hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode(); @@ -659,13 +691,14 @@ public Builder clear() { } minReplicaCount_ = 0; maxReplicaCount_ = 0; + requiredReplicaCount_ = 0; if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); } else { autoscalingMetricSpecs_ = null; autoscalingMetricSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); spot_ = false; return this; } @@ -705,9 +738,9 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.DedicatedResources result) { if (autoscalingMetricSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_; } else { @@ -729,7 +762,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DedicatedResource if (((from_bitField0_ & 0x00000004) != 0)) { result.maxReplicaCount_ = maxReplicaCount_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requiredReplicaCount_ = requiredReplicaCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.spot_ = spot_; } result.bitField0_ |= to_bitField0_; @@ -790,11 +826,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources if (other.getMaxReplicaCount() != 0) { setMaxReplicaCount(other.getMaxReplicaCount()); } + if (other.getRequiredReplicaCount() != 0) { + setRequiredReplicaCount(other.getRequiredReplicaCount()); + } if (autoscalingMetricSpecsBuilder_ == null) { if (!other.autoscalingMetricSpecs_.isEmpty()) { if (autoscalingMetricSpecs_.isEmpty()) { autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAutoscalingMetricSpecsIsMutable(); autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_); @@ -807,7 +846,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources autoscalingMetricSpecsBuilder_.dispose(); autoscalingMetricSpecsBuilder_ = null; autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); autoscalingMetricSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAutoscalingMetricSpecsFieldBuilder() @@ -881,9 +920,15 @@ public Builder mergeFrom( case 40: { spot_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 + case 72: + { + requiredReplicaCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1286,15 +1331,83 @@ public Builder clearMaxReplicaCount() { return this; } + private int requiredReplicaCount_; + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + @java.lang.Override + public int getRequiredReplicaCount() { + return requiredReplicaCount_; + } + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requiredReplicaCount to set. + * @return This builder for chaining. + */ + public Builder setRequiredReplicaCount(int value) { + + requiredReplicaCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of required available replicas for the deployment to
+     * succeed. This field is only needed when partial model deployment/mutation
+     * is desired. If set, the model deploy/mutate operation will succeed once
+     * available_replica_count reaches required_replica_count, and the rest of
+     * the replicas will be retried. If not set, the default
+     * required_replica_count will be min_replica_count.
+     * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequiredReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000008); + requiredReplicaCount_ = 0; + onChanged(); + return this; + } + private java.util.List autoscalingMetricSpecs_ = java.util.Collections.emptyList(); private void ensureAutoscalingMetricSpecsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { autoscalingMetricSpecs_ = new java.util.ArrayList( autoscalingMetricSpecs_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -1782,7 +1895,7 @@ public Builder addAllAutoscalingMetricSpecs( public Builder clearAutoscalingMetricSpecs() { if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { autoscalingMetricSpecsBuilder_.clear(); @@ -2081,7 +2194,7 @@ public Builder removeAutoscalingMetricSpecs(int index) { com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder, com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder>( autoscalingMetricSpecs_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); autoscalingMetricSpecs_ = null; @@ -2122,7 +2235,7 @@ public boolean getSpot() { public Builder setSpot(boolean value) { spot_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2139,7 +2252,7 @@ public Builder setSpot(boolean value) { * @return This builder for chaining. */ public Builder clearSpot() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); spot_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java index 1ed9fb0275e3..a9ea1bc016f0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java @@ -115,6 +115,24 @@ public interface DedicatedResourcesOrBuilder */ int getMaxReplicaCount(); + /** + * + * + *
+   * Optional. Number of required available replicas for the deployment to
+   * succeed. This field is only needed when partial model deployment/mutation
+   * is desired. If set, the model deploy/mutate operation will succeed once
+   * available_replica_count reaches required_replica_count, and the rest of
+   * the replicas will be retried. If not set, the default
+   * required_replica_count will be min_replica_count.
+   * 
+ * + * int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredReplicaCount. + */ + int getRequiredReplicaCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index 2400c0551162..1d228c6e4e04 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -79,6 +79,1103 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder.class); } + public interface StatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeployedModel.Status) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + boolean hasLastUpdateTime(); + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + com.google.protobuf.Timestamp getLastUpdateTime(); + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The number of available replicas of the deployed model.
+     * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableReplicaCount. + */ + int getAvailableReplicaCount(); + } + /** + * + * + *
+   * Runtime status of the deployed model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedModel.Status} + */ + public static final class Status extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeployedModel.Status) + StatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use Status.newBuilder() to construct. + private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Status() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Status(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.class, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The latest deployed model's status message (if any).
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastUpdateTime_; + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + @java.lang.Override + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastUpdateTime() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + /** + * + * + *
+     * Output only. The time at which the status was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + + public static final int AVAILABLE_REPLICA_COUNT_FIELD_NUMBER = 3; + private int availableReplicaCount_ = 0; + /** + * + * + *
+     * Output only. The number of available replicas of the deployed model.
+     * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableReplicaCount. + */ + @java.lang.Override + public int getAvailableReplicaCount() { + return availableReplicaCount_; + } + + 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(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLastUpdateTime()); + } + if (availableReplicaCount_ != 0) { + output.writeInt32(3, availableReplicaCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); + } + if (availableReplicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, availableReplicaCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeployedModel.Status)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status other = + (com.google.cloud.aiplatform.v1beta1.DeployedModel.Status) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; + if (hasLastUpdateTime()) { + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + } + if (getAvailableReplicaCount() != other.getAvailableReplicaCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasLastUpdateTime()) { + hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdateTime().hashCode(); + } + hash = (37 * hash) + AVAILABLE_REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAvailableReplicaCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status 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.DeployedModel.Status parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status 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.DeployedModel.Status parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status 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.DeployedModel.Status parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Runtime status of the deployed model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeployedModel.Status} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeployedModel.Status) + com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.class, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + availableReplicaCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status build() { + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status result = + new com.google.cloud.aiplatform.v1beta1.DeployedModel.Status(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.availableReplicaCount_ = availableReplicaCount_; + } + 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.v1beta1.DeployedModel.Status) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeployedModel.Status) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLastUpdateTime()) { + mergeLastUpdateTime(other.getLastUpdateTime()); + } + if (other.getAvailableReplicaCount() != 0) { + setAvailableReplicaCount(other.getAvailableReplicaCount()); + } + 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: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + availableReplicaCount_ = 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 java.lang.Object message_ = ""; + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The latest deployed model's status message (if any).
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + public com.google.protobuf.Timestamp getLastUpdateTime() { + if (lastUpdateTimeBuilder_ == null) { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } else { + return lastUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUpdateTime_ = value; + } else { + lastUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastUpdateTimeBuilder_ == null) { + lastUpdateTime_ = builderForValue.build(); + } else { + lastUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); + } else { + lastUpdateTime_ = value; + } + } else { + lastUpdateTimeBuilder_.mergeFrom(value); + } + if (lastUpdateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + if (lastUpdateTimeBuilder_ != null) { + return lastUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + } + /** + * + * + *
+       * Output only. The time at which the status was last updated.
+       * 
+ * + * + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastUpdateTimeFieldBuilder() { + if (lastUpdateTimeBuilder_ == null) { + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); + lastUpdateTime_ = null; + } + return lastUpdateTimeBuilder_; + } + + private int availableReplicaCount_; + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableReplicaCount. + */ + @java.lang.Override + public int getAvailableReplicaCount() { + return availableReplicaCount_; + } + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableReplicaCount to set. + * @return This builder for chaining. + */ + public Builder setAvailableReplicaCount(int value) { + + availableReplicaCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The number of available replicas of the deployed model.
+       * 
+ * + * int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000004); + availableReplicaCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeployedModel.Status) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeployedModel.Status) + private static final com.google.cloud.aiplatform.v1beta1.DeployedModel.Status DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeployedModel.Status(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeployedModel.Status getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Status 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.DeployedModel.Status getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int predictionResourcesCase_ = 0; @@ -951,6 +2048,62 @@ public com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig getFasterDeplo : fasterDeploymentConfig_; } + public static final int STATUS_FIELD_NUMBER = 26; + private com.google.cloud.aiplatform.v1beta1.DeployedModel.Status status_; + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status getStatus() { + return status_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance() + : status_; + } + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder getStatusOrBuilder() { + return status_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance() + : status_; + } + public static final int SYSTEM_LABELS_FIELD_NUMBER = 28; private static final class SystemLabelsDefaultEntryHolder { @@ -1120,6 +2273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getFasterDeploymentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(26, getStatus()); + } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSystemLabels(), SystemLabelsDefaultEntryHolder.defaultEntry, 28); getUnknownFields().writeTo(output); @@ -1181,6 +2337,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getFasterDeploymentConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getStatus()); + } for (java.util.Map.Entry entry : internalGetSystemLabels().getMap().entrySet()) { com.google.protobuf.MapEntry systemLabels__ = @@ -1231,6 +2390,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFasterDeploymentConfig()) { if (!getFasterDeploymentConfig().equals(other.getFasterDeploymentConfig())) return false; } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } if (!internalGetSystemLabels().equals(other.internalGetSystemLabels())) return false; if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false; switch (predictionResourcesCase_) { @@ -1289,6 +2452,10 @@ public int hashCode() { hash = (37 * hash) + FASTER_DEPLOYMENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFasterDeploymentConfig().hashCode(); } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } if (!internalGetSystemLabels().getMap().isEmpty()) { hash = (37 * hash) + SYSTEM_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetSystemLabels().hashCode(); @@ -1475,6 +2642,7 @@ private void maybeForceBuilderInitialization() { getExplanationSpecFieldBuilder(); getPrivateEndpointsFieldBuilder(); getFasterDeploymentConfigFieldBuilder(); + getStatusFieldBuilder(); } } @@ -1516,6 +2684,11 @@ public Builder clear() { fasterDeploymentConfigBuilder_.dispose(); fasterDeploymentConfigBuilder_ = null; } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } internalGetMutableSystemLabels().clear(); predictionResourcesCase_ = 0; predictionResources_ = null; @@ -1603,6 +2776,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModel res to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.systemLabels_ = internalGetSystemLabels(); result.systemLabels_.makeImmutable(); } @@ -1712,8 +2889,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other if (other.hasFasterDeploymentConfig()) { mergeFasterDeploymentConfig(other.getFasterDeploymentConfig()); } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } internalGetMutableSystemLabels().mergeFrom(other.internalGetSystemLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; switch (other.getPredictionResourcesCase()) { case DEDICATED_RESOURCES: { @@ -1858,6 +3038,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 186 + case 210: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 210 case 226: { com.google.protobuf.MapEntry systemLabels__ = @@ -1867,7 +3053,7 @@ public Builder mergeFrom( internalGetMutableSystemLabels() .getMutableMap() .put(systemLabels__.getKey(), systemLabels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 226 default: @@ -4304,6 +5490,211 @@ public Builder clearFasterDeploymentConfig() { return fasterDeploymentConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.DeployedModel.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder> + statusBuilder_; + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance() + : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStatus( + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && status_ != null + && status_ + != com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00008000); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance() + : status_; + } + } + /** + * + * + *
+     * Output only. Runtime status of the deployed model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); + status_ = null; + } + return statusBuilder_; + } + private com.google.protobuf.MapField systemLabels_; private com.google.protobuf.MapField @@ -4324,7 +5715,7 @@ public Builder clearFasterDeploymentConfig() { if (!systemLabels_.isMutable()) { systemLabels_ = systemLabels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return systemLabels_; } @@ -4413,7 +5804,7 @@ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) { } public Builder clearSystemLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableSystemLabels().getMutableMap().clear(); return this; } @@ -4437,7 +5828,7 @@ public Builder removeSystemLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSystemLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableSystemLabels().getMutableMap(); } /** @@ -4458,7 +5849,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableSystemLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -4473,7 +5864,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllSystemLabels(java.util.Map values) { internalGetMutableSystemLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index 7e8d7596bdf7..39ce6d3c9bdf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -573,6 +573,47 @@ public interface DeployedModelOrBuilder com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfigOrBuilder getFasterDeploymentConfigOrBuilder(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.aiplatform.v1beta1.DeployedModel.Status getStatus(); + /** + * + * + *
+   * Output only. Runtime status of the deployed model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder getStatusOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 007826769ee5..0765d31b63d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_Status_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_SystemLabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -56,14 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PredictRequestResponseLoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_FasterDeploymentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_FasterDeploymentConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ClientConnectionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ClientConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FasterDeploymentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FasterDeploymentConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -120,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".com/Endpoint\022 + * Input for trajectory exact match metric. + * + * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchInput() { + return metricInputsCase_ == 33; + } + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getTrajectoryExactMatchInput() { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder() { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_INPUT_FIELD_NUMBER = 34; + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchInput() { + return metricInputsCase_ == 34; + } + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getTrajectoryInOrderMatchInput() { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder() { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_INPUT_FIELD_NUMBER = 35; + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchInput() { + return metricInputsCase_ == 35; + } + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput() { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder() { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_PRECISION_INPUT_FIELD_NUMBER = 37; + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionInput() { + return metricInputsCase_ == 37; + } + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getTrajectoryPrecisionInput() { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder() { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_RECALL_INPUT_FIELD_NUMBER = 38; + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallInput() { + return metricInputsCase_ == 38; + } + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput() { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder() { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_INPUT_FIELD_NUMBER = 39; + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseInput() { + return metricInputsCase_ == 39; + } + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput() { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder() { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + public static final int LOCATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1634,6 +2002,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (metricInputsCase_ == 33) { + output.writeMessage( + 33, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_); + } + if (metricInputsCase_ == 34) { + output.writeMessage( + 34, (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 37) { + output.writeMessage( + 37, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_); + } + if (metricInputsCase_ == 38) { + output.writeMessage( + 38, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_); + } + if (metricInputsCase_ == 39) { + output.writeMessage( + 39, (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_); + } getUnknownFields().writeTo(output); } @@ -1772,6 +2164,36 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (metricInputsCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_); + } + if (metricInputsCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_); + } + if (metricInputsCase_ == 37) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 37, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_); + } + if (metricInputsCase_ == 38) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 38, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_); + } + if (metricInputsCase_ == 39) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 39, (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1871,7 +2293,30 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchInput().equals(other.getToolParameterKvMatchInput())) return false; break; - case 0: + case 33: + if (!getTrajectoryExactMatchInput().equals(other.getTrajectoryExactMatchInput())) + return false; + break; + case 34: + if (!getTrajectoryInOrderMatchInput().equals(other.getTrajectoryInOrderMatchInput())) + return false; + break; + case 35: + if (!getTrajectoryAnyOrderMatchInput().equals(other.getTrajectoryAnyOrderMatchInput())) + return false; + break; + case 37: + if (!getTrajectoryPrecisionInput().equals(other.getTrajectoryPrecisionInput())) + return false; + break; + case 38: + if (!getTrajectoryRecallInput().equals(other.getTrajectoryRecallInput())) return false; + break; + case 39: + if (!getTrajectorySingleToolUseInput().equals(other.getTrajectorySingleToolUseInput())) + return false; + break; + case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1980,6 +2425,30 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_INPUT_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchInput().hashCode(); break; + case 33: + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchInput().hashCode(); + break; + case 34: + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchInput().hashCode(); + break; + case 35: + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchInput().hashCode(); + break; + case 37: + hash = (37 * hash) + TRAJECTORY_PRECISION_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionInput().hashCode(); + break; + case 38: + hash = (37 * hash) + TRAJECTORY_RECALL_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallInput().hashCode(); + break; + case 39: + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseInput().hashCode(); + break; case 0: default: } @@ -2192,6 +2661,24 @@ public Builder clear() { if (toolParameterKvMatchInputBuilder_ != null) { toolParameterKvMatchInputBuilder_.clear(); } + if (trajectoryExactMatchInputBuilder_ != null) { + trajectoryExactMatchInputBuilder_.clear(); + } + if (trajectoryInOrderMatchInputBuilder_ != null) { + trajectoryInOrderMatchInputBuilder_.clear(); + } + if (trajectoryAnyOrderMatchInputBuilder_ != null) { + trajectoryAnyOrderMatchInputBuilder_.clear(); + } + if (trajectoryPrecisionInputBuilder_ != null) { + trajectoryPrecisionInputBuilder_.clear(); + } + if (trajectoryRecallInputBuilder_ != null) { + trajectoryRecallInputBuilder_.clear(); + } + if (trajectorySingleToolUseInputBuilder_ != null) { + trajectorySingleToolUseInputBuilder_.clear(); + } location_ = ""; metricInputsCase_ = 0; metricInputs_ = null; @@ -2234,7 +2721,7 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial private void buildPartial0( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.location_ = location_; } } @@ -2312,6 +2799,24 @@ private void buildPartialOneofs( if (metricInputsCase_ == 22 && toolParameterKvMatchInputBuilder_ != null) { result.metricInputs_ = toolParameterKvMatchInputBuilder_.build(); } + if (metricInputsCase_ == 33 && trajectoryExactMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryExactMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 34 && trajectoryInOrderMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryInOrderMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 35 && trajectoryAnyOrderMatchInputBuilder_ != null) { + result.metricInputs_ = trajectoryAnyOrderMatchInputBuilder_.build(); + } + if (metricInputsCase_ == 37 && trajectoryPrecisionInputBuilder_ != null) { + result.metricInputs_ = trajectoryPrecisionInputBuilder_.build(); + } + if (metricInputsCase_ == 38 && trajectoryRecallInputBuilder_ != null) { + result.metricInputs_ = trajectoryRecallInputBuilder_.build(); + } + if (metricInputsCase_ == 39 && trajectorySingleToolUseInputBuilder_ != null) { + result.metricInputs_ = trajectorySingleToolUseInputBuilder_.build(); + } } @java.lang.Override @@ -2363,7 +2868,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); } switch (other.getMetricInputsCase()) { @@ -2483,6 +2988,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchInput(other.getToolParameterKvMatchInput()); break; } + case TRAJECTORY_EXACT_MATCH_INPUT: + { + mergeTrajectoryExactMatchInput(other.getTrajectoryExactMatchInput()); + break; + } + case TRAJECTORY_IN_ORDER_MATCH_INPUT: + { + mergeTrajectoryInOrderMatchInput(other.getTrajectoryInOrderMatchInput()); + break; + } + case TRAJECTORY_ANY_ORDER_MATCH_INPUT: + { + mergeTrajectoryAnyOrderMatchInput(other.getTrajectoryAnyOrderMatchInput()); + break; + } + case TRAJECTORY_PRECISION_INPUT: + { + mergeTrajectoryPrecisionInput(other.getTrajectoryPrecisionInput()); + break; + } + case TRAJECTORY_RECALL_INPUT: + { + mergeTrajectoryRecallInput(other.getTrajectoryRecallInput()); + break; + } + case TRAJECTORY_SINGLE_TOOL_USE_INPUT: + { + mergeTrajectorySingleToolUseInput(other.getTrajectorySingleToolUseInput()); + break; + } case METRICINPUTS_NOT_SET: { break; @@ -2517,7 +3052,7 @@ public Builder mergeFrom( case 10: { location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; break; } // case 10 case 18: @@ -2680,6 +3215,48 @@ public Builder mergeFrom( metricInputsCase_ = 29; break; } // case 234 + case 266: + { + input.readMessage( + getTrajectoryExactMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 33; + break; + } // case 266 + case 274: + { + input.readMessage( + getTrajectoryInOrderMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 34; + break; + } // case 274 + case 282: + { + input.readMessage( + getTrajectoryAnyOrderMatchInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 35; + break; + } // case 282 + case 298: + { + input.readMessage( + getTrajectoryPrecisionInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 37; + break; + } // case 298 + case 306: + { + input.readMessage( + getTrajectoryRecallInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 38; + break; + } // case 306 + case 314: + { + input.readMessage( + getTrajectorySingleToolUseInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 39; + break; + } // case 314 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7967,6 +8544,1414 @@ public Builder clearToolParameterKvMatchInput() { return toolParameterKvMatchInputBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder> + trajectoryExactMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchInput() { + return metricInputsCase_ == 33; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getTrajectoryExactMatchInput() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 33) { + return trajectoryExactMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder setTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { + if (trajectoryExactMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryExactMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder setTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder builderForValue) { + if (trajectoryExactMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryExactMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder mergeTrajectoryExactMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 33) { + trajectoryExactMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryExactMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 33; + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public Builder clearTrajectoryExactMatchInput() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (metricInputsCase_ == 33) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 33) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryExactMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder + getTrajectoryExactMatchInputBuilder() { + return getTrajectoryExactMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder() { + if ((metricInputsCase_ == 33) && (trajectoryExactMatchInputBuilder_ != null)) { + return trajectoryExactMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory exact match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder> + getTrajectoryExactMatchInputFieldBuilder() { + if (trajectoryExactMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 33)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + trajectoryExactMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 33; + onChanged(); + return trajectoryExactMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder> + trajectoryInOrderMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchInput() { + return metricInputsCase_ == 34; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getTrajectoryInOrderMatchInput() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 34) { + return trajectoryInOrderMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder setTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput value) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder setTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder builderForValue) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder mergeTrajectoryInOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput value) { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 34) { + trajectoryInOrderMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryInOrderMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 34; + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public Builder clearTrajectoryInOrderMatchInput() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 34) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 34) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryInOrderMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder + getTrajectoryInOrderMatchInputBuilder() { + return getTrajectoryInOrderMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder() { + if ((metricInputsCase_ == 34) && (trajectoryInOrderMatchInputBuilder_ != null)) { + return trajectoryInOrderMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 34) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory in order match metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder> + getTrajectoryInOrderMatchInputFieldBuilder() { + if (trajectoryInOrderMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 34)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + trajectoryInOrderMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 34; + onChanged(); + return trajectoryInOrderMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder> + trajectoryAnyOrderMatchInputBuilder_; + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchInput() { + return metricInputsCase_ == 35; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } else { + if (metricInputsCase_ == 35) { + return trajectoryAnyOrderMatchInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder setTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput value) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(value); + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder setTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder builderForValue) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder mergeTrajectoryAnyOrderMatchInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput value) { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 35) { + trajectoryAnyOrderMatchInputBuilder_.mergeFrom(value); + } else { + trajectoryAnyOrderMatchInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 35; + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public Builder clearTrajectoryAnyOrderMatchInput() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (metricInputsCase_ == 35) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 35) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryAnyOrderMatchInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder + getTrajectoryAnyOrderMatchInputBuilder() { + return getTrajectoryAnyOrderMatchInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder() { + if ((metricInputsCase_ == 35) && (trajectoryAnyOrderMatchInputBuilder_ != null)) { + return trajectoryAnyOrderMatchInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory match any order metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder> + getTrajectoryAnyOrderMatchInputFieldBuilder() { + if (trajectoryAnyOrderMatchInputBuilder_ == null) { + if (!(metricInputsCase_ == 35)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + trajectoryAnyOrderMatchInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 35; + onChanged(); + return trajectoryAnyOrderMatchInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder> + trajectoryPrecisionInputBuilder_; + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionInput() { + return metricInputsCase_ == 37; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getTrajectoryPrecisionInput() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 37) { + return trajectoryPrecisionInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder setTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput value) { + if (trajectoryPrecisionInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryPrecisionInputBuilder_.setMessage(value); + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder setTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder builderForValue) { + if (trajectoryPrecisionInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryPrecisionInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder mergeTrajectoryPrecisionInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput value) { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 37) { + trajectoryPrecisionInputBuilder_.mergeFrom(value); + } else { + trajectoryPrecisionInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 37; + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public Builder clearTrajectoryPrecisionInput() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (metricInputsCase_ == 37) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 37) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryPrecisionInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder + getTrajectoryPrecisionInputBuilder() { + return getTrajectoryPrecisionInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder() { + if ((metricInputsCase_ == 37) && (trajectoryPrecisionInputBuilder_ != null)) { + return trajectoryPrecisionInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory precision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder> + getTrajectoryPrecisionInputFieldBuilder() { + if (trajectoryPrecisionInputBuilder_ == null) { + if (!(metricInputsCase_ == 37)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + trajectoryPrecisionInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 37; + onChanged(); + return trajectoryPrecisionInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder> + trajectoryRecallInputBuilder_; + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallInput() { + return metricInputsCase_ == 38; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput() { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 38) { + return trajectoryRecallInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder setTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput value) { + if (trajectoryRecallInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectoryRecallInputBuilder_.setMessage(value); + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder setTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder builderForValue) { + if (trajectoryRecallInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectoryRecallInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder mergeTrajectoryRecallInput( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput value) { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 38) { + trajectoryRecallInputBuilder_.mergeFrom(value); + } else { + trajectoryRecallInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 38; + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public Builder clearTrajectoryRecallInput() { + if (trajectoryRecallInputBuilder_ == null) { + if (metricInputsCase_ == 38) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 38) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectoryRecallInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder + getTrajectoryRecallInputBuilder() { + return getTrajectoryRecallInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder() { + if ((metricInputsCase_ == 38) && (trajectoryRecallInputBuilder_ != null)) { + return trajectoryRecallInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory recall metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder> + getTrajectoryRecallInputFieldBuilder() { + if (trajectoryRecallInputBuilder_ == null) { + if (!(metricInputsCase_ == 38)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + trajectoryRecallInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 38; + onChanged(); + return trajectoryRecallInputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder> + trajectorySingleToolUseInputBuilder_; + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseInput() { + return metricInputsCase_ == 39; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } else { + if (metricInputsCase_ == 39) { + return trajectorySingleToolUseInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder setTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput value) { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(value); + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder setTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder builderForValue) { + if (trajectorySingleToolUseInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder mergeTrajectorySingleToolUseInput( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput value) { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 39) { + trajectorySingleToolUseInputBuilder_.mergeFrom(value); + } else { + trajectorySingleToolUseInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 39; + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public Builder clearTrajectorySingleToolUseInput() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (metricInputsCase_ == 39) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 39) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + trajectorySingleToolUseInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder + getTrajectorySingleToolUseInputBuilder() { + return getTrajectorySingleToolUseInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder() { + if ((metricInputsCase_ == 39) && (trajectorySingleToolUseInputBuilder_ != null)) { + return trajectorySingleToolUseInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 39) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for trajectory single tool use metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder> + getTrajectorySingleToolUseInputFieldBuilder() { + if (trajectorySingleToolUseInputBuilder_ == null) { + if (!(metricInputsCase_ == 39)) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + trajectorySingleToolUseInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 39; + onChanged(); + return trajectorySingleToolUseInputBuilder_; + } + private java.lang.Object location_ = ""; /** * @@ -8038,7 +10023,7 @@ public Builder setLocation(java.lang.String value) { throw new NullPointerException(); } location_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8058,7 +10043,7 @@ public Builder setLocation(java.lang.String value) { */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -8083,7 +10068,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); location_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x20000000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java index 70bbee41dd69..6f45d55fb315 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java @@ -933,6 +933,257 @@ public interface EvaluateInstancesRequestOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputOrBuilder getToolParameterKvMatchInputOrBuilder(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return Whether the trajectoryExactMatchInput field is set. + */ + boolean hasTrajectoryExactMatchInput(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + * + * @return The trajectoryExactMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput getTrajectoryExactMatchInput(); + /** + * + * + *
+   * Input for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder + getTrajectoryExactMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return Whether the trajectoryInOrderMatchInput field is set. + */ + boolean hasTrajectoryInOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + * + * @return The trajectoryInOrderMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput getTrajectoryInOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder + getTrajectoryInOrderMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return Whether the trajectoryAnyOrderMatchInput field is set. + */ + boolean hasTrajectoryAnyOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + * + * @return The trajectoryAnyOrderMatchInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getTrajectoryAnyOrderMatchInput(); + /** + * + * + *
+   * Input for trajectory match any order metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder + getTrajectoryAnyOrderMatchInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return Whether the trajectoryPrecisionInput field is set. + */ + boolean hasTrajectoryPrecisionInput(); + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + * + * @return The trajectoryPrecisionInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput getTrajectoryPrecisionInput(); + /** + * + * + *
+   * Input for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput trajectory_precision_input = 37; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder + getTrajectoryPrecisionInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return Whether the trajectoryRecallInput field is set. + */ + boolean hasTrajectoryRecallInput(); + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + * + * @return The trajectoryRecallInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getTrajectoryRecallInput(); + /** + * + * + *
+   * Input for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallInput trajectory_recall_input = 38; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder + getTrajectoryRecallInputOrBuilder(); + + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return Whether the trajectorySingleToolUseInput field is set. + */ + boolean hasTrajectorySingleToolUseInput(); + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + * + * @return The trajectorySingleToolUseInput. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getTrajectorySingleToolUseInput(); + /** + * + * + *
+   * Input for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder + getTrajectorySingleToolUseInputOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java index 086543fb8976..10c1f845b1d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java @@ -93,6 +93,12 @@ public enum EvaluationResultsCase TOOL_NAME_MATCH_RESULTS(19), TOOL_PARAMETER_KEY_MATCH_RESULTS(20), TOOL_PARAMETER_KV_MATCH_RESULTS(21), + TRAJECTORY_EXACT_MATCH_RESULTS(31), + TRAJECTORY_IN_ORDER_MATCH_RESULTS(32), + TRAJECTORY_ANY_ORDER_MATCH_RESULTS(33), + TRAJECTORY_PRECISION_RESULTS(35), + TRAJECTORY_RECALL_RESULTS(36), + TRAJECTORY_SINGLE_TOOL_USE_RESULTS(37), EVALUATIONRESULTS_NOT_SET(0); private final int value; @@ -157,6 +163,18 @@ public static EvaluationResultsCase forNumber(int value) { return TOOL_PARAMETER_KEY_MATCH_RESULTS; case 21: return TOOL_PARAMETER_KV_MATCH_RESULTS; + case 31: + return TRAJECTORY_EXACT_MATCH_RESULTS; + case 32: + return TRAJECTORY_IN_ORDER_MATCH_RESULTS; + case 33: + return TRAJECTORY_ANY_ORDER_MATCH_RESULTS; + case 35: + return TRAJECTORY_PRECISION_RESULTS; + case 36: + return TRAJECTORY_RECALL_RESULTS; + case 37: + return TRAJECTORY_SINGLE_TOOL_USE_RESULTS; case 0: return EVALUATIONRESULTS_NOT_SET; default: @@ -1496,6 +1514,360 @@ public boolean hasToolParameterKvMatchResults() { return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } + public static final int TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER = 31; + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return Whether the trajectoryExactMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryExactMatchResults() { + return evaluationResultsCase_ == 31; + } + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return The trajectoryExactMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getTrajectoryExactMatchResults() { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_RESULTS_FIELD_NUMBER = 32; + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return Whether the trajectoryInOrderMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryInOrderMatchResults() { + return evaluationResultsCase_ == 32; + } + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return The trajectoryInOrderMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults() { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_RESULTS_FIELD_NUMBER = 33; + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return Whether the trajectoryAnyOrderMatchResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryAnyOrderMatchResults() { + return evaluationResultsCase_ == 33; + } + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return The trajectoryAnyOrderMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults() { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder() { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_PRECISION_RESULTS_FIELD_NUMBER = 35; + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return Whether the trajectoryPrecisionResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryPrecisionResults() { + return evaluationResultsCase_ == 35; + } + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return The trajectoryPrecisionResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getTrajectoryPrecisionResults() { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder() { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_RECALL_RESULTS_FIELD_NUMBER = 36; + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return Whether the trajectoryRecallResults field is set. + */ + @java.lang.Override + public boolean hasTrajectoryRecallResults() { + return evaluationResultsCase_ == 36; + } + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return The trajectoryRecallResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getTrajectoryRecallResults() { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder() { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_RESULTS_FIELD_NUMBER = 37; + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return Whether the trajectorySingleToolUseResults field is set. + */ + @java.lang.Override + public boolean hasTrajectorySingleToolUseResults() { + return evaluationResultsCase_ == 37; + } + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return The trajectorySingleToolUseResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults() { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.getDefaultInstance(); + } + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder() { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1613,6 +1985,33 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } + if (evaluationResultsCase_ == 31) { + output.writeMessage( + 31, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 32) { + output.writeMessage( + 32, + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 33) { + output.writeMessage( + 33, + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) evaluationResults_); + } + if (evaluationResultsCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_); + } + if (evaluationResultsCase_ == 36) { + output.writeMessage( + 36, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_); + } + if (evaluationResultsCase_ == 37) { + output.writeMessage( + 37, + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_); + } getUnknownFields().writeTo(output); } @@ -1757,20 +2156,58 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } - 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.EvaluateInstancesResponse)) { - return super.equals(obj); + if (evaluationResultsCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_); } - com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse other = + if (evaluationResultsCase_ == 32) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_); + } + if (evaluationResultsCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_); + } + if (evaluationResultsCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_); + } + if (evaluationResultsCase_ == 36) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_); + } + if (evaluationResultsCase_ == 37) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 37, + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + evaluationResults_); + } + 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.EvaluateInstancesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse other = (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse) obj; if (!getEvaluationResultsCase().equals(other.getEvaluationResultsCase())) return false; @@ -1855,6 +2292,29 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchResults().equals(other.getToolParameterKvMatchResults())) return false; break; + case 31: + if (!getTrajectoryExactMatchResults().equals(other.getTrajectoryExactMatchResults())) + return false; + break; + case 32: + if (!getTrajectoryInOrderMatchResults().equals(other.getTrajectoryInOrderMatchResults())) + return false; + break; + case 33: + if (!getTrajectoryAnyOrderMatchResults().equals(other.getTrajectoryAnyOrderMatchResults())) + return false; + break; + case 35: + if (!getTrajectoryPrecisionResults().equals(other.getTrajectoryPrecisionResults())) + return false; + break; + case 36: + if (!getTrajectoryRecallResults().equals(other.getTrajectoryRecallResults())) return false; + break; + case 37: + if (!getTrajectorySingleToolUseResults().equals(other.getTrajectorySingleToolUseResults())) + return false; + break; case 0: default: } @@ -1962,6 +2422,30 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchResults().hashCode(); break; + case 31: + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchResults().hashCode(); + break; + case 32: + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchResults().hashCode(); + break; + case 33: + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchResults().hashCode(); + break; + case 35: + hash = (37 * hash) + TRAJECTORY_PRECISION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionResults().hashCode(); + break; + case 36: + hash = (37 * hash) + TRAJECTORY_RECALL_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallResults().hashCode(); + break; + case 37: + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseResults().hashCode(); + break; case 0: default: } @@ -2174,6 +2658,24 @@ public Builder clear() { if (toolParameterKvMatchResultsBuilder_ != null) { toolParameterKvMatchResultsBuilder_.clear(); } + if (trajectoryExactMatchResultsBuilder_ != null) { + trajectoryExactMatchResultsBuilder_.clear(); + } + if (trajectoryInOrderMatchResultsBuilder_ != null) { + trajectoryInOrderMatchResultsBuilder_.clear(); + } + if (trajectoryAnyOrderMatchResultsBuilder_ != null) { + trajectoryAnyOrderMatchResultsBuilder_.clear(); + } + if (trajectoryPrecisionResultsBuilder_ != null) { + trajectoryPrecisionResultsBuilder_.clear(); + } + if (trajectoryRecallResultsBuilder_ != null) { + trajectoryRecallResultsBuilder_.clear(); + } + if (trajectorySingleToolUseResultsBuilder_ != null) { + trajectorySingleToolUseResultsBuilder_.clear(); + } evaluationResultsCase_ = 0; evaluationResults_ = null; return this; @@ -2290,6 +2792,24 @@ private void buildPartialOneofs( if (evaluationResultsCase_ == 21 && toolParameterKvMatchResultsBuilder_ != null) { result.evaluationResults_ = toolParameterKvMatchResultsBuilder_.build(); } + if (evaluationResultsCase_ == 31 && trajectoryExactMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryExactMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 32 && trajectoryInOrderMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryInOrderMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 33 && trajectoryAnyOrderMatchResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryAnyOrderMatchResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 35 && trajectoryPrecisionResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryPrecisionResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 36 && trajectoryRecallResultsBuilder_ != null) { + result.evaluationResults_ = trajectoryRecallResultsBuilder_.build(); + } + if (evaluationResultsCase_ == 37 && trajectorySingleToolUseResultsBuilder_ != null) { + result.evaluationResults_ = trajectorySingleToolUseResultsBuilder_.build(); + } } @java.lang.Override @@ -2456,6 +2976,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchResults(other.getToolParameterKvMatchResults()); break; } + case TRAJECTORY_EXACT_MATCH_RESULTS: + { + mergeTrajectoryExactMatchResults(other.getTrajectoryExactMatchResults()); + break; + } + case TRAJECTORY_IN_ORDER_MATCH_RESULTS: + { + mergeTrajectoryInOrderMatchResults(other.getTrajectoryInOrderMatchResults()); + break; + } + case TRAJECTORY_ANY_ORDER_MATCH_RESULTS: + { + mergeTrajectoryAnyOrderMatchResults(other.getTrajectoryAnyOrderMatchResults()); + break; + } + case TRAJECTORY_PRECISION_RESULTS: + { + mergeTrajectoryPrecisionResults(other.getTrajectoryPrecisionResults()); + break; + } + case TRAJECTORY_RECALL_RESULTS: + { + mergeTrajectoryRecallResults(other.getTrajectoryRecallResults()); + break; + } + case TRAJECTORY_SINGLE_TOOL_USE_RESULTS: + { + mergeTrajectorySingleToolUseResults(other.getTrajectorySingleToolUseResults()); + break; + } case EVALUATIONRESULTS_NOT_SET: { break; @@ -2650,6 +3200,50 @@ public Builder mergeFrom( evaluationResultsCase_ = 28; break; } // case 226 + case 250: + { + input.readMessage( + getTrajectoryExactMatchResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 31; + break; + } // case 250 + case 258: + { + input.readMessage( + getTrajectoryInOrderMatchResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 32; + break; + } // case 258 + case 266: + { + input.readMessage( + getTrajectoryAnyOrderMatchResultsFieldBuilder().getBuilder(), + extensionRegistry); + evaluationResultsCase_ = 33; + break; + } // case 266 + case 282: + { + input.readMessage( + getTrajectoryPrecisionResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 35; + break; + } // case 282 + case 290: + { + input.readMessage( + getTrajectoryRecallResultsFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 36; + break; + } // case 290 + case 298: + { + input.readMessage( + getTrajectorySingleToolUseResultsFieldBuilder().getBuilder(), + extensionRegistry); + evaluationResultsCase_ = 37; + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6383,119 +6977,1517 @@ public Builder clearQuestionAnsweringHelpfulnessResult() { * * *
-     * Result for question answering correctness metric.
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + * + * @return Whether the questionAnsweringCorrectnessResult field is set. + */ + @java.lang.Override + public boolean hasQuestionAnsweringCorrectnessResult() { + return evaluationResultsCase_ == 17; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + * + * @return The questionAnsweringCorrectnessResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + getQuestionAnsweringCorrectnessResult() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 17) { + return questionAnsweringCorrectnessResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder setQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder setQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder + builderForValue) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder mergeQuestionAnsweringCorrectnessResult( + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 17) { + questionAnsweringCorrectnessResultBuilder_.mergeFrom(value); + } else { + questionAnsweringCorrectnessResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 17; + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public Builder clearQuestionAnsweringCorrectnessResult() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (evaluationResultsCase_ == 17) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 17) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + questionAnsweringCorrectnessResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder + getQuestionAnsweringCorrectnessResultBuilder() { + return getQuestionAnsweringCorrectnessResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder + getQuestionAnsweringCorrectnessResultOrBuilder() { + if ((evaluationResultsCase_ == 17) && (questionAnsweringCorrectnessResultBuilder_ != null)) { + return questionAnsweringCorrectnessResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 17) { + return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for question answering correctness metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder> + getQuestionAnsweringCorrectnessResultFieldBuilder() { + if (questionAnsweringCorrectnessResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 17)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + .getDefaultInstance(); + } + questionAnsweringCorrectnessResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, + com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 17; + onChanged(); + return questionAnsweringCorrectnessResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + pointwiseMetricResultBuilder_; + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * + * @return Whether the pointwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPointwiseMetricResult() { + return evaluationResultsCase_ == 27; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * + * @return The pointwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 27) { + return pointwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder builderForValue) { + if (pointwiseMetricResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder mergePointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 27) { + pointwiseMetricResultBuilder_.mergeFrom(value); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 27; + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public Builder clearPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 27) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 27) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + pointwiseMetricResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder + getPointwiseMetricResultBuilder() { + return getPointwiseMetricResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder + getPointwiseMetricResultOrBuilder() { + if ((evaluationResultsCase_ == 27) && (pointwiseMetricResultBuilder_ != null)) { + return pointwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 27) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Generic metrics.
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + getPointwiseMetricResultFieldBuilder() { + if (pointwiseMetricResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 27)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + pointwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 27; + onChanged(); + return pointwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + pairwiseMetricResultBuilder_; + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * + * @return Whether the pairwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPairwiseMetricResult() { + return evaluationResultsCase_ == 28; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * + * @return The pairwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 28) { + return pairwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder builderForValue) { + if (pairwiseMetricResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder mergePairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 28) { + pairwiseMetricResultBuilder_.mergeFrom(value); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 28; + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public Builder clearPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (evaluationResultsCase_ == 28) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 28) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + pairwiseMetricResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder + getPairwiseMetricResultBuilder() { + return getPairwiseMetricResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder + getPairwiseMetricResultOrBuilder() { + if ((evaluationResultsCase_ == 28) && (pairwiseMetricResultBuilder_ != null)) { + return pairwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 28) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + getPairwiseMetricResultFieldBuilder() { + if (pairwiseMetricResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 28)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + pairwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 28; + onChanged(); + return pairwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> + toolCallValidResultsBuilder_; + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * + * @return Whether the toolCallValidResults field is set. + */ + @java.lang.Override + public boolean hasToolCallValidResults() { + return evaluationResultsCase_ == 18; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * + * @return The toolCallValidResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults getToolCallValidResults() { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18) { + return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 18) { + return toolCallValidResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder setToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { + if (toolCallValidResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolCallValidResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder setToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder builderForValue) { + if (toolCallValidResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolCallValidResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder mergeToolCallValidResults( + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 18) { + toolCallValidResultsBuilder_.mergeFrom(value); + } else { + toolCallValidResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 18; + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public Builder clearToolCallValidResults() { + if (toolCallValidResultsBuilder_ == null) { + if (evaluationResultsCase_ == 18) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 18) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolCallValidResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder + getToolCallValidResultsBuilder() { + return getToolCallValidResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder + getToolCallValidResultsOrBuilder() { + if ((evaluationResultsCase_ == 18) && (toolCallValidResultsBuilder_ != null)) { + return toolCallValidResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 18) { + return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Tool call metrics.
+     *  Results for tool call valid metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> + getToolCallValidResultsFieldBuilder() { + if (toolCallValidResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 18)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + } + toolCallValidResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 18; + onChanged(); + return toolCallValidResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> + toolNameMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * + * @return Whether the toolNameMatchResults field is set. + */ + @java.lang.Override + public boolean hasToolNameMatchResults() { + return evaluationResultsCase_ == 19; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * + * @return The toolNameMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults getToolNameMatchResults() { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19) { + return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 19) { + return toolNameMatchResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder setToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { + if (toolNameMatchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolNameMatchResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder setToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder builderForValue) { + if (toolNameMatchResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolNameMatchResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder mergeToolNameMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 19) { + toolNameMatchResultsBuilder_.mergeFrom(value); + } else { + toolNameMatchResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 19; + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public Builder clearToolNameMatchResults() { + if (toolNameMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 19) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 19) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolNameMatchResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder + getToolNameMatchResultsBuilder() { + return getToolNameMatchResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder + getToolNameMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 19) && (toolNameMatchResultsBuilder_ != null)) { + return toolNameMatchResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 19) { + return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool name match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> + getToolNameMatchResultsFieldBuilder() { + if (toolNameMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 19)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + } + toolNameMatchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 19; + onChanged(); + return toolNameMatchResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> + toolParameterKeyMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + * + * @return Whether the toolParameterKeyMatchResults field is set. + */ + @java.lang.Override + public boolean hasToolParameterKeyMatchResults() { + return evaluationResultsCase_ == 20; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + * + * @return The toolParameterKeyMatchResults. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + getToolParameterKeyMatchResults() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 20) { + return toolParameterKeyMatchResultsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder setToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(value); + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder setToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder builderForValue) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder mergeToolParameterKeyMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 20) { + toolParameterKeyMatchResultsBuilder_.mergeFrom(value); + } else { + toolParameterKeyMatchResultsBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 20; + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public Builder clearToolParameterKeyMatchResults() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 20) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 20) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + toolParameterKeyMatchResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder + getToolParameterKeyMatchResultsBuilder() { + return getToolParameterKeyMatchResultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder + getToolParameterKeyMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 20) && (toolParameterKeyMatchResultsBuilder_ != null)) { + return toolParameterKeyMatchResultsBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 20) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Results for tool parameter key match  metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> + getToolParameterKeyMatchResultsFieldBuilder() { + if (toolParameterKeyMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 20)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.getDefaultInstance(); + } + toolParameterKeyMatchResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 20; + onChanged(); + return toolParameterKeyMatchResultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> + toolParameterKvMatchResultsBuilder_; + /** + * + * + *
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * * - * @return Whether the questionAnsweringCorrectnessResult field is set. + * @return Whether the toolParameterKvMatchResults field is set. */ @java.lang.Override - public boolean hasQuestionAnsweringCorrectnessResult() { - return evaluationResultsCase_ == 17; + public boolean hasToolParameterKvMatchResults() { + return evaluationResultsCase_ == 21; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * * - * @return The questionAnsweringCorrectnessResult. + * @return The toolParameterKvMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - getQuestionAnsweringCorrectnessResult() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17) { - return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults + getToolParameterKvMatchResults() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 17) { - return questionAnsweringCorrectnessResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 21) { + return toolParameterKvMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder setQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { + public Builder setToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { + if (toolParameterKvMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(value); + toolParameterKvMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder setQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder - builderForValue) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { + public Builder setToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder builderForValue) { + if (toolParameterKvMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(builderForValue.build()); + toolParameterKvMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder mergeQuestionAnsweringCorrectnessResult( - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult value) { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17 + public Builder mergeToolParameterKvMatchResults( + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + != com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -6504,39 +8496,39 @@ public Builder mergeQuestionAnsweringCorrectnessResult( } onChanged(); } else { - if (evaluationResultsCase_ == 17) { - questionAnsweringCorrectnessResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 21) { + toolParameterKvMatchResultsBuilder_.mergeFrom(value); } else { - questionAnsweringCorrectnessResultBuilder_.setMessage(value); + toolParameterKvMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; return this; } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public Builder clearQuestionAnsweringCorrectnessResult() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (evaluationResultsCase_ == 17) { + public Builder clearToolParameterKvMatchResults() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 21) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 17) { + if (evaluationResultsCase_ == 21) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - questionAnsweringCorrectnessResultBuilder_.clear(); + toolParameterKvMatchResultsBuilder_.clear(); } return this; } @@ -6544,196 +8536,197 @@ public Builder clearQuestionAnsweringCorrectnessResult() { * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder - getQuestionAnsweringCorrectnessResultBuilder() { - return getQuestionAnsweringCorrectnessResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder + getToolParameterKvMatchResultsBuilder() { + return getToolParameterKvMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder - getQuestionAnsweringCorrectnessResultOrBuilder() { - if ((evaluationResultsCase_ == 17) && (questionAnsweringCorrectnessResultBuilder_ != null)) { - return questionAnsweringCorrectnessResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder + getToolParameterKvMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 21) && (toolParameterKvMatchResultsBuilder_ != null)) { + return toolParameterKvMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 17) { - return (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + if (evaluationResultsCase_ == 21) { + return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } } /** * * *
-     * Result for question answering correctness metric.
+     * Results for tool parameter key value match metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder> - getQuestionAnsweringCorrectnessResultFieldBuilder() { - if (questionAnsweringCorrectnessResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 17)) { + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> + getToolParameterKvMatchResultsFieldBuilder() { + if (toolParameterKvMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 21)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - .getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } - questionAnsweringCorrectnessResultBuilder_ = + toolParameterKvMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.Builder, - com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 17; + evaluationResultsCase_ = 21; onChanged(); - return questionAnsweringCorrectnessResultBuilder_; + return toolParameterKvMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> - pointwiseMetricResultBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder> + trajectoryExactMatchResultsBuilder_; /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * * - * @return Whether the pointwiseMetricResult field is set. + * @return Whether the trajectoryExactMatchResults field is set. */ @java.lang.Override - public boolean hasPointwiseMetricResult() { - return evaluationResultsCase_ == 27; + public boolean hasTrajectoryExactMatchResults() { + return evaluationResultsCase_ == 31; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * * - * @return The pointwiseMetricResult. + * @return The trajectoryExactMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27) { - return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getTrajectoryExactMatchResults() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 27) { - return pointwiseMetricResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 31) { + return trajectoryExactMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder setPointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { - if (pointwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults value) { + if (trajectoryExactMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - pointwiseMetricResultBuilder_.setMessage(value); + trajectoryExactMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder setPointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder builderForValue) { - if (pointwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder builderForValue) { + if (trajectoryExactMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - pointwiseMetricResultBuilder_.setMessage(builderForValue.build()); + trajectoryExactMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder mergePointwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27 + public Builder mergeTrajectoryExactMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults value) { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -6742,39 +8735,39 @@ public Builder mergePointwiseMetricResult( } onChanged(); } else { - if (evaluationResultsCase_ == 27) { - pointwiseMetricResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 31) { + trajectoryExactMatchResultsBuilder_.mergeFrom(value); } else { - pointwiseMetricResultBuilder_.setMessage(value); + trajectoryExactMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; return this; } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public Builder clearPointwiseMetricResult() { - if (pointwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 27) { + public Builder clearTrajectoryExactMatchResults() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 31) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 27) { + if (evaluationResultsCase_ == 31) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - pointwiseMetricResultBuilder_.clear(); + trajectoryExactMatchResultsBuilder_.clear(); } return this; } @@ -6782,187 +8775,200 @@ public Builder clearPointwiseMetricResult() { * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder - getPointwiseMetricResultBuilder() { - return getPointwiseMetricResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder + getTrajectoryExactMatchResultsBuilder() { + return getTrajectoryExactMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder - getPointwiseMetricResultOrBuilder() { - if ((evaluationResultsCase_ == 27) && (pointwiseMetricResultBuilder_ != null)) { - return pointwiseMetricResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 31) && (trajectoryExactMatchResultsBuilder_ != null)) { + return trajectoryExactMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 27) { - return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_; + if (evaluationResultsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } } /** * * *
-     * Generic metrics.
-     * Result for pointwise metric.
+     * Result for trajectory exact match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 27; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> - getPointwiseMetricResultFieldBuilder() { - if (pointwiseMetricResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 27)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder> + getTrajectoryExactMatchResultsFieldBuilder() { + if (trajectoryExactMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 31)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); } - pointwiseMetricResultBuilder_ = + trajectoryExactMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 27; + evaluationResultsCase_ = 31; onChanged(); - return pointwiseMetricResultBuilder_; + return trajectoryExactMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> - pairwiseMetricResultBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder> + trajectoryInOrderMatchResultsBuilder_; /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * * - * @return Whether the pairwiseMetricResult field is set. + * @return Whether the trajectoryInOrderMatchResults field is set. */ @java.lang.Override - public boolean hasPairwiseMetricResult() { - return evaluationResultsCase_ == 28; + public boolean hasTrajectoryInOrderMatchResults() { + return evaluationResultsCase_ == 32; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * * - * @return The pairwiseMetricResult. + * @return The trajectoryInOrderMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28) { - return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 28) { - return pairwiseMetricResultBuilder_.getMessage(); + if (evaluationResultsCase_ == 32) { + return trajectoryInOrderMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder setPairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { - if (pairwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults value) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - pairwiseMetricResultBuilder_.setMessage(value); + trajectoryInOrderMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder setPairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder builderForValue) { - if (pairwiseMetricResultBuilder_ == null) { + public Builder setTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder builderForValue) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - pairwiseMetricResultBuilder_.setMessage(builderForValue.build()); + trajectoryInOrderMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder mergePairwiseMetricResult( - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28 + public Builder mergeTrajectoryInOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults value) { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.newBuilder( - (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -6970,38 +8976,39 @@ public Builder mergePairwiseMetricResult( } onChanged(); } else { - if (evaluationResultsCase_ == 28) { - pairwiseMetricResultBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 32) { + trajectoryInOrderMatchResultsBuilder_.mergeFrom(value); } else { - pairwiseMetricResultBuilder_.setMessage(value); + trajectoryInOrderMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; return this; } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public Builder clearPairwiseMetricResult() { - if (pairwiseMetricResultBuilder_ == null) { - if (evaluationResultsCase_ == 28) { + public Builder clearTrajectoryInOrderMatchResults() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 32) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 28) { + if (evaluationResultsCase_ == 32) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - pairwiseMetricResultBuilder_.clear(); + trajectoryInOrderMatchResultsBuilder_.clear(); } return this; } @@ -7009,189 +9016,203 @@ public Builder clearPairwiseMetricResult() { * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder - getPairwiseMetricResultBuilder() { - return getPairwiseMetricResultFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder + getTrajectoryInOrderMatchResultsBuilder() { + return getTrajectoryInOrderMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder - getPairwiseMetricResultOrBuilder() { - if ((evaluationResultsCase_ == 28) && (pairwiseMetricResultBuilder_ != null)) { - return pairwiseMetricResultBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 32) && (trajectoryInOrderMatchResultsBuilder_ != null)) { + return trajectoryInOrderMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 28) { - return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_; + if (evaluationResultsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Result for pairwise metric.
+     * Result for trajectory in order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 28; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> - getPairwiseMetricResultFieldBuilder() { - if (pairwiseMetricResultBuilder_ == null) { - if (!(evaluationResultsCase_ == 28)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder> + getTrajectoryInOrderMatchResultsFieldBuilder() { + if (trajectoryInOrderMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 32)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + .getDefaultInstance(); } - pairwiseMetricResultBuilder_ = + trajectoryInOrderMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, - com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 28; + evaluationResultsCase_ = 32; onChanged(); - return pairwiseMetricResultBuilder_; + return trajectoryInOrderMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> - toolCallValidResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder> + trajectoryAnyOrderMatchResultsBuilder_; /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * * - * @return Whether the toolCallValidResults field is set. + * @return Whether the trajectoryAnyOrderMatchResults field is set. */ @java.lang.Override - public boolean hasToolCallValidResults() { - return evaluationResultsCase_ == 18; + public boolean hasTrajectoryAnyOrderMatchResults() { + return evaluationResultsCase_ == 33; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * * - * @return The toolCallValidResults. + * @return The trajectoryAnyOrderMatchResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults getToolCallValidResults() { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18) { - return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 18) { - return toolCallValidResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 33) { + return trajectoryAnyOrderMatchResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder setToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { - if (toolCallValidResultsBuilder_ == null) { + public Builder setTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults value) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolCallValidResultsBuilder_.setMessage(value); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder setToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder builderForValue) { - if (toolCallValidResultsBuilder_ == null) { + public Builder setTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder + builderForValue) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolCallValidResultsBuilder_.setMessage(builderForValue.build()); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder mergeToolCallValidResults( - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults value) { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18 + public Builder mergeTrajectoryAnyOrderMatchResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults value) { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -7199,39 +9220,39 @@ public Builder mergeToolCallValidResults( } onChanged(); } else { - if (evaluationResultsCase_ == 18) { - toolCallValidResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 33) { + trajectoryAnyOrderMatchResultsBuilder_.mergeFrom(value); } else { - toolCallValidResultsBuilder_.setMessage(value); + trajectoryAnyOrderMatchResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; return this; } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public Builder clearToolCallValidResults() { - if (toolCallValidResultsBuilder_ == null) { - if (evaluationResultsCase_ == 18) { + public Builder clearTrajectoryAnyOrderMatchResults() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (evaluationResultsCase_ == 33) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 18) { + if (evaluationResultsCase_ == 33) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolCallValidResultsBuilder_.clear(); + trajectoryAnyOrderMatchResultsBuilder_.clear(); } return this; } @@ -7239,187 +9260,200 @@ public Builder clearToolCallValidResults() { * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder - getToolCallValidResultsBuilder() { - return getToolCallValidResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder + getTrajectoryAnyOrderMatchResultsBuilder() { + return getTrajectoryAnyOrderMatchResultsFieldBuilder().getBuilder(); } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder - getToolCallValidResultsOrBuilder() { - if ((evaluationResultsCase_ == 18) && (toolCallValidResultsBuilder_ != null)) { - return toolCallValidResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder() { + if ((evaluationResultsCase_ == 33) && (trajectoryAnyOrderMatchResultsBuilder_ != null)) { + return trajectoryAnyOrderMatchResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 18) { - return (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_; + if (evaluationResultsCase_ == 33) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } } /** * * *
-     * Tool call metrics.
-     *  Results for tool call valid metric.
+     * Result for trajectory any order match metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolCallValidResults tool_call_valid_results = 18; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder> - getToolCallValidResultsFieldBuilder() { - if (toolCallValidResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 18)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder> + getTrajectoryAnyOrderMatchResultsFieldBuilder() { + if (trajectoryAnyOrderMatchResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 33)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); } - toolCallValidResultsBuilder_ = + trajectoryAnyOrderMatchResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolCallValidResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolCallValidResults) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 18; + evaluationResultsCase_ = 33; onChanged(); - return toolCallValidResultsBuilder_; + return trajectoryAnyOrderMatchResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> - toolNameMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder> + trajectoryPrecisionResultsBuilder_; /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * * - * @return Whether the toolNameMatchResults field is set. + * @return Whether the trajectoryPrecisionResults field is set. */ @java.lang.Override - public boolean hasToolNameMatchResults() { - return evaluationResultsCase_ == 19; + public boolean hasTrajectoryPrecisionResults() { + return evaluationResultsCase_ == 35; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * * - * @return The toolNameMatchResults. + * @return The trajectoryPrecisionResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults getToolNameMatchResults() { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19) { - return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getTrajectoryPrecisionResults() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 19) { - return toolNameMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 35) { + return trajectoryPrecisionResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder setToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { - if (toolNameMatchResultsBuilder_ == null) { + public Builder setTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults value) { + if (trajectoryPrecisionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolNameMatchResultsBuilder_.setMessage(value); + trajectoryPrecisionResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder setToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder builderForValue) { - if (toolNameMatchResultsBuilder_ == null) { + public Builder setTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder builderForValue) { + if (trajectoryPrecisionResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolNameMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectoryPrecisionResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder mergeToolNameMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults value) { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19 + public Builder mergeTrajectoryPrecisionResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults value) { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_) .mergeFrom(value) .buildPartial(); } else { @@ -7427,38 +9461,39 @@ public Builder mergeToolNameMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 19) { - toolNameMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 35) { + trajectoryPrecisionResultsBuilder_.mergeFrom(value); } else { - toolNameMatchResultsBuilder_.setMessage(value); + trajectoryPrecisionResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; return this; } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public Builder clearToolNameMatchResults() { - if (toolNameMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 19) { + public Builder clearTrajectoryPrecisionResults() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (evaluationResultsCase_ == 35) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 19) { + if (evaluationResultsCase_ == 35) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolNameMatchResultsBuilder_.clear(); + trajectoryPrecisionResultsBuilder_.clear(); } return this; } @@ -7466,194 +9501,195 @@ public Builder clearToolNameMatchResults() { * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder - getToolNameMatchResultsBuilder() { - return getToolNameMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder + getTrajectoryPrecisionResultsBuilder() { + return getTrajectoryPrecisionResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder - getToolNameMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 19) && (toolNameMatchResultsBuilder_ != null)) { - return toolNameMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder() { + if ((evaluationResultsCase_ == 35) && (trajectoryPrecisionResultsBuilder_ != null)) { + return trajectoryPrecisionResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 19) { - return (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_; + if (evaluationResultsCase_ == 35) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } } /** * * *
-     * Results for tool name match metric.
+     * Result for trajectory precision metric.
      * 
* - * .google.cloud.aiplatform.v1beta1.ToolNameMatchResults tool_name_match_results = 19; + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder> - getToolNameMatchResultsFieldBuilder() { - if (toolNameMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 19)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder> + getTrajectoryPrecisionResultsFieldBuilder() { + if (trajectoryPrecisionResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 35)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); } - toolNameMatchResultsBuilder_ = + trajectoryPrecisionResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolNameMatchResults) evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 19; + evaluationResultsCase_ = 35; onChanged(); - return toolNameMatchResultsBuilder_; + return trajectoryPrecisionResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> - toolParameterKeyMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder> + trajectoryRecallResultsBuilder_; /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * * - * @return Whether the toolParameterKeyMatchResults field is set. + * @return Whether the trajectoryRecallResults field is set. */ @java.lang.Override - public boolean hasToolParameterKeyMatchResults() { - return evaluationResultsCase_ == 20; + public boolean hasTrajectoryRecallResults() { + return evaluationResultsCase_ == 36; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * * - * @return The toolParameterKeyMatchResults. + * @return The trajectoryRecallResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - getToolParameterKeyMatchResults() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_; + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults + getTrajectoryRecallResults() { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } else { - if (evaluationResultsCase_ == 20) { - return toolParameterKeyMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 36) { + return trajectoryRecallResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder setToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { - if (toolParameterKeyMatchResultsBuilder_ == null) { + public Builder setTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults value) { + if (trajectoryRecallResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(value); + trajectoryRecallResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder setToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder builderForValue) { - if (toolParameterKeyMatchResultsBuilder_ == null) { + public Builder setTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder builderForValue) { + if (trajectoryRecallResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectoryRecallResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder mergeToolParameterKeyMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults value) { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20 + public Builder mergeTrajectoryRecallResults( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults value) { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -7662,39 +9698,39 @@ public Builder mergeToolParameterKeyMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 20) { - toolParameterKeyMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 36) { + trajectoryRecallResultsBuilder_.mergeFrom(value); } else { - toolParameterKeyMatchResultsBuilder_.setMessage(value); + trajectoryRecallResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; return this; } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public Builder clearToolParameterKeyMatchResults() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 20) { + public Builder clearTrajectoryRecallResults() { + if (trajectoryRecallResultsBuilder_ == null) { + if (evaluationResultsCase_ == 36) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 20) { + if (evaluationResultsCase_ == 36) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolParameterKeyMatchResultsBuilder_.clear(); + trajectoryRecallResultsBuilder_.clear(); } return this; } @@ -7702,198 +9738,198 @@ public Builder clearToolParameterKeyMatchResults() { * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder - getToolParameterKeyMatchResultsBuilder() { - return getToolParameterKeyMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder + getTrajectoryRecallResultsBuilder() { + return getTrajectoryRecallResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder - getToolParameterKeyMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 20) && (toolParameterKeyMatchResultsBuilder_ != null)) { - return toolParameterKeyMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder() { + if ((evaluationResultsCase_ == 36) && (trajectoryRecallResultsBuilder_ != null)) { + return trajectoryRecallResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 20) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_; + if (evaluationResultsCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults - .getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key match  metric.
+     * Results for trajectory recall metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder> - getToolParameterKeyMatchResultsFieldBuilder() { - if (toolParameterKeyMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 20)) { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder> + getTrajectoryRecallResultsFieldBuilder() { + if (trajectoryRecallResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 36)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); } - toolParameterKeyMatchResultsBuilder_ = + trajectoryRecallResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResults) - evaluationResults_, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 20; + evaluationResultsCase_ = 36; onChanged(); - return toolParameterKeyMatchResultsBuilder_; + return trajectoryRecallResultsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> - toolParameterKvMatchResultsBuilder_; + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder> + trajectorySingleToolUseResultsBuilder_; /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * * - * @return Whether the toolParameterKvMatchResults field is set. + * @return Whether the trajectorySingleToolUseResults field is set. */ @java.lang.Override - public boolean hasToolParameterKvMatchResults() { - return evaluationResultsCase_ == 21; + public boolean hasTrajectorySingleToolUseResults() { + return evaluationResultsCase_ == 37; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * * - * @return The toolParameterKvMatchResults. + * @return The trajectorySingleToolUseResults. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults - getToolParameterKvMatchResults() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } else { - if (evaluationResultsCase_ == 21) { - return toolParameterKvMatchResultsBuilder_.getMessage(); + if (evaluationResultsCase_ == 37) { + return trajectorySingleToolUseResultsBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder setToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { - if (toolParameterKvMatchResultsBuilder_ == null) { + public Builder setTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults value) { + if (trajectorySingleToolUseResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evaluationResults_ = value; onChanged(); } else { - toolParameterKvMatchResultsBuilder_.setMessage(value); + trajectorySingleToolUseResultsBuilder_.setMessage(value); } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder setToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder builderForValue) { - if (toolParameterKvMatchResultsBuilder_ == null) { + public Builder setTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder + builderForValue) { + if (trajectorySingleToolUseResultsBuilder_ == null) { evaluationResults_ = builderForValue.build(); onChanged(); } else { - toolParameterKvMatchResultsBuilder_.setMessage(builderForValue.build()); + trajectorySingleToolUseResultsBuilder_.setMessage(builderForValue.build()); } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder mergeToolParameterKvMatchResults( - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults value) { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21 + public Builder mergeTrajectorySingleToolUseResults( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults value) { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37 && evaluationResults_ - != com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults .getDefaultInstance()) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.newBuilder( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.newBuilder( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_) .mergeFrom(value) .buildPartial(); @@ -7902,39 +9938,39 @@ public Builder mergeToolParameterKvMatchResults( } onChanged(); } else { - if (evaluationResultsCase_ == 21) { - toolParameterKvMatchResultsBuilder_.mergeFrom(value); + if (evaluationResultsCase_ == 37) { + trajectorySingleToolUseResultsBuilder_.mergeFrom(value); } else { - toolParameterKvMatchResultsBuilder_.setMessage(value); + trajectorySingleToolUseResultsBuilder_.setMessage(value); } } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; return this; } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public Builder clearToolParameterKvMatchResults() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (evaluationResultsCase_ == 21) { + public Builder clearTrajectorySingleToolUseResults() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (evaluationResultsCase_ == 37) { evaluationResultsCase_ = 0; evaluationResults_ = null; onChanged(); } } else { - if (evaluationResultsCase_ == 21) { + if (evaluationResultsCase_ == 37) { evaluationResultsCase_ = 0; evaluationResults_ = null; } - toolParameterKvMatchResultsBuilder_.clear(); + trajectorySingleToolUseResultsBuilder_.clear(); } return this; } @@ -7942,76 +9978,78 @@ public Builder clearToolParameterKvMatchResults() { * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder - getToolParameterKvMatchResultsBuilder() { - return getToolParameterKvMatchResultsFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder + getTrajectorySingleToolUseResultsBuilder() { + return getTrajectorySingleToolUseResultsFieldBuilder().getBuilder(); } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder - getToolParameterKvMatchResultsOrBuilder() { - if ((evaluationResultsCase_ == 21) && (toolParameterKvMatchResultsBuilder_ != null)) { - return toolParameterKvMatchResultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder() { + if ((evaluationResultsCase_ == 37) && (trajectorySingleToolUseResultsBuilder_ != null)) { + return trajectorySingleToolUseResultsBuilder_.getMessageOrBuilder(); } else { - if (evaluationResultsCase_ == 21) { - return (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + if (evaluationResultsCase_ == 37) { + return (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_; } - return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } } /** * * *
-     * Results for tool parameter key value match metric.
+     * Results for trajectory single tool use metric.
      * 
* * - * .google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder> - getToolParameterKvMatchResultsFieldBuilder() { - if (toolParameterKvMatchResultsBuilder_ == null) { - if (!(evaluationResultsCase_ == 21)) { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder> + getTrajectorySingleToolUseResultsFieldBuilder() { + if (trajectorySingleToolUseResultsBuilder_ == null) { + if (!(evaluationResultsCase_ == 37)) { evaluationResults_ = - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); } - toolParameterKvMatchResultsBuilder_ = + trajectorySingleToolUseResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.Builder, - com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) evaluationResults_, getParentForChildren(), isClean()); evaluationResults_ = null; } - evaluationResultsCase_ = 21; + evaluationResultsCase_ = 37; onChanged(); - return toolParameterKvMatchResultsBuilder_; + return trajectorySingleToolUseResultsBuilder_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java index 39d9d273f509..b5d80b490bbe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java @@ -949,6 +949,258 @@ public interface EvaluateInstancesResponseOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder getToolParameterKvMatchResultsOrBuilder(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return Whether the trajectoryExactMatchResults field is set. + */ + boolean hasTrajectoryExactMatchResults(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + * + * @return The trajectoryExactMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults getTrajectoryExactMatchResults(); + /** + * + * + *
+   * Result for trajectory exact match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults trajectory_exact_match_results = 31; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder + getTrajectoryExactMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return Whether the trajectoryInOrderMatchResults field is set. + */ + boolean hasTrajectoryInOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + * + * @return The trajectoryInOrderMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getTrajectoryInOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory in order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder + getTrajectoryInOrderMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return Whether the trajectoryAnyOrderMatchResults field is set. + */ + boolean hasTrajectoryAnyOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + * + * @return The trajectoryAnyOrderMatchResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getTrajectoryAnyOrderMatchResults(); + /** + * + * + *
+   * Result for trajectory any order match metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder + getTrajectoryAnyOrderMatchResultsOrBuilder(); + + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return Whether the trajectoryPrecisionResults field is set. + */ + boolean hasTrajectoryPrecisionResults(); + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + * + * @return The trajectoryPrecisionResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults getTrajectoryPrecisionResults(); + /** + * + * + *
+   * Result for trajectory precision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults trajectory_precision_results = 35; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder + getTrajectoryPrecisionResultsOrBuilder(); + + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return Whether the trajectoryRecallResults field is set. + */ + boolean hasTrajectoryRecallResults(); + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + * + * @return The trajectoryRecallResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getTrajectoryRecallResults(); + /** + * + * + *
+   * Results for trajectory recall metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallResults trajectory_recall_results = 36; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder + getTrajectoryRecallResultsOrBuilder(); + + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return Whether the trajectorySingleToolUseResults field is set. + */ + boolean hasTrajectorySingleToolUseResults(); + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + * + * @return The trajectorySingleToolUseResults. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getTrajectorySingleToolUseResults(); + /** + * + * + *
+   * Results for trajectory single tool use metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder + getTrajectorySingleToolUseResultsOrBuilder(); + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.EvaluationResultsCase getEvaluationResultsCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java index 65ac77825b9d..07937db7d1fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java @@ -432,6 +432,134 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ToolParameterKVMatchMetricValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ToolParameterKVMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -446,7 +574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\"\313\021\n\030EvaluateInstancesRequest\022M\n\021e" + + ".proto\"\252\026\n\030EvaluateInstancesRequest\022M\n\021e" + "xact_match_input\030\002 \001(\01320.google.cloud.ai" + "platform.v1beta1.ExactMatchInputH\000\022@\n\nbl" + "eu_input\030\003 \001(\0132*.google.cloud.aiplatform" @@ -500,400 +628,540 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "form.v1beta1.ToolParameterKeyMatchInputH" + "\000\022c\n\035tool_parameter_kv_match_input\030\026 \001(\013" + "2:.google.cloud.aiplatform.v1beta1.ToolP" - + "arameterKVMatchInputH\000\022;\n\010location\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ionB\017\n\rmetric_inputs\"\320\021\n\031EvaluateInstanc" - + "esResponse\022Q\n\023exact_match_results\030\001 \001(\0132" - + "2.google.cloud.aiplatform.v1beta1.ExactM" - + "atchResultsH\000\022D\n\014bleu_results\030\002 \001(\0132,.go" - + "ogle.cloud.aiplatform.v1beta1.BleuResult" - + "sH\000\022F\n\rrouge_results\030\003 \001(\0132-.google.clou" - + "d.aiplatform.v1beta1.RougeResultsH\000\022H\n\016f" - + "luency_result\030\004 \001(\0132..google.cloud.aipla" - + "tform.v1beta1.FluencyResultH\000\022L\n\020coheren" - + "ce_result\030\005 \001(\01320.google.cloud.aiplatfor" - + "m.v1beta1.CoherenceResultH\000\022F\n\rsafety_re" - + "sult\030\007 \001(\0132-.google.cloud.aiplatform.v1b" - + "eta1.SafetyResultH\000\022R\n\023groundedness_resu" - + "lt\030\010 \001(\01323.google.cloud.aiplatform.v1bet" - + "a1.GroundednessResultH\000\022P\n\022fulfillment_r" - + "esult\030\013 \001(\01322.google.cloud.aiplatform.v1" - + "beta1.FulfillmentResultH\000\022c\n\034summarizati" - + "on_quality_result\030\006 \001(\0132;.google.cloud.a" - + "iplatform.v1beta1.SummarizationQualityRe" - + "sultH\000\022t\n%pairwise_summarization_quality" - + "_result\030\026 \001(\0132C.google.cloud.aiplatform." - + "v1beta1.PairwiseSummarizationQualityResu" - + "ltH\000\022k\n summarization_helpfulness_result" - + "\030\r \001(\0132?.google.cloud.aiplatform.v1beta1" - + ".SummarizationHelpfulnessResultH\000\022g\n\036sum" - + "marization_verbosity_result\030\016 \001(\0132=.goog" - + "le.cloud.aiplatform.v1beta1.Summarizatio" - + "nVerbosityResultH\000\022l\n!question_answering" - + "_quality_result\030\t \001(\0132?.google.cloud.aip" - + "latform.v1beta1.QuestionAnsweringQuality" - + "ResultH\000\022}\n*pairwise_question_answering_" - + "quality_result\030\027 \001(\0132G.google.cloud.aipl" - + "atform.v1beta1.PairwiseQuestionAnswering" - + "QualityResultH\000\022p\n#question_answering_re" - + "levance_result\030\017 \001(\0132A.google.cloud.aipl" - + "atform.v1beta1.QuestionAnsweringRelevanc" - + "eResultH\000\022t\n%question_answering_helpfuln" - + "ess_result\030\020 \001(\0132C.google.cloud.aiplatfo" - + "rm.v1beta1.QuestionAnsweringHelpfulnessR" - + "esultH\000\022t\n%question_answering_correctnes" - + "s_result\030\021 \001(\0132C.google.cloud.aiplatform" - + ".v1beta1.QuestionAnsweringCorrectnessRes" - + "ultH\000\022Y\n\027pointwise_metric_result\030\033 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.Pointwi" - + "seMetricResultH\000\022W\n\026pairwise_metric_resu" - + "lt\030\034 \001(\01325.google.cloud.aiplatform.v1bet" - + "a1.PairwiseMetricResultH\000\022X\n\027tool_call_v" - + "alid_results\030\022 \001(\01325.google.cloud.aiplat" - + "form.v1beta1.ToolCallValidResultsH\000\022X\n\027t" - + "ool_name_match_results\030\023 \001(\01325.google.cl" - + "oud.aiplatform.v1beta1.ToolNameMatchResu" - + "ltsH\000\022i\n tool_parameter_key_match_result" - + "s\030\024 \001(\0132=.google.cloud.aiplatform.v1beta" - + "1.ToolParameterKeyMatchResultsH\000\022g\n\037tool" - + "_parameter_kv_match_results\030\025 \001(\0132<.goog" - + "le.cloud.aiplatform.v1beta1.ToolParamete" - + "rKVMatchResultsH\000B\024\n\022evaluation_results\"" - + "\251\001\n\017ExactMatchInput\022I\n\013metric_spec\030\001 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.Exact" - + "MatchSpecB\003\340A\002\022K\n\tinstances\030\002 \003(\01323.goog" - + "le.cloud.aiplatform.v1beta1.ExactMatchIn" - + "stanceB\003\340A\002\"l\n\022ExactMatchInstance\022\034\n\npre" - + "diction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001" - + "(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_referenc" - + "e\"\020\n\016ExactMatchSpec\"s\n\021ExactMatchResults" - + "\022^\n\031exact_match_metric_values\030\001 \003(\01326.go" - + "ogle.cloud.aiplatform.v1beta1.ExactMatch" - + "MetricValueB\003\340A\003\":\n\025ExactMatchMetricValu" - + "e\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\227\001\n" - + "\tBleuInput\022C\n\013metric_spec\030\001 \001(\0132).google" - + ".cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022" - + "E\n\tinstances\030\002 \003(\0132-.google.cloud.aiplat" - + "form.v1beta1.BleuInstanceB\003\340A\002\"f\n\014BleuIn" - + "stance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\t" - + "reference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_prediction" - + "B\014\n\n_reference\",\n\010BleuSpec\022 \n\023use_effect" - + "ive_order\030\001 \001(\010B\003\340A\001\"`\n\013BleuResults\022Q\n\022b" - + "leu_metric_values\030\001 \003(\01320.google.cloud.a" - + "iplatform.v1beta1.BleuMetricValueB\003\340A\003\"4" - + "\n\017BleuMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001B\010\n\006_score\"\232\001\n\nRougeInput\022D\n\013metric_sp" - + "ec\030\001 \001(\0132*.google.cloud.aiplatform.v1bet" - + "a1.RougeSpecB\003\340A\002\022F\n\tinstances\030\002 \003(\0132..g" - + "oogle.cloud.aiplatform.v1beta1.RougeInst" - + "anceB\003\340A\002\"g\n\rRougeInstance\022\034\n\nprediction" - + "\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002" - + "H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\\\n\tRo" - + "ugeSpec\022\027\n\nrouge_type\030\001 \001(\tB\003\340A\001\022\030\n\013use_" - + "stemmer\030\002 \001(\010B\003\340A\001\022\034\n\017split_summaries\030\003 " - + "\001(\010B\003\340A\001\"c\n\014RougeResults\022S\n\023rouge_metric" - + "_values\030\001 \003(\01321.google.cloud.aiplatform." - + "v1beta1.RougeMetricValueB\003\340A\003\"5\n\020RougeMe" - + "tricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_s" - + "core\"\245\001\n\016CoherenceInput\022H\n\013metric_spec\030\001" - + " \001(\0132..google.cloud.aiplatform.v1beta1.C" - + "oherenceSpecB\003\340A\002\022I\n\010instance\030\002 \001(\01322.go" - + "ogle.cloud.aiplatform.v1beta1.CoherenceI" - + "nstanceB\003\340A\002\"@\n\021CoherenceInstance\022\034\n\npre" - + "diction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"%" - + "\n\rCoherenceSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"{\n" - + "\017CoherenceResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001" - + "\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidenc" - + "e\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confiden" - + "ce\"\237\001\n\014FluencyInput\022F\n\013metric_spec\030\001 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.Fluen" - + "cySpecB\003\340A\002\022G\n\010instance\030\002 \001(\01320.google.c" - + "loud.aiplatform.v1beta1.FluencyInstanceB" - + "\003\340A\002\">\n\017FluencyInstance\022\034\n\nprediction\030\001 " - + "\001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"#\n\013FluencyS" - + "pec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"y\n\rFluencyResu" - + "lt\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanati" - + "on\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001" - + "\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\234\001\n\013SafetyI" - + "nput\022E\n\013metric_spec\030\001 \001(\0132+.google.cloud" - + ".aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n\010i" - + "nstance\030\002 \001(\0132/.google.cloud.aiplatform." - + "v1beta1.SafetyInstanceB\003\340A\002\"=\n\016SafetyIns" - + "tance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_" - + "prediction\"\"\n\nSafetySpec\022\024\n\007version\030\001 \001(" - + "\005B\003\340A\001\"x\n\014SafetyResult\022\027\n\005score\030\001 \001(\002B\003\340" - + "A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\ncon" - + "fidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_co" - + "nfidence\"\256\001\n\021GroundednessInput\022K\n\013metric" - + "_spec\030\001 \001(\01321.google.cloud.aiplatform.v1" - + "beta1.GroundednessSpecB\003\340A\002\022L\n\010instance\030" - + "\002 \001(\01325.google.cloud.aiplatform.v1beta1." - + "GroundednessInstanceB\003\340A\002\"j\n\024Groundednes" - + "sInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" - + "\031\n\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictio" - + "nB\n\n\010_context\"(\n\020GroundednessSpec\022\024\n\007ver" - + "sion\030\001 \001(\005B\003\340A\001\"~\n\022GroundednessResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 " - + "\001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010" - + "\n\006_scoreB\r\n\013_confidence\"\253\001\n\020FulfillmentI" - + "nput\022J\n\013metric_spec\030\001 \001(\01320.google.cloud" - + ".aiplatform.v1beta1.FulfillmentSpecB\003\340A\002" - + "\022K\n\010instance\030\002 \001(\01324.google.cloud.aiplat" - + "form.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" - + "\023FulfillmentInstance\022\034\n\nprediction\030\001 \001(\t" - + "B\003\340A\002H\000\210\001\001\022\035\n\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001" - + "\001B\r\n\013_predictionB\016\n\014_instruction\"\'\n\017Fulf" - + "illmentSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"}\n\021Ful" - + "fillmentResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022" + + "arameterKVMatchInputH\000\022b\n\034trajectory_exa" + + "ct_match_input\030! \001(\0132:.google.cloud.aipl" + + "atform.v1beta1.TrajectoryExactMatchInput" + + "H\000\022g\n\037trajectory_in_order_match_input\030\" " + + "\001(\0132<.google.cloud.aiplatform.v1beta1.Tr" + + "ajectoryInOrderMatchInputH\000\022i\n trajector" + + "y_any_order_match_input\030# \001(\0132=.google.c" + + "loud.aiplatform.v1beta1.TrajectoryAnyOrd" + + "erMatchInputH\000\022_\n\032trajectory_precision_i" + + "nput\030% \001(\01329.google.cloud.aiplatform.v1b" + + "eta1.TrajectoryPrecisionInputH\000\022Y\n\027traje" + + "ctory_recall_input\030& \001(\01326.google.cloud." + + "aiplatform.v1beta1.TrajectoryRecallInput" + + "H\000\022i\n trajectory_single_tool_use_input\030\'" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.T" + + "rajectorySingleToolUseInputH\000\022;\n\010locatio" + + "n\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/LocationB\017\n\rmetric_inputs\"\307\026\n\031Evaluate" + + "InstancesResponse\022Q\n\023exact_match_results" + + "\030\001 \001(\01322.google.cloud.aiplatform.v1beta1" + + ".ExactMatchResultsH\000\022D\n\014bleu_results\030\002 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Ble" + + "uResultsH\000\022F\n\rrouge_results\030\003 \001(\0132-.goog" + + "le.cloud.aiplatform.v1beta1.RougeResults" + + "H\000\022H\n\016fluency_result\030\004 \001(\0132..google.clou" + + "d.aiplatform.v1beta1.FluencyResultH\000\022L\n\020" + + "coherence_result\030\005 \001(\01320.google.cloud.ai" + + "platform.v1beta1.CoherenceResultH\000\022F\n\rsa" + + "fety_result\030\007 \001(\0132-.google.cloud.aiplatf" + + "orm.v1beta1.SafetyResultH\000\022R\n\023groundedne" + + "ss_result\030\010 \001(\01323.google.cloud.aiplatfor" + + "m.v1beta1.GroundednessResultH\000\022P\n\022fulfil" + + "lment_result\030\013 \001(\01322.google.cloud.aiplat" + + "form.v1beta1.FulfillmentResultH\000\022c\n\034summ" + + "arization_quality_result\030\006 \001(\0132;.google." + + "cloud.aiplatform.v1beta1.SummarizationQu" + + "alityResultH\000\022t\n%pairwise_summarization_" + + "quality_result\030\026 \001(\0132C.google.cloud.aipl" + + "atform.v1beta1.PairwiseSummarizationQual" + + "ityResultH\000\022k\n summarization_helpfulness" + + "_result\030\r \001(\0132?.google.cloud.aiplatform." + + "v1beta1.SummarizationHelpfulnessResultH\000" + + "\022g\n\036summarization_verbosity_result\030\016 \001(\013" + + "2=.google.cloud.aiplatform.v1beta1.Summa" + + "rizationVerbosityResultH\000\022l\n!question_an" + + "swering_quality_result\030\t \001(\0132?.google.cl" + + "oud.aiplatform.v1beta1.QuestionAnswering" + + "QualityResultH\000\022}\n*pairwise_question_ans" + + "wering_quality_result\030\027 \001(\0132G.google.clo" + + "ud.aiplatform.v1beta1.PairwiseQuestionAn" + + "sweringQualityResultH\000\022p\n#question_answe" + + "ring_relevance_result\030\017 \001(\0132A.google.clo" + + "ud.aiplatform.v1beta1.QuestionAnsweringR" + + "elevanceResultH\000\022t\n%question_answering_h" + + "elpfulness_result\030\020 \001(\0132C.google.cloud.a" + + "iplatform.v1beta1.QuestionAnsweringHelpf" + + "ulnessResultH\000\022t\n%question_answering_cor" + + "rectness_result\030\021 \001(\0132C.google.cloud.aip" + + "latform.v1beta1.QuestionAnsweringCorrect" + + "nessResultH\000\022Y\n\027pointwise_metric_result\030" + + "\033 \001(\01326.google.cloud.aiplatform.v1beta1." + + "PointwiseMetricResultH\000\022W\n\026pairwise_metr" + + "ic_result\030\034 \001(\01325.google.cloud.aiplatfor" + + "m.v1beta1.PairwiseMetricResultH\000\022X\n\027tool" + + "_call_valid_results\030\022 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.ToolCallValidResults" + + "H\000\022X\n\027tool_name_match_results\030\023 \001(\01325.go" + + "ogle.cloud.aiplatform.v1beta1.ToolNameMa" + + "tchResultsH\000\022i\n tool_parameter_key_match" + + "_results\030\024 \001(\0132=.google.cloud.aiplatform" + + ".v1beta1.ToolParameterKeyMatchResultsH\000\022" + + "g\n\037tool_parameter_kv_match_results\030\025 \001(\013" + + "2<.google.cloud.aiplatform.v1beta1.ToolP" + + "arameterKVMatchResultsH\000\022f\n\036trajectory_e" + + "xact_match_results\030\037 \001(\0132<.google.cloud." + + "aiplatform.v1beta1.TrajectoryExactMatchR" + + "esultsH\000\022k\n!trajectory_in_order_match_re" + + "sults\030 \001(\0132>.google.cloud.aiplatform.v1" + + "beta1.TrajectoryInOrderMatchResultsH\000\022m\n" + + "\"trajectory_any_order_match_results\030! \001(" + + "\0132?.google.cloud.aiplatform.v1beta1.Traj" + + "ectoryAnyOrderMatchResultsH\000\022c\n\034trajecto" + + "ry_precision_results\030# \001(\0132;.google.clou" + + "d.aiplatform.v1beta1.TrajectoryPrecision" + + "ResultsH\000\022]\n\031trajectory_recall_results\030$" + + " \001(\01328.google.cloud.aiplatform.v1beta1.T" + + "rajectoryRecallResultsH\000\022m\n\"trajectory_s" + + "ingle_tool_use_results\030% \001(\0132?.google.cl" + + "oud.aiplatform.v1beta1.TrajectorySingleT" + + "oolUseResultsH\000B\024\n\022evaluation_results\"\251\001" + + "\n\017ExactMatchInput\022I\n\013metric_spec\030\001 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.ExactMa" + + "tchSpecB\003\340A\002\022K\n\tinstances\030\002 \003(\01323.google" + + ".cloud.aiplatform.v1beta1.ExactMatchInst" + + "anceB\003\340A\002\"l\n\022ExactMatchInstance\022\034\n\npredi" + + "ction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\t" + + "B\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"" + + "\020\n\016ExactMatchSpec\"s\n\021ExactMatchResults\022^" + + "\n\031exact_match_metric_values\030\001 \003(\01326.goog" + + "le.cloud.aiplatform.v1beta1.ExactMatchMe" + + "tricValueB\003\340A\003\":\n\025ExactMatchMetricValue\022" + + "\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\227\001\n\tB" + + "leuInput\022C\n\013metric_spec\030\001 \001(\0132).google.c" + + "loud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" + + "\tinstances\030\002 \003(\0132-.google.cloud.aiplatfo" + + "rm.v1beta1.BleuInstanceB\003\340A\002\"f\n\014BleuInst" + + "ance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tre" + + "ference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014" + + "\n\n_reference\",\n\010BleuSpec\022 \n\023use_effectiv" + + "e_order\030\001 \001(\010B\003\340A\001\"`\n\013BleuResults\022Q\n\022ble" + + "u_metric_values\030\001 \003(\01320.google.cloud.aip" + + "latform.v1beta1.BleuMetricValueB\003\340A\003\"4\n\017" + + "BleuMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "B\010\n\006_score\"\232\001\n\nRougeInput\022D\n\013metric_spec" + + "\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1" + + ".RougeSpecB\003\340A\002\022F\n\tinstances\030\002 \003(\0132..goo" + + "gle.cloud.aiplatform.v1beta1.RougeInstan" + + "ceB\003\340A\002\"g\n\rRougeInstance\022\034\n\nprediction\030\001" + + " \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001" + + "\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\\\n\tRoug" + + "eSpec\022\027\n\nrouge_type\030\001 \001(\tB\003\340A\001\022\030\n\013use_st" + + "emmer\030\002 \001(\010B\003\340A\001\022\034\n\017split_summaries\030\003 \001(" + + "\010B\003\340A\001\"c\n\014RougeResults\022S\n\023rouge_metric_v" + + "alues\030\001 \003(\01321.google.cloud.aiplatform.v1" + + "beta1.RougeMetricValueB\003\340A\003\"5\n\020RougeMetr" + + "icValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_sco" + + "re\"\245\001\n\016CoherenceInput\022H\n\013metric_spec\030\001 \001" + + "(\0132..google.cloud.aiplatform.v1beta1.Coh" + + "erenceSpecB\003\340A\002\022I\n\010instance\030\002 \001(\01322.goog" + + "le.cloud.aiplatform.v1beta1.CoherenceIns" + + "tanceB\003\340A\002\"@\n\021CoherenceInstance\022\034\n\npredi" + + "ction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"%\n\r" + + "CoherenceSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"{\n\017C" + + "oherenceResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022" + "\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030" + "\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence" - + "\"\306\001\n\031SummarizationQualityInput\022S\n\013metric" - + "_spec\030\001 \001(\01329.google.cloud.aiplatform.v1" - + "beta1.SummarizationQualitySpecB\003\340A\002\022T\n\010i" - + "nstance\030\002 \001(\0132=.google.cloud.aiplatform." - + "v1beta1.SummarizationQualityInstanceB\003\340A" - + "\002\"\314\001\n\034SummarizationQualityInstance\022\034\n\npr" - + "ediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 " - + "\001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001" - + "\022\035\n\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_pred" - + "ictionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_ins" - + "truction\"L\n\030SummarizationQualitySpec\022\032\n\r" - + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(" - + "\005B\003\340A\001\"\206\001\n\032SummarizationQualityResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 " - + "\001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010" - + "\n\006_scoreB\r\n\013_confidence\"\336\001\n!PairwiseSumm" - + "arizationQualityInput\022[\n\013metric_spec\030\001 \001" - + "(\0132A.google.cloud.aiplatform.v1beta1.Pai" - + "rwiseSummarizationQualitySpecB\003\340A\002\022\\\n\010in" - + "stance\030\002 \001(\0132E.google.cloud.aiplatform.v" - + "1beta1.PairwiseSummarizationQualityInsta" - + "nceB\003\340A\002\"\223\002\n$PairwiseSummarizationQualit" - + "yInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" - + "%\n\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033" - + "\n\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007context\030\004" - + " \001(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003\340A\002" - + "H\004\210\001\001B\r\n\013_predictionB\026\n\024_baseline_predic" + + "\"\237\001\n\014FluencyInput\022F\n\013metric_spec\030\001 \001(\0132," + + ".google.cloud.aiplatform.v1beta1.Fluency" + + "SpecB\003\340A\002\022G\n\010instance\030\002 \001(\01320.google.clo" + + "ud.aiplatform.v1beta1.FluencyInstanceB\003\340" + + "A\002\">\n\017FluencyInstance\022\034\n\nprediction\030\001 \001(" + + "\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"#\n\013FluencySpe" + + "c\022\024\n\007version\030\001 \001(\005B\003\340A\001\"y\n\rFluencyResult" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation" + + "\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001" + + "\001B\010\n\006_scoreB\r\n\013_confidence\"\234\001\n\013SafetyInp" + + "ut\022E\n\013metric_spec\030\001 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.SafetySpecB\003\340A\002\022F\n\010ins" + + "tance\030\002 \001(\0132/.google.cloud.aiplatform.v1" + + "beta1.SafetyInstanceB\003\340A\002\"=\n\016SafetyInsta" + + "nce\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_pr" + + "ediction\"\"\n\nSafetySpec\022\024\n\007version\030\001 \001(\005B" + + "\003\340A\001\"x\n\014SafetyResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfi" + + "dence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_conf" + + "idence\"\256\001\n\021GroundednessInput\022K\n\013metric_s" + + "pec\030\001 \001(\01321.google.cloud.aiplatform.v1be" + + "ta1.GroundednessSpecB\003\340A\002\022L\n\010instance\030\002 " + + "\001(\01325.google.cloud.aiplatform.v1beta1.Gr" + + "oundednessInstanceB\003\340A\002\"j\n\024GroundednessI" + + "nstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n" + + "\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB" + + "\n\n\010_context\"(\n\020GroundednessSpec\022\024\n\007versi" + + "on\030\001 \001(\005B\003\340A\001\"~\n\022GroundednessResult\022\027\n\005s" + + "core\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(" + + "\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006" + + "_scoreB\r\n\013_confidence\"\253\001\n\020FulfillmentInp" + + "ut\022J\n\013metric_spec\030\001 \001(\01320.google.cloud.a" + + "iplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K" + + "\n\010instance\030\002 \001(\01324.google.cloud.aiplatfo" + + "rm.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n\023F" + + "ulfillmentInstance\022\034\n\nprediction\030\001 \001(\tB\003" + + "\340A\002H\000\210\001\001\022\035\n\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001\001B" + + "\r\n\013_predictionB\016\n\014_instruction\"\'\n\017Fulfil" + + "lmentSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"}\n\021Fulfi" + + "llmentResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 " + + "\001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\306" + + "\001\n\031SummarizationQualityInput\022S\n\013metric_s" + + "pec\030\001 \001(\01329.google.cloud.aiplatform.v1be" + + "ta1.SummarizationQualitySpecB\003\340A\002\022T\n\010ins" + + "tance\030\002 \001(\0132=.google.cloud.aiplatform.v1" + + "beta1.SummarizationQualityInstanceB\003\340A\002\"" + + "\314\001\n\034SummarizationQualityInstance\022\034\n\npred" + + "iction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(" + + "\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035" + + "\n\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predic" + "tionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instr" - + "uction\"T\n PairwiseSummarizationQualitySp" - + "ec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007versio" - + "n\030\002 \001(\005B\003\340A\001\"\272\001\n\"PairwiseSummarizationQu" - + "alityResult\022M\n\017pairwise_choice\030\001 \001(\0162/.g" - + "oogle.cloud.aiplatform.v1beta1.PairwiseC" - + "hoiceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" - + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_confidenc" - + "e\"\322\001\n\035SummarizationHelpfulnessInput\022W\n\013m" + + "uction\"L\n\030SummarizationQualitySpec\022\032\n\rus" + + "e_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B" + + "\003\340A\001\"\206\001\n\032SummarizationQualityResult\022\027\n\005s" + + "core\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(" + + "\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006" + + "_scoreB\r\n\013_confidence\"\336\001\n!PairwiseSummar" + + "izationQualityInput\022[\n\013metric_spec\030\001 \001(\013" + + "2A.google.cloud.aiplatform.v1beta1.Pairw" + + "iseSummarizationQualitySpecB\003\340A\002\022\\\n\010inst" + + "ance\030\002 \001(\0132E.google.cloud.aiplatform.v1b" + + "eta1.PairwiseSummarizationQualityInstanc" + + "eB\003\340A\002\"\223\002\n$PairwiseSummarizationQualityI" + + "nstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n\t" + + "reference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007context\030\004 \001" + + "(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003\340A\002H\004" + + "\210\001\001B\r\n\013_predictionB\026\n\024_baseline_predicti" + + "onB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instruc" + + "tion\"T\n PairwiseSummarizationQualitySpec" + + "\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030" + + "\002 \001(\005B\003\340A\001\"\272\001\n\"PairwiseSummarizationQual" + + "ityResult\022M\n\017pairwise_choice\030\001 \001(\0162/.goo" + + "gle.cloud.aiplatform.v1beta1.PairwiseCho" + + "iceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nco" + + "nfidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_confidence\"" + + "\322\001\n\035SummarizationHelpfulnessInput\022W\n\013met" + + "ric_spec\030\001 \001(\0132=.google.cloud.aiplatform" + + ".v1beta1.SummarizationHelpfulnessSpecB\003\340" + + "A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.aipl" + + "atform.v1beta1.SummarizationHelpfulnessI" + + "nstanceB\003\340A\002\"\320\001\n SummarizationHelpfulnes" + + "sInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022" + + "\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030" + + "\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A" + + "\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_" + + "contextB\016\n\014_instruction\"P\n\034Summarization" + + "HelpfulnessSpec\022\032\n\ruse_reference\030\001 \001(\010B\003" + + "\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Summarizat" + + "ionHelpfulnessResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfi" + + "dence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_conf" + + "idence\"\314\001\n\033SummarizationVerbosityInput\022U" + + "\n\013metric_spec\030\001 \001(\0132;.google.cloud.aipla" + + "tform.v1beta1.SummarizationVerbositySpec" + + "B\003\340A\002\022V\n\010instance\030\002 \001(\0132?.google.cloud.a" + + "iplatform.v1beta1.SummarizationVerbosity" + + "InstanceB\003\340A\002\"\316\001\n\036SummarizationVerbosity" + + "Instance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033" + + "\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003" + + " \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A\001" + + "H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_c" + + "ontextB\016\n\014_instruction\"N\n\032SummarizationV" + + "erbositySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001" + + "\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\210\001\n\034Summarization" + + "VerbosityResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence" + + "\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidenc" + + "e\"\322\001\n\035QuestionAnsweringQualityInput\022W\n\013m" + "etric_spec\030\001 \001(\0132=.google.cloud.aiplatfo" - + "rm.v1beta1.SummarizationHelpfulnessSpecB" + + "rm.v1beta1.QuestionAnsweringQualitySpecB" + "\003\340A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.ai" - + "platform.v1beta1.SummarizationHelpfulnes" - + "sInstanceB\003\340A\002\"\320\001\n SummarizationHelpfuln" - + "essInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001" + + "platform.v1beta1.QuestionAnsweringQualit" + + "yInstanceB\003\340A\002\"\320\001\n QuestionAnsweringQual" + + "ityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001" + "\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007contex" + "t\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003" - + "\340A\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n" - + "\010_contextB\016\n\014_instruction\"P\n\034Summarizati" - + "onHelpfulnessSpec\022\032\n\ruse_reference\030\001 \001(\010" - + "B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Summariz" - + "ationHelpfulnessResult\022\027\n\005score\030\001 \001(\002B\003\340" + + "\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n" + + "\010_contextB\016\n\014_instruction\"P\n\034QuestionAns" + + "weringQualitySpec\022\032\n\ruse_reference\030\001 \001(\010" + + "B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Question" + + "AnsweringQualityResult\022\027\n\005score\030\001 \001(\002B\003\340" + "A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\ncon" + "fidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_co" - + "nfidence\"\314\001\n\033SummarizationVerbosityInput" - + "\022U\n\013metric_spec\030\001 \001(\0132;.google.cloud.aip" - + "latform.v1beta1.SummarizationVerbositySp" - + "ecB\003\340A\002\022V\n\010instance\030\002 \001(\0132?.google.cloud" - + ".aiplatform.v1beta1.SummarizationVerbosi" - + "tyInstanceB\003\340A\002\"\316\001\n\036SummarizationVerbosi" + + "nfidence\"\352\001\n%PairwiseQuestionAnsweringQu" + + "alityInput\022_\n\013metric_spec\030\001 \001(\0132E.google" + + ".cloud.aiplatform.v1beta1.PairwiseQuesti" + + "onAnsweringQualitySpecB\003\340A\002\022`\n\010instance\030" + + "\002 \001(\0132I.google.cloud.aiplatform.v1beta1." + + "PairwiseQuestionAnsweringQualityInstance" + + "B\003\340A\002\"\227\002\n(PairwiseQuestionAnsweringQuali" + "tyInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001" - + "\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context" - + "\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340" - + "A\001H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010" - + "_contextB\016\n\014_instruction\"N\n\032Summarizatio" - + "nVerbositySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340" - + "A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\210\001\n\034Summarizati" - + "onVerbosityResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfiden" - + "ce\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confide" - + "nce\"\322\001\n\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.google.cloud.aiplat" - + "form.v1beta1.QuestionAnsweringQualitySpe" - + "cB\003\340A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud." - + "aiplatform.v1beta1.QuestionAnsweringQual" - + "ityInstanceB\003\340A\002\"\320\001\n QuestionAnsweringQu" - + "alityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000" - + "\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007cont" - + "ext\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n\013instruction\030\004 \001(\t" - + "B\003\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB" - + "\n\n\010_contextB\016\n\014_instruction\"P\n\034QuestionA" - + "nsweringQualitySpec\022\032\n\ruse_reference\030\001 \001" - + "(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036Questi" - + "onAnsweringQualityResult\022\027\n\005score\030\001 \001(\002B" - + "\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nc" - + "onfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_" - + "confidence\"\352\001\n%PairwiseQuestionAnswering" - + "QualityInput\022_\n\013metric_spec\030\001 \001(\0132E.goog" - + "le.cloud.aiplatform.v1beta1.PairwiseQues" - + "tionAnsweringQualitySpecB\003\340A\002\022`\n\010instanc" - + "e\030\002 \001(\0132I.google.cloud.aiplatform.v1beta" - + "1.PairwiseQuestionAnsweringQualityInstan" - + "ceB\003\340A\002\"\227\002\n(PairwiseQuestionAnsweringQua" - + "lityInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210" - + "\001\001\022%\n\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001" - + "\001\022\033\n\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n\007contex" - + "t\030\004 \001(\tB\003\340A\002H\003\210\001\001\022\035\n\013instruction\030\005 \001(\tB\003" - + "\340A\002H\004\210\001\001B\r\n\013_predictionB\026\n\024_baseline_pre" - + "dictionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_in" - + "struction\"X\n$PairwiseQuestionAnsweringQu" - + "alitySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n" - + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n&PairwiseQuestion" - + "AnsweringQualityResult\022M\n\017pairwise_choic" - + "e\030\001 \001(\0162/.google.cloud.aiplatform.v1beta" - + "1.PairwiseChoiceB\003\340A\003\022\030\n\013explanation\030\002 \001" - + "(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" - + "\013_confidence\"\330\001\n\037QuestionAnsweringReleva" - + "nceInput\022Y\n\013metric_spec\030\001 \001(\0132?.google.c" - + "loud.aiplatform.v1beta1.QuestionAnswerin" - + "gRelevanceSpecB\003\340A\002\022Z\n\010instance\030\002 \001(\0132C." - + "google.cloud.aiplatform.v1beta1.Question" - + "AnsweringRelevanceInstanceB\003\340A\002\"\322\001\n\"Ques" - + "tionAnsweringRelevanceInstance\022\034\n\npredic" - + "tion\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB" - + "\003\340A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013" - + "instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predicti" - + "onB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instruc" - + "tion\"R\n\036QuestionAnsweringRelevanceSpec\022\032" - + "\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 " - + "\001(\005B\003\340A\001\"\214\001\n QuestionAnsweringRelevanceR" - + "esult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explan" - + "ation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A" - + "\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\336\001\n!Ques" - + "tionAnsweringHelpfulnessInput\022[\n\013metric_" - + "spec\030\001 \001(\0132A.google.cloud.aiplatform.v1b" - + "eta1.QuestionAnsweringHelpfulnessSpecB\003\340" - + "A\002\022\\\n\010instance\030\002 \001(\0132E.google.cloud.aipl" - + "atform.v1beta1.QuestionAnsweringHelpfuln" - + "essInstanceB\003\340A\002\"\324\001\n$QuestionAnsweringHe" - + "lpfulnessInstance\022\034\n\nprediction\030\001 \001(\tB\003\340" - + "A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007" - + "context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013instruction\030\004" - + " \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n\n_refere" - + "nceB\n\n\010_contextB\016\n\014_instruction\"T\n Quest" - + "ionAnsweringHelpfulnessSpec\022\032\n\ruse_refer" - + "ence\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\216\001" - + "\n\"QuestionAnsweringHelpfulnessResult\022\027\n\005" - + "score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001" - + "(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r\n\013_confidence\"\336\001\n!QuestionAnswe" - + "ringCorrectnessInput\022[\n\013metric_spec\030\001 \001(" - + "\0132A.google.cloud.aiplatform.v1beta1.Ques" - + "tionAnsweringCorrectnessSpecB\003\340A\002\022\\\n\010ins" - + "tance\030\002 \001(\0132E.google.cloud.aiplatform.v1" - + "beta1.QuestionAnsweringCorrectnessInstan" - + "ceB\003\340A\002\"\324\001\n$QuestionAnsweringCorrectness" - + "Instance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033" - + "\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007context\030\003" - + " \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013instruction\030\004 \001(\tB\003\340A\002" - + "H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_c" - + "ontextB\016\n\014_instruction\"T\n QuestionAnswer" - + "ingCorrectnessSpec\022\032\n\ruse_reference\030\001 \001(" - + "\010B\003\340A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\216\001\n\"Questio" - + "nAnsweringCorrectnessResult\022\027\n\005score\030\001 \001" - + "(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034" - + "\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r" - + "\n\013_confidence\"\267\001\n\024PointwiseMetricInput\022N" - + "\n\013metric_spec\030\001 \001(\01324.google.cloud.aipla" - + "tform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O" - + "\n\010instance\030\002 \001(\01328.google.cloud.aiplatfo" - + "rm.v1beta1.PointwiseMetricInstanceB\003\340A\002\"" - + ">\n\027PointwiseMetricInstance\022\027\n\rjson_insta" - + "nce\030\001 \001(\tH\000B\n\n\010instance\"Z\n\023PointwiseMetr" - + "icSpec\022(\n\026metric_prompt_template\030\001 \001(\tB\003" - + "\340A\002H\000\210\001\001B\031\n\027_metric_prompt_template\"T\n\025P" - + "ointwiseMetricResult\022\027\n\005score\030\001 \001(\002B\003\340A\003" - + "H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003B\010\n\006_scor" - + "e\"\264\001\n\023PairwiseMetricInput\022M\n\013metric_spec" - + "\030\001 \001(\01323.google.cloud.aiplatform.v1beta1" - + ".PairwiseMetricSpecB\003\340A\002\022N\n\010instance\030\002 \001" - + "(\01327.google.cloud.aiplatform.v1beta1.Pai" - + "rwiseMetricInstanceB\003\340A\002\"=\n\026PairwiseMetr" - + "icInstance\022\027\n\rjson_instance\030\001 \001(\tH\000B\n\n\010i" - + "nstance\"Y\n\022PairwiseMetricSpec\022(\n\026metric_" - + "prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001B\031\n\027_metr" - + "ic_prompt_template\"\177\n\024PairwiseMetricResu" - + "lt\022M\n\017pairwise_choice\030\001 \001(\0162/.google.clo" - + "ud.aiplatform.v1beta1.PairwiseChoiceB\003\340A" - + "\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\"\262\001\n\022ToolCall" - + "ValidInput\022L\n\013metric_spec\030\001 \001(\01322.google" - + ".cloud.aiplatform.v1beta1.ToolCallValidS" - + "pecB\003\340A\002\022N\n\tinstances\030\002 \003(\01326.google.clo" - + "ud.aiplatform.v1beta1.ToolCallValidInsta" - + "nceB\003\340A\002\"\023\n\021ToolCallValidSpec\"o\n\025ToolCal" - + "lValidInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H" - + "\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_pr" - + "edictionB\014\n\n_reference\"}\n\024ToolCallValidR" - + "esults\022e\n\035tool_call_valid_metric_values\030" - + "\001 \003(\01329.google.cloud.aiplatform.v1beta1." - + "ToolCallValidMetricValueB\003\340A\003\"=\n\030ToolCal" - + "lValidMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" - + "\001\001B\010\n\006_score\"\262\001\n\022ToolNameMatchInput\022L\n\013m" - + "etric_spec\030\001 \001(\01322.google.cloud.aiplatfo" - + "rm.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n\tins" - + "tances\030\002 \003(\01326.google.cloud.aiplatform.v" - + "1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n\021Too" - + "lNameMatchSpec\"o\n\025ToolNameMatchInstance\022", - "\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treferen" - + "ce\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_re" - + "ference\"}\n\024ToolNameMatchResults\022e\n\035tool_" - + "name_match_metric_values\030\001 \003(\01329.google." - + "cloud.aiplatform.v1beta1.ToolNameMatchMe" - + "tricValueB\003\340A\003\"=\n\030ToolNameMatchMetricVal" - + "ue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\312\001" - + "\n\032ToolParameterKeyMatchInput\022T\n\013metric_s" - + "pec\030\001 \001(\0132:.google.cloud.aiplatform.v1be" - + "ta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n\tin" - + "stances\030\002 \003(\0132>.google.cloud.aiplatform." - + "v1beta1.ToolParameterKeyMatchInstanceB\003\340" - + "A\002\"\033\n\031ToolParameterKeyMatchSpec\"w\n\035ToolP" - + "arameterKeyMatchInstance\022\034\n\nprediction\030\001" - + " \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001" - + "\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\226\001\n\034Too" - + "lParameterKeyMatchResults\022v\n&tool_parame" - + "ter_key_match_metric_values\030\001 \003(\0132A.goog" - + "le.cloud.aiplatform.v1beta1.ToolParamete" - + "rKeyMatchMetricValueB\003\340A\003\"E\n ToolParamet" - + "erKeyMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A" - + "\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031ToolParameterKVMatc" - + "hInput\022S\n\013metric_spec\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.ToolParameterKVMat" - + "chSpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.google." - + "cloud.aiplatform.v1beta1.ToolParameterKV" - + "MatchInstanceB\003\340A\002\"@\n\030ToolParameterKVMat" - + "chSpec\022$\n\027use_strict_string_match\030\001 \001(\010B" - + "\003\340A\001\"v\n\034ToolParameterKVMatchInstance\022\034\n\n" - + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030" - + "\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_refer" - + "ence\"\223\001\n\033ToolParameterKVMatchResults\022t\n%" - + "tool_parameter_kv_match_metric_values\030\001 " - + "\003(\0132@.google.cloud.aiplatform.v1beta1.To" - + "olParameterKVMatchMetricValueB\003\340A\003\"D\n\037To" - + "olParameterKVMatchMetricValue\022\027\n\005score\030\001" - + " \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score*W\n\016PairwiseChoi" - + "ce\022\037\n\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n\010B" - + "ASELINE\020\001\022\r\n\tCANDIDATE\020\002\022\007\n\003TIE\020\0032\270\002\n\021Ev" - + "aluationService\022\323\001\n\021EvaluateInstances\0229." - + "google.cloud.aiplatform.v1beta1.Evaluate" - + "InstancesRequest\032:.google.cloud.aiplatfo" - + "rm.v1beta1.EvaluateInstancesResponse\"G\202\323" - + "\344\223\002A\"\n" + + "\027PointwiseMetricInstance\022\027\n\rjson_instanc" + + "e\030\001 \001(\tH\000B\n\n\010instance\"Z\n\023PointwiseMetric" + + "Spec\022(\n\026metric_prompt_template\030\001 \001(\tB\003\340A" + + "\002H\000\210\001\001B\031\n\027_metric_prompt_template\"T\n\025Poi" + + "ntwiseMetricResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000", + "\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003B\010\n\006_score\"" + + "\264\001\n\023PairwiseMetricInput\022M\n\013metric_spec\030\001" + + " \001(\01323.google.cloud.aiplatform.v1beta1.P" + + "airwiseMetricSpecB\003\340A\002\022N\n\010instance\030\002 \001(\013" + + "27.google.cloud.aiplatform.v1beta1.Pairw" + + "iseMetricInstanceB\003\340A\002\"=\n\026PairwiseMetric" + + "Instance\022\027\n\rjson_instance\030\001 \001(\tH\000B\n\n\010ins" + + "tance\"Y\n\022PairwiseMetricSpec\022(\n\026metric_pr" + + "ompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001B\031\n\027_metric" + + "_prompt_template\"\177\n\024PairwiseMetricResult" + + "\022M\n\017pairwise_choice\030\001 \001(\0162/.google.cloud" + + ".aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022" + + "\030\n\013explanation\030\002 \001(\tB\003\340A\003\"\262\001\n\022ToolCallVa" + + "lidInput\022L\n\013metric_spec\030\001 \001(\01322.google.c" + + "loud.aiplatform.v1beta1.ToolCallValidSpe" + + "cB\003\340A\002\022N\n\tinstances\030\002 \003(\01326.google.cloud" + + ".aiplatform.v1beta1.ToolCallValidInstanc" + + "eB\003\340A\002\"\023\n\021ToolCallValidSpec\"o\n\025ToolCallV" + + "alidInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210" + + "\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_pred" + + "ictionB\014\n\n_reference\"}\n\024ToolCallValidRes" + + "ults\022e\n\035tool_call_valid_metric_values\030\001 " + + "\003(\01329.google.cloud.aiplatform.v1beta1.To" + + "olCallValidMetricValueB\003\340A\003\"=\n\030ToolCallV" + + "alidMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "B\010\n\006_score\"\262\001\n\022ToolNameMatchInput\022L\n\013met" + + "ric_spec\030\001 \001(\01322.google.cloud.aiplatform" + + ".v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n\tinsta" + + "nces\030\002 \003(\01326.google.cloud.aiplatform.v1b" + + "eta1.ToolNameMatchInstanceB\003\340A\002\"\023\n\021ToolN" + + "ameMatchSpec\"o\n\025ToolNameMatchInstance\022\034\n" + + "\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference" + + "\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_refe" + + "rence\"}\n\024ToolNameMatchResults\022e\n\035tool_na" + + "me_match_metric_values\030\001 \003(\01329.google.cl" + + "oud.aiplatform.v1beta1.ToolNameMatchMetr" + + "icValueB\003\340A\003\"=\n\030ToolNameMatchMetricValue" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\312\001\n\032" + + "ToolParameterKeyMatchInput\022T\n\013metric_spe" + + "c\030\001 \001(\0132:.google.cloud.aiplatform.v1beta" + + "1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n\tinst" + + "ances\030\002 \003(\0132>.google.cloud.aiplatform.v1" + + "beta1.ToolParameterKeyMatchInstanceB\003\340A\002" + + "\"\033\n\031ToolParameterKeyMatchSpec\"w\n\035ToolPar" + + "ameterKeyMatchInstance\022\034\n\nprediction\030\001 \001" + + "(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\002H\001\210\001" + + "\001B\r\n\013_predictionB\014\n\n_reference\"\226\001\n\034ToolP" + + "arameterKeyMatchResults\022v\n&tool_paramete" + + "r_key_match_metric_values\030\001 \003(\0132A.google" + + ".cloud.aiplatform.v1beta1.ToolParameterK" + + "eyMatchMetricValueB\003\340A\003\"E\n ToolParameter" + + "KeyMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H" + + "\000\210\001\001B\010\n\006_score\"\307\001\n\031ToolParameterKVMatchI" + + "nput\022S\n\013metric_spec\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.ToolParameterKVMatch" + + "SpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.google.cl" + + "oud.aiplatform.v1beta1.ToolParameterKVMa" + + "tchInstanceB\003\340A\002\"@\n\030ToolParameterKVMatch" + + "Spec\022$\n\027use_strict_string_match\030\001 \001(\010B\003\340" + + "A\001\"v\n\034ToolParameterKVMatchInstance\022\034\n\npr" + + "ediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 " + + "\001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_referen" + + "ce\"\223\001\n\033ToolParameterKVMatchResults\022t\n%to" + + "ol_parameter_kv_match_metric_values\030\001 \003(" + + "\0132@.google.cloud.aiplatform.v1beta1.Tool" + + "ParameterKVMatchMetricValueB\003\340A\003\"D\n\037Tool" + + "ParameterKVMatchMetricValue\022\027\n\005score\030\001 \001" + + "(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031TrajectoryExa" + + "ctMatchInput\022S\n\013metric_spec\030\001 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryEx" + + "actMatchSpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.g" + + "oogle.cloud.aiplatform.v1beta1.Trajector" + + "yExactMatchInstanceB\003\340A\002\"\032\n\030TrajectoryEx" + + "actMatchSpec\"\372\001\n\034TrajectoryExactMatchIns" + + "tance\022S\n\024predicted_trajectory\030\001 \001(\0132+.go" + + "ogle.cloud.aiplatform.v1beta1.Trajectory" + + "B\003\340A\002H\000\210\001\001\022S\n\024reference_trajectory\030\002 \001(\013" + + "2+.google.cloud.aiplatform.v1beta1.Traje" + + "ctoryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajectory" + + "B\027\n\025_reference_trajectory\"\222\001\n\033Trajectory" + + "ExactMatchResults\022s\n$trajectory_exact_ma" + + "tch_metric_values\030\001 \003(\0132@.google.cloud.a" + + "iplatform.v1beta1.TrajectoryExactMatchMe" + + "tricValueB\003\340A\003\"D\n\037TrajectoryExactMatchMe" + + "tricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_s" + + "core\"\315\001\n\033TrajectoryInOrderMatchInput\022U\n\013" + + "metric_spec\030\001 \001(\0132;.google.cloud.aiplatf" + + "orm.v1beta1.TrajectoryInOrderMatchSpecB\003" + + "\340A\002\022W\n\tinstances\030\002 \003(\0132?.google.cloud.ai" + + "platform.v1beta1.TrajectoryInOrderMatchI" + + "nstanceB\003\340A\002\"\034\n\032TrajectoryInOrderMatchSp" + + "ec\"\374\001\n\036TrajectoryInOrderMatchInstance\022S\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.clo" + + "ud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210" + + "\001\001\022S\n\024reference_trajectory\030\002 \001(\0132+.googl" + + "e.cloud.aiplatform.v1beta1.TrajectoryB\003\340" + + "A\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_ref" + + "erence_trajectory\"\231\001\n\035TrajectoryInOrderM" + + "atchResults\022x\n\'trajectory_in_order_match" + + "_metric_values\030\001 \003(\0132B.google.cloud.aipl" + + "atform.v1beta1.TrajectoryInOrderMatchMet" + + "ricValueB\003\340A\003\"F\n!TrajectoryInOrderMatchM" + + "etricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_" + + "score\"\320\001\n\034TrajectoryAnyOrderMatchInput\022V" + + "\n\013metric_spec\030\001 \001(\0132<.google.cloud.aipla" + + "tform.v1beta1.TrajectoryAnyOrderMatchSpe" + + "cB\003\340A\002\022X\n\tinstances\030\002 \003(\0132@.google.cloud" + + ".aiplatform.v1beta1.TrajectoryAnyOrderMa" + + "tchInstanceB\003\340A\002\"\035\n\033TrajectoryAnyOrderMa" + + "tchSpec\"\375\001\n\037TrajectoryAnyOrderMatchInsta" + + "nce\022S\n\024predicted_trajectory\030\001 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryB\003" + + "\340A\002H\000\210\001\001\022S\n\024reference_trajectory\030\002 \001(\0132+" + + ".google.cloud.aiplatform.v1beta1.Traject" + + "oryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027" + + "\n\025_reference_trajectory\"\234\001\n\036TrajectoryAn" + + "yOrderMatchResults\022z\n(trajectory_any_ord" + + "er_match_metric_values\030\001 \003(\0132C.google.cl" + + "oud.aiplatform.v1beta1.TrajectoryAnyOrde" + + "rMatchMetricValueB\003\340A\003\"G\n\"TrajectoryAnyO" + + "rderMatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003" + + "H\000\210\001\001B\010\n\006_score\"\304\001\n\030TrajectoryPrecisionI" + + "nput\022R\n\013metric_spec\030\001 \001(\01328.google.cloud" + + ".aiplatform.v1beta1.TrajectoryPrecisionS" + + "pecB\003\340A\002\022T\n\tinstances\030\002 \003(\0132<.google.clo" + + "ud.aiplatform.v1beta1.TrajectoryPrecisio" + + "nInstanceB\003\340A\002\"\031\n\027TrajectoryPrecisionSpe" + + "c\"\371\001\n\033TrajectoryPrecisionInstance\022S\n\024pre" + + "dicted_trajectory\030\001 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S" + + "\n\024reference_trajectory\030\002 \001(\0132+.google.cl" + + "oud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001" + + "\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_referen" + + "ce_trajectory\"\216\001\n\032TrajectoryPrecisionRes" + + "ults\022p\n\"trajectory_precision_metric_valu" + + "es\030\001 \003(\0132?.google.cloud.aiplatform.v1bet" + + "a1.TrajectoryPrecisionMetricValueB\003\340A\003\"C" + + "\n\036TrajectoryPrecisionMetricValue\022\027\n\005scor" + + "e\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\273\001\n\025Trajecto" + + "ryRecallInput\022O\n\013metric_spec\030\001 \001(\01325.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryR" + + "ecallSpecB\003\340A\002\022Q\n\tinstances\030\002 \003(\01329.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryRe" + + "callInstanceB\003\340A\002\"\026\n\024TrajectoryRecallSpe" + + "c\"\366\001\n\030TrajectoryRecallInstance\022S\n\024predic" + + "ted_trajectory\030\001 \001(\0132+.google.cloud.aipl" + + "atform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n\024r" + + "eference_trajectory\030\002 \001(\0132+.google.cloud" + + ".aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001" + + "B\027\n\025_predicted_trajectoryB\027\n\025_reference_" + + "trajectory\"\205\001\n\027TrajectoryRecallResults\022j" + + "\n\037trajectory_recall_metric_values\030\001 \003(\0132" + + "<.google.cloud.aiplatform.v1beta1.Trajec" + + "toryRecallMetricValueB\003\340A\003\"@\n\033Trajectory" + + "RecallMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210" + + "\001\001B\010\n\006_score\"\320\001\n\034TrajectorySingleToolUse" + + "Input\022V\n\013metric_spec\030\001 \001(\0132<.google.clou" + + "d.aiplatform.v1beta1.TrajectorySingleToo" + + "lUseSpecB\003\340A\002\022X\n\tinstances\030\002 \003(\0132@.googl" + + "e.cloud.aiplatform.v1beta1.TrajectorySin" + + "gleToolUseInstanceB\003\340A\002\"H\n\033TrajectorySin" + + "gleToolUseSpec\022\033\n\ttool_name\030\001 \001(\tB\003\340A\002H\000" + + "\210\001\001B\014\n\n_tool_name\"\217\001\n\037TrajectorySingleTo" + + "olUseInstance\022S\n\024predicted_trajectory\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.Tr" + + "ajectoryB\003\340A\002H\000\210\001\001B\027\n\025_predicted_traject" + + "ory\"\234\001\n\036TrajectorySingleToolUseResults\022z" + + "\n(trajectory_single_tool_use_metric_valu" + + "es\030\001 \003(\0132C.google.cloud.aiplatform.v1bet" + + "a1.TrajectorySingleToolUseMetricValueB\003\340" + + "A\003\"G\n\"TrajectorySingleToolUseMetricValue" + + "\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"P\n\nT" + + "rajectory\022B\n\ntool_calls\030\001 \003(\0132).google.c" + + "loud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + + "\010ToolCall\022\033\n\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\034" + + "\n\ntool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n_tool_na" + + "meB\r\n\013_tool_input*W\n\016PairwiseChoice\022\037\n\033P" + + "AIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n\010BASELINE" + + "\020\001\022\r\n\tCANDIDATE\020\002\022\007\n\003TIE\020\0032\270\002\n\021Evaluatio" + + "nService\022\323\001\n\021EvaluateInstances\0229.google." + + "cloud.aiplatform.v1beta1.EvaluateInstanc" + + "esRequest\032:.google.cloud.aiplatform.v1be" + + "ta1.EvaluateInstancesResponse\"G\202\323\344\223\002A\" + * The fact used in grounding. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Fact} + */ +public final class Fact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Fact) + FactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Fact.newBuilder() to construct. + private Fact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Fact() { + query_ = ""; + title_ = ""; + uri_ = ""; + summary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Fact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Fact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Fact.class, + com.google.cloud.aiplatform.v1beta1.Fact.Builder.class); + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.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; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional 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; + } + } + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional 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; + } + } + + public static final int URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @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 present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @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 SUMMARY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VECTOR_DISTANCE_FIELD_NUMBER = 5; + private double vectorDistance_ = 0D; + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistance() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return The vectorDistance. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistance() { + return vectorDistance_; + } + + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, summary_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, vectorDistance_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, score_); + } + 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.GeneratedMessageV3.computeStringSize(1, query_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, summary_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, vectorDistance_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + 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.Fact)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Fact other = (com.google.cloud.aiplatform.v1beta1.Fact) obj; + + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasSummary() != other.hasSummary()) return false; + if (hasSummary()) { + if (!getSummary().equals(other.getSummary())) return false; + } + if (hasVectorDistance() != other.hasVectorDistance()) return false; + if (hasVectorDistance()) { + if (java.lang.Double.doubleToLongBits(getVectorDistance()) + != java.lang.Double.doubleToLongBits(other.getVectorDistance())) return false; + } + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) 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 (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasSummary()) { + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + } + if (hasVectorDistance()) { + hash = (37 * hash) + VECTOR_DISTANCE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistance())); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Fact parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact 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.Fact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact 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.Fact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact 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.Fact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact 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.Fact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact 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.Fact 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.Fact 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.Fact 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 fact used in grounding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Fact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Fact) + com.google.cloud.aiplatform.v1beta1.FactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Fact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Fact.class, + com.google.cloud.aiplatform.v1beta1.Fact.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Fact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + title_ = ""; + uri_ = ""; + summary_ = ""; + vectorDistance_ = 0D; + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Fact getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Fact build() { + com.google.cloud.aiplatform.v1beta1.Fact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Fact buildPartial() { + com.google.cloud.aiplatform.v1beta1.Fact result = + new com.google.cloud.aiplatform.v1beta1.Fact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Fact result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.summary_ = summary_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.vectorDistance_ = vectorDistance_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000020; + } + 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.v1beta1.Fact) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Fact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Fact other) { + if (other == com.google.cloud.aiplatform.v1beta1.Fact.getDefaultInstance()) return this; + if (other.hasQuery()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSummary()) { + summary_ = other.summary_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasVectorDistance()) { + setVectorDistance(other.getVectorDistance()); + } + if (other.hasScore()) { + setScore(other.getScore()); + } + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: + { + vectorDistance_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + 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 query_ = ""; + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return The query. + */ + 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(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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; + } + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Query that is used to retrieve this fact.
+     * 
+ * + * optional string query = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, it refers to the title of this fact.
+     * 
+ * + * optional 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; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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; + } + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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; + } + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, this uri links to the source of the fact.
+     * 
+ * + * optional string uri = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + public boolean hasSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the summary/snippet of the fact.
+     * 
+ * + * optional string summary = 4; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double vectorDistance_; + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasVectorDistance() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return The vectorDistance. + */ + @java.lang.Override + @java.lang.Deprecated + public double getVectorDistance() { + return vectorDistance_; + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @param value The vectorDistance to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setVectorDistance(double value) { + + vectorDistance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, the distance between the query vector and this fact vector.
+     * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearVectorDistance() { + bitField0_ = (bitField0_ & ~0x00000010); + vectorDistance_ = 0D; + onChanged(); + return this; + } + + private double score_; + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * If present, according to the underlying Vector DB and the selected metric
+     * type, the score can be either the distance or the similarity between the
+     * query and the fact and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the fact. The larger the distance, the less
+     * relevant the fact is to the query. The range is [0, 2], while 0 means the
+     * most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000020); + score_ = 0D; + 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.Fact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Fact) + private static final com.google.cloud.aiplatform.v1beta1.Fact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Fact(); + } + + public static com.google.cloud.aiplatform.v1beta1.Fact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fact 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.Fact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java new file mode 100644 index 000000000000..ebfe326e29d0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java @@ -0,0 +1,244 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface FactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Fact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Query that is used to retrieve this fact.
+   * 
+ * + * optional string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+   * If present, it refers to the title of this fact.
+   * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * If present, this uri links to the source of the fact.
+   * 
+ * + * optional string uri = 3; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The summary. + */ + java.lang.String getSummary(); + /** + * + * + *
+   * If present, the summary/snippet of the fact.
+   * 
+ * + * optional string summary = 4; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return Whether the vectorDistance field is set. + */ + @java.lang.Deprecated + boolean hasVectorDistance(); + /** + * + * + *
+   * If present, the distance between the query vector and this fact vector.
+   * 
+ * + * optional double vector_distance = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=314 + * @return The vectorDistance. + */ + @java.lang.Deprecated + double getVectorDistance(); + + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * If present, according to the underlying Vector DB and the selected metric
+   * type, the score can be either the distance or the similarity between the
+   * query and the fact and its range depends on the metric type.
+   *
+   * For example, if the metric type is COSINE_DISTANCE, it represents the
+   * distance between the query and the fact. The larger the distance, the less
+   * relevant the fact is to the query. The range is [0, 2], while 0 means the
+   * most relevant and 2 means the least relevant.
+   * 
+ * + * optional double score = 6; + * + * @return The score. + */ + double getScore(); +} 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 b1ca33349ce4..f34e3e20e17b 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 @@ -42,6 +42,8 @@ private FeatureGroup() { name_ = ""; etag_ = ""; description_ = ""; + serviceAgentType_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -77,6 +79,173 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.aiplatform.v1beta1.FeatureGroup.Builder.class); } + /** + * + * + *
+   * Service agent type used during jobs under a FeatureGroup.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType} + */ + public enum ServiceAgentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * By default, the project-level Vertex AI Service Agent is enabled.
+     * 
+ * + * SERVICE_AGENT_TYPE_UNSPECIFIED = 0; + */ + SERVICE_AGENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Specifies the project-level Vertex AI Service Agent
+     * (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
+     * 
+ * + * SERVICE_AGENT_TYPE_PROJECT = 1; + */ + SERVICE_AGENT_TYPE_PROJECT(1), + /** + * + * + *
+     * Enable a FeatureGroup service account to be created by Vertex AI and
+     * output in the field `service_account_email`. This service account will
+     * be used to read from the source BigQuery table during jobs under a
+     * FeatureGroup.
+     * 
+ * + * SERVICE_AGENT_TYPE_FEATURE_GROUP = 2; + */ + SERVICE_AGENT_TYPE_FEATURE_GROUP(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * By default, the project-level Vertex AI Service Agent is enabled.
+     * 
+ * + * SERVICE_AGENT_TYPE_UNSPECIFIED = 0; + */ + public static final int SERVICE_AGENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Specifies the project-level Vertex AI Service Agent
+     * (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
+     * 
+ * + * SERVICE_AGENT_TYPE_PROJECT = 1; + */ + public static final int SERVICE_AGENT_TYPE_PROJECT_VALUE = 1; + /** + * + * + *
+     * Enable a FeatureGroup service account to be created by Vertex AI and
+     * output in the field `service_account_email`. This service account will
+     * be used to read from the source BigQuery table during jobs under a
+     * FeatureGroup.
+     * 
+ * + * SERVICE_AGENT_TYPE_FEATURE_GROUP = 2; + */ + public static final int SERVICE_AGENT_TYPE_FEATURE_GROUP_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 ServiceAgentType 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 ServiceAgentType forNumber(int value) { + switch (value) { + case 0: + return SERVICE_AGENT_TYPE_UNSPECIFIED; + case 1: + return SERVICE_AGENT_TYPE_PROJECT; + case 2: + return SERVICE_AGENT_TYPE_FEATURE_GROUP; + 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 ServiceAgentType findValueByNumber(int number) { + return ServiceAgentType.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.FeatureGroup.getDescriptor().getEnumTypes().get(0); + } + + private static final ServiceAgentType[] VALUES = values(); + + public static ServiceAgentType 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 ServiceAgentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType) + } + public interface BigQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery) @@ -3075,6 +3244,115 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int SERVICE_AGENT_TYPE_FIELD_NUMBER = 8; + private int serviceAgentType_ = 0; + /** + * + * + *
+   * Optional. Service agent type used during jobs under a FeatureGroup. By
+   * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+   * isolate this FeatureGroup within a project, a separate service account
+   * should be provisioned by setting this field to
+   * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+   * account to access the BigQuery source table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentType. + */ + @java.lang.Override + public int getServiceAgentTypeValue() { + return serviceAgentType_; + } + /** + * + * + *
+   * Optional. Service agent type used during jobs under a FeatureGroup. By
+   * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+   * isolate this FeatureGroup within a project, a separate service account
+   * should be provisioned by setting this field to
+   * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+   * account to access the BigQuery source table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType getServiceAgentType() { + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType result = + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType.forNumber( + serviceAgentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType.UNRECOGNIZED + : result; + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureGroup. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to access source data while running jobs under this
+   * FeatureGroup.
+   * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + 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(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureGroup. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to access source data while running jobs under this
+   * FeatureGroup.
+   * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3109,6 +3387,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 7) { output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery) source_); } + if (serviceAgentType_ + != com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType + .SERVICE_AGENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, serviceAgentType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -3148,6 +3435,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery) source_); } + if (serviceAgentType_ + != com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType + .SERVICE_AGENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, serviceAgentType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3176,6 +3472,8 @@ public boolean equals(final java.lang.Object obj) { if (!getEtag().equals(other.getEtag())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (serviceAgentType_ != other.serviceAgentType_) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 7: @@ -3213,6 +3511,10 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SERVICE_AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + serviceAgentType_; + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); switch (sourceCase_) { case 7: hash = (37 * hash) + BIG_QUERY_FIELD_NUMBER; @@ -3409,6 +3711,8 @@ public Builder clear() { etag_ = ""; internalGetMutableLabels().clear(); description_ = ""; + serviceAgentType_ = 0; + serviceAccountEmail_ = ""; sourceCase_ = 0; source_ = null; return this; @@ -3470,6 +3774,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureGroup resu if (((from_bitField0_ & 0x00000040) != 0)) { result.description_ = description_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceAgentType_ = serviceAgentType_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } result.bitField0_ |= to_bitField0_; } @@ -3550,6 +3860,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureGroup other) bitField0_ |= 0x00000040; onChanged(); } + if (other.serviceAgentType_ != 0) { + setServiceAgentTypeValue(other.getServiceAgentTypeValue()); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000100; + onChanged(); + } switch (other.getSourceCase()) { case BIG_QUERY: { @@ -3635,6 +3953,18 @@ public Builder mergeFrom( sourceCase_ = 7; break; } // case 58 + case 64: + { + serviceAgentType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4873,6 +5203,256 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private int serviceAgentType_ = 0; + /** + * + * + *
+     * Optional. Service agent type used during jobs under a FeatureGroup. By
+     * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+     * isolate this FeatureGroup within a project, a separate service account
+     * should be provisioned by setting this field to
+     * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+     * account to access the BigQuery source table.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentType. + */ + @java.lang.Override + public int getServiceAgentTypeValue() { + return serviceAgentType_; + } + /** + * + * + *
+     * Optional. Service agent type used during jobs under a FeatureGroup. By
+     * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+     * isolate this FeatureGroup within a project, a separate service account
+     * should be provisioned by setting this field to
+     * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+     * account to access the BigQuery source table.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for serviceAgentType to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentTypeValue(int value) { + serviceAgentType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Service agent type used during jobs under a FeatureGroup. By
+     * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+     * isolate this FeatureGroup within a project, a separate service account
+     * should be provisioned by setting this field to
+     * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+     * account to access the BigQuery source table.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType getServiceAgentType() { + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType result = + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType.forNumber( + serviceAgentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Service agent type used during jobs under a FeatureGroup. By
+     * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+     * isolate this FeatureGroup within a project, a separate service account
+     * should be provisioned by setting this field to
+     * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+     * account to access the BigQuery source table.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The serviceAgentType to set. + * @return This builder for chaining. + */ + public Builder setServiceAgentType( + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + serviceAgentType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Service agent type used during jobs under a FeatureGroup. By
+     * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+     * isolate this FeatureGroup within a project, a separate service account
+     * should be provisioned by setting this field to
+     * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+     * account to access the BigQuery source table.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAgentType() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceAgentType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureGroup. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to access source data while running jobs under this
+     * FeatureGroup.
+     * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureGroup. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to access source data while running jobs under this
+     * FeatureGroup.
+     * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureGroup. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to access source data while running jobs under this
+     * FeatureGroup.
+     * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureGroup. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to access source data while running jobs under this
+     * FeatureGroup.
+     * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureGroup. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to access source data while running jobs under this
+     * FeatureGroup.
+     * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000100; + 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/FeatureGroupOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupOrBuilder.java index 5892b1c3e5ed..d2ecaf9872a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupOrBuilder.java @@ -331,5 +331,75 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
+   * Optional. Service agent type used during jobs under a FeatureGroup. By
+   * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+   * isolate this FeatureGroup within a project, a separate service account
+   * should be provisioned by setting this field to
+   * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+   * account to access the BigQuery source table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentType. + */ + int getServiceAgentTypeValue(); + /** + * + * + *
+   * Optional. Service agent type used during jobs under a FeatureGroup. By
+   * default, the Vertex AI Service Agent is used. When using an IAM Policy to
+   * isolate this FeatureGroup within a project, a separate service account
+   * should be provisioned by setting this field to
+   * `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service
+   * account to access the BigQuery source table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType service_agent_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentType. + */ + com.google.cloud.aiplatform.v1beta1.FeatureGroup.ServiceAgentType getServiceAgentType(); + + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureGroup. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to access source data while running jobs under this
+   * FeatureGroup.
+   * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureGroup. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to access source data while running jobs under this
+   * FeatureGroup.
+   * 
+ * + * string service_account_email = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.cloud.aiplatform.v1beta1.FeatureGroup.SourceCase getSourceCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupProto.java index dec1ad1cea95..8df6cf239a0a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupProto.java @@ -58,7 +58,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\032(google/cloud" + "/aiplatform/v1beta1/io.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\342\006\n\014FeatureGroup\022K" + + "tobuf/timestamp.proto\"\345\010\n\014FeatureGroup\022K" + "\n\tbig_query\030\007 \001(\01326.google.cloud.aiplatf" + "orm.v1beta1.FeatureGroup.BigQueryH\000\022\021\n\004n" + "ame\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.go" @@ -67,26 +67,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\003\022\021\n\004etag\030\004 \001(\tB\003\340A\001\022N\n\006labels\030\005 \003(\01329." + "google.cloud.aiplatform.v1beta1.FeatureG" + "roup.LabelsEntryB\003\340A\001\022\030\n\013description\030\006 \001" - + "(\tB\003\340A\001\032\274\002\n\010BigQuery\022Q\n\020big_query_source" - + "\030\001 \001(\0132/.google.cloud.aiplatform.v1beta1" - + ".BigQuerySourceB\006\340A\005\340A\002\022\036\n\021entity_id_col" - + "umns\030\002 \003(\tB\003\340A\001\022\037\n\022static_data_source\030\003 " - + "\001(\010B\003\340A\001\022[\n\013time_series\030\004 \001(\0132A.google.c" - + "loud.aiplatform.v1beta1.FeatureGroup.Big" - + "Query.TimeSeriesB\003\340A\001\022\022\n\005dense\030\005 \001(\010B\003\340A" - + "\001\032+\n\nTimeSeries\022\035\n\020timestamp_column\030\001 \001(" - + "\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:\220\001\352A\214\001\n&aiplatform.googlea" - + "pis.com/FeatureGroup\022Eprojects/{project}" - + "/locations/{location}/featureGroups/{fea" - + "ture_group}*\rfeatureGroups2\014featureGroup" - + "B\010\n\006sourceB\350\001\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\021FeatureGroupProtoP\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" + + "(\tB\003\340A\001\022_\n\022service_agent_type\030\010 \001(\0162>.go" + + "ogle.cloud.aiplatform.v1beta1.FeatureGro" + + "up.ServiceAgentTypeB\003\340A\001\022\"\n\025service_acco" + + "unt_email\030\t \001(\tB\003\340A\003\032\274\002\n\010BigQuery\022Q\n\020big" + + "_query_source\030\001 \001(\0132/.google.cloud.aipla" + + "tform.v1beta1.BigQuerySourceB\006\340A\005\340A\002\022\036\n\021" + + "entity_id_columns\030\002 \003(\tB\003\340A\001\022\037\n\022static_d" + + "ata_source\030\003 \001(\010B\003\340A\001\022[\n\013time_series\030\004 \001" + + "(\0132A.google.cloud.aiplatform.v1beta1.Fea" + + "tureGroup.BigQuery.TimeSeriesB\003\340A\001\022\022\n\005de" + + "nse\030\005 \001(\010B\003\340A\001\032+\n\nTimeSeries\022\035\n\020timestam" + + "p_column\030\001 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\020ServiceAge" + + "ntType\022\"\n\036SERVICE_AGENT_TYPE_UNSPECIFIED" + + "\020\000\022\036\n\032SERVICE_AGENT_TYPE_PROJECT\020\001\022$\n SE" + + "RVICE_AGENT_TYPE_FEATURE_GROUP\020\002:\220\001\352A\214\001\n" + + "&aiplatform.googleapis.com/FeatureGroup\022" + + "Eprojects/{project}/locations/{location}" + + "/featureGroups/{feature_group}*\rfeatureG" + + "roups2\014featureGroupB\010\n\006sourceB\350\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\021FeatureGr" + + "oupProtoP\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( @@ -110,6 +116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Labels", "Description", + "ServiceAgentType", + "ServiceAccountEmail", "Source", }); internal_static_google_cloud_aiplatform_v1beta1_FeatureGroup_BigQuery_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionDeclaration.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionDeclaration.java index 0af3f2f05311..63657c2d5d14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionDeclaration.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionDeclaration.java @@ -25,9 +25,9 @@ *
  * Structured representation of a function declaration as defined by the
  * [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included
- * in this declaration are the function name and parameters. This
- * FunctionDeclaration is a representation of a block of code that can be used
- * as a `Tool` by the model and executed by the client.
+ * in this declaration are the function name, description, parameters and
+ * response type. This FunctionDeclaration is a representation of a block of
+ * code that can be used as a `Tool` by the model and executed by the client.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FunctionDeclaration} @@ -539,9 +539,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Structured representation of a function declaration as defined by the
    * [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included
-   * in this declaration are the function name and parameters. This
-   * FunctionDeclaration is a representation of a block of code that can be used
-   * as a `Tool` by the model and executed by the client.
+   * in this declaration are the function name, description, parameters and
+   * response type. This FunctionDeclaration is a representation of a block of
+   * code that can be used as a `Tool` by the model and executed by the client.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FunctionDeclaration} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java index 61c9d5755fb4..bd344c294738 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfig.java @@ -41,6 +41,8 @@ private GenerationConfig(com.google.protobuf.GeneratedMessageV3.Builder build private GenerationConfig() { stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList(); responseMimeType_ = ""; + responseModalities_ = java.util.Collections.emptyList(); + mediaResolution_ = 0; } @java.lang.Override @@ -64,6 +66,370 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder.class); } + /** + * + * + *
+   * The modalities of the response.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.GenerationConfig.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified modality. Will be processed as text.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+     * Text modality.
+     * 
+ * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
+     * Image modality.
+     * 
+ * + * IMAGE = 2; + */ + IMAGE(2), + /** + * + * + *
+     * Audio modality.
+     * 
+ * + * AUDIO = 3; + */ + AUDIO(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified modality. Will be processed as text.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Text modality.
+     * 
+ * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + /** + * + * + *
+     * Image modality.
+     * 
+ * + * IMAGE = 2; + */ + public static final int IMAGE_VALUE = 2; + /** + * + * + *
+     * Audio modality.
+     * 
+ * + * AUDIO = 3; + */ + public static final int AUDIO_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Modality 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 Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return IMAGE; + case 3: + return AUDIO; + 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 Modality findValueByNumber(int number) { + return Modality.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.GenerationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Modality[] VALUES = values(); + + public static Modality 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 Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.GenerationConfig.Modality) + } + + /** + * + * + *
+   * Media resolution for the input media.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution} + */ + public enum MediaResolution implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Media resolution has not been set.
+     * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + MEDIA_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
+     * Media resolution set to low (64 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + MEDIA_RESOLUTION_LOW(1), + /** + * + * + *
+     * Media resolution set to medium (256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + MEDIA_RESOLUTION_MEDIUM(2), + /** + * + * + *
+     * Media resolution set to high (zoomed reframing with 256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + MEDIA_RESOLUTION_HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Media resolution has not been set.
+     * 
+ * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Media resolution set to low (64 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_LOW = 1; + */ + public static final int MEDIA_RESOLUTION_LOW_VALUE = 1; + /** + * + * + *
+     * Media resolution set to medium (256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2; + /** + * + * + *
+     * Media resolution set to high (zoomed reframing with 256 tokens).
+     * 
+ * + * MEDIA_RESOLUTION_HIGH = 3; + */ + public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MediaResolution 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 MediaResolution forNumber(int value) { + switch (value) { + case 0: + return MEDIA_RESOLUTION_UNSPECIFIED; + case 1: + return MEDIA_RESOLUTION_LOW; + case 2: + return MEDIA_RESOLUTION_MEDIUM; + case 3: + return MEDIA_RESOLUTION_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 MediaResolution findValueByNumber(int number) { + return MediaResolution.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.GenerationConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final MediaResolution[] VALUES = values(); + + public static MediaResolution 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 MediaResolution(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution) + } + public interface RoutingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig) @@ -3746,38 +4112,267 @@ public boolean getAudioTimestamp() { return audioTimestamp_; } - private byte memoizedIsInitialized = -1; + public static final int RESPONSE_MODALITIES_FIELD_NUMBER = 21; + @SuppressWarnings("serial") + private java.util.List responseModalities_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality> + responseModalities_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality>() { + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality convert( + java.lang.Integer from) { + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality result = + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality.forNumber(from); + return result == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ @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.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); } - + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(1, temperature_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeFloat(2, topP_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeFloat(3, topK_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(4, candidateCount_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, maxOutputTokens_); - } - for (int i = 0; i < stopSequences_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopSequences_.getRaw(i)); - } + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality getResponseModalities( + int index) { + return responseModalities_converter_.convert(responseModalities_.get(index)); + } + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + @java.lang.Override + public java.util.List getResponseModalitiesValueList() { + return responseModalities_; + } + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + @java.lang.Override + public int getResponseModalitiesValue(int index) { + return responseModalities_.get(index); + } + + private int responseModalitiesMemoizedSerializedSize; + + public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 22; + private int mediaResolution_ = 0; + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution getMediaResolution() { + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution.forNumber( + mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; + } + + public static final int SPEECH_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.aiplatform.v1beta1.SpeechConfig speechConfig_; + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + @java.lang.Override + public boolean hasSpeechConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeechConfig getSpeechConfig() { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, temperature_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(2, topP_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeFloat(3, topK_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(4, candidateCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, maxOutputTokens_); + } + for (int i = 0; i < stopSequences_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopSequences_.getRaw(i)); + } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(7, logprobs_); } @@ -3805,6 +4400,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(20, audioTimestamp_); } + if (getResponseModalitiesList().size() > 0) { + output.writeUInt32NoTag(170); + output.writeUInt32NoTag(responseModalitiesMemoizedSerializedSize); + } + for (int i = 0; i < responseModalities_.size(); i++) { + output.writeEnumNoTag(responseModalities_.get(i)); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeEnum(22, mediaResolution_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(23, getSpeechConfig()); + } getUnknownFields().writeTo(output); } @@ -3864,6 +4472,25 @@ public int getSerializedSize() { if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_); } + { + int dataSize = 0; + for (int i = 0; i < responseModalities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(responseModalities_.get(i)); + } + size += dataSize; + if (!getResponseModalitiesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + responseModalitiesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, mediaResolution_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3939,6 +4566,15 @@ public boolean equals(final java.lang.Object obj) { if (hasAudioTimestamp()) { if (getAudioTimestamp() != other.getAudioTimestamp()) return false; } + if (!responseModalities_.equals(other.responseModalities_)) return false; + if (hasMediaResolution() != other.hasMediaResolution()) return false; + if (hasMediaResolution()) { + if (mediaResolution_ != other.mediaResolution_) return false; + } + if (hasSpeechConfig() != other.hasSpeechConfig()) return false; + if (hasSpeechConfig()) { + if (!getSpeechConfig().equals(other.getSpeechConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4008,6 +4644,18 @@ public int hashCode() { hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp()); } + if (getResponseModalitiesCount() > 0) { + hash = (37 * hash) + RESPONSE_MODALITIES_FIELD_NUMBER; + hash = (53 * hash) + responseModalities_.hashCode(); + } + if (hasMediaResolution()) { + hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + mediaResolution_; + } + if (hasSpeechConfig()) { + hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSpeechConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4150,6 +4798,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResponseSchemaFieldBuilder(); getRoutingConfigFieldBuilder(); + getSpeechConfigFieldBuilder(); } } @@ -4180,6 +4829,14 @@ public Builder clear() { routingConfigBuilder_ = null; } audioTimestamp_ = false; + responseModalities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + mediaResolution_ = 0; + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } return this; } @@ -4207,6 +4864,7 @@ public com.google.cloud.aiplatform.v1beta1.GenerationConfig build() { public com.google.cloud.aiplatform.v1beta1.GenerationConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.GenerationConfig result = new com.google.cloud.aiplatform.v1beta1.GenerationConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -4214,6 +4872,15 @@ public com.google.cloud.aiplatform.v1beta1.GenerationConfig buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerationConfig result) { + if (((bitField0_ & 0x00008000) != 0)) { + responseModalities_ = java.util.Collections.unmodifiableList(responseModalities_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.responseModalities_ = responseModalities_; + } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -4278,6 +4945,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig result.audioTimestamp_ = audioTimestamp_; to_bitField0_ |= 0x00001000; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.mediaResolution_ = mediaResolution_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.speechConfig_ = + speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -4381,6 +5057,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot if (other.hasAudioTimestamp()) { setAudioTimestamp(other.getAudioTimestamp()); } + if (!other.responseModalities_.isEmpty()) { + if (responseModalities_.isEmpty()) { + responseModalities_ = other.responseModalities_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureResponseModalitiesIsMutable(); + responseModalities_.addAll(other.responseModalities_); + } + onChanged(); + } + if (other.hasMediaResolution()) { + setMediaResolution(other.getMediaResolution()); + } + if (other.hasSpeechConfig()) { + mergeSpeechConfig(other.getSpeechConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4498,6 +5190,37 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 160 + case 168: + { + int tmpRaw = input.readEnum(); + ensureResponseModalitiesIsMutable(); + responseModalities_.add(tmpRaw); + break; + } // case 168 + case 170: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureResponseModalitiesIsMutable(); + responseModalities_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 170 + case 176: + { + mediaResolution_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 176 + case 186: + { + input.readMessage(getSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6050,6 +6773,584 @@ public Builder clearAudioTimestamp() { return this; } + private java.util.List responseModalities_ = + java.util.Collections.emptyList(); + + private void ensureResponseModalitiesIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + responseModalities_ = new java.util.ArrayList(responseModalities_); + bitField0_ |= 0x00008000; + } + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + public java.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality getResponseModalities( + int index) { + return responseModalities_converter_.convert(responseModalities_.get(index)); + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The responseModalities to set. + * @return This builder for chaining. + */ + public Builder setResponseModalities( + int index, com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responseModalities to add. + * @return This builder for chaining. + */ + public Builder addResponseModalities( + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The responseModalities to add. + * @return This builder for chaining. + */ + public Builder addAllResponseModalities( + java.lang.Iterable + values) { + ensureResponseModalitiesIsMutable(); + for (com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality value : values) { + responseModalities_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponseModalities() { + responseModalities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + public java.util.List getResponseModalitiesValueList() { + return java.util.Collections.unmodifiableList(responseModalities_); + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + public int getResponseModalitiesValue(int index) { + return responseModalities_.get(index); + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for responseModalities to set. + * @return This builder for chaining. + */ + public Builder setResponseModalitiesValue(int index, int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for responseModalities to add. + * @return This builder for chaining. + */ + public Builder addResponseModalitiesValue(int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The modalities of the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for responseModalities to add. + * @return This builder for chaining. + */ + public Builder addAllResponseModalitiesValue(java.lang.Iterable values) { + ensureResponseModalitiesIsMutable(); + for (int value : values) { + responseModalities_.add(value); + } + onChanged(); + return this; + } + + private int mediaResolution_ = 0; + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mediaResolution to set. + * @return This builder for chaining. + */ + public Builder setMediaResolutionValue(int value) { + mediaResolution_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution + getMediaResolution() { + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution.forNumber( + mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mediaResolution to set. + * @return This builder for chaining. + */ + public Builder setMediaResolution( + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + mediaResolution_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, the media resolution specified will be used.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMediaResolution() { + bitField0_ = (bitField0_ & ~0x00010000); + mediaResolution_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.SpeechConfig speechConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeechConfig, + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder> + speechConfigBuilder_; + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + public boolean hasSpeechConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + public com.google.cloud.aiplatform.v1beta1.SpeechConfig getSpeechConfig() { + if (speechConfigBuilder_ == null) { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } else { + return speechConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig(com.google.cloud.aiplatform.v1beta1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speechConfig_ = value; + } else { + speechConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig( + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder builderForValue) { + if (speechConfigBuilder_ == null) { + speechConfig_ = builderForValue.build(); + } else { + speechConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1beta1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && speechConfig_ != null + && speechConfig_ + != com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance()) { + getSpeechConfigBuilder().mergeFrom(value); + } else { + speechConfig_ = value; + } + } else { + speechConfigBuilder_.mergeFrom(value); + } + if (speechConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpeechConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder getSpeechConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getSpeechConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() { + if (speechConfigBuilder_ != null) { + return speechConfigBuilder_.getMessageOrBuilder(); + } else { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + } + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeechConfig, + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder> + getSpeechConfigFieldBuilder() { + if (speechConfigBuilder_ == null) { + speechConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeechConfig, + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder>( + getSpeechConfig(), getParentForChildren(), isClean()); + speechConfig_ = null; + } + return speechConfigBuilder_; + } + @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/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java index d0ca0215e1ac..f88f234de557 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerationConfigOrBuilder.java @@ -489,4 +489,162 @@ public interface GenerationConfigOrBuilder * @return The audioTimestamp. */ boolean getAudioTimestamp(); + + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + java.util.List + getResponseModalitiesList(); + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + int getResponseModalitiesCount(); + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Modality getResponseModalities(int index); + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + java.util.List getResponseModalitiesValueList(); + /** + * + * + *
+   * Optional. The modalities of the response.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + int getResponseModalitiesValue(int index); + + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + boolean hasMediaResolution(); + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + int getMediaResolutionValue(); + /** + * + * + *
+   * Optional. If specified, the media resolution specified will be used.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution getMediaResolution(); + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + boolean hasSpeechConfig(); + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + com.google.cloud.aiplatform.v1beta1.SpeechConfig getSpeechConfig(); + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder getSpeechConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java index 3c861571ab41..72130e8939b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java @@ -129,7 +129,9 @@ public enum PartialFailureSinkCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated PARTIAL_FAILURE_GCS_SINK(11), + @java.lang.Deprecated PARTIAL_FAILURE_BIGQUERY_SINK(12), PARTIALFAILURESINK_NOT_SET(0); private final int value; @@ -444,13 +446,19 @@ public com.google.cloud.aiplatform.v1beta1.SharePointSources getSharePointSource * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPartialFailureGcsSink() { return partialFailureSinkCase_ == 11; } @@ -459,13 +467,19 @@ public boolean hasPartialFailureGcsSink() { * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return The partialFailureGcsSink. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSink() { if (partialFailureSinkCase_ == 11) { return (com.google.cloud.aiplatform.v1beta1.GcsDestination) partialFailureSink_; @@ -477,11 +491,15 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSi * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getPartialFailureGcsSinkOrBuilder() { if (partialFailureSinkCase_ == 11) { @@ -497,18 +515,23 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSi *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPartialFailureBigquerySink() { return partialFailureSinkCase_ == 12; } @@ -518,18 +541,23 @@ public boolean hasPartialFailureBigquerySink() { *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return The partialFailureBigquerySink. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailureBigquerySink() { if (partialFailureSinkCase_ == 12) { return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) partialFailureSink_; @@ -542,16 +570,19 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailure *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder getPartialFailureBigquerySinkOrBuilder() { if (partialFailureSinkCase_ == 12) { @@ -569,12 +600,16 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailure * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRagFileChunkingConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -585,12 +620,16 @@ public boolean hasRagFileChunkingConfig() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return The ragFileChunkingConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { return ragFileChunkingConfig_ == null ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() @@ -603,10 +642,12 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder() { return ragFileChunkingConfig_ == null @@ -614,31 +655,96 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk : ragFileChunkingConfig_; } + public static final int RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + ragFileTransformationConfig_; + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getRagFileTransformationConfig() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + public static final int RAG_FILE_PARSING_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig ragFileParsingConfig_; /** * * *
-   * Specifies the parsing config for RagFiles.
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the ragFileParsingConfig field is set. */ @java.lang.Override public boolean hasRagFileParsingConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-   * Specifies the parsing config for RagFiles.
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ragFileParsingConfig. */ @@ -652,10 +758,13 @@ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig getRagFileParsin * * *
-   * Specifies the parsing config for RagFiles.
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfigOrBuilder @@ -720,7 +829,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (importSourceCase_ == 7) { output.writeMessage(7, (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getRagFileParsingConfig()); } if (partialFailureSinkCase_ == 11) { @@ -735,6 +844,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 13, (com.google.cloud.aiplatform.v1beta1.SharePointSources) importSource_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(16, getRagFileTransformationConfig()); + } getUnknownFields().writeTo(output); } @@ -772,7 +884,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.aiplatform.v1beta1.JiraSource) importSource_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRagFileParsingConfig()); } @@ -791,6 +903,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.aiplatform.v1beta1.SharePointSources) importSource_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getRagFileTransformationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -811,6 +928,11 @@ public boolean equals(final java.lang.Object obj) { if (hasRagFileChunkingConfig()) { if (!getRagFileChunkingConfig().equals(other.getRagFileChunkingConfig())) return false; } + if (hasRagFileTransformationConfig() != other.hasRagFileTransformationConfig()) return false; + if (hasRagFileTransformationConfig()) { + if (!getRagFileTransformationConfig().equals(other.getRagFileTransformationConfig())) + return false; + } if (hasRagFileParsingConfig() != other.hasRagFileParsingConfig()) return false; if (hasRagFileParsingConfig()) { if (!getRagFileParsingConfig().equals(other.getRagFileParsingConfig())) return false; @@ -863,6 +985,10 @@ public int hashCode() { hash = (37 * hash) + RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRagFileChunkingConfig().hashCode(); } + if (hasRagFileTransformationConfig()) { + hash = (37 * hash) + RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileTransformationConfig().hashCode(); + } if (hasRagFileParsingConfig()) { hash = (37 * hash) + RAG_FILE_PARSING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRagFileParsingConfig().hashCode(); @@ -1047,6 +1173,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRagFileChunkingConfigFieldBuilder(); + getRagFileTransformationConfigFieldBuilder(); getRagFileParsingConfigFieldBuilder(); } } @@ -1081,6 +1208,11 @@ public Builder clear() { ragFileChunkingConfigBuilder_.dispose(); ragFileChunkingConfigBuilder_ = null; } + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } ragFileParsingConfig_ = null; if (ragFileParsingConfigBuilder_ != null) { ragFileParsingConfigBuilder_.dispose(); @@ -1137,13 +1269,20 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ImportRagFilesCon to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.ragFileTransformationConfig_ = + ragFileTransformationConfigBuilder_ == null + ? ragFileTransformationConfig_ + : ragFileTransformationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.ragFileParsingConfig_ = ragFileParsingConfigBuilder_ == null ? ragFileParsingConfig_ : ragFileParsingConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.maxEmbeddingRequestsPerMin_ = maxEmbeddingRequestsPerMin_; } result.bitField0_ |= to_bitField0_; @@ -1227,6 +1366,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfi if (other.hasRagFileChunkingConfig()) { mergeRagFileChunkingConfig(other.getRagFileChunkingConfig()); } + if (other.hasRagFileTransformationConfig()) { + mergeRagFileTransformationConfig(other.getRagFileTransformationConfig()); + } if (other.hasRagFileParsingConfig()) { mergeRagFileParsingConfig(other.getRagFileParsingConfig()); } @@ -1329,7 +1471,7 @@ public Builder mergeFrom( case 40: { maxEmbeddingRequestsPerMin_ = input.readInt32(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 40 case 50: @@ -1348,7 +1490,7 @@ public Builder mergeFrom( { input.readMessage( getRagFileParsingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 66 case 90: @@ -1372,6 +1514,13 @@ public Builder mergeFrom( importSourceCase_ = 13; break; } // case 106 + case 130: + { + input.readMessage( + getRagFileTransformationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2525,13 +2674,19 @@ public Builder clearSharePointSources() { * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPartialFailureGcsSink() { return partialFailureSinkCase_ == 11; } @@ -2540,13 +2695,19 @@ public boolean hasPartialFailureGcsSink() { * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return The partialFailureGcsSink. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSink() { if (partialFailureGcsSinkBuilder_ == null) { if (partialFailureSinkCase_ == 11) { @@ -2565,10 +2726,14 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSi * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setPartialFailureGcsSink( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (partialFailureGcsSinkBuilder_ == null) { @@ -2588,10 +2753,14 @@ public Builder setPartialFailureGcsSink( * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setPartialFailureGcsSink( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (partialFailureGcsSinkBuilder_ == null) { @@ -2608,10 +2777,14 @@ public Builder setPartialFailureGcsSink( * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergePartialFailureGcsSink( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (partialFailureGcsSinkBuilder_ == null) { @@ -2642,10 +2815,14 @@ public Builder mergePartialFailureGcsSink( * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearPartialFailureGcsSink() { if (partialFailureGcsSinkBuilder_ == null) { if (partialFailureSinkCase_ == 11) { @@ -2667,10 +2844,14 @@ public Builder clearPartialFailureGcsSink() { * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getPartialFailureGcsSinkBuilder() { return getPartialFailureGcsSinkFieldBuilder().getBuilder(); @@ -2680,11 +2861,15 @@ public Builder clearPartialFailureGcsSink() { * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getPartialFailureGcsSinkOrBuilder() { if ((partialFailureSinkCase_ == 11) && (partialFailureGcsSinkBuilder_ != null)) { @@ -2701,9 +2886,12 @@ public Builder clearPartialFailureGcsSink() { * *
      * The Cloud Storage path to write partial failures to.
+     * Deprecated. Prefer to use `import_result_gcs_sink`.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, @@ -2741,19 +2929,24 @@ public Builder clearPartialFailureGcsSink() { *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPartialFailureBigquerySink() { return partialFailureSinkCase_ == 12; } @@ -2763,19 +2956,24 @@ public boolean hasPartialFailureBigquerySink() { *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return The partialFailureBigquerySink. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailureBigquerySink() { if (partialFailureBigquerySinkBuilder_ == null) { if (partialFailureSinkCase_ == 12) { @@ -2795,16 +2993,18 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailure *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setPartialFailureBigquerySink( com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { if (partialFailureBigquerySinkBuilder_ == null) { @@ -2825,16 +3025,18 @@ public Builder setPartialFailureBigquerySink( *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setPartialFailureBigquerySink( com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { if (partialFailureBigquerySinkBuilder_ == null) { @@ -2852,16 +3054,18 @@ public Builder setPartialFailureBigquerySink( *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergePartialFailureBigquerySink( com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { if (partialFailureBigquerySinkBuilder_ == null) { @@ -2893,16 +3097,18 @@ public Builder mergePartialFailureBigquerySink( *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearPartialFailureBigquerySink() { if (partialFailureBigquerySinkBuilder_ == null) { if (partialFailureSinkCase_ == 12) { @@ -2925,16 +3131,18 @@ public Builder clearPartialFailureBigquerySink() { *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder getPartialFailureBigquerySinkBuilder() { return getPartialFailureBigquerySinkFieldBuilder().getBuilder(); @@ -2945,17 +3153,19 @@ public Builder clearPartialFailureBigquerySink() { *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder getPartialFailureBigquerySinkOrBuilder() { if ((partialFailureSinkCase_ == 12) && (partialFailureBigquerySinkBuilder_ != null)) { @@ -2973,14 +3183,15 @@ public Builder clearPartialFailureBigquerySink() { *
      * The BigQuery destination to write partial failures to. It should be a
      * bigquery table resource name (e.g.
-     * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-     * exist, it will be created. If the table does not exist, it will be
-     * created with the expected schema. If the table exists, the schema will be
-     * validated and data will be added to this existing table.
+     * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+     * table does not exist, it will be created with the expected schema. If the
+     * table exists, the schema will be validated and data will be added to this
+     * existing table.
+     * Deprecated. Prefer to use `import_result_bq_sink`.
      * 
* * - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -3021,11 +3232,15 @@ public Builder clearPartialFailureBigquerySink() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return Whether the ragFileChunkingConfig field is set. */ + @java.lang.Deprecated public boolean hasRagFileChunkingConfig() { return ((bitField0_ & 0x00000080) != 0); } @@ -3036,11 +3251,15 @@ public boolean hasRagFileChunkingConfig() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return The ragFileChunkingConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { if (ragFileChunkingConfigBuilder_ == null) { return ragFileChunkingConfig_ == null @@ -3057,9 +3276,11 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { if (ragFileChunkingConfigBuilder_ == null) { @@ -3081,9 +3302,11 @@ public Builder setRagFileChunkingConfig( * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder builderForValue) { if (ragFileChunkingConfigBuilder_ == null) { @@ -3102,9 +3325,11 @@ public Builder setRagFileChunkingConfig( * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { if (ragFileChunkingConfigBuilder_ == null) { @@ -3132,9 +3357,11 @@ public Builder mergeRagFileChunkingConfig( * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearRagFileChunkingConfig() { bitField0_ = (bitField0_ & ~0x00000080); ragFileChunkingConfig_ = null; @@ -3152,9 +3379,11 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder getRagFileChunkingConfigBuilder() { bitField0_ |= 0x00000080; @@ -3168,9 +3397,11 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder() { if (ragFileChunkingConfigBuilder_ != null) { @@ -3188,7 +3419,8 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -3208,6 +3440,218 @@ public Builder clearRagFileChunkingConfig() { return ragFileChunkingConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + ragFileTransformationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder> + ragFileTransformationConfigBuilder_; + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getRagFileTransformationConfig() { + if (ragFileTransformationConfigBuilder_ == null) { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } else { + return ragFileTransformationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileTransformationConfig_ = value; + } else { + ragFileTransformationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder builderForValue) { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfig_ = builderForValue.build(); + } else { + ragFileTransformationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder mergeRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && ragFileTransformationConfig_ != null + && ragFileTransformationConfig_ + != com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + .getDefaultInstance()) { + getRagFileTransformationConfigBuilder().mergeFrom(value); + } else { + ragFileTransformationConfig_ = value; + } + } else { + ragFileTransformationConfigBuilder_.mergeFrom(value); + } + if (ragFileTransformationConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public Builder clearRagFileTransformationConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder + getRagFileTransformationConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getRagFileTransformationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + if (ragFileTransformationConfigBuilder_ != null) { + return ragFileTransformationConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder> + getRagFileTransformationConfigFieldBuilder() { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder>( + getRagFileTransformationConfig(), getParentForChildren(), isClean()); + ragFileTransformationConfig_ = null; + } + return ragFileTransformationConfigBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig ragFileParsingConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig, @@ -3218,25 +3662,29 @@ public Builder clearRagFileChunkingConfig() { * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the ragFileParsingConfig field is set. */ public boolean hasRagFileParsingConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The ragFileParsingConfig. @@ -3254,10 +3702,12 @@ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig getRagFileParsin * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRagFileParsingConfig( @@ -3270,7 +3720,7 @@ public Builder setRagFileParsingConfig( } else { ragFileParsingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3278,10 +3728,12 @@ public Builder setRagFileParsingConfig( * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRagFileParsingConfig( @@ -3291,7 +3743,7 @@ public Builder setRagFileParsingConfig( } else { ragFileParsingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3299,16 +3751,18 @@ public Builder setRagFileParsingConfig( * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeRagFileParsingConfig( com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig value) { if (ragFileParsingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && ragFileParsingConfig_ != null && ragFileParsingConfig_ != com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.getDefaultInstance()) { @@ -3320,7 +3774,7 @@ public Builder mergeRagFileParsingConfig( ragFileParsingConfigBuilder_.mergeFrom(value); } if (ragFileParsingConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3329,14 +3783,16 @@ public Builder mergeRagFileParsingConfig( * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearRagFileParsingConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); ragFileParsingConfig_ = null; if (ragFileParsingConfigBuilder_ != null) { ragFileParsingConfigBuilder_.dispose(); @@ -3349,15 +3805,17 @@ public Builder clearRagFileParsingConfig() { * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.Builder getRagFileParsingConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getRagFileParsingConfigFieldBuilder().getBuilder(); } @@ -3365,10 +3823,12 @@ public Builder clearRagFileParsingConfig() { * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfigOrBuilder @@ -3385,10 +3845,12 @@ public Builder clearRagFileParsingConfig() { * * *
-     * Specifies the parsing config for RagFiles.
+     * Optional. Specifies the parsing config for RagFiles.
+     * RAG will use the default parser if this field is not set.
      * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -3449,7 +3911,7 @@ public int getMaxEmbeddingRequestsPerMin() { public Builder setMaxEmbeddingRequestsPerMin(int value) { maxEmbeddingRequestsPerMin_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3470,7 +3932,7 @@ public Builder setMaxEmbeddingRequestsPerMin(int value) { * @return This builder for chaining. */ public Builder clearMaxEmbeddingRequestsPerMin() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); maxEmbeddingRequestsPerMin_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java index 6208746407ab..e211c6468c4c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java @@ -216,34 +216,50 @@ public interface ImportRagFilesConfigOrBuilder * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return Whether the partialFailureGcsSink field is set. */ + @java.lang.Deprecated boolean hasPartialFailureGcsSink(); /** * * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=514 * @return The partialFailureGcsSink. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSink(); /** * * *
    * The Cloud Storage path to write partial failures to.
+   * Deprecated. Prefer to use `import_result_gcs_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11; + * + * .google.cloud.aiplatform.v1beta1.GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getPartialFailureGcsSinkOrBuilder(); /** @@ -252,17 +268,22 @@ public interface ImportRagFilesConfigOrBuilder *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return Whether the partialFailureBigquerySink field is set. */ + @java.lang.Deprecated boolean hasPartialFailureBigquerySink(); /** * @@ -270,17 +291,22 @@ public interface ImportRagFilesConfigOrBuilder *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=523 * @return The partialFailureBigquerySink. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.BigQueryDestination getPartialFailureBigquerySink(); /** * @@ -288,15 +314,18 @@ public interface ImportRagFilesConfigOrBuilder *
    * The BigQuery destination to write partial failures to. It should be a
    * bigquery table resource name (e.g.
-   * "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not
-   * exist, it will be created. If the table does not exist, it will be
-   * created with the expected schema. If the table exists, the schema will be
-   * validated and data will be added to this existing table.
+   * "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
+   * table does not exist, it will be created with the expected schema. If the
+   * table exists, the schema will be validated and data will be added to this
+   * existing table.
+   * Deprecated. Prefer to use `import_result_bq_sink`.
    * 
* - * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12; + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder getPartialFailureBigquerySinkOrBuilder(); @@ -307,11 +336,15 @@ public interface ImportRagFilesConfigOrBuilder * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return Whether the ragFileChunkingConfig field is set. */ + @java.lang.Deprecated boolean hasRagFileChunkingConfig(); /** * @@ -320,11 +353,15 @@ public interface ImportRagFilesConfigOrBuilder * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=527 * @return The ragFileChunkingConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig(); /** * @@ -333,9 +370,11 @@ public interface ImportRagFilesConfigOrBuilder * Specifies the size and overlap of chunks after importing RagFiles. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder(); @@ -343,10 +382,55 @@ public interface ImportRagFilesConfigOrBuilder * * *
-   * Specifies the parsing config for RagFiles.
+   * Specifies the transformation config for RagFiles.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + boolean hasRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + * + * @return The ragFileTransformationConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig getRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 16; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the ragFileParsingConfig field is set. */ @@ -355,10 +439,13 @@ public interface ImportRagFilesConfigOrBuilder * * *
-   * Specifies the parsing config for RagFiles.
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ragFileParsingConfig. */ @@ -367,10 +454,13 @@ public interface ImportRagFilesConfigOrBuilder * * *
-   * Specifies the parsing config for RagFiles.
+   * Optional. Specifies the parsing config for RagFiles.
+   * RAG will use the default parser if this field is not set.
    * 
* - * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8; + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig rag_file_parsing_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.aiplatform.v1beta1.RagFileParsingConfigOrBuilder getRagFileParsingConfigOrBuilder(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java index 54f9e1e3aef3..48a7fde001be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JiraSource.java @@ -234,8 +234,8 @@ public interface JiraQueriesOrBuilder *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -251,8 +251,8 @@ public interface JiraQueriesOrBuilder *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -268,8 +268,8 @@ public interface JiraQueriesOrBuilder *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -572,8 +572,8 @@ public com.google.protobuf.ByteString getServerUriBytes() { *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -592,8 +592,8 @@ public boolean hasApiKeyConfig() { *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -614,8 +614,8 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig( *
      * Required. The SecretManager secret version resource name (e.g.
      * projects/{project}/secrets/{secret}/versions/{version}) storing the
-     * Jira API key
-     * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+     * Jira API key. See [Manage API tokens for your Atlassian
+     * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
      * 
* * @@ -1714,8 +1714,8 @@ public Builder setServerUriBytes(com.google.protobuf.ByteString value) { *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1733,8 +1733,8 @@ public boolean hasApiKeyConfig() { *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1758,8 +1758,8 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig getApiKeyConfig( *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1786,8 +1786,8 @@ public Builder setApiKeyConfig( *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1811,8 +1811,8 @@ public Builder setApiKeyConfig( *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1846,8 +1846,8 @@ public Builder mergeApiKeyConfig( *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1870,8 +1870,8 @@ public Builder clearApiKeyConfig() { *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1890,8 +1890,8 @@ public Builder clearApiKeyConfig() { *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * @@ -1914,8 +1914,8 @@ public Builder clearApiKeyConfig() { *
        * Required. The SecretManager secret version resource name (e.g.
        * projects/{project}/secrets/{secret}/versions/{version}) storing the
-       * Jira API key
-       * (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
+       * Jira API key. See [Manage API tokens for your Atlassian
+       * account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
        * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java index 95bb0cdc9bb3..0b0b5d15378d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java @@ -401,6 +401,24 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } + public static final int LIST_ALL_VERSIONS_FIELD_NUMBER = 8; + private boolean listAllVersions_ = false; + /** + * + * + *
+   * Optional. List all publisher model versions if the flag is set to true.
+   * 
+ * + * bool list_all_versions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listAllVersions. + */ + @java.lang.Override + public boolean getListAllVersions() { + return listAllVersions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -438,6 +456,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, languageCode_); } + if (listAllVersions_ != false) { + output.writeBool(8, listAllVersions_); + } getUnknownFields().writeTo(output); } @@ -470,6 +491,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, languageCode_); } + if (listAllVersions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, listAllVersions_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -493,6 +517,7 @@ public boolean equals(final java.lang.Object obj) { if (view_ != other.view_) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getListAllVersions() != other.getListAllVersions()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -518,6 +543,8 @@ public int hashCode() { hash = (53 * hash) + getOrderBy().hashCode(); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + LIST_ALL_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getListAllVersions()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -666,6 +693,7 @@ public Builder clear() { view_ = 0; orderBy_ = ""; languageCode_ = ""; + listAllVersions_ = false; return this; } @@ -725,6 +753,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.languageCode_ = languageCode_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.listAllVersions_ = listAllVersions_; + } } @java.lang.Override @@ -805,6 +836,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPublisherModels bitField0_ |= 0x00000040; onChanged(); } + if (other.getListAllVersions() != false) { + setListAllVersions(other.getListAllVersions()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -873,6 +907,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 64: + { + listAllVersions_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1622,6 +1662,59 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } + private boolean listAllVersions_; + /** + * + * + *
+     * Optional. List all publisher model versions if the flag is set to true.
+     * 
+ * + * bool list_all_versions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listAllVersions. + */ + @java.lang.Override + public boolean getListAllVersions() { + return listAllVersions_; + } + /** + * + * + *
+     * Optional. List all publisher model versions if the flag is set to true.
+     * 
+ * + * bool list_all_versions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The listAllVersions to set. + * @return This builder for chaining. + */ + public Builder setListAllVersions(boolean value) { + + listAllVersions_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. List all publisher model versions if the flag is set to true.
+     * 
+ * + * bool list_all_versions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearListAllVersions() { + bitField0_ = (bitField0_ & ~0x00000080); + listAllVersions_ = 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/ListPublisherModelsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java index 2fe60cbf34ed..10322ca55acc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java @@ -208,4 +208,17 @@ public interface ListPublisherModelsRequestOrBuilder * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional. List all publisher model versions if the flag is set to true.
+   * 
+ * + * bool list_all_versions = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listAllVersions. + */ + boolean getListAllVersions(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java index e2ea0105438c..cfc3fef337d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java @@ -89,36 +89,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\005\022\031\n\021accelerator_count\030\003 \001(\005\022\031\n\014tpu_to" + "pology\030\004 \001(\tB\003\340A\005\022Z\n\024reservation_affinit" + "y\030\005 \001(\01324.google.cloud.aiplatform.v1beta" - + "1.ReservationAffinityB\006\340A\005\340A\001\"\225\002\n\022Dedica" + + "1.ReservationAffinityB\006\340A\005\340A\001\"\272\002\n\022Dedica" + "tedResources\022J\n\014machine_spec\030\001 \001(\0132,.goo" + "gle.cloud.aiplatform.v1beta1.MachineSpec" + "B\006\340A\002\340A\005\022!\n\021min_replica_count\030\002 \001(\005B\006\340A\002" - + "\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003\340A\005\022]\n\030a" - + "utoscaling_metric_specs\030\004 \003(\01326.google.c" - + "loud.aiplatform.v1beta1.AutoscalingMetri" - + "cSpecB\003\340A\005\022\021\n\004spot\030\005 \001(\010B\003\340A\001\"T\n\022Automat" - + "icResources\022\036\n\021min_replica_count\030\001 \001(\005B\003" - + "\340A\005\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\252\001\n\027" - + "BatchDedicatedResources\022J\n\014machine_spec\030" - + "\001 \001(\0132,.google.cloud.aiplatform.v1beta1." - + "MachineSpecB\006\340A\002\340A\005\022#\n\026starting_replica_" - + "count\030\002 \001(\005B\003\340A\005\022\036\n\021max_replica_count\030\003 " - + "\001(\005B\003\340A\005\"/\n\021ResourcesConsumed\022\032\n\rreplica" - + "_hours\030\001 \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_di" - + "sk_type\030\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005" - + "\"=\n\022PersistentDiskSpec\022\021\n\tdisk_type\030\001 \001(" - + "\t\022\024\n\014disk_size_gb\030\002 \001(\003\"L\n\010NfsMount\022\023\n\006s" - + "erver\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\030\n\013m" - + "ount_point\030\003 \001(\tB\003\340A\002\"A\n\025AutoscalingMetr" - + "icSpec\022\030\n\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n\006targ" - + "et\030\002 \001(\005\".\n\020ShieldedVmConfig\022\032\n\022enable_s" - + "ecure_boot\030\001 \001(\010B\354\001\n#com.google.cloud.ai" - + "platform.v1beta1B\025MachineResourcesProtoP" - + "\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" + + "\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003\340A\005\022#\n\026r" + + "equired_replica_count\030\t \001(\005B\003\340A\001\022]\n\030auto" + + "scaling_metric_specs\030\004 \003(\01326.google.clou" + + "d.aiplatform.v1beta1.AutoscalingMetricSp" + + "ecB\003\340A\005\022\021\n\004spot\030\005 \001(\010B\003\340A\001\"T\n\022AutomaticR" + + "esources\022\036\n\021min_replica_count\030\001 \001(\005B\003\340A\005" + + "\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\252\001\n\027Bat" + + "chDedicatedResources\022J\n\014machine_spec\030\001 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Mac" + + "hineSpecB\006\340A\002\340A\005\022#\n\026starting_replica_cou" + + "nt\030\002 \001(\005B\003\340A\005\022\036\n\021max_replica_count\030\003 \001(\005" + + "B\003\340A\005\"/\n\021ResourcesConsumed\022\032\n\rreplica_ho" + + "urs\030\001 \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_" + + "type\030\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005\"=\n" + + "\022PersistentDiskSpec\022\021\n\tdisk_type\030\001 \001(\t\022\024" + + "\n\014disk_size_gb\030\002 \001(\003\"L\n\010NfsMount\022\023\n\006serv" + + "er\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\002\022\030\n\013moun" + + "t_point\030\003 \001(\tB\003\340A\002\"A\n\025AutoscalingMetricS" + + "pec\022\030\n\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n\006target\030" + + "\002 \001(\005\".\n\020ShieldedVmConfig\022\032\n\022enable_secu" + + "re_boot\030\001 \001(\010B\354\001\n#com.google.cloud.aipla" + + "tform.v1beta1B\025MachineResourcesProtoP\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( @@ -146,7 +147,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor, new java.lang.String[] { - "MachineSpec", "MinReplicaCount", "MaxReplicaCount", "AutoscalingMetricSpecs", "Spot", + "MachineSpec", + "MinReplicaCount", + "MaxReplicaCount", + "RequiredReplicaCount", + "AutoscalingMetricSpecs", + "Spot", }); internal_static_google_cloud_aiplatform_v1beta1_AutomaticResources_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java index 4f6b5ad468db..4de94954f902 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java @@ -62,39 +62,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.aiplatform.v1beta1.Publish" + "erModelViewB\003\340A\001\022\"\n\025is_hugging_face_mode" + "l\030\005 \001(\010B\003\340A\001\022\037\n\022hugging_face_token\030\006 \001(\t" - + "B\003\340A\001\"\362\001\n\032ListPublisherModelsRequest\022\023\n\006" + + "B\003\340A\001\"\222\002\n\032ListPublisherModelsRequest\022\023\n\006" + "parent\030\001 \001(\tB\003\340A\002\022\023\n\006filter\030\002 \001(\tB\003\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\022F\n\004view\030\005 \001(\01623.google.cloud.aip" + "latform.v1beta1.PublisherModelViewB\003\340A\001\022" + "\025\n\010order_by\030\006 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030" - + "\007 \001(\tB\003\340A\001\"\201\001\n\033ListPublisherModelsRespon" - + "se\022I\n\020publisher_models\030\001 \003(\0132/.google.cl" - + "oud.aiplatform.v1beta1.PublisherModel\022\027\n" - + "\017next_page_token\030\002 \001(\t*\241\001\n\022PublisherMode" - + "lView\022$\n PUBLISHER_MODEL_VIEW_UNSPECIFIE" - + "D\020\000\022\036\n\032PUBLISHER_MODEL_VIEW_BASIC\020\001\022\035\n\031P" - + "UBLISHER_MODEL_VIEW_FULL\020\002\022&\n\"PUBLISHER_" - + "MODEL_VERSION_VIEW_BASIC\020\0032\346\003\n\022ModelGard" - + "enService\022\265\001\n\021GetPublisherModel\0229.google" - + ".cloud.aiplatform.v1beta1.GetPublisherMo" - + "delRequest\032/.google.cloud.aiplatform.v1b" - + "eta1.PublisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1b" - + "eta1/{name=publishers/*/models/*}\022\310\001\n\023Li" - + "stPublisherModels\022;.google.cloud.aiplatf" - + "orm.v1beta1.ListPublisherModelsRequest\032<" - + ".google.cloud.aiplatform.v1beta1.ListPub" - + "lisherModelsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/" - + "v1beta1/{parent=publishers/*}/models\032M\312A" - + "\031aiplatform.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\356\001\n#" - + "com.google.cloud.aiplatform.v1beta1B\027Mod" - + "elGardenServiceProtoP\001ZCcloud.google.com" - + "/go/aiplatform/apiv1beta1/aiplatformpb;a" - + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" - + "oto3" + + "\007 \001(\tB\003\340A\001\022\036\n\021list_all_versions\030\010 \001(\010B\003\340" + + "A\001\"\201\001\n\033ListPublisherModelsResponse\022I\n\020pu" + + "blisher_models\030\001 \003(\0132/.google.cloud.aipl" + + "atform.v1beta1.PublisherModel\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t*\241\001\n\022PublisherModelView\022$\n" + + " PUBLISHER_MODEL_VIEW_UNSPECIFIED\020\000\022\036\n\032P" + + "UBLISHER_MODEL_VIEW_BASIC\020\001\022\035\n\031PUBLISHER" + + "_MODEL_VIEW_FULL\020\002\022&\n\"PUBLISHER_MODEL_VE" + + "RSION_VIEW_BASIC\020\0032\346\003\n\022ModelGardenServic" + + "e\022\265\001\n\021GetPublisherModel\0229.google.cloud.a" + + "iplatform.v1beta1.GetPublisherModelReque" + + "st\032/.google.cloud.aiplatform.v1beta1.Pub" + + "lisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{na" + + "me=publishers/*/models/*}\022\310\001\n\023ListPublis" + + "herModels\022;.google.cloud.aiplatform.v1be" + + "ta1.ListPublisherModelsRequest\032<.google." + + "cloud.aiplatform.v1beta1.ListPublisherMo" + + "delsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/" + + "{parent=publishers/*}/models\032M\312A\031aiplatf" + + "orm.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\356\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\027ModelGarden" + + "ServiceProtoP\001ZCcloud.google.com/go/aipl" + + "atform/apiv1beta1/aiplatformpb;aiplatfor" + + "mpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037" + + "Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google" + + "::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -120,7 +120,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor, new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "View", "OrderBy", "LanguageCode", + "Parent", + "Filter", + "PageSize", + "PageToken", + "View", + "OrderBy", + "LanguageCode", + "ListAllVersions", }); internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java index 5cefc45e9eb0..40189c4ca83d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java @@ -43,6 +43,7 @@ private NotebookExecutionJob() { displayName_ = ""; scheduleResourceName_ = ""; jobState_ = 0; + kernelName_ = ""; } @java.lang.Override @@ -2455,6 +2456,1856 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface CustomEnvironmentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec(); + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + boolean hasPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec(); + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + } + /** + * + * + *
+   * Compute configuration to use for an execution job.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class CustomEnvironmentSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + CustomEnvironmentSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomEnvironmentSpec.newBuilder() to construct. + private CustomEnvironmentSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomEnvironmentSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomEnvironmentSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + .class); + } + + private int bitField0_; + public static final int MACHINE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + /** + * + * + *
+     * The specification of a single machine for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + + public static final int PERSISTENT_DISK_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistentDiskSpec_; + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + /** + * + * + *
+     * The specification of a persistent disk to attach for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + /** + * + * + *
+     * The network configuration to use for the execution job.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + + 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, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getNetworkSpec()); + } + 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, getMachineSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkSpec()); + } + 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.NotebookExecutionJob.CustomEnvironmentSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec other = + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) obj; + + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasPersistentDiskSpec() != other.hasPersistentDiskSpec()) return false; + if (hasPersistentDiskSpec()) { + if (!getPersistentDiskSpec().equals(other.getPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) 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 (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasPersistentDiskSpec()) { + hash = (37 * hash) + PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec + 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.NotebookExecutionJob.CustomEnvironmentSpec 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; + } + /** + * + * + *
+     * Compute configuration to use for an execution job.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMachineSpecFieldBuilder(); + getPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + build() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.persistentDiskSpec_ = + persistentDiskSpecBuilder_ == null + ? persistentDiskSpec_ + : persistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + 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.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) return this; + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasPersistentDiskSpec()) { + mergePersistentDiskSpec(other.getPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } + 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(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder> + machineSpecBuilder_; + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return Whether the machineSpec field is set. + */ + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + * + * @return The machineSpec. + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } else { + return machineSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineSpec_ = value; + } else { + machineSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); + } else { + machineSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); + } else { + machineSpec_ = value; + } + } else { + machineSpecBuilder_.mergeFrom(value); + } + if (machineSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public Builder clearMachineSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMachineSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); + } else { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; + } + } + /** + * + * + *
+       * The specification of a single machine for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder> + getMachineSpecFieldBuilder() { + if (machineSpecBuilder_ == null) { + machineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder>( + getMachineSpec(), getParentForChildren(), isClean()); + machineSpec_ = null; + } + return machineSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + persistentDiskSpecBuilder_; + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return Whether the persistentDiskSpec field is set. + */ + public boolean hasPersistentDiskSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + * + * @return The persistentDiskSpec. + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getPersistentDiskSpec() { + if (persistentDiskSpecBuilder_ == null) { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } else { + return persistentDiskSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistentDiskSpec_ = value; + } else { + persistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder setPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder builderForValue) { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpec_ = builderForValue.build(); + } else { + persistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder mergePersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (persistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && persistentDiskSpec_ != null + && persistentDiskSpec_ + != com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance()) { + getPersistentDiskSpecBuilder().mergeFrom(value); + } else { + persistentDiskSpec_ = value; + } + } else { + persistentDiskSpecBuilder_.mergeFrom(value); + } + if (persistentDiskSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public Builder clearPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + persistentDiskSpec_ = null; + if (persistentDiskSpecBuilder_ != null) { + persistentDiskSpecBuilder_.dispose(); + persistentDiskSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder + getPersistentDiskSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPersistentDiskSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getPersistentDiskSpecOrBuilder() { + if (persistentDiskSpecBuilder_ != null) { + return persistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return persistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : persistentDiskSpec_; + } + } + /** + * + * + *
+       * The specification of a persistent disk to attach for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec persistent_disk_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + getPersistentDiskSpecFieldBuilder() { + if (persistentDiskSpecBuilder_ == null) { + persistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder>( + getPersistentDiskSpec(), getParentForChildren(), isClean()); + persistentDiskSpec_ = null; + } + return persistentDiskSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder> + networkSpecBuilder_; + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return Whether the networkSpec field is set. + */ + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + * + * @return The networkSpec. + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } else { + return networkSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkSpec_ = value; + } else { + networkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && networkSpec_ != null + && networkSpec_ + != com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance()) { + getNetworkSpecBuilder().mergeFrom(value); + } else { + networkSpec_ = value; + } + } else { + networkSpecBuilder_.mergeFrom(value); + } + if (networkSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + if (networkSpecBuilder_ != null) { + return networkSpecBuilder_.getMessageOrBuilder(); + } else { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + } + /** + * + * + *
+       * The network configuration to use for the execution job.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder> + getNetworkSpecFieldBuilder() { + if (networkSpecBuilder_ == null) { + networkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder>( + getNetworkSpec(), getParentForChildren(), isClean()); + networkSpec_ = null; + } + return networkSpecBuilder_; + } + + @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.NotebookExecutionJob.CustomEnvironmentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomEnvironmentSpec 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.NotebookExecutionJob.CustomEnvironmentSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WorkbenchRuntimeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration for a Workbench Instances-based environment.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime} + */ + public static final class WorkbenchRuntime extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + WorkbenchRuntimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkbenchRuntime.newBuilder() to construct. + private WorkbenchRuntime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkbenchRuntime() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkbenchRuntime(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.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.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime other = + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) 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.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime + 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.NotebookExecutionJob.WorkbenchRuntime 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 a Workbench Instances-based environment.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.class, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.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.aiplatform.v1beta1.NotebookExecutionJobProto + .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime build() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + buildPartial() { + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime result = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime(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.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime other) { + if (other + == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .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.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime(); + } + + public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkbenchRuntime 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.NotebookExecutionJob.WorkbenchRuntime + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int notebookSourceCase_ = 0; @@ -2518,6 +4369,7 @@ public enum EnvironmentSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14), + CUSTOM_ENVIRONMENT_SPEC(16), ENVIRONMENTSPEC_NOT_SET(0); private final int value; @@ -2538,6 +4390,8 @@ public static EnvironmentSpecCase forNumber(int value) { switch (value) { case 14: return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME; + case 16: + return CUSTOM_ENVIRONMENT_SPEC; case 0: return ENVIRONMENTSPEC_NOT_SET; default: @@ -2649,6 +4503,52 @@ public ExecutionIdentityCase getExecutionIdentityCase() { return ExecutionIdentityCase.forNumber(executionIdentityCase_); } + private int runtimeEnvironmentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object runtimeEnvironment_; + + public enum RuntimeEnvironmentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WORKBENCH_RUNTIME(23), + RUNTIMEENVIRONMENT_NOT_SET(0); + private final int value; + + private RuntimeEnvironmentCase(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 RuntimeEnvironmentCase valueOf(int value) { + return forNumber(value); + } + + public static RuntimeEnvironmentCase forNumber(int value) { + switch (value) { + case 23: + return WORKBENCH_RUNTIME; + case 0: + return RUNTIMEENVIRONMENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuntimeEnvironmentCase getRuntimeEnvironmentCase() { + return RuntimeEnvironmentCase.forNumber(runtimeEnvironmentCase_); + } + public static final int DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER = 3; /** * @@ -2917,6 +4817,69 @@ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameByte } } + public static final int CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER = 16; + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8; /** * @@ -3130,6 +5093,69 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int WORKBENCH_RUNTIME_FIELD_NUMBER = 23; + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + @java.lang.Override + public boolean hasWorkbenchRuntime() { + return runtimeEnvironmentCase_ == 23; + } + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + getWorkbenchRuntime() { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder() { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -3671,6 +5697,59 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int KERNEL_NAME_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object kernelName_ = ""; + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + @java.lang.Override + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + 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(); + kernelName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 22; private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; /** @@ -3679,7 +5758,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -3696,7 +5776,8 @@ public boolean hasEncryptionSpec() { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -3715,7 +5796,8 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -3787,6 +5869,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentSpecCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + output.writeMessage( + 16, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { output.writeMessage( 17, @@ -3798,9 +5886,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 19); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, kernelName_); + } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(22, getEncryptionSpec()); } + if (runtimeEnvironmentCase_ == 23) { + output.writeMessage( + 23, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_); + } getUnknownFields().writeTo(output); } @@ -3858,6 +5955,13 @@ public int getSerializedSize() { if (environmentSpecCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_); } + if (environmentSpecCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_); + } if (notebookSourceCase_ == 17) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3878,9 +5982,19 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, labels__); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, kernelName_); + } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getEncryptionSpec()); } + if (runtimeEnvironmentCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3918,6 +6032,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getKernelName().equals(other.getKernelName())) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; @@ -3943,6 +6058,9 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookRuntimeTemplateResourceName() .equals(other.getNotebookRuntimeTemplateResourceName())) return false; break; + case 16: + if (!getCustomEnvironmentSpec().equals(other.getCustomEnvironmentSpec())) return false; + break; case 0: default: } @@ -3965,6 +6083,14 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getRuntimeEnvironmentCase().equals(other.getRuntimeEnvironmentCase())) return false; + switch (runtimeEnvironmentCase_) { + case 23: + if (!getWorkbenchRuntime().equals(other.getWorkbenchRuntime())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4004,6 +6130,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKernelName().hashCode(); if (hasEncryptionSpec()) { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); @@ -4029,6 +6157,10 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode(); break; + case 16: + hash = (37 * hash) + CUSTOM_ENVIRONMENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomEnvironmentSpec().hashCode(); + break; case 0: default: } @@ -4052,6 +6184,14 @@ public int hashCode() { case 0: default: } + switch (runtimeEnvironmentCase_) { + case 23: + hash = (37 * hash) + WORKBENCH_RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getWorkbenchRuntime().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4236,6 +6376,12 @@ public Builder clear() { if (directNotebookSourceBuilder_ != null) { directNotebookSourceBuilder_.clear(); } + if (customEnvironmentSpecBuilder_ != null) { + customEnvironmentSpecBuilder_.clear(); + } + if (workbenchRuntimeBuilder_ != null) { + workbenchRuntimeBuilder_.clear(); + } name_ = ""; displayName_ = ""; executionTimeout_ = null; @@ -4261,6 +6407,7 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); + kernelName_ = ""; encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -4274,6 +6421,8 @@ public Builder clear() { executionSink_ = null; executionIdentityCase_ = 0; executionIdentity_ = null; + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; return this; } @@ -4311,41 +6460,44 @@ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.executionTimeout_ = executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.scheduleResourceName_ = scheduleResourceName_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.jobState_ = jobState_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { + result.kernelName_ = kernelName_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; @@ -4368,10 +6520,18 @@ private void buildPartialOneofs( } result.environmentSpecCase_ = environmentSpecCase_; result.environmentSpec_ = this.environmentSpec_; + if (environmentSpecCase_ == 16 && customEnvironmentSpecBuilder_ != null) { + result.environmentSpec_ = customEnvironmentSpecBuilder_.build(); + } result.executionSinkCase_ = executionSinkCase_; result.executionSink_ = this.executionSink_; result.executionIdentityCase_ = executionIdentityCase_; result.executionIdentity_ = this.executionIdentity_; + result.runtimeEnvironmentCase_ = runtimeEnvironmentCase_; + result.runtimeEnvironment_ = this.runtimeEnvironment_; + if (runtimeEnvironmentCase_ == 23 && workbenchRuntimeBuilder_ != null) { + result.runtimeEnvironment_ = workbenchRuntimeBuilder_.build(); + } } @java.lang.Override @@ -4422,12 +6582,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasExecutionTimeout()) { @@ -4435,7 +6595,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo } if (!other.getScheduleResourceName().isEmpty()) { scheduleResourceName_ = other.scheduleResourceName_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } if (other.jobState_ != 0) { @@ -4451,7 +6611,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; + if (!other.getKernelName().isEmpty()) { + kernelName_ = other.kernelName_; + bitField0_ |= 0x00040000; + onChanged(); + } if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4484,6 +6649,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo onChanged(); break; } + case CUSTOM_ENVIRONMENT_SPEC: + { + mergeCustomEnvironmentSpec(other.getCustomEnvironmentSpec()); + break; + } case ENVIRONMENTSPEC_NOT_SET: { break; @@ -4522,6 +6692,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJo break; } } + switch (other.getRuntimeEnvironmentCase()) { + case WORKBENCH_RUNTIME: + { + mergeWorkbenchRuntime(other.getWorkbenchRuntime()); + break; + } + case RUNTIMEENVIRONMENT_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4551,13 +6732,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 18 case 26: @@ -4578,13 +6759,13 @@ public Builder mergeFrom( { input.readMessage( getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 42 case 50: { scheduleResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 50 case 66: @@ -4604,25 +6785,25 @@ public Builder mergeFrom( case 80: { jobState_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 80 case 90: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 106 case 114: @@ -4632,6 +6813,13 @@ public Builder mergeFrom( environmentSpec_ = s; break; } // case 114 + case 130: + { + input.readMessage( + getCustomEnvironmentSpecFieldBuilder().getBuilder(), extensionRegistry); + environmentSpecCase_ = 16; + break; + } // case 130 case 138: { input.readMessage( @@ -4655,15 +6843,28 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 154 + case 162: + { + kernelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 162 case 178: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 178 + case 186: + { + input.readMessage( + getWorkbenchRuntimeFieldBuilder().getBuilder(), extensionRegistry); + runtimeEnvironmentCase_ = 23; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4737,6 +6938,20 @@ public Builder clearExecutionIdentity() { return this; } + private int runtimeEnvironmentCase_ = 0; + private java.lang.Object runtimeEnvironment_; + + public RuntimeEnvironmentCase getRuntimeEnvironmentCase() { + return RuntimeEnvironmentCase.forNumber(runtimeEnvironmentCase_); + } + + public Builder clearRuntimeEnvironment() { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -5536,109 +7751,357 @@ public java.lang.String getNotebookRuntimeTemplateResourceName() { if (environmentSpecCase_ == 14) { environmentSpec_ = s; } - return s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for notebookRuntimeTemplateResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { + java.lang.Object ref = ""; + if (environmentSpecCase_ == 14) { + ref = environmentSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (environmentSpecCase_ == 14) { + environmentSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNotebookRuntimeTemplateResourceName() { + if (environmentSpecCase_ == 14) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The NotebookRuntimeTemplate to source compute configuration from.
+     * 
+ * + * + * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for notebookRuntimeTemplateResourceName to set. + * @return This builder for chaining. + */ + public Builder setNotebookRuntimeTemplateResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentSpecCase_ = 14; + environmentSpec_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + customEnvironmentSpecBuilder_; + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + @java.lang.Override + public boolean hasCustomEnvironmentSpec() { + return environmentSpecCase_ == 16; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } else { + if (environmentSpecCase_ == 16) { + return customEnvironmentSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentSpec_ = value; + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder setCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + builderForValue) { + if (customEnvironmentSpecBuilder_ == null) { + environmentSpec_ = builderForValue.build(); + onChanged(); + } else { + customEnvironmentSpecBuilder_.setMessage(builderForValue.build()); + } + environmentSpecCase_ = 16; + return this; + } + /** + * + * + *
+     * The custom compute configuration for an execution job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + public Builder mergeCustomEnvironmentSpec( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec value) { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16 + && environmentSpec_ + != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance()) { + environmentSpec_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpec) + environmentSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + environmentSpec_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (environmentSpecCase_ == 16) { + customEnvironmentSpecBuilder_.mergeFrom(value); + } else { + customEnvironmentSpecBuilder_.setMessage(value); + } } + environmentSpecCase_ = 16; + return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @return The bytes for notebookRuntimeTemplateResourceName. */ - @java.lang.Override - public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() { - java.lang.Object ref = ""; - if (environmentSpecCase_ == 14) { - ref = environmentSpec_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (environmentSpecCase_ == 14) { - environmentSpec_ = b; + public Builder clearCustomEnvironmentSpec() { + if (customEnvironmentSpecBuilder_ == null) { + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + onChanged(); } - return b; } else { - return (com.google.protobuf.ByteString) ref; + if (environmentSpecCase_ == 16) { + environmentSpecCase_ = 0; + environmentSpec_ = null; + } + customEnvironmentSpecBuilder_.clear(); } + return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @param value The notebookRuntimeTemplateResourceName to set. - * @return This builder for chaining. */ - public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - environmentSpecCase_ = 14; - environmentSpec_ = value; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder + getCustomEnvironmentSpecBuilder() { + return getCustomEnvironmentSpecFieldBuilder().getBuilder(); } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @return This builder for chaining. */ - public Builder clearNotebookRuntimeTemplateResourceName() { - if (environmentSpecCase_ == 14) { - environmentSpecCase_ = 0; - environmentSpec_ = null; - onChanged(); + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder() { + if ((environmentSpecCase_ == 16) && (customEnvironmentSpecBuilder_ != null)) { + return customEnvironmentSpecBuilder_.getMessageOrBuilder(); + } else { + if (environmentSpecCase_ == 16) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); } - return this; } /** * * *
-     * The NotebookRuntimeTemplate to source compute configuration from.
+     * The custom compute configuration for an execution job.
      * 
* * - * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... } + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; * - * - * @param value The bytes for notebookRuntimeTemplateResourceName to set. - * @return This builder for chaining. */ - public Builder setNotebookRuntimeTemplateResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder> + getCustomEnvironmentSpecFieldBuilder() { + if (customEnvironmentSpecBuilder_ == null) { + if (!(environmentSpecCase_ == 16)) { + environmentSpec_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .getDefaultInstance(); + } + customEnvironmentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + .Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob + .CustomEnvironmentSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec) + environmentSpec_, + getParentForChildren(), + isClean()); + environmentSpec_ = null; } - checkByteStringIsUtf8(value); - environmentSpecCase_ = 14; - environmentSpec_ = value; + environmentSpecCase_ = 16; onChanged(); - return this; + return customEnvironmentSpecBuilder_; } /** @@ -5934,119 +8397,363 @@ public boolean hasServiceAccount() { * * *
-     * The service account to run the execution as.
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (executionIdentityCase_ == 18) { + executionIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = ""; + if (executionIdentityCase_ == 18) { + ref = executionIdentity_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (executionIdentityCase_ == 18) { + executionIdentity_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + if (executionIdentityCase_ == 18) { + executionIdentityCase_ = 0; + executionIdentity_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The service account to run the execution as.
+     * 
+ * + * string service_account = 18; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionIdentityCase_ = 18; + executionIdentity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder> + workbenchRuntimeBuilder_; + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + @java.lang.Override + public boolean hasWorkbenchRuntime() { + return runtimeEnvironmentCase_ == 23; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + getWorkbenchRuntime() { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } else { + if (runtimeEnvironmentCase_ == 23) { + return workbenchRuntimeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + public Builder setWorkbenchRuntime( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime value) { + if (workbenchRuntimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeEnvironment_ = value; + onChanged(); + } else { + workbenchRuntimeBuilder_.setMessage(value); + } + runtimeEnvironmentCase_ = 23; + return this; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + public Builder setWorkbenchRuntime( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder + builderForValue) { + if (workbenchRuntimeBuilder_ == null) { + runtimeEnvironment_ = builderForValue.build(); + onChanged(); + } else { + workbenchRuntimeBuilder_.setMessage(builderForValue.build()); + } + runtimeEnvironmentCase_ = 23; + return this; + } + /** + * + * + *
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return The serviceAccount. + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = ""; - if (executionIdentityCase_ == 18) { - ref = executionIdentity_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (executionIdentityCase_ == 18) { - executionIdentity_ = s; + public Builder mergeWorkbenchRuntime( + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime value) { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23 + && runtimeEnvironment_ + != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance()) { + runtimeEnvironment_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.newBuilder( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeEnvironment_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + if (runtimeEnvironmentCase_ == 23) { + workbenchRuntimeBuilder_.mergeFrom(value); + } else { + workbenchRuntimeBuilder_.setMessage(value); + } } + runtimeEnvironmentCase_ = 23; + return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return The bytes for serviceAccount. + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = ""; - if (executionIdentityCase_ == 18) { - ref = executionIdentity_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (executionIdentityCase_ == 18) { - executionIdentity_ = b; + public Builder clearWorkbenchRuntime() { + if (workbenchRuntimeBuilder_ == null) { + if (runtimeEnvironmentCase_ == 23) { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + onChanged(); } - return b; } else { - return (com.google.protobuf.ByteString) ref; + if (runtimeEnvironmentCase_ == 23) { + runtimeEnvironmentCase_ = 0; + runtimeEnvironment_ = null; + } + workbenchRuntimeBuilder_.clear(); } + return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - executionIdentityCase_ = 18; - executionIdentity_ = value; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder + getWorkbenchRuntimeBuilder() { + return getWorkbenchRuntimeFieldBuilder().getBuilder(); } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder clearServiceAccount() { - if (executionIdentityCase_ == 18) { - executionIdentityCase_ = 0; - executionIdentity_ = null; - onChanged(); + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder() { + if ((runtimeEnvironmentCase_ == 23) && (workbenchRuntimeBuilder_ != null)) { + return workbenchRuntimeBuilder_.getMessageOrBuilder(); + } else { + if (runtimeEnvironmentCase_ == 23) { + return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_; + } + return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); } - return this; } /** * * *
-     * The service account to run the execution as.
+     * The Workbench runtime configuration to use for the notebook execution.
      * 
* - * string service_account = 18; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder> + getWorkbenchRuntimeFieldBuilder() { + if (workbenchRuntimeBuilder_ == null) { + if (!(runtimeEnvironmentCase_ == 23)) { + runtimeEnvironment_ = + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime + .getDefaultInstance(); + } + workbenchRuntimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime) + runtimeEnvironment_, + getParentForChildren(), + isClean()); + runtimeEnvironment_ = null; } - checkByteStringIsUtf8(value); - executionIdentityCase_ = 18; - executionIdentity_ = value; + runtimeEnvironmentCase_ = 23; onChanged(); - return this; + return workbenchRuntimeBuilder_; } private java.lang.Object name_ = ""; @@ -6114,7 +8821,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6132,7 +8839,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6155,7 +8862,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6225,7 +8932,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6243,7 +8950,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -6266,7 +8973,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6289,7 +8996,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -6329,7 +9036,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { } else { executionTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6348,7 +9055,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF } else { executionTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6363,7 +9070,7 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && executionTimeout_ != null && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getExecutionTimeoutBuilder().mergeFrom(value); @@ -6374,7 +9081,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { executionTimeoutBuilder_.mergeFrom(value); } if (executionTimeout_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -6389,7 +9096,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration execution_timeout = 5; */ public Builder clearExecutionTimeout() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); executionTimeout_ = null; if (executionTimeoutBuilder_ != null) { executionTimeoutBuilder_.dispose(); @@ -6408,7 +9115,7 @@ public Builder clearExecutionTimeout() { * .google.protobuf.Duration execution_timeout = 5; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } @@ -6530,7 +9237,7 @@ public Builder setScheduleResourceName(java.lang.String value) { throw new NullPointerException(); } scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6551,7 +9258,7 @@ public Builder setScheduleResourceName(java.lang.String value) { */ public Builder clearScheduleResourceName() { scheduleResourceName_ = getDefaultInstance().getScheduleResourceName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -6577,7 +9284,7 @@ public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); scheduleResourceName_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6616,7 +9323,7 @@ public int getJobStateValue() { */ public Builder setJobStateValue(int value) { jobState_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6657,7 +9364,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; jobState_ = value.getNumber(); onChanged(); return this; @@ -6676,7 +9383,7 @@ public Builder setJobState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearJobState() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); jobState_ = 0; onChanged(); return this; @@ -6700,7 +9407,7 @@ public Builder clearJobState() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6742,7 +9449,7 @@ public Builder setStatus(com.google.rpc.Status value) { } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6763,7 +9470,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6780,7 +9487,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00004000) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); @@ -6791,7 +9498,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -6808,7 +9515,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6829,7 +9536,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6896,7 +9603,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -6940,7 +9647,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6961,7 +9668,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6978,7 +9685,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00008000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -6989,7 +9696,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -7006,7 +9713,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -7027,7 +9734,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7100,7 +9807,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7146,7 +9853,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7168,7 +9875,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7186,7 +9893,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00010000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -7197,7 +9904,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -7215,7 +9922,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -7237,7 +9944,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7308,7 +10015,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return labels_; } @@ -7425,7 +10132,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7456,7 +10163,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7484,7 +10191,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } /** @@ -7506,7 +10213,118 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; + return this; + } + + private java.lang.Object kernelName_ = ""; + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + public com.google.protobuf.ByteString getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @param value The kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kernelName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @return This builder for chaining. + */ + public Builder clearKernelName() { + kernelName_ = getDefaultInstance().getKernelName(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the kernel to use during notebook execution. If unset, the
+     * default kernel is used.
+     * 
+ * + * string kernel_name = 20; + * + * @param value The bytes for kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kernelName_ = value; + bitField0_ |= 0x00040000; + onChanged(); return this; } @@ -7522,7 +10340,8 @@ public Builder putAllLabels(java.util.Map va *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -7530,7 +10349,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -7538,7 +10357,8 @@ public boolean hasEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -7560,7 +10380,8 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -7574,7 +10395,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7584,7 +10405,8 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -7596,7 +10418,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7606,14 +10428,15 @@ public Builder setEncryptionSpec( *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00080000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -7625,7 +10448,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -7636,13 +10459,14 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00080000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -7657,13 +10481,14 @@ public Builder clearEncryptionSpec() { *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -7673,7 +10498,8 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -7694,7 +10520,8 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS *
      * Customer-managed encryption key spec for the notebook execution job.
      * This field is auto-populated if the
-     * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+     * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+     * has an encryption spec.
      * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java index 7fbfcce6669b..101285e0cbdf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java @@ -198,6 +198,49 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return Whether the customEnvironmentSpec field is set. + */ + boolean hasCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + * + * @return The customEnvironmentSpec. + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec + getCustomEnvironmentSpec(); + /** + * + * + *
+   * The custom compute configuration for an execution job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpec custom_environment_spec = 16; + * + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.CustomEnvironmentSpecOrBuilder + getCustomEnvironmentSpecOrBuilder(); + /** * * @@ -312,6 +355,48 @@ public interface NotebookExecutionJobOrBuilder */ com.google.protobuf.ByteString getServiceAccountBytes(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return Whether the workbenchRuntime field is set. + */ + boolean hasWorkbenchRuntime(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + * + * @return The workbenchRuntime. + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime getWorkbenchRuntime(); + /** + * + * + *
+   * The Workbench runtime configuration to use for the notebook execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntime workbench_runtime = 23; + * + */ + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeOrBuilder + getWorkbenchRuntimeOrBuilder(); + /** * * @@ -681,13 +766,41 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The kernelName. + */ + java.lang.String getKernelName(); + /** + * + * + *
+   * The name of the kernel to use during notebook execution. If unset, the
+   * default kernel is used.
+   * 
+ * + * string kernel_name = 20; + * + * @return The bytes for kernelName. + */ + com.google.protobuf.ByteString getKernelNameBytes(); + /** * * *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -701,7 +814,8 @@ java.lang.String getLabelsOrDefault( *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -715,7 +829,8 @@ java.lang.String getLabelsOrDefault( *
    * Customer-managed encryption key spec for the notebook execution job.
    * This field is auto-populated if the
-   * [NotebookService.NotebookRuntimeTemplate][] has an encryption spec.
+   * [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate]
+   * has an encryption spec.
    * 
* * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 22; @@ -732,4 +847,7 @@ java.lang.String getLabelsOrDefault( com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.ExecutionIdentityCase getExecutionIdentityCase(); + + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.RuntimeEnvironmentCase + getRuntimeEnvironmentCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java index d5ef863487f9..e8f7a8ea0ba9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DirectNotebookSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DirectNotebookSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,55 +71,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "or.proto\032\031google/api/resource.proto\0325goo" + "gle/cloud/aiplatform/v1beta1/encryption_" + "spec.proto\032/google/cloud/aiplatform/v1be" - + "ta1/job_state.proto\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\"\260\014\n\024Notebo" - + "okExecutionJob\022t\n\032dataform_repository_so" - + "urce\030\003 \001(\0132N.google.cloud.aiplatform.v1b" - + "eta1.NotebookExecutionJob.DataformReposi" - + "torySourceH\000\022f\n\023gcs_notebook_source\030\004 \001(" - + "\0132G.google.cloud.aiplatform.v1beta1.Note" - + "bookExecutionJob.GcsNotebookSourceH\000\022l\n\026" - + "direct_notebook_source\030\021 \001(\0132J.google.cl" - + "oud.aiplatform.v1beta1.NotebookExecution" - + "Job.DirectNotebookSourceH\000\022i\n\'notebook_r" - + "untime_template_resource_name\030\016 \001(\tB6\372A3" - + "\n1aiplatform.googleapis.com/NotebookRunt" - + "imeTemplateH\001\022\030\n\016gcs_output_uri\030\010 \001(\tH\002\022" - + "\030\n\016execution_user\030\t \001(\tH\003\022\031\n\017service_acc" - + "ount\030\022 \001(\tH\003\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014displ" - + "ay_name\030\002 \001(\t\0224\n\021execution_timeout\030\005 \001(\013" - + "2\031.google.protobuf.Duration\022J\n\026schedule_" - + "resource_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplatform." - + "googleapis.com/Schedule\022A\n\tjob_state\030\n \001" - + "(\0162).google.cloud.aiplatform.v1beta1.Job" - + "StateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.google.rpc." - + "StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "Q\n\006labels\030\023 \003(\0132A.google.cloud.aiplatfor" - + "m.v1beta1.NotebookExecutionJob.LabelsEnt" - + "ry\022H\n\017encryption_spec\030\026 \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.EncryptionSpec\032Y\n\030" - + "DataformRepositorySource\022)\n!dataform_rep" - + "ository_resource_name\030\001 \001(\t\022\022\n\ncommit_sh" - + "a\030\002 \001(\t\0324\n\021GcsNotebookSource\022\013\n\003uri\030\001 \001(" - + "\t\022\022\n\ngeneration\030\002 \001(\t\032\'\n\024DirectNotebookS" - + "ource\022\017\n\007content\030\001 \001(\014\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n.ai" - + "platform.googleapis.com/NotebookExecutio" - + "nJob\022Vprojects/{project}/locations/{loca" - + "tion}/notebookExecutionJobs/{notebook_ex" - + "ecution_job}*\025notebookExecutionJobs2\024not" - + "ebookExecutionJobB\021\n\017notebook_sourceB\022\n\020" - + "environment_specB\020\n\016execution_sinkB\024\n\022ex" - + "ecution_identityB\360\001\n#com.google.cloud.ai" - + "platform.v1beta1B\031NotebookExecutionJobPr" - + "otoP\001ZCcloud.google.com/go/aiplatform/ap" - + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + "ta1/job_state.proto\0327google/cloud/aiplat" + + "form/v1beta1/machine_resources.proto\0322go" + + "ogle/cloud/aiplatform/v1beta1/network_sp" + + "ec.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\032\027googl" + + "e/rpc/status.proto\"\272\020\n\024NotebookExecution" + + "Job\022t\n\032dataform_repository_source\030\003 \001(\0132" + + "N.google.cloud.aiplatform.v1beta1.Notebo" + + "okExecutionJob.DataformRepositorySourceH" + + "\000\022f\n\023gcs_notebook_source\030\004 \001(\0132G.google." + + "cloud.aiplatform.v1beta1.NotebookExecuti" + + "onJob.GcsNotebookSourceH\000\022l\n\026direct_note" + + "book_source\030\021 \001(\0132J.google.cloud.aiplatf" + + "orm.v1beta1.NotebookExecutionJob.DirectN" + + "otebookSourceH\000\022i\n\'notebook_runtime_temp" + + "late_resource_name\030\016 \001(\tB6\372A3\n1aiplatfor" + + "m.googleapis.com/NotebookRuntimeTemplate" + + "H\001\022n\n\027custom_environment_spec\030\020 \001(\0132K.go" + + "ogle.cloud.aiplatform.v1beta1.NotebookEx" + + "ecutionJob.CustomEnvironmentSpecH\001\022\030\n\016gc" + + "s_output_uri\030\010 \001(\tH\002\022\030\n\016execution_user\030\t" + + " \001(\tH\003\022\031\n\017service_account\030\022 \001(\tH\003\022c\n\021wor" + + "kbench_runtime\030\027 \001(\0132F.google.cloud.aipl" + + "atform.v1beta1.NotebookExecutionJob.Work" + + "benchRuntimeH\004\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014dis" + + "play_name\030\002 \001(\t\0224\n\021execution_timeout\030\005 \001" + + "(\0132\031.google.protobuf.Duration\022J\n\026schedul" + + "e_resource_name\030\006 \001(\tB*\340A\003\372A$\n\"aiplatfor" + + "m.googleapis.com/Schedule\022A\n\tjob_state\030\n" + + " \001(\0162).google.cloud.aiplatform.v1beta1.J" + + "obStateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022.google.rp" + + "c.StatusB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022Q\n\006labels\030\023 \003(\0132A.google.cloud.aiplatf" + + "orm.v1beta1.NotebookExecutionJob.LabelsE" + + "ntry\022\023\n\013kernel_name\030\024 \001(\t\022H\n\017encryption_" + + "spec\030\026 \001(\0132/.google.cloud.aiplatform.v1b" + + "eta1.EncryptionSpec\032Y\n\030DataformRepositor" + + "ySource\022)\n!dataform_repository_resource_" + + "name\030\001 \001(\t\022\022\n\ncommit_sha\030\002 \001(\t\0324\n\021GcsNot" + + "ebookSource\022\013\n\003uri\030\001 \001(\t\022\022\n\ngeneration\030\002" + + " \001(\t\032\'\n\024DirectNotebookSource\022\017\n\007content\030" + + "\001 \001(\014\032\362\001\n\025CustomEnvironmentSpec\022B\n\014machi" + + "ne_spec\030\001 \001(\0132,.google.cloud.aiplatform." + + "v1beta1.MachineSpec\022Q\n\024persistent_disk_s" + + "pec\030\002 \001(\01323.google.cloud.aiplatform.v1be" + + "ta1.PersistentDiskSpec\022B\n\014network_spec\030\003" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.N" + + "etworkSpec\032\022\n\020WorkbenchRuntime\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\271\001" + + "\352A\265\001\n.aiplatform.googleapis.com/Notebook" + + "ExecutionJob\022Vprojects/{project}/locatio" + + "ns/{location}/notebookExecutionJobs/{not" + + "ebook_execution_job}*\025notebookExecutionJ" + + "obs2\024notebookExecutionJobB\021\n\017notebook_so" + + "urceB\022\n\020environment_specB\020\n\016execution_si" + + "nkB\024\n\022execution_identityB\025\n\023runtime_envi" + + "ronmentB\360\001\n#com.google.cloud.aiplatform." + + "v1beta1B\031NotebookExecutionJobProtoP\001ZCcl" + + "oud.google.com/go/aiplatform/apiv1beta1/" + + "aiplatformpb;aiplatformpb\252\002\037Google.Cloud" + + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" + + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" + + "m::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,6 +145,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.NetworkSpecProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -135,9 +161,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsNotebookSource", "DirectNotebookSource", "NotebookRuntimeTemplateResourceName", + "CustomEnvironmentSpec", "GcsOutputUri", "ExecutionUser", "ServiceAccount", + "WorkbenchRuntime", "Name", "DisplayName", "ExecutionTimeout", @@ -147,11 +175,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Labels", + "KernelName", "EncryptionSpec", "NotebookSource", "EnvironmentSpec", "ExecutionSink", "ExecutionIdentity", + "RuntimeEnvironment", }); internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_descriptor = internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor @@ -183,10 +213,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", }); - internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor .getNestedTypes() .get(3); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_CustomEnvironmentSpec_descriptor, + new java.lang.String[] { + "MachineSpec", "PersistentDiskSpec", "NetworkSpec", + }); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_WorkbenchRuntime_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor + .getNestedTypes() + .get(5); internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_LabelsEntry_descriptor, @@ -204,6 +252,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.NetworkSpecProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfig.java new file mode 100644 index 000000000000..7790d3e08b8d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfig.java @@ -0,0 +1,664 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The configuration for the prebuilt speaker to use.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig} + */ +public final class PrebuiltVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) + PrebuiltVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrebuiltVoiceConfig.newBuilder() to construct. + private PrebuiltVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrebuiltVoiceConfig() { + voiceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrebuiltVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder.class); + } + + private int bitField0_; + public static final int VOICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceName_ = ""; + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + @java.lang.Override + public boolean hasVoiceName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + @java.lang.Override + public java.lang.String getVoiceName() { + java.lang.Object ref = voiceName_; + 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(); + voiceName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceNameBytes() { + java.lang.Object ref = voiceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voiceName_); + } + 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.GeneratedMessageV3.computeStringSize(1, voiceName_); + } + 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.PrebuiltVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig other = + (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) obj; + + if (hasVoiceName() != other.hasVoiceName()) return false; + if (hasVoiceName()) { + if (!getVoiceName().equals(other.getVoiceName())) 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 (hasVoiceName()) { + hash = (37 * hash) + VOICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVoiceName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig 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.PrebuiltVoiceConfig 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 configuration for the prebuilt speaker to use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig build() { + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig result = + new com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceName_ = voiceName_; + 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.v1beta1.PrebuiltVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance()) + return this; + if (other.hasVoiceName()) { + voiceName_ = other.voiceName_; + 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: + { + voiceName_ = 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 voiceName_ = ""; + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + public boolean hasVoiceName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + public java.lang.String getVoiceName() { + java.lang.Object ref = voiceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + public com.google.protobuf.ByteString getVoiceNameBytes() { + java.lang.Object ref = voiceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @param value The voiceName to set. + * @return This builder for chaining. + */ + public Builder setVoiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearVoiceName() { + voiceName_ = getDefaultInstance().getVoiceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the preset voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @param value The bytes for voiceName to set. + * @return This builder for chaining. + */ + public Builder setVoiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceName_ = 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.PrebuiltVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) + private static final com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuiltVoiceConfig 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.PrebuiltVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..2527b4171eda --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrebuiltVoiceConfigOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface PrebuiltVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + boolean hasVoiceName(); + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + java.lang.String getVoiceName(); + /** + * + * + *
+   * The name of the preset voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + com.google.protobuf.ByteString getVoiceNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequest.java index c976cb073e76..f713ff17b67b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequest.java @@ -40,6 +40,7 @@ private QueryReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Build private QueryReasoningEngineRequest() { name_ = ""; + classMethod_ = ""; } @java.lang.Override @@ -172,6 +173,59 @@ public com.google.protobuf.StructOrBuilder getInputOrBuilder() { return input_ == null ? com.google.protobuf.Struct.getDefaultInstance() : input_; } + public static final int CLASS_METHOD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object classMethod_ = ""; + /** + * + * + *
+   * Optional. Class method to be used for the query.
+   * It is optional and defaults to "query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + @java.lang.Override + public java.lang.String getClassMethod() { + java.lang.Object ref = classMethod_; + 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(); + classMethod_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Class method to be used for the query.
+   * It is optional and defaults to "query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClassMethodBytes() { + java.lang.Object ref = classMethod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + classMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -192,6 +246,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getInput()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classMethod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, classMethod_); + } getUnknownFields().writeTo(output); } @@ -207,6 +264,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInput()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classMethod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, classMethod_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -228,6 +288,7 @@ public boolean equals(final java.lang.Object obj) { if (hasInput()) { if (!getInput().equals(other.getInput())) return false; } + if (!getClassMethod().equals(other.getClassMethod())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,6 +306,8 @@ public int hashCode() { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } + hash = (37 * hash) + CLASS_METHOD_FIELD_NUMBER; + hash = (53 * hash) + getClassMethod().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -400,6 +463,7 @@ public Builder clear() { inputBuilder_.dispose(); inputBuilder_ = null; } + classMethod_ = ""; return this; } @@ -446,6 +510,9 @@ private void buildPartial0( result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.classMethod_ = classMethod_; + } result.bitField0_ |= to_bitField0_; } @@ -505,6 +572,11 @@ public Builder mergeFrom( if (other.hasInput()) { mergeInput(other.getInput()); } + if (!other.getClassMethod().isEmpty()) { + classMethod_ = other.classMethod_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -543,6 +615,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + classMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -877,6 +955,117 @@ public com.google.protobuf.StructOrBuilder getInputOrBuilder() { return inputBuilder_; } + private java.lang.Object classMethod_ = ""; + /** + * + * + *
+     * Optional. Class method to be used for the query.
+     * It is optional and defaults to "query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + public java.lang.String getClassMethod() { + java.lang.Object ref = classMethod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + classMethod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Class method to be used for the query.
+     * It is optional and defaults to "query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + public com.google.protobuf.ByteString getClassMethodBytes() { + java.lang.Object ref = classMethod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + classMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Class method to be used for the query.
+     * It is optional and defaults to "query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The classMethod to set. + * @return This builder for chaining. + */ + public Builder setClassMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + classMethod_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Class method to be used for the query.
+     * It is optional and defaults to "query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClassMethod() { + classMethod_ = getDefaultInstance().getClassMethod(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Class method to be used for the query.
+     * It is optional and defaults to "query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for classMethod to set. + * @return This builder for chaining. + */ + public Builder setClassMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + classMethod_ = value; + bitField0_ |= 0x00000004; + 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/QueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequestOrBuilder.java index 935a625d4044..d0ad41e1b1ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryReasoningEngineRequestOrBuilder.java @@ -94,4 +94,31 @@ public interface QueryReasoningEngineRequestOrBuilder * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getInputOrBuilder(); + + /** + * + * + *
+   * Optional. Class method to be used for the query.
+   * It is optional and defaults to "query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + java.lang.String getClassMethod(); + /** + * + * + *
+   * Optional. Class method to be used for the query.
+   * It is optional and defaults to "query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + com.google.protobuf.ByteString getClassMethodBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java index a93fe8e593ca..6aadb7e0cedd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java @@ -72,9 +72,9 @@ public interface ContextOrBuilder * * *
-     * For vertex RagStore, if the file is imported from Cloud Storage or Google
-     * Drive, source_uri will be original file URI in Cloud Storage or Google
-     * Drive; if file is uploaded, source_uri will be file display name.
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
      * 
* * string source_uri = 1; @@ -86,9 +86,9 @@ public interface ContextOrBuilder * * *
-     * For vertex RagStore, if the file is imported from Cloud Storage or Google
-     * Drive, source_uri will be original file URI in Cloud Storage or Google
-     * Drive; if file is uploaded, source_uri will be file display name.
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
      * 
* * string source_uri = 1; @@ -97,6 +97,31 @@ public interface ContextOrBuilder */ com.google.protobuf.ByteString getSourceUriBytes(); + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + java.lang.String getSourceDisplayName(); + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + com.google.protobuf.ByteString getSourceDisplayNameBytes(); + /** * * @@ -130,10 +155,13 @@ public interface ContextOrBuilder * text vector. * * - * double distance = 3; + * double distance = 3 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=181 * @return The distance. */ + @java.lang.Deprecated double getDistance(); /** @@ -144,11 +172,53 @@ public interface ContextOrBuilder * text vector. * * - * double sparse_distance = 4; + * double sparse_distance = 4 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=185 * @return The sparseDistance. */ + @java.lang.Deprecated double getSparseDistance(); + + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + double getScore(); } /** * @@ -171,6 +241,7 @@ private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Context() { sourceUri_ = ""; + sourceDisplayName_ = ""; text_ = ""; } @@ -195,6 +266,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.RagContexts.Context.Builder.class); } + private int bitField0_; public static final int SOURCE_URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -203,9 +275,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * For vertex RagStore, if the file is imported from Cloud Storage or Google
-     * Drive, source_uri will be original file URI in Cloud Storage or Google
-     * Drive; if file is uploaded, source_uri will be file display name.
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
      * 
* * string source_uri = 1; @@ -228,9 +300,9 @@ public java.lang.String getSourceUri() { * * *
-     * For vertex RagStore, if the file is imported from Cloud Storage or Google
-     * Drive, source_uri will be original file URI in Cloud Storage or Google
-     * Drive; if file is uploaded, source_uri will be file display name.
+     * If the file is imported from Cloud Storage or Google Drive, source_uri
+     * will be original file URI in Cloud Storage or Google Drive; if file is
+     * uploaded, source_uri will be file display name.
      * 
* * string source_uri = 1; @@ -250,6 +322,57 @@ public com.google.protobuf.ByteString getSourceUriBytes() { } } + public static final int SOURCE_DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceDisplayName_ = ""; + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + @java.lang.Override + public java.lang.String getSourceDisplayName() { + java.lang.Object ref = sourceDisplayName_; + 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(); + sourceDisplayName_ = s; + return s; + } + } + /** + * + * + *
+     * The file display name.
+     * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceDisplayNameBytes() { + java.lang.Object ref = sourceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -311,11 +434,14 @@ public com.google.protobuf.ByteString getTextBytes() { * text vector. * * - * double distance = 3; + * double distance = 3 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=181 * @return The distance. */ @java.lang.Override + @java.lang.Deprecated public double getDistance() { return distance_; } @@ -330,15 +456,65 @@ public double getDistance() { * text vector. * * - * double sparse_distance = 4; + * double sparse_distance = 4 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=185 * @return The sparseDistance. */ @java.lang.Override + @java.lang.Deprecated public double getSparseDistance() { return sparseDistance_; } + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * According to the underlying Vector DB and the selected metric type, the
+     * score can be either the distance or the similarity between the query and
+     * the context and its range depends on the metric type.
+     *
+     * For example, if the metric type is COSINE_DISTANCE, it represents the
+     * distance between the query and the context. The larger the distance, the
+     * less relevant the context is to the query. The range is [0, 2], while 0
+     * means the most relevant and 2 means the least relevant.
+     * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -365,6 +541,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(sparseDistance_) != 0) { output.writeDouble(4, sparseDistance_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(6, score_); + } getUnknownFields().writeTo(output); } @@ -386,6 +568,12 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(sparseDistance_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, sparseDistance_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -403,11 +591,17 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.RagContexts.Context) obj; if (!getSourceUri().equals(other.getSourceUri())) return false; + if (!getSourceDisplayName().equals(other.getSourceDisplayName())) return false; if (!getText().equals(other.getText())) return false; if (java.lang.Double.doubleToLongBits(getDistance()) != java.lang.Double.doubleToLongBits(other.getDistance())) return false; if (java.lang.Double.doubleToLongBits(getSparseDistance()) != java.lang.Double.doubleToLongBits(other.getSparseDistance())) return false; + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,6 +615,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SOURCE_URI_FIELD_NUMBER; hash = (53 * hash) + getSourceUri().hashCode(); + hash = (37 * hash) + SOURCE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSourceDisplayName().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + DISTANCE_FIELD_NUMBER; @@ -433,6 +629,13 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSparseDistance())); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -576,9 +779,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; sourceUri_ = ""; + sourceDisplayName_ = ""; text_ = ""; distance_ = 0D; sparseDistance_ = 0D; + score_ = 0D; return this; } @@ -619,14 +824,23 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagContexts.Conte result.sourceUri_ = sourceUri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.text_ = text_; + result.sourceDisplayName_ = sourceDisplayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.distance_ = distance_; + result.text_ = text_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.distance_ = distance_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.sparseDistance_ = sparseDistance_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -682,9 +896,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagContexts.Context bitField0_ |= 0x00000001; onChanged(); } + if (!other.getSourceDisplayName().isEmpty()) { + sourceDisplayName_ = other.sourceDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } if (!other.getText().isEmpty()) { text_ = other.text_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.getDistance() != 0D) { @@ -693,6 +912,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagContexts.Context if (other.getSparseDistance() != 0D) { setSparseDistance(other.getSparseDistance()); } + if (other.hasScore()) { + setScore(other.getScore()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -728,21 +950,33 @@ public Builder mergeFrom( case 18: { text_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 25: { distance_ = input.readDouble(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 25 case 33: { sparseDistance_ = input.readDouble(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 33 + case 42: + { + sourceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -767,9 +1001,9 @@ public Builder mergeFrom( * * *
-       * For vertex RagStore, if the file is imported from Cloud Storage or Google
-       * Drive, source_uri will be original file URI in Cloud Storage or Google
-       * Drive; if file is uploaded, source_uri will be file display name.
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
        * 
* * string source_uri = 1; @@ -791,9 +1025,9 @@ public java.lang.String getSourceUri() { * * *
-       * For vertex RagStore, if the file is imported from Cloud Storage or Google
-       * Drive, source_uri will be original file URI in Cloud Storage or Google
-       * Drive; if file is uploaded, source_uri will be file display name.
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
        * 
* * string source_uri = 1; @@ -815,9 +1049,9 @@ public com.google.protobuf.ByteString getSourceUriBytes() { * * *
-       * For vertex RagStore, if the file is imported from Cloud Storage or Google
-       * Drive, source_uri will be original file URI in Cloud Storage or Google
-       * Drive; if file is uploaded, source_uri will be file display name.
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
        * 
* * string source_uri = 1; @@ -838,9 +1072,9 @@ public Builder setSourceUri(java.lang.String value) { * * *
-       * For vertex RagStore, if the file is imported from Cloud Storage or Google
-       * Drive, source_uri will be original file URI in Cloud Storage or Google
-       * Drive; if file is uploaded, source_uri will be file display name.
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
        * 
* * string source_uri = 1; @@ -857,9 +1091,9 @@ public Builder clearSourceUri() { * * *
-       * For vertex RagStore, if the file is imported from Cloud Storage or Google
-       * Drive, source_uri will be original file URI in Cloud Storage or Google
-       * Drive; if file is uploaded, source_uri will be file display name.
+       * If the file is imported from Cloud Storage or Google Drive, source_uri
+       * will be original file URI in Cloud Storage or Google Drive; if file is
+       * uploaded, source_uri will be file display name.
        * 
* * string source_uri = 1; @@ -878,6 +1112,112 @@ public Builder setSourceUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceDisplayName_ = ""; + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return The sourceDisplayName. + */ + public java.lang.String getSourceDisplayName() { + java.lang.Object ref = sourceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return The bytes for sourceDisplayName. + */ + public com.google.protobuf.ByteString getSourceDisplayNameBytes() { + java.lang.Object ref = sourceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @param value The sourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSourceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearSourceDisplayName() { + sourceDisplayName_ = getDefaultInstance().getSourceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The file display name.
+       * 
+ * + * string source_display_name = 5; + * + * @param value The bytes for sourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSourceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private java.lang.Object text_ = ""; /** * @@ -940,7 +1280,7 @@ public Builder setText(java.lang.String value) { throw new NullPointerException(); } text_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -957,7 +1297,7 @@ public Builder setText(java.lang.String value) { */ public Builder clearText() { text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -979,7 +1319,7 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); text_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -993,11 +1333,14 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * text vector. * * - * double distance = 3; + * double distance = 3 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=181 * @return The distance. */ @java.lang.Override + @java.lang.Deprecated public double getDistance() { return distance_; } @@ -1009,15 +1352,18 @@ public double getDistance() { * text vector. * * - * double distance = 3; + * double distance = 3 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=181 * @param value The distance to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDistance(double value) { distance_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1029,12 +1375,15 @@ public Builder setDistance(double value) { * text vector. * * - * double distance = 3; + * double distance = 3 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=181 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDistance() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); distance_ = 0D; onChanged(); return this; @@ -1049,11 +1398,14 @@ public Builder clearDistance() { * text vector. * * - * double sparse_distance = 4; + * double sparse_distance = 4 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=185 * @return The sparseDistance. */ @java.lang.Override + @java.lang.Deprecated public double getSparseDistance() { return sparseDistance_; } @@ -1065,15 +1417,18 @@ public double getSparseDistance() { * text vector. * * - * double sparse_distance = 4; + * double sparse_distance = 4 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=185 * @param value The sparseDistance to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSparseDistance(double value) { sparseDistance_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1085,17 +1440,116 @@ public Builder setSparseDistance(double value) { * text vector. * * - * double sparse_distance = 4; + * double sparse_distance = 4 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=185 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSparseDistance() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); sparseDistance_ = 0D; onChanged(); return this; } + private double score_; + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * According to the underlying Vector DB and the selected metric type, the
+       * score can be either the distance or the similarity between the query and
+       * the context and its range depends on the metric type.
+       *
+       * For example, if the metric type is COSINE_DISTANCE, it represents the
+       * distance between the query and the context. The larger the distance, the
+       * less relevant the context is to the query. The range is [0, 2], while 0
+       * means the most relevant and 2 means the least relevant.
+       * 
+ * + * optional double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000020); + score_ = 0D; + 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java index 6a5a739076fe..96c74747a15c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java @@ -67,6 +67,55 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int backendConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object backendConfig_; + + public enum BackendConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR_DB_CONFIG(9), + VERTEX_AI_SEARCH_CONFIG(10), + BACKENDCONFIG_NOT_SET(0); + private final int value; + + private BackendConfigCase(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 BackendConfigCase valueOf(int value) { + return forNumber(value); + } + + public static BackendConfigCase forNumber(int value) { + switch (value) { + case 9: + return VECTOR_DB_CONFIG; + case 10: + return VERTEX_AI_SEARCH_CONFIG; + case 0: + return BACKENDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BackendConfigCase getBackendConfigCase() { + return BackendConfigCase.forNumber(backendConfigCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -234,12 +283,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRagEmbeddingModelConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -251,12 +303,15 @@ public boolean hasRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return The ragEmbeddingModelConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddingModelConfig() { return ragEmbeddingModelConfig_ == null ? com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.getDefaultInstance() @@ -270,10 +325,11 @@ public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddi * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder getRagEmbeddingModelConfigOrBuilder() { return ragEmbeddingModelConfig_ == null @@ -291,12 +347,15 @@ public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddi * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRagVectorDbConfig() { return ((bitField0_ & 0x00000002) != 0); } @@ -308,12 +367,15 @@ public boolean hasRagVectorDbConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return The ragVectorDbConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getRagVectorDbConfig() { return ragVectorDbConfig_ == null ? com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance() @@ -327,10 +389,11 @@ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getRagVectorDbConfi * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder getRagVectorDbConfigOrBuilder() { return ragVectorDbConfig_ == null @@ -492,6 +555,122 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus : corpusStatus_; } + public static final int VECTOR_DB_CONFIG_FIELD_NUMBER = 9; + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + @java.lang.Override + public boolean hasVectorDbConfig() { + return backendConfigCase_ == 9; + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getVectorDbConfig() { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder + getVectorDbConfigOrBuilder() { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } + + public static final int VERTEX_AI_SEARCH_CONFIG_FIELD_NUMBER = 10; + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vertexAiSearchConfig field is set. + */ + @java.lang.Override + public boolean hasVertexAiSearchConfig() { + return backendConfigCase_ == 10; + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vertexAiSearchConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig getVertexAiSearchConfig() { + if (backendConfigCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder + getVertexAiSearchConfigOrBuilder() { + if (backendConfigCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -530,6 +709,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getCorpusStatus()); } + if (backendConfigCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_); + } + if (backendConfigCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_); + } getUnknownFields().writeTo(output); } @@ -564,6 +751,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCorpusStatus()); } + if (backendConfigCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_); + } + if (backendConfigCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -603,6 +800,17 @@ public boolean equals(final java.lang.Object obj) { if (hasCorpusStatus()) { if (!getCorpusStatus().equals(other.getCorpusStatus())) return false; } + if (!getBackendConfigCase().equals(other.getBackendConfigCase())) return false; + switch (backendConfigCase_) { + case 9: + if (!getVectorDbConfig().equals(other.getVectorDbConfig())) return false; + break; + case 10: + if (!getVertexAiSearchConfig().equals(other.getVertexAiSearchConfig())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -640,6 +848,18 @@ public int hashCode() { hash = (37 * hash) + CORPUS_STATUS_FIELD_NUMBER; hash = (53 * hash) + getCorpusStatus().hashCode(); } + switch (backendConfigCase_) { + case 9: + hash = (37 * hash) + VECTOR_DB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVectorDbConfig().hashCode(); + break; + case 10: + hash = (37 * hash) + VERTEX_AI_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVertexAiSearchConfig().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -821,6 +1041,14 @@ public Builder clear() { corpusStatusBuilder_.dispose(); corpusStatusBuilder_ = null; } + if (vectorDbConfigBuilder_ != null) { + vectorDbConfigBuilder_.clear(); + } + if (vertexAiSearchConfigBuilder_ != null) { + vertexAiSearchConfigBuilder_.clear(); + } + backendConfigCase_ = 0; + backendConfig_ = null; return this; } @@ -851,6 +1079,7 @@ public com.google.cloud.aiplatform.v1beta1.RagCorpus buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -897,6 +1126,17 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagCorpus result) result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.RagCorpus result) { + result.backendConfigCase_ = backendConfigCase_; + result.backendConfig_ = this.backendConfig_; + if (backendConfigCase_ == 9 && vectorDbConfigBuilder_ != null) { + result.backendConfig_ = vectorDbConfigBuilder_.build(); + } + if (backendConfigCase_ == 10 && vertexAiSearchConfigBuilder_ != null) { + result.backendConfig_ = vertexAiSearchConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -972,6 +1212,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagCorpus other) { if (other.hasCorpusStatus()) { mergeCorpusStatus(other.getCorpusStatus()); } + switch (other.getBackendConfigCase()) { + case VECTOR_DB_CONFIG: + { + mergeVectorDbConfig(other.getVectorDbConfig()); + break; + } + case VERTEX_AI_SEARCH_CONFIG: + { + mergeVertexAiSearchConfig(other.getVertexAiSearchConfig()); + break; + } + case BACKENDCONFIG_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1048,6 +1304,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + input.readMessage(getVectorDbConfigFieldBuilder().getBuilder(), extensionRegistry); + backendConfigCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getVertexAiSearchConfigFieldBuilder().getBuilder(), extensionRegistry); + backendConfigCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1065,6 +1334,20 @@ public Builder mergeFrom( return this; } + private int backendConfigCase_ = 0; + private java.lang.Object backendConfig_; + + public BackendConfigCase getBackendConfigCase() { + return BackendConfigCase.forNumber(backendConfigCase_); + } + + public Builder clearBackendConfig() { + backendConfigCase_ = 0; + backendConfig_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -1409,11 +1692,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return Whether the ragEmbeddingModelConfig field is set. */ + @java.lang.Deprecated public boolean hasRagEmbeddingModelConfig() { return ((bitField0_ & 0x00000008) != 0); } @@ -1425,11 +1711,14 @@ public boolean hasRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return The ragEmbeddingModelConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddingModelConfig() { if (ragEmbeddingModelConfigBuilder_ == null) { @@ -1448,9 +1737,10 @@ public boolean hasRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder setRagEmbeddingModelConfig( com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) { if (ragEmbeddingModelConfigBuilder_ == null) { @@ -1473,9 +1763,10 @@ public Builder setRagEmbeddingModelConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder setRagEmbeddingModelConfig( com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder builderForValue) { if (ragEmbeddingModelConfigBuilder_ == null) { @@ -1495,9 +1786,10 @@ public Builder setRagEmbeddingModelConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder mergeRagEmbeddingModelConfig( com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) { if (ragEmbeddingModelConfigBuilder_ == null) { @@ -1527,9 +1819,10 @@ public Builder mergeRagEmbeddingModelConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder clearRagEmbeddingModelConfig() { bitField0_ = (bitField0_ & ~0x00000008); ragEmbeddingModelConfig_ = null; @@ -1548,9 +1841,10 @@ public Builder clearRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder getRagEmbeddingModelConfigBuilder() { bitField0_ |= 0x00000008; @@ -1565,9 +1859,10 @@ public Builder clearRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder getRagEmbeddingModelConfigOrBuilder() { if (ragEmbeddingModelConfigBuilder_ != null) { @@ -1586,7 +1881,7 @@ public Builder clearRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -1620,11 +1915,14 @@ public Builder clearRagEmbeddingModelConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return Whether the ragVectorDbConfig field is set. */ + @java.lang.Deprecated public boolean hasRagVectorDbConfig() { return ((bitField0_ & 0x00000010) != 0); } @@ -1636,11 +1934,14 @@ public boolean hasRagVectorDbConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return The ragVectorDbConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getRagVectorDbConfig() { if (ragVectorDbConfigBuilder_ == null) { return ragVectorDbConfig_ == null @@ -1658,9 +1959,10 @@ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getRagVectorDbConfi * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder setRagVectorDbConfig( com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig value) { if (ragVectorDbConfigBuilder_ == null) { @@ -1683,9 +1985,10 @@ public Builder setRagVectorDbConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder setRagVectorDbConfig( com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder builderForValue) { if (ragVectorDbConfigBuilder_ == null) { @@ -1705,9 +2008,10 @@ public Builder setRagVectorDbConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder mergeRagVectorDbConfig( com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig value) { if (ragVectorDbConfigBuilder_ == null) { @@ -1736,9 +2040,10 @@ public Builder mergeRagVectorDbConfig( * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public Builder clearRagVectorDbConfig() { bitField0_ = (bitField0_ & ~0x00000010); ragVectorDbConfig_ = null; @@ -1757,9 +2062,10 @@ public Builder clearRagVectorDbConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder getRagVectorDbConfigBuilder() { bitField0_ |= 0x00000010; @@ -1774,9 +2080,10 @@ public Builder clearRagVectorDbConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder getRagVectorDbConfigOrBuilder() { if (ragVectorDbConfigBuilder_ != null) { @@ -1795,7 +2102,7 @@ public Builder clearRagVectorDbConfig() { * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -2426,6 +2733,471 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus return corpusStatusBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder> + vectorDbConfigBuilder_; + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + @java.lang.Override + public boolean hasVectorDbConfig() { + return backendConfigCase_ == 9; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getVectorDbConfig() { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } else { + if (backendConfigCase_ == 9) { + return vectorDbConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVectorDbConfig(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig value) { + if (vectorDbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendConfig_ = value; + onChanged(); + } else { + vectorDbConfigBuilder_.setMessage(value); + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVectorDbConfig( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder builderForValue) { + if (vectorDbConfigBuilder_ == null) { + backendConfig_ = builderForValue.build(); + onChanged(); + } else { + vectorDbConfigBuilder_.setMessage(builderForValue.build()); + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeVectorDbConfig( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig value) { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9 + && backendConfig_ + != com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance()) { + backendConfig_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + backendConfig_ = value; + } + onChanged(); + } else { + if (backendConfigCase_ == 9) { + vectorDbConfigBuilder_.mergeFrom(value); + } else { + vectorDbConfigBuilder_.setMessage(value); + } + } + backendConfigCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearVectorDbConfig() { + if (vectorDbConfigBuilder_ == null) { + if (backendConfigCase_ == 9) { + backendConfigCase_ = 0; + backendConfig_ = null; + onChanged(); + } + } else { + if (backendConfigCase_ == 9) { + backendConfigCase_ = 0; + backendConfig_ = null; + } + vectorDbConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder + getVectorDbConfigBuilder() { + return getVectorDbConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder + getVectorDbConfigOrBuilder() { + if ((backendConfigCase_ == 9) && (vectorDbConfigBuilder_ != null)) { + return vectorDbConfigBuilder_.getMessageOrBuilder(); + } else { + if (backendConfigCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vector DBs.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder> + getVectorDbConfigFieldBuilder() { + if (vectorDbConfigBuilder_ == null) { + if (!(backendConfigCase_ == 9)) { + backendConfig_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.getDefaultInstance(); + } + vectorDbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig) backendConfig_, + getParentForChildren(), + isClean()); + backendConfig_ = null; + } + backendConfigCase_ = 9; + onChanged(); + return vectorDbConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder> + vertexAiSearchConfigBuilder_; + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vertexAiSearchConfig field is set. + */ + @java.lang.Override + public boolean hasVertexAiSearchConfig() { + return backendConfigCase_ == 10; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vertexAiSearchConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig getVertexAiSearchConfig() { + if (vertexAiSearchConfigBuilder_ == null) { + if (backendConfigCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } else { + if (backendConfigCase_ == 10) { + return vertexAiSearchConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVertexAiSearchConfig( + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig value) { + if (vertexAiSearchConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendConfig_ = value; + onChanged(); + } else { + vertexAiSearchConfigBuilder_.setMessage(value); + } + backendConfigCase_ = 10; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setVertexAiSearchConfig( + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder builderForValue) { + if (vertexAiSearchConfigBuilder_ == null) { + backendConfig_ = builderForValue.build(); + onChanged(); + } else { + vertexAiSearchConfigBuilder_.setMessage(builderForValue.build()); + } + backendConfigCase_ = 10; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeVertexAiSearchConfig( + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig value) { + if (vertexAiSearchConfigBuilder_ == null) { + if (backendConfigCase_ == 10 + && backendConfig_ + != com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance()) { + backendConfig_ = + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + backendConfig_ = value; + } + onChanged(); + } else { + if (backendConfigCase_ == 10) { + vertexAiSearchConfigBuilder_.mergeFrom(value); + } else { + vertexAiSearchConfigBuilder_.setMessage(value); + } + } + backendConfigCase_ = 10; + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearVertexAiSearchConfig() { + if (vertexAiSearchConfigBuilder_ == null) { + if (backendConfigCase_ == 10) { + backendConfigCase_ = 0; + backendConfig_ = null; + onChanged(); + } + } else { + if (backendConfigCase_ == 10) { + backendConfigCase_ = 0; + backendConfig_ = null; + } + vertexAiSearchConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder + getVertexAiSearchConfigBuilder() { + return getVertexAiSearchConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder + getVertexAiSearchConfigOrBuilder() { + if ((backendConfigCase_ == 10) && (vertexAiSearchConfigBuilder_ != null)) { + return vertexAiSearchConfigBuilder_.getMessageOrBuilder(); + } else { + if (backendConfigCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_; + } + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Immutable. The config for the Vertex AI Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder> + getVertexAiSearchConfigFieldBuilder() { + if (vertexAiSearchConfigBuilder_ == null) { + if (!(backendConfigCase_ == 10)) { + backendConfig_ = + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + vertexAiSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) backendConfig_, + getParentForChildren(), + isClean()); + backendConfig_ = null; + } + backendConfigCase_ = 10; + onChanged(); + return vertexAiSearchConfigBuilder_; + } + @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/RagCorpusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java index 26d9ba0f1f7c..e53c945c77d6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java @@ -111,11 +111,14 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return Whether the ragEmbeddingModelConfig field is set. */ + @java.lang.Deprecated boolean hasRagEmbeddingModelConfig(); /** * @@ -125,11 +128,14 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=268 * @return The ragEmbeddingModelConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddingModelConfig(); /** * @@ -139,9 +145,10 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder getRagEmbeddingModelConfigOrBuilder(); @@ -153,11 +160,14 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return Whether the ragVectorDbConfig field is set. */ + @java.lang.Deprecated boolean hasRagVectorDbConfig(); /** * @@ -167,11 +177,14 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=275 * @return The ragVectorDbConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getRagVectorDbConfig(); /** * @@ -181,9 +194,10 @@ public interface RagCorpusOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig rag_vector_db_config = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder getRagVectorDbConfigOrBuilder(); /** @@ -302,4 +316,89 @@ public interface RagCorpusOrBuilder * */ com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatusOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vectorDbConfig field is set. + */ + boolean hasVectorDbConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vectorDbConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig getVectorDbConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vector DBs.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig vector_db_config = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfigOrBuilder getVectorDbConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the vertexAiSearchConfig field is set. + */ + boolean hasVertexAiSearchConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The vertexAiSearchConfig. + */ + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig getVertexAiSearchConfig(); + /** + * + * + *
+   * Optional. Immutable. The config for the Vertex AI Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VertexAiSearchConfig vertex_ai_search_config = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder + getVertexAiSearchConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.RagCorpus.BackendConfigCase getBackendConfigCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java index 298ffdc9d4e0..6b262c84712c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java @@ -61,6 +61,789 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder.class); } + public interface FixedLengthChunkingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The size of the chunks.
+     * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + int getChunkSize(); + + /** + * + * + *
+     * The overlap between chunks.
+     * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + int getChunkOverlap(); + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking} + */ + public static final class FixedLengthChunking extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + FixedLengthChunkingOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedLengthChunking.newBuilder() to construct. + private FixedLengthChunking(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FixedLengthChunking() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedLengthChunking(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.class, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.Builder + .class); + } + + public static final int CHUNK_SIZE_FIELD_NUMBER = 1; + private int chunkSize_ = 0; + /** + * + * + *
+     * The size of the chunks.
+     * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + + public static final int CHUNK_OVERLAP_FIELD_NUMBER = 2; + private int chunkOverlap_ = 0; + /** + * + * + *
+     * The overlap between chunks.
+     * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + @java.lang.Override + public int getChunkOverlap() { + return chunkOverlap_; + } + + 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 (chunkOverlap_ != 0) { + output.writeInt32(2, chunkOverlap_); + } + 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 (chunkOverlap_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, chunkOverlap_); + } + 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.RagFileChunkingConfig.FixedLengthChunking)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking other = + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) obj; + + if (getChunkSize() != other.getChunkSize()) return false; + if (getChunkOverlap() != other.getChunkOverlap()) 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) + CHUNK_OVERLAP_FIELD_NUMBER; + hash = (53 * hash) + getChunkOverlap(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking + 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.RagFileChunkingConfig.FixedLengthChunking 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 fixed length chunking config.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.class, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.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; + chunkOverlap_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking build() { + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking result = + new com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunkSize_ = chunkSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.chunkOverlap_ = chunkOverlap_; + } + } + + @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.RagFileChunkingConfig.FixedLengthChunking) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance()) return this; + if (other.getChunkSize() != 0) { + setChunkSize(other.getChunkSize()); + } + if (other.getChunkOverlap() != 0) { + setChunkOverlap(other.getChunkOverlap()); + } + 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: + { + chunkOverlap_ = input.readInt32(); + 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 size of the chunks.
+       * 
+ * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + /** + * + * + *
+       * The size of the chunks.
+       * 
+ * + * 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 size of the chunks.
+       * 
+ * + * int32 chunk_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkSize() { + bitField0_ = (bitField0_ & ~0x00000001); + chunkSize_ = 0; + onChanged(); + return this; + } + + private int chunkOverlap_; + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @return The chunkOverlap. + */ + @java.lang.Override + public int getChunkOverlap() { + return chunkOverlap_; + } + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @param value The chunkOverlap to set. + * @return This builder for chaining. + */ + public Builder setChunkOverlap(int value) { + + chunkOverlap_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The overlap between chunks.
+       * 
+ * + * int32 chunk_overlap = 2; + * + * @return This builder for chaining. + */ + public Builder clearChunkOverlap() { + bitField0_ = (bitField0_ & ~0x00000002); + chunkOverlap_ = 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.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + private static final com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig + .FixedLengthChunking + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedLengthChunking 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.RagFileChunkingConfig.FixedLengthChunking + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int chunkingConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object chunkingConfig_; + + public enum ChunkingConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_LENGTH_CHUNKING(3), + CHUNKINGCONFIG_NOT_SET(0); + private final int value; + + private ChunkingConfigCase(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 ChunkingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ChunkingConfigCase forNumber(int value) { + switch (value) { + case 3: + return FIXED_LENGTH_CHUNKING; + case 0: + return CHUNKINGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkingConfigCase getChunkingConfigCase() { + return ChunkingConfigCase.forNumber(chunkingConfigCase_); + } + + public static final int FIXED_LENGTH_CHUNKING_FIELD_NUMBER = 3; + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + @java.lang.Override + public boolean hasFixedLengthChunking() { + return chunkingConfigCase_ == 3; + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + getFixedLengthChunking() { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder() { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + public static final int CHUNK_SIZE_FIELD_NUMBER = 1; private int chunkSize_ = 0; /** @@ -70,11 +853,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The size of the chunks. * * - * int32 chunk_size = 1; + * int32 chunk_size = 1 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404 * @return The chunkSize. */ @java.lang.Override + @java.lang.Deprecated public int getChunkSize() { return chunkSize_; } @@ -88,11 +874,14 @@ public int getChunkSize() { * The overlap between chunks. * * - * int32 chunk_overlap = 2; + * int32 chunk_overlap = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407 * @return The chunkOverlap. */ @java.lang.Override + @java.lang.Deprecated public int getChunkOverlap() { return chunkOverlap_; } @@ -117,6 +906,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (chunkOverlap_ != 0) { output.writeInt32(2, chunkOverlap_); } + if (chunkingConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_); + } getUnknownFields().writeTo(output); } @@ -132,6 +927,13 @@ public int getSerializedSize() { if (chunkOverlap_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, chunkOverlap_); } + if (chunkingConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -150,6 +952,14 @@ public boolean equals(final java.lang.Object obj) { if (getChunkSize() != other.getChunkSize()) return false; if (getChunkOverlap() != other.getChunkOverlap()) return false; + if (!getChunkingConfigCase().equals(other.getChunkingConfigCase())) return false; + switch (chunkingConfigCase_) { + case 3: + if (!getFixedLengthChunking().equals(other.getFixedLengthChunking())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,6 +975,14 @@ public int hashCode() { hash = (53 * hash) + getChunkSize(); hash = (37 * hash) + CHUNK_OVERLAP_FIELD_NUMBER; hash = (53 * hash) + getChunkOverlap(); + switch (chunkingConfigCase_) { + case 3: + hash = (37 * hash) + FIXED_LENGTH_CHUNKING_FIELD_NUMBER; + hash = (53 * hash) + getFixedLengthChunking().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -305,8 +1123,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (fixedLengthChunkingBuilder_ != null) { + fixedLengthChunkingBuilder_.clear(); + } chunkSize_ = 0; chunkOverlap_ = 0; + chunkingConfigCase_ = 0; + chunkingConfig_ = null; return this; } @@ -337,20 +1160,30 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig buildPartial() if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.chunkSize_ = chunkSize_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.chunkOverlap_ = chunkOverlap_; } } + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig result) { + result.chunkingConfigCase_ = chunkingConfigCase_; + result.chunkingConfig_ = this.chunkingConfig_; + if (chunkingConfigCase_ == 3 && fixedLengthChunkingBuilder_ != null) { + result.chunkingConfig_ = fixedLengthChunkingBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +1236,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagFileChunkingConf if (other.getChunkOverlap() != 0) { setChunkOverlap(other.getChunkOverlap()); } + switch (other.getChunkingConfigCase()) { + case FIXED_LENGTH_CHUNKING: + { + mergeFixedLengthChunking(other.getFixedLengthChunking()); + break; + } + case CHUNKINGCONFIG_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -432,15 +1276,22 @@ public Builder mergeFrom( case 8: { chunkSize_ = input.readInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 8 case 16: { chunkOverlap_ = input.readInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 + case 26: + { + input.readMessage( + getFixedLengthChunkingFieldBuilder().getBuilder(), extensionRegistry); + chunkingConfigCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -458,8 +1309,270 @@ public Builder mergeFrom( return this; } + private int chunkingConfigCase_ = 0; + private java.lang.Object chunkingConfig_; + + public ChunkingConfigCase getChunkingConfigCase() { + return ChunkingConfigCase.forNumber(chunkingConfigCase_); + } + + public Builder clearChunkingConfig() { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder> + fixedLengthChunkingBuilder_; + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + @java.lang.Override + public boolean hasFixedLengthChunking() { + return chunkingConfigCase_ == 3; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + getFixedLengthChunking() { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } else { + if (chunkingConfigCase_ == 3) { + return fixedLengthChunkingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder setFixedLengthChunking( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking value) { + if (fixedLengthChunkingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkingConfig_ = value; + onChanged(); + } else { + fixedLengthChunkingBuilder_.setMessage(value); + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder setFixedLengthChunking( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.Builder + builderForValue) { + if (fixedLengthChunkingBuilder_ == null) { + chunkingConfig_ = builderForValue.build(); + onChanged(); + } else { + fixedLengthChunkingBuilder_.setMessage(builderForValue.build()); + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder mergeFixedLengthChunking( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking value) { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3 + && chunkingConfig_ + != com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance()) { + chunkingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig + .FixedLengthChunking) + chunkingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkingConfig_ = value; + } + onChanged(); + } else { + if (chunkingConfigCase_ == 3) { + fixedLengthChunkingBuilder_.mergeFrom(value); + } else { + fixedLengthChunkingBuilder_.setMessage(value); + } + } + chunkingConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public Builder clearFixedLengthChunking() { + if (fixedLengthChunkingBuilder_ == null) { + if (chunkingConfigCase_ == 3) { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + onChanged(); + } + } else { + if (chunkingConfigCase_ == 3) { + chunkingConfigCase_ = 0; + chunkingConfig_ = null; + } + fixedLengthChunkingBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.Builder + getFixedLengthChunkingBuilder() { + return getFixedLengthChunkingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder() { + if ((chunkingConfigCase_ == 3) && (fixedLengthChunkingBuilder_ != null)) { + return fixedLengthChunkingBuilder_.getMessageOrBuilder(); + } else { + if (chunkingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Specifies the fixed length chunking config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder> + getFixedLengthChunkingFieldBuilder() { + if (fixedLengthChunkingBuilder_ == null) { + if (!(chunkingConfigCase_ == 3)) { + chunkingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .getDefaultInstance(); + } + fixedLengthChunkingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + .Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig + .FixedLengthChunkingOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking) + chunkingConfig_, + getParentForChildren(), + isClean()); + chunkingConfig_ = null; + } + chunkingConfigCase_ = 3; + onChanged(); + return fixedLengthChunkingBuilder_; + } + private int chunkSize_; /** * @@ -468,11 +1581,14 @@ public Builder mergeFrom( * The size of the chunks. * * - * int32 chunk_size = 1; + * int32 chunk_size = 1 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404 * @return The chunkSize. */ @java.lang.Override + @java.lang.Deprecated public int getChunkSize() { return chunkSize_; } @@ -483,15 +1599,18 @@ public int getChunkSize() { * The size of the chunks. * * - * int32 chunk_size = 1; + * int32 chunk_size = 1 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404 * @param value The chunkSize to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setChunkSize(int value) { chunkSize_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -502,12 +1621,15 @@ public Builder setChunkSize(int value) { * The size of the chunks. * * - * int32 chunk_size = 1; + * int32 chunk_size = 1 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearChunkSize() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); chunkSize_ = 0; onChanged(); return this; @@ -521,11 +1643,14 @@ public Builder clearChunkSize() { * The overlap between chunks. * * - * int32 chunk_overlap = 2; + * int32 chunk_overlap = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407 * @return The chunkOverlap. */ @java.lang.Override + @java.lang.Deprecated public int getChunkOverlap() { return chunkOverlap_; } @@ -536,15 +1661,18 @@ public int getChunkOverlap() { * The overlap between chunks. * * - * int32 chunk_overlap = 2; + * int32 chunk_overlap = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407 * @param value The chunkOverlap to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setChunkOverlap(int value) { chunkOverlap_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -555,12 +1683,15 @@ public Builder setChunkOverlap(int value) { * The overlap between chunks. * * - * int32 chunk_overlap = 2; + * int32 chunk_overlap = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearChunkOverlap() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); chunkOverlap_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java index e32e2b58585a..fca67b82e063 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java @@ -24,6 +24,49 @@ public interface RagFileChunkingConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileChunkingConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return Whether the fixedLengthChunking field is set. + */ + boolean hasFixedLengthChunking(); + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + * + * @return The fixedLengthChunking. + */ + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking + getFixedLengthChunking(); + /** + * + * + *
+   * Specifies the fixed length chunking config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingOrBuilder + getFixedLengthChunkingOrBuilder(); + /** * * @@ -31,10 +74,13 @@ public interface RagFileChunkingConfigOrBuilder * The size of the chunks. * * - * int32 chunk_size = 1; + * int32 chunk_size = 1 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404 * @return The chunkSize. */ + @java.lang.Deprecated int getChunkSize(); /** @@ -44,9 +90,15 @@ public interface RagFileChunkingConfigOrBuilder * The overlap between chunks. * * - * int32 chunk_overlap = 2; + * int32 chunk_overlap = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407 * @return The chunkOverlap. */ + @java.lang.Deprecated int getChunkOverlap(); + + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.ChunkingConfigCase + getChunkingConfigCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java index c12299e09534..6c8d9c18d94d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java @@ -61,364 +61,3808 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.Builder.class); } - public static final int USE_ADVANCED_PDF_PARSING_FIELD_NUMBER = 2; - private boolean useAdvancedPdfParsing_ = false; + public interface AdvancedParserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Whether to use advanced PDF parsing.
+     * 
+ * + * bool use_advanced_pdf_parsing = 1; + * + * @return The useAdvancedPdfParsing. + */ + boolean getUseAdvancedPdfParsing(); + } /** * * *
-   * Whether to use advanced PDF parsing.
+   * Specifies the advanced parsing for RagFiles.
    * 
* - * bool use_advanced_pdf_parsing = 2; - * - * @return The useAdvancedPdfParsing. + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser} */ - @java.lang.Override - public boolean getUseAdvancedPdfParsing() { - return useAdvancedPdfParsing_; - } - - private byte memoizedIsInitialized = -1; + public static final class AdvancedParser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) + AdvancedParserOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedParser.newBuilder() to construct. + private AdvancedParser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private AdvancedParser() {} - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedParser(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (useAdvancedPdfParsing_ != false) { - output.writeBool(2, useAdvancedPdfParsing_); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder + .class); + } - size = 0; - if (useAdvancedPdfParsing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useAdvancedPdfParsing_); + public static final int USE_ADVANCED_PDF_PARSING_FIELD_NUMBER = 1; + private boolean useAdvancedPdfParsing_ = false; + /** + * + * + *
+     * Whether to use advanced PDF parsing.
+     * 
+ * + * bool use_advanced_pdf_parsing = 1; + * + * @return The useAdvancedPdfParsing. + */ + @java.lang.Override + public boolean getUseAdvancedPdfParsing() { + return useAdvancedPdfParsing_; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + 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; } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig other = - (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) obj; - - if (getUseAdvancedPdfParsing() != other.getUseAdvancedPdfParsing()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (useAdvancedPdfParsing_ != false) { + output.writeBool(1, useAdvancedPdfParsing_); + } + getUnknownFields().writeTo(output); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USE_ADVANCED_PDF_PARSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAdvancedPdfParsing()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom( - java.nio.ByteBuffer 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.aiplatform.v1beta1.RagFileParsingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + size = 0; + if (useAdvancedPdfParsing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useAdvancedPdfParsing_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser other = + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) obj; - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + if (getUseAdvancedPdfParsing() != other.getUseAdvancedPdfParsing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USE_ADVANCED_PDF_PARSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAdvancedPdfParsing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig.AdvancedParser parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser 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.RagFileParsingConfig 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.RagFileParsingConfig.AdvancedParser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser 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.RagFileParsingConfig 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.RagFileParsingConfig.AdvancedParser parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig.AdvancedParser 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.RagFileParsingConfig 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.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser 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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser parseFrom( + com.google.protobuf.CodedInputStream 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; - } - /** - * - * - *
-   * Specifies the parsing config for RagFiles.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig) - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor; + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser 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.aiplatform.v1beta1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.class, - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - useAdvancedPdfParsing_ = false; - return this; + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.getDefaultInstance(); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig build() { - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * Specifies the advanced parsing for RagFiles.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor; } - return result; - } - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig buildPartial() { - com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result = - new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder + .class); } - onBuilt(); - return result; - } - private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.useAdvancedPdfParsing_ = useAdvancedPdfParsing_; + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + useAdvancedPdfParsing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser build() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser result = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useAdvancedPdfParsing_ = useAdvancedPdfParsing_; + } + } + + @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.RagFileParsingConfig.AdvancedParser) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance()) return this; + if (other.getUseAdvancedPdfParsing() != false) { + setUseAdvancedPdfParsing(other.getUseAdvancedPdfParsing()); + } + 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: + { + useAdvancedPdfParsing_ = 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 useAdvancedPdfParsing_; + /** + * + * + *
+       * Whether to use advanced PDF parsing.
+       * 
+ * + * bool use_advanced_pdf_parsing = 1; + * + * @return The useAdvancedPdfParsing. + */ + @java.lang.Override + public boolean getUseAdvancedPdfParsing() { + return useAdvancedPdfParsing_; + } + /** + * + * + *
+       * Whether to use advanced PDF parsing.
+       * 
+ * + * bool use_advanced_pdf_parsing = 1; + * + * @param value The useAdvancedPdfParsing to set. + * @return This builder for chaining. + */ + public Builder setUseAdvancedPdfParsing(boolean value) { + + useAdvancedPdfParsing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether to use advanced PDF parsing.
+       * 
+ * + * bool use_advanced_pdf_parsing = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseAdvancedPdfParsing() { + bitField0_ = (bitField0_ & ~0x00000001); + useAdvancedPdfParsing_ = 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.v1beta1.RagFileParsingConfig.AdvancedParser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) + private static final com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedParser 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 Builder clone() { - return super.clone(); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LayoutParserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The full resource name of a Document AI processor or processor version.
+     * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+     * `additional_config.parse_as_scanned_pdf` field must be false.
+     * Format:
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+     * 
+ * + * string processor_name = 1; + * + * @return The processorName. + */ + java.lang.String getProcessorName(); + /** + * + * + *
+     * The full resource name of a Document AI processor or processor version.
+     * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+     * `additional_config.parse_as_scanned_pdf` field must be false.
+     * Format:
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+     * 
+ * + * string processor_name = 1; + * + * @return The bytes for processorName. + */ + com.google.protobuf.ByteString getProcessorNameBytes(); + + /** + * + * + *
+     * The maximum number of requests the job is allowed to make to the Document
+     * AI processor per minute. Consult
+     * https://cloud.google.com/document-ai/quotas and the Quota page for your
+     * project to set an appropriate value here. If unspecified, a default value
+     * of 120 QPM would be used.
+     * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ + int getMaxParsingRequestsPerMin(); + } + /** + * + * + *
+   * Document AI Layout Parser config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser} + */ + public static final class LayoutParser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) + LayoutParserOrBuilder { + private static final long serialVersionUID = 0L; + // Use LayoutParser.newBuilder() to construct. + private LayoutParser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LayoutParser() { + processorName_ = ""; } @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LayoutParser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor; } @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder.class); } + public static final int PROCESSOR_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object processorName_ = ""; + /** + * + * + *
+     * The full resource name of a Document AI processor or processor version.
+     * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+     * `additional_config.parse_as_scanned_pdf` field must be false.
+     * Format:
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+     * 
+ * + * string processor_name = 1; + * + * @return The processorName. + */ @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 java.lang.String getProcessorName() { + java.lang.Object ref = processorName_; + 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(); + processorName_ = s; + return s; + } + } + /** + * + * + *
+     * The full resource name of a Document AI processor or processor version.
+     * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+     * `additional_config.parse_as_scanned_pdf` field must be false.
+     * Format:
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+     * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+     * 
+ * + * string processor_name = 1; + * + * @return The bytes for processorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProcessorNameBytes() { + java.lang.Object ref = processorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + processorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER = 2; + private int maxParsingRequestsPerMin_ = 0; + /** + * + * + *
+     * The maximum number of requests the job is allowed to make to the Document
+     * AI processor per minute. Consult
+     * https://cloud.google.com/document-ai/quotas and the Quota page for your
+     * project to set an appropriate value here. If unspecified, a default value
+     * of 120 QPM would be used.
+     * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public int getMaxParsingRequestsPerMin() { + return maxParsingRequestsPerMin_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) { - return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) other); - } else { - super.mergeFrom(other); - return this; + 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(processorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, processorName_); } + if (maxParsingRequestsPerMin_ != 0) { + output.writeInt32(2, maxParsingRequestsPerMin_); + } + getUnknownFields().writeTo(output); } - public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig other) { - if (other == com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.getDefaultInstance()) - return this; - if (other.getUseAdvancedPdfParsing() != false) { - setUseAdvancedPdfParsing(other.getUseAdvancedPdfParsing()); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, processorName_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + if (maxParsingRequestsPerMin_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxParsingRequestsPerMin_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser other = + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) obj; + + if (!getProcessorName().equals(other.getProcessorName())) return false; + if (getMaxParsingRequestsPerMin() != other.getMaxParsingRequestsPerMin()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; 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(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: - { - useAdvancedPdfParsing_ = input.readBool(); - bitField0_ |= 0x00000001; - 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROCESSOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getProcessorName().hashCode(); + hash = (37 * hash) + MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER; + hash = (53 * hash) + getMaxParsingRequestsPerMin(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int bitField0_; + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + 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.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser 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.RagFileParsingConfig.LayoutParser 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 AI Layout Parser config.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + processorName_ = ""; + maxParsingRequestsPerMin_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser build() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser result = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.processorName_ = processorName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxParsingRequestsPerMin_ = maxParsingRequestsPerMin_; + } + } + + @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.RagFileParsingConfig.LayoutParser) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance()) return this; + if (!other.getProcessorName().isEmpty()) { + processorName_ = other.processorName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxParsingRequestsPerMin() != 0) { + setMaxParsingRequestsPerMin(other.getMaxParsingRequestsPerMin()); + } + 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: + { + processorName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxParsingRequestsPerMin_ = input.readInt32(); + 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 processorName_ = ""; + /** + * + * + *
+       * The full resource name of a Document AI processor or processor version.
+       * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+       * `additional_config.parse_as_scanned_pdf` field must be false.
+       * Format:
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+       * 
+ * + * string processor_name = 1; + * + * @return The processorName. + */ + public java.lang.String getProcessorName() { + java.lang.Object ref = processorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + processorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full resource name of a Document AI processor or processor version.
+       * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+       * `additional_config.parse_as_scanned_pdf` field must be false.
+       * Format:
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+       * 
+ * + * string processor_name = 1; + * + * @return The bytes for processorName. + */ + public com.google.protobuf.ByteString getProcessorNameBytes() { + java.lang.Object ref = processorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + processorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full resource name of a Document AI processor or processor version.
+       * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+       * `additional_config.parse_as_scanned_pdf` field must be false.
+       * Format:
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+       * 
+ * + * string processor_name = 1; + * + * @param value The processorName to set. + * @return This builder for chaining. + */ + public Builder setProcessorName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + processorName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of a Document AI processor or processor version.
+       * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+       * `additional_config.parse_as_scanned_pdf` field must be false.
+       * Format:
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+       * 
+ * + * string processor_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearProcessorName() { + processorName_ = getDefaultInstance().getProcessorName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The full resource name of a Document AI processor or processor version.
+       * The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
+       * `additional_config.parse_as_scanned_pdf` field must be false.
+       * Format:
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}`
+       * * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
+       * 
+ * + * string processor_name = 1; + * + * @param value The bytes for processorName to set. + * @return This builder for chaining. + */ + public Builder setProcessorNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + processorName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxParsingRequestsPerMin_; + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the Document
+       * AI processor per minute. Consult
+       * https://cloud.google.com/document-ai/quotas and the Quota page for your
+       * project to set an appropriate value here. If unspecified, a default value
+       * of 120 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ + @java.lang.Override + public int getMaxParsingRequestsPerMin() { + return maxParsingRequestsPerMin_; + } + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the Document
+       * AI processor per minute. Consult
+       * https://cloud.google.com/document-ai/quotas and the Quota page for your
+       * project to set an appropriate value here. If unspecified, a default value
+       * of 120 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @param value The maxParsingRequestsPerMin to set. + * @return This builder for chaining. + */ + public Builder setMaxParsingRequestsPerMin(int value) { + + maxParsingRequestsPerMin_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the Document
+       * AI processor per minute. Consult
+       * https://cloud.google.com/document-ai/quotas and the Quota page for your
+       * project to set an appropriate value here. If unspecified, a default value
+       * of 120 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxParsingRequestsPerMin() { + bitField0_ = (bitField0_ & ~0x00000002); + maxParsingRequestsPerMin_ = 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.v1beta1.RagFileParsingConfig.LayoutParser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) + private static final com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LayoutParser 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.RagFileParsingConfig.LayoutParser + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmParserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of a LLM model used for parsing.
+     * Format: `gemini-1.5-pro-002`
+     * 
+ * + * string model_name = 1; + * + * @return The modelName. + */ + java.lang.String getModelName(); + /** + * + * + *
+     * The name of a LLM model used for parsing.
+     * Format: `gemini-1.5-pro-002`
+     * 
+ * + * string model_name = 1; + * + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString getModelNameBytes(); + + /** + * + * + *
+     * The maximum number of requests the job is allowed to make to the
+     * LLM model per minute. Consult
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
+     * and your document size to set an appropriate value here. If unspecified,
+     * a default value of 5000 QPM would be used.
+     * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ + int getMaxParsingRequestsPerMin(); + + /** + * + * + *
+     * The prompt to use for parsing. If not specified, a default prompt will
+     * be used.
+     * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The customParsingPrompt. + */ + java.lang.String getCustomParsingPrompt(); + /** + * + * + *
+     * The prompt to use for parsing. If not specified, a default prompt will
+     * be used.
+     * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The bytes for customParsingPrompt. + */ + com.google.protobuf.ByteString getCustomParsingPromptBytes(); + } + /** + * + * + *
+   * Specifies the advanced parsing for RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser} + */ + public static final class LlmParser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) + LlmParserOrBuilder { + private static final long serialVersionUID = 0L; + // Use LlmParser.newBuilder() to construct. + private LlmParser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LlmParser() { + modelName_ = ""; + customParsingPrompt_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LlmParser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder.class); + } + + public static final int MODEL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + /** + * + * + *
+     * The name of a LLM model used for parsing.
+     * Format: `gemini-1.5-pro-002`
+     * 
+ * + * string model_name = 1; + * + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + 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(); + modelName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of a LLM model used for parsing.
+     * Format: `gemini-1.5-pro-002`
+     * 
+ * + * string model_name = 1; + * + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER = 2; + private int maxParsingRequestsPerMin_ = 0; + /** + * + * + *
+     * The maximum number of requests the job is allowed to make to the
+     * LLM model per minute. Consult
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
+     * and your document size to set an appropriate value here. If unspecified,
+     * a default value of 5000 QPM would be used.
+     * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ + @java.lang.Override + public int getMaxParsingRequestsPerMin() { + return maxParsingRequestsPerMin_; + } + + public static final int CUSTOM_PARSING_PROMPT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object customParsingPrompt_ = ""; + /** + * + * + *
+     * The prompt to use for parsing. If not specified, a default prompt will
+     * be used.
+     * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The customParsingPrompt. + */ + @java.lang.Override + public java.lang.String getCustomParsingPrompt() { + java.lang.Object ref = customParsingPrompt_; + 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(); + customParsingPrompt_ = s; + return s; + } + } + /** + * + * + *
+     * The prompt to use for parsing. If not specified, a default prompt will
+     * be used.
+     * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The bytes for customParsingPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomParsingPromptBytes() { + java.lang.Object ref = customParsingPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customParsingPrompt_ = 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(modelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_); + } + if (maxParsingRequestsPerMin_ != 0) { + output.writeInt32(2, maxParsingRequestsPerMin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customParsingPrompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customParsingPrompt_); + } + 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(modelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelName_); + } + if (maxParsingRequestsPerMin_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxParsingRequestsPerMin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customParsingPrompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customParsingPrompt_); + } + 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.RagFileParsingConfig.LlmParser)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser other = + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) obj; + + if (!getModelName().equals(other.getModelName())) return false; + if (getMaxParsingRequestsPerMin() != other.getMaxParsingRequestsPerMin()) return false; + if (!getCustomParsingPrompt().equals(other.getCustomParsingPrompt())) 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) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); + hash = (37 * hash) + MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER; + hash = (53 * hash) + getMaxParsingRequestsPerMin(); + hash = (37 * hash) + CUSTOM_PARSING_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getCustomParsingPrompt().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + 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.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser 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.RagFileParsingConfig.LlmParser 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 advanced parsing for RagFiles.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelName_ = ""; + maxParsingRequestsPerMin_ = 0; + customParsingPrompt_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser build() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser result = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelName_ = modelName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxParsingRequestsPerMin_ = maxParsingRequestsPerMin_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customParsingPrompt_ = customParsingPrompt_; + } + } + + @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.RagFileParsingConfig.LlmParser) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance()) return this; + if (!other.getModelName().isEmpty()) { + modelName_ = other.modelName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxParsingRequestsPerMin() != 0) { + setMaxParsingRequestsPerMin(other.getMaxParsingRequestsPerMin()); + } + if (!other.getCustomParsingPrompt().isEmpty()) { + customParsingPrompt_ = other.customParsingPrompt_; + 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: + { + modelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxParsingRequestsPerMin_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + customParsingPrompt_ = 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 modelName_ = ""; + /** + * + * + *
+       * The name of a LLM model used for parsing.
+       * Format: `gemini-1.5-pro-002`
+       * 
+ * + * string model_name = 1; + * + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of a LLM model used for parsing.
+       * Format: `gemini-1.5-pro-002`
+       * 
+ * + * string model_name = 1; + * + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of a LLM model used for parsing.
+       * Format: `gemini-1.5-pro-002`
+       * 
+ * + * string model_name = 1; + * + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of a LLM model used for parsing.
+       * Format: `gemini-1.5-pro-002`
+       * 
+ * + * string model_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of a LLM model used for parsing.
+       * Format: `gemini-1.5-pro-002`
+       * 
+ * + * string model_name = 1; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxParsingRequestsPerMin_; + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the
+       * LLM model per minute. Consult
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
+       * and your document size to set an appropriate value here. If unspecified,
+       * a default value of 5000 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return The maxParsingRequestsPerMin. + */ + @java.lang.Override + public int getMaxParsingRequestsPerMin() { + return maxParsingRequestsPerMin_; + } + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the
+       * LLM model per minute. Consult
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
+       * and your document size to set an appropriate value here. If unspecified,
+       * a default value of 5000 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @param value The maxParsingRequestsPerMin to set. + * @return This builder for chaining. + */ + public Builder setMaxParsingRequestsPerMin(int value) { + + maxParsingRequestsPerMin_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of requests the job is allowed to make to the
+       * LLM model per minute. Consult
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
+       * and your document size to set an appropriate value here. If unspecified,
+       * a default value of 5000 QPM would be used.
+       * 
+ * + * int32 max_parsing_requests_per_min = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxParsingRequestsPerMin() { + bitField0_ = (bitField0_ & ~0x00000002); + maxParsingRequestsPerMin_ = 0; + onChanged(); + return this; + } + + private java.lang.Object customParsingPrompt_ = ""; + /** + * + * + *
+       * The prompt to use for parsing. If not specified, a default prompt will
+       * be used.
+       * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The customParsingPrompt. + */ + public java.lang.String getCustomParsingPrompt() { + java.lang.Object ref = customParsingPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customParsingPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The prompt to use for parsing. If not specified, a default prompt will
+       * be used.
+       * 
+ * + * string custom_parsing_prompt = 3; + * + * @return The bytes for customParsingPrompt. + */ + public com.google.protobuf.ByteString getCustomParsingPromptBytes() { + java.lang.Object ref = customParsingPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customParsingPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The prompt to use for parsing. If not specified, a default prompt will
+       * be used.
+       * 
+ * + * string custom_parsing_prompt = 3; + * + * @param value The customParsingPrompt to set. + * @return This builder for chaining. + */ + public Builder setCustomParsingPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customParsingPrompt_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * The prompt to use for parsing. If not specified, a default prompt will
+       * be used.
+       * 
+ * + * string custom_parsing_prompt = 3; + * + * @return This builder for chaining. + */ + public Builder clearCustomParsingPrompt() { + customParsingPrompt_ = getDefaultInstance().getCustomParsingPrompt(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * The prompt to use for parsing. If not specified, a default prompt will
+       * be used.
+       * 
+ * + * string custom_parsing_prompt = 3; + * + * @param value The bytes for customParsingPrompt to set. + * @return This builder for chaining. + */ + public Builder setCustomParsingPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customParsingPrompt_ = 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.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) + private static final com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LlmParser 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.RagFileParsingConfig.LlmParser + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int parserCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object parser_; + + public enum ParserCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ADVANCED_PARSER(3), + LAYOUT_PARSER(4), + LLM_PARSER(5), + PARSER_NOT_SET(0); + private final int value; + + private ParserCase(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 ParserCase valueOf(int value) { + return forNumber(value); + } + + public static ParserCase forNumber(int value) { + switch (value) { + case 3: + return ADVANCED_PARSER; + case 4: + return LAYOUT_PARSER; + case 5: + return LLM_PARSER; + case 0: + return PARSER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public static final int ADVANCED_PARSER_FIELD_NUMBER = 3; + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return Whether the advancedParser field is set. + */ + @java.lang.Override + public boolean hasAdvancedParser() { + return parserCase_ == 3; + } + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return The advancedParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + getAdvancedParser() { + if (parserCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder + getAdvancedParserOrBuilder() { + if (parserCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + + public static final int LAYOUT_PARSER_FIELD_NUMBER = 4; + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return Whether the layoutParser field is set. + */ + @java.lang.Override + public boolean hasLayoutParser() { + return parserCase_ == 4; + } + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return The layoutParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser getLayoutParser() { + if (parserCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder + getLayoutParserOrBuilder() { + if (parserCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + + public static final int LLM_PARSER_FIELD_NUMBER = 5; + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return Whether the llmParser field is set. + */ + @java.lang.Override + public boolean hasLlmParser() { + return parserCase_ == 5; + } + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return The llmParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser getLlmParser() { + if (parserCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.getDefaultInstance(); + } + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder + getLlmParserOrBuilder() { + if (parserCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.getDefaultInstance(); + } + + public static final int USE_ADVANCED_PDF_PARSING_FIELD_NUMBER = 2; + private boolean useAdvancedPdfParsing_ = false; + /** + * + * + *
+   * Whether to use advanced PDF parsing.
+   * 
+ * + * bool use_advanced_pdf_parsing = 2 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=473 + * @return The useAdvancedPdfParsing. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getUseAdvancedPdfParsing() { + return useAdvancedPdfParsing_; + } + + 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 (useAdvancedPdfParsing_ != false) { + output.writeBool(2, useAdvancedPdfParsing_); + } + if (parserCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_); + } + if (parserCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_); + } + if (parserCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useAdvancedPdfParsing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useAdvancedPdfParsing_); + } + if (parserCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_); + } + if (parserCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_); + } + if (parserCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_); + } + 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.RagFileParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig other = + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) obj; + + if (getUseAdvancedPdfParsing() != other.getUseAdvancedPdfParsing()) return false; + if (!getParserCase().equals(other.getParserCase())) return false; + switch (parserCase_) { + case 3: + if (!getAdvancedParser().equals(other.getAdvancedParser())) return false; + break; + case 4: + if (!getLayoutParser().equals(other.getLayoutParser())) return false; + break; + case 5: + if (!getLlmParser().equals(other.getLlmParser())) 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) + USE_ADVANCED_PDF_PARSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAdvancedPdfParsing()); + switch (parserCase_) { + case 3: + hash = (37 * hash) + ADVANCED_PARSER_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedParser().hashCode(); + break; + case 4: + hash = (37 * hash) + LAYOUT_PARSER_FIELD_NUMBER; + hash = (53 * hash) + getLayoutParser().hashCode(); + break; + case 5: + hash = (37 * hash) + LLM_PARSER_FIELD_NUMBER; + hash = (53 * hash) + getLlmParser().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig 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.RagFileParsingConfig 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.RagFileParsingConfig 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.RagFileParsingConfig 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 parsing config for RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileParsingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileParsingConfig) + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.class, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (advancedParserBuilder_ != null) { + advancedParserBuilder_.clear(); + } + if (layoutParserBuilder_ != null) { + layoutParserBuilder_.clear(); + } + if (llmParserBuilder_ != null) { + llmParserBuilder_.clear(); + } + useAdvancedPdfParsing_ = false; + parserCase_ = 0; + parser_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig build() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result = + new com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.useAdvancedPdfParsing_ = useAdvancedPdfParsing_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig result) { + result.parserCase_ = parserCase_; + result.parser_ = this.parser_; + if (parserCase_ == 3 && advancedParserBuilder_ != null) { + result.parser_ = advancedParserBuilder_.build(); + } + if (parserCase_ == 4 && layoutParserBuilder_ != null) { + result.parser_ = layoutParserBuilder_.build(); + } + if (parserCase_ == 5 && llmParserBuilder_ != null) { + result.parser_ = llmParserBuilder_.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.RagFileParsingConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.getDefaultInstance()) + return this; + if (other.getUseAdvancedPdfParsing() != false) { + setUseAdvancedPdfParsing(other.getUseAdvancedPdfParsing()); + } + switch (other.getParserCase()) { + case ADVANCED_PARSER: + { + mergeAdvancedParser(other.getAdvancedParser()); + break; + } + case LAYOUT_PARSER: + { + mergeLayoutParser(other.getLayoutParser()); + break; + } + case LLM_PARSER: + { + mergeLlmParser(other.getLlmParser()); + break; + } + case PARSER_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 16: + { + useAdvancedPdfParsing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: + { + input.readMessage(getAdvancedParserFieldBuilder().getBuilder(), extensionRegistry); + parserCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getLayoutParserFieldBuilder().getBuilder(), extensionRegistry); + parserCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getLlmParserFieldBuilder().getBuilder(), extensionRegistry); + parserCase_ = 5; + 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 parserCase_ = 0; + private java.lang.Object parser_; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public Builder clearParser() { + parserCase_ = 0; + parser_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder> + advancedParserBuilder_; + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return Whether the advancedParser field is set. + */ + @java.lang.Override + public boolean hasAdvancedParser() { + return parserCase_ == 3; + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return The advancedParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + getAdvancedParser() { + if (advancedParserBuilder_ == null) { + if (parserCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } else { + if (parserCase_ == 3) { + return advancedParserBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + public Builder setAdvancedParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser value) { + if (advancedParserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parser_ = value; + onChanged(); + } else { + advancedParserBuilder_.setMessage(value); + } + parserCase_ = 3; + return this; + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + public Builder setAdvancedParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder + builderForValue) { + if (advancedParserBuilder_ == null) { + parser_ = builderForValue.build(); + onChanged(); + } else { + advancedParserBuilder_.setMessage(builderForValue.build()); + } + parserCase_ = 3; + return this; + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + public Builder mergeAdvancedParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser value) { + if (advancedParserBuilder_ == null) { + if (parserCase_ == 3 + && parser_ + != com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance()) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) + parser_) + .mergeFrom(value) + .buildPartial(); + } else { + parser_ = value; + } + onChanged(); + } else { + if (parserCase_ == 3) { + advancedParserBuilder_.mergeFrom(value); + } else { + advancedParserBuilder_.setMessage(value); + } + } + parserCase_ = 3; + return this; + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + public Builder clearAdvancedParser() { + if (advancedParserBuilder_ == null) { + if (parserCase_ == 3) { + parserCase_ = 0; + parser_ = null; + onChanged(); + } + } else { + if (parserCase_ == 3) { + parserCase_ = 0; + parser_ = null; + } + advancedParserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder + getAdvancedParserBuilder() { + return getAdvancedParserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder + getAdvancedParserOrBuilder() { + if ((parserCase_ == 3) && (advancedParserBuilder_ != null)) { + return advancedParserBuilder_.getMessageOrBuilder(); + } else { + if (parserCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Advanced Parser to use for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder> + getAdvancedParserFieldBuilder() { + if (advancedParserBuilder_ == null) { + if (!(parserCase_ == 3)) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser + .getDefaultInstance(); + } + advancedParserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser) parser_, + getParentForChildren(), + isClean()); + parser_ = null; + } + parserCase_ = 3; + onChanged(); + return advancedParserBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder> + layoutParserBuilder_; + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return Whether the layoutParser field is set. + */ + @java.lang.Override + public boolean hasLayoutParser() { + return parserCase_ == 4; + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return The layoutParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser getLayoutParser() { + if (layoutParserBuilder_ == null) { + if (parserCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } else { + if (parserCase_ == 4) { + return layoutParserBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + public Builder setLayoutParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser value) { + if (layoutParserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parser_ = value; + onChanged(); + } else { + layoutParserBuilder_.setMessage(value); + } + parserCase_ = 4; + return this; + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + public Builder setLayoutParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder + builderForValue) { + if (layoutParserBuilder_ == null) { + parser_ = builderForValue.build(); + onChanged(); + } else { + layoutParserBuilder_.setMessage(builderForValue.build()); + } + parserCase_ = 4; + return this; + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + public Builder mergeLayoutParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser value) { + if (layoutParserBuilder_ == null) { + if (parserCase_ == 4 + && parser_ + != com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance()) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) + parser_) + .mergeFrom(value) + .buildPartial(); + } else { + parser_ = value; + } + onChanged(); + } else { + if (parserCase_ == 4) { + layoutParserBuilder_.mergeFrom(value); + } else { + layoutParserBuilder_.setMessage(value); + } + } + parserCase_ = 4; + return this; + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + public Builder clearLayoutParser() { + if (layoutParserBuilder_ == null) { + if (parserCase_ == 4) { + parserCase_ = 0; + parser_ = null; + onChanged(); + } + } else { + if (parserCase_ == 4) { + parserCase_ = 0; + parser_ = null; + } + layoutParserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder + getLayoutParserBuilder() { + return getLayoutParserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder + getLayoutParserOrBuilder() { + if ((parserCase_ == 4) && (layoutParserBuilder_ != null)) { + return layoutParserBuilder_.getMessageOrBuilder(); + } else { + if (parserCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The Layout Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder> + getLayoutParserFieldBuilder() { + if (layoutParserBuilder_ == null) { + if (!(parserCase_ == 4)) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser + .getDefaultInstance(); + } + layoutParserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser) parser_, + getParentForChildren(), + isClean()); + parser_ = null; + } + parserCase_ = 4; + onChanged(); + return layoutParserBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder> + llmParserBuilder_; + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return Whether the llmParser field is set. + */ + @java.lang.Override + public boolean hasLlmParser() { + return parserCase_ == 5; + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return The llmParser. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser getLlmParser() { + if (llmParserBuilder_ == null) { + if (parserCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance(); + } else { + if (parserCase_ == 5) { + return llmParserBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + public Builder setLlmParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser value) { + if (llmParserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parser_ = value; + onChanged(); + } else { + llmParserBuilder_.setMessage(value); + } + parserCase_ = 5; + return this; + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + public Builder setLlmParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder + builderForValue) { + if (llmParserBuilder_ == null) { + parser_ = builderForValue.build(); + onChanged(); + } else { + llmParserBuilder_.setMessage(builderForValue.build()); + } + parserCase_ = 5; + return this; + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + public Builder mergeLlmParser( + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser value) { + if (llmParserBuilder_ == null) { + if (parserCase_ == 5 + && parser_ + != com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance()) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_) + .mergeFrom(value) + .buildPartial(); + } else { + parser_ = value; + } + onChanged(); + } else { + if (parserCase_ == 5) { + llmParserBuilder_.mergeFrom(value); + } else { + llmParserBuilder_.setMessage(value); + } + } + parserCase_ = 5; + return this; + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + public Builder clearLlmParser() { + if (llmParserBuilder_ == null) { + if (parserCase_ == 5) { + parserCase_ = 0; + parser_ = null; + onChanged(); + } + } else { + if (parserCase_ == 5) { + parserCase_ = 0; + parser_ = null; + } + llmParserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder + getLlmParserBuilder() { + return getLlmParserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder + getLlmParserOrBuilder() { + if ((parserCase_ == 5) && (llmParserBuilder_ != null)) { + return llmParserBuilder_.getMessageOrBuilder(); + } else { + if (parserCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_; + } + return com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The LLM Parser to use for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder> + getLlmParserFieldBuilder() { + if (llmParserBuilder_ == null) { + if (!(parserCase_ == 5)) { + parser_ = + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser + .getDefaultInstance(); + } + llmParserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser) parser_, + getParentForChildren(), + isClean()); + parser_ = null; + } + parserCase_ = 5; + onChanged(); + return llmParserBuilder_; + } private boolean useAdvancedPdfParsing_; /** @@ -428,11 +3872,14 @@ public Builder mergeFrom( * Whether to use advanced PDF parsing. * * - * bool use_advanced_pdf_parsing = 2; + * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=473 * @return The useAdvancedPdfParsing. */ @java.lang.Override + @java.lang.Deprecated public boolean getUseAdvancedPdfParsing() { return useAdvancedPdfParsing_; } @@ -443,15 +3890,18 @@ public boolean getUseAdvancedPdfParsing() { * Whether to use advanced PDF parsing. * * - * bool use_advanced_pdf_parsing = 2; + * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=473 * @param value The useAdvancedPdfParsing to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setUseAdvancedPdfParsing(boolean value) { useAdvancedPdfParsing_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -462,12 +3912,15 @@ public Builder setUseAdvancedPdfParsing(boolean value) { * Whether to use advanced PDF parsing. * * - * bool use_advanced_pdf_parsing = 2; + * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=473 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearUseAdvancedPdfParsing() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); useAdvancedPdfParsing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java index ab0859fdf99a..bae322b3345e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java @@ -24,6 +24,120 @@ public interface RagFileParsingConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileParsingConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return Whether the advancedParser field is set. + */ + boolean hasAdvancedParser(); + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + * + * @return The advancedParser. + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser getAdvancedParser(); + /** + * + * + *
+   * The Advanced Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParser advanced_parser = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserOrBuilder + getAdvancedParserOrBuilder(); + + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return Whether the layoutParser field is set. + */ + boolean hasLayoutParser(); + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + * + * @return The layoutParser. + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser getLayoutParser(); + /** + * + * + *
+   * The Layout Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser layout_parser = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserOrBuilder + getLayoutParserOrBuilder(); + + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return Whether the llmParser field is set. + */ + boolean hasLlmParser(); + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + * + * @return The llmParser. + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser getLlmParser(); + /** + * + * + *
+   * The LLM Parser to use for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser llm_parser = 5; + */ + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserOrBuilder + getLlmParserOrBuilder(); + /** * * @@ -31,9 +145,14 @@ public interface RagFileParsingConfigOrBuilder * Whether to use advanced PDF parsing. * * - * bool use_advanced_pdf_parsing = 2; + * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=473 * @return The useAdvancedPdfParsing. */ + @java.lang.Deprecated boolean getUseAdvancedPdfParsing(); + + com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.ParserCase getParserCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfig.java new file mode 100644 index 000000000000..ce5997e279b4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfig.java @@ -0,0 +1,753 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Specifies the transformation config for RagFiles.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileTransformationConfig} + */ +public final class RagFileTransformationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) + RagFileTransformationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagFileTransformationConfig.newBuilder() to construct. + private RagFileTransformationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagFileTransformationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagFileTransformationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.class, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder.class); + } + + private int bitField0_; + public static final int RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig ragFileChunkingConfig_; + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return Whether the ragFileChunkingConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return The ragFileChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder + getRagFileChunkingConfigOrBuilder() { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + + 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, getRagFileChunkingConfig()); + } + 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, getRagFileChunkingConfig()); + } + 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.RagFileTransformationConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig other = + (com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) obj; + + if (hasRagFileChunkingConfig() != other.hasRagFileChunkingConfig()) return false; + if (hasRagFileChunkingConfig()) { + if (!getRagFileChunkingConfig().equals(other.getRagFileChunkingConfig())) 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 (hasRagFileChunkingConfig()) { + hash = (37 * hash) + RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileChunkingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig 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.RagFileTransformationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig 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.RagFileTransformationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig 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.RagFileTransformationConfig 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.RagFileTransformationConfig 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.RagFileTransformationConfig 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 transformation config for RagFiles.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagFileTransformationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.class, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRagFileChunkingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ragFileChunkingConfig_ = null; + if (ragFileChunkingConfigBuilder_ != null) { + ragFileChunkingConfigBuilder_.dispose(); + ragFileChunkingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig build() { + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig result = + new com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ragFileChunkingConfig_ = + ragFileChunkingConfigBuilder_ == null + ? ragFileChunkingConfig_ + : ragFileChunkingConfigBuilder_.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.v1beta1.RagFileTransformationConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance()) + return this; + if (other.hasRagFileChunkingConfig()) { + mergeRagFileChunkingConfig(other.getRagFileChunkingConfig()); + } + 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( + getRagFileChunkingConfigFieldBuilder().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.v1beta1.RagFileChunkingConfig ragFileChunkingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder> + ragFileChunkingConfigBuilder_; + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return Whether the ragFileChunkingConfig field is set. + */ + public boolean hasRagFileChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return The ragFileChunkingConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { + if (ragFileChunkingConfigBuilder_ == null) { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } else { + return ragFileChunkingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public Builder setRagFileChunkingConfig( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { + if (ragFileChunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileChunkingConfig_ = value; + } else { + ragFileChunkingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public Builder setRagFileChunkingConfig( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder builderForValue) { + if (ragFileChunkingConfigBuilder_ == null) { + ragFileChunkingConfig_ = builderForValue.build(); + } else { + ragFileChunkingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public Builder mergeRagFileChunkingConfig( + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { + if (ragFileChunkingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && ragFileChunkingConfig_ != null + && ragFileChunkingConfig_ + != com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance()) { + getRagFileChunkingConfigBuilder().mergeFrom(value); + } else { + ragFileChunkingConfig_ = value; + } + } else { + ragFileChunkingConfigBuilder_.mergeFrom(value); + } + if (ragFileChunkingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public Builder clearRagFileChunkingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + ragFileChunkingConfig_ = null; + if (ragFileChunkingConfigBuilder_ != null) { + ragFileChunkingConfigBuilder_.dispose(); + ragFileChunkingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder + getRagFileChunkingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRagFileChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder + getRagFileChunkingConfigOrBuilder() { + if (ragFileChunkingConfigBuilder_ != null) { + return ragFileChunkingConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileChunkingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() + : ragFileChunkingConfig_; + } + } + /** + * + * + *
+     * Specifies the chunking config for RagFiles.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder> + getRagFileChunkingConfigFieldBuilder() { + if (ragFileChunkingConfigBuilder_ == null) { + ragFileChunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder>( + getRagFileChunkingConfig(), getParentForChildren(), isClean()); + ragFileChunkingConfig_ = null; + } + return ragFileChunkingConfigBuilder_; + } + + @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.RagFileTransformationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) + private static final com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagFileTransformationConfig 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.RagFileTransformationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfigOrBuilder.java new file mode 100644 index 000000000000..0c3f86cb17b7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileTransformationConfigOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface RagFileTransformationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagFileTransformationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return Whether the ragFileChunkingConfig field is set. + */ + boolean hasRagFileChunkingConfig(); + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * + * @return The ragFileChunkingConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig(); + /** + * + * + *
+   * Specifies the chunking config for RagFiles.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder + getRagFileChunkingConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java index 68afa9f63c26..2b7691a1a5fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java @@ -803,11 +803,15 @@ public com.google.protobuf.ByteString getTextBytes() { * Optional. The number of contexts to retrieve. * * - * int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=91 * @return The similarityTopK. */ @java.lang.Override + @java.lang.Deprecated public int getSimilarityTopK() { return similarityTopK_; } @@ -822,12 +826,15 @@ public int getSimilarityTopK() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return Whether the ranking field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRanking() { return ((bitField0_ & 0x00000001) != 0); } @@ -839,12 +846,15 @@ public boolean hasRanking() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return The ranking. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking getRanking() { return ranking_ == null ? com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking.getDefaultInstance() @@ -858,16 +868,74 @@ public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking getRanking() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagQuery.RankingOrBuilder getRankingOrBuilder() { return ranking_ == null ? com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking.getDefaultInstance() : ranking_; } + public static final int RAG_RETRIEVAL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig ragRetrievalConfig_; + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -891,6 +959,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getRanking()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getRagRetrievalConfig()); + } getUnknownFields().writeTo(output); } @@ -909,6 +980,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRanking()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRagRetrievalConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -930,6 +1004,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRanking()) { if (!getRanking().equals(other.getRanking())) return false; } + if (hasRagRetrievalConfig() != other.hasRagRetrievalConfig()) return false; + if (hasRagRetrievalConfig()) { + if (!getRagRetrievalConfig().equals(other.getRagRetrievalConfig())) return false; + } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 1: @@ -955,6 +1033,10 @@ public int hashCode() { hash = (37 * hash) + RANKING_FIELD_NUMBER; hash = (53 * hash) + getRanking().hashCode(); } + if (hasRagRetrievalConfig()) { + hash = (37 * hash) + RAG_RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagRetrievalConfig().hashCode(); + } switch (queryCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -1104,6 +1186,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRankingFieldBuilder(); + getRagRetrievalConfigFieldBuilder(); } } @@ -1117,6 +1200,11 @@ public Builder clear() { rankingBuilder_.dispose(); rankingBuilder_ = null; } + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } queryCase_ = 0; query_ = null; return this; @@ -1164,6 +1252,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagQuery result) result.ranking_ = rankingBuilder_ == null ? ranking_ : rankingBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ragRetrievalConfig_ = + ragRetrievalConfigBuilder_ == null + ? ragRetrievalConfig_ + : ragRetrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -1223,6 +1318,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagQuery other) { if (other.hasRanking()) { mergeRanking(other.getRanking()); } + if (other.hasRagRetrievalConfig()) { + mergeRagRetrievalConfig(other.getRagRetrievalConfig()); + } switch (other.getQueryCase()) { case TEXT: { @@ -1281,6 +1379,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 50: + { + input.readMessage( + getRagRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1456,11 +1561,16 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * Optional. The number of contexts to retrieve. * * - * int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=91 * @return The similarityTopK. */ @java.lang.Override + @java.lang.Deprecated public int getSimilarityTopK() { return similarityTopK_; } @@ -1471,11 +1581,16 @@ public int getSimilarityTopK() { * Optional. The number of contexts to retrieve. * * - * int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=91 * @param value The similarityTopK to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSimilarityTopK(int value) { similarityTopK_ = value; @@ -1490,10 +1605,15 @@ public Builder setSimilarityTopK(int value) { * Optional. The number of contexts to retrieve. * * - * int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=91 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSimilarityTopK() { bitField0_ = (bitField0_ & ~0x00000002); similarityTopK_ = 0; @@ -1515,11 +1635,14 @@ public Builder clearSimilarityTopK() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return Whether the ranking field is set. */ + @java.lang.Deprecated public boolean hasRanking() { return ((bitField0_ & 0x00000004) != 0); } @@ -1531,11 +1654,14 @@ public boolean hasRanking() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return The ranking. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking getRanking() { if (rankingBuilder_ == null) { return ranking_ == null @@ -1553,9 +1679,10 @@ public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking getRanking() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setRanking(com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking value) { if (rankingBuilder_ == null) { if (value == null) { @@ -1577,9 +1704,10 @@ public Builder setRanking(com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking v * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setRanking( com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking.Builder builderForValue) { if (rankingBuilder_ == null) { @@ -1599,9 +1727,10 @@ public Builder setRanking( * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder mergeRanking(com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking value) { if (rankingBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) @@ -1629,9 +1758,10 @@ public Builder mergeRanking(com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder clearRanking() { bitField0_ = (bitField0_ & ~0x00000004); ranking_ = null; @@ -1650,9 +1780,10 @@ public Builder clearRanking() { * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking.Builder getRankingBuilder() { bitField0_ |= 0x00000004; onChanged(); @@ -1666,9 +1797,10 @@ public com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking.Builder getRankingBu * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagQuery.RankingOrBuilder getRankingOrBuilder() { if (rankingBuilder_ != null) { return rankingBuilder_.getMessageOrBuilder(); @@ -1686,7 +1818,7 @@ public com.google.cloud.aiplatform.v1beta1.RagQuery.RankingOrBuilder getRankingO * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -1706,6 +1838,215 @@ public com.google.cloud.aiplatform.v1beta1.RagQuery.RankingOrBuilder getRankingO return rankingBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig ragRetrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder> + ragRetrievalConfigBuilder_; + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig() { + if (ragRetrievalConfigBuilder_ == null) { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } else { + return ragRetrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragRetrievalConfig_ = value; + } else { + ragRetrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder builderForValue) { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfig_ = builderForValue.build(); + } else { + ragRetrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && ragRetrievalConfig_ != null + && ragRetrievalConfig_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance()) { + getRagRetrievalConfigBuilder().mergeFrom(value); + } else { + ragRetrievalConfig_ = value; + } + } else { + ragRetrievalConfigBuilder_.mergeFrom(value); + } + if (ragRetrievalConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder + getRagRetrievalConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRagRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + if (ragRetrievalConfigBuilder_ != null) { + return ragRetrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + } + /** + * + * + *
+     * Optional. The retrieval config for the query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder> + getRagRetrievalConfigFieldBuilder() { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder>( + getRagRetrievalConfig(), getParentForChildren(), isClean()); + ragRetrievalConfig_ = null; + } + return ragRetrievalConfigBuilder_; + } + @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/RagQueryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java index f8dc9c2d9132..265235f52afd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java @@ -68,10 +68,14 @@ public interface RagQueryOrBuilder * Optional. The number of contexts to retrieve. * * - * int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=91 * @return The similarityTopK. */ + @java.lang.Deprecated int getSimilarityTopK(); /** @@ -82,11 +86,14 @@ public interface RagQueryOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return Whether the ranking field is set. */ + @java.lang.Deprecated boolean hasRanking(); /** * @@ -96,11 +103,14 @@ public interface RagQueryOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See + * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=95 * @return The ranking. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagQuery.Ranking getRanking(); /** * @@ -110,10 +120,52 @@ public interface RagQueryOrBuilder * * * - * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagQuery.RankingOrBuilder getRankingOrBuilder(); + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + boolean hasRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.RagQuery.QueryCase getQueryCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfig.java new file mode 100644 index 000000000000..158baeda2682 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfig.java @@ -0,0 +1,5934 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Specifies the context retrieval config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig} + */ +public final class RagRetrievalConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig) + RagRetrievalConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RagRetrievalConfig.newBuilder() to construct. + private RagRetrievalConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagRetrievalConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagRetrievalConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder.class); + } + + public interface HybridSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Alpha value controls the weight between dense and sparse vector
+     * search results. The range is [0, 1], while 0 means sparse vector search
+     * only and 1 means dense vector search only. The default value is 0.5 which
+     * balances sparse and dense vector search equally.
+     * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the alpha field is set. + */ + boolean hasAlpha(); + /** + * + * + *
+     * Optional. Alpha value controls the weight between dense and sparse vector
+     * search results. The range is [0, 1], while 0 means sparse vector search
+     * only and 1 means dense vector search only. The default value is 0.5 which
+     * balances sparse and dense vector search equally.
+     * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alpha. + */ + float getAlpha(); + } + /** + * + * + *
+   * Config for Hybrid Search.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch} + */ + public static final class HybridSearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) + HybridSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridSearch.newBuilder() to construct. + private HybridSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridSearch() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder.class); + } + + private int bitField0_; + public static final int ALPHA_FIELD_NUMBER = 1; + private float alpha_ = 0F; + /** + * + * + *
+     * Optional. Alpha value controls the weight between dense and sparse vector
+     * search results. The range is [0, 1], while 0 means sparse vector search
+     * only and 1 means dense vector search only. The default value is 0.5 which
+     * balances sparse and dense vector search equally.
+     * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the alpha field is set. + */ + @java.lang.Override + public boolean hasAlpha() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Alpha value controls the weight between dense and sparse vector
+     * search results. The range is [0, 1], while 0 means sparse vector search
+     * only and 1 means dense vector search only. The default value is 0.5 which
+     * balances sparse and dense vector search equally.
+     * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alpha. + */ + @java.lang.Override + public float getAlpha() { + return alpha_; + } + + 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.writeFloat(1, alpha_); + } + 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.computeFloatSize(1, alpha_); + } + 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.RagRetrievalConfig.HybridSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) obj; + + if (hasAlpha() != other.hasAlpha()) return false; + if (hasAlpha()) { + if (java.lang.Float.floatToIntBits(getAlpha()) + != java.lang.Float.floatToIntBits(other.getAlpha())) 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 (hasAlpha()) { + hash = (37 * hash) + ALPHA_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAlpha()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + 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.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch 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.RagRetrievalConfig.HybridSearch 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; + } + /** + * + * + *
+     * Config for Hybrid Search.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alpha_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alpha_ = alpha_; + 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.v1beta1.RagRetrievalConfig.HybridSearch) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + .getDefaultInstance()) return this; + if (other.hasAlpha()) { + setAlpha(other.getAlpha()); + } + 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 13: + { + alpha_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float alpha_; + /** + * + * + *
+       * Optional. Alpha value controls the weight between dense and sparse vector
+       * search results. The range is [0, 1], while 0 means sparse vector search
+       * only and 1 means dense vector search only. The default value is 0.5 which
+       * balances sparse and dense vector search equally.
+       * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the alpha field is set. + */ + @java.lang.Override + public boolean hasAlpha() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. Alpha value controls the weight between dense and sparse vector
+       * search results. The range is [0, 1], while 0 means sparse vector search
+       * only and 1 means dense vector search only. The default value is 0.5 which
+       * balances sparse and dense vector search equally.
+       * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The alpha. + */ + @java.lang.Override + public float getAlpha() { + return alpha_; + } + /** + * + * + *
+       * Optional. Alpha value controls the weight between dense and sparse vector
+       * search results. The range is [0, 1], while 0 means sparse vector search
+       * only and 1 means dense vector search only. The default value is 0.5 which
+       * balances sparse and dense vector search equally.
+       * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The alpha to set. + * @return This builder for chaining. + */ + public Builder setAlpha(float value) { + + alpha_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Alpha value controls the weight between dense and sparse vector
+       * search results. The range is [0, 1], while 0 means sparse vector search
+       * only and 1 means dense vector search only. The default value is 0.5 which
+       * balances sparse and dense vector search equally.
+       * 
+ * + * optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAlpha() { + bitField0_ = (bitField0_ & ~0x00000001); + alpha_ = 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.v1beta1.RagRetrievalConfig.HybridSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridSearch 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.RagRetrievalConfig.HybridSearch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the vectorDistanceThreshold field is set. + */ + boolean hasVectorDistanceThreshold(); + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vectorDistanceThreshold. + */ + double getVectorDistanceThreshold(); + + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + boolean hasVectorSimilarityThreshold(); + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + double getVectorSimilarityThreshold(); + + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + java.lang.String getMetadataFilter(); + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + com.google.protobuf.ByteString getMetadataFilterBytes(); + + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.VectorDbThresholdCase + getVectorDbThresholdCase(); + } + /** + * + * + *
+   * Config for filters.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() { + metadataFilter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder.class); + } + + private int vectorDbThresholdCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object vectorDbThreshold_; + + public enum VectorDbThresholdCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR_DISTANCE_THRESHOLD(3), + VECTOR_SIMILARITY_THRESHOLD(4), + VECTORDBTHRESHOLD_NOT_SET(0); + private final int value; + + private VectorDbThresholdCase(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 VectorDbThresholdCase valueOf(int value) { + return forNumber(value); + } + + public static VectorDbThresholdCase forNumber(int value) { + switch (value) { + case 3: + return VECTOR_DISTANCE_THRESHOLD; + case 4: + return VECTOR_SIMILARITY_THRESHOLD; + case 0: + return VECTORDBTHRESHOLD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VectorDbThresholdCase getVectorDbThresholdCase() { + return VectorDbThresholdCase.forNumber(vectorDbThresholdCase_); + } + + public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the vectorDistanceThreshold field is set. + */ + @java.lang.Override + public boolean hasVectorDistanceThreshold() { + return vectorDbThresholdCase_ == 3; + } + /** + * + * + *
+     * Optional. Only returns contexts with vector distance smaller than the
+     * threshold.
+     * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vectorDistanceThreshold. + */ + @java.lang.Override + public double getVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + + public static final int VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER = 4; + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + @java.lang.Override + public boolean hasVectorSimilarityThreshold() { + return vectorDbThresholdCase_ == 4; + } + /** + * + * + *
+     * Optional. Only returns contexts with vector similarity larger than the
+     * threshold.
+     * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + @java.lang.Override + public double getVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + + public static final int METADATA_FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataFilter_ = ""; + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + @java.lang.Override + public java.lang.String getMetadataFilter() { + java.lang.Object ref = metadataFilter_; + 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(); + metadataFilter_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. String for metadata filtering.
+     * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataFilterBytes() { + java.lang.Object ref = metadataFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataFilter_ = 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(metadataFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metadataFilter_); + } + if (vectorDbThresholdCase_ == 3) { + output.writeDouble(3, (double) ((java.lang.Double) vectorDbThreshold_)); + } + if (vectorDbThresholdCase_ == 4) { + output.writeDouble(4, (double) ((java.lang.Double) vectorDbThreshold_)); + } + 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(metadataFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metadataFilter_); + } + if (vectorDbThresholdCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) vectorDbThreshold_)); + } + if (vectorDbThresholdCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, (double) ((java.lang.Double) vectorDbThreshold_)); + } + 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.RagRetrievalConfig.Filter)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) obj; + + if (!getMetadataFilter().equals(other.getMetadataFilter())) return false; + if (!getVectorDbThresholdCase().equals(other.getVectorDbThresholdCase())) return false; + switch (vectorDbThresholdCase_) { + case 3: + if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold())) + return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getVectorSimilarityThreshold()) + != java.lang.Double.doubleToLongBits(other.getVectorSimilarityThreshold())) + 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) + METADATA_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetadataFilter().hashCode(); + switch (vectorDbThresholdCase_) { + case 3: + hash = (37 * hash) + VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())); + break; + case 4: + hash = (37 * hash) + VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVectorSimilarityThreshold())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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.RagRetrievalConfig.Filter 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; + } + /** + * + * + *
+     * Config for filters.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadataFilter_ = ""; + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataFilter_ = metadataFilter_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter result) { + result.vectorDbThresholdCase_ = vectorDbThresholdCase_; + result.vectorDbThreshold_ = this.vectorDbThreshold_; + } + + @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.RagRetrievalConfig.Filter) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance()) + return this; + if (!other.getMetadataFilter().isEmpty()) { + metadataFilter_ = other.metadataFilter_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getVectorDbThresholdCase()) { + case VECTOR_DISTANCE_THRESHOLD: + { + setVectorDistanceThreshold(other.getVectorDistanceThreshold()); + break; + } + case VECTOR_SIMILARITY_THRESHOLD: + { + setVectorSimilarityThreshold(other.getVectorSimilarityThreshold()); + break; + } + case VECTORDBTHRESHOLD_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: + { + metadataFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 25: + { + vectorDbThreshold_ = input.readDouble(); + vectorDbThresholdCase_ = 3; + break; + } // case 25 + case 33: + { + vectorDbThreshold_ = input.readDouble(); + vectorDbThresholdCase_ = 4; + break; + } // case 33 + 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 vectorDbThresholdCase_ = 0; + private java.lang.Object vectorDbThreshold_; + + public VectorDbThresholdCase getVectorDbThresholdCase() { + return VectorDbThresholdCase.forNumber(vectorDbThresholdCase_); + } + + public Builder clearVectorDbThreshold() { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorDistanceThreshold field is set. + */ + public boolean hasVectorDistanceThreshold() { + return vectorDbThresholdCase_ == 3; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorDistanceThreshold. + */ + public double getVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The vectorDistanceThreshold to set. + * @return This builder for chaining. + */ + public Builder setVectorDistanceThreshold(double value) { + + vectorDbThresholdCase_ = 3; + vectorDbThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector distance smaller than the
+       * threshold.
+       * 
+ * + * double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVectorDistanceThreshold() { + if (vectorDbThresholdCase_ == 3) { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vectorSimilarityThreshold field is set. + */ + public boolean hasVectorSimilarityThreshold() { + return vectorDbThresholdCase_ == 4; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vectorSimilarityThreshold. + */ + public double getVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + return (java.lang.Double) vectorDbThreshold_; + } + return 0D; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The vectorSimilarityThreshold to set. + * @return This builder for chaining. + */ + public Builder setVectorSimilarityThreshold(double value) { + + vectorDbThresholdCase_ = 4; + vectorDbThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Only returns contexts with vector similarity larger than the
+       * threshold.
+       * 
+ * + * double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVectorSimilarityThreshold() { + if (vectorDbThresholdCase_ == 4) { + vectorDbThresholdCase_ = 0; + vectorDbThreshold_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object metadataFilter_ = ""; + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataFilter. + */ + public java.lang.String getMetadataFilter() { + java.lang.Object ref = metadataFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataFilter. + */ + public com.google.protobuf.ByteString getMetadataFilterBytes() { + java.lang.Object ref = metadataFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataFilter to set. + * @return This builder for chaining. + */ + public Builder setMetadataFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metadataFilter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataFilter() { + metadataFilter_ = getDefaultInstance().getMetadataFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. String for metadata filtering.
+       * 
+ * + * string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metadataFilter to set. + * @return This builder for chaining. + */ + public Builder setMetadataFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metadataFilter_ = 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.aiplatform.v1beta1.RagRetrievalConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter 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.RagRetrievalConfig.Filter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RankingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rankService field is set. + */ + boolean hasRankService(); + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankService. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService getRankService(); + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder + getRankServiceOrBuilder(); + + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmRanker field is set. + */ + boolean hasLlmRanker(); + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmRanker. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker getLlmRanker(); + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder + getLlmRankerOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankingConfigCase + getRankingConfigCase(); + } + /** + * + * + *
+   * Config for ranking and reranking.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking} + */ + public static final class Ranking extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) + RankingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Ranking.newBuilder() to construct. + private Ranking(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Ranking() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Ranking(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder.class); + } + + public interface RankServiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + boolean hasModelName(); + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + java.lang.String getModelName(); + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString getModelNameBytes(); + } + /** + * + * + *
+     * Config for Rank Service.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService} + */ + public static final class RankService extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + RankServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use RankService.newBuilder() to construct. + private RankService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RankService() { + modelName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RankService(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder + .class); + } + + private int bitField0_; + public static final int MODEL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + @java.lang.Override + public boolean hasModelName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + 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(); + modelName_ = s; + return s; + } + } + /** + * + * + *
+       * Optional. The model name of the rank service.
+       * Format: `semantic-ranker-512@latest`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_); + } + 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.GeneratedMessageV3.computeStringSize(1, modelName_); + } + 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.RagRetrievalConfig.Ranking.RankService)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) obj; + + if (hasModelName() != other.hasModelName()) return false; + if (hasModelName()) { + if (!getModelName().equals(other.getModelName())) 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 (hasModelName()) { + hash = (37 * hash) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService + 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.RagRetrievalConfig.Ranking.RankService 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; + } + /** + * + * + *
+       * Config for Rank Service.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelName_ = modelName_; + 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.v1beta1.RagRetrievalConfig.Ranking.RankService) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance()) return this; + if (other.hasModelName()) { + modelName_ = other.modelName_; + 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: + { + modelName_ = 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 modelName_ = ""; + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + public boolean hasModelName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The model name of the rank service.
+         * Format: `semantic-ranker-512@latest`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = 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.RagRetrievalConfig.Ranking.RankService) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + .RankService + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RankService 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.RagRetrievalConfig.Ranking.RankService + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmRankerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + boolean hasModelName(); + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + java.lang.String getModelName(); + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString getModelNameBytes(); + } + /** + * + * + *
+     * Config for LlmRanker.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker} + */ + public static final class LlmRanker extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + LlmRankerOrBuilder { + private static final long serialVersionUID = 0L; + // Use LlmRanker.newBuilder() to construct. + private LlmRanker(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LlmRanker() { + modelName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LlmRanker(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder + .class); + } + + private int bitField0_; + public static final int MODEL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + @java.lang.Override + public boolean hasModelName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + 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(); + modelName_ = s; + return s; + } + } + /** + * + * + *
+       * Optional. The model name used for ranking.
+       * Format: `gemini-1.5-pro`
+       * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelName_); + } + 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.GeneratedMessageV3.computeStringSize(1, modelName_); + } + 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.RagRetrievalConfig.Ranking.LlmRanker)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) obj; + + if (hasModelName() != other.hasModelName()) return false; + if (hasModelName()) { + if (!getModelName().equals(other.getModelName())) 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 (hasModelName()) { + hash = (37 * hash) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker + 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.RagRetrievalConfig.Ranking.LlmRanker 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; + } + /** + * + * + *
+       * Config for LlmRanker.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelName_ = modelName_; + 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.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance()) return this; + if (other.hasModelName()) { + modelName_ = other.modelName_; + 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: + { + modelName_ = 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 modelName_ = ""; + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the modelName field is set. + */ + public boolean hasModelName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Optional. The model name used for ranking.
+         * Format: `gemini-1.5-pro`
+         * 
+ * + * optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = 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.RagRetrievalConfig.Ranking.LlmRanker) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LlmRanker 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.RagRetrievalConfig.Ranking.LlmRanker + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int rankingConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object rankingConfig_; + + public enum RankingConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RANK_SERVICE(1), + LLM_RANKER(3), + RANKINGCONFIG_NOT_SET(0); + private final int value; + + private RankingConfigCase(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 RankingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static RankingConfigCase forNumber(int value) { + switch (value) { + case 1: + return RANK_SERVICE; + case 3: + return LLM_RANKER; + case 0: + return RANKINGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RankingConfigCase getRankingConfigCase() { + return RankingConfigCase.forNumber(rankingConfigCase_); + } + + public static final int RANK_SERVICE_FIELD_NUMBER = 1; + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rankService field is set. + */ + @java.lang.Override + public boolean hasRankService() { + return rankingConfigCase_ == 1; + } + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankService. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + getRankService() { + if (rankingConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional. Config for Rank Service.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder + getRankServiceOrBuilder() { + if (rankingConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + + public static final int LLM_RANKER_FIELD_NUMBER = 3; + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmRanker field is set. + */ + @java.lang.Override + public boolean hasLlmRanker() { + return rankingConfigCase_ == 3; + } + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmRanker. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker getLlmRanker() { + if (rankingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } + /** + * + * + *
+     * Optional. Config for LlmRanker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder + getLlmRankerOrBuilder() { + if (rankingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .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 (rankingConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_); + } + if (rankingConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rankingConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_); + } + if (rankingConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_); + } + 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.RagRetrievalConfig.Ranking)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) obj; + + if (!getRankingConfigCase().equals(other.getRankingConfigCase())) return false; + switch (rankingConfigCase_) { + case 1: + if (!getRankService().equals(other.getRankService())) return false; + break; + case 3: + if (!getLlmRanker().equals(other.getLlmRanker())) 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 (rankingConfigCase_) { + case 1: + hash = (37 * hash) + RANK_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getRankService().hashCode(); + break; + case 3: + hash = (37 * hash) + LLM_RANKER_FIELD_NUMBER; + hash = (53 * hash) + getLlmRanker().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking 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.RagRetrievalConfig.Ranking 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; + } + /** + * + * + *
+     * Config for ranking and reranking.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rankServiceBuilder_ != null) { + rankServiceBuilder_.clear(); + } + if (llmRankerBuilder_ != null) { + llmRankerBuilder_.clear(); + } + rankingConfigCase_ = 0; + rankingConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking result) { + result.rankingConfigCase_ = rankingConfigCase_; + result.rankingConfig_ = this.rankingConfig_; + if (rankingConfigCase_ == 1 && rankServiceBuilder_ != null) { + result.rankingConfig_ = rankServiceBuilder_.build(); + } + if (rankingConfigCase_ == 3 && llmRankerBuilder_ != null) { + result.rankingConfig_ = llmRankerBuilder_.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.RagRetrievalConfig.Ranking) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance()) + return this; + switch (other.getRankingConfigCase()) { + case RANK_SERVICE: + { + mergeRankService(other.getRankService()); + break; + } + case LLM_RANKER: + { + mergeLlmRanker(other.getLlmRanker()); + break; + } + case RANKINGCONFIG_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(getRankServiceFieldBuilder().getBuilder(), extensionRegistry); + rankingConfigCase_ = 1; + break; + } // case 10 + case 26: + { + input.readMessage(getLlmRankerFieldBuilder().getBuilder(), extensionRegistry); + rankingConfigCase_ = 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 rankingConfigCase_ = 0; + private java.lang.Object rankingConfig_; + + public RankingConfigCase getRankingConfigCase() { + return RankingConfigCase.forNumber(rankingConfigCase_); + } + + public Builder clearRankingConfig() { + rankingConfigCase_ = 0; + rankingConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder> + rankServiceBuilder_; + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rankService field is set. + */ + @java.lang.Override + public boolean hasRankService() { + return rankingConfigCase_ == 1; + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankService. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + getRankService() { + if (rankServiceBuilder_ == null) { + if (rankingConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } else { + if (rankingConfigCase_ == 1) { + return rankServiceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRankService( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService value) { + if (rankServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rankingConfig_ = value; + onChanged(); + } else { + rankServiceBuilder_.setMessage(value); + } + rankingConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRankService( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder + builderForValue) { + if (rankServiceBuilder_ == null) { + rankingConfig_ = builderForValue.build(); + onChanged(); + } else { + rankServiceBuilder_.setMessage(builderForValue.build()); + } + rankingConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRankService( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService value) { + if (rankServiceBuilder_ == null) { + if (rankingConfigCase_ == 1 + && rankingConfig_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance()) { + rankingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + rankingConfig_ = value; + } + onChanged(); + } else { + if (rankingConfigCase_ == 1) { + rankServiceBuilder_.mergeFrom(value); + } else { + rankServiceBuilder_.setMessage(value); + } + } + rankingConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRankService() { + if (rankServiceBuilder_ == null) { + if (rankingConfigCase_ == 1) { + rankingConfigCase_ = 0; + rankingConfig_ = null; + onChanged(); + } + } else { + if (rankingConfigCase_ == 1) { + rankingConfigCase_ = 0; + rankingConfig_ = null; + } + rankServiceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder + getRankServiceBuilder() { + return getRankServiceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder + getRankServiceOrBuilder() { + if ((rankingConfigCase_ == 1) && (rankServiceBuilder_ != null)) { + return rankServiceBuilder_.getMessageOrBuilder(); + } else { + if (rankingConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Config for Rank Service.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService rank_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceOrBuilder> + getRankServiceFieldBuilder() { + if (rankServiceBuilder_ == null) { + if (!(rankingConfigCase_ == 1)) { + rankingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .getDefaultInstance(); + } + rankServiceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService + .Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + .RankServiceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService) + rankingConfig_, + getParentForChildren(), + isClean()); + rankingConfig_ = null; + } + rankingConfigCase_ = 1; + onChanged(); + return rankServiceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder> + llmRankerBuilder_; + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmRanker field is set. + */ + @java.lang.Override + public boolean hasLlmRanker() { + return rankingConfigCase_ == 3; + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmRanker. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + getLlmRanker() { + if (llmRankerBuilder_ == null) { + if (rankingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } else { + if (rankingConfigCase_ == 3) { + return llmRankerBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmRanker( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker value) { + if (llmRankerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rankingConfig_ = value; + onChanged(); + } else { + llmRankerBuilder_.setMessage(value); + } + rankingConfigCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmRanker( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder + builderForValue) { + if (llmRankerBuilder_ == null) { + rankingConfig_ = builderForValue.build(); + onChanged(); + } else { + llmRankerBuilder_.setMessage(builderForValue.build()); + } + rankingConfigCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmRanker( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker value) { + if (llmRankerBuilder_ == null) { + if (rankingConfigCase_ == 3 + && rankingConfig_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance()) { + rankingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + rankingConfig_ = value; + } + onChanged(); + } else { + if (rankingConfigCase_ == 3) { + llmRankerBuilder_.mergeFrom(value); + } else { + llmRankerBuilder_.setMessage(value); + } + } + rankingConfigCase_ = 3; + return this; + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmRanker() { + if (llmRankerBuilder_ == null) { + if (rankingConfigCase_ == 3) { + rankingConfigCase_ = 0; + rankingConfig_ = null; + onChanged(); + } + } else { + if (rankingConfigCase_ == 3) { + rankingConfigCase_ = 0; + rankingConfig_ = null; + } + llmRankerBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder + getLlmRankerBuilder() { + return getLlmRankerFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder + getLlmRankerOrBuilder() { + if ((rankingConfigCase_ == 3) && (llmRankerBuilder_ != null)) { + return llmRankerBuilder_.getMessageOrBuilder(); + } else { + if (rankingConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_; + } + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Optional. Config for LlmRanker.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker llm_ranker = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerOrBuilder> + getLlmRankerFieldBuilder() { + if (llmRankerBuilder_ == null) { + if (!(rankingConfigCase_ == 3)) { + rankingConfig_ = + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker + .getDefaultInstance(); + } + llmRankerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + .LlmRankerOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRanker) + rankingConfig_, + getParentForChildren(), + isClean()); + rankingConfig_ = null; + } + rankingConfigCase_ = 3; + onChanged(); + return llmRankerBuilder_; + } + + @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.RagRetrievalConfig.Ranking) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Ranking 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.RagRetrievalConfig.Ranking + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TOP_K_FIELD_NUMBER = 1; + private int topK_ = 0; + /** + * + * + *
+   * Optional. The number of contexts to retrieve.
+   * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + + public static final int HYBRID_SEARCH_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybridSearch_; + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridSearch field is set. + */ + @java.lang.Override + public boolean hasHybridSearch() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch getHybridSearch() { + return hybridSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.getDefaultInstance() + : hybridSearch_; + } + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder + getHybridSearchOrBuilder() { + return hybridSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.getDefaultInstance() + : hybridSearch_; + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter_; + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter getFilter() { + return filter_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder + getFilterOrBuilder() { + return filter_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + + public static final int RANKING_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking_; + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ranking field is set. + */ + @java.lang.Override + public boolean hasRanking() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ranking. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking getRanking() { + return ranking_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance() + : ranking_; + } + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder + getRankingOrBuilder() { + return ranking_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance() + : ranking_; + } + + 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 (topK_ != 0) { + output.writeInt32(1, topK_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getHybridSearch()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getFilter()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getRanking()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (topK_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, topK_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHybridSearch()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRanking()); + } + 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.RagRetrievalConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig other = + (com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig) obj; + + if (getTopK() != other.getTopK()) return false; + if (hasHybridSearch() != other.hasHybridSearch()) return false; + if (hasHybridSearch()) { + if (!getHybridSearch().equals(other.getHybridSearch())) return false; + } + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasRanking() != other.hasRanking()) return false; + if (hasRanking()) { + if (!getRanking().equals(other.getRanking())) 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) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + getTopK(); + if (hasHybridSearch()) { + hash = (37 * hash) + HYBRID_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getHybridSearch().hashCode(); + } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasRanking()) { + hash = (37 * hash) + RANKING_FIELD_NUMBER; + hash = (53 * hash) + getRanking().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig 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.RagRetrievalConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig 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.RagRetrievalConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig 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.RagRetrievalConfig 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.RagRetrievalConfig 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.RagRetrievalConfig 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 context retrieval config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagRetrievalConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagRetrievalConfig) + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.class, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHybridSearchFieldBuilder(); + getFilterFieldBuilder(); + getRankingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topK_ = 0; + hybridSearch_ = null; + if (hybridSearchBuilder_ != null) { + hybridSearchBuilder_.dispose(); + hybridSearchBuilder_ = null; + } + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + ranking_ = null; + if (rankingBuilder_ != null) { + rankingBuilder_.dispose(); + rankingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig build() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig result = + new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topK_ = topK_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hybridSearch_ = + hybridSearchBuilder_ == null ? hybridSearch_ : hybridSearchBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ranking_ = rankingBuilder_ == null ? ranking_ : rankingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + 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.v1beta1.RagRetrievalConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance()) + return this; + if (other.getTopK() != 0) { + setTopK(other.getTopK()); + } + if (other.hasHybridSearch()) { + mergeHybridSearch(other.getHybridSearch()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasRanking()) { + mergeRanking(other.getRanking()); + } + 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: + { + topK_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getHybridSearchFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getRankingFieldBuilder().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 bitField0_; + + private int topK_; + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public int getTopK() { + return topK_; + } + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(int value) { + + topK_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The number of contexts to retrieve.
+     * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000001); + topK_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybridSearch_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder> + hybridSearchBuilder_; + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridSearch field is set. + */ + public boolean hasHybridSearch() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridSearch. + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch getHybridSearch() { + if (hybridSearchBuilder_ == null) { + return hybridSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + .getDefaultInstance() + : hybridSearch_; + } else { + return hybridSearchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHybridSearch( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch value) { + if (hybridSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridSearch_ = value; + } else { + hybridSearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHybridSearch( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder + builderForValue) { + if (hybridSearchBuilder_ == null) { + hybridSearch_ = builderForValue.build(); + } else { + hybridSearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHybridSearch( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch value) { + if (hybridSearchBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && hybridSearch_ != null + && hybridSearch_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + .getDefaultInstance()) { + getHybridSearchBuilder().mergeFrom(value); + } else { + hybridSearch_ = value; + } + } else { + hybridSearchBuilder_.mergeFrom(value); + } + if (hybridSearch_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHybridSearch() { + bitField0_ = (bitField0_ & ~0x00000002); + hybridSearch_ = null; + if (hybridSearchBuilder_ != null) { + hybridSearchBuilder_.dispose(); + hybridSearchBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder + getHybridSearchBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHybridSearchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder + getHybridSearchOrBuilder() { + if (hybridSearchBuilder_ != null) { + return hybridSearchBuilder_.getMessageOrBuilder(); + } else { + return hybridSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch + .getDefaultInstance() + : hybridSearch_; + } + } + /** + * + * + *
+     * Optional. Config for Hybrid Search.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder> + getHybridSearchFieldBuilder() { + if (hybridSearchBuilder_ == null) { + hybridSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder>( + getHybridSearch(), getParentForChildren(), isClean()); + hybridSearch_ = null; + } + return hybridSearchBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter(com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFilter( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && filter_ != null + && filter_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter + .getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder + getFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder + getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+     * Optional. Config for filters.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder> + rankingBuilder_; + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ranking field is set. + */ + public boolean hasRanking() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ranking. + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking getRanking() { + if (rankingBuilder_ == null) { + return ranking_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance() + : ranking_; + } else { + return rankingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRanking( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking value) { + if (rankingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ranking_ = value; + } else { + rankingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRanking( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder builderForValue) { + if (rankingBuilder_ == null) { + ranking_ = builderForValue.build(); + } else { + rankingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRanking( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking value) { + if (rankingBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && ranking_ != null + && ranking_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking + .getDefaultInstance()) { + getRankingBuilder().mergeFrom(value); + } else { + ranking_ = value; + } + } else { + rankingBuilder_.mergeFrom(value); + } + if (ranking_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRanking() { + bitField0_ = (bitField0_ & ~0x00000008); + ranking_ = null; + if (rankingBuilder_ != null) { + rankingBuilder_.dispose(); + rankingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder + getRankingBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRankingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder + getRankingOrBuilder() { + if (rankingBuilder_ != null) { + return rankingBuilder_.getMessageOrBuilder(); + } else { + return ranking_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.getDefaultInstance() + : ranking_; + } + } + /** + * + * + *
+     * Optional. Config for ranking and reranking.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder> + getRankingFieldBuilder() { + if (rankingBuilder_ == null) { + rankingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder>( + getRanking(), getParentForChildren(), isClean()); + ranking_ = null; + } + return rankingBuilder_; + } + + @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.RagRetrievalConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagRetrievalConfig) + private static final com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagRetrievalConfig 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.RagRetrievalConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfigOrBuilder.java new file mode 100644 index 000000000000..91754c4e6411 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagRetrievalConfigOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface RagRetrievalConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagRetrievalConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The number of contexts to retrieve.
+   * 
+ * + * int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + int getTopK(); + + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridSearch field is set. + */ + boolean hasHybridSearch(); + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridSearch. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch getHybridSearch(); + /** + * + * + *
+   * Optional. Config for Hybrid Search.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchOrBuilder + getHybridSearchOrBuilder(); + + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter getFilter(); + /** + * + * + *
+   * Optional. Config for filters.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder(); + + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ranking field is set. + */ + boolean hasRanking(); + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ranking. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking getRanking(); + /** + * + * + *
+   * Optional. Config for ranking and reranking.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingOrBuilder getRankingOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java index f7462eec26bf..b88bcb54c65e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java @@ -4017,6 +4017,63 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder getApiAuthOrBuilder( : apiAuth_; } + public static final int RAG_EMBEDDING_MODEL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig ragEmbeddingModelConfig_; + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + @java.lang.Override + public boolean hasRagEmbeddingModelConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddingModelConfig() { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder() { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4054,6 +4111,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch) vectorDb_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getRagEmbeddingModelConfig()); + } getUnknownFields().writeTo(output); } @@ -4093,6 +4153,10 @@ public int getSerializedSize() { 6, (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch) vectorDb_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRagEmbeddingModelConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4113,6 +4177,10 @@ public boolean equals(final java.lang.Object obj) { if (hasApiAuth()) { if (!getApiAuth().equals(other.getApiAuth())) return false; } + if (hasRagEmbeddingModelConfig() != other.hasRagEmbeddingModelConfig()) return false; + if (hasRagEmbeddingModelConfig()) { + if (!getRagEmbeddingModelConfig().equals(other.getRagEmbeddingModelConfig())) return false; + } if (!getVectorDbCase().equals(other.getVectorDbCase())) return false; switch (vectorDbCase_) { case 1: @@ -4148,6 +4216,10 @@ public int hashCode() { hash = (37 * hash) + API_AUTH_FIELD_NUMBER; hash = (53 * hash) + getApiAuth().hashCode(); } + if (hasRagEmbeddingModelConfig()) { + hash = (37 * hash) + RAG_EMBEDDING_MODEL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagEmbeddingModelConfig().hashCode(); + } switch (vectorDbCase_) { case 1: hash = (37 * hash) + RAG_MANAGED_DB_FIELD_NUMBER; @@ -4314,6 +4386,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getApiAuthFieldBuilder(); + getRagEmbeddingModelConfigFieldBuilder(); } } @@ -4341,6 +4414,11 @@ public Builder clear() { apiAuthBuilder_.dispose(); apiAuthBuilder_ = null; } + ragEmbeddingModelConfig_ = null; + if (ragEmbeddingModelConfigBuilder_ != null) { + ragEmbeddingModelConfigBuilder_.dispose(); + ragEmbeddingModelConfigBuilder_ = null; + } vectorDbCase_ = 0; vectorDb_ = null; return this; @@ -4385,6 +4463,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig result.apiAuth_ = apiAuthBuilder_ == null ? apiAuth_ : apiAuthBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ragEmbeddingModelConfig_ = + ragEmbeddingModelConfigBuilder_ == null + ? ragEmbeddingModelConfig_ + : ragEmbeddingModelConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -4457,6 +4542,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig o if (other.hasApiAuth()) { mergeApiAuth(other.getApiAuth()); } + if (other.hasRagEmbeddingModelConfig()) { + mergeRagEmbeddingModelConfig(other.getRagEmbeddingModelConfig()); + } switch (other.getVectorDbCase()) { case RAG_MANAGED_DB: { @@ -4552,6 +4640,13 @@ public Builder mergeFrom( vectorDbCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getRagEmbeddingModelConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5921,6 +6016,217 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder getApiAuthOrBuilder( return apiAuthBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig ragEmbeddingModelConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder> + ragEmbeddingModelConfigBuilder_; + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + public boolean hasRagEmbeddingModelConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig + getRagEmbeddingModelConfig() { + if (ragEmbeddingModelConfigBuilder_ == null) { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } else { + return ragEmbeddingModelConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) { + if (ragEmbeddingModelConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragEmbeddingModelConfig_ = value; + } else { + ragEmbeddingModelConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder builderForValue) { + if (ragEmbeddingModelConfigBuilder_ == null) { + ragEmbeddingModelConfig_ = builderForValue.build(); + } else { + ragEmbeddingModelConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeRagEmbeddingModelConfig( + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) { + if (ragEmbeddingModelConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && ragEmbeddingModelConfig_ != null + && ragEmbeddingModelConfig_ + != com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig + .getDefaultInstance()) { + getRagEmbeddingModelConfigBuilder().mergeFrom(value); + } else { + ragEmbeddingModelConfig_ = value; + } + } else { + ragEmbeddingModelConfigBuilder_.mergeFrom(value); + } + if (ragEmbeddingModelConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearRagEmbeddingModelConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + ragEmbeddingModelConfig_ = null; + if (ragEmbeddingModelConfigBuilder_ != null) { + ragEmbeddingModelConfigBuilder_.dispose(); + ragEmbeddingModelConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder + getRagEmbeddingModelConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getRagEmbeddingModelConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder() { + if (ragEmbeddingModelConfigBuilder_ != null) { + return ragEmbeddingModelConfigBuilder_.getMessageOrBuilder(); + } else { + return ragEmbeddingModelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.getDefaultInstance() + : ragEmbeddingModelConfig_; + } + } + /** + * + * + *
+     * Optional. Immutable. The embedding model config of the Vector DB.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder> + getRagEmbeddingModelConfigFieldBuilder() { + if (ragEmbeddingModelConfigBuilder_ == null) { + ragEmbeddingModelConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder>( + getRagEmbeddingModelConfig(), getParentForChildren(), isClean()); + ragEmbeddingModelConfig_ = null; + } + return ragEmbeddingModelConfigBuilder_; + } + @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/RagVectorDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java index 31dc0da503be..d367f16c5658 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java @@ -252,5 +252,47 @@ public interface RagVectorDbConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder getApiAuthOrBuilder(); + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the ragEmbeddingModelConfig field is set. + */ + boolean hasRagEmbeddingModelConfig(); + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ragEmbeddingModelConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddingModelConfig(); + /** + * + * + *
+   * Optional. Immutable. The embedding model config of the Vector DB.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig rag_embedding_model_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigOrBuilder + getRagEmbeddingModelConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VectorDbCase getVectorDbCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java index 5c37e05c2428..a9a3a3f335d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -50,28 +54,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le.cloud.aiplatform.v1beta1\032\034google/api/" + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\034google/protobuf/" - + "struct.proto\"\213\001\n\033QueryReasoningEngineReq" - + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.g" - + "oogleapis.com/ReasoningEngine\022+\n\005input\030\002" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"F\n\034Qu" - + "eryReasoningEngineResponse\022&\n\006output\030\001 \001" - + "(\0132\026.google.protobuf.Value2\322\002\n\037Reasoning" - + "EngineExecutionService\022\337\001\n\024QueryReasonin" - + "gEngine\022<.google.cloud.aiplatform.v1beta" - + "1.QueryReasoningEngineRequest\032=.google.c" - + "loud.aiplatform.v1beta1.QueryReasoningEn" - + "gineResponse\"J\202\323\344\223\002D\"?/v1beta1/{name=pro" - + "jects/*/locations/*/reasoningEngines/*}:" - + "query:\001*\032M\312A\031aiplatform.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\373\001\n#com.google.cloud.aiplatform." - + "v1beta1B$ReasoningEngineExecutionService" - + "ProtoP\001ZCcloud.google.com/go/aiplatform/" - + "apiv1beta1/aiplatformpb;aiplatformpb\252\002\037G" - + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" - + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" - + "::AIPlatform::V1beta1b\006proto3" + + "gle/api/httpbody.proto\032\031google/api/resou" + + "rce.proto\032\034google/protobuf/struct.proto\"" + + "\246\001\n\033QueryReasoningEngineRequest\022?\n\004name\030" + + "\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com" + + "/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027.google" + + ".protobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 " + + "\001(\tB\003\340A\001\"F\n\034QueryReasoningEngineResponse" + + "\022&\n\006output\030\001 \001(\0132\026.google.protobuf.Value" + + "\"\254\001\n!StreamQueryReasoningEngineRequest\022?" + + "\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googlea" + + "pis.com/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027" + + ".google.protobuf.StructB\003\340A\001\022\031\n\014class_me" + + "thod\030\003 \001(\tB\003\340A\0012\237\004\n\037ReasoningEngineExecu" + + "tionService\022\337\001\n\024QueryReasoningEngine\022<.g" + + "oogle.cloud.aiplatform.v1beta1.QueryReas" + + "oningEngineRequest\032=.google.cloud.aiplat" + + "form.v1beta1.QueryReasoningEngineRespons" + + "e\"J\202\323\344\223\002D\"?/v1beta1/{name=projects/*/loc" + + "ations/*/reasoningEngines/*}:query:\001*\022\312\001" + + "\n\032StreamQueryReasoningEngine\022B.google.cl" + + "oud.aiplatform.v1beta1.StreamQueryReason" + + "ingEngineRequest\032\024.google.api.HttpBody\"P" + + "\202\323\344\223\002J\"E/v1beta1/{name=projects/*/locati" + + "ons/*/reasoningEngines/*}:streamQuery:\001*" + + "0\001\032M\312A\031aiplatform.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\373\001\n#com.google.cloud.aiplatform.v1beta" + + "1B$ReasoningEngineExecutionServiceProtoP" + + "\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,6 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -89,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineRequest_descriptor, new java.lang.String[] { - "Name", "Input", + "Name", "Input", "ClassMethod", }); internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineResponse_descriptor = getDescriptor().getMessageTypes().get(1); @@ -99,6 +115,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Output", }); + internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "Input", "ClassMethod", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -111,6 +135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceProto.java index cce1fc70690f..23bcae5d6361 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceProto.java @@ -93,7 +93,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uest\022O\n\020reasoning_engine\030\001 \001(\01320.google." + "cloud.aiplatform.v1beta1.ReasoningEngine" + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"}\n&UpdateReasoningEn" + + "obuf.FieldMaskB\003\340A\001\"}\n&UpdateReasoningEn" + "gineOperationMetadata\022S\n\020generic_metadat" + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta" + "1.GenericOperationMetadata\"\236\001\n\033ListReaso" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java index 7d1a28bd26a0..48f2a2db027c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java @@ -1412,7 +1412,8 @@ public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.PackageSpec getPa * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -1427,7 +1428,8 @@ public java.util.List getClassMethodsList() { * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -1443,7 +1445,8 @@ public java.util.List getClassMethodsList() { * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -1458,7 +1461,8 @@ public int getClassMethodsCount() { * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -1473,7 +1477,8 @@ public com.google.protobuf.Struct getClassMethods(int index) { * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -2153,7 +2158,8 @@ private void ensureClassMethodsIsMutable() { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2171,7 +2177,8 @@ public java.util.List getClassMethodsList() { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2189,7 +2196,8 @@ public int getClassMethodsCount() { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2207,7 +2215,8 @@ public com.google.protobuf.Struct getClassMethods(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2231,7 +2240,8 @@ public Builder setClassMethods(int index, com.google.protobuf.Struct value) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2252,7 +2262,8 @@ public Builder setClassMethods(int index, com.google.protobuf.Struct.Builder bui * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2276,7 +2287,8 @@ public Builder addClassMethods(com.google.protobuf.Struct value) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2300,7 +2312,8 @@ public Builder addClassMethods(int index, com.google.protobuf.Struct value) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2321,7 +2334,8 @@ public Builder addClassMethods(com.google.protobuf.Struct.Builder builderForValu * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2342,7 +2356,8 @@ public Builder addClassMethods(int index, com.google.protobuf.Struct.Builder bui * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2364,7 +2379,8 @@ public Builder addAllClassMethods( * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2385,7 +2401,8 @@ public Builder clearClassMethods() { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2406,7 +2423,8 @@ public Builder removeClassMethods(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2420,7 +2438,8 @@ public com.google.protobuf.Struct.Builder getClassMethodsBuilder(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2438,7 +2457,8 @@ public com.google.protobuf.StructOrBuilder getClassMethodsOrBuilder(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2457,7 +2477,8 @@ public com.google.protobuf.StructOrBuilder getClassMethodsOrBuilder(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2472,7 +2493,8 @@ public com.google.protobuf.Struct.Builder addClassMethodsBuilder() { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * @@ -2487,7 +2509,8 @@ public com.google.protobuf.Struct.Builder addClassMethodsBuilder(int index) { * * *
-     * Optional. Declarations for object class methods.
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java index 8ad00e901cf6..01b50d8f6427 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpecOrBuilder.java @@ -70,7 +70,8 @@ public interface ReasoningEngineSpecOrBuilder * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -82,7 +83,8 @@ public interface ReasoningEngineSpecOrBuilder * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -94,7 +96,8 @@ public interface ReasoningEngineSpecOrBuilder * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -106,7 +109,8 @@ public interface ReasoningEngineSpecOrBuilder * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * @@ -118,7 +122,8 @@ public interface ReasoningEngineSpecOrBuilder * * *
-   * Optional. Declarations for object class methods.
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java index d69ab9c85cc3..78b756063460 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java @@ -229,7 +229,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagS * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=243 + * google/cloud/aiplatform/v1beta1/tool.proto;l=253 * @return The disableAttribution. */ @java.lang.Override @@ -1120,7 +1120,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagSt *
* * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=243 + * google/cloud/aiplatform/v1beta1/tool.proto;l=253 * @return The disableAttribution. */ @java.lang.Override @@ -1140,7 +1140,7 @@ public boolean getDisableAttribution() { *
* * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=243 + * google/cloud/aiplatform/v1beta1/tool.proto;l=253 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setDisableAttribution(boolean value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=243 + * google/cloud/aiplatform/v1beta1/tool.proto;l=253 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java index f1ee2840fb41..dc5a3e587efc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java @@ -109,7 +109,7 @@ public interface RetrievalOrBuilder *
* * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=243 + * google/cloud/aiplatform/v1beta1/tool.proto;l=253 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java index fd4afeeab337..ab9d49209e67 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java @@ -83,7 +83,7 @@ public interface VertexRagStoreOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -102,7 +102,7 @@ public interface VertexRagStoreOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -121,7 +121,7 @@ public interface VertexRagStoreOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -141,7 +141,7 @@ public interface VertexRagStoreOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -241,11 +241,15 @@ public interface VertexRagStoreOrBuilder * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return Whether the vectorDistanceThreshold field is set. */ + @java.lang.Deprecated boolean hasVectorDistanceThreshold(); /** * @@ -256,11 +260,15 @@ public interface VertexRagStoreOrBuilder * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return The vectorDistanceThreshold. */ + @java.lang.Deprecated double getVectorDistanceThreshold(); } /** @@ -1415,7 +1423,7 @@ public com.google.protobuf.Parser getParserForType() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1436,7 +1444,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1457,7 +1465,7 @@ public int getRagCorporaCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1479,7 +1487,7 @@ public java.lang.String getRagCorpora(int index) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1605,12 +1613,16 @@ public int getRagResourcesCount() { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasVectorDistanceThreshold() { return ((bitField0_ & 0x00000001) != 0); } @@ -1623,12 +1635,16 @@ public boolean hasVectorDistanceThreshold() { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return The vectorDistanceThreshold. */ @java.lang.Override + @java.lang.Deprecated public double getVectorDistanceThreshold() { return vectorDistanceThreshold_; } @@ -2146,7 +2162,7 @@ private void ensureRagCorporaIsMutable() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -2168,7 +2184,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -2189,7 +2205,7 @@ public int getRagCorporaCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -2211,7 +2227,7 @@ public java.lang.String getRagCorpora(int index) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -2233,7 +2249,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -2263,7 +2279,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -2292,7 +2308,7 @@ public Builder addRagCorpora(java.lang.String value) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2318,7 +2334,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2343,7 +2359,7 @@ public Builder clearRagCorpora() { * * @deprecated * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=97 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=127 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ @@ -2869,12 +2885,16 @@ public Builder removeRagResources(int index) { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasVectorDistanceThreshold() { return ((bitField0_ & 0x00000004) != 0); } @@ -2887,12 +2907,16 @@ public boolean hasVectorDistanceThreshold() { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return The vectorDistanceThreshold. */ @java.lang.Override + @java.lang.Deprecated public double getVectorDistanceThreshold() { return vectorDistanceThreshold_; } @@ -2905,12 +2929,16 @@ public double getVectorDistanceThreshold() { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setVectorDistanceThreshold(double value) { vectorDistanceThreshold_ = value; @@ -2927,11 +2955,15 @@ public Builder setVectorDistanceThreshold(double value) { * * * - * optional double vector_distance_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=139 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearVectorDistanceThreshold() { bitField0_ = (bitField0_ & ~0x00000004); vectorDistanceThreshold_ = 0D; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java new file mode 100644 index 000000000000..41a21f0ee021 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java @@ -0,0 +1,724 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The speech generation config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig} + */ +public final class SpeechConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SpeechConfig) + SpeechConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpeechConfig.newBuilder() to construct. + private SpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpeechConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SpeechConfig.class, + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder.class); + } + + private int bitField0_; + public static final int VOICE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.VoiceConfig voiceConfig_; + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + 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, getVoiceConfig()); + } + 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, getVoiceConfig()); + } + 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.SpeechConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SpeechConfig other = + (com.google.cloud.aiplatform.v1beta1.SpeechConfig) obj; + + if (hasVoiceConfig() != other.hasVoiceConfig()) return false; + if (hasVoiceConfig()) { + if (!getVoiceConfig().equals(other.getVoiceConfig())) 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 (hasVoiceConfig()) { + hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVoiceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig 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.SpeechConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig 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.SpeechConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig 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.SpeechConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig 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.SpeechConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig 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.SpeechConfig 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.SpeechConfig 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.SpeechConfig 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 speech generation config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SpeechConfig) + com.google.cloud.aiplatform.v1beta1.SpeechConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SpeechConfig.class, + com.google.cloud.aiplatform.v1beta1.SpeechConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SpeechConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVoiceConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeechConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeechConfig build() { + com.google.cloud.aiplatform.v1beta1.SpeechConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeechConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.SpeechConfig result = + new com.google.cloud.aiplatform.v1beta1.SpeechConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpeechConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceConfig_ = + voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.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.v1beta1.SpeechConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SpeechConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpeechConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.SpeechConfig.getDefaultInstance()) + return this; + if (other.hasVoiceConfig()) { + mergeVoiceConfig(other.getVoiceConfig()); + } + 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(getVoiceConfigFieldBuilder().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.v1beta1.VoiceConfig voiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder> + voiceConfigBuilder_; + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { + if (voiceConfigBuilder_ == null) { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } else { + return voiceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public Builder setVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + } else { + voiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public Builder setVoiceConfig( + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder builderForValue) { + if (voiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + } else { + voiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && voiceConfig_ != null + && voiceConfig_ + != com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()) { + getVoiceConfigBuilder().mergeFrom(value); + } else { + voiceConfig_ = value; + } + } else { + voiceConfigBuilder_.mergeFrom(value); + } + if (voiceConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public Builder clearVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder getVoiceConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVoiceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + if (voiceConfigBuilder_ != null) { + return voiceConfigBuilder_.getMessageOrBuilder(); + } else { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + } + /** + * + * + *
+     * The configuration for the speaker to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder> + getVoiceConfigFieldBuilder() { + if (voiceConfigBuilder_ == null) { + voiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder>( + getVoiceConfig(), getParentForChildren(), isClean()); + voiceConfig_ = null; + } + return voiceConfigBuilder_; + } + + @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.SpeechConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SpeechConfig) + private static final com.google.cloud.aiplatform.v1beta1.SpeechConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SpeechConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeechConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechConfig 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.SpeechConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java new file mode 100644 index 000000000000..f80cdedcae77 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.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/v1beta1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface SpeechConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SpeechConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + boolean hasVoiceConfig(); + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig(); + /** + * + * + *
+   * The configuration for the speaker to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; + */ + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..c1a93d7853a4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequest.java @@ -0,0 +1,1137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [ReasoningEngineExecutionService.StreamQuery][].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest} + */ +public final class StreamQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) + StreamQueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamQueryReasoningEngineRequest.newBuilder() to construct. + private StreamQueryReasoningEngineRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamQueryReasoningEngineRequest() { + name_ = ""; + classMethod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamQueryReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * 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 name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * 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; + } + } + + public static final int INPUT_FIELD_NUMBER = 2; + private com.google.protobuf.Struct input_; + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the input field is set. + */ + @java.lang.Override + public boolean hasInput() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The input. + */ + @java.lang.Override + public com.google.protobuf.Struct getInput() { + return input_ == null ? com.google.protobuf.Struct.getDefaultInstance() : input_; + } + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputOrBuilder() { + return input_ == null ? com.google.protobuf.Struct.getDefaultInstance() : input_; + } + + public static final int CLASS_METHOD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object classMethod_ = ""; + /** + * + * + *
+   * Optional. Class method to be used for the stream query.
+   * It is optional and defaults to "stream_query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + @java.lang.Override + public java.lang.String getClassMethod() { + java.lang.Object ref = classMethod_; + 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(); + classMethod_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Class method to be used for the stream query.
+   * It is optional and defaults to "stream_query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClassMethodBytes() { + java.lang.Object ref = classMethod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + classMethod_ = 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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInput()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classMethod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, classMethod_); + } + 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, getInput()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classMethod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, classMethod_); + } + 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.StreamQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasInput() != other.hasInput()) return false; + if (hasInput()) { + if (!getInput().equals(other.getInput())) return false; + } + if (!getClassMethod().equals(other.getClassMethod())) 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 (hasInput()) { + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + } + hash = (37 * hash) + CLASS_METHOD_FIELD_NUMBER; + hash = (53 * hash) + getClassMethod().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + 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.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest 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 [ReasoningEngineExecutionService.StreamQuery][].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + classMethod_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.classMethod_ = classMethod_; + } + 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.v1beta1.StreamQueryReasoningEngineRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInput()) { + mergeInput(other.getInput()); + } + if (!other.getClassMethod().isEmpty()) { + classMethod_ = other.classMethod_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getInputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + classMethod_ = 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 name_ = ""; + /** + * + * + *
+     * Required. The name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * 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 name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * 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 name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * 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 name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * 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 name of the ReasoningEngine resource to use.
+     * Format:
+     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+     * 
+ * + * + * 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; + } + + private com.google.protobuf.Struct input_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputBuilder_; + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the input field is set. + */ + public boolean hasInput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The input. + */ + public com.google.protobuf.Struct getInput() { + if (inputBuilder_ == null) { + return input_ == null ? com.google.protobuf.Struct.getDefaultInstance() : input_; + } else { + return inputBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInput(com.google.protobuf.Struct value) { + if (inputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + } else { + inputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInput(com.google.protobuf.Struct.Builder builderForValue) { + if (inputBuilder_ == null) { + input_ = builderForValue.build(); + } else { + inputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeInput(com.google.protobuf.Struct value) { + if (inputBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && input_ != null + && input_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputBuilder().mergeFrom(value); + } else { + input_ = value; + } + } else { + inputBuilder_.mergeFrom(value); + } + if (input_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearInput() { + bitField0_ = (bitField0_ & ~0x00000002); + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); + inputBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getInputBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getInputOrBuilder() { + if (inputBuilder_ != null) { + return inputBuilder_.getMessageOrBuilder(); + } else { + return input_ == null ? com.google.protobuf.Struct.getDefaultInstance() : input_; + } + } + /** + * + * + *
+     * Optional. Input content provided by users in JSON object format. Examples
+     * include text query, function calling parameters, media bytes, etc.
+     * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputFieldBuilder() { + if (inputBuilder_ == null) { + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getInput(), getParentForChildren(), isClean()); + input_ = null; + } + return inputBuilder_; + } + + private java.lang.Object classMethod_ = ""; + /** + * + * + *
+     * Optional. Class method to be used for the stream query.
+     * It is optional and defaults to "stream_query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + public java.lang.String getClassMethod() { + java.lang.Object ref = classMethod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + classMethod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Class method to be used for the stream query.
+     * It is optional and defaults to "stream_query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + public com.google.protobuf.ByteString getClassMethodBytes() { + java.lang.Object ref = classMethod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + classMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Class method to be used for the stream query.
+     * It is optional and defaults to "stream_query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The classMethod to set. + * @return This builder for chaining. + */ + public Builder setClassMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + classMethod_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Class method to be used for the stream query.
+     * It is optional and defaults to "stream_query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClassMethod() { + classMethod_ = getDefaultInstance().getClassMethod(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Class method to be used for the stream query.
+     * It is optional and defaults to "stream_query" if unspecified.
+     * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for classMethod to set. + * @return This builder for chaining. + */ + public Builder setClassMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + classMethod_ = 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.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamQueryReasoningEngineRequest 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.StreamQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..1991948fa8a0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamQueryReasoningEngineRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface StreamQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to use.
+   * Format:
+   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the input field is set. + */ + boolean hasInput(); + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The input. + */ + com.google.protobuf.Struct getInput(); + /** + * + * + *
+   * Optional. Input content provided by users in JSON object format. Examples
+   * include text query, function calling parameters, media bytes, etc.
+   * 
+ * + * .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getInputOrBuilder(); + + /** + * + * + *
+   * Optional. Class method to be used for the stream query.
+   * It is optional and defaults to "stream_query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The classMethod. + */ + java.lang.String getClassMethod(); + /** + * + * + *
+   * Optional. Class method to be used for the stream query.
+   * It is optional and defaults to "stream_query" if unspecified.
+   * 
+ * + * string class_method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for classMethod. + */ + com.google.protobuf.ByteString getClassMethodBytes(); +} 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 80a237c852d6..5b9aa922f9ac 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 @@ -69,6 +69,431 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.Tool.Builder.class); } + public interface GoogleSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.GoogleSearch} + */ + public static final class GoogleSearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) + GoogleSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleSearch.newBuilder() to construct. + private GoogleSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleSearch() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.class, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.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.aiplatform.v1beta1.Tool.GoogleSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch other = + (com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) 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.aiplatform.v1beta1.Tool.GoogleSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch 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.Tool.GoogleSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch 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.Tool.GoogleSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch 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.Tool.GoogleSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch 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.Tool.GoogleSearch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch 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.Tool.GoogleSearch 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.Tool.GoogleSearch 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.Tool.GoogleSearch 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; + } + /** + * + * + *
+     * GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.GoogleSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.class, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.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.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch build() { + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch buildPartial() { + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch result = + new com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch(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.aiplatform.v1beta1.Tool.GoogleSearch) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch other) { + if (other == com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.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.aiplatform.v1beta1.Tool.GoogleSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) + private static final com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch(); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSearch 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.Tool.GoogleSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CodeExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tool.CodeExecution) @@ -513,8 +938,10 @@ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution getDefaultInstance * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -536,8 +963,10 @@ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution getDefaultInstance * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -559,8 +988,10 @@ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution getDefaultInstance * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -581,8 +1012,10 @@ public int getFunctionDeclarationsCount() { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -604,8 +1037,10 @@ public com.google.cloud.aiplatform.v1beta1.FunctionDeclaration getFunctionDeclar * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -686,6 +1121,65 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil : retrieval_; } + public static final int GOOGLE_SEARCH_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch googleSearch_; + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearch field is set. + */ + @java.lang.Override + public boolean hasGoogleSearch() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getGoogleSearch() { + return googleSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance() + : googleSearch_; + } + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder getGoogleSearchOrBuilder() { + return googleSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance() + : googleSearch_; + } + public static final int GOOGLE_SEARCH_RETRIEVAL_FIELD_NUMBER = 3; private com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval googleSearchRetrieval_; /** @@ -704,7 +1198,7 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil */ @java.lang.Override public boolean hasGoogleSearchRetrieval() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -765,7 +1259,7 @@ public com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval getGoogleSearch */ @java.lang.Override public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -829,12 +1323,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRetrieval()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getCodeExecution()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getGoogleSearch()); + } getUnknownFields().writeTo(output); } @@ -851,13 +1348,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetrieval()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGoogleSearchRetrieval()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeExecution()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGoogleSearch()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -878,6 +1378,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRetrieval()) { if (!getRetrieval().equals(other.getRetrieval())) return false; } + if (hasGoogleSearch() != other.hasGoogleSearch()) return false; + if (hasGoogleSearch()) { + if (!getGoogleSearch().equals(other.getGoogleSearch())) return false; + } if (hasGoogleSearchRetrieval() != other.hasGoogleSearchRetrieval()) return false; if (hasGoogleSearchRetrieval()) { if (!getGoogleSearchRetrieval().equals(other.getGoogleSearchRetrieval())) return false; @@ -905,6 +1409,10 @@ public int hashCode() { hash = (37 * hash) + RETRIEVAL_FIELD_NUMBER; hash = (53 * hash) + getRetrieval().hashCode(); } + if (hasGoogleSearch()) { + hash = (37 * hash) + GOOGLE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSearch().hashCode(); + } if (hasGoogleSearchRetrieval()) { hash = (37 * hash) + GOOGLE_SEARCH_RETRIEVAL_FIELD_NUMBER; hash = (53 * hash) + getGoogleSearchRetrieval().hashCode(); @@ -1061,6 +1569,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionDeclarationsFieldBuilder(); getRetrievalFieldBuilder(); + getGoogleSearchFieldBuilder(); getGoogleSearchRetrievalFieldBuilder(); getCodeExecutionFieldBuilder(); } @@ -1082,6 +1591,11 @@ public Builder clear() { retrievalBuilder_.dispose(); retrievalBuilder_ = null; } + googleSearch_ = null; + if (googleSearchBuilder_ != null) { + googleSearchBuilder_.dispose(); + googleSearchBuilder_ = null; + } googleSearchRetrieval_ = null; if (googleSearchRetrievalBuilder_ != null) { googleSearchRetrievalBuilder_.dispose(); @@ -1147,16 +1661,21 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool result) { to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.googleSearch_ = + googleSearchBuilder_ == null ? googleSearch_ : googleSearchBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.googleSearchRetrieval_ = googleSearchRetrievalBuilder_ == null ? googleSearchRetrieval_ : googleSearchRetrievalBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.codeExecution_ = codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1236,6 +1755,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool other) { if (other.hasRetrieval()) { mergeRetrieval(other.getRetrieval()); } + if (other.hasGoogleSearch()) { + mergeGoogleSearch(other.getGoogleSearch()); + } if (other.hasGoogleSearchRetrieval()) { mergeGoogleSearchRetrieval(other.getGoogleSearchRetrieval()); } @@ -1292,15 +1814,21 @@ public Builder mergeFrom( { input.readMessage( getGoogleSearchRetrievalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getCodeExecutionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 + case 58: + { + input.readMessage(getGoogleSearchFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1345,8 +1873,10 @@ private void ensureFunctionDeclarationsIsMutable() { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1371,8 +1901,10 @@ private void ensureFunctionDeclarationsIsMutable() { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1396,8 +1928,10 @@ public int getFunctionDeclarationsCount() { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1422,8 +1956,10 @@ public com.google.cloud.aiplatform.v1beta1.FunctionDeclaration getFunctionDeclar * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1454,8 +1990,10 @@ public Builder setFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1484,8 +2022,10 @@ public Builder setFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1516,8 +2056,10 @@ public Builder addFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1548,8 +2090,10 @@ public Builder addFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1577,8 +2121,10 @@ public Builder addFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1607,8 +2153,10 @@ public Builder addFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1637,8 +2185,10 @@ public Builder addAllFunctionDeclarations( * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1665,8 +2215,10 @@ public Builder clearFunctionDeclarations() { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1693,8 +2245,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1715,8 +2269,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1741,8 +2297,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1768,8 +2326,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1791,8 +2351,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -1815,8 +2377,10 @@ public Builder removeFunctionDeclarations(int index) { * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -2082,6 +2646,221 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil return retrievalBuilder_; } + private com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch googleSearch_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder> + googleSearchBuilder_; + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearch field is set. + */ + public boolean hasGoogleSearch() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearch. + */ + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getGoogleSearch() { + if (googleSearchBuilder_ == null) { + return googleSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance() + : googleSearch_; + } else { + return googleSearchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleSearch(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch value) { + if (googleSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSearch_ = value; + } else { + googleSearchBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleSearch( + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder builderForValue) { + if (googleSearchBuilder_ == null) { + googleSearch_ = builderForValue.build(); + } else { + googleSearchBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoogleSearch(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch value) { + if (googleSearchBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && googleSearch_ != null + && googleSearch_ + != com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance()) { + getGoogleSearchBuilder().mergeFrom(value); + } else { + googleSearch_ = value; + } + } else { + googleSearchBuilder_.mergeFrom(value); + } + if (googleSearch_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoogleSearch() { + bitField0_ = (bitField0_ & ~0x00000004); + googleSearch_ = null; + if (googleSearchBuilder_ != null) { + googleSearchBuilder_.dispose(); + googleSearchBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder getGoogleSearchBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGoogleSearchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder + getGoogleSearchOrBuilder() { + if (googleSearchBuilder_ != null) { + return googleSearchBuilder_.getMessageOrBuilder(); + } else { + return googleSearch_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.getDefaultInstance() + : googleSearch_; + } + } + /** + * + * + *
+     * Optional. GoogleSearch tool type.
+     * Tool to support Google Search in Model. Powered by Google.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder> + getGoogleSearchFieldBuilder() { + if (googleSearchBuilder_ == null) { + googleSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder>( + getGoogleSearch(), getParentForChildren(), isClean()); + googleSearch_ = null; + } + return googleSearchBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval googleSearchRetrieval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval, @@ -2103,7 +2882,7 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil * @return Whether the googleSearchRetrieval field is set. */ public boolean hasGoogleSearchRetrieval() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2150,7 +2929,7 @@ public Builder setGoogleSearchRetrieval( } else { googleSearchRetrievalBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2173,7 +2952,7 @@ public Builder setGoogleSearchRetrieval( } else { googleSearchRetrievalBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2192,7 +2971,7 @@ public Builder setGoogleSearchRetrieval( public Builder mergeGoogleSearchRetrieval( com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval value) { if (googleSearchRetrievalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && googleSearchRetrieval_ != null && googleSearchRetrieval_ != com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.getDefaultInstance()) { @@ -2204,7 +2983,7 @@ public Builder mergeGoogleSearchRetrieval( googleSearchRetrievalBuilder_.mergeFrom(value); } if (googleSearchRetrieval_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -2222,7 +3001,7 @@ public Builder mergeGoogleSearchRetrieval( * */ public Builder clearGoogleSearchRetrieval() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); googleSearchRetrieval_ = null; if (googleSearchRetrievalBuilder_ != null) { googleSearchRetrievalBuilder_.dispose(); @@ -2245,7 +3024,7 @@ public Builder clearGoogleSearchRetrieval() { */ public com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval.Builder getGoogleSearchRetrievalBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getGoogleSearchRetrievalFieldBuilder().getBuilder(); } @@ -2322,7 +3101,7 @@ public Builder clearGoogleSearchRetrieval() { * @return Whether the codeExecution field is set. */ public boolean hasCodeExecution() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2370,7 +3149,7 @@ public Builder setCodeExecution(com.google.cloud.aiplatform.v1beta1.Tool.CodeExe } else { codeExecutionBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2394,7 +3173,7 @@ public Builder setCodeExecution( } else { codeExecutionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2414,7 +3193,7 @@ public Builder setCodeExecution( public Builder mergeCodeExecution( com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution value) { if (codeExecutionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && codeExecution_ != null && codeExecution_ != com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution.getDefaultInstance()) { @@ -2426,7 +3205,7 @@ public Builder mergeCodeExecution( codeExecutionBuilder_.mergeFrom(value); } if (codeExecution_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2445,7 +3224,7 @@ public Builder mergeCodeExecution( * */ public Builder clearCodeExecution() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); codeExecution_ = null; if (codeExecutionBuilder_ != null) { codeExecutionBuilder_.dispose(); @@ -2469,7 +3248,7 @@ public Builder clearCodeExecution() { */ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution.Builder getCodeExecutionBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getCodeExecutionFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java new file mode 100644 index 000000000000..c0492853b507 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCall.java @@ -0,0 +1,879 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for tool call.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ToolCall} + */ +public final class ToolCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolCall() { + toolName_ = ""; + toolInput_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCall(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ToolCall.class, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder.class); + } + + private int bitField0_; + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + @java.lang.Override + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + 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(); + toolName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_INPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolInput_ = ""; + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + @java.lang.Override + public boolean hasToolInput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + @java.lang.Override + public java.lang.String getToolInput() { + java.lang.Object ref = toolInput_; + 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(); + toolInput_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolInputBytes() { + java.lang.Object ref = toolInput_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolInput_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, toolName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toolInput_); + } + 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.GeneratedMessageV3.computeStringSize(1, toolName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toolInput_); + } + 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.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ToolCall other = + (com.google.cloud.aiplatform.v1beta1.ToolCall) obj; + + if (hasToolName() != other.hasToolName()) return false; + if (hasToolName()) { + if (!getToolName().equals(other.getToolName())) return false; + } + if (hasToolInput() != other.hasToolInput()) return false; + if (hasToolInput()) { + if (!getToolInput().equals(other.getToolInput())) 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 (hasToolName()) { + hash = (37 * hash) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + } + if (hasToolInput()) { + hash = (37 * hash) + TOOL_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getToolInput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall 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.ToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall 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.ToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall 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.ToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall 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.ToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall 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.ToolCall 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.ToolCall 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.ToolCall 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; + } + /** + * + * + *
+   * Spec for tool call.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ToolCall) + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ToolCall.class, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ToolCall.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + toolInput_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall build() { + com.google.cloud.aiplatform.v1beta1.ToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall buildPartial() { + com.google.cloud.aiplatform.v1beta1.ToolCall result = + new com.google.cloud.aiplatform.v1beta1.ToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ToolCall result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolInput_ = toolInput_; + 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.aiplatform.v1beta1.ToolCall) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ToolCall other) { + if (other == com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()) return this; + if (other.hasToolName()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasToolInput()) { + toolInput_ = other.toolInput_; + 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: + { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolInput_ = 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 toolName_ = ""; + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolInput_ = ""; + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + public boolean hasToolInput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + public java.lang.String getToolInput() { + java.lang.Object ref = toolInput_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolInput_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + public com.google.protobuf.ByteString getToolInputBytes() { + java.lang.Object ref = toolInput_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolInput_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolInput to set. + * @return This builder for chaining. + */ + public Builder setToolInput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolInput_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolInput() { + toolInput_ = getDefaultInstance().getToolInput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for tool input
+     * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolInput to set. + * @return This builder for chaining. + */ + public Builder setToolInputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolInput_ = 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.v1beta1.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ToolCall) + private static final com.google.cloud.aiplatform.v1beta1.ToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ToolCall(); + } + + public static com.google.cloud.aiplatform.v1beta1.ToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall 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.ToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java new file mode 100644 index 000000000000..c961858d08e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolCallOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + boolean hasToolName(); + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + java.lang.String getToolName(); + /** + * + * + *
+   * Required. Spec for tool name
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); + + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the toolInput field is set. + */ + boolean hasToolInput(); + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolInput. + */ + java.lang.String getToolInput(); + /** + * + * + *
+   * Optional. Spec for tool input
+   * 
+ * + * optional string tool_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolInput. + */ + com.google.protobuf.ByteString getToolInputBytes(); +} 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 5f016f8241fc..a8328e89fa19 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 @@ -31,8 +31,10 @@ public interface ToolOrBuilder * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -51,8 +53,10 @@ public interface ToolOrBuilder * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -70,8 +74,10 @@ public interface ToolOrBuilder * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -89,8 +95,10 @@ public interface ToolOrBuilder * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -109,8 +117,10 @@ public interface ToolOrBuilder * 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] + * by populating + * [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + * response. User should provide a + * [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -173,6 +183,50 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl */ com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuilder(); + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearch field is set. + */ + boolean hasGoogleSearch(); + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearch. + */ + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch getGoogleSearch(); + /** + * + * + *
+   * Optional. GoogleSearch tool type.
+   * Tool to support Google Search in Model. Powered by Google.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.GoogleSearch google_search = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearchOrBuilder getGoogleSearchOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java index eb44dba6ef06..bb5c87e98060 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpec.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Whether to use STRCIT string match on parameter values.
+   * Optional. Whether to use STRICT string match on parameter values.
    * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -428,7 +428,7 @@ public Builder mergeFrom( * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -443,7 +443,7 @@ public boolean getUseStrictStringMatch() { * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -462,7 +462,7 @@ public Builder setUseStrictStringMatch(boolean value) { * * *
-     * Optional. Whether to use STRCIT string match on parameter values.
+     * Optional. Whether to use STRICT string match on parameter values.
      * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java index bb0f066a8513..94e50c3191bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolParameterKVMatchSpecOrBuilder.java @@ -28,7 +28,7 @@ public interface ToolParameterKVMatchSpecOrBuilder * * *
-   * Optional. Whether to use STRCIT string match on parameter values.
+   * Optional. Whether to use STRICT string match on parameter values.
    * 
* * bool use_strict_string_match = 1 [(.google.api.field_behavior) = OPTIONAL]; 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 ef416b1008a8..debe25a09d2f 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 @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Tool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -96,6 +100,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_FunctionCallingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_FunctionCallingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -110,84 +138,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\"\345\002\n\004Tool\022X\n\025function_decl" + + "f/struct.proto\"\305\003\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" + + "1beta1.RetrievalB\003\340A\001\022N\n\rgoogle_search\030\007" + + " \001(\01322.google.cloud.aiplatform.v1beta1.T" + + "ool.GoogleSearchB\003\340A\001\022\\\n\027google_search_r" + "etrieval\030\003 \001(\01326.google.cloud.aiplatform" + ".v1beta1.GoogleSearchRetrievalB\003\340A\001\022P\n\016c" + "ode_execution\030\004 \001(\01323.google.cloud.aipla" - + "tform.v1beta1.Tool.CodeExecutionB\003\340A\001\032\017\n" - + "\rCodeExecution\"\260\003\n\016ToolUseExample\022a\n\023ext" - + "ension_operation\030\n \001(\0132B.google.cloud.ai" - + "platform.v1beta1.ToolUseExample.Extensio" - + "nOperationH\000\022\027\n\rfunction_name\030\013 \001(\tH\000\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB" - + "\003\340A\002\022/\n\016request_params\030\003 \001(\0132\027.google.pr" - + "otobuf.Struct\0220\n\017response_params\030\004 \001(\0132\027" - + ".google.protobuf.Struct\022\030\n\020response_summ" - + "ary\030\005 \001(\t\032l\n\022ExtensionOperation\022;\n\texten" - + "sion\030\001 \001(\tB(\372A%\n#aiplatform.googleapis.c" - + "om/Extension\022\031\n\014operation_id\030\002 \001(\tB\003\340A\002B" - + "\010\n\006Target\"\304\001\n\023FunctionDeclaration\022\021\n\004nam" - + "e\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.aiplat" - + "form.v1beta1.SchemaB\003\340A\001\022>\n\010response\030\004 \001" - + "(\0132\'.google.cloud.aiplatform.v1beta1.Sch" - + "emaB\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.protobuf.Stru" - + "ctB\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.protob" - + "uf.StructB\003\340A\002\"\246\001\n\016ExecutableCode\022O\n\010lan" - + "guage\030\001 \001(\01628.google.cloud.aiplatform.v1" - + "beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n\004co" - + "de\030\002 \001(\tB\003\340A\002\"0\n\010Language\022\030\n\024LANGUAGE_UN" - + "SPECIFIED\020\000\022\n\n\006PYTHON\020\001\"\345\001\n\023CodeExecutio" - + "nResult\022R\n\007outcome\030\001 \001(\0162<.google.cloud." - + "aiplatform.v1beta1.CodeExecutionResult.O" - + "utcomeB\003\340A\002\022\023\n\006output\030\002 \001(\tB\003\340A\001\"e\n\007Outc" - + "ome\022\027\n\023OUTCOME_UNSPECIFIED\020\000\022\016\n\nOUTCOME_" - + "OK\020\001\022\022\n\016OUTCOME_FAILED\020\002\022\035\n\031OUTCOME_DEAD" - + "LINE_EXCEEDED\020\003\"\323\001\n\tRetrieval\022K\n\020vertex_" - + "ai_search\030\002 \001(\0132/.google.cloud.aiplatfor" - + "m.v1beta1.VertexAISearchH\000\022K\n\020vertex_rag" - + "_store\030\004 \001(\0132/.google.cloud.aiplatform.v" - + "1beta1.VertexRagStoreH\000\022\"\n\023disable_attri" - + "bution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006source\"\234\003\n\016Vertex" - + "RagStore\022B\n\013rag_corpora\030\001 \003(\tB-\030\001\340A\001\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022W\n\r" - + "rag_resources\030\004 \003(\0132;.google.cloud.aipla" - + "tform.v1beta1.VertexRagStore.RagResource" - + "B\003\340A\001\022\"\n\020similarity_top_k\030\002 \001(\005B\003\340A\001H\000\210\001" - + "\001\022+\n\031vector_distance_threshold\030\003 \001(\001B\003\340A" - + "\001H\001\210\001\001\032i\n\013RagResource\022?\n\nrag_corpus\030\001 \001(" - + "\tB+\340A\001\372A%\n#aiplatform.googleapis.com/Rag" - + "Corpus\022\031\n\014rag_file_ids\030\002 \003(\tB\003\340A\001B\023\n\021_si" - + "milarity_top_kB\034\n\032_vector_distance_thres" - + "hold\"(\n\016VertexAISearch\022\026\n\tdatastore\030\001 \001(" - + "\tB\003\340A\002\"r\n\025GoogleSearchRetrieval\022Y\n\030dynam" - + "ic_retrieval_config\030\002 \001(\01327.google.cloud" - + ".aiplatform.v1beta1.DynamicRetrievalConf" - + "ig\"\317\001\n\026DynamicRetrievalConfig\022J\n\004mode\030\001 " - + "\001(\0162<.google.cloud.aiplatform.v1beta1.Dy" - + "namicRetrievalConfig.Mode\022#\n\021dynamic_thr" - + "eshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n\004Mode\022\024\n\020MODE_U" - + "NSPECIFIED\020\000\022\020\n\014MODE_DYNAMIC\020\001B\024\n\022_dynam" - + "ic_threshold\"j\n\nToolConfig\022\\\n\027function_c" - + "alling_config\030\001 \001(\01326.google.cloud.aipla" - + "tform.v1beta1.FunctionCallingConfigB\003\340A\001" - + "\"\307\001\n\025FunctionCallingConfig\022N\n\004mode\030\001 \001(\016" - + "2;.google.cloud.aiplatform.v1beta1.Funct" - + "ionCallingConfig.ModeB\003\340A\001\022#\n\026allowed_fu" - + "nction_names\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_" - + "UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE" - + "\020\003B\340\001\n#com.google.cloud.aiplatform.v1bet" - + "a1B\tToolProtoP\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" + + "tform.v1beta1.Tool.CodeExecutionB\003\340A\001\032\016\n" + + "\014GoogleSearch\032\017\n\rCodeExecution\"\260\003\n\016ToolU" + + "seExample\022a\n\023extension_operation\030\n \001(\0132B" + + ".google.cloud.aiplatform.v1beta1.ToolUse" + + "Example.ExtensionOperationH\000\022\027\n\rfunction" + + "_name\030\013 \001(\tH\000\022\031\n\014display_name\030\001 \001(\tB\003\340A\002" + + "\022\022\n\005query\030\002 \001(\tB\003\340A\002\022/\n\016request_params\030\003" + + " \001(\0132\027.google.protobuf.Struct\0220\n\017respons" + + "e_params\030\004 \001(\0132\027.google.protobuf.Struct\022" + + "\030\n\020response_summary\030\005 \001(\t\032l\n\022ExtensionOp" + + "eration\022;\n\textension\030\001 \001(\tB(\372A%\n#aiplatf" + + "orm.googleapis.com/Extension\022\031\n\014operatio" + + "n_id\030\002 \001(\tB\003\340A\002B\010\n\006Target\"\304\001\n\023FunctionDe" + + "claration\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descript" + + "ion\030\002 \001(\tB\003\340A\001\022@\n\nparameters\030\003 \001(\0132\'.goo" + + "gle.cloud.aiplatform.v1beta1.SchemaB\003\340A\001" + + "\022>\n\010response\030\004 \001(\0132\'.google.cloud.aiplat" + + "form.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.goog" + + "le.protobuf.StructB\003\340A\001\"U\n\020FunctionRespo" + + "nse\022\021\n\004name\030\001 \001(\tB\003\340A\002\022.\n\010response\030\002 \001(\013" + + "2\027.google.protobuf.StructB\003\340A\002\"\246\001\n\016Execu" + + "tableCode\022O\n\010language\030\001 \001(\01628.google.clo" + + "ud.aiplatform.v1beta1.ExecutableCode.Lan" + + "guageB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"0\n\010Languag" + + "e\022\030\n\024LANGUAGE_UNSPECIFIED\020\000\022\n\n\006PYTHON\020\001\"" + + "\345\001\n\023CodeExecutionResult\022R\n\007outcome\030\001 \001(\016" + + "2<.google.cloud.aiplatform.v1beta1.CodeE" + + "xecutionResult.OutcomeB\003\340A\002\022\023\n\006output\030\002 " + + "\001(\tB\003\340A\001\"e\n\007Outcome\022\027\n\023OUTCOME_UNSPECIFI" + + "ED\020\000\022\016\n\nOUTCOME_OK\020\001\022\022\n\016OUTCOME_FAILED\020\002" + + "\022\035\n\031OUTCOME_DEADLINE_EXCEEDED\020\003\"\323\001\n\tRetr" + + "ieval\022K\n\020vertex_ai_search\030\002 \001(\0132/.google" + + ".cloud.aiplatform.v1beta1.VertexAISearch" + + "H\000\022K\n\020vertex_rag_store\030\004 \001(\0132/.google.cl" + + "oud.aiplatform.v1beta1.VertexRagStoreH\000\022" + + "\"\n\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006s" + + "ource\"\370\003\n\016VertexRagStore\022B\n\013rag_corpora\030" + + "\001 \003(\tB-\030\001\340A\001\372A%\n#aiplatform.googleapis.c" + + "om/RagCorpus\022W\n\rrag_resources\030\004 \003(\0132;.go" + + "ogle.cloud.aiplatform.v1beta1.VertexRagS" + + "tore.RagResourceB\003\340A\001\022$\n\020similarity_top_" + + "k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n\031vector_distance_t" + + "hreshold\030\003 \001(\001B\005\030\001\340A\001H\001\210\001\001\022V\n\024rag_retrie" + + "val_config\030\006 \001(\01323.google.cloud.aiplatfo" + + "rm.v1beta1.RagRetrievalConfigB\003\340A\001\032i\n\013Ra" + + "gResource\022?\n\nrag_corpus\030\001 \001(\tB+\340A\001\372A%\n#a" + + "iplatform.googleapis.com/RagCorpus\022\031\n\014ra" + + "g_file_ids\030\002 \003(\tB\003\340A\001B\023\n\021_similarity_top" + + "_kB\034\n\032_vector_distance_threshold\"(\n\016Vert" + + "exAISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"r\n\025Go" + + "ogleSearchRetrieval\022Y\n\030dynamic_retrieval" + + "_config\030\002 \001(\01327.google.cloud.aiplatform." + + "v1beta1.DynamicRetrievalConfig\"\317\001\n\026Dynam" + + "icRetrievalConfig\022J\n\004mode\030\001 \001(\0162<.google" + + ".cloud.aiplatform.v1beta1.DynamicRetriev" + + "alConfig.Mode\022#\n\021dynamic_threshold\030\002 \001(\002" + + "B\003\340A\001H\000\210\001\001\".\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000" + + "\022\020\n\014MODE_DYNAMIC\020\001B\024\n\022_dynamic_threshold" + + "\"j\n\nToolConfig\022\\\n\027function_calling_confi" + + "g\030\001 \001(\01326.google.cloud.aiplatform.v1beta" + + "1.FunctionCallingConfigB\003\340A\001\"\307\001\n\025Functio" + + "nCallingConfig\022N\n\004mode\030\001 \001(\0162;.google.cl" + + "oud.aiplatform.v1beta1.FunctionCallingCo" + + "nfig.ModeB\003\340A\001\022#\n\026allowed_function_names" + + "\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" + + "\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003\"\317\006\n\022RagRe" + + "trievalConfig\022\022\n\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\rhyb" + + "rid_search\030\002 \001(\0132@.google.cloud.aiplatfo" + + "rm.v1beta1.RagRetrievalConfig.HybridSear" + + "chB\003\340A\001\022O\n\006filter\030\003 \001(\0132:.google.cloud.a" + + "iplatform.v1beta1.RagRetrievalConfig.Fil" + + "terB\003\340A\001\022Q\n\007ranking\030\004 \001(\0132;.google.cloud" + + ".aiplatform.v1beta1.RagRetrievalConfig.R" + + "ankingB\003\340A\001\0321\n\014HybridSearch\022\027\n\005alpha\030\001 \001" + + "(\002B\003\340A\001H\000\210\001\001B\010\n\006_alpha\032\223\001\n\006Filter\022(\n\031vec" + + "tor_distance_threshold\030\003 \001(\001B\003\340A\001H\000\022*\n\033v" + + "ector_similarity_threshold\030\004 \001(\001B\003\340A\001H\000\022" + + "\034\n\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n\023vector_" + + "db_threshold\032\331\002\n\007Ranking\022d\n\014rank_service" + + "\030\001 \001(\0132G.google.cloud.aiplatform.v1beta1" + + ".RagRetrievalConfig.Ranking.RankServiceB" + + "\003\340A\001H\000\022`\n\nllm_ranker\030\003 \001(\0132E.google.clou" + + "d.aiplatform.v1beta1.RagRetrievalConfig." + + "Ranking.LlmRankerB\003\340A\001H\000\032:\n\013RankService\022" + + "\034\n\nmodel_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n\013_model_" + + "name\0328\n\tLlmRanker\022\034\n\nmodel_name\030\001 \001(\tB\003\340" + + "A\001H\000\210\001\001B\r\n\013_model_nameB\020\n\016ranking_config" + + "B\340\001\n#com.google.cloud.aiplatform.v1beta1" + + "B\tToolProtoP\001ZCcloud.google.com/go/aipla" + + "tform/apiv1beta1/aiplatformpb;aiplatform" + + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" + + ":Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -204,10 +258,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor, new java.lang.String[] { - "FunctionDeclarations", "Retrieval", "GoogleSearchRetrieval", "CodeExecution", + "FunctionDeclarations", + "Retrieval", + "GoogleSearch", + "GoogleSearchRetrieval", + "CodeExecution", }); - internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor, @@ -291,7 +355,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_VertexRagStore_descriptor, new java.lang.String[] { - "RagCorpora", "RagResources", "SimilarityTopK", "VectorDistanceThreshold", + "RagCorpora", + "RagResources", + "SimilarityTopK", + "VectorDistanceThreshold", + "RagRetrievalConfig", }); internal_static_google_cloud_aiplatform_v1beta1_VertexRagStore_RagResource_descriptor = internal_static_google_cloud_aiplatform_v1beta1_VertexRagStore_descriptor @@ -343,6 +411,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Mode", "AllowedFunctionNames", }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor, + new java.lang.String[] { + "TopK", "HybridSearch", "Filter", "Ranking", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_HybridSearch_descriptor, + new java.lang.String[] { + "Alpha", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Filter_descriptor, + new java.lang.String[] { + "VectorDistanceThreshold", + "VectorSimilarityThreshold", + "MetadataFilter", + "VectorDbThreshold", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor, + new java.lang.String[] { + "RankService", "LlmRanker", "RankingConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_RankService_descriptor, + new java.lang.String[] { + "ModelName", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_Ranking_LlmRanker_descriptor, + new java.lang.String[] { + "ModelName", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java new file mode 100644 index 000000000000..1c0709be225a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trajectory.java @@ -0,0 +1,982 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for trajectory.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Trajectory} + */ +public final class Trajectory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Trajectory) + TrajectoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Trajectory.newBuilder() to construct. + private Trajectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Trajectory() { + toolCalls_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Trajectory(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Trajectory.class, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder.class); + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolCalls_; + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolCallsList() { + return toolCalls_; + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getToolCallsOrBuilderList() { + return toolCalls_; + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getToolCallsCount() { + return toolCalls_.size(); + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index) { + return toolCalls_.get(index); + } + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + return toolCalls_.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 < toolCalls_.size(); i++) { + output.writeMessage(1, toolCalls_.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 < toolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolCalls_.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.v1beta1.Trajectory)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Trajectory other = + (com.google.cloud.aiplatform.v1beta1.Trajectory) obj; + + if (!getToolCallsList().equals(other.getToolCallsList())) 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 (getToolCallsCount() > 0) { + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory 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.Trajectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory 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.Trajectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory 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.Trajectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory 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.Trajectory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory 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.Trajectory 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.Trajectory 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.Trajectory 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; + } + /** + * + * + *
+   * Spec for trajectory.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Trajectory} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Trajectory) + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Trajectory.class, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Trajectory.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + } else { + toolCalls_ = null; + toolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_Trajectory_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory build() { + com.google.cloud.aiplatform.v1beta1.Trajectory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory buildPartial() { + com.google.cloud.aiplatform.v1beta1.Trajectory result = + new com.google.cloud.aiplatform.v1beta1.Trajectory(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Trajectory result) { + if (toolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = java.util.Collections.unmodifiableList(toolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCalls_ = toolCalls_; + } else { + result.toolCalls_ = toolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Trajectory 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.v1beta1.Trajectory) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Trajectory) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trajectory other) { + if (other == com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) return this; + if (toolCallsBuilder_ == null) { + if (!other.toolCalls_.isEmpty()) { + if (toolCalls_.isEmpty()) { + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallsIsMutable(); + toolCalls_.addAll(other.toolCalls_); + } + onChanged(); + } + } else { + if (!other.toolCalls_.isEmpty()) { + if (toolCallsBuilder_.isEmpty()) { + toolCallsBuilder_.dispose(); + toolCallsBuilder_ = null; + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolCallsFieldBuilder() + : null; + } else { + toolCallsBuilder_.addAllMessages(other.toolCalls_); + } + } + } + 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.v1beta1.ToolCall m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ToolCall.parser(), extensionRegistry); + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(m); + } else { + toolCallsBuilder_.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 toolCalls_ = + java.util.Collections.emptyList(); + + private void ensureToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = + new java.util.ArrayList(toolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolCallsList() { + if (toolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCalls_); + } else { + return toolCallsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getToolCallsCount() { + if (toolCallsBuilder_ == null) { + return toolCalls_.size(); + } else { + return toolCallsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCalls(int index, com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.set(index, value); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolCalls( + int index, com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls(com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls(int index, com.google.cloud.aiplatform.v1beta1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(index, value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls( + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addToolCalls( + int index, com.google.cloud.aiplatform.v1beta1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllToolCalls( + java.lang.Iterable values) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCalls_); + onChanged(); + } else { + toolCallsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeToolCalls(int index) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.remove(index); + onChanged(); + } else { + toolCallsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder getToolCallsBuilder(int index) { + return getToolCallsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getToolCallsOrBuilderList() { + if (toolCallsBuilder_ != null) { + return toolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCalls_); + } + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder addToolCallsBuilder() { + return getToolCallsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolCall.Builder addToolCallsBuilder(int index) { + return getToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.ToolCall.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Tool calls in the trajectory.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getToolCallsBuilderList() { + return getToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder> + getToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + toolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ToolCall, + com.google.cloud.aiplatform.v1beta1.ToolCall.Builder, + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder>( + toolCalls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolCalls_ = null; + } + return toolCallsBuilder_; + } + + @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.Trajectory) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Trajectory) + private static final com.google.cloud.aiplatform.v1beta1.Trajectory DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Trajectory(); + } + + public static com.google.cloud.aiplatform.v1beta1.Trajectory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trajectory 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.Trajectory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java new file mode 100644 index 000000000000..d31c8f26ec28 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInput.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryAnyOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput} + */ +public final class TrajectoryAnyOrderMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + TrajectoryAnyOrderMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchInput.newBuilder() to construct. + private TrajectoryAnyOrderMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectoryAnyOrderMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectoryAnyOrderMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryAnyOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryAnyOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectoryAnyOrderMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchInput 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.TrajectoryAnyOrderMatchInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java new file mode 100644 index 000000000000..cd0b5af80b83 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryAnyOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java new file mode 100644 index 000000000000..79fd81888ccd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstance.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryAnyOrderMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance} + */ +public final class TrajectoryAnyOrderMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + TrajectoryAnyOrderMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchInstance.newBuilder() to construct. + private TrajectoryAnyOrderMatchInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + 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.TrajectoryAnyOrderMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + 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.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance 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; + } + /** + * + * + *
+   * Spec for TrajectoryAnyOrderMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.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.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().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.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @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.TrajectoryAnyOrderMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchInstance 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.TrajectoryAnyOrderMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..5b561314f9ce --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java new file mode 100644 index 000000000000..107f09e82120 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValue.java @@ -0,0 +1,589 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryAnyOrderMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue} + */ +public final class TrajectoryAnyOrderMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + TrajectoryAnyOrderMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchMetricValue.newBuilder() to construct. + private TrajectoryAnyOrderMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectoryAnyOrderMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + 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.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue 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; + } + /** + * + * + *
+   * TrajectoryAnyOrderMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectoryAnyOrderMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectoryAnyOrderMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchMetricValue 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.TrajectoryAnyOrderMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..0bd00e9e9e2d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.java new file mode 100644 index 000000000000..fec21229e2fb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResults.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/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryAnyOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults} + */ +public final class TrajectoryAnyOrderMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + TrajectoryAnyOrderMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchResults.newBuilder() to construct. + private TrajectoryAnyOrderMatchResults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchResults() { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder.class); + } + + public static final int TRAJECTORY_ANY_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryAnyOrderMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryAnyOrderMatchMetricValuesList() { + return trajectoryAnyOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList() { + return trajectoryAnyOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryAnyOrderMatchMetricValuesCount() { + return trajectoryAnyOrderMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index) { + return trajectoryAnyOrderMatchMetricValues_.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 < trajectoryAnyOrderMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryAnyOrderMatchMetricValues_.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 < trajectoryAnyOrderMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryAnyOrderMatchMetricValues_.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.v1beta1.TrajectoryAnyOrderMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) obj; + + if (!getTrajectoryAnyOrderMatchMetricValuesList() + .equals(other.getTrajectoryAnyOrderMatchMetricValuesList())) 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 (getTrajectoryAnyOrderMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_ANY_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryAnyOrderMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + 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.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults 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; + } + /** + * + * + *
+   * Results for TrajectoryAnyOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryAnyOrderMatchMetricValues_ = null; + trajectoryAnyOrderMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults result) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryAnyOrderMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryAnyOrderMatchMetricValues_ = trajectoryAnyOrderMatchMetricValues_; + } else { + result.trajectoryAnyOrderMatchMetricValues_ = + trajectoryAnyOrderMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults 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.v1beta1.TrajectoryAnyOrderMatchResults) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + .getDefaultInstance()) return this; + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + if (trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + trajectoryAnyOrderMatchMetricValues_ = other.trajectoryAnyOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.addAll(other.trajectoryAnyOrderMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryAnyOrderMatchMetricValues_.isEmpty()) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_.isEmpty()) { + trajectoryAnyOrderMatchMetricValuesBuilder_.dispose(); + trajectoryAnyOrderMatchMetricValuesBuilder_ = null; + trajectoryAnyOrderMatchMetricValues_ = other.trajectoryAnyOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryAnyOrderMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryAnyOrderMatchMetricValues_); + } + } + } + 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.v1beta1.TrajectoryAnyOrderMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(m); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.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 + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryAnyOrderMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryAnyOrderMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue>( + trajectoryAnyOrderMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + trajectoryAnyOrderMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryAnyOrderMatchMetricValuesList() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryAnyOrderMatchMetricValuesCount() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.size(); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryAnyOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryAnyOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue value) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryAnyOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryAnyOrderMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue> + values) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryAnyOrderMatchMetricValues_); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryAnyOrderMatchMetricValues() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryAnyOrderMatchMetricValues(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryAnyOrderMatchMetricValuesIsMutable(); + trajectoryAnyOrderMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryAnyOrderMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + getTrajectoryAnyOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index) { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + return trajectoryAnyOrderMatchMetricValues_.get(index); + } else { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ != null) { + return trajectoryAnyOrderMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryAnyOrderMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + addTrajectoryAnyOrderMatchMetricValuesBuilder() { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder + addTrajectoryAnyOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryAnyOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder> + getTrajectoryAnyOrderMatchMetricValuesBuilderList() { + return getTrajectoryAnyOrderMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesFieldBuilder() { + if (trajectoryAnyOrderMatchMetricValuesBuilder_ == null) { + trajectoryAnyOrderMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder>( + trajectoryAnyOrderMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryAnyOrderMatchMetricValues_ = null; + } + return trajectoryAnyOrderMatchMetricValuesBuilder_; + } + + @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.TrajectoryAnyOrderMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchResults 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.TrajectoryAnyOrderMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java new file mode 100644 index 000000000000..6441d8dacccc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryAnyOrderMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue + getTrajectoryAnyOrderMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryAnyOrderMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder> + getTrajectoryAnyOrderMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryAnyOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValue trajectory_any_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueOrBuilder + getTrajectoryAnyOrderMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java new file mode 100644 index 000000000000..fc74b82b09a8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpec.java @@ -0,0 +1,443 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
+ * reference trajectory appear in the predicted trajectory in any order, else
+ * 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec} + */ +public final class TrajectoryAnyOrderMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + TrajectoryAnyOrderMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryAnyOrderMatchSpec.newBuilder() to construct. + private TrajectoryAnyOrderMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryAnyOrderMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryAnyOrderMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.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.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) 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.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec 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; + } + /** + * + * + *
+   * Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the
+   * reference trajectory appear in the predicted trajectory in any order, else
+   * 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.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.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryAnyOrderMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec(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.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec.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.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryAnyOrderMatchSpec 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.TrajectoryAnyOrderMatchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java new file mode 100644 index 000000000000..9bf08b589d5c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryAnyOrderMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryAnyOrderMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java new file mode 100644 index 000000000000..ad9b4a01b9c1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInput.java @@ -0,0 +1,1326 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryExactMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput} + */ +public final class TrajectoryExactMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + TrajectoryExactMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchInput.newBuilder() to construct. + private TrajectoryExactMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectoryExactMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput 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.TrajectoryExactMatchInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryExactMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectoryExactMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryExactMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryExactMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectoryExactMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchInput 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.TrajectoryExactMatchInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java new file mode 100644 index 000000000000..f7d7e1e3236b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryExactMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryExactMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java new file mode 100644 index 000000000000..f687b9fbbdc1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstance.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryExactMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance} + */ +public final class TrajectoryExactMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + TrajectoryExactMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchInstance.newBuilder() to construct. + private TrajectoryExactMatchInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + 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.TrajectoryExactMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance 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; + } + /** + * + * + *
+   * Spec for TrajectoryExactMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.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.aiplatform.v1beta1.TrajectoryExactMatchInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().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.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @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.TrajectoryExactMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchInstance 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.TrajectoryExactMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..9cc703f2ddc9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java new file mode 100644 index 000000000000..b7b8bdae1aa4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryExactMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue} + */ +public final class TrajectoryExactMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + TrajectoryExactMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchMetricValue.newBuilder() to construct. + private TrajectoryExactMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectoryExactMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + 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.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue 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; + } + /** + * + * + *
+   * TrajectoryExactMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectoryExactMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectoryExactMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchMetricValue 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.TrajectoryExactMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..5fc52a11b605 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java new file mode 100644 index 000000000000..383eec5e1028 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResults.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryExactMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults} + */ +public final class TrajectoryExactMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + TrajectoryExactMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchResults.newBuilder() to construct. + private TrajectoryExactMatchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchResults() { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder.class); + } + + public static final int TRAJECTORY_EXACT_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryExactMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryExactMatchMetricValuesList() { + return trajectoryExactMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList() { + return trajectoryExactMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryExactMatchMetricValuesCount() { + return trajectoryExactMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index) { + return trajectoryExactMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index) { + return trajectoryExactMatchMetricValues_.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 < trajectoryExactMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryExactMatchMetricValues_.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 < trajectoryExactMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryExactMatchMetricValues_.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.v1beta1.TrajectoryExactMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) obj; + + if (!getTrajectoryExactMatchMetricValuesList() + .equals(other.getTrajectoryExactMatchMetricValuesList())) 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 (getTrajectoryExactMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryExactMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults 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.TrajectoryExactMatchResults 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; + } + /** + * + * + *
+   * Results for TrajectoryExactMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryExactMatchMetricValues_ = null; + trajectoryExactMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults result) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryExactMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryExactMatchMetricValues_ = trajectoryExactMatchMetricValues_; + } else { + result.trajectoryExactMatchMetricValues_ = trajectoryExactMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults 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.v1beta1.TrajectoryExactMatchResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.getDefaultInstance()) + return this; + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryExactMatchMetricValues_.isEmpty()) { + if (trajectoryExactMatchMetricValues_.isEmpty()) { + trajectoryExactMatchMetricValues_ = other.trajectoryExactMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.addAll(other.trajectoryExactMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryExactMatchMetricValues_.isEmpty()) { + if (trajectoryExactMatchMetricValuesBuilder_.isEmpty()) { + trajectoryExactMatchMetricValuesBuilder_.dispose(); + trajectoryExactMatchMetricValuesBuilder_ = null; + trajectoryExactMatchMetricValues_ = other.trajectoryExactMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryExactMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryExactMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryExactMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryExactMatchMetricValues_); + } + } + } + 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.v1beta1.TrajectoryExactMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(m); + } else { + trajectoryExactMatchMetricValuesBuilder_.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 + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryExactMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryExactMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue>( + trajectoryExactMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + trajectoryExactMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryExactMatchMetricValuesList() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryExactMatchMetricValuesCount() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.size(); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.get(index); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryExactMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryExactMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue value) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryExactMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + builderForValue) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryExactMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue> + values) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryExactMatchMetricValues_); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryExactMatchMetricValues() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryExactMatchMetricValues(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + ensureTrajectoryExactMatchMetricValuesIsMutable(); + trajectoryExactMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryExactMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + getTrajectoryExactMatchMetricValuesBuilder(int index) { + return getTrajectoryExactMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index) { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + return trajectoryExactMatchMetricValues_.get(index); + } else { + return trajectoryExactMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList() { + if (trajectoryExactMatchMetricValuesBuilder_ != null) { + return trajectoryExactMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryExactMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + addTrajectoryExactMatchMetricValuesBuilder() { + return getTrajectoryExactMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder + addTrajectoryExactMatchMetricValuesBuilder(int index) { + return getTrajectoryExactMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryExactMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder> + getTrajectoryExactMatchMetricValuesBuilderList() { + return getTrajectoryExactMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesFieldBuilder() { + if (trajectoryExactMatchMetricValuesBuilder_ == null) { + trajectoryExactMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder>( + trajectoryExactMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryExactMatchMetricValues_ = null; + } + return trajectoryExactMatchMetricValuesBuilder_; + } + + @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.TrajectoryExactMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchResults 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.TrajectoryExactMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java new file mode 100644 index 000000000000..15689fddd656 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryExactMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue + getTrajectoryExactMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryExactMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder> + getTrajectoryExactMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryExactMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValue trajectory_exact_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueOrBuilder + getTrajectoryExactMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java new file mode 100644 index 000000000000..caa69aed43ff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpec.java @@ -0,0 +1,438 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
+ * reference trajectory exactly match the predicted trajectory, else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec} + */ +public final class TrajectoryExactMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + TrajectoryExactMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryExactMatchSpec.newBuilder() to construct. + private TrajectoryExactMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryExactMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryExactMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.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.aiplatform.v1beta1.TrajectoryExactMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) 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.aiplatform.v1beta1.TrajectoryExactMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec 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; + } + /** + * + * + *
+   * Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the
+   * reference trajectory exactly match the predicted trajectory, else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.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.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec(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.aiplatform.v1beta1.TrajectoryExactMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec.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.aiplatform.v1beta1.TrajectoryExactMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryExactMatchSpec 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.TrajectoryExactMatchSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java new file mode 100644 index 000000000000..bd6b7b9e045c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryExactMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryExactMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java new file mode 100644 index 000000000000..f2597a908f6f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInput.java @@ -0,0 +1,1334 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryInOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput} + */ +public final class TrajectoryInOrderMatchInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + TrajectoryInOrderMatchInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchInput.newBuilder() to construct. + private TrajectoryInOrderMatchInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectoryInOrderMatchInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectoryInOrderMatchInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryInOrderMatch metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryInOrderMatch instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectoryInOrderMatchInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchInput 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.TrajectoryInOrderMatchInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java new file mode 100644 index 000000000000..2ceb32555a90 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryInOrderMatch metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryInOrderMatch instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java new file mode 100644 index 000000000000..a60e21182a14 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstance.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryInOrderMatch instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance} + */ +public final class TrajectoryInOrderMatchInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + TrajectoryInOrderMatchInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchInstance.newBuilder() to construct. + private TrajectoryInOrderMatchInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + 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.TrajectoryInOrderMatchInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + 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.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance 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; + } + /** + * + * + *
+   * Spec for TrajectoryInOrderMatch instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.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.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().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.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @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.TrajectoryInOrderMatchInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchInstance 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.TrajectoryInOrderMatchInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java new file mode 100644 index 000000000000..1f6dd360cb45 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java new file mode 100644 index 000000000000..59e89c474aa5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryInOrderMatch metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue} + */ +public final class TrajectoryInOrderMatchMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + TrajectoryInOrderMatchMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchMetricValue.newBuilder() to construct. + private TrajectoryInOrderMatchMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectoryInOrderMatchMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + 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.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue 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; + } + /** + * + * + *
+   * TrajectoryInOrderMatch metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectoryInOrderMatchMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectoryInOrderMatchMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchMetricValue 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.TrajectoryInOrderMatchMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.java new file mode 100644 index 000000000000..75caa24c805d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java new file mode 100644 index 000000000000..e1ac5640b6e7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResults.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryInOrderMatch metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults} + */ +public final class TrajectoryInOrderMatchResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + TrajectoryInOrderMatchResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchResults.newBuilder() to construct. + private TrajectoryInOrderMatchResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchResults() { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder.class); + } + + public static final int TRAJECTORY_IN_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryInOrderMatchMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryInOrderMatchMetricValuesList() { + return trajectoryInOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList() { + return trajectoryInOrderMatchMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryInOrderMatchMetricValuesCount() { + return trajectoryInOrderMatchMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index) { + return trajectoryInOrderMatchMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index) { + return trajectoryInOrderMatchMetricValues_.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 < trajectoryInOrderMatchMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryInOrderMatchMetricValues_.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 < trajectoryInOrderMatchMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryInOrderMatchMetricValues_.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.v1beta1.TrajectoryInOrderMatchResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) obj; + + if (!getTrajectoryInOrderMatchMetricValuesList() + .equals(other.getTrajectoryInOrderMatchMetricValuesList())) 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 (getTrajectoryInOrderMatchMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_IN_ORDER_MATCH_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryInOrderMatchMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + 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.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults 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; + } + /** + * + * + *
+   * Results for TrajectoryInOrderMatch metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryInOrderMatchMetricValues_ = null; + trajectoryInOrderMatchMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults result) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryInOrderMatchMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryInOrderMatchMetricValues_ = trajectoryInOrderMatchMetricValues_; + } else { + result.trajectoryInOrderMatchMetricValues_ = + trajectoryInOrderMatchMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults 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.v1beta1.TrajectoryInOrderMatchResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults.getDefaultInstance()) + return this; + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (!other.trajectoryInOrderMatchMetricValues_.isEmpty()) { + if (trajectoryInOrderMatchMetricValues_.isEmpty()) { + trajectoryInOrderMatchMetricValues_ = other.trajectoryInOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.addAll(other.trajectoryInOrderMatchMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryInOrderMatchMetricValues_.isEmpty()) { + if (trajectoryInOrderMatchMetricValuesBuilder_.isEmpty()) { + trajectoryInOrderMatchMetricValuesBuilder_.dispose(); + trajectoryInOrderMatchMetricValuesBuilder_ = null; + trajectoryInOrderMatchMetricValues_ = other.trajectoryInOrderMatchMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryInOrderMatchMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryInOrderMatchMetricValuesFieldBuilder() + : null; + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addAllMessages( + other.trajectoryInOrderMatchMetricValues_); + } + } + } + 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.v1beta1.TrajectoryInOrderMatchMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .parser(), + extensionRegistry); + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(m); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.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 + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryInOrderMatchMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryInOrderMatchMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue>( + trajectoryInOrderMatchMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + trajectoryInOrderMatchMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryInOrderMatchMetricValuesList() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryInOrderMatchMetricValuesCount() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.size(); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.get(index); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryInOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryInOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue value) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryInOrderMatchMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + builderForValue) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryInOrderMatchMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue> + values) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryInOrderMatchMetricValues_); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryInOrderMatchMetricValues() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryInOrderMatchMetricValues(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + ensureTrajectoryInOrderMatchMetricValuesIsMutable(); + trajectoryInOrderMatchMetricValues_.remove(index); + onChanged(); + } else { + trajectoryInOrderMatchMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + getTrajectoryInOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index) { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + return trajectoryInOrderMatchMetricValues_.get(index); + } else { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList() { + if (trajectoryInOrderMatchMetricValuesBuilder_ != null) { + return trajectoryInOrderMatchMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryInOrderMatchMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + addTrajectoryInOrderMatchMetricValuesBuilder() { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder + addTrajectoryInOrderMatchMetricValuesBuilder(int index) { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryInOrderMatch metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder> + getTrajectoryInOrderMatchMetricValuesBuilderList() { + return getTrajectoryInOrderMatchMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesFieldBuilder() { + if (trajectoryInOrderMatchMetricValuesBuilder_ == null) { + trajectoryInOrderMatchMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder>( + trajectoryInOrderMatchMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryInOrderMatchMetricValues_ = null; + } + return trajectoryInOrderMatchMetricValuesBuilder_; + } + + @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.TrajectoryInOrderMatchResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchResults 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.TrajectoryInOrderMatchResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java new file mode 100644 index 000000000000..8571329d9207 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryInOrderMatchMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue + getTrajectoryInOrderMatchMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryInOrderMatchMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder> + getTrajectoryInOrderMatchMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryInOrderMatch metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValue trajectory_in_order_match_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueOrBuilder + getTrajectoryInOrderMatchMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java new file mode 100644 index 000000000000..e5b3bb0a9763 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpec.java @@ -0,0 +1,442 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
+ * reference trajectory appear in the predicted trajectory in the same order,
+ * else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec} + */ +public final class TrajectoryInOrderMatchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + TrajectoryInOrderMatchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryInOrderMatchSpec.newBuilder() to construct. + private TrajectoryInOrderMatchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryInOrderMatchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryInOrderMatchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.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.aiplatform.v1beta1.TrajectoryInOrderMatchSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) 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.aiplatform.v1beta1.TrajectoryInOrderMatchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec 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; + } + /** + * + * + *
+   * Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the
+   * reference trajectory appear in the predicted trajectory in the same order,
+   * else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.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.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryInOrderMatchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec(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.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec.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.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryInOrderMatchSpec 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.TrajectoryInOrderMatchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java new file mode 100644 index 000000000000..2db6cfa72633 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryInOrderMatchSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryInOrderMatchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java new file mode 100644 index 000000000000..76cf4ded33de --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Trajectory) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolCallsList(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolCall getToolCalls(int index); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getToolCallsCount(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getToolCallsOrBuilderList(); + /** + * + * + *
+   * Required. Tool calls in the trajectory.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolCallOrBuilder getToolCallsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java new file mode 100644 index 000000000000..21f09ce3fab2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInput.java @@ -0,0 +1,1323 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryPrecision metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput} + */ +public final class TrajectoryPrecisionInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + TrajectoryPrecisionInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionInput.newBuilder() to construct. + private TrajectoryPrecisionInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectoryPrecisionInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput 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.TrajectoryPrecisionInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryPrecision metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectoryPrecisionInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryPrecision metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryPrecision instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectoryPrecisionInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionInput 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.TrajectoryPrecisionInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.java new file mode 100644 index 000000000000..ab3c5bb08e6d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInputOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryPrecision metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryPrecision instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java new file mode 100644 index 000000000000..f918486eb4cd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstance.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryPrecision instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance} + */ +public final class TrajectoryPrecisionInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + TrajectoryPrecisionInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionInstance.newBuilder() to construct. + private TrajectoryPrecisionInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + 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.TrajectoryPrecisionInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance 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; + } + /** + * + * + *
+   * Spec for TrajectoryPrecision instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.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.aiplatform.v1beta1.TrajectoryPrecisionInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().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.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @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.TrajectoryPrecisionInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionInstance 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.TrajectoryPrecisionInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java new file mode 100644 index 000000000000..86ce88cc588a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java new file mode 100644 index 000000000000..a5490cf11287 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValue.java @@ -0,0 +1,588 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryPrecision metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue} + */ +public final class TrajectoryPrecisionMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + TrajectoryPrecisionMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionMetricValue.newBuilder() to construct. + private TrajectoryPrecisionMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectoryPrecisionMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + 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.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue 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; + } + /** + * + * + *
+   * TrajectoryPrecision metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectoryPrecisionMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectoryPrecisionMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionMetricValue 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.TrajectoryPrecisionMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.java new file mode 100644 index 000000000000..1a883914be08 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryPrecision score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java new file mode 100644 index 000000000000..d12f410a2157 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResults.java @@ -0,0 +1,1031 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryPrecision metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults} + */ +public final class TrajectoryPrecisionResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + TrajectoryPrecisionResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionResults.newBuilder() to construct. + private TrajectoryPrecisionResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionResults() { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder.class); + } + + public static final int TRAJECTORY_PRECISION_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryPrecisionMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryPrecisionMetricValuesList() { + return trajectoryPrecisionMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList() { + return trajectoryPrecisionMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryPrecisionMetricValuesCount() { + return trajectoryPrecisionMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index) { + return trajectoryPrecisionMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index) { + return trajectoryPrecisionMetricValues_.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 < trajectoryPrecisionMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryPrecisionMetricValues_.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 < trajectoryPrecisionMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryPrecisionMetricValues_.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.v1beta1.TrajectoryPrecisionResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) obj; + + if (!getTrajectoryPrecisionMetricValuesList() + .equals(other.getTrajectoryPrecisionMetricValuesList())) 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 (getTrajectoryPrecisionMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_PRECISION_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryPrecisionMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults 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.TrajectoryPrecisionResults 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; + } + /** + * + * + *
+   * Results for TrajectoryPrecision metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryPrecisionMetricValues_ = null; + trajectoryPrecisionMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults result) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryPrecisionMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryPrecisionMetricValues_ = trajectoryPrecisionMetricValues_; + } else { + result.trajectoryPrecisionMetricValues_ = trajectoryPrecisionMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults 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.v1beta1.TrajectoryPrecisionResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults.getDefaultInstance()) + return this; + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (!other.trajectoryPrecisionMetricValues_.isEmpty()) { + if (trajectoryPrecisionMetricValues_.isEmpty()) { + trajectoryPrecisionMetricValues_ = other.trajectoryPrecisionMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.addAll(other.trajectoryPrecisionMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryPrecisionMetricValues_.isEmpty()) { + if (trajectoryPrecisionMetricValuesBuilder_.isEmpty()) { + trajectoryPrecisionMetricValuesBuilder_.dispose(); + trajectoryPrecisionMetricValuesBuilder_ = null; + trajectoryPrecisionMetricValues_ = other.trajectoryPrecisionMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryPrecisionMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryPrecisionMetricValuesFieldBuilder() + : null; + } else { + trajectoryPrecisionMetricValuesBuilder_.addAllMessages( + other.trajectoryPrecisionMetricValues_); + } + } + } + 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.v1beta1.TrajectoryPrecisionMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.parser(), + extensionRegistry); + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(m); + } else { + trajectoryPrecisionMetricValuesBuilder_.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 + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryPrecisionMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryPrecisionMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue>( + trajectoryPrecisionMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + trajectoryPrecisionMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryPrecisionMetricValuesList() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryPrecisionMetricValuesCount() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.size(); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.get(index); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryPrecisionMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryPrecisionMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue value) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryPrecisionMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + builderForValue) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryPrecisionMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue> + values) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryPrecisionMetricValues_); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryPrecisionMetricValues() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryPrecisionMetricValues(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + ensureTrajectoryPrecisionMetricValuesIsMutable(); + trajectoryPrecisionMetricValues_.remove(index); + onChanged(); + } else { + trajectoryPrecisionMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + getTrajectoryPrecisionMetricValuesBuilder(int index) { + return getTrajectoryPrecisionMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index) { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + return trajectoryPrecisionMetricValues_.get(index); + } else { + return trajectoryPrecisionMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList() { + if (trajectoryPrecisionMetricValuesBuilder_ != null) { + return trajectoryPrecisionMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryPrecisionMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + addTrajectoryPrecisionMetricValuesBuilder() { + return getTrajectoryPrecisionMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder + addTrajectoryPrecisionMetricValuesBuilder(int index) { + return getTrajectoryPrecisionMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryPrecision metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder> + getTrajectoryPrecisionMetricValuesBuilderList() { + return getTrajectoryPrecisionMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesFieldBuilder() { + if (trajectoryPrecisionMetricValuesBuilder_ == null) { + trajectoryPrecisionMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder>( + trajectoryPrecisionMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryPrecisionMetricValues_ = null; + } + return trajectoryPrecisionMetricValuesBuilder_; + } + + @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.TrajectoryPrecisionResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionResults 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.TrajectoryPrecisionResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java new file mode 100644 index 000000000000..a49f203cd90f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryPrecisionMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue + getTrajectoryPrecisionMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryPrecisionMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder> + getTrajectoryPrecisionMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryPrecision metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueOrBuilder + getTrajectoryPrecisionMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java new file mode 100644 index 000000000000..ec56955b0c31 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpec.java @@ -0,0 +1,435 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryPrecision metric - returns a float score based on average
+ * precision of individual tool calls.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec} + */ +public final class TrajectoryPrecisionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + TrajectoryPrecisionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryPrecisionSpec.newBuilder() to construct. + private TrajectoryPrecisionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryPrecisionSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryPrecisionSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.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.aiplatform.v1beta1.TrajectoryPrecisionSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) 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.aiplatform.v1beta1.TrajectoryPrecisionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec 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; + } + /** + * + * + *
+   * Spec for TrajectoryPrecision metric - returns a float score based on average
+   * precision of individual tool calls.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.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.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryPrecisionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec(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.aiplatform.v1beta1.TrajectoryPrecisionSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec.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.aiplatform.v1beta1.TrajectoryPrecisionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryPrecisionSpec 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.TrajectoryPrecisionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java new file mode 100644 index 000000000000..1bba4b847395 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryPrecisionSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryPrecisionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java new file mode 100644 index 000000000000..d234fd066959 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInput.java @@ -0,0 +1,1313 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectoryRecall metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInput} + */ +public final class TrajectoryRecallInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + TrajectoryRecallInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallInput.newBuilder() to construct. + private TrajectoryRecallInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List instances_; + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectoryRecallInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.TrajectoryRecallInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.TrajectoryRecallInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.TrajectoryRecallInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.TrajectoryRecallInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput 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.TrajectoryRecallInput 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.TrajectoryRecallInput 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.TrajectoryRecallInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectoryRecall metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectoryRecallInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectoryRecall metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList( + instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder getInstancesBuilder( + int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectoryRecall instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectoryRecallInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallInput 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.TrajectoryRecallInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java new file mode 100644 index 000000000000..d33327825560 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInputOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectoryRecall metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectoryRecall instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder getInstancesOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java new file mode 100644 index 000000000000..f774bb5e4fb9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstance.java @@ -0,0 +1,1056 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryRecall instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance} + */ +public final class TrajectoryRecallInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + TrajectoryRecallInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallInstance.newBuilder() to construct. + private TrajectoryRecallInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + public static final int REFERENCE_TRAJECTORY_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + @java.lang.Override + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder() { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReferenceTrajectory()); + } + 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, getPredictedTrajectory()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReferenceTrajectory()); + } + 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.TrajectoryRecallInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) return false; + } + if (hasReferenceTrajectory() != other.hasReferenceTrajectory()) return false; + if (hasReferenceTrajectory()) { + if (!getReferenceTrajectory().equals(other.getReferenceTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + if (hasReferenceTrajectory()) { + hash = (37 * hash) + REFERENCE_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.TrajectoryRecallInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.TrajectoryRecallInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.TrajectoryRecallInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.TrajectoryRecallInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance 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.TrajectoryRecallInstance 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.TrajectoryRecallInstance 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.TrajectoryRecallInstance 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; + } + /** + * + * + *
+   * Spec for TrajectoryRecall instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + getReferenceTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.referenceTrajectory_ = + referenceTrajectoryBuilder_ == null + ? referenceTrajectory_ + : referenceTrajectoryBuilder_.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.aiplatform.v1beta1.TrajectoryRecallInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance.getDefaultInstance()) + return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + if (other.hasReferenceTrajectory()) { + mergeReferenceTrajectory(other.getReferenceTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReferenceTrajectoryFieldBuilder().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.aiplatform.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.Trajectory referenceTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + referenceTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + public boolean hasReferenceTrajectory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory() { + if (referenceTrajectoryBuilder_ == null) { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } else { + return referenceTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceTrajectory_ = value; + } else { + referenceTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReferenceTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectory_ = builderForValue.build(); + } else { + referenceTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReferenceTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (referenceTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && referenceTrajectory_ != null + && referenceTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getReferenceTrajectoryBuilder().mergeFrom(value); + } else { + referenceTrajectory_ = value; + } + } else { + referenceTrajectoryBuilder_.mergeFrom(value); + } + if (referenceTrajectory_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReferenceTrajectory() { + bitField0_ = (bitField0_ & ~0x00000002); + referenceTrajectory_ = null; + if (referenceTrajectoryBuilder_ != null) { + referenceTrajectoryBuilder_.dispose(); + referenceTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getReferenceTrajectoryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getReferenceTrajectoryOrBuilder() { + if (referenceTrajectoryBuilder_ != null) { + return referenceTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return referenceTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : referenceTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for reference tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getReferenceTrajectoryFieldBuilder() { + if (referenceTrajectoryBuilder_ == null) { + referenceTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getReferenceTrajectory(), getParentForChildren(), isClean()); + referenceTrajectory_ = null; + } + return referenceTrajectoryBuilder_; + } + + @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.TrajectoryRecallInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallInstance 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.TrajectoryRecallInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java new file mode 100644 index 000000000000..2d86e281db6a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallInstanceOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); + + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the referenceTrajectory field is set. + */ + boolean hasReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The referenceTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getReferenceTrajectory(); + /** + * + * + *
+   * Required. Spec for reference tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory reference_trajectory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getReferenceTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java new file mode 100644 index 000000000000..616e9cca398e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValue.java @@ -0,0 +1,583 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectoryRecall metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue} + */ +public final class TrajectoryRecallMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + TrajectoryRecallMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallMetricValue.newBuilder() to construct. + private TrajectoryRecallMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectoryRecallMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue 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; + } + /** + * + * + *
+   * TrajectoryRecall metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectoryRecallMetricValue) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()) + return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectoryRecallMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallMetricValue 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.TrajectoryRecallMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.java new file mode 100644 index 000000000000..9160116cf571 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectoryRecall score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java new file mode 100644 index 000000000000..1dfb1510cad6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResults.java @@ -0,0 +1,1019 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectoryRecall metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallResults} + */ +public final class TrajectoryRecallResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + TrajectoryRecallResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallResults.newBuilder() to construct. + private TrajectoryRecallResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallResults() { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder.class); + } + + public static final int TRAJECTORY_RECALL_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectoryRecallMetricValues_; + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectoryRecallMetricValuesList() { + return trajectoryRecallMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesOrBuilderList() { + return trajectoryRecallMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectoryRecallMetricValuesCount() { + return trajectoryRecallMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getTrajectoryRecallMetricValues(int index) { + return trajectoryRecallMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index) { + return trajectoryRecallMetricValues_.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 < trajectoryRecallMetricValues_.size(); i++) { + output.writeMessage(1, trajectoryRecallMetricValues_.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 < trajectoryRecallMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectoryRecallMetricValues_.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.v1beta1.TrajectoryRecallResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) obj; + + if (!getTrajectoryRecallMetricValuesList().equals(other.getTrajectoryRecallMetricValuesList())) + 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 (getTrajectoryRecallMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_RECALL_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryRecallMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.TrajectoryRecallResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.TrajectoryRecallResults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.TrajectoryRecallResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.TrajectoryRecallResults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.TrajectoryRecallResults 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.TrajectoryRecallResults 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.TrajectoryRecallResults 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; + } + /** + * + * + *
+   * Results for TrajectoryRecall metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectoryRecallMetricValues_ = null; + trajectoryRecallMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults result) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectoryRecallMetricValues_ = + java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectoryRecallMetricValues_ = trajectoryRecallMetricValues_; + } else { + result.trajectoryRecallMetricValues_ = trajectoryRecallMetricValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults 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.v1beta1.TrajectoryRecallResults) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults.getDefaultInstance()) + return this; + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (!other.trajectoryRecallMetricValues_.isEmpty()) { + if (trajectoryRecallMetricValues_.isEmpty()) { + trajectoryRecallMetricValues_ = other.trajectoryRecallMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.addAll(other.trajectoryRecallMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectoryRecallMetricValues_.isEmpty()) { + if (trajectoryRecallMetricValuesBuilder_.isEmpty()) { + trajectoryRecallMetricValuesBuilder_.dispose(); + trajectoryRecallMetricValuesBuilder_ = null; + trajectoryRecallMetricValues_ = other.trajectoryRecallMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectoryRecallMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectoryRecallMetricValuesFieldBuilder() + : null; + } else { + trajectoryRecallMetricValuesBuilder_.addAllMessages( + other.trajectoryRecallMetricValues_); + } + } + } + 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.v1beta1.TrajectoryRecallMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.parser(), + extensionRegistry); + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(m); + } else { + trajectoryRecallMetricValuesBuilder_.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 + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectoryRecallMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectoryRecallMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue>( + trajectoryRecallMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + trajectoryRecallMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryRecallMetricValuesList() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectoryRecallMetricValuesCount() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.size(); + } else { + return trajectoryRecallMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue + getTrajectoryRecallMetricValues(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.get(index); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryRecallMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.set(index, value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectoryRecallMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue value) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(index, value); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectoryRecallMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder builderForValue) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectoryRecallMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue> + values) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectoryRecallMetricValues_); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectoryRecallMetricValues() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectoryRecallMetricValues(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + ensureTrajectoryRecallMetricValuesIsMutable(); + trajectoryRecallMetricValues_.remove(index); + onChanged(); + } else { + trajectoryRecallMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + getTrajectoryRecallMetricValuesBuilder(int index) { + return getTrajectoryRecallMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index) { + if (trajectoryRecallMetricValuesBuilder_ == null) { + return trajectoryRecallMetricValues_.get(index); + } else { + return trajectoryRecallMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesOrBuilderList() { + if (trajectoryRecallMetricValuesBuilder_ != null) { + return trajectoryRecallMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectoryRecallMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + addTrajectoryRecallMetricValuesBuilder() { + return getTrajectoryRecallMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder + addTrajectoryRecallMetricValuesBuilder(int index) { + return getTrajectoryRecallMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectoryRecall metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectoryRecallMetricValuesBuilderList() { + return getTrajectoryRecallMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder> + getTrajectoryRecallMetricValuesFieldBuilder() { + if (trajectoryRecallMetricValuesBuilder_ == null) { + trajectoryRecallMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder>( + trajectoryRecallMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectoryRecallMetricValues_ = null; + } + return trajectoryRecallMetricValuesBuilder_; + } + + @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.TrajectoryRecallResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallResults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallResults 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.TrajectoryRecallResults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.java new file mode 100644 index 000000000000..a798fa174f1f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallResultsOrBuilder.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/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryRecallMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue getTrajectoryRecallMetricValues( + int index); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectoryRecallMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectoryRecallMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectoryRecall metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueOrBuilder + getTrajectoryRecallMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java new file mode 100644 index 000000000000..7d69ab60c07c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpec.java @@ -0,0 +1,435 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectoryRecall metric - returns a float score based on average
+ * recall of individual tool calls.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec} + */ +public final class TrajectoryRecallSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + TrajectoryRecallSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectoryRecallSpec.newBuilder() to construct. + private TrajectoryRecallSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectoryRecallSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectoryRecallSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.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.aiplatform.v1beta1.TrajectoryRecallSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) 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.aiplatform.v1beta1.TrajectoryRecallSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.TrajectoryRecallSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.TrajectoryRecallSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.TrajectoryRecallSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.TrajectoryRecallSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec 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.TrajectoryRecallSpec 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.TrajectoryRecallSpec 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.TrajectoryRecallSpec 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; + } + /** + * + * + *
+   * Spec for TrajectoryRecall metric - returns a float score based on average
+   * recall of individual tool calls.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.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.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectoryRecallSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec(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.aiplatform.v1beta1.TrajectoryRecallSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec.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.aiplatform.v1beta1.TrajectoryRecallSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectoryRecallSpec 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.TrajectoryRecallSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java new file mode 100644 index 000000000000..af590babce3a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectoryRecallSpecOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectoryRecallSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectoryRecallSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java new file mode 100644 index 000000000000..0d219b56c663 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInput.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Instances and metric spec for TrajectorySingleToolUse metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput} + */ +public final class TrajectorySingleToolUseInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + TrajectorySingleToolUseInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseInput.newBuilder() to construct. + private TrajectorySingleToolUseInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseInput() { + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + @java.lang.Override + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder + getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + instances_; + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances( + int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + 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, getMetricSpec()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.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.v1beta1.TrajectorySingleToolUseInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasMetricSpec()) { + hash = (37 * hash) + METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpec().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput 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; + } + /** + * + * + *
+   * Instances and metric spec for TrajectorySingleToolUse metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricSpecFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.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.v1beta1.TrajectorySingleToolUseInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + 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(getMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.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.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + public boolean hasMetricSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + .getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder + getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder + getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for TrajectorySingleToolUse metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private java.util.List + instances_ = java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance>(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance> + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Repeated TrajectorySingleToolUse instance.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder> + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.TrajectorySingleToolUseInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseInput 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.TrajectorySingleToolUseInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java new file mode 100644 index 000000000000..6ace30a13d39 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInputOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for TrajectorySingleToolUse metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInstancesList(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance getInstances(int index); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder> + getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. Repeated TrajectorySingleToolUse instance.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder + getInstancesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java new file mode 100644 index 000000000000..7e457c6a97f3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstance.java @@ -0,0 +1,765 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectorySingleToolUse instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance} + */ +public final class TrajectorySingleToolUseInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + TrajectorySingleToolUseInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseInstance.newBuilder() to construct. + private TrajectorySingleToolUseInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseInstance() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTED_TRAJECTORY_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Trajectory predictedTrajectory_; + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + @java.lang.Override + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder() { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + + 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, getPredictedTrajectory()); + } + 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, getPredictedTrajectory()); + } + 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.TrajectorySingleToolUseInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) obj; + + if (hasPredictedTrajectory() != other.hasPredictedTrajectory()) return false; + if (hasPredictedTrajectory()) { + if (!getPredictedTrajectory().equals(other.getPredictedTrajectory())) 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 (hasPredictedTrajectory()) { + hash = (37 * hash) + PREDICTED_TRAJECTORY_FIELD_NUMBER; + hash = (53 * hash) + getPredictedTrajectory().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + 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.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance 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; + } + /** + * + * + *
+   * Spec for TrajectorySingleToolUse instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPredictedTrajectoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictedTrajectory_ = + predictedTrajectoryBuilder_ == null + ? predictedTrajectory_ + : predictedTrajectoryBuilder_.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.v1beta1.TrajectorySingleToolUseInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + .getDefaultInstance()) return this; + if (other.hasPredictedTrajectory()) { + mergePredictedTrajectory(other.getPredictedTrajectory()); + } + 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( + getPredictedTrajectoryFieldBuilder().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.v1beta1.Trajectory predictedTrajectory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + predictedTrajectoryBuilder_; + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + public boolean hasPredictedTrajectory() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory() { + if (predictedTrajectoryBuilder_ == null) { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } else { + return predictedTrajectoryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictedTrajectory_ = value; + } else { + predictedTrajectoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictedTrajectory( + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder builderForValue) { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectory_ = builderForValue.build(); + } else { + predictedTrajectoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictedTrajectory(com.google.cloud.aiplatform.v1beta1.Trajectory value) { + if (predictedTrajectoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predictedTrajectory_ != null + && predictedTrajectory_ + != com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance()) { + getPredictedTrajectoryBuilder().mergeFrom(value); + } else { + predictedTrajectory_ = value; + } + } else { + predictedTrajectoryBuilder_.mergeFrom(value); + } + if (predictedTrajectory_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictedTrajectory() { + bitField0_ = (bitField0_ & ~0x00000001); + predictedTrajectory_ = null; + if (predictedTrajectoryBuilder_ != null) { + predictedTrajectoryBuilder_.dispose(); + predictedTrajectoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Trajectory.Builder getPredictedTrajectoryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredictedTrajectoryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder + getPredictedTrajectoryOrBuilder() { + if (predictedTrajectoryBuilder_ != null) { + return predictedTrajectoryBuilder_.getMessageOrBuilder(); + } else { + return predictedTrajectory_ == null + ? com.google.cloud.aiplatform.v1beta1.Trajectory.getDefaultInstance() + : predictedTrajectory_; + } + } + /** + * + * + *
+     * Required. Spec for predicted tool call trajectory.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder> + getPredictedTrajectoryFieldBuilder() { + if (predictedTrajectoryBuilder_ == null) { + predictedTrajectoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Trajectory, + com.google.cloud.aiplatform.v1beta1.Trajectory.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder>( + getPredictedTrajectory(), getParentForChildren(), isClean()); + predictedTrajectory_ = null; + } + return predictedTrajectoryBuilder_; + } + + @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.TrajectorySingleToolUseInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseInstance 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.TrajectorySingleToolUseInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.java new file mode 100644 index 000000000000..110ddbee3139 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseInstanceOrBuilder.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/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictedTrajectory field is set. + */ + boolean hasPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictedTrajectory. + */ + com.google.cloud.aiplatform.v1beta1.Trajectory getPredictedTrajectory(); + /** + * + * + *
+   * Required. Spec for predicted tool call trajectory.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.Trajectory predicted_trajectory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectoryOrBuilder getPredictedTrajectoryOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java new file mode 100644 index 000000000000..7297321bef8e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValue.java @@ -0,0 +1,589 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TrajectorySingleToolUse metric value for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue} + */ +public final class TrajectorySingleToolUseMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + TrajectorySingleToolUseMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseMetricValue.newBuilder() to construct. + private TrajectorySingleToolUseMetricValue( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseMetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + 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.writeFloat(1, score_); + } + 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.computeFloatSize(1, score_); + } + 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.TrajectorySingleToolUseMetricValue)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) 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 (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + 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.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue 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; + } + /** + * + * + *
+   * TrajectorySingleToolUse metric value for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseMetricValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + 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.v1beta1.TrajectorySingleToolUseMetricValue) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()) return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + 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 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + 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 float score_; + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse score.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 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.v1beta1.TrajectorySingleToolUseMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseMetricValue 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.TrajectorySingleToolUseMetricValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.java new file mode 100644 index 000000000000..79e986fe221b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseMetricValueOrBuilder.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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse score.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.java new file mode 100644 index 000000000000..085bfcf4f2df --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResults.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/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Results for TrajectorySingleToolUse metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults} + */ +public final class TrajectorySingleToolUseResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + TrajectorySingleToolUseResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseResults.newBuilder() to construct. + private TrajectorySingleToolUseResults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseResults() { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseResults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder.class); + } + + public static final int TRAJECTORY_SINGLE_TOOL_USE_METRIC_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + trajectorySingleToolUseMetricValues_; + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTrajectorySingleToolUseMetricValuesList() { + return trajectorySingleToolUseMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList() { + return trajectorySingleToolUseMetricValues_; + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTrajectorySingleToolUseMetricValuesCount() { + return trajectorySingleToolUseMetricValues_.size(); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index) { + return trajectorySingleToolUseMetricValues_.get(index); + } + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index) { + return trajectorySingleToolUseMetricValues_.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 < trajectorySingleToolUseMetricValues_.size(); i++) { + output.writeMessage(1, trajectorySingleToolUseMetricValues_.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 < trajectorySingleToolUseMetricValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, trajectorySingleToolUseMetricValues_.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.v1beta1.TrajectorySingleToolUseResults)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) obj; + + if (!getTrajectorySingleToolUseMetricValuesList() + .equals(other.getTrajectorySingleToolUseMetricValuesList())) 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 (getTrajectorySingleToolUseMetricValuesCount() > 0) { + hash = (37 * hash) + TRAJECTORY_SINGLE_TOOL_USE_METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTrajectorySingleToolUseMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + 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.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults 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; + } + /** + * + * + *
+   * Results for TrajectorySingleToolUse metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + } else { + trajectorySingleToolUseMetricValues_ = null; + trajectorySingleToolUseMetricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults result) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + trajectorySingleToolUseMetricValues_ = + java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trajectorySingleToolUseMetricValues_ = trajectorySingleToolUseMetricValues_; + } else { + result.trajectorySingleToolUseMetricValues_ = + trajectorySingleToolUseMetricValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults 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.v1beta1.TrajectorySingleToolUseResults) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + .getDefaultInstance()) return this; + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (!other.trajectorySingleToolUseMetricValues_.isEmpty()) { + if (trajectorySingleToolUseMetricValues_.isEmpty()) { + trajectorySingleToolUseMetricValues_ = other.trajectorySingleToolUseMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.addAll(other.trajectorySingleToolUseMetricValues_); + } + onChanged(); + } + } else { + if (!other.trajectorySingleToolUseMetricValues_.isEmpty()) { + if (trajectorySingleToolUseMetricValuesBuilder_.isEmpty()) { + trajectorySingleToolUseMetricValuesBuilder_.dispose(); + trajectorySingleToolUseMetricValuesBuilder_ = null; + trajectorySingleToolUseMetricValues_ = other.trajectorySingleToolUseMetricValues_; + bitField0_ = (bitField0_ & ~0x00000001); + trajectorySingleToolUseMetricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTrajectorySingleToolUseMetricValuesFieldBuilder() + : null; + } else { + trajectorySingleToolUseMetricValuesBuilder_.addAllMessages( + other.trajectorySingleToolUseMetricValues_); + } + } + } + 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.v1beta1.TrajectorySingleToolUseMetricValue m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .parser(), + extensionRegistry); + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(m); + } else { + trajectorySingleToolUseMetricValuesBuilder_.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 + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + + private void ensureTrajectorySingleToolUseMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trajectorySingleToolUseMetricValues_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue>( + trajectorySingleToolUseMetricValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + trajectorySingleToolUseMetricValuesBuilder_; + + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTrajectorySingleToolUseMetricValuesList() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTrajectorySingleToolUseMetricValuesCount() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.size(); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.get(index); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectorySingleToolUseMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.set(index, value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTrajectorySingleToolUseMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + int index, com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue value) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(index, value); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTrajectorySingleToolUseMetricValues( + int index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + builderForValue) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTrajectorySingleToolUseMetricValues( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue> + values) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trajectorySingleToolUseMetricValues_); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTrajectorySingleToolUseMetricValues() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTrajectorySingleToolUseMetricValues(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + ensureTrajectorySingleToolUseMetricValuesIsMutable(); + trajectorySingleToolUseMetricValues_.remove(index); + onChanged(); + } else { + trajectorySingleToolUseMetricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + getTrajectorySingleToolUseMetricValuesBuilder(int index) { + return getTrajectorySingleToolUseMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index) { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + return trajectorySingleToolUseMetricValues_.get(index); + } else { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList() { + if (trajectorySingleToolUseMetricValuesBuilder_ != null) { + return trajectorySingleToolUseMetricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trajectorySingleToolUseMetricValues_); + } + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + addTrajectorySingleToolUseMetricValuesBuilder() { + return getTrajectorySingleToolUseMetricValuesFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder + addTrajectorySingleToolUseMetricValuesBuilder(int index) { + return getTrajectorySingleToolUseMetricValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. TrajectorySingleToolUse metric values.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder> + getTrajectorySingleToolUseMetricValuesBuilderList() { + return getTrajectorySingleToolUseMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesFieldBuilder() { + if (trajectorySingleToolUseMetricValuesBuilder_ == null) { + trajectorySingleToolUseMetricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder>( + trajectorySingleToolUseMetricValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + trajectorySingleToolUseMetricValues_ = null; + } + return trajectorySingleToolUseMetricValuesBuilder_; + } + + @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.TrajectorySingleToolUseResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseResults 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.TrajectorySingleToolUseResults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java new file mode 100644 index 000000000000..466ea3bc659b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseResultsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseResultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTrajectorySingleToolUseMetricValuesList(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue + getTrajectorySingleToolUseMetricValues(int index); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTrajectorySingleToolUseMetricValuesCount(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder> + getTrajectorySingleToolUseMetricValuesOrBuilderList(); + /** + * + * + *
+   * Output only. TrajectorySingleToolUse metric values.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValue trajectory_single_tool_use_metric_values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueOrBuilder + getTrajectorySingleToolUseMetricValuesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java new file mode 100644 index 000000000000..72ccc5888d7a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpec.java @@ -0,0 +1,673 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
+ * predicted trajectory, else 0.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec} + */ +public final class TrajectorySingleToolUseSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + TrajectorySingleToolUseSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrajectorySingleToolUseSpec.newBuilder() to construct. + private TrajectorySingleToolUseSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrajectorySingleToolUseSpec() { + toolName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrajectorySingleToolUseSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder.class); + } + + private int bitField0_; + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + @java.lang.Override + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + 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(); + toolName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, toolName_); + } + 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.GeneratedMessageV3.computeStringSize(1, toolName_); + } + 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.TrajectorySingleToolUseSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec other = + (com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) obj; + + if (hasToolName() != other.hasToolName()) return false; + if (hasToolName()) { + if (!getToolName().equals(other.getToolName())) 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 (hasToolName()) { + hash = (37 * hash) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec 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; + } + /** + * + * + *
+   * Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the
+   * predicted trajectory, else 0.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.class, + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_TrajectorySingleToolUseSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec build() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result = + new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + 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.v1beta1.TrajectorySingleToolUseSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec.getDefaultInstance()) + return this; + if (other.hasToolName()) { + toolName_ = other.toolName_; + 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: + { + toolName_ = 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 toolName_ = ""; + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + public boolean hasToolName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for tool name to be checked for in the predicted trajectory.
+     * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolName_ = 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.TrajectorySingleToolUseSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + private static final com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrajectorySingleToolUseSpec 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.TrajectorySingleToolUseSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java new file mode 100644 index 000000000000..70e9ff06d12a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrajectorySingleToolUseSpecOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TrajectorySingleToolUseSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the toolName field is set. + */ + boolean hasToolName(); + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The toolName. + */ + java.lang.String getToolName(); + /** + * + * + *
+   * Required. Spec for tool name to be checked for in the predicted trajectory.
+   * 
+ * + * optional string tool_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequest.java index df141b5b43a9..46786a1988aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequest.java @@ -126,10 +126,10 @@ public com.google.cloud.aiplatform.v1beta1.ReasoningEngine getReasoningEngine() * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -142,10 +142,10 @@ public boolean hasUpdateMask() { * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -158,10 +158,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -786,10 +786,10 @@ public com.google.cloud.aiplatform.v1beta1.ReasoningEngine.Builder getReasoningE * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -801,10 +801,10 @@ public boolean hasUpdateMask() { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -822,10 +822,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -845,10 +845,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -865,10 +865,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -893,10 +893,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -913,10 +913,10 @@ public Builder clearUpdateMask() { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -928,10 +928,10 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -947,10 +947,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Mask specifying which fields to update.
+     * Optional. Mask specifying which fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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/UpdateReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequestOrBuilder.java index a8159d2ca5ab..1245d9cc9c72 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateReasoningEngineRequestOrBuilder.java @@ -69,10 +69,10 @@ public interface UpdateReasoningEngineRequestOrBuilder * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -82,10 +82,10 @@ public interface UpdateReasoningEngineRequestOrBuilder * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -95,10 +95,10 @@ public interface UpdateReasoningEngineRequestOrBuilder * * *
-   * Required. Mask specifying which fields to update.
+   * Optional. Mask specifying which fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java index e4f049b8ce30..f210be97e807 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java @@ -71,12 +71,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRagFileChunkingConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -87,12 +91,16 @@ public boolean hasRagFileChunkingConfig() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return The ragFileChunkingConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { return ragFileChunkingConfig_ == null ? com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.getDefaultInstance() @@ -105,10 +113,12 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder() { return ragFileChunkingConfig_ == null @@ -116,6 +126,65 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk : ragFileChunkingConfig_; } + public static final int RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + ragFileTransformationConfig_; + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + @java.lang.Override + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getRagFileTransformationConfig() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -133,6 +202,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRagFileChunkingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRagFileTransformationConfig()); + } getUnknownFields().writeTo(output); } @@ -146,6 +218,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRagFileChunkingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getRagFileTransformationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -166,6 +243,11 @@ public boolean equals(final java.lang.Object obj) { if (hasRagFileChunkingConfig()) { if (!getRagFileChunkingConfig().equals(other.getRagFileChunkingConfig())) return false; } + if (hasRagFileTransformationConfig() != other.hasRagFileTransformationConfig()) return false; + if (hasRagFileTransformationConfig()) { + if (!getRagFileTransformationConfig().equals(other.getRagFileTransformationConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,6 +263,10 @@ public int hashCode() { hash = (37 * hash) + RAG_FILE_CHUNKING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRagFileChunkingConfig().hashCode(); } + if (hasRagFileTransformationConfig()) { + hash = (37 * hash) + RAG_FILE_TRANSFORMATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagFileTransformationConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -323,6 +409,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRagFileChunkingConfigFieldBuilder(); + getRagFileTransformationConfigFieldBuilder(); } } @@ -335,6 +422,11 @@ public Builder clear() { ragFileChunkingConfigBuilder_.dispose(); ragFileChunkingConfigBuilder_ = null; } + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } return this; } @@ -379,6 +471,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UploadRagFileConf : ragFileChunkingConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ragFileTransformationConfig_ = + ragFileTransformationConfigBuilder_ == null + ? ragFileTransformationConfig_ + : ragFileTransformationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -431,6 +530,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadRagFileConfig if (other.hasRagFileChunkingConfig()) { mergeRagFileChunkingConfig(other.getRagFileChunkingConfig()); } + if (other.hasRagFileTransformationConfig()) { + mergeRagFileTransformationConfig(other.getRagFileTransformationConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -464,6 +566,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 26: + { + input.readMessage( + getRagFileTransformationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -496,11 +605,15 @@ public Builder mergeFrom( * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return Whether the ragFileChunkingConfig field is set. */ + @java.lang.Deprecated public boolean hasRagFileChunkingConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -511,11 +624,15 @@ public boolean hasRagFileChunkingConfig() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return The ragFileChunkingConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig() { if (ragFileChunkingConfigBuilder_ == null) { return ragFileChunkingConfig_ == null @@ -532,9 +649,11 @@ public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunk * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { if (ragFileChunkingConfigBuilder_ == null) { @@ -556,9 +675,11 @@ public Builder setRagFileChunkingConfig( * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder builderForValue) { if (ragFileChunkingConfigBuilder_ == null) { @@ -577,9 +698,11 @@ public Builder setRagFileChunkingConfig( * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergeRagFileChunkingConfig( com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig value) { if (ragFileChunkingConfigBuilder_ == null) { @@ -607,9 +730,11 @@ public Builder mergeRagFileChunkingConfig( * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearRagFileChunkingConfig() { bitField0_ = (bitField0_ & ~0x00000001); ragFileChunkingConfig_ = null; @@ -627,9 +752,11 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder getRagFileChunkingConfigBuilder() { bitField0_ |= 0x00000001; @@ -643,9 +770,11 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder() { if (ragFileChunkingConfigBuilder_ != null) { @@ -663,7 +792,8 @@ public Builder clearRagFileChunkingConfig() { * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -683,6 +813,218 @@ public Builder clearRagFileChunkingConfig() { return ragFileChunkingConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + ragFileTransformationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder> + ragFileTransformationConfigBuilder_; + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + public boolean hasRagFileTransformationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + getRagFileTransformationConfig() { + if (ragFileTransformationConfigBuilder_ == null) { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } else { + return ragFileTransformationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragFileTransformationConfig_ = value; + } else { + ragFileTransformationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder setRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder builderForValue) { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfig_ = builderForValue.build(); + } else { + ragFileTransformationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder mergeRagFileTransformationConfig( + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig value) { + if (ragFileTransformationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ragFileTransformationConfig_ != null + && ragFileTransformationConfig_ + != com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig + .getDefaultInstance()) { + getRagFileTransformationConfigBuilder().mergeFrom(value); + } else { + ragFileTransformationConfig_ = value; + } + } else { + ragFileTransformationConfigBuilder_.mergeFrom(value); + } + if (ragFileTransformationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public Builder clearRagFileTransformationConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + ragFileTransformationConfig_ = null; + if (ragFileTransformationConfigBuilder_ != null) { + ragFileTransformationConfigBuilder_.dispose(); + ragFileTransformationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder + getRagFileTransformationConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRagFileTransformationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder() { + if (ragFileTransformationConfigBuilder_ != null) { + return ragFileTransformationConfigBuilder_.getMessageOrBuilder(); + } else { + return ragFileTransformationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.getDefaultInstance() + : ragFileTransformationConfig_; + } + } + /** + * + * + *
+     * Specifies the transformation config for RagFiles.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder> + getRagFileTransformationConfigFieldBuilder() { + if (ragFileTransformationConfigBuilder_ == null) { + ragFileTransformationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder>( + getRagFileTransformationConfig(), getParentForChildren(), isClean()); + ragFileTransformationConfig_ = null; + } + return ragFileTransformationConfigBuilder_; + } + @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/UploadRagFileConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java index 25083184e80c..4abe7ebe974c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java @@ -31,11 +31,15 @@ public interface UploadRagFileConfigOrBuilder * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return Whether the ragFileChunkingConfig field is set. */ + @java.lang.Deprecated boolean hasRagFileChunkingConfig(); /** * @@ -44,11 +48,15 @@ public interface UploadRagFileConfigOrBuilder * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * * + * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return The ragFileChunkingConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig getRagFileChunkingConfig(); /** * @@ -57,9 +65,53 @@ public interface UploadRagFileConfigOrBuilder * Specifies the size and overlap of chunks after uploading RagFile. * * - * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1; + * + * .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder(); + + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return Whether the ragFileTransformationConfig field is set. + */ + boolean hasRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + * + * @return The ragFileTransformationConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig getRagFileTransformationConfig(); + /** + * + * + *
+   * Specifies the transformation config for RagFiles.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagFileTransformationConfig rag_file_transformation_config = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.RagFileTransformationConfigOrBuilder + getRagFileTransformationConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfig.java new file mode 100644 index 000000000000..9f435ed26176 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfig.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/cloud/aiplatform/v1beta1/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Config for the Vertex AI Search.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAiSearchConfig} + */ +public final class VertexAiSearchConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) + VertexAiSearchConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexAiSearchConfig.newBuilder() to construct. + private VertexAiSearchConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexAiSearchConfig() { + servingConfig_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexAiSearchConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.class, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder.class); + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + /** + * + * + *
+   * Vertex AI Search Serving Config resource full name. For example,
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+   * or
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+   * 
+ * + * string serving_config = 1; + * + * @return The servingConfig. + */ + @java.lang.Override + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + 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(); + servingConfig_ = s; + return s; + } + } + /** + * + * + *
+   * Vertex AI Search Serving Config resource full name. For example,
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+   * or
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+   * 
+ * + * string serving_config = 1; + * + * @return The bytes for servingConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof java.lang.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; + } + } + + 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(servingConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, servingConfig_); + } + 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(servingConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, servingConfig_); + } + 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.VertexAiSearchConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig other = + (com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) obj; + + if (!getServingConfig().equals(other.getServingConfig())) 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) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig 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.VertexAiSearchConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig 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.VertexAiSearchConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig 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.VertexAiSearchConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig 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.VertexAiSearchConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig 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.VertexAiSearchConfig 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.VertexAiSearchConfig 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.VertexAiSearchConfig 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; + } + /** + * + * + *
+   * Config for the Vertex AI Search.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexAiSearchConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.class, + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + servingConfig_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig build() { + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig result = + new com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = servingConfig_; + } + } + + @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.VertexAiSearchConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig.getDefaultInstance()) + return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + 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: + { + servingConfig_ = 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 servingConfig_ = ""; + /** + * + * + *
+     * Vertex AI Search Serving Config resource full name. For example,
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+     * or
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+     * 
+ * + * string serving_config = 1; + * + * @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; + } + } + /** + * + * + *
+     * Vertex AI Search Serving Config resource full name. For example,
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+     * or
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+     * 
+ * + * string serving_config = 1; + * + * @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; + } + } + /** + * + * + *
+     * Vertex AI Search Serving Config resource full name. For example,
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+     * or
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+     * 
+ * + * string serving_config = 1; + * + * @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; + } + /** + * + * + *
+     * Vertex AI Search Serving Config resource full name. For example,
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+     * or
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+     * 
+ * + * string serving_config = 1; + * + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Vertex AI Search Serving Config resource full name. For example,
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+     * or
+     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+     * 
+ * + * string serving_config = 1; + * + * @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; + } + + @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.VertexAiSearchConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) + private static final com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexAiSearchConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexAiSearchConfig 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.VertexAiSearchConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfigOrBuilder.java new file mode 100644 index 000000000000..c62787e7fa55 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexAiSearchConfigOrBuilder.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/aiplatform/v1beta1/vertex_rag_data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface VertexAiSearchConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VertexAiSearchConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Vertex AI Search Serving Config resource full name. For example,
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+   * or
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+   * 
+ * + * string serving_config = 1; + * + * @return The servingConfig. + */ + java.lang.String getServingConfig(); + /** + * + * + *
+   * Vertex AI Search Serving Config resource full name. For example,
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}`
+   * or
+   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`.
+   * 
+ * + * string serving_config = 1; + * + * @return The bytes for servingConfig. + */ + com.google.protobuf.ByteString getServingConfigBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java index 16b7624d6553..85ccad275223 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_FileStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_FileStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CorpusStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,10 +96,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -143,7 +167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dense_embedding_model_prediction_endpoin" + "t\030\002 \001(\0132Q.google.cloud.aiplatform.v1beta" + "1.RagEmbeddingModelConfig.VertexPredicti" - + "onEndpointB\003\340A\002B\016\n\014model_config\"\212\006\n\021RagV" + + "onEndpointB\003\340A\002B\016\n\014model_config\"\360\006\n\021RagV" + "ectorDbConfig\022Y\n\016rag_managed_db\030\001 \001(\0132?." + "google.cloud.aiplatform.v1beta1.RagVecto" + "rDbConfig.RagManagedDbH\000\022O\n\010weaviate\030\002 \001" @@ -157,97 +181,133 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "E.google.cloud.aiplatform.v1beta1.RagVec" + "torDbConfig.VertexVectorSearchH\000\022:\n\010api_" + "auth\030\005 \001(\0132(.google.cloud.aiplatform.v1b" - + "eta1.ApiAuth\032\016\n\014RagManagedDb\032:\n\010Weaviate" - + "\022\025\n\rhttp_endpoint\030\001 \001(\t\022\027\n\017collection_na" - + "me\030\002 \001(\t\032\036\n\010Pinecone\022\022\n\nindex_name\030\001 \001(\t" - + "\0328\n\022VertexFeatureStore\022\"\n\032feature_view_r" - + "esource_name\030\001 \001(\t\032;\n\022VertexVectorSearch" - + "\022\026\n\016index_endpoint\030\001 \001(\t\022\r\n\005index\030\002 \001(\tB" - + "\013\n\tvector_db\"\245\001\n\nFileStatus\022E\n\005state\030\001 \001" - + "(\01621.google.cloud.aiplatform.v1beta1.Fil" - + "eStatus.StateB\003\340A\003\022\031\n\014error_status\030\002 \001(\t" - + "B\003\340A\003\"5\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\t\n\005ERROR\020\002\"\260\001\n\014CorpusStatus\022G\n" - + "\005state\030\001 \001(\01623.google.cloud.aiplatform.v" - + "1beta1.CorpusStatus.StateB\003\340A\003\022\031\n\014error_" - + "status\030\002 \001(\tB\003\340A\003\"<\n\005State\022\013\n\007UNKNOWN\020\000\022" - + "\017\n\013INITIALIZED\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005ERROR\020\003\"" - + "\315\004\n\tRagCorpus\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014disp" - + "lay_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\t" - + "B\003\340A\001\022d\n\032rag_embedding_model_config\030\006 \001(" - + "\01328.google.cloud.aiplatform.v1beta1.RagE" - + "mbeddingModelConfigB\006\340A\001\340A\005\022X\n\024rag_vecto" - + "r_db_config\030\007 \001(\01322.google.cloud.aiplatf" - + "orm.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005\0224\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022I\n\rcorpus_stat" - + "us\030\010 \001(\0132-.google.cloud.aiplatform.v1bet" - + "a1.CorpusStatusB\003\340A\003:\200\001\352A}\n#aiplatform.g" - + "oogleapis.com/RagCorpus\022?projects/{proje" - + "ct}/locations/{location}/ragCorpora/{rag" - + "_corpus}*\nragCorpora2\tragCorpus\"\306\010\n\007RagF" - + "ile\022E\n\ngcs_source\030\010 \001(\0132*.google.cloud.a" - + "iplatform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n\023go" - + "ogle_drive_source\030\t \001(\01322.google.cloud.a" - + "iplatform.v1beta1.GoogleDriveSourceB\003\340A\003" - + "H\000\022X\n\024direct_upload_source\030\n \001(\01323.googl" - + "e.cloud.aiplatform.v1beta1.DirectUploadS" - + "ourceB\003\340A\003H\000\022D\n\014slack_source\030\013 \001(\0132,.goo" - + "gle.cloud.aiplatform.v1beta1.SlackSource" - + "H\000\022B\n\013jira_source\030\014 \001(\0132+.google.cloud.a" - + "iplatform.v1beta1.JiraSourceH\000\022Q\n\023share_" - + "point_sources\030\016 \001(\01322.google.cloud.aipla" - + "tform.v1beta1.SharePointSourcesH\000\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022" - + "\030\n\013description\030\003 \001(\tB\003\340A\001\022\027\n\nsize_bytes\030" - + "\004 \001(\003B\003\340A\003\022P\n\rrag_file_type\030\005 \001(\01624.goog" - + "le.cloud.aiplatform.v1beta1.RagFile.RagF" - + "ileTypeB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022E\n\013file_status\030\r \001(\0132+.google.cloud.aip" - + "latform.v1beta1.FileStatusB\003\340A\003\"Z\n\013RagFi" - + "leType\022\035\n\031RAG_FILE_TYPE_UNSPECIFIED\020\000\022\025\n" - + "\021RAG_FILE_TYPE_TXT\020\001\022\025\n\021RAG_FILE_TYPE_PD" - + "F\020\002:\217\001\352A\213\001\n!aiplatform.googleapis.com/Ra" - + "gFile\022Sprojects/{project}/locations/{loc" - + "ation}/ragCorpora/{rag_corpus}/ragFiles/" - + "{rag_file}*\010ragFiles2\007ragFileB\021\n\017rag_fil" - + "e_source\"B\n\025RagFileChunkingConfig\022\022\n\nchu" - + "nk_size\030\001 \001(\005\022\025\n\rchunk_overlap\030\002 \001(\005\"8\n\024" - + "RagFileParsingConfig\022 \n\030use_advanced_pdf" - + "_parsing\030\002 \001(\010\"o\n\023UploadRagFileConfig\022X\n" - + "\030rag_file_chunking_config\030\001 \001(\01326.google" - + ".cloud.aiplatform.v1beta1.RagFileChunkin" - + "gConfig\"\304\006\n\024ImportRagFilesConfig\022@\n\ngcs_" - + "source\030\002 \001(\0132*.google.cloud.aiplatform.v" - + "1beta1.GcsSourceH\000\022Q\n\023google_drive_sourc" - + "e\030\003 \001(\01322.google.cloud.aiplatform.v1beta" - + "1.GoogleDriveSourceH\000\022D\n\014slack_source\030\006 " - + "\001(\0132,.google.cloud.aiplatform.v1beta1.Sl" - + "ackSourceH\000\022B\n\013jira_source\030\007 \001(\0132+.googl" - + "e.cloud.aiplatform.v1beta1.JiraSourceH\000\022" - + "Q\n\023share_point_sources\030\r \001(\01322.google.cl" - + "oud.aiplatform.v1beta1.SharePointSources" - + "H\000\022S\n\030partial_failure_gcs_sink\030\013 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.GcsDestin" - + "ationH\001\022]\n\035partial_failure_bigquery_sink" - + "\030\014 \001(\01324.google.cloud.aiplatform.v1beta1" - + ".BigQueryDestinationH\001\022X\n\030rag_file_chunk" - + "ing_config\030\004 \001(\01326.google.cloud.aiplatfo" - + "rm.v1beta1.RagFileChunkingConfig\022V\n\027rag_" - + "file_parsing_config\030\010 \001(\01325.google.cloud" - + ".aiplatform.v1beta1.RagFileParsingConfig" - + "\022+\n\036max_embedding_requests_per_min\030\005 \001(\005" - + "B\003\340A\001B\017\n\rimport_sourceB\026\n\024partial_failur" - + "e_sinkB\351\001\n#com.google.cloud.aiplatform.v" - + "1beta1B\022VertexRagDataProtoP\001ZCcloud.goog" - + "le.com/go/aiplatform/apiv1beta1/aiplatfo" - + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" - + "a1b\006proto3" + + "eta1.ApiAuth\022d\n\032rag_embedding_model_conf" + + "ig\030\007 \001(\01328.google.cloud.aiplatform.v1bet" + + "a1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\016\n\014Ra" + + "gManagedDb\032:\n\010Weaviate\022\025\n\rhttp_endpoint\030" + + "\001 \001(\t\022\027\n\017collection_name\030\002 \001(\t\032\036\n\010Pineco" + + "ne\022\022\n\nindex_name\030\001 \001(\t\0328\n\022VertexFeatureS" + + "tore\022\"\n\032feature_view_resource_name\030\001 \001(\t" + + "\032;\n\022VertexVectorSearch\022\026\n\016index_endpoint" + + "\030\001 \001(\t\022\r\n\005index\030\002 \001(\tB\013\n\tvector_db\"\245\001\n\nF" + + "ileStatus\022E\n\005state\030\001 \001(\01621.google.cloud." + + "aiplatform.v1beta1.FileStatus.StateB\003\340A\003" + + "\022\031\n\014error_status\030\002 \001(\tB\003\340A\003\"5\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\t\n\005ERROR" + + "\020\002\".\n\024VertexAiSearchConfig\022\026\n\016serving_co" + + "nfig\030\001 \001(\t\"\260\001\n\014CorpusStatus\022G\n\005state\030\001 \001" + + "(\01623.google.cloud.aiplatform.v1beta1.Cor" + + "pusStatus.StateB\003\340A\003\022\031\n\014error_status\030\002 \001" + + "(\tB\003\340A\003\"<\n\005State\022\013\n\007UNKNOWN\020\000\022\017\n\013INITIAL" + + "IZED\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005ERROR\020\003\"\235\006\n\tRagCor" + + "pus\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002" + + " \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022f\n\032r" + + "ag_embedding_model_config\030\006 \001(\01328.google" + + ".cloud.aiplatform.v1beta1.RagEmbeddingMo" + + "delConfigB\010\030\001\340A\001\340A\005\022Z\n\024rag_vector_db_con" + + "fig\030\007 \001(\01322.google.cloud.aiplatform.v1be" + + "ta1.RagVectorDbConfigB\010\030\001\340A\001\340A\005\0224\n\013creat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022I\n\rcorpus_status\030\010 \001" + + "(\0132-.google.cloud.aiplatform.v1beta1.Cor" + + "pusStatusB\003\340A\003\022V\n\020vector_db_config\030\t \001(\013" + + "22.google.cloud.aiplatform.v1beta1.RagVe" + + "ctorDbConfigB\006\340A\001\340A\005H\000\022`\n\027vertex_ai_sear" + + "ch_config\030\n \001(\01325.google.cloud.aiplatfor" + + "m.v1beta1.VertexAiSearchConfigB\006\340A\001\340A\005H\000" + + ":\200\001\352A}\n#aiplatform.googleapis.com/RagCor" + + "pus\022?projects/{project}/locations/{locat" + + "ion}/ragCorpora/{rag_corpus}*\nragCorpora" + + "2\tragCorpusB\020\n\016backend_config\"\306\010\n\007RagFil" + + "e\022E\n\ngcs_source\030\010 \001(\0132*.google.cloud.aip" + + "latform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n\023goog" + + "le_drive_source\030\t \001(\01322.google.cloud.aip" + + "latform.v1beta1.GoogleDriveSourceB\003\340A\003H\000" + + "\022X\n\024direct_upload_source\030\n \001(\01323.google." + + "cloud.aiplatform.v1beta1.DirectUploadSou" + + "rceB\003\340A\003H\000\022D\n\014slack_source\030\013 \001(\0132,.googl" + + "e.cloud.aiplatform.v1beta1.SlackSourceH\000" + + "\022B\n\013jira_source\030\014 \001(\0132+.google.cloud.aip" + + "latform.v1beta1.JiraSourceH\000\022Q\n\023share_po" + + "int_sources\030\016 \001(\01322.google.cloud.aiplatf" + + "orm.v1beta1.SharePointSourcesH\000\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\027\n\nsize_bytes\030\004 " + + "\001(\003B\003\340A\003\022P\n\rrag_file_type\030\005 \001(\01624.google" + + ".cloud.aiplatform.v1beta1.RagFile.RagFil" + + "eTypeB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E" + + "\n\013file_status\030\r \001(\0132+.google.cloud.aipla" + + "tform.v1beta1.FileStatusB\003\340A\003\"Z\n\013RagFile" + + "Type\022\035\n\031RAG_FILE_TYPE_UNSPECIFIED\020\000\022\025\n\021R" + + "AG_FILE_TYPE_TXT\020\001\022\025\n\021RAG_FILE_TYPE_PDF\020" + + "\002:\217\001\352A\213\001\n!aiplatform.googleapis.com/RagF" + + "ile\022Sprojects/{project}/locations/{locat" + + "ion}/ragCorpora/{rag_corpus}/ragFiles/{r" + + "ag_file}*\010ragFiles2\007ragFileB\021\n\017rag_file_" + + "source\"\214\002\n\025RagFileChunkingConfig\022k\n\025fixe" + + "d_length_chunking\030\003 \001(\0132J.google.cloud.a" + + "iplatform.v1beta1.RagFileChunkingConfig." + + "FixedLengthChunkingH\000\022\026\n\nchunk_size\030\001 \001(" + + "\005B\002\030\001\022\031\n\rchunk_overlap\030\002 \001(\005B\002\030\001\032@\n\023Fixe" + + "dLengthChunking\022\022\n\nchunk_size\030\001 \001(\005\022\025\n\rc" + + "hunk_overlap\030\002 \001(\005B\021\n\017chunking_config\"w\n" + + "\033RagFileTransformationConfig\022X\n\030rag_file" + + "_chunking_config\030\001 \001(\01326.google.cloud.ai" + + "platform.v1beta1.RagFileChunkingConfig\"\303" + + "\004\n\024RagFileParsingConfig\022_\n\017advanced_pars" + + "er\030\003 \001(\0132D.google.cloud.aiplatform.v1bet" + + "a1.RagFileParsingConfig.AdvancedParserH\000" + + "\022[\n\rlayout_parser\030\004 \001(\0132B.google.cloud.a" + + "iplatform.v1beta1.RagFileParsingConfig.L" + + "ayoutParserH\000\022U\n\nllm_parser\030\005 \001(\0132?.goog" + + "le.cloud.aiplatform.v1beta1.RagFileParsi" + + "ngConfig.LlmParserH\000\022$\n\030use_advanced_pdf" + + "_parsing\030\002 \001(\010B\002\030\001\0322\n\016AdvancedParser\022 \n\030" + + "use_advanced_pdf_parsing\030\001 \001(\010\032L\n\014Layout" + + "Parser\022\026\n\016processor_name\030\001 \001(\t\022$\n\034max_pa" + + "rsing_requests_per_min\030\002 \001(\005\032d\n\tLlmParse" + + "r\022\022\n\nmodel_name\030\001 \001(\t\022$\n\034max_parsing_req" + + "uests_per_min\030\002 \001(\005\022\035\n\025custom_parsing_pr" + + "ompt\030\003 \001(\tB\010\n\006parser\"\331\001\n\023UploadRagFileCo" + + "nfig\022\\\n\030rag_file_chunking_config\030\001 \001(\01326" + + ".google.cloud.aiplatform.v1beta1.RagFile" + + "ChunkingConfigB\002\030\001\022d\n\036rag_file_transform" + + "ation_config\030\003 \001(\0132<.google.cloud.aiplat" + + "form.v1beta1.RagFileTransformationConfig" + + "\"\273\007\n\024ImportRagFilesConfig\022@\n\ngcs_source\030" + + "\002 \001(\0132*.google.cloud.aiplatform.v1beta1." + + "GcsSourceH\000\022Q\n\023google_drive_source\030\003 \001(\013" + + "22.google.cloud.aiplatform.v1beta1.Googl" + + "eDriveSourceH\000\022D\n\014slack_source\030\006 \001(\0132,.g" + + "oogle.cloud.aiplatform.v1beta1.SlackSour" + + "ceH\000\022B\n\013jira_source\030\007 \001(\0132+.google.cloud" + + ".aiplatform.v1beta1.JiraSourceH\000\022Q\n\023shar" + + "e_point_sources\030\r \001(\01322.google.cloud.aip" + + "latform.v1beta1.SharePointSourcesH\000\022W\n\030p" + + "artial_failure_gcs_sink\030\013 \001(\0132/.google.c" + + "loud.aiplatform.v1beta1.GcsDestinationB\002" + + "\030\001H\001\022a\n\035partial_failure_bigquery_sink\030\014 " + + "\001(\01324.google.cloud.aiplatform.v1beta1.Bi" + + "gQueryDestinationB\002\030\001H\001\022\\\n\030rag_file_chun" + + "king_config\030\004 \001(\01326.google.cloud.aiplatf" + + "orm.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" + + "\036rag_file_transformation_config\030\020 \001(\0132<." + + "google.cloud.aiplatform.v1beta1.RagFileT" + + "ransformationConfig\022[\n\027rag_file_parsing_" + + "config\030\010 \001(\01325.google.cloud.aiplatform.v" + + "1beta1.RagFileParsingConfigB\003\340A\001\022+\n\036max_" + + "embedding_requests_per_min\030\005 \001(\005B\003\340A\001B\017\n" + + "\rimport_sourceB\026\n\024partial_failure_sinkB\351" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\022" + + "VertexRagDataProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -319,6 +379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VertexFeatureStore", "VertexVectorSearch", "ApiAuth", + "RagEmbeddingModelConfig", "VectorDb", }); internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor = @@ -377,8 +438,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "State", "ErrorStatus", }); - internal_static_google_cloud_aiplatform_v1beta1_CorpusStatus_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VertexAiSearchConfig_descriptor, + new java.lang.String[] { + "ServingConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_CorpusStatus_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_CorpusStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CorpusStatus_descriptor, @@ -386,7 +455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "ErrorStatus", }); internal_static_google_cloud_aiplatform_v1beta1_RagCorpus_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_RagCorpus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagCorpus_descriptor, @@ -399,9 +468,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "CorpusStatus", + "VectorDbConfig", + "VertexAiSearchConfig", + "BackendConfig", }); internal_static_google_cloud_aiplatform_v1beta1_RagFile_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1beta1_RagFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagFile_descriptor, @@ -423,31 +495,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagFileSource", }); internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_descriptor, + new java.lang.String[] { + "FixedLengthChunking", "ChunkSize", "ChunkOverlap", "ChunkingConfig", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagFileChunkingConfig_FixedLengthChunking_descriptor, new java.lang.String[] { "ChunkSize", "ChunkOverlap", }); + internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagFileTransformationConfig_descriptor, + new java.lang.String[] { + "RagFileChunkingConfig", + }); internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor, + new java.lang.String[] { + "AdvancedParser", "LayoutParser", "LlmParser", "UseAdvancedPdfParsing", "Parser", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_AdvancedParser_descriptor, new java.lang.String[] { "UseAdvancedPdfParsing", }); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LayoutParser_descriptor, + new java.lang.String[] { + "ProcessorName", "MaxParsingRequestsPerMin", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagFileParsingConfig_LlmParser_descriptor, + new java.lang.String[] { + "ModelName", "MaxParsingRequestsPerMin", "CustomParsingPrompt", + }); internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileConfig_descriptor, new java.lang.String[] { - "RagFileChunkingConfig", + "RagFileChunkingConfig", "RagFileTransformationConfig", }); internal_static_google_cloud_aiplatform_v1beta1_ImportRagFilesConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_ImportRagFilesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ImportRagFilesConfig_descriptor, @@ -460,6 +580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartialFailureGcsSink", "PartialFailureBigquerySink", "RagFileChunkingConfig", + "RagFileTransformationConfig", "RagFileParsingConfig", "MaxEmbeddingRequestsPerMin", "ImportSource", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java index e8f8a47b19b2..a86950005d98 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java @@ -60,6 +60,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RetrieveContextsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RetrieveContextsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Fact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Claim_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -74,48 +106,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\"\276\001\n\010RagQuery\022\023\n\004text\030\001 \001(\tB\003\340A\001H\000" - + "\022\035\n\020similarity_top_k\030\002 \001(\005B\003\340A\001\022G\n\007ranki" - + "ng\030\004 \001(\01321.google.cloud.aiplatform.v1bet" - + "a1.RagQuery.RankingB\003\340A\001\032,\n\007Ranking\022\027\n\005a" - + "lpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n\006_alphaB\007\n\005query\"" - + "\335\004\n\027RetrieveContextsRequest\022c\n\020vertex_ra" - + "g_store\030\002 \001(\0132G.google.cloud.aiplatform." - + "v1beta1.RetrieveContextsRequest.VertexRa" - + "gStoreH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" - + "ons.googleapis.com/Location\022=\n\005query\030\003 \001" - + "(\0132).google.cloud.aiplatform.v1beta1.Rag" - + "QueryB\003\340A\002\032\323\002\n\016VertexRagStore\022\032\n\013rag_cor" - + "pora\030\001 \003(\tB\005\030\001\340A\001\022o\n\rrag_resources\030\003 \003(\013" - + "2S.google.cloud.aiplatform.v1beta1.Retri" - + "eveContextsRequest.VertexRagStore.RagRes" - + "ourceB\003\340A\001\022+\n\031vector_distance_threshold\030" - + "\002 \001(\001B\003\340A\001H\000\210\001\001\032i\n\013RagResource\022?\n\nrag_co" - + "rpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatform.googleapi" - + "s.com/RagCorpus\022\031\n\014rag_file_ids\030\002 \003(\tB\003\340" - + "A\001B\034\n\032_vector_distance_thresholdB\r\n\013data" - + "_source\"\255\001\n\013RagContexts\022F\n\010contexts\030\001 \003(" - + "\01324.google.cloud.aiplatform.v1beta1.RagC" - + "ontexts.Context\032V\n\007Context\022\022\n\nsource_uri" - + "\030\001 \001(\t\022\014\n\004text\030\002 \001(\t\022\020\n\010distance\030\003 \001(\001\022\027" - + "\n\017sparse_distance\030\004 \001(\001\"Z\n\030RetrieveConte" - + "xtsResponse\022>\n\010contexts\030\001 \001(\0132,.google.c" - + "loud.aiplatform.v1beta1.RagContexts2\300\002\n\020" - + "VertexRagService\022\334\001\n\020RetrieveContexts\0228." - + "google.cloud.aiplatform.v1beta1.Retrieve" - + "ContextsRequest\0329.google.cloud.aiplatfor" - + "m.v1beta1.RetrieveContextsResponse\"S\332A\014p" - + "arent,query\202\323\344\223\002>\"9/v1beta1/{parent=proj" - + "ects/*/locations/*}:retrieveContexts:\001*\032" - + "M\312A\031aiplatform.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\354" - + "\001\n#com.google.cloud.aiplatform.v1beta1B\025" - + "VertexRagServiceProtoP\001ZCcloud.google.co" - + "m/go/aiplatform/apiv1beta1/aiplatformpb;" - + "aiplatformpb\252\002\037Google.Cloud.AIPlatform.V" - + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" - + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" - + "roto3" + + ".proto\032-google/cloud/aiplatform/v1beta1/" + + "content.proto\032*google/cloud/aiplatform/v" + + "1beta1/tool.proto\"\232\002\n\010RagQuery\022\023\n\004text\030\001" + + " \001(\tB\003\340A\001H\000\022\037\n\020similarity_top_k\030\002 \001(\005B\005\030" + + "\001\340A\001\022I\n\007ranking\030\004 \001(\01321.google.cloud.aip" + + "latform.v1beta1.RagQuery.RankingB\005\030\001\340A\001\022" + + "V\n\024rag_retrieval_config\030\006 \001(\01323.google.c" + + "loud.aiplatform.v1beta1.RagRetrievalConf" + + "igB\003\340A\001\032,\n\007Ranking\022\027\n\005alpha\030\001 \001(\002B\003\340A\001H\000" + + "\210\001\001B\010\n\006_alphaB\007\n\005query\"\337\004\n\027RetrieveConte" + + "xtsRequest\022c\n\020vertex_rag_store\030\002 \001(\0132G.g" + + "oogle.cloud.aiplatform.v1beta1.RetrieveC" + + "ontextsRequest.VertexRagStoreH\000\0229\n\006paren" + + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/Location\022=\n\005query\030\003 \001(\0132).google.cloud" + + ".aiplatform.v1beta1.RagQueryB\003\340A\002\032\325\002\n\016Ve" + + "rtexRagStore\022\032\n\013rag_corpora\030\001 \003(\tB\005\030\001\340A\001" + + "\022o\n\rrag_resources\030\003 \003(\0132S.google.cloud.a" + + "iplatform.v1beta1.RetrieveContextsReques" + + "t.VertexRagStore.RagResourceB\003\340A\001\022-\n\031vec" + + "tor_distance_threshold\030\002 \001(\001B\005\030\001\340A\001H\000\210\001\001" + + "\032i\n\013RagResource\022?\n\nrag_corpus\030\001 \001(\tB+\340A\001" + + "\372A%\n#aiplatform.googleapis.com/RagCorpus" + + "\022\031\n\014rag_file_ids\030\002 \003(\tB\003\340A\001B\034\n\032_vector_d" + + "istance_thresholdB\r\n\013data_source\"\361\001\n\013Rag" + + "Contexts\022F\n\010contexts\030\001 \003(\01324.google.clou" + + "d.aiplatform.v1beta1.RagContexts.Context" + + "\032\231\001\n\007Context\022\022\n\nsource_uri\030\001 \001(\t\022\033\n\023sour" + + "ce_display_name\030\005 \001(\t\022\014\n\004text\030\002 \001(\t\022\024\n\010d" + + "istance\030\003 \001(\001B\002\030\001\022\033\n\017sparse_distance\030\004 \001" + + "(\001B\002\030\001\022\022\n\005score\030\006 \001(\001H\000\210\001\001B\010\n\006_score\"Z\n\030" + + "RetrieveContextsResponse\022>\n\010contexts\030\001 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Rag" + + "Contexts\"\375\002\n\024AugmentPromptRequest\022P\n\020ver" + + "tex_rag_store\030\004 \001(\0132/.google.cloud.aipla" + + "tform.v1beta1.VertexRagStoreB\003\340A\001H\000\0229\n\006p" + + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" + + "s.com/Location\022?\n\010contents\030\002 \003(\0132(.googl" + + "e.cloud.aiplatform.v1beta1.ContentB\003\340A\001\022" + + "O\n\005model\030\003 \001(\0132;.google.cloud.aiplatform" + + ".v1beta1.AugmentPromptRequest.ModelB\003\340A\001" + + "\0327\n\005Model\022\022\n\005model\030\001 \001(\tB\003\340A\001\022\032\n\rmodel_v" + + "ersion\030\002 \001(\tB\003\340A\001B\r\n\013data_source\"\221\001\n\025Aug" + + "mentPromptResponse\022B\n\020augmented_prompt\030\001" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.C" + + "ontent\0224\n\005facts\030\002 \003(\0132%.google.cloud.aip" + + "latform.v1beta1.Fact\"\361\002\n\031CorroborateCont" + + "entRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022C\n\007content" + + "\030\002 \001(\0132(.google.cloud.aiplatform.v1beta1" + + ".ContentB\003\340A\001H\000\210\001\001\0229\n\005facts\030\003 \003(\0132%.goog" + + "le.cloud.aiplatform.v1beta1.FactB\003\340A\001\022^\n" + + "\nparameters\030\004 \001(\0132E.google.cloud.aiplatf" + + "orm.v1beta1.CorroborateContentRequest.Pa" + + "rametersB\003\340A\001\032-\n\nParameters\022\037\n\022citation_" + + "threshold\030\001 \001(\001B\003\340A\001B\n\n\010_content\"\216\001\n\032Cor" + + "roborateContentResponse\022 \n\023corroboration" + + "_score\030\001 \001(\002H\000\210\001\001\0226\n\006claims\030\002 \003(\0132&.goog" + + "le.cloud.aiplatform.v1beta1.ClaimB\026\n\024_co" + + "rroboration_score\"\322\001\n\004Fact\022\022\n\005query\030\001 \001(" + + "\tH\000\210\001\001\022\022\n\005title\030\002 \001(\tH\001\210\001\001\022\020\n\003uri\030\003 \001(\tH" + + "\002\210\001\001\022\024\n\007summary\030\004 \001(\tH\003\210\001\001\022 \n\017vector_dis" + + "tance\030\005 \001(\001B\002\030\001H\004\210\001\001\022\022\n\005score\030\006 \001(\001H\005\210\001\001" + + "B\010\n\006_queryB\010\n\006_titleB\006\n\004_uriB\n\n\010_summary" + + "B\022\n\020_vector_distanceB\010\n\006_score\"\213\001\n\005Claim" + + "\022\030\n\013start_index\030\001 \001(\005H\000\210\001\001\022\026\n\tend_index\030" + + "\002 \001(\005H\001\210\001\001\022\024\n\014fact_indexes\030\003 \003(\005\022\022\n\005scor" + + "e\030\004 \001(\002H\002\210\001\001B\016\n\014_start_indexB\014\n\n_end_ind" + + "exB\010\n\006_score2\223\006\n\020VertexRagService\022\334\001\n\020Re" + + "trieveContexts\0228.google.cloud.aiplatform" + + ".v1beta1.RetrieveContextsRequest\0329.googl" + + "e.cloud.aiplatform.v1beta1.RetrieveConte" + + "xtsResponse\"S\332A\014parent,query\202\323\344\223\002>\"9/v1b" + + "eta1/{parent=projects/*/locations/*}:ret" + + "rieveContexts:\001*\022\341\001\n\rAugmentPrompt\0225.goo" + + "gle.cloud.aiplatform.v1beta1.AugmentProm" + + "ptRequest\0326.google.cloud.aiplatform.v1be" + + "ta1.AugmentPromptResponse\"a\332A\035parent,mod" + + "el,vertex_rag_store\202\323\344\223\002;\"6/v1beta1/{par" + + "ent=projects/*/locations/*}:augmentPromp" + + "t:\001*\022\354\001\n\022CorroborateContent\022:.google.clo" + + "ud.aiplatform.v1beta1.CorroborateContent" + + "Request\032;.google.cloud.aiplatform.v1beta" + + "1.CorroborateContentResponse\"]\332A\024parent," + + "content,facts\202\323\344\223\002@\";/v1beta1/{parent=pr" + + "ojects/*/locations/*}:corroborateContent" + + ":\001*\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\354\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\025VertexRagServiceProtoP\001ZCcloud.googl" + + "e.com/go/aiplatform/apiv1beta1/aiplatfor" + + "mpb;aiplatformpb\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,6 +210,8 @@ 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.aiplatform.v1beta1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_RagQuery_descriptor = getDescriptor().getMessageTypes().get(0); @@ -132,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagQuery_descriptor, new java.lang.String[] { - "Text", "SimilarityTopK", "Ranking", "Query", + "Text", "SimilarityTopK", "Ranking", "RagRetrievalConfig", "Query", }); internal_static_google_cloud_aiplatform_v1beta1_RagQuery_Ranking_descriptor = internal_static_google_cloud_aiplatform_v1beta1_RagQuery_descriptor.getNestedTypes().get(0); @@ -186,7 +273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagContexts_Context_descriptor, new java.lang.String[] { - "SourceUri", "Text", "Distance", "SparseDistance", + "SourceUri", "SourceDisplayName", "Text", "Distance", "SparseDistance", "Score", }); internal_static_google_cloud_aiplatform_v1beta1_RetrieveContextsResponse_descriptor = getDescriptor().getMessageTypes().get(3); @@ -196,6 +283,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Contexts", }); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor, + new java.lang.String[] { + "VertexRagStore", "Parent", "Contents", "Model", "DataSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptRequest_Model_descriptor, + new java.lang.String[] { + "Model", "ModelVersion", + }); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AugmentPromptResponse_descriptor, + new java.lang.String[] { + "AugmentedPrompt", "Facts", + }); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor, + new java.lang.String[] { + "Parent", "Content", "Facts", "Parameters", + }); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentRequest_Parameters_descriptor, + new java.lang.String[] { + "CitationThreshold", + }); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CorroborateContentResponse_descriptor, + new java.lang.String[] { + "CorroborationScore", "Claims", + }); + internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_Fact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Fact_descriptor, + new java.lang.String[] { + "Query", "Title", "Uri", "Summary", "VectorDistance", "Score", + }); + internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_Claim_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "FactIndexes", "Score", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -210,6 +365,8 @@ 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.aiplatform.v1beta1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index f8eeae5be7a4..58b278c84086 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java @@ -1112,7 +1112,7 @@ public com.google.protobuf.Parser getParserForType() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1131,7 +1131,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public int getRagCorporaCount() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1170,7 +1170,7 @@ public java.lang.String getRagCorpora(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1288,11 +1288,16 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResource getRagReso * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return Whether the similarityTopK field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasSimilarityTopK() { return ((bitField0_ & 0x00000001) != 0); } @@ -1303,11 +1308,16 @@ public boolean hasSimilarityTopK() { * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return The similarityTopK. */ @java.lang.Override + @java.lang.Deprecated public int getSimilarityTopK() { return similarityTopK_; } @@ -1322,12 +1332,16 @@ public int getSimilarityTopK() { * threshold. * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasVectorDistanceThreshold() { return ((bitField0_ & 0x00000002) != 0); } @@ -1339,16 +1353,77 @@ public boolean hasVectorDistanceThreshold() { * threshold. * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return The vectorDistanceThreshold. */ @java.lang.Override + @java.lang.Deprecated public double getVectorDistanceThreshold() { return vectorDistanceThreshold_; } + public static final int RAG_RETRIEVAL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig ragRetrievalConfig_; + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1375,6 +1450,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ragResources_.size(); i++) { output.writeMessage(4, ragResources_.get(i)); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getRagRetrievalConfig()); + } getUnknownFields().writeTo(output); } @@ -1401,6 +1479,9 @@ public int getSerializedSize() { for (int i = 0; i < ragResources_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, ragResources_.get(i)); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRagRetrievalConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1428,6 +1509,10 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getVectorDistanceThreshold()) != java.lang.Double.doubleToLongBits(other.getVectorDistanceThreshold())) return false; } + if (hasRagRetrievalConfig() != other.hasRagRetrievalConfig()) return false; + if (hasRagRetrievalConfig()) { + if (!getRagRetrievalConfig().equals(other.getRagRetrievalConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1458,6 +1543,10 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getVectorDistanceThreshold())); } + if (hasRagRetrievalConfig()) { + hash = (37 * hash) + RAG_RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRagRetrievalConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1587,10 +1676,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.VertexRagStore.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) { + getRagResourcesFieldBuilder(); + getRagRetrievalConfigFieldBuilder(); + } } @java.lang.Override @@ -1607,6 +1706,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); similarityTopK_ = 0; vectorDistanceThreshold_ = 0D; + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } return this; } @@ -1670,6 +1774,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VertexRagStore re result.vectorDistanceThreshold_ = vectorDistanceThreshold_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ragRetrievalConfig_ = + ragRetrievalConfigBuilder_ == null + ? ragRetrievalConfig_ + : ragRetrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1762,6 +1873,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VertexRagStore othe if (other.hasVectorDistanceThreshold()) { setVectorDistanceThreshold(other.getVectorDistanceThreshold()); } + if (other.hasRagRetrievalConfig()) { + mergeRagRetrievalConfig(other.getRagRetrievalConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1821,6 +1935,13 @@ public Builder mergeFrom( } break; } // case 34 + case 50: + { + input.readMessage( + getRagRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1861,7 +1982,7 @@ private void ensureRagCorporaIsMutable() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1881,7 +2002,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1900,7 +2021,7 @@ public int getRagCorporaCount() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1920,7 +2041,7 @@ public java.lang.String getRagCorpora(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1940,7 +2061,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -1968,7 +2089,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -1995,7 +2116,7 @@ public Builder addRagCorpora(java.lang.String value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2019,7 +2140,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2042,7 +2163,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ @@ -2525,11 +2646,16 @@ public Builder removeRagResources(int index) { * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. + * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return Whether the similarityTopK field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasSimilarityTopK() { return ((bitField0_ & 0x00000004) != 0); } @@ -2540,11 +2666,16 @@ public boolean hasSimilarityTopK() { * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. + * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return The similarityTopK. */ @java.lang.Override + @java.lang.Deprecated public int getSimilarityTopK() { return similarityTopK_; } @@ -2555,11 +2686,16 @@ public int getSimilarityTopK() { * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. + * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @param value The similarityTopK to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSimilarityTopK(int value) { similarityTopK_ = value; @@ -2574,10 +2710,15 @@ public Builder setSimilarityTopK(int value) { * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. + * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSimilarityTopK() { bitField0_ = (bitField0_ & ~0x00000004); similarityTopK_ = 0; @@ -2595,12 +2736,15 @@ public Builder clearSimilarityTopK() { * * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasVectorDistanceThreshold() { return ((bitField0_ & 0x00000008) != 0); } @@ -2613,12 +2757,15 @@ public boolean hasVectorDistanceThreshold() { * * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return The vectorDistanceThreshold. */ @java.lang.Override + @java.lang.Deprecated public double getVectorDistanceThreshold() { return vectorDistanceThreshold_; } @@ -2631,12 +2778,15 @@ public double getVectorDistanceThreshold() { * * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setVectorDistanceThreshold(double value) { vectorDistanceThreshold_ = value; @@ -2653,11 +2803,14 @@ public Builder setVectorDistanceThreshold(double value) { * * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearVectorDistanceThreshold() { bitField0_ = (bitField0_ & ~0x00000008); vectorDistanceThreshold_ = 0D; @@ -2665,6 +2818,215 @@ public Builder clearVectorDistanceThreshold() { return this; } + private com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig ragRetrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder> + ragRetrievalConfigBuilder_; + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + public boolean hasRagRetrievalConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig() { + if (ragRetrievalConfigBuilder_ == null) { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } else { + return ragRetrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ragRetrievalConfig_ = value; + } else { + ragRetrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder builderForValue) { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfig_ = builderForValue.build(); + } else { + ragRetrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRagRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig value) { + if (ragRetrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ragRetrievalConfig_ != null + && ragRetrievalConfig_ + != com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance()) { + getRagRetrievalConfigBuilder().mergeFrom(value); + } else { + ragRetrievalConfig_ = value; + } + } else { + ragRetrievalConfigBuilder_.mergeFrom(value); + } + if (ragRetrievalConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRagRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + ragRetrievalConfig_ = null; + if (ragRetrievalConfigBuilder_ != null) { + ragRetrievalConfigBuilder_.dispose(); + ragRetrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder + getRagRetrievalConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRagRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder + getRagRetrievalConfigOrBuilder() { + if (ragRetrievalConfigBuilder_ != null) { + return ragRetrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return ragRetrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.getDefaultInstance() + : ragRetrievalConfig_; + } + } + /** + * + * + *
+     * Optional. The retrieval config for the Rag query.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder> + getRagRetrievalConfigFieldBuilder() { + if (ragRetrievalConfigBuilder_ == null) { + ragRetrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder>( + getRagRetrievalConfig(), getParentForChildren(), isClean()); + ragRetrievalConfig_ = null; + } + return ragRetrievalConfigBuilder_; + } + @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/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index e57909ccdc48..9102f73cef8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java @@ -36,7 +36,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -70,7 +70,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -88,7 +88,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=267 + * google/cloud/aiplatform/v1beta1/tool.proto;l=277 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -181,10 +181,15 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return Whether the similarityTopK field is set. */ + @java.lang.Deprecated boolean hasSimilarityTopK(); /** * @@ -193,10 +198,15 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * Optional. Number of top k results to return from the selected corpora. * * - * optional int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See + * google/cloud/aiplatform/v1beta1/tool.proto;l=293 * @return The similarityTopK. */ + @java.lang.Deprecated int getSimilarityTopK(); /** @@ -207,11 +217,15 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * threshold. * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return Whether the vectorDistanceThreshold field is set. */ + @java.lang.Deprecated boolean hasVectorDistanceThreshold(); /** * @@ -221,10 +235,55 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * threshold. * * - * optional double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 * @return The vectorDistanceThreshold. */ + @java.lang.Deprecated double getVectorDistanceThreshold(); + + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ragRetrievalConfig field is set. + */ + boolean hasRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ragRetrievalConfig. + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfig getRagRetrievalConfig(); + /** + * + * + *
+   * Optional. The retrieval config for the Rag query.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java new file mode 100644 index 000000000000..660d3669058b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java @@ -0,0 +1,826 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The configuration for the voice to use.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig} + */ +public final class VoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VoiceConfig) + VoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VoiceConfig.newBuilder() to construct. + private VoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VoiceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder.class); + } + + private int voiceConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object voiceConfig_; + + public enum VoiceConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREBUILT_VOICE_CONFIG(1), + VOICECONFIG_NOT_SET(0); + private final int value; + + private VoiceConfigCase(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 VoiceConfigCase valueOf(int value) { + return forNumber(value); + } + + public static VoiceConfigCase forNumber(int value) { + switch (value) { + case 1: + return PREBUILT_VOICE_CONFIG; + case 0: + return VOICECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VoiceConfigCase getVoiceConfigCase() { + return VoiceConfigCase.forNumber(voiceConfigCase_); + } + + public static final int PREBUILT_VOICE_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasPrebuiltVoiceConfig() { + return voiceConfigCase_ == 1; + } + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder + getPrebuiltVoiceConfigOrBuilder() { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.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 (voiceConfigCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (voiceConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_); + } + 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.VoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VoiceConfig other = + (com.google.cloud.aiplatform.v1beta1.VoiceConfig) obj; + + if (!getVoiceConfigCase().equals(other.getVoiceConfigCase())) return false; + switch (voiceConfigCase_) { + case 1: + if (!getPrebuiltVoiceConfig().equals(other.getPrebuiltVoiceConfig())) 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 (voiceConfigCase_) { + case 1: + hash = (37 * hash) + PREBUILT_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltVoiceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig 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.VoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig 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.VoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig 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.VoiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig 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.VoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig 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.VoiceConfig 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.VoiceConfig 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.VoiceConfig 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 configuration for the voice to use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VoiceConfig) + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.VoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (prebuiltVoiceConfigBuilder_ != null) { + prebuiltVoiceConfigBuilder_.clear(); + } + voiceConfigCase_ = 0; + voiceConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfig build() { + com.google.cloud.aiplatform.v1beta1.VoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.VoiceConfig result = + new com.google.cloud.aiplatform.v1beta1.VoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VoiceConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.VoiceConfig result) { + result.voiceConfigCase_ = voiceConfigCase_; + result.voiceConfig_ = this.voiceConfig_; + if (voiceConfigCase_ == 1 && prebuiltVoiceConfigBuilder_ != null) { + result.voiceConfig_ = prebuiltVoiceConfigBuilder_.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.VoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.VoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()) + return this; + switch (other.getVoiceConfigCase()) { + case PREBUILT_VOICE_CONFIG: + { + mergePrebuiltVoiceConfig(other.getPrebuiltVoiceConfig()); + break; + } + case VOICECONFIG_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( + getPrebuiltVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + voiceConfigCase_ = 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 voiceConfigCase_ = 0; + private java.lang.Object voiceConfig_; + + public VoiceConfigCase getVoiceConfigCase() { + return VoiceConfigCase.forNumber(voiceConfigCase_); + } + + public Builder clearVoiceConfig() { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder> + prebuiltVoiceConfigBuilder_; + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasPrebuiltVoiceConfig() { + return voiceConfigCase_ == 1; + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } else { + if (voiceConfigCase_ == 1) { + return prebuiltVoiceConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder setPrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig value) { + if (prebuiltVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + onChanged(); + } else { + prebuiltVoiceConfigBuilder_.setMessage(value); + } + voiceConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder setPrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder builderForValue) { + if (prebuiltVoiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + onChanged(); + } else { + prebuiltVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + voiceConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder mergePrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig value) { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1 + && voiceConfig_ + != com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance()) { + voiceConfig_ = + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + voiceConfig_ = value; + } + onChanged(); + } else { + if (voiceConfigCase_ == 1) { + prebuiltVoiceConfigBuilder_.mergeFrom(value); + } else { + prebuiltVoiceConfigBuilder_.setMessage(value); + } + } + voiceConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder clearPrebuiltVoiceConfig() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + } + } else { + if (voiceConfigCase_ == 1) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + } + prebuiltVoiceConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder + getPrebuiltVoiceConfigBuilder() { + return getPrebuiltVoiceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder + getPrebuiltVoiceConfigOrBuilder() { + if ((voiceConfigCase_ == 1) && (prebuiltVoiceConfigBuilder_ != null)) { + return prebuiltVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * The configuration for the prebuilt voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder> + getPrebuiltVoiceConfigFieldBuilder() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (!(voiceConfigCase_ == 1)) { + voiceConfig_ = + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); + } + prebuiltVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_, + getParentForChildren(), + isClean()); + voiceConfig_ = null; + } + voiceConfigCase_ = 1; + onChanged(); + return prebuiltVoiceConfigBuilder_; + } + + @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.VoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VoiceConfig) + private static final com.google.cloud.aiplatform.v1beta1.VoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.VoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceConfig 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.VoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java new file mode 100644 index 000000000000..4dca7e9e335b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface VoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + boolean hasPrebuiltVoiceConfig(); + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceConfig(); + /** + * + * + *
+   * The configuration for the prebuilt voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder + getPrebuiltVoiceConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.VoiceConfig.VoiceConfigCase getVoiceConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto index 0d1f673efd1d..bd53690f62fa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -57,6 +57,9 @@ enum AcceleratorType { // Nvidia H100 80Gb GPU. NVIDIA_H100_80GB = 13; + // Nvidia H100 Mega 80Gb GPU. + NVIDIA_H100_MEGA_80GB = 14; + // TPU v2. TPU_V2 = 6; 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 2cc0033acef0..67eb8d4657df 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 @@ -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/cloud/aiplatform/v1beta1/tool.proto"; import "google/protobuf/duration.proto"; @@ -145,6 +146,27 @@ message VideoMetadata { [(google.api.field_behavior) = OPTIONAL]; } +// The configuration for the prebuilt speaker to use. +message PrebuiltVoiceConfig { + // The name of the preset voice to use. + optional string voice_name = 1; +} + +// The configuration for the voice to use. +message VoiceConfig { + // The configuration for the speaker to use. + oneof voice_config { + // The configuration for the prebuilt voice to use. + PrebuiltVoiceConfig prebuilt_voice_config = 1; + } +} + +// The speech generation config. +message SpeechConfig { + // The configuration for the speaker to use. + VoiceConfig voice_config = 1; +} + // Generation config. message GenerationConfig { // The configuration for routing the request to a specific model. @@ -189,6 +211,36 @@ message GenerationConfig { } } + // The modalities of the response. + enum Modality { + // Unspecified modality. Will be processed as text. + MODALITY_UNSPECIFIED = 0; + + // Text modality. + TEXT = 1; + + // Image modality. + IMAGE = 2; + + // Audio modality. + AUDIO = 3; + } + + // Media resolution for the input media. + enum MediaResolution { + // Media resolution has not been set. + MEDIA_RESOLUTION_UNSPECIFIED = 0; + + // Media resolution set to low (64 tokens). + MEDIA_RESOLUTION_LOW = 1; + + // Media resolution set to medium (256 tokens). + MEDIA_RESOLUTION_MEDIUM = 2; + + // Media resolution set to high (zoomed reframing with 256 tokens). + MEDIA_RESOLUTION_HIGH = 3; + } + // Optional. Controls the randomness of predictions. optional float temperature = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -247,6 +299,18 @@ message GenerationConfig { // Optional. If enabled, audio timestamp will be included in the request to // the model. optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The modalities of the response. + repeated Modality response_modalities = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If specified, the media resolution specified will be used. + optional MediaResolution media_resolution = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The speech generation config. + optional SpeechConfig speech_config = 23 + [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index c78facdb7063..cb876d64c939 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -180,6 +180,20 @@ message Endpoint { // A deployment of a Model. Endpoints contain one or more DeployedModels. message DeployedModel { + // Runtime status of the deployed model. + message Status { + // Output only. The latest deployed model's status message (if any). + string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the status was last updated. + google.protobuf.Timestamp last_update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of available replicas of the deployed model. + int32 available_replica_count = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The prediction (for example, the machine) resources that the DeployedModel // uses. The user is billed for the resources (at least their minimal amount) // even if the DeployedModel receives no traffic. @@ -298,6 +312,9 @@ message DeployedModel { // Configuration for faster model deployment. FasterDeploymentConfig faster_deployment_config = 23; + // Output only. Runtime status of the deployed model. + Status status = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + // System labels to apply to Model Garden deployments. // System labels are managed by Google for internal use only. map system_labels = 28; @@ -341,14 +358,14 @@ message PredictRequestResponseLoggingConfig { BigQueryDestination bigquery_destination = 3; } -// Configuration for faster model deployment. -message FasterDeploymentConfig { - // If true, enable fast tryout feature for this deployed model. - bool fast_tryout_enabled = 2; -} - // Configurations (e.g. inference timeout) that are applied on your endpoints. message ClientConnectionConfig { // Customizable online prediction request timeout. google.protobuf.Duration inference_timeout = 1; } + +// Configuration for faster model deployment. +message FasterDeploymentConfig { + // If true, enable fast tryout feature for this deployed model. + bool fast_tryout_enabled = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto index 3c32c1290d84..c79c4bb00799 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -139,6 +139,24 @@ message EvaluateInstancesRequest { // Input for tool parameter key value match metric. ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + + // Input for trajectory exact match metric. + TrajectoryExactMatchInput trajectory_exact_match_input = 33; + + // Input for trajectory in order match metric. + TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + + // Input for trajectory match any order metric. + TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + + // Input for trajectory precision metric. + TrajectoryPrecisionInput trajectory_precision_input = 37; + + // Input for trajectory recall metric. + TrajectoryRecallInput trajectory_recall_input = 38; + + // Input for trajectory single tool use metric. + TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; } // Required. The resource name of the Location to evaluate the instances. @@ -235,6 +253,24 @@ message EvaluateInstancesResponse { // Results for tool parameter key value match metric. ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + + // Result for trajectory exact match metric. + TrajectoryExactMatchResults trajectory_exact_match_results = 31; + + // Result for trajectory in order match metric. + TrajectoryInOrderMatchResults trajectory_in_order_match_results = 32; + + // Result for trajectory any order match metric. + TrajectoryAnyOrderMatchResults trajectory_any_order_match_results = 33; + + // Result for trajectory precision metric. + TrajectoryPrecisionResults trajectory_precision_results = 35; + + // Results for trajectory recall metric. + TrajectoryRecallResults trajectory_recall_results = 36; + + // Results for trajectory single tool use metric. + TrajectorySingleToolUseResults trajectory_single_tool_use_results = 37; } } @@ -1165,7 +1201,7 @@ message ToolParameterKVMatchInput { // Spec for tool parameter key value match metric. message ToolParameterKVMatchSpec { - // Optional. Whether to use STRCIT string match on parameter values. + // Optional. Whether to use STRICT string match on parameter values. bool use_strict_string_match = 1 [(google.api.field_behavior) = OPTIONAL]; } @@ -1191,3 +1227,256 @@ message ToolParameterKVMatchMetricValue { // Output only. Tool parameter key value match score. optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Instances and metric spec for TrajectoryExactMatch metric. +message TrajectoryExactMatchInput { + // Required. Spec for TrajectoryExactMatch metric. + TrajectoryExactMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryExactMatch instance. + repeated TrajectoryExactMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryExactMatch metric - returns 1 if tool calls in the +// reference trajectory exactly match the predicted trajectory, else 0. +message TrajectoryExactMatchSpec {} + +// Spec for TrajectoryExactMatch instance. +message TrajectoryExactMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryExactMatch metric. +message TrajectoryExactMatchResults { + // Output only. TrajectoryExactMatch metric values. + repeated TrajectoryExactMatchMetricValue + trajectory_exact_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryExactMatch metric value for an instance. +message TrajectoryExactMatchMetricValue { + // Output only. TrajectoryExactMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryInOrderMatch metric. +message TrajectoryInOrderMatchInput { + // Required. Spec for TrajectoryInOrderMatch metric. + TrajectoryInOrderMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryInOrderMatch instance. + repeated TrajectoryInOrderMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryInOrderMatch metric - returns 1 if tool calls in the +// reference trajectory appear in the predicted trajectory in the same order, +// else 0. +message TrajectoryInOrderMatchSpec {} + +// Spec for TrajectoryInOrderMatch instance. +message TrajectoryInOrderMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryInOrderMatch metric. +message TrajectoryInOrderMatchResults { + // Output only. TrajectoryInOrderMatch metric values. + repeated TrajectoryInOrderMatchMetricValue + trajectory_in_order_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryInOrderMatch metric value for an instance. +message TrajectoryInOrderMatchMetricValue { + // Output only. TrajectoryInOrderMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryAnyOrderMatch metric. +message TrajectoryAnyOrderMatchInput { + // Required. Spec for TrajectoryAnyOrderMatch metric. + TrajectoryAnyOrderMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryAnyOrderMatch instance. + repeated TrajectoryAnyOrderMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryAnyOrderMatch metric - returns 1 if all tool calls in the +// reference trajectory appear in the predicted trajectory in any order, else +// 0. +message TrajectoryAnyOrderMatchSpec {} + +// Spec for TrajectoryAnyOrderMatch instance. +message TrajectoryAnyOrderMatchInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryAnyOrderMatch metric. +message TrajectoryAnyOrderMatchResults { + // Output only. TrajectoryAnyOrderMatch metric values. + repeated TrajectoryAnyOrderMatchMetricValue + trajectory_any_order_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryAnyOrderMatch metric value for an instance. +message TrajectoryAnyOrderMatchMetricValue { + // Output only. TrajectoryAnyOrderMatch score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryPrecision metric. +message TrajectoryPrecisionInput { + // Required. Spec for TrajectoryPrecision metric. + TrajectoryPrecisionSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryPrecision instance. + repeated TrajectoryPrecisionInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryPrecision metric - returns a float score based on average +// precision of individual tool calls. +message TrajectoryPrecisionSpec {} + +// Spec for TrajectoryPrecision instance. +message TrajectoryPrecisionInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryPrecision metric. +message TrajectoryPrecisionResults { + // Output only. TrajectoryPrecision metric values. + repeated TrajectoryPrecisionMetricValue trajectory_precision_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryPrecision metric value for an instance. +message TrajectoryPrecisionMetricValue { + // Output only. TrajectoryPrecision score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectoryRecall metric. +message TrajectoryRecallInput { + // Required. Spec for TrajectoryRecall metric. + TrajectoryRecallSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectoryRecall instance. + repeated TrajectoryRecallInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectoryRecall metric - returns a float score based on average +// recall of individual tool calls. +message TrajectoryRecallSpec {} + +// Spec for TrajectoryRecall instance. +message TrajectoryRecallInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Spec for reference tool call trajectory. + optional Trajectory reference_trajectory = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectoryRecall metric. +message TrajectoryRecallResults { + // Output only. TrajectoryRecall metric values. + repeated TrajectoryRecallMetricValue trajectory_recall_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectoryRecall metric value for an instance. +message TrajectoryRecallMetricValue { + // Output only. TrajectoryRecall score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Instances and metric spec for TrajectorySingleToolUse metric. +message TrajectorySingleToolUseInput { + // Required. Spec for TrajectorySingleToolUse metric. + TrajectorySingleToolUseSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated TrajectorySingleToolUse instance. + repeated TrajectorySingleToolUseInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectorySingleToolUse metric - returns 1 if tool is present in the +// predicted trajectory, else 0. +message TrajectorySingleToolUseSpec { + // Required. Spec for tool name to be checked for in the predicted trajectory. + optional string tool_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for TrajectorySingleToolUse instance. +message TrajectorySingleToolUseInstance { + // Required. Spec for predicted tool call trajectory. + optional Trajectory predicted_trajectory = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Results for TrajectorySingleToolUse metric. +message TrajectorySingleToolUseResults { + // Output only. TrajectorySingleToolUse metric values. + repeated TrajectorySingleToolUseMetricValue + trajectory_single_tool_use_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// TrajectorySingleToolUse metric value for an instance. +message TrajectorySingleToolUseMetricValue { + // Output only. TrajectorySingleToolUse score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Spec for trajectory. +message Trajectory { + // Required. Tool calls in the trajectory. + repeated ToolCall tool_calls = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool call. +message ToolCall { + // Required. Spec for tool name + optional string tool_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spec for tool input + optional string tool_input = 2 [(google.api.field_behavior) = OPTIONAL]; +} 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 165d88f65e24..621e26de4d35 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 @@ -84,6 +84,22 @@ message FeatureGroup { bool dense = 5 [(google.api.field_behavior) = OPTIONAL]; } + // Service agent type used during jobs under a FeatureGroup. + enum ServiceAgentType { + // By default, the project-level Vertex AI Service Agent is enabled. + SERVICE_AGENT_TYPE_UNSPECIFIED = 0; + + // Specifies the project-level Vertex AI Service Agent + // (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents). + SERVICE_AGENT_TYPE_PROJECT = 1; + + // Enable a FeatureGroup service account to be created by Vertex AI and + // output in the field `service_account_email`. This service account will + // be used to read from the source BigQuery table during jobs under a + // FeatureGroup. + SERVICE_AGENT_TYPE_FEATURE_GROUP = 2; + } + oneof source { // Indicates that features for this group come from BigQuery Table/View. // By default treats the source as a sparse time series source. The BigQuery @@ -123,4 +139,19 @@ message FeatureGroup { // Optional. Description of the FeatureGroup. string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service agent type used during jobs under a FeatureGroup. By + // default, the Vertex AI Service Agent is used. When using an IAM Policy to + // isolate this FeatureGroup within a project, a separate service account + // should be provisioned by setting this field to + // `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service + // account to access the BigQuery source table. + ServiceAgentType service_agent_type = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A Service Account unique to this FeatureGroup. The role + // bigquery.dataViewer should be granted to this service account to allow + // Vertex AI Feature Store to access source data while running jobs under this + // FeatureGroup. + string service_account_email = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto index e96c1cd89b45..40ccec3a10ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto @@ -193,8 +193,8 @@ message JiraSource { // Required. The SecretManager secret version resource name (e.g. // projects/{project}/secrets/{secret}/versions/{version}) storing the - // Jira API key - // (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/). + // Jira API key. See [Manage API tokens for your Atlassian + // account](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/). ApiAuth.ApiKeyConfig api_key_config = 7 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index 3951f0e39149..8913a91cd85e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -104,6 +104,14 @@ message DedicatedResources { // number of GPUs per replica in the selected machine type). int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Optional. Number of required available replicas for the deployment to + // succeed. This field is only needed when partial model deployment/mutation + // is desired. If set, the model deploy/mutate operation will succeed once + // available_replica_count reaches required_replica_count, and the rest of + // the replicas will be retried. If not set, the default + // required_replica_count will be min_replica_count. + int32 required_replica_count = 9 [(google.api.field_behavior) = OPTIONAL]; + // Immutable. The metric specifications that overrides a resource // utilization metric (CPU utilization, accelerator's duty cycle, and so on) // target value (default to 60 if not set). At most one entry is allowed per diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 1a6e13742145..66ed15ec5176 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -130,6 +130,9 @@ message ListPublisherModelsRequest { // the publisher models' text information should be written in. If not set, by // default English (en). string language_code = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List all publisher model versions if the flag is set to true. + bool list_all_versions = 8 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto index 9ed515260c70..522b7a9b7c7c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto @@ -20,6 +20,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; +import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/network_spec.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -70,6 +72,21 @@ message NotebookExecutionJob { bytes content = 1; } + // Compute configuration to use for an execution job. + message CustomEnvironmentSpec { + // The specification of a single machine for the execution job. + MachineSpec machine_spec = 1; + + // The specification of a persistent disk to attach for the execution job. + PersistentDiskSpec persistent_disk_spec = 2; + + // The network configuration to use for the execution job. + NetworkSpec network_spec = 3; + } + + // Configuration for a Workbench Instances-based environment. + message WorkbenchRuntime {} + // The input notebook. oneof notebook_source { // The Dataform Repository pointing to a single file notebook repository. @@ -90,6 +107,9 @@ message NotebookExecutionJob { [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" }]; + + // The custom compute configuration for an execution job. + CustomEnvironmentSpec custom_environment_spec = 16; } // The location to store the notebook execution result. @@ -108,6 +128,13 @@ message NotebookExecutionJob { string service_account = 18; } + // Runtime environment for the notebook execution job. If unspecified, the + // default runtime of Colab is used. + oneof runtime_environment { + // The Workbench runtime configuration to use for the notebook execution. + WorkbenchRuntime workbench_runtime = 23; + } + // Output only. The resource name of this NotebookExecutionJob. Format: // `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -157,8 +184,13 @@ message NotebookExecutionJob { // and are immutable. map labels = 19; + // The name of the kernel to use during notebook execution. If unset, the + // default kernel is used. + string kernel_name = 20; + // Customer-managed encryption key spec for the notebook execution job. // This field is auto-populated if the - // [NotebookService.NotebookRuntimeTemplate][] has an encryption spec. + // [NotebookRuntimeTemplate][google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate] + // has an encryption spec. EncryptionSpec encryption_spec = 22; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto index 4fa15aa9a82d..3abe861d9130 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto @@ -51,7 +51,8 @@ message ReasoningEngineSpec { // Required. User provided package spec of the ReasoningEngine. PackageSpec package_spec = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Declarations for object class methods. + // Optional. Declarations for object class methods in OpenAPI specification + // format. repeated google.protobuf.Struct class_methods = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto index 49364b9cf722..a68061ae2155 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; @@ -44,6 +45,15 @@ service ReasoningEngineExecutionService { body: "*" }; } + + // Streams queries using a reasoning engine. + rpc StreamQueryReasoningEngine(StreamQueryReasoningEngineRequest) + returns (stream google.api.HttpBody) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/reasoningEngines/*}:streamQuery" + body: "*" + }; + } } // Request message for [ReasoningEngineExecutionService.Query][]. @@ -61,6 +71,10 @@ message QueryReasoningEngineRequest { // Optional. Input content provided by users in JSON object format. Examples // include text query, function calling parameters, media bytes, etc. google.protobuf.Struct input = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Class method to be used for the query. + // It is optional and defaults to "query" if unspecified. + string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for [ReasoningEngineExecutionService.Query][] @@ -68,3 +82,24 @@ message QueryReasoningEngineResponse { // Response provided by users in JSON object format. google.protobuf.Value output = 1; } + +// Request message for [ReasoningEngineExecutionService.StreamQuery][]. +message StreamQueryReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to use. + // Format: + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + } + ]; + + // Optional. Input content provided by users in JSON object format. Examples + // include text query, function calling parameters, media bytes, etc. + google.protobuf.Struct input = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Class method to be used for the stream query. + // It is optional and defaults to "stream_query" if unspecified. + string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto index c6726c875713..620b0e656899 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto @@ -143,9 +143,9 @@ message UpdateReasoningEngineRequest { // Required. The ReasoningEngine which replaces the resource on the server. ReasoningEngine reasoning_engine = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Mask specifying which fields to update. + // Optional. Mask specifying which fields to update. google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; } // Details of 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 11ec15fc47ab..bc47db68d8f8 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 @@ -37,6 +37,10 @@ option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // one type of Tool (e.g FunctionDeclaration, Retrieval or // GoogleSearchRetrieval). message Tool { + // GoogleSearch tool type. + // Tool to support Google Search in Model. Powered by Google. + message GoogleSearch {} + // Tool that executes code generated by the model, and automatically returns // the result to the model. // @@ -47,8 +51,10 @@ message Tool { // 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] + // by populating + // [FunctionCall][google.cloud.aiplatform.v1beta1.Part.function_call] in the + // response. User should provide a + // [FunctionResponse][google.cloud.aiplatform.v1beta1.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 128 function declarations can be provided. @@ -61,6 +67,10 @@ message Tool { // model for generation. Retrieval retrieval = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. GoogleSearch tool type. + // Tool to support Google Search in Model. Powered by Google. + GoogleSearch google_search = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. GoogleSearchRetrieval tool type. // Specialized retrieval tool that is powered by Google search. GoogleSearchRetrieval google_search_retrieval = 3 @@ -112,9 +122,9 @@ message ToolUseExample { // Structured representation of a function declaration as defined by the // [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included -// in this declaration are the function name and parameters. This -// FunctionDeclaration is a representation of a block of code that can be used -// as a `Tool` by the model and executed by the client. +// in this declaration are the function name, description, parameters and +// response type. This FunctionDeclaration is a representation of a block of +// code that can be used as a `Tool` by the model and executed by the client. message FunctionDeclaration { // Required. The name of the function to call. // Must start with a letter or an underscore. @@ -281,11 +291,16 @@ message VertexRagStore { [(google.api.field_behavior) = OPTIONAL]; // Optional. Number of top k results to return from the selected corpora. - optional int32 similarity_top_k = 2 [(google.api.field_behavior) = OPTIONAL]; + optional int32 similarity_top_k = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Only return results with vector distance smaller than the // threshold. optional double vector_distance_threshold = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The retrieval config for the Rag query. + RagRetrievalConfig rag_retrieval_config = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -361,3 +376,73 @@ message FunctionCallingConfig { repeated string allowed_function_names = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Specifies the context retrieval config. +message RagRetrievalConfig { + // Config for Hybrid Search. + message HybridSearch { + // Optional. Alpha value controls the weight between dense and sparse vector + // search results. The range is [0, 1], while 0 means sparse vector search + // only and 1 means dense vector search only. The default value is 0.5 which + // balances sparse and dense vector search equally. + optional float alpha = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for filters. + message Filter { + // Filter contexts retrieved from the vector DB based on either vector + // distance or vector similarity. + oneof vector_db_threshold { + // Optional. Only returns contexts with vector distance smaller than the + // threshold. + double vector_distance_threshold = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only returns contexts with vector similarity larger than the + // threshold. + double vector_similarity_threshold = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. String for metadata filtering. + string metadata_filter = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for ranking and reranking. + message Ranking { + // Config for Rank Service. + message RankService { + // Optional. The model name of the rank service. + // Format: `semantic-ranker-512@latest` + optional string model_name = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for LlmRanker. + message LlmRanker { + // Optional. The model name used for ranking. + // Format: `gemini-1.5-pro` + optional string model_name = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config options for ranking. Currently only Rank Service is supported. + oneof ranking_config { + // Optional. Config for Rank Service. + RankService rank_service = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for LlmRanker. + LlmRanker llm_ranker = 3 [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Optional. The number of contexts to retrieve. + int32 top_k = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for Hybrid Search. + HybridSearch hybrid_search = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for filters. + Filter filter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for ranking and reranking. + Ranking ranking = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto index cc23d8cbf0d9..984f4bead0c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto @@ -180,6 +180,12 @@ message RagVectorDbConfig { // Authentication config for the chosen Vector DB. ApiAuth api_auth = 5; + + // Optional. Immutable. The embedding model config of the Vector DB. + RagEmbeddingModelConfig rag_embedding_model_config = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; } // RagFile status. @@ -204,6 +210,15 @@ message FileStatus { string error_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Config for the Vertex AI Search. +message VertexAiSearchConfig { + // Vertex AI Search Serving Config resource full name. For example, + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}` + // or + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`. + string serving_config = 1; +} + // RagCorpus status. message CorpusStatus { // RagCorpus life state. @@ -252,12 +267,14 @@ message RagCorpus { // Optional. Immutable. The embedding model config of the RagCorpus. RagEmbeddingModelConfig rag_embedding_model_config = 6 [ + deprecated = true, (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = IMMUTABLE ]; // Optional. Immutable. The Vector DB config of the RagCorpus. RagVectorDbConfig rag_vector_db_config = 7 [ + deprecated = true, (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = IMMUTABLE ]; @@ -272,6 +289,22 @@ message RagCorpus { // Output only. RagCorpus state. CorpusStatus corpus_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The backend config of the RagCorpus. + // It can be data store and/or retrieval engine. + oneof backend_config { + // Optional. Immutable. The config for the Vector DBs. + RagVectorDbConfig vector_db_config = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The config for the Vertex AI Search. + VertexAiSearchConfig vertex_ai_search_config = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + } } // A RagFile contains user data for chunking, embedding and indexing. @@ -353,23 +386,101 @@ message RagFile { // Specifies the size and overlap of chunks for RagFiles. message RagFileChunkingConfig { + // Specifies the fixed length chunking config. + message FixedLengthChunking { + // The size of the chunks. + int32 chunk_size = 1; + + // The overlap between chunks. + int32 chunk_overlap = 2; + } + + // Specifies the chunking config for RagFiles. + oneof chunking_config { + // Specifies the fixed length chunking config. + FixedLengthChunking fixed_length_chunking = 3; + } + // The size of the chunks. - int32 chunk_size = 1; + int32 chunk_size = 1 [deprecated = true]; // The overlap between chunks. - int32 chunk_overlap = 2; + int32 chunk_overlap = 2 [deprecated = true]; +} + +// Specifies the transformation config for RagFiles. +message RagFileTransformationConfig { + // Specifies the chunking config for RagFiles. + RagFileChunkingConfig rag_file_chunking_config = 1; } // Specifies the parsing config for RagFiles. message RagFileParsingConfig { + // Specifies the advanced parsing for RagFiles. + message AdvancedParser { + // Whether to use advanced PDF parsing. + bool use_advanced_pdf_parsing = 1; + } + + // Document AI Layout Parser config. + message LayoutParser { + // The full resource name of a Document AI processor or processor version. + // The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the + // `additional_config.parse_as_scanned_pdf` field must be false. + // Format: + // * `projects/{project_id}/locations/{location}/processors/{processor_id}` + // * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}` + string processor_name = 1; + + // The maximum number of requests the job is allowed to make to the Document + // AI processor per minute. Consult + // https://cloud.google.com/document-ai/quotas and the Quota page for your + // project to set an appropriate value here. If unspecified, a default value + // of 120 QPM would be used. + int32 max_parsing_requests_per_min = 2; + } + + // Specifies the advanced parsing for RagFiles. + message LlmParser { + // The name of a LLM model used for parsing. + // Format: `gemini-1.5-pro-002` + string model_name = 1; + + // The maximum number of requests the job is allowed to make to the + // LLM model per minute. Consult + // https://cloud.google.com/vertex-ai/generative-ai/docs/quotas + // and your document size to set an appropriate value here. If unspecified, + // a default value of 5000 QPM would be used. + int32 max_parsing_requests_per_min = 2; + + // The prompt to use for parsing. If not specified, a default prompt will + // be used. + string custom_parsing_prompt = 3; + } + + // The parser to use for RagFiles. + oneof parser { + // The Advanced Parser to use for RagFiles. + AdvancedParser advanced_parser = 3; + + // The Layout Parser to use for RagFiles. + LayoutParser layout_parser = 4; + + // The LLM Parser to use for RagFiles. + LlmParser llm_parser = 5; + } + // Whether to use advanced PDF parsing. - bool use_advanced_pdf_parsing = 2; + bool use_advanced_pdf_parsing = 2 [deprecated = true]; } // Config for uploading RagFile. message UploadRagFileConfig { // Specifies the size and overlap of chunks after uploading RagFile. - RagFileChunkingConfig rag_file_chunking_config = 1; + RagFileChunkingConfig rag_file_chunking_config = 1 [deprecated = true]; + + // Specifies the transformation config for RagFiles. + RagFileTransformationConfig rag_file_transformation_config = 3; } // Config for importing RagFiles. @@ -397,24 +508,32 @@ message ImportRagFilesConfig { } // Optional. If provided, all partial failures are written to the sink. + // Deprecated. Prefer to use the `import_result_sink`. oneof partial_failure_sink { // The Cloud Storage path to write partial failures to. - GcsDestination partial_failure_gcs_sink = 11; + // Deprecated. Prefer to use `import_result_gcs_sink`. + GcsDestination partial_failure_gcs_sink = 11 [deprecated = true]; // The BigQuery destination to write partial failures to. It should be a // bigquery table resource name (e.g. - // "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not - // exist, it will be created. If the table does not exist, it will be - // created with the expected schema. If the table exists, the schema will be - // validated and data will be added to this existing table. - BigQueryDestination partial_failure_bigquery_sink = 12; + // "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the + // table does not exist, it will be created with the expected schema. If the + // table exists, the schema will be validated and data will be added to this + // existing table. + // Deprecated. Prefer to use `import_result_bq_sink`. + BigQueryDestination partial_failure_bigquery_sink = 12 [deprecated = true]; } // Specifies the size and overlap of chunks after importing RagFiles. - RagFileChunkingConfig rag_file_chunking_config = 4; + RagFileChunkingConfig rag_file_chunking_config = 4 [deprecated = true]; - // Specifies the parsing config for RagFiles. - RagFileParsingConfig rag_file_parsing_config = 8; + // Specifies the transformation config for RagFiles. + RagFileTransformationConfig rag_file_transformation_config = 16; + + // Optional. Specifies the parsing config for RagFiles. + // RAG will use the default parser if this field is not set. + RagFileParsingConfig rag_file_parsing_config = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The max number of queries per minute that this job is allowed to // make to the embedding model specified on the corpus. This value is specific diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto index e83db577d0cd..8694ec2a7065 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto @@ -20,6 +20,8 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/content.proto"; +import "google/cloud/aiplatform/v1beta1/tool.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -44,6 +46,28 @@ service VertexRagService { }; option (google.api.method_signature) = "parent,query"; } + + // Given an input prompt, it returns augmented prompt from vertex rag store + // to guide LLM towards generating grounded responses. + rpc AugmentPrompt(AugmentPromptRequest) returns (AugmentPromptResponse) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}:augmentPrompt" + body: "*" + }; + option (google.api.method_signature) = "parent,model,vertex_rag_store"; + } + + // Given an input text, it returns a score that evaluates the factuality of + // the text. It also extracts and returns claims from the text and provides + // supporting facts. + rpc CorroborateContent(CorroborateContentRequest) + returns (CorroborateContentResponse) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}:corroborateContent" + body: "*" + }; + option (google.api.method_signature) = "parent,content,facts"; + } } // A query to retrieve relevant contexts. @@ -65,10 +89,16 @@ message RagQuery { } // Optional. The number of contexts to retrieve. - int32 similarity_top_k = 2 [(google.api.field_behavior) = OPTIONAL]; + int32 similarity_top_k = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Configurations for hybrid search results ranking. - Ranking ranking = 4 [(google.api.field_behavior) = OPTIONAL]; + Ranking ranking = 4 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The retrieval config for the query. + RagRetrievalConfig rag_retrieval_config = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -108,7 +138,7 @@ message RetrieveContextsRequest { // Optional. Only return contexts with vector distance smaller than the // threshold. optional double vector_distance_threshold = 2 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Data Source to retrieve contexts. @@ -136,21 +166,34 @@ message RetrieveContextsRequest { message RagContexts { // A context of the query. message Context { - // For vertex RagStore, if the file is imported from Cloud Storage or Google - // Drive, source_uri will be original file URI in Cloud Storage or Google - // Drive; if file is uploaded, source_uri will be file display name. + // If the file is imported from Cloud Storage or Google Drive, source_uri + // will be original file URI in Cloud Storage or Google Drive; if file is + // uploaded, source_uri will be file display name. string source_uri = 1; + // The file display name. + string source_display_name = 5; + // The text chunk. string text = 2; // The distance between the query dense embedding vector and the context // text vector. - double distance = 3; + double distance = 3 [deprecated = true]; // The distance between the query sparse embedding vector and the context // text vector. - double sparse_distance = 4; + double sparse_distance = 4 [deprecated = true]; + + // According to the underlying Vector DB and the selected metric type, the + // score can be either the distance or the similarity between the query and + // the context and its range depends on the metric type. + // + // For example, if the metric type is COSINE_DISTANCE, it represents the + // distance between the query and the context. The larger the distance, the + // less relevant the context is to the query. The range is [0, 2], while 0 + // means the most relevant and 2 means the least relevant. + optional double score = 6; } // All its contexts. @@ -163,3 +206,136 @@ message RetrieveContextsResponse { // The contexts of the query. RagContexts contexts = 1; } + +// Request message for AugmentPrompt. +message AugmentPromptRequest { + // Metadata of the backend deployed model. + message Model { + // Optional. The model that the user will send the augmented prompt for + // content generation. + string model = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The model version of the backend deployed model. + string model_version = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The data source for retrieving contexts. + oneof data_source { + // Optional. Retrieves contexts from the Vertex RagStore. + VertexRagStore vertex_rag_store = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the Location from which to augment prompt. + // The users must have permission to make a call in the project. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Input content to augment, only text format is supported for now. + repeated Content contents = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata of the backend deployed model. + Model model = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for AugmentPrompt. +message AugmentPromptResponse { + // Augmented prompt, only text format is supported for now. + repeated Content augmented_prompt = 1; + + // Retrieved facts from RAG data sources. + repeated Fact facts = 2; +} + +// Request message for CorroborateContent. +message CorroborateContentRequest { + // Parameters that can be overrided per request. + message Parameters { + // Optional. Only return claims with citation score larger than the + // threshold. + double citation_threshold = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the Location from which to corroborate text. + // The users must have permission to make a call in the project. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Input content to corroborate, only text format is supported for + // now. + optional Content content = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Facts used to generate the text can also be used to corroborate + // the text. + repeated Fact facts = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Parameters that can be set to override default settings per + // request. + Parameters parameters = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for CorroborateContent. +message CorroborateContentResponse { + // Confidence score of corroborating content. Value is [0,1] with 1 is the + // most confidence. + optional float corroboration_score = 1; + + // Claims that are extracted from the input content and facts that support the + // claims. + repeated Claim claims = 2; +} + +// The fact used in grounding. +message Fact { + // Query that is used to retrieve this fact. + optional string query = 1; + + // If present, it refers to the title of this fact. + optional string title = 2; + + // If present, this uri links to the source of the fact. + optional string uri = 3; + + // If present, the summary/snippet of the fact. + optional string summary = 4; + + // If present, the distance between the query vector and this fact vector. + optional double vector_distance = 5 [deprecated = true]; + + // If present, according to the underlying Vector DB and the selected metric + // type, the score can be either the distance or the similarity between the + // query and the fact and its range depends on the metric type. + // + // For example, if the metric type is COSINE_DISTANCE, it represents the + // distance between the query and the fact. The larger the distance, the less + // relevant the fact is to the query. The range is [0, 2], while 0 means the + // most relevant and 2 means the least relevant. + optional double score = 6; +} + +// Claim that is extracted from the input text and facts that support it. +message Claim { + // Index in the input text where the claim starts (inclusive). + optional int32 start_index = 1; + + // Index in the input text where the claim ends (exclusive). + optional int32 end_index = 2; + + // Indexes of the facts supporting this claim. + repeated int32 fact_indexes = 3; + + // Confidence score of this corroboration. + optional float score = 4; +} diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.java new file mode 100644 index 000000000000..c15716e345a6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunning.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateEndpointLongRunning { + + public static void main(String[] args) throws Exception { + asyncUpdateEndpointLongRunning(); + } + + public static void asyncUpdateEndpointLongRunning() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + ApiFuture future = + endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.java new file mode 100644 index 000000000000..128bf973648a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/AsyncUpdateEndpointLongRunningLRO.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; +import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata; + +public class AsyncUpdateEndpointLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateEndpointLongRunningLRO(); + } + + public static void asyncUpdateEndpointLongRunningLRO() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + OperationFuture future = + endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request); + // Do something. + Endpoint response = future.get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.java new file mode 100644 index 000000000000..6561cf45b1b1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunning.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_sync] +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; +import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest; + +public class SyncUpdateEndpointLongRunning { + + public static void main(String[] args) throws Exception { + syncUpdateEndpointLongRunning(); + } + + public static void syncUpdateEndpointLongRunning() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + UpdateEndpointLongRunningRequest request = + UpdateEndpointLongRunningRequest.newBuilder() + .setEndpoint(Endpoint.newBuilder().build()) + .build(); + Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.java new file mode 100644 index 000000000000..0fd97e239388 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/endpointservice/updateendpointlongrunning/SyncUpdateEndpointLongRunningEndpoint.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_Endpoint_sync] +import com.google.cloud.aiplatform.v1.Endpoint; +import com.google.cloud.aiplatform.v1.EndpointServiceClient; + +public class SyncUpdateEndpointLongRunningEndpoint { + + public static void main(String[] args) throws Exception { + syncUpdateEndpointLongRunningEndpoint(); + } + + public static void syncUpdateEndpointLongRunningEndpoint() 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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) { + Endpoint endpoint = Endpoint.newBuilder().build(); + Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get(); + } + } +} +// [END aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_Endpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/createragcorpus/SyncCreateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/createragcorpus/SyncCreateRagCorpus.java new file mode 100644 index 000000000000..38b53ce7f184 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/createragcorpus/SyncCreateRagCorpus.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.stub.samples; + +// [START aiplatform_v1_generated_VertexRagDataServiceStubSettings_CreateRagCorpus_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.stub.VertexRagDataServiceStubSettings; +import java.time.Duration; + +public class SyncCreateRagCorpus { + + public static void main(String[] args) throws Exception { + syncCreateRagCorpus(); + } + + public static void syncCreateRagCorpus() 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 + VertexRagDataServiceStubSettings.Builder vertexRagDataServiceSettingsBuilder = + VertexRagDataServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + vertexRagDataServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_VertexRagDataServiceStubSettings_CreateRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/getragcorpus/SyncGetRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/getragcorpus/SyncGetRagCorpus.java new file mode 100644 index 000000000000..598d367d13bf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragdataservicestubsettings/getragcorpus/SyncGetRagCorpus.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.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_VertexRagDataServiceStubSettings_GetRagCorpus_sync] +import com.google.cloud.aiplatform.v1.stub.VertexRagDataServiceStubSettings; +import java.time.Duration; + +public class SyncGetRagCorpus { + + public static void main(String[] args) throws Exception { + syncGetRagCorpus(); + } + + public static void syncGetRagCorpus() 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 + VertexRagDataServiceStubSettings.Builder vertexRagDataServiceSettingsBuilder = + VertexRagDataServiceStubSettings.newBuilder(); + vertexRagDataServiceSettingsBuilder + .getRagCorpusSettings() + .setRetrySettings( + vertexRagDataServiceSettingsBuilder + .getRagCorpusSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + VertexRagDataServiceStubSettings vertexRagDataServiceSettings = + vertexRagDataServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_VertexRagDataServiceStubSettings_GetRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/retrievecontexts/SyncRetrieveContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/retrievecontexts/SyncRetrieveContexts.java new file mode 100644 index 000000000000..47f2169b4a5a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/retrievecontexts/SyncRetrieveContexts.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.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_VertexRagServiceStubSettings_RetrieveContexts_sync] +import com.google.cloud.aiplatform.v1.stub.VertexRagServiceStubSettings; +import java.time.Duration; + +public class SyncRetrieveContexts { + + public static void main(String[] args) throws Exception { + syncRetrieveContexts(); + } + + public static void syncRetrieveContexts() 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 + VertexRagServiceStubSettings.Builder vertexRagServiceSettingsBuilder = + VertexRagServiceStubSettings.newBuilder(); + vertexRagServiceSettingsBuilder + .retrieveContextsSettings() + .setRetrySettings( + vertexRagServiceSettingsBuilder + .retrieveContextsSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + VertexRagServiceStubSettings vertexRagServiceSettings = vertexRagServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_VertexRagServiceStubSettings_RetrieveContexts_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..0432804415a9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceSettings; +import com.google.cloud.aiplatform.v1.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 + VertexRagDataServiceSettings vertexRagDataServiceSettings = + VertexRagDataServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create(vertexRagDataServiceSettings); + } +} +// [END aiplatform_v1_generated_VertexRagDataService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..edb73c84b7f8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceSettings; +import com.google.cloud.aiplatform.v1.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 + VertexRagDataServiceSettings vertexRagDataServiceSettings = + VertexRagDataServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create(vertexRagDataServiceSettings); + } +} +// [END aiplatform_v1_generated_VertexRagDataService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpus.java new file mode 100644 index 000000000000..e784c81dcbf0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpus.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_VertexRagDataService_CreateRagCorpus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateRagCorpus { + + public static void main(String[] args) throws Exception { + asyncCreateRagCorpus(); + } + + public static void asyncCreateRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + CreateRagCorpusRequest request = + CreateRagCorpusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRagCorpus(RagCorpus.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.createRagCorpusCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpusLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpusLRO.java new file mode 100644 index 000000000000..5b51c7949ef3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/AsyncCreateRagCorpusLRO.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_VertexRagDataService_CreateRagCorpus_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.CreateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncCreateRagCorpusLRO { + + public static void main(String[] args) throws Exception { + asyncCreateRagCorpusLRO(); + } + + public static void asyncCreateRagCorpusLRO() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + CreateRagCorpusRequest request = + CreateRagCorpusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRagCorpus(RagCorpus.newBuilder().build()) + .build(); + OperationFuture future = + vertexRagDataServiceClient.createRagCorpusOperationCallable().futureCall(request); + // Do something. + RagCorpus response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpus.java new file mode 100644 index 000000000000..b60172c6a14c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_sync] +import com.google.cloud.aiplatform.v1.CreateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncCreateRagCorpus { + + public static void main(String[] args) throws Exception { + syncCreateRagCorpus(); + } + + public static void syncCreateRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + CreateRagCorpusRequest request = + CreateRagCorpusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRagCorpus(RagCorpus.newBuilder().build()) + .build(); + RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusLocationnameRagcorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusLocationnameRagcorpus.java new file mode 100644 index 000000000000..22ee613a2e2a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusLocationnameRagcorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_LocationnameRagcorpus_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncCreateRagCorpusLocationnameRagcorpus { + + public static void main(String[] args) throws Exception { + syncCreateRagCorpusLocationnameRagcorpus(); + } + + public static void syncCreateRagCorpusLocationnameRagcorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(parent, ragCorpus).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_LocationnameRagcorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusStringRagcorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusStringRagcorpus.java new file mode 100644 index 000000000000..cf783f1bf2ee --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/createragcorpus/SyncCreateRagCorpusStringRagcorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_StringRagcorpus_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncCreateRagCorpusStringRagcorpus { + + public static void main(String[] args) throws Exception { + syncCreateRagCorpusStringRagcorpus(); + } + + public static void syncCreateRagCorpusStringRagcorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + RagCorpus response = vertexRagDataServiceClient.createRagCorpusAsync(parent, ragCorpus).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_StringRagcorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java new file mode 100644 index 000000000000..65354873189a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.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_VertexRagDataService_DeleteRagCorpus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteRagCorpus { + + public static void main(String[] args) throws Exception { + asyncDeleteRagCorpus(); + } + + public static void asyncDeleteRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagCorpusRequest request = + DeleteRagCorpusRequest.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setForce(true) + .build(); + ApiFuture future = + vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java new file mode 100644 index 000000000000..9798b6ff0a1a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.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_VertexRagDataService_DeleteRagCorpus_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteRagCorpusLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteRagCorpusLRO(); + } + + public static void asyncDeleteRagCorpusLRO() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagCorpusRequest request = + DeleteRagCorpusRequest.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setForce(true) + .build(); + OperationFuture future = + vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java new file mode 100644 index 000000000000..6f0d942710d7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_sync] +import com.google.cloud.aiplatform.v1.DeleteRagCorpusRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagCorpus { + + public static void main(String[] args) throws Exception { + syncDeleteRagCorpus(); + } + + public static void syncDeleteRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagCorpusRequest request = + DeleteRagCorpusRequest.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setForce(true) + .build(); + vertexRagDataServiceClient.deleteRagCorpusAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusRagcorpusname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusRagcorpusname.java new file mode 100644 index 000000000000..2390c20e1b69 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusRagcorpusname.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_Ragcorpusname_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagCorpusRagcorpusname { + + public static void main(String[] args) throws Exception { + syncDeleteRagCorpusRagcorpusname(); + } + + public static void syncDeleteRagCorpusRagcorpusname() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + vertexRagDataServiceClient.deleteRagCorpusAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_Ragcorpusname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusString.java new file mode 100644 index 000000000000..2c15f469a039 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpusString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_String_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagCorpusString { + + public static void main(String[] args) throws Exception { + syncDeleteRagCorpusString(); + } + + public static void syncDeleteRagCorpusString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString(); + vertexRagDataServiceClient.deleteRagCorpusAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFile.java new file mode 100644 index 000000000000..b5e7af3d7625 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFile.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_VertexRagDataService_DeleteRagFile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteRagFile { + + public static void main(String[] args) throws Exception { + asyncDeleteRagFile(); + } + + public static void asyncDeleteRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagFileRequest request = + DeleteRagFileRequest.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]") + .toString()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.deleteRagFileCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFileLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFileLRO.java new file mode 100644 index 000000000000..be56badfe742 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/AsyncDeleteRagFileLRO.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_VertexRagDataService_DeleteRagFile_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteRagFileLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteRagFileLRO(); + } + + public static void asyncDeleteRagFileLRO() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagFileRequest request = + DeleteRagFileRequest.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]") + .toString()) + .build(); + OperationFuture future = + vertexRagDataServiceClient.deleteRagFileOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFile.java new file mode 100644 index 000000000000..ad59833437cf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFile.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_VertexRagDataService_DeleteRagFile_sync] +import com.google.cloud.aiplatform.v1.DeleteRagFileRequest; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagFile { + + public static void main(String[] args) throws Exception { + syncDeleteRagFile(); + } + + public static void syncDeleteRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + DeleteRagFileRequest request = + DeleteRagFileRequest.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]") + .toString()) + .build(); + vertexRagDataServiceClient.deleteRagFileAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileRagfilename.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileRagfilename.java new file mode 100644 index 000000000000..0f06f0e91fb4 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileRagfilename.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_Ragfilename_sync] +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagFileRagfilename { + + public static void main(String[] args) throws Exception { + syncDeleteRagFileRagfilename(); + } + + public static void syncDeleteRagFileRagfilename() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + vertexRagDataServiceClient.deleteRagFileAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_Ragfilename_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileString.java new file mode 100644 index 000000000000..912ef59dd948 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/deleteragfile/SyncDeleteRagFileString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_String_sync] +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRagFileString { + + public static void main(String[] args) throws Exception { + syncDeleteRagFileString(); + } + + public static void syncDeleteRagFileString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String name = + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString(); + vertexRagDataServiceClient.deleteRagFileAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..a4719c274763 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/AsyncGetIamPolicy.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..ef026c96df22 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getiampolicy/SyncGetIamPolicy.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_VertexRagDataService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = vertexRagDataServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..8143d60904ef --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/AsyncGetLocation.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + vertexRagDataServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..b4edcabd6080 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getlocation/SyncGetLocation.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetLocation_sync] +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = vertexRagDataServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/AsyncGetRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/AsyncGetRagCorpus.java new file mode 100644 index 000000000000..34a52ddb3c0e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/AsyncGetRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GetRagCorpusRequest; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncGetRagCorpus { + + public static void main(String[] args) throws Exception { + asyncGetRagCorpus(); + } + + public static void asyncGetRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetRagCorpusRequest request = + GetRagCorpusRequest.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.getRagCorpusCallable().futureCall(request); + // Do something. + RagCorpus response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpus.java new file mode 100644 index 000000000000..6c475986f87b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_sync] +import com.google.cloud.aiplatform.v1.GetRagCorpusRequest; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagCorpus { + + public static void main(String[] args) throws Exception { + syncGetRagCorpus(); + } + + public static void syncGetRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetRagCorpusRequest request = + GetRagCorpusRequest.newBuilder() + .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .build(); + RagCorpus response = vertexRagDataServiceClient.getRagCorpus(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusRagcorpusname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusRagcorpusname.java new file mode 100644 index 000000000000..3a17617309a9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusRagcorpusname.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_Ragcorpusname_sync] +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagCorpusRagcorpusname { + + public static void main(String[] args) throws Exception { + syncGetRagCorpusRagcorpusname(); + } + + public static void syncGetRagCorpusRagcorpusname() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpusName name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_Ragcorpusname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusString.java new file mode 100644 index 000000000000..40fe42f3fb33 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragcorpus/SyncGetRagCorpusString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_String_sync] +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagCorpusString { + + public static void main(String[] args) throws Exception { + syncGetRagCorpusString(); + } + + public static void syncGetRagCorpusString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String name = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString(); + RagCorpus response = vertexRagDataServiceClient.getRagCorpus(name); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/AsyncGetRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/AsyncGetRagFile.java new file mode 100644 index 000000000000..a26ed8569e66 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/AsyncGetRagFile.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_VertexRagDataService_GetRagFile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GetRagFileRequest; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncGetRagFile { + + public static void main(String[] args) throws Exception { + asyncGetRagFile(); + } + + public static void asyncGetRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetRagFileRequest request = + GetRagFileRequest.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]") + .toString()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.getRagFileCallable().futureCall(request); + // Do something. + RagFile response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagFile_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFile.java new file mode 100644 index 000000000000..00385819babc --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFile.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_VertexRagDataService_GetRagFile_sync] +import com.google.cloud.aiplatform.v1.GetRagFileRequest; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagFile { + + public static void main(String[] args) throws Exception { + syncGetRagFile(); + } + + public static void syncGetRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + GetRagFileRequest request = + GetRagFileRequest.newBuilder() + .setName( + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]") + .toString()) + .build(); + RagFile response = vertexRagDataServiceClient.getRagFile(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagFile_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileRagfilename.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileRagfilename.java new file mode 100644 index 000000000000..0d0126bd55b4 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileRagfilename.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagFile_Ragfilename_sync] +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagFileRagfilename { + + public static void main(String[] args) throws Exception { + syncGetRagFileRagfilename(); + } + + public static void syncGetRagFileRagfilename() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagFileName name = RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]"); + RagFile response = vertexRagDataServiceClient.getRagFile(name); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagFile_Ragfilename_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileString.java new file mode 100644 index 000000000000..dcb0795a6649 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/getragfile/SyncGetRagFileString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_GetRagFile_String_sync] +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.RagFileName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncGetRagFileString { + + public static void main(String[] args) throws Exception { + syncGetRagFileString(); + } + + public static void syncGetRagFileString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String name = + RagFileName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]", "[RAG_FILE]").toString(); + RagFile response = vertexRagDataServiceClient.getRagFile(name); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_GetRagFile_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFiles.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFiles.java new file mode 100644 index 000000000000..9b6649cd0080 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFiles.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_VertexRagDataService_ImportRagFiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ImportRagFilesConfig; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.longrunning.Operation; + +public class AsyncImportRagFiles { + + public static void main(String[] args) throws Exception { + asyncImportRagFiles(); + } + + public static void asyncImportRagFiles() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ImportRagFilesRequest request = + ImportRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.importRagFilesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFilesLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFilesLRO.java new file mode 100644 index 000000000000..ca01f08e902b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/AsyncImportRagFilesLRO.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_VertexRagDataService_ImportRagFiles_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.ImportRagFilesConfig; +import com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncImportRagFilesLRO { + + public static void main(String[] args) throws Exception { + asyncImportRagFilesLRO(); + } + + public static void asyncImportRagFilesLRO() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ImportRagFilesRequest request = + ImportRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build()) + .build(); + OperationFuture future = + vertexRagDataServiceClient.importRagFilesOperationCallable().futureCall(request); + // Do something. + ImportRagFilesResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFiles.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFiles.java new file mode 100644 index 000000000000..39e49c659ef9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFiles.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_sync] +import com.google.cloud.aiplatform.v1.ImportRagFilesConfig; +import com.google.cloud.aiplatform.v1.ImportRagFilesRequest; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncImportRagFiles { + + public static void main(String[] args) throws Exception { + syncImportRagFiles(); + } + + public static void syncImportRagFiles() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ImportRagFilesRequest request = + ImportRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setImportRagFilesConfig(ImportRagFilesConfig.newBuilder().build()) + .build(); + ImportRagFilesResponse response = + vertexRagDataServiceClient.importRagFilesAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesRagcorpusnameImportragfilesconfig.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesRagcorpusnameImportragfilesconfig.java new file mode 100644 index 000000000000..28a12167dba0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesRagcorpusnameImportragfilesconfig.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_VertexRagDataService_ImportRagFiles_RagcorpusnameImportragfilesconfig_sync] +import com.google.cloud.aiplatform.v1.ImportRagFilesConfig; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncImportRagFilesRagcorpusnameImportragfilesconfig { + + public static void main(String[] args) throws Exception { + syncImportRagFilesRagcorpusnameImportragfilesconfig(); + } + + public static void syncImportRagFilesRagcorpusnameImportragfilesconfig() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + ImportRagFilesResponse response = + vertexRagDataServiceClient.importRagFilesAsync(parent, importRagFilesConfig).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_RagcorpusnameImportragfilesconfig_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesStringImportragfilesconfig.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesStringImportragfilesconfig.java new file mode 100644 index 000000000000..d052eaf0454f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/importragfiles/SyncImportRagFilesStringImportragfilesconfig.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_VertexRagDataService_ImportRagFiles_StringImportragfilesconfig_sync] +import com.google.cloud.aiplatform.v1.ImportRagFilesConfig; +import com.google.cloud.aiplatform.v1.ImportRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncImportRagFilesStringImportragfilesconfig { + + public static void main(String[] args) throws Exception { + syncImportRagFilesStringImportragfilesconfig(); + } + + public static void syncImportRagFilesStringImportragfilesconfig() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString(); + ImportRagFilesConfig importRagFilesConfig = ImportRagFilesConfig.newBuilder().build(); + ImportRagFilesResponse response = + vertexRagDataServiceClient.importRagFilesAsync(parent, importRagFilesConfig).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_StringImportragfilesconfig_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..a9ed16759c6a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocations.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vertexRagDataServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..e5c77b244bdf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_VertexRagDataService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + vertexRagDataServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..601be9ee3fe6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listlocations/SyncListLocations.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListLocations_sync] +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : vertexRagDataServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorpora.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorpora.java new file mode 100644 index 000000000000..6b3238930920 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorpora.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncListRagCorpora { + + public static void main(String[] args) throws Exception { + asyncListRagCorpora(); + } + + public static void asyncListRagCorpora() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagCorporaRequest request = + ListRagCorporaRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vertexRagDataServiceClient.listRagCorporaPagedCallable().futureCall(request); + // Do something. + for (RagCorpus element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorporaPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorporaPaged.java new file mode 100644 index 000000000000..57cfddec0e1c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/AsyncListRagCorporaPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_VertexRagDataService_ListRagCorpora_Paged_async] +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.ListRagCorporaResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.common.base.Strings; + +public class AsyncListRagCorporaPaged { + + public static void main(String[] args) throws Exception { + asyncListRagCorporaPaged(); + } + + public static void asyncListRagCorporaPaged() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagCorporaRequest request = + ListRagCorporaRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRagCorporaResponse response = + vertexRagDataServiceClient.listRagCorporaCallable().call(request); + for (RagCorpus element : response.getRagCorporaList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorpora.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorpora.java new file mode 100644 index 000000000000..a91c2574e705 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorpora.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_sync] +import com.google.cloud.aiplatform.v1.ListRagCorporaRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagCorpora { + + public static void main(String[] args) throws Exception { + syncListRagCorpora(); + } + + public static void syncListRagCorpora() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagCorporaRequest request = + ListRagCorporaRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaLocationname.java new file mode 100644 index 000000000000..943f3fba5977 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaLocationname.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_Locationname_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagCorporaLocationname { + + public static void main(String[] args) throws Exception { + syncListRagCorporaLocationname(); + } + + public static void syncListRagCorporaLocationname() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaString.java new file mode 100644 index 000000000000..ee655ec08a82 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragcorpora/SyncListRagCorporaString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_String_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagCorporaString { + + public static void main(String[] args) throws Exception { + syncListRagCorporaString(); + } + + public static void syncListRagCorporaString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (RagCorpus element : vertexRagDataServiceClient.listRagCorpora(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFiles.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFiles.java new file mode 100644 index 000000000000..1bb7bd665dd5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFiles.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagFiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncListRagFiles { + + public static void main(String[] args) throws Exception { + asyncListRagFiles(); + } + + public static void asyncListRagFiles() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagFilesRequest request = + ListRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vertexRagDataServiceClient.listRagFilesPagedCallable().futureCall(request); + // Do something. + for (RagFile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagFiles_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFilesPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFilesPaged.java new file mode 100644 index 000000000000..01ed1276a252 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/AsyncListRagFilesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_VertexRagDataService_ListRagFiles_Paged_async] +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.ListRagFilesResponse; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.common.base.Strings; + +public class AsyncListRagFilesPaged { + + public static void main(String[] args) throws Exception { + asyncListRagFilesPaged(); + } + + public static void asyncListRagFilesPaged() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagFilesRequest request = + ListRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRagFilesResponse response = + vertexRagDataServiceClient.listRagFilesCallable().call(request); + for (RagFile element : response.getRagFilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagFiles_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFiles.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFiles.java new file mode 100644 index 000000000000..2adfd537bef8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFiles.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagFiles_sync] +import com.google.cloud.aiplatform.v1.ListRagFilesRequest; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagFiles { + + public static void main(String[] args) throws Exception { + syncListRagFiles(); + } + + public static void syncListRagFiles() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + ListRagFilesRequest request = + ListRagFilesRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RagFile element : vertexRagDataServiceClient.listRagFiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagFiles_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesRagcorpusname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesRagcorpusname.java new file mode 100644 index 000000000000..a933718912a1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesRagcorpusname.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagFiles_Ragcorpusname_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagFilesRagcorpusname { + + public static void main(String[] args) throws Exception { + syncListRagFilesRagcorpusname(); + } + + public static void syncListRagFilesRagcorpusname() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + for (RagFile element : vertexRagDataServiceClient.listRagFiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagFiles_Ragcorpusname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesString.java new file mode 100644 index 000000000000..7751cb261a94 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/listragfiles/SyncListRagFilesString.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_ListRagFiles_String_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncListRagFilesString { + + public static void main(String[] args) throws Exception { + syncListRagFilesString(); + } + + public static void syncListRagFilesString() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString(); + for (RagFile element : vertexRagDataServiceClient.listRagFiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_ListRagFiles_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..1464f7f0c129 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/AsyncSetIamPolicy.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..0714ad0bddd1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/setiampolicy/SyncSetIamPolicy.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_VertexRagDataService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = vertexRagDataServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..260e1f957ebe --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/AsyncTestIamPermissions.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..7ae20d5d888e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/testiampermissions/SyncTestIamPermissions.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_VertexRagDataService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = vertexRagDataServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpus.java new file mode 100644 index 000000000000..c79dfbf2589a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpus.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_VertexRagDataService_UpdateRagCorpus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; +import com.google.longrunning.Operation; + +public class AsyncUpdateRagCorpus { + + public static void main(String[] args) throws Exception { + asyncUpdateRagCorpus(); + } + + public static void asyncUpdateRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + UpdateRagCorpusRequest request = + UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build(); + ApiFuture future = + vertexRagDataServiceClient.updateRagCorpusCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpusLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpusLRO.java new file mode 100644 index 000000000000..fc1b5b81378f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/AsyncUpdateRagCorpusLRO.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_VertexRagDataService_UpdateRagCorpus_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncUpdateRagCorpusLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateRagCorpusLRO(); + } + + public static void asyncUpdateRagCorpusLRO() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + UpdateRagCorpusRequest request = + UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build(); + OperationFuture future = + vertexRagDataServiceClient.updateRagCorpusOperationCallable().futureCall(request); + // Do something. + RagCorpus response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpus.java new file mode 100644 index 000000000000..ca245e356e8d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_sync] +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.UpdateRagCorpusRequest; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncUpdateRagCorpus { + + public static void main(String[] args) throws Exception { + syncUpdateRagCorpus(); + } + + public static void syncUpdateRagCorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + UpdateRagCorpusRequest request = + UpdateRagCorpusRequest.newBuilder().setRagCorpus(RagCorpus.newBuilder().build()).build(); + RagCorpus response = vertexRagDataServiceClient.updateRagCorpusAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpusRagcorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpusRagcorpus.java new file mode 100644 index 000000000000..a20193933923 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/updateragcorpus/SyncUpdateRagCorpusRagcorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_Ragcorpus_sync] +import com.google.cloud.aiplatform.v1.RagCorpus; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncUpdateRagCorpusRagcorpus { + + public static void main(String[] args) throws Exception { + syncUpdateRagCorpusRagcorpus(); + } + + public static void syncUpdateRagCorpusRagcorpus() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpus ragCorpus = RagCorpus.newBuilder().build(); + RagCorpus response = vertexRagDataServiceClient.updateRagCorpusAsync(ragCorpus).get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_Ragcorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/AsyncUploadRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/AsyncUploadRagFile.java new file mode 100644 index 000000000000..4d75853b1850 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/AsyncUploadRagFile.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UploadRagFile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UploadRagFileConfig; +import com.google.cloud.aiplatform.v1.UploadRagFileRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class AsyncUploadRagFile { + + public static void main(String[] args) throws Exception { + asyncUploadRagFile(); + } + + public static void asyncUploadRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + UploadRagFileRequest request = + UploadRagFileRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setRagFile(RagFile.newBuilder().build()) + .setUploadRagFileConfig(UploadRagFileConfig.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagDataServiceClient.uploadRagFileCallable().futureCall(request); + // Do something. + UploadRagFileResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UploadRagFile_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFile.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFile.java new file mode 100644 index 000000000000..49a5a77b9b96 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFile.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UploadRagFile_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UploadRagFileConfig; +import com.google.cloud.aiplatform.v1.UploadRagFileRequest; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncUploadRagFile { + + public static void main(String[] args) throws Exception { + syncUploadRagFile(); + } + + public static void syncUploadRagFile() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + UploadRagFileRequest request = + UploadRagFileRequest.newBuilder() + .setParent(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) + .setRagFile(RagFile.newBuilder().build()) + .setUploadRagFileConfig(UploadRagFileConfig.newBuilder().build()) + .build(); + UploadRagFileResponse response = vertexRagDataServiceClient.uploadRagFile(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UploadRagFile_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileRagcorpusnameRagfileUploadragfileconfig.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileRagcorpusnameRagfileUploadragfileconfig.java new file mode 100644 index 000000000000..01b51978301a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileRagcorpusnameRagfileUploadragfileconfig.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UploadRagFile_RagcorpusnameRagfileUploadragfileconfig_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UploadRagFileConfig; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncUploadRagFileRagcorpusnameRagfileUploadragfileconfig { + + public static void main(String[] args) throws Exception { + syncUploadRagFileRagcorpusnameRagfileUploadragfileconfig(); + } + + public static void syncUploadRagFileRagcorpusnameRagfileUploadragfileconfig() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + RagCorpusName parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]"); + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + UploadRagFileResponse response = + vertexRagDataServiceClient.uploadRagFile(parent, ragFile, uploadRagFileConfig); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UploadRagFile_RagcorpusnameRagfileUploadragfileconfig_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileStringRagfileUploadragfileconfig.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileStringRagfileUploadragfileconfig.java new file mode 100644 index 000000000000..9b34531a5c59 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservice/uploadragfile/SyncUploadRagFileStringRagfileUploadragfileconfig.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataService_UploadRagFile_StringRagfileUploadragfileconfig_sync] +import com.google.cloud.aiplatform.v1.RagCorpusName; +import com.google.cloud.aiplatform.v1.RagFile; +import com.google.cloud.aiplatform.v1.UploadRagFileConfig; +import com.google.cloud.aiplatform.v1.UploadRagFileResponse; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceClient; + +public class SyncUploadRagFileStringRagfileUploadragfileconfig { + + public static void main(String[] args) throws Exception { + syncUploadRagFileStringRagfileUploadragfileconfig(); + } + + public static void syncUploadRagFileStringRagfileUploadragfileconfig() 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 (VertexRagDataServiceClient vertexRagDataServiceClient = + VertexRagDataServiceClient.create()) { + String parent = RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString(); + RagFile ragFile = RagFile.newBuilder().build(); + UploadRagFileConfig uploadRagFileConfig = UploadRagFileConfig.newBuilder().build(); + UploadRagFileResponse response = + vertexRagDataServiceClient.uploadRagFile(parent, ragFile, uploadRagFileConfig); + } + } +} +// [END aiplatform_v1_generated_VertexRagDataService_UploadRagFile_StringRagfileUploadragfileconfig_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/createragcorpus/SyncCreateRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/createragcorpus/SyncCreateRagCorpus.java new file mode 100644 index 000000000000..18c2ec6d4c88 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/createragcorpus/SyncCreateRagCorpus.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_VertexRagDataServiceSettings_CreateRagCorpus_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.VertexRagDataServiceSettings; +import java.time.Duration; + +public class SyncCreateRagCorpus { + + public static void main(String[] args) throws Exception { + syncCreateRagCorpus(); + } + + public static void syncCreateRagCorpus() 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 + VertexRagDataServiceSettings.Builder vertexRagDataServiceSettingsBuilder = + VertexRagDataServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + vertexRagDataServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_VertexRagDataServiceSettings_CreateRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/getragcorpus/SyncGetRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/getragcorpus/SyncGetRagCorpus.java new file mode 100644 index 000000000000..1d7f8c3097e0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragdataservicesettings/getragcorpus/SyncGetRagCorpus.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagDataServiceSettings_GetRagCorpus_sync] +import com.google.cloud.aiplatform.v1.VertexRagDataServiceSettings; +import java.time.Duration; + +public class SyncGetRagCorpus { + + public static void main(String[] args) throws Exception { + syncGetRagCorpus(); + } + + public static void syncGetRagCorpus() 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 + VertexRagDataServiceSettings.Builder vertexRagDataServiceSettingsBuilder = + VertexRagDataServiceSettings.newBuilder(); + vertexRagDataServiceSettingsBuilder + .getRagCorpusSettings() + .setRetrySettings( + vertexRagDataServiceSettingsBuilder + .getRagCorpusSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + VertexRagDataServiceSettings vertexRagDataServiceSettings = + vertexRagDataServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_VertexRagDataServiceSettings_GetRagCorpus_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/AsyncAugmentPrompt.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/AsyncAugmentPrompt.java new file mode 100644 index 000000000000..59a3192b21d0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/AsyncAugmentPrompt.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_VertexRagService_AugmentPrompt_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; + +public class AsyncAugmentPrompt { + + public static void main(String[] args) throws Exception { + asyncAugmentPrompt(); + } + + public static void asyncAugmentPrompt() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setModel(AugmentPromptRequest.Model.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagServiceClient.augmentPromptCallable().futureCall(request); + // Do something. + AugmentPromptResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_AugmentPrompt_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPrompt.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPrompt.java new file mode 100644 index 000000000000..80ba9b0abaca --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPrompt.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_AugmentPrompt_sync] +import com.google.cloud.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; + +public class SyncAugmentPrompt { + + public static void main(String[] args) throws Exception { + syncAugmentPrompt(); + } + + public static void syncAugmentPrompt() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setModel(AugmentPromptRequest.Model.newBuilder().build()) + .build(); + AugmentPromptResponse response = vertexRagServiceClient.augmentPrompt(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_AugmentPrompt_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.java new file mode 100644 index 000000000000..55d93ea411a3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_AugmentPrompt_LocationnameAugmentpromptrequestmodelVertexragstore_sync] +import com.google.cloud.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagStore; + +public class SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore { + + public static void main(String[] args) throws Exception { + syncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore(); + } + + public static void syncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore() + 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + AugmentPromptResponse response = + vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_AugmentPrompt_LocationnameAugmentpromptrequestmodelVertexragstore_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.java new file mode 100644 index 000000000000..d466639904a3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_AugmentPrompt_StringAugmentpromptrequestmodelVertexragstore_sync] +import com.google.cloud.aiplatform.v1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagStore; + +public class SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore { + + public static void main(String[] args) throws Exception { + syncAugmentPromptStringAugmentpromptrequestmodelVertexragstore(); + } + + public static void syncAugmentPromptStringAugmentpromptrequestmodelVertexragstore() + 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + AugmentPromptResponse response = + vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_AugmentPrompt_StringAugmentpromptrequestmodelVertexragstore_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/AsyncCorroborateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/AsyncCorroborateContent.java new file mode 100644 index 000000000000..717872779c3a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/AsyncCorroborateContent.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_CorroborateContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.Fact; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; + +public class AsyncCorroborateContent { + + public static void main(String[] args) throws Exception { + asyncCorroborateContent(); + } + + public static void asyncCorroborateContent() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setContent(Content.newBuilder().build()) + .addAllFacts(new ArrayList()) + .setParameters(CorroborateContentRequest.Parameters.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagServiceClient.corroborateContentCallable().futureCall(request); + // Do something. + CorroborateContentResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_CorroborateContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContent.java new file mode 100644 index 000000000000..d7d4d947b967 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContent.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_VertexRagService_CorroborateContent_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.Fact; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; + +public class SyncCorroborateContent { + + public static void main(String[] args) throws Exception { + syncCorroborateContent(); + } + + public static void syncCorroborateContent() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setContent(Content.newBuilder().build()) + .addAllFacts(new ArrayList()) + .setParameters(CorroborateContentRequest.Parameters.newBuilder().build()) + .build(); + CorroborateContentResponse response = vertexRagServiceClient.corroborateContent(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_CorroborateContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.java new file mode 100644 index 000000000000..c1e45b2d6b83 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.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_VertexRagService_CorroborateContent_LocationnameContentListfact_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.Fact; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncCorroborateContentLocationnameContentListfact { + + public static void main(String[] args) throws Exception { + syncCorroborateContentLocationnameContentListfact(); + } + + public static void syncCorroborateContentLocationnameContentListfact() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + CorroborateContentResponse response = + vertexRagServiceClient.corroborateContent(parent, content, facts); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_CorroborateContent_LocationnameContentListfact_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.java new file mode 100644 index 000000000000..0eb00ffc5d7f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.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_VertexRagService_CorroborateContent_StringContentListfact_sync] +import com.google.cloud.aiplatform.v1.Content; +import com.google.cloud.aiplatform.v1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1.Fact; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncCorroborateContentStringContentListfact { + + public static void main(String[] args) throws Exception { + syncCorroborateContentStringContentListfact(); + } + + public static void syncCorroborateContentStringContentListfact() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + CorroborateContentResponse response = + vertexRagServiceClient.corroborateContent(parent, content, facts); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_CorroborateContent_StringContentListfact_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2e9eb9f6808f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagServiceSettings; +import com.google.cloud.aiplatform.v1.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 + VertexRagServiceSettings vertexRagServiceSettings = + VertexRagServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + VertexRagServiceClient vertexRagServiceClient = + VertexRagServiceClient.create(vertexRagServiceSettings); + } +} +// [END aiplatform_v1_generated_VertexRagService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..11b52800d9b5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1.VertexRagServiceSettings; +import com.google.cloud.aiplatform.v1.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 + VertexRagServiceSettings vertexRagServiceSettings = + VertexRagServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + VertexRagServiceClient vertexRagServiceClient = + VertexRagServiceClient.create(vertexRagServiceSettings); + } +} +// [END aiplatform_v1_generated_VertexRagService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..70e6d7b2ba3a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/AsyncGetIamPolicy.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_VertexRagService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = vertexRagServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..9c28f5cf806c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getiampolicy/SyncGetIamPolicy.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = vertexRagServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..ef8ac53e52d3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/AsyncGetLocation.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = vertexRagServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..d0a45d44a041 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/getlocation/SyncGetLocation.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_GetLocation_sync] +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = vertexRagServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..be985c657a03 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocations.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_VertexRagService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vertexRagServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..428341998ed1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_VertexRagService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + vertexRagServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_VertexRagService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..db661ad3987a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/listlocations/SyncListLocations.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_ListLocations_sync] +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : vertexRagServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_VertexRagService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/AsyncRetrieveContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/AsyncRetrieveContexts.java new file mode 100644 index 000000000000..5dda99aeca51 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/AsyncRetrieveContexts.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_VertexRagService_RetrieveContexts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagQuery; +import com.google.cloud.aiplatform.v1.RetrieveContextsRequest; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; + +public class AsyncRetrieveContexts { + + public static void main(String[] args) throws Exception { + asyncRetrieveContexts(); + } + + public static void asyncRetrieveContexts() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + RetrieveContextsRequest request = + RetrieveContextsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQuery(RagQuery.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagServiceClient.retrieveContextsCallable().futureCall(request); + // Do something. + RetrieveContextsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_RetrieveContexts_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContexts.java new file mode 100644 index 000000000000..c87e1b926b91 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContexts.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_RetrieveContexts_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagQuery; +import com.google.cloud.aiplatform.v1.RetrieveContextsRequest; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; + +public class SyncRetrieveContexts { + + public static void main(String[] args) throws Exception { + syncRetrieveContexts(); + } + + public static void syncRetrieveContexts() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + RetrieveContextsRequest request = + RetrieveContextsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQuery(RagQuery.newBuilder().build()) + .build(); + RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_RetrieveContexts_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsLocationnameRagquery.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsLocationnameRagquery.java new file mode 100644 index 000000000000..89517bb7afbf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsLocationnameRagquery.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_RetrieveContexts_LocationnameRagquery_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagQuery; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; + +public class SyncRetrieveContextsLocationnameRagquery { + + public static void main(String[] args) throws Exception { + syncRetrieveContextsLocationnameRagquery(); + } + + public static void syncRetrieveContextsLocationnameRagquery() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RagQuery query = RagQuery.newBuilder().build(); + RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_RetrieveContexts_LocationnameRagquery_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsStringRagquery.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsStringRagquery.java new file mode 100644 index 000000000000..ae12ceffe912 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/retrievecontexts/SyncRetrieveContextsStringRagquery.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_RetrieveContexts_StringRagquery_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.RagQuery; +import com.google.cloud.aiplatform.v1.RetrieveContextsResponse; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; + +public class SyncRetrieveContextsStringRagquery { + + public static void main(String[] args) throws Exception { + syncRetrieveContextsStringRagquery(); + } + + public static void syncRetrieveContextsStringRagquery() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + RagQuery query = RagQuery.newBuilder().build(); + RetrieveContextsResponse response = vertexRagServiceClient.retrieveContexts(parent, query); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_RetrieveContexts_StringRagquery_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..eabd9c47a2e0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/AsyncSetIamPolicy.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = vertexRagServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..865e464669ac --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/setiampolicy/SyncSetIamPolicy.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_VertexRagService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = vertexRagServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..b9d218728906 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/AsyncTestIamPermissions.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + vertexRagServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..8aff53abee0f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/testiampermissions/SyncTestIamPermissions.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.VertexRagServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = vertexRagServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1_generated_VertexRagService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservicesettings/retrievecontexts/SyncRetrieveContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservicesettings/retrievecontexts/SyncRetrieveContexts.java new file mode 100644 index 000000000000..381fb5d53425 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservicesettings/retrievecontexts/SyncRetrieveContexts.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.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_VertexRagServiceSettings_RetrieveContexts_sync] +import com.google.cloud.aiplatform.v1.VertexRagServiceSettings; +import java.time.Duration; + +public class SyncRetrieveContexts { + + public static void main(String[] args) throws Exception { + syncRetrieveContexts(); + } + + public static void syncRetrieveContexts() 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 + VertexRagServiceSettings.Builder vertexRagServiceSettingsBuilder = + VertexRagServiceSettings.newBuilder(); + vertexRagServiceSettingsBuilder + .retrieveContextsSettings() + .setRetrySettings( + vertexRagServiceSettingsBuilder + .retrieveContextsSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + VertexRagServiceSettings vertexRagServiceSettings = vertexRagServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_VertexRagServiceSettings_RetrieveContexts_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java index 61a1d6827fe4..a6ee63a7469a 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java @@ -45,6 +45,7 @@ public static void asyncListPublisherModels() throws Exception { .setView(PublisherModelView.forNumber(0)) .setOrderBy("orderBy-1207110587") .setLanguageCode("languageCode-2092349083") + .setListAllVersions(true) .build(); ApiFuture future = modelGardenServiceClient.listPublisherModelsPagedCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java index bc00ed4b260b..93c9ed94a803 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java @@ -46,6 +46,7 @@ public static void asyncListPublisherModelsPaged() throws Exception { .setView(PublisherModelView.forNumber(0)) .setOrderBy("orderBy-1207110587") .setLanguageCode("languageCode-2092349083") + .setListAllVersions(true) .build(); while (true) { ListPublisherModelsResponse response = diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java index aef4d741a807..bd60152454a3 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java @@ -44,6 +44,7 @@ public static void syncListPublisherModels() throws Exception { .setView(PublisherModelView.forNumber(0)) .setOrderBy("orderBy-1207110587") .setLanguageCode("languageCode-2092349083") + .setListAllVersions(true) .build(); for (PublisherModel element : modelGardenServiceClient.listPublisherModels(request).iterateAll()) { diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java index 55bb20538446..1c992125758b 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java @@ -44,6 +44,7 @@ public static void asyncQueryReasoningEngine() throws Exception { ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") .toString()) .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") .build(); ApiFuture future = reasoningEngineExecutionServiceClient.queryReasoningEngineCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java index 11fe3ea4eec0..2a48ab77317b 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java @@ -43,6 +43,7 @@ public static void syncQueryReasoningEngine() throws Exception { ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") .toString()) .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") .build(); QueryReasoningEngineResponse response = reasoningEngineExecutionServiceClient.queryReasoningEngine(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.java new file mode 100644 index 000000000000..bbcf092bbb02 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async] +import com.google.api.HttpBody; +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; +import com.google.protobuf.Struct; + +public class AsyncStreamQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncStreamQueryReasoningEngine(); + } + + public static void asyncStreamQueryReasoningEngine() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + StreamQueryReasoningEngineRequest request = + StreamQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + ServerStream stream = + reasoningEngineExecutionServiceClient.streamQueryReasoningEngineCallable().call(request); + for (HttpBody response : stream) { + // Do something when a response is received. + } + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/AsyncAugmentPrompt.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/AsyncAugmentPrompt.java new file mode 100644 index 000000000000..56c90edf729c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/AsyncAugmentPrompt.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.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; + +public class AsyncAugmentPrompt { + + public static void main(String[] args) throws Exception { + asyncAugmentPrompt(); + } + + public static void asyncAugmentPrompt() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setModel(AugmentPromptRequest.Model.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagServiceClient.augmentPromptCallable().futureCall(request); + // Do something. + AugmentPromptResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPrompt.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPrompt.java new file mode 100644 index 000000000000..ff0f2118ec46 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPrompt.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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_sync] +import com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; + +public class SyncAugmentPrompt { + + public static void main(String[] args) throws Exception { + syncAugmentPrompt(); + } + + public static void syncAugmentPrompt() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + AugmentPromptRequest request = + AugmentPromptRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setModel(AugmentPromptRequest.Model.newBuilder().build()) + .build(); + AugmentPromptResponse response = vertexRagServiceClient.augmentPrompt(request); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.java new file mode 100644 index 000000000000..c8cbee57009d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore.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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_LocationnameAugmentpromptrequestmodelVertexragstore_sync] +import com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1beta1.VertexRagStore; + +public class SyncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore { + + public static void main(String[] args) throws Exception { + syncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore(); + } + + public static void syncAugmentPromptLocationnameAugmentpromptrequestmodelVertexragstore() + 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + AugmentPromptResponse response = + vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_LocationnameAugmentpromptrequestmodelVertexragstore_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.java new file mode 100644 index 000000000000..1e7fae12e011 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/augmentprompt/SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore.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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_StringAugmentpromptrequestmodelVertexragstore_sync] +import com.google.cloud.aiplatform.v1beta1.AugmentPromptRequest; +import com.google.cloud.aiplatform.v1beta1.AugmentPromptResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import com.google.cloud.aiplatform.v1beta1.VertexRagStore; + +public class SyncAugmentPromptStringAugmentpromptrequestmodelVertexragstore { + + public static void main(String[] args) throws Exception { + syncAugmentPromptStringAugmentpromptrequestmodelVertexragstore(); + } + + public static void syncAugmentPromptStringAugmentpromptrequestmodelVertexragstore() + 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AugmentPromptRequest.Model model = AugmentPromptRequest.Model.newBuilder().build(); + VertexRagStore vertexRagStore = VertexRagStore.newBuilder().build(); + AugmentPromptResponse response = + vertexRagServiceClient.augmentPrompt(parent, model, vertexRagStore); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_StringAugmentpromptrequestmodelVertexragstore_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/AsyncCorroborateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/AsyncCorroborateContent.java new file mode 100644 index 000000000000..d08df38348fd --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/AsyncCorroborateContent.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.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1beta1.Fact; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; + +public class AsyncCorroborateContent { + + public static void main(String[] args) throws Exception { + asyncCorroborateContent(); + } + + public static void asyncCorroborateContent() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setContent(Content.newBuilder().build()) + .addAllFacts(new ArrayList()) + .setParameters(CorroborateContentRequest.Parameters.newBuilder().build()) + .build(); + ApiFuture future = + vertexRagServiceClient.corroborateContentCallable().futureCall(request); + // Do something. + CorroborateContentResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContent.java new file mode 100644 index 000000000000..98f5cbab150a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContent.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.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentRequest; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1beta1.Fact; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; + +public class SyncCorroborateContent { + + public static void main(String[] args) throws Exception { + syncCorroborateContent(); + } + + public static void syncCorroborateContent() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + CorroborateContentRequest request = + CorroborateContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setContent(Content.newBuilder().build()) + .addAllFacts(new ArrayList()) + .setParameters(CorroborateContentRequest.Parameters.newBuilder().build()) + .build(); + CorroborateContentResponse response = vertexRagServiceClient.corroborateContent(request); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.java new file mode 100644 index 000000000000..3f874de75f43 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentLocationnameContentListfact.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.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_LocationnameContentListfact_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1beta1.Fact; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncCorroborateContentLocationnameContentListfact { + + public static void main(String[] args) throws Exception { + syncCorroborateContentLocationnameContentListfact(); + } + + public static void syncCorroborateContentLocationnameContentListfact() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + CorroborateContentResponse response = + vertexRagServiceClient.corroborateContent(parent, content, facts); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_LocationnameContentListfact_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.java new file mode 100644 index 000000000000..9a07e16700d5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragservice/corroboratecontent/SyncCorroborateContentStringContentListfact.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.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_StringContentListfact_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse; +import com.google.cloud.aiplatform.v1beta1.Fact; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.VertexRagServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncCorroborateContentStringContentListfact { + + public static void main(String[] args) throws Exception { + syncCorroborateContentStringContentListfact(); + } + + public static void syncCorroborateContentStringContentListfact() 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Content content = Content.newBuilder().build(); + List facts = new ArrayList<>(); + CorroborateContentResponse response = + vertexRagServiceClient.corroborateContent(parent, content, facts); + } + } +} +// [END aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_StringContentListfact_sync] diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index eb428427238a..e3a5c625e26a 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.31.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.32.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index bf10fd26d225..76792303641f 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.42.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.43.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 8e849f57c21c..e64455ad6425 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.63.0' +implementation 'com.google.analytics:google-analytics-admin:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.63.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.64.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.64.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 30645348ff44..f48ec21e4e42 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.64.0' +implementation 'com.google.analytics:google-analytics-data:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.64.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.65.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java index 93de3f4c9c52..649d778e1b6b 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java @@ -115,7 +115,7 @@ * * *

BatchRunReports - *

Returns multiple reports in a batch. All reports must be for the same GA4 Property. + *

Returns multiple reports in a batch. All reports must be for the same Google Analytics property. * *

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

*
    @@ -129,7 +129,7 @@ * * *

    BatchRunPivotReports - *

    Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property. + *

    Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics property. * *

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

    *
      @@ -143,7 +143,7 @@ * * *

      GetMetadata - *

      Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. + *

      Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. *

      For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`. * *

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

      @@ -599,7 +599,8 @@ public final RunPivotReportResponse runPivotReport(RunPivotReportRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns multiple reports in a batch. All reports must be for the same GA4 Property. + * Returns multiple reports in a batch. All reports must be for the same Google Analytics + * property. * *

      Sample code: * @@ -628,7 +629,8 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns multiple reports in a batch. All reports must be for the same GA4 Property. + * Returns multiple reports in a batch. All reports must be for the same Google Analytics + * property. * *

      Sample code: * @@ -658,7 +660,8 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property. + * Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics + * property. * *

      Sample code: * @@ -688,7 +691,8 @@ public final BatchRunPivotReportsResponse batchRunPivotReports( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns multiple pivot reports in a batch. All reports must be for the same GA4 Property. + * Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics + * property. * *

      Sample code: * @@ -719,8 +723,8 @@ public final BatchRunPivotReportsResponse batchRunPivotReports( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as * Universal metadata. * *

      For example if a custom metric with parameter name `levels_unlocked` is registered to a @@ -743,7 +747,7 @@ public final BatchRunPivotReportsResponse batchRunPivotReports( * * @param name Required. The resource name of the metadata to retrieve. This name field is * specified in the URL path and not URL parameters. Property is a numeric Google Analytics - * GA4 Property identifier. To learn more, see [where to find your Property + * property identifier. To learn more, see [where to find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). *

      Example: properties/1234/metadata *

      Set the Property ID to 0 for dimensions and metrics common to all properties. In this @@ -759,8 +763,8 @@ public final Metadata getMetadata(MetadataName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as * Universal metadata. * *

      For example if a custom metric with parameter name `levels_unlocked` is registered to a @@ -783,7 +787,7 @@ public final Metadata getMetadata(MetadataName name) { * * @param name Required. The resource name of the metadata to retrieve. This name field is * specified in the URL path and not URL parameters. Property is a numeric Google Analytics - * GA4 Property identifier. To learn more, see [where to find your Property + * property identifier. To learn more, see [where to find your Property * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). *

      Example: properties/1234/metadata *

      Set the Property ID to 0 for dimensions and metrics common to all properties. In this @@ -798,8 +802,8 @@ public final Metadata getMetadata(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as * Universal metadata. * *

      For example if a custom metric with parameter name `levels_unlocked` is registered to a @@ -831,8 +835,8 @@ public final Metadata getMetadata(GetMetadataRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the - * dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified - * in the request, and the metadata response includes Custom dimensions and metrics as well as + * dimensions and metrics. In this method, a Google Analytics property identifier is specified in + * the request, and the metadata response includes Custom dimensions and metrics as well as * Universal metadata. * *

      For example if a custom metric with parameter name `levels_unlocked` is registered to a diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json index 9cb17f34fef2..c71ca01ef59c 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1alpha/reflect-config.json @@ -377,6 +377,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1alpha.EmptyFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1alpha.EmptyFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1alpha.EventCriteriaScoping", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json index 9ec4604e418d..9f2ed4b64575 100644 --- a/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json +++ b/java-analytics-data/google-analytics-data/src/main/resources/META-INF/native-image/com.google.analytics.data.v1beta/reflect-config.json @@ -548,6 +548,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.data.v1beta.Filter$EmptyFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.data.v1beta.Filter$EmptyFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.data.v1beta.Filter$InListFilter", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java b/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java index c0a61d239e41..e56a7323bbf1 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java @@ -662,7 +662,7 @@ default void runPivotReport( * *

            * Returns multiple reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ default void batchRunReports( @@ -678,7 +678,7 @@ default void batchRunReports( * *
            * Returns multiple pivot reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ default void batchRunPivotReports( @@ -695,7 +695,7 @@ default void batchRunPivotReports( *
            * Returns metadata for dimensions and metrics available in reporting methods.
            * Used to explore the dimensions and metrics. In this method, a Google
      -     * Analytics GA4 Property Identifier is specified in the request, and
      +     * Analytics property identifier is specified in the request, and
            * the metadata response includes Custom dimensions and metrics as well as
            * Universal metadata.
            * For example if a custom metric with parameter name `levels_unlocked` is
      @@ -956,7 +956,7 @@ public void runPivotReport(
            *
            * 
            * Returns multiple reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public void batchRunReports( @@ -974,7 +974,7 @@ public void batchRunReports( * *
            * Returns multiple pivot reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public void batchRunPivotReports( @@ -993,7 +993,7 @@ public void batchRunPivotReports( *
            * Returns metadata for dimensions and metrics available in reporting methods.
            * Used to explore the dimensions and metrics. In this method, a Google
      -     * Analytics GA4 Property Identifier is specified in the request, and
      +     * Analytics property identifier is specified in the request, and
            * the metadata response includes Custom dimensions and metrics as well as
            * Universal metadata.
            * For example if a custom metric with parameter name `levels_unlocked` is
      @@ -1247,7 +1247,7 @@ public com.google.analytics.data.v1beta.RunPivotReportResponse runPivotReport(
            *
            * 
            * Returns multiple reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports( @@ -1261,7 +1261,7 @@ public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports( * *
            * Returns multiple pivot reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPivotReports( @@ -1276,7 +1276,7 @@ public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPiv *
            * Returns metadata for dimensions and metrics available in reporting methods.
            * Used to explore the dimensions and metrics. In this method, a Google
      -     * Analytics GA4 Property Identifier is specified in the request, and
      +     * Analytics property identifier is specified in the request, and
            * the metadata response includes Custom dimensions and metrics as well as
            * Universal metadata.
            * For example if a custom metric with parameter name `levels_unlocked` is
      @@ -1505,7 +1505,7 @@ protected BetaAnalyticsDataFutureStub build(
            *
            * 
            * Returns multiple reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture< @@ -1520,7 +1520,7 @@ protected BetaAnalyticsDataFutureStub build( * *
            * Returns multiple pivot reports in a batch. All reports must be for the same
      -     * GA4 Property.
      +     * Google Analytics property.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture< @@ -1536,7 +1536,7 @@ protected BetaAnalyticsDataFutureStub build( *
            * Returns metadata for dimensions and metrics available in reporting methods.
            * Used to explore the dimensions and metrics. In this method, a Google
      -     * Analytics GA4 Property Identifier is specified in the request, and
      +     * Analytics property identifier is specified in the request, and
            * the metadata response includes Custom dimensions and metrics as well as
            * Universal metadata.
            * For example if a custom metric with parameter name `levels_unlocked` is
      diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilter.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilter.java
      new file mode 100644
      index 000000000000..93f584222a7c
      --- /dev/null
      +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilter.java
      @@ -0,0 +1,431 @@
      +/*
      + * Copyright 2024 Google LLC
      + *
      + * Licensed under the Apache License, Version 2.0 (the "License");
      + * you may not use this file except in compliance with the License.
      + * You may obtain a copy of the License at
      + *
      + *     https://www.apache.org/licenses/LICENSE-2.0
      + *
      + * Unless required by applicable law or agreed to in writing, software
      + * distributed under the License is distributed on an "AS IS" BASIS,
      + * WITHOUT 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/analytics/data/v1alpha/data.proto
      +
      +// Protobuf Java Version: 3.25.5
      +package com.google.analytics.data.v1alpha;
      +
      +/**
      + *
      + *
      + * 
      + * Filter for empty values.
      + * 
      + * + * Protobuf type {@code google.analytics.data.v1alpha.EmptyFilter} + */ +public final class EmptyFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EmptyFilter) + EmptyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmptyFilter.newBuilder() to construct. + private EmptyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmptyFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmptyFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EmptyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EmptyFilter.class, + com.google.analytics.data.v1alpha.EmptyFilter.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.analytics.data.v1alpha.EmptyFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.EmptyFilter other = + (com.google.analytics.data.v1alpha.EmptyFilter) 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.analytics.data.v1alpha.EmptyFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter 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.analytics.data.v1alpha.EmptyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter 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.analytics.data.v1alpha.EmptyFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter 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.analytics.data.v1alpha.EmptyFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter 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.analytics.data.v1alpha.EmptyFilter 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; + } + /** + * + * + *
      +   * Filter for empty values.
      +   * 
      + * + * Protobuf type {@code google.analytics.data.v1alpha.EmptyFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EmptyFilter) + com.google.analytics.data.v1alpha.EmptyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EmptyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EmptyFilter.class, + com.google.analytics.data.v1alpha.EmptyFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.EmptyFilter.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.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilter build() { + com.google.analytics.data.v1alpha.EmptyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilter buildPartial() { + com.google.analytics.data.v1alpha.EmptyFilter result = + new com.google.analytics.data.v1alpha.EmptyFilter(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.analytics.data.v1alpha.EmptyFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.EmptyFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.EmptyFilter other) { + if (other == com.google.analytics.data.v1alpha.EmptyFilter.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.analytics.data.v1alpha.EmptyFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EmptyFilter) + private static final com.google.analytics.data.v1alpha.EmptyFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EmptyFilter(); + } + + public static com.google.analytics.data.v1alpha.EmptyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmptyFilter 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.analytics.data.v1alpha.EmptyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilterOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilterOrBuilder.java new file mode 100644 index 000000000000..ed6f7a929475 --- /dev/null +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EmptyFilterOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/analytics/data/v1alpha/data.proto + +// Protobuf Java Version: 3.25.5 +package com.google.analytics.data.v1alpha; + +public interface EmptyFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EmptyFilter) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java index 65dd57e0b1e4..1ffa6feb4c43 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java @@ -76,6 +76,7 @@ public enum OneFilterCase IN_LIST_FILTER(3), NUMERIC_FILTER(4), BETWEEN_FILTER(5), + EMPTY_FILTER(6), ONEFILTER_NOT_SET(0); private final int value; @@ -102,6 +103,8 @@ public static OneFilterCase forNumber(int value) { return NUMERIC_FILTER; case 5: return BETWEEN_FILTER; + case 6: + return EMPTY_FILTER; case 0: return ONEFILTER_NOT_SET; default: @@ -375,6 +378,57 @@ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilter return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); } + public static final int EMPTY_FILTER_FIELD_NUMBER = 6; + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return Whether the emptyFilter field is set. + */ + @java.lang.Override + public boolean hasEmptyFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return The emptyFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilter getEmptyFilter() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilterOrBuilder getEmptyFilterOrBuilder() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -404,6 +458,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 5) { output.writeMessage(5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } + if (oneFilterCase_ == 6) { + output.writeMessage(6, (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_); + } getUnknownFields().writeTo(output); } @@ -436,6 +493,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } + if (oneFilterCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -466,6 +528,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; break; + case 6: + if (!getEmptyFilter().equals(other.getEmptyFilter())) return false; + break; case 0: default: } @@ -499,6 +564,10 @@ public int hashCode() { hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; hash = (53 * hash) + getBetweenFilter().hashCode(); break; + case 6: + hash = (37 * hash) + EMPTY_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEmptyFilter().hashCode(); + break; case 0: default: } @@ -654,6 +723,9 @@ public Builder clear() { if (betweenFilterBuilder_ != null) { betweenFilterBuilder_.clear(); } + if (emptyFilterBuilder_ != null) { + emptyFilterBuilder_.clear(); + } oneFilterCase_ = 0; oneFilter_ = null; return this; @@ -713,6 +785,9 @@ private void buildPartialOneofs(com.google.analytics.data.v1alpha.Filter result) if (oneFilterCase_ == 5 && betweenFilterBuilder_ != null) { result.oneFilter_ = betweenFilterBuilder_.build(); } + if (oneFilterCase_ == 6 && emptyFilterBuilder_ != null) { + result.oneFilter_ = emptyFilterBuilder_.build(); + } } @java.lang.Override @@ -786,6 +861,11 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter other) { mergeBetweenFilter(other.getBetweenFilter()); break; } + case EMPTY_FILTER: + { + mergeEmptyFilter(other.getEmptyFilter()); + break; + } case ONEFILTER_NOT_SET: { break; @@ -847,6 +927,12 @@ public Builder mergeFrom( oneFilterCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage(getEmptyFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1827,6 +1913,215 @@ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilter return betweenFilterBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EmptyFilter, + com.google.analytics.data.v1alpha.EmptyFilter.Builder, + com.google.analytics.data.v1alpha.EmptyFilterOrBuilder> + emptyFilterBuilder_; + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return Whether the emptyFilter field is set. + */ + @java.lang.Override + public boolean hasEmptyFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return The emptyFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilter getEmptyFilter() { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 6) { + return emptyFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + public Builder setEmptyFilter(com.google.analytics.data.v1alpha.EmptyFilter value) { + if (emptyFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + emptyFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + public Builder setEmptyFilter( + com.google.analytics.data.v1alpha.EmptyFilter.Builder builderForValue) { + if (emptyFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + emptyFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + public Builder mergeEmptyFilter(com.google.analytics.data.v1alpha.EmptyFilter value) { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 6 + && oneFilter_ != com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.EmptyFilter.newBuilder( + (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 6) { + emptyFilterBuilder_.mergeFrom(value); + } else { + emptyFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + public Builder clearEmptyFilter() { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + emptyFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + public com.google.analytics.data.v1alpha.EmptyFilter.Builder getEmptyFilterBuilder() { + return getEmptyFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EmptyFilterOrBuilder getEmptyFilterOrBuilder() { + if ((oneFilterCase_ == 6) && (emptyFilterBuilder_ != null)) { + return emptyFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EmptyFilter, + com.google.analytics.data.v1alpha.EmptyFilter.Builder, + com.google.analytics.data.v1alpha.EmptyFilterOrBuilder> + getEmptyFilterFieldBuilder() { + if (emptyFilterBuilder_ == null) { + if (!(oneFilterCase_ == 6)) { + oneFilter_ = com.google.analytics.data.v1alpha.EmptyFilter.getDefaultInstance(); + } + emptyFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EmptyFilter, + com.google.analytics.data.v1alpha.EmptyFilter.Builder, + com.google.analytics.data.v1alpha.EmptyFilterOrBuilder>( + (com.google.analytics.data.v1alpha.EmptyFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 6; + onChanged(); + return emptyFilterBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java index 710643dd720b..70fc5b3ff0f4 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java @@ -191,5 +191,40 @@ public interface FilterOrBuilder */ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return Whether the emptyFilter field is set. + */ + boolean hasEmptyFilter(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + * + * @return The emptyFilter. + */ + com.google.analytics.data.v1alpha.EmptyFilter getEmptyFilter(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1alpha.EmptyFilter empty_filter = 6; + */ + com.google.analytics.data.v1alpha.EmptyFilterOrBuilder getEmptyFilterOrBuilder(); + com.google.analytics.data.v1alpha.Filter.OneFilterCase getOneFilterCase(); } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java index 84248ce72e32..1fdb957f40fb 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java @@ -76,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. *
      @@ -97,8 +97,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. *
      @@ -118,8 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. *
      @@ -138,8 +138,8 @@ public int getSamplingMetadatasCount() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. *
      @@ -158,8 +158,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -592,8 +592,8 @@ private void ensureSamplingMetadatasIsMutable() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -616,8 +616,8 @@ private void ensureSamplingMetadatasIsMutable() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -639,8 +639,8 @@ public int getSamplingMetadatasCount() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -662,8 +662,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(i * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -692,8 +692,8 @@ public Builder setSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -719,8 +719,8 @@ public Builder setSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -748,8 +748,8 @@ public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMe * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -778,8 +778,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -805,8 +805,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -832,8 +832,8 @@ public Builder addSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -859,8 +859,8 @@ public Builder addAllSamplingMetadatas( * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -885,8 +885,8 @@ public Builder clearSamplingMetadatas() { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -911,8 +911,8 @@ public Builder removeSamplingMetadatas(int index) { * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -931,8 +931,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -955,8 +955,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -979,8 +979,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -1000,8 +1000,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -1022,8 +1022,8 @@ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMet * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java index 4e2a776705b7..378ac3bd71e4 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java @@ -32,8 +32,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -49,8 +49,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -66,8 +66,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -83,8 +83,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * @@ -101,8 +101,8 @@ public interface FunnelResponseMetadataOrBuilder * [sampled](https://support.google.com/analytics/answer/13331292), this * describes what percentage of events were used in this funnel report. One * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. + * `samplingMetadatas` corresponds to a date range in the order that date + * ranges were specified in the request. * * However if the results are not sampled, this field will not be defined. * diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java index afe3584fdded..47d558af4f51 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_EmptyFilter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -342,7 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nalytics.data.v1alpha.FilterH\000B\006\n\004expr\"\\" + "\n\024FilterExpressionList\022D\n\013expressions\030\001 " + "\003(\0132/.google.analytics.data.v1alpha.Filt" - + "erExpression\"\307\002\n\006Filter\022\022\n\nfield_name\030\001 " + + "erExpression\"\213\003\n\006Filter\022\022\n\nfield_name\030\001 " + "\001(\t\022D\n\rstring_filter\030\002 \001(\0132+.google.anal" + "ytics.data.v1alpha.StringFilterH\000\022E\n\016in_" + "list_filter\030\003 \001(\0132+.google.analytics.dat" @@ -350,62 +354,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "er\030\004 \001(\0132,.google.analytics.data.v1alpha" + ".NumericFilterH\000\022F\n\016between_filter\030\005 \001(\013" + "2,.google.analytics.data.v1alpha.Between" - + "FilterH\000B\014\n\none_filter\"\210\002\n\014StringFilter\022" - + "I\n\nmatch_type\030\001 \001(\01625.google.analytics.d" - + "ata.v1alpha.StringFilter.MatchType\022\r\n\005va" - + "lue\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\tMa" - + "tchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005E" - + "XACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014" - + "\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL" - + "_REGEXP\020\006\"6\n\014InListFilter\022\016\n\006values\030\001 \003(" - + "\t\022\026\n\016case_sensitive\030\002 \001(\010\"\236\002\n\rNumericFil" - + "ter\022I\n\toperation\030\001 \001(\01626.google.analytic" - + "s.data.v1alpha.NumericFilter.Operation\022:" - + "\n\005value\030\002 \001(\0132+.google.analytics.data.v1" - + "alpha.NumericValue\"\205\001\n\tOperation\022\031\n\025OPER" - + "ATION_UNSPECIFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_T" - + "HAN\020\002\022\026\n\022LESS_THAN_OR_EQUAL\020\003\022\020\n\014GREATER" - + "_THAN\020\004\022\031\n\025GREATER_THAN_OR_EQUAL\020\005\"\322\003\n\007O" - + "rderBy\022F\n\006metric\030\001 \001(\01324.google.analytic" - + "s.data.v1alpha.OrderBy.MetricOrderByH\000\022L" - + "\n\tdimension\030\002 \001(\01327.google.analytics.dat" - + "a.v1alpha.OrderBy.DimensionOrderByH\000\022\014\n\004" - + "desc\030\004 \001(\010\032$\n\rMetricOrderBy\022\023\n\013metric_na" - + "me\030\001 \001(\t\032\354\001\n\020DimensionOrderBy\022\026\n\016dimensi" - + "on_name\030\001 \001(\t\022U\n\norder_type\030\002 \001(\0162A.goog" - + "le.analytics.data.v1alpha.OrderBy.Dimens" - + "ionOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORD" - + "ER_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022" - + "!\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NU" - + "MERIC\020\003B\016\n\014one_order_by\"\217\001\n\rBetweenFilte" - + "r\022?\n\nfrom_value\030\001 \001(\0132+.google.analytics" - + ".data.v1alpha.NumericValue\022=\n\010to_value\030\002" - + " \001(\0132+.google.analytics.data.v1alpha.Num" - + "ericValue\"J\n\014NumericValue\022\025\n\013int64_value" - + "\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone_" - + "value\"\335\001\n\nCohortSpec\0226\n\007cohorts\030\001 \003(\0132%." - + "google.analytics.data.v1alpha.Cohort\022B\n\r" - + "cohorts_range\030\002 \001(\0132+.google.analytics.d" - + "ata.v1alpha.CohortsRange\022S\n\026cohort_repor" - + "t_settings\030\003 \001(\01323.google.analytics.data" - + ".v1alpha.CohortReportSettings\"g\n\006Cohort\022" - + "\014\n\004name\030\001 \001(\t\022\021\n\tdimension\030\002 \001(\t\022<\n\ndate" - + "_range\030\003 \001(\0132(.google.analytics.data.v1a" - + "lpha.DateRange\"\326\001\n\014CohortsRange\022L\n\013granu" - + "larity\030\001 \001(\01627.google.analytics.data.v1a" - + "lpha.CohortsRange.Granularity\022\024\n\014start_o" - + "ffset\030\002 \001(\005\022\022\n\nend_offset\030\003 \001(\005\"N\n\013Granu" - + "larity\022\033\n\027GRANULARITY_UNSPECIFIED\020\000\022\t\n\005D" - + "AILY\020\001\022\n\n\006WEEKLY\020\002\022\013\n\007MONTHLY\020\003\"*\n\024Cohor" - + "tReportSettings\022\022\n\naccumulate\030\001 \001(\010\"\315\005\n\020" - + "ResponseMetaData\022 \n\030data_loss_from_other" - + "_row\030\003 \001(\010\022s\n\033schema_restriction_respons" - + "e\030\004 \001(\0132I.google.analytics.data.v1alpha." - + "ResponseMetaData.SchemaRestrictionRespon" - + "seH\000\210\001\001\022\032\n\rcurrency_code\030\005 \001(\tH\001\210\001\001\022\026\n\tt" - + "ime_zone\030\006 \001(\tH\002\210\001\001\022\031\n\014empty_reason\030\007 \001(" - + "\tH\003\210\001\001\022$\n\027subject_to_thresholding\030\010 \001(\010H" - + "\004\210\001\001\032\277\002\n\031SchemaRestrictionResponse\022\205\001\n\032a" + + "FilterH\000\022B\n\014empty_filter\030\006 \001(\0132*.google." + + "analytics.data.v1alpha.EmptyFilterH\000B\014\n\n" + + "one_filter\"\210\002\n\014StringFilter\022I\n\nmatch_typ" + + "e\030\001 \001(\01625.google.analytics.data.v1alpha." + + "StringFilter.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n" + + "\016case_sensitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026M" + + "ATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BE" + + "GINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004" + + "\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\"6\n" + + "\014InListFilter\022\016\n\006values\030\001 \003(\t\022\026\n\016case_se" + + "nsitive\030\002 \001(\010\"\236\002\n\rNumericFilter\022I\n\topera" + + "tion\030\001 \001(\01626.google.analytics.data.v1alp" + + "ha.NumericFilter.Operation\022:\n\005value\030\002 \001(" + + "\0132+.google.analytics.data.v1alpha.Numeri" + + "cValue\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPEC" + + "IFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LES" + + "S_THAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025G" + + "REATER_THAN_OR_EQUAL\020\005\"\322\003\n\007OrderBy\022F\n\006me" + + "tric\030\001 \001(\01324.google.analytics.data.v1alp" + + "ha.OrderBy.MetricOrderByH\000\022L\n\tdimension\030" + + "\002 \001(\01327.google.analytics.data.v1alpha.Or" + + "derBy.DimensionOrderByH\000\022\014\n\004desc\030\004 \001(\010\032$" + + "\n\rMetricOrderBy\022\023\n\013metric_name\030\001 \001(\t\032\354\001\n" + + "\020DimensionOrderBy\022\026\n\016dimension_name\030\001 \001(" + + "\t\022U\n\norder_type\030\002 \001(\0162A.google.analytics" + + ".data.v1alpha.OrderBy.DimensionOrderBy.O" + + "rderType\"i\n\tOrderType\022\032\n\026ORDER_TYPE_UNSP" + + "ECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!\n\035CASE_INSE" + + "NSITIVE_ALPHANUMERIC\020\002\022\013\n\007NUMERIC\020\003B\016\n\014o" + + "ne_order_by\"\217\001\n\rBetweenFilter\022?\n\nfrom_va" + + "lue\030\001 \001(\0132+.google.analytics.data.v1alph" + + "a.NumericValue\022=\n\010to_value\030\002 \001(\0132+.googl" + + "e.analytics.data.v1alpha.NumericValue\"\r\n" + + "\013EmptyFilter\"J\n\014NumericValue\022\025\n\013int64_va" + + "lue\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\to" + + "ne_value\"\335\001\n\nCohortSpec\0226\n\007cohorts\030\001 \003(\013" + + "2%.google.analytics.data.v1alpha.Cohort\022" + + "B\n\rcohorts_range\030\002 \001(\0132+.google.analytic" + + "s.data.v1alpha.CohortsRange\022S\n\026cohort_re" + + "port_settings\030\003 \001(\01323.google.analytics.d" + + "ata.v1alpha.CohortReportSettings\"g\n\006Coho" + + "rt\022\014\n\004name\030\001 \001(\t\022\021\n\tdimension\030\002 \001(\t\022<\n\nd" + + "ate_range\030\003 \001(\0132(.google.analytics.data." + + "v1alpha.DateRange\"\326\001\n\014CohortsRange\022L\n\013gr" + + "anularity\030\001 \001(\01627.google.analytics.data." + + "v1alpha.CohortsRange.Granularity\022\024\n\014star" + + "t_offset\030\002 \001(\005\022\022\n\nend_offset\030\003 \001(\005\"N\n\013Gr" + + "anularity\022\033\n\027GRANULARITY_UNSPECIFIED\020\000\022\t" + + "\n\005DAILY\020\001\022\n\n\006WEEKLY\020\002\022\013\n\007MONTHLY\020\003\"*\n\024Co" + + "hortReportSettings\022\022\n\naccumulate\030\001 \001(\010\"\232" + + "\006\n\020ResponseMetaData\022 \n\030data_loss_from_ot" + + "her_row\030\003 \001(\010\022s\n\033schema_restriction_resp" + + "onse\030\004 \001(\0132I.google.analytics.data.v1alp" + + "ha.ResponseMetaData.SchemaRestrictionRes" + + "ponseH\000\210\001\001\022\032\n\rcurrency_code\030\005 \001(\tH\001\210\001\001\022\026" + + "\n\ttime_zone\030\006 \001(\tH\002\210\001\001\022\031\n\014empty_reason\030\007" + + " \001(\tH\003\210\001\001\022$\n\027subject_to_thresholding\030\010 \001" + + "(\010H\004\210\001\001\022K\n\022sampling_metadatas\030\t \003(\0132/.go" + + "ogle.analytics.data.v1alpha.SamplingMeta" + + "data\032\277\002\n\031SchemaRestrictionResponse\022\205\001\n\032a" + "ctive_metric_restrictions\030\001 \003(\0132a.google" + ".analytics.data.v1alpha.ResponseMetaData" + ".SchemaRestrictionResponse.ActiveMetricR" @@ -771,6 +779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InListFilter", "NumericFilter", "BetweenFilter", + "EmptyFilter", "OneFilter", }); internal_static_google_analytics_data_v1alpha_StringFilter_descriptor = @@ -829,8 +838,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FromValue", "ToValue", }); - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = + internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_data_v1alpha_EmptyFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_EmptyFilter_descriptor, + new java.lang.String[] {}); + internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_NumericValue_descriptor, @@ -838,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Int64Value", "DoubleValue", "OneValue", }); internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor, @@ -846,7 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cohorts", "CohortsRange", "CohortReportSettings", }); internal_static_google_analytics_data_v1alpha_Cohort_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Cohort_descriptor, @@ -854,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Dimension", "DateRange", }); internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor, @@ -862,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Granularity", "StartOffset", "EndOffset", }); internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor, @@ -870,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Accumulate", }); internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor, @@ -881,6 +896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", "EmptyReason", "SubjectToThresholding", + "SamplingMetadatas", }); internal_static_google_analytics_data_v1alpha_ResponseMetaData_SchemaRestrictionResponse_descriptor = internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor @@ -903,7 +919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetricName", "RestrictedMetricTypes", }); internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor, @@ -911,7 +927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor, @@ -919,7 +935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", }); internal_static_google_analytics_data_v1alpha_Row_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Row_descriptor, @@ -927,7 +943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionValues", "MetricValues", }); internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor, @@ -935,7 +951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_MetricValue_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_MetricValue_descriptor, @@ -943,7 +959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "OneValue", }); internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor, @@ -956,7 +972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokensPerProjectPerHour", }); internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor, @@ -964,7 +980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Consumed", "Remaining", }); internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor, @@ -972,7 +988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BreakdownDimension", "Limit", }); internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor, @@ -980,7 +996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NextActionDimension", "Limit", }); internal_static_google_analytics_data_v1alpha_Funnel_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Funnel_descriptor, @@ -988,7 +1004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsOpenFunnel", "Steps", }); internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor, @@ -996,7 +1012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "IsDirectlyFollowedBy", "WithinDurationFromPriorStep", "FilterExpression", }); internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor, @@ -1004,7 +1020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DimensionHeaders", "MetricHeaders", "Rows", "Metadata", }); internal_static_google_analytics_data_v1alpha_UserSegment_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegment_descriptor, @@ -1012,7 +1028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor, @@ -1020,7 +1036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", "AndSequenceGroups", }); internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor, @@ -1028,7 +1044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor, @@ -1036,7 +1052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SequenceScoping", "SequenceMaximumDuration", "UserSequenceSteps", }); internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor, @@ -1044,7 +1060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsDirectlyFollowedBy", "StepScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor, @@ -1052,7 +1068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserExclusionDuration", "UserExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor, @@ -1060,7 +1076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor, @@ -1068,7 +1084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", }); internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor, @@ -1076,7 +1092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor, @@ -1084,7 +1100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionExclusionDuration", "SessionExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_EventSegment_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegment_descriptor, @@ -1092,7 +1108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventInclusionCriteria", "Exclusion", }); internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor, @@ -1100,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndConditionGroups", }); internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor, @@ -1108,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionScoping", "SegmentFilterExpression", }); internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor, @@ -1116,7 +1132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventExclusionDuration", "EventExclusionCriteria", }); internal_static_google_analytics_data_v1alpha_Segment_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_Segment_descriptor, @@ -1124,7 +1140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UserSegment", "SessionSegment", "EventSegment", "OneSegmentScope", }); internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor, @@ -1132,7 +1148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "SegmentFilter", "SegmentEventFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor, @@ -1140,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor, @@ -1154,7 +1170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor, @@ -1162,7 +1178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AtAnyPointInTime", }); internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor, @@ -1170,7 +1186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventName", "SegmentParameterFilterExpression", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor, @@ -1178,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "SegmentParameterFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor, @@ -1186,7 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor, @@ -1202,7 +1218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor, @@ -1210,7 +1226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InAnyNDayPeriod", }); internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor, @@ -1223,7 +1239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expr", }); internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor, @@ -1231,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor, @@ -1244,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor, @@ -1252,7 +1268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventName", "FunnelParameterFilterExpression", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor, @@ -1260,7 +1276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndGroup", "OrGroup", "NotExpression", "FunnelParameterFilter", "Expr", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor, @@ -1268,7 +1284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Expressions", }); internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor, @@ -1283,7 +1299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OneFilter", }); internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor, @@ -1291,7 +1307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SamplingMetadatas", }); internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor, diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java index 45fe61a81aea..cf6b0983ddd6 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java @@ -42,6 +42,7 @@ private ResponseMetaData() { currencyCode_ = ""; timeZone_ = ""; emptyReason_ = ""; + samplingMetadatas_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2964,6 +2965,114 @@ public boolean getSubjectToThresholding() { return subjectToThresholding_; } + public static final int SAMPLING_METADATAS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List samplingMetadatas_; + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + @java.lang.Override + public java.util.List + getSamplingMetadatasList() { + return samplingMetadatas_; + } + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + @java.lang.Override + public java.util.List + getSamplingMetadatasOrBuilderList() { + return samplingMetadatas_; + } + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + @java.lang.Override + public int getSamplingMetadatasCount() { + return samplingMetadatas_.size(); + } + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { + return samplingMetadatas_.get(index); + } + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( + int index) { + return samplingMetadatas_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2996,6 +3105,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(8, subjectToThresholding_); } + for (int i = 0; i < samplingMetadatas_.size(); i++) { + output.writeMessage(9, samplingMetadatas_.get(i)); + } getUnknownFields().writeTo(output); } @@ -3025,6 +3137,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, subjectToThresholding_); } + for (int i = 0; i < samplingMetadatas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, samplingMetadatas_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3063,6 +3179,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSubjectToThresholding()) { if (getSubjectToThresholding() != other.getSubjectToThresholding()) return false; } + if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3096,6 +3213,10 @@ public int hashCode() { hash = (37 * hash) + SUBJECT_TO_THRESHOLDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSubjectToThresholding()); } + if (getSamplingMetadatasCount() > 0) { + hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER; + hash = (53 * hash) + getSamplingMetadatasList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3237,6 +3358,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaRestrictionResponseFieldBuilder(); + getSamplingMetadatasFieldBuilder(); } } @@ -3254,6 +3376,13 @@ public Builder clear() { timeZone_ = ""; emptyReason_ = ""; subjectToThresholding_ = false; + if (samplingMetadatasBuilder_ == null) { + samplingMetadatas_ = java.util.Collections.emptyList(); + } else { + samplingMetadatas_ = null; + samplingMetadatasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -3281,6 +3410,7 @@ public com.google.analytics.data.v1alpha.ResponseMetaData build() { public com.google.analytics.data.v1alpha.ResponseMetaData buildPartial() { com.google.analytics.data.v1alpha.ResponseMetaData result = new com.google.analytics.data.v1alpha.ResponseMetaData(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -3288,6 +3418,19 @@ public com.google.analytics.data.v1alpha.ResponseMetaData buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.analytics.data.v1alpha.ResponseMetaData result) { + if (samplingMetadatasBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + samplingMetadatas_ = java.util.Collections.unmodifiableList(samplingMetadatas_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.samplingMetadatas_ = samplingMetadatas_; + } else { + result.samplingMetadatas_ = samplingMetadatasBuilder_.build(); + } + } + private void buildPartial0(com.google.analytics.data.v1alpha.ResponseMetaData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -3390,6 +3533,33 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.ResponseMetaData othe if (other.hasSubjectToThresholding()) { setSubjectToThresholding(other.getSubjectToThresholding()); } + if (samplingMetadatasBuilder_ == null) { + if (!other.samplingMetadatas_.isEmpty()) { + if (samplingMetadatas_.isEmpty()) { + samplingMetadatas_ = other.samplingMetadatas_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.addAll(other.samplingMetadatas_); + } + onChanged(); + } + } else { + if (!other.samplingMetadatas_.isEmpty()) { + if (samplingMetadatasBuilder_.isEmpty()) { + samplingMetadatasBuilder_.dispose(); + samplingMetadatasBuilder_ = null; + samplingMetadatas_ = other.samplingMetadatas_; + bitField0_ = (bitField0_ & ~0x00000040); + samplingMetadatasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSamplingMetadatasFieldBuilder() + : null; + } else { + samplingMetadatasBuilder_.addAllMessages(other.samplingMetadatas_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3453,6 +3623,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 64 + case 74: + { + com.google.analytics.data.v1alpha.SamplingMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.SamplingMetadata.parser(), + extensionRegistry); + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(m); + } else { + samplingMetadatasBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4327,6 +4511,495 @@ public Builder clearSubjectToThresholding() { return this; } + private java.util.List samplingMetadatas_ = + java.util.Collections.emptyList(); + + private void ensureSamplingMetadatasIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + samplingMetadatas_ = + new java.util.ArrayList( + samplingMetadatas_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> + samplingMetadatasBuilder_; + + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public java.util.List + getSamplingMetadatasList() { + if (samplingMetadatasBuilder_ == null) { + return java.util.Collections.unmodifiableList(samplingMetadatas_); + } else { + return samplingMetadatasBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public int getSamplingMetadatasCount() { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.size(); + } else { + return samplingMetadatasBuilder_.getCount(); + } + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.get(index); + } else { + return samplingMetadatasBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder setSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.set(index, value); + onChanged(); + } else { + samplingMetadatasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder setSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.set(index, builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(value); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder addSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(index, value); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder addSamplingMetadatas( + com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder addSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(index, builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder addAllSamplingMetadatas( + java.lang.Iterable values) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, samplingMetadatas_); + onChanged(); + } else { + samplingMetadatasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder clearSamplingMetadatas() { + if (samplingMetadatasBuilder_ == null) { + samplingMetadatas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + samplingMetadatasBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public Builder removeSamplingMetadatas(int index) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.remove(index); + onChanged(); + } else { + samplingMetadatasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMetadatasBuilder( + int index) { + return getSamplingMetadatasFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder + getSamplingMetadatasOrBuilder(int index) { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.get(index); + } else { + return samplingMetadatasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public java.util.List + getSamplingMetadatasOrBuilderList() { + if (samplingMetadatasBuilder_ != null) { + return samplingMetadatasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(samplingMetadatas_); + } + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder + addSamplingMetadatasBuilder() { + return getSamplingMetadatasFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMetadatasBuilder( + int index) { + return getSamplingMetadatasFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); + } + /** + * + * + *
      +     * If this report's results are
      +     * [sampled](https://support.google.com/analytics/answer/13331292), this
      +     * describes the percentage of events used in this report. One
      +     * `samplingMetadatas` is populated for each date range. Each
      +     * `samplingMetadatas` corresponds to a date range in the order that date
      +     * ranges were specified in the request.
      +     *
      +     * However if the results are not sampled, this field will not be defined.
      +     * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + public java.util.List + getSamplingMetadatasBuilderList() { + return getSamplingMetadatasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> + getSamplingMetadatasFieldBuilder() { + if (samplingMetadatasBuilder_ == null) { + samplingMetadatasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>( + samplingMetadatas_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + samplingMetadatas_ = null; + } + return samplingMetadatasBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java index 243a087563cf..2feebdb9bdc7 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java @@ -284,4 +284,92 @@ public interface ResponseMetaDataOrBuilder * @return The subjectToThresholding. */ boolean getSubjectToThresholding(); + + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + java.util.List getSamplingMetadatasList(); + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index); + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + int getSamplingMetadatasCount(); + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + java.util.List + getSamplingMetadatasOrBuilderList(); + /** + * + * + *
      +   * If this report's results are
      +   * [sampled](https://support.google.com/analytics/answer/13331292), this
      +   * describes the percentage of events used in this report. One
      +   * `samplingMetadatas` is populated for each date range. Each
      +   * `samplingMetadatas` corresponds to a date range in the order that date
      +   * ranges were specified in the request.
      +   *
      +   * However if the results are not sampled, this field will not be defined.
      +   * 
      + * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 9; + */ + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( + int index); } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto index 1ec409c3ca89..ba0aa3341287 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -201,6 +201,9 @@ message Filter { // A filter for between two values. BetweenFilter between_filter = 5; + + // A filter for empty values such as "(not set)" and "" values. + EmptyFilter empty_filter = 6; } } @@ -341,6 +344,9 @@ message BetweenFilter { NumericValue to_value = 2; } +// Filter for empty values. +message EmptyFilter {} + // To represent a number. message NumericValue { // One of a numeric value @@ -554,6 +560,16 @@ message ResponseMetaData { // Demographics and // Interests](https://support.google.com/analytics/answer/2799357). optional bool subject_to_thresholding = 8; + + // If this report's results are + // [sampled](https://support.google.com/analytics/answer/13331292), this + // describes the percentage of events used in this report. One + // `samplingMetadatas` is populated for each date range. Each + // `samplingMetadatas` corresponds to a date range in the order that date + // ranges were specified in the request. + // + // However if the results are not sampled, this field will not be defined. + repeated SamplingMetadata sampling_metadatas = 9; } // Describes a dimension column in the report. Dimensions requested in a report @@ -1472,8 +1488,8 @@ message FunnelResponseMetadata { // [sampled](https://support.google.com/analytics/answer/13331292), this // describes what percentage of events were used in this funnel report. One // `samplingMetadatas` is populated for each date range. Each - // `samplingMetadatas` corresponds to a date range in order that date ranges - // were specified in the request. + // `samplingMetadatas` corresponds to a date range in the order that date + // ranges were specified in the request. // // However if the results are not sampled, this field will not be defined. repeated SamplingMetadata sampling_metadatas = 1; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java index f538eb419571..d67664f142f0 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -103,7 +103,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -632,7 +632,7 @@ public Builder mergeFrom(
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -662,7 +662,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -692,7 +692,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -721,7 +721,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -746,7 +746,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java
      index 680570629f10..da468e1ff67e 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java
      @@ -28,7 +28,7 @@ public interface BatchRunPivotReportsRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -48,7 +48,7 @@ public interface BatchRunPivotReportsRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java
      index 684fcda273c1..756ad584e4d4 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java
      @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -103,7 +103,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -629,7 +629,7 @@ public Builder mergeFrom(
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -659,7 +659,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -689,7 +689,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -718,7 +718,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -743,7 +743,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java
      index 26b9b1c953bc..e88fc10804e0 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java
      @@ -28,7 +28,7 @@ public interface BatchRunReportsRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -48,7 +48,7 @@ public interface BatchRunReportsRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java
      index 96b8e528f12b..0826e8610476 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java
      @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked. To
      +   * A Google Analytics property identifier whose events are tracked. To
          * learn more, see [where to find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          * `property` should be the same value as in your `runReport` request.
      @@ -106,7 +106,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked. To
      +   * A Google Analytics property identifier whose events are tracked. To
          * learn more, see [where to find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          * `property` should be the same value as in your `runReport` request.
      @@ -1022,7 +1022,7 @@ public Builder mergeFrom(
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked. To
      +     * A Google Analytics property identifier whose events are tracked. To
            * learn more, see [where to find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            * `property` should be the same value as in your `runReport` request.
      @@ -1049,7 +1049,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked. To
      +     * A Google Analytics property identifier whose events are tracked. To
            * learn more, see [where to find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            * `property` should be the same value as in your `runReport` request.
      @@ -1076,7 +1076,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked. To
      +     * A Google Analytics property identifier whose events are tracked. To
            * learn more, see [where to find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            * `property` should be the same value as in your `runReport` request.
      @@ -1102,7 +1102,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked. To
      +     * A Google Analytics property identifier whose events are tracked. To
            * learn more, see [where to find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            * `property` should be the same value as in your `runReport` request.
      @@ -1124,7 +1124,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked. To
      +     * A Google Analytics property identifier whose events are tracked. To
            * learn more, see [where to find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            * `property` should be the same value as in your `runReport` request.
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java
      index 3d193c7c2e12..73b8c982404b 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java
      @@ -28,7 +28,7 @@ public interface CheckCompatibilityRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked. To
      +   * A Google Analytics property identifier whose events are tracked. To
          * learn more, see [where to find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          * `property` should be the same value as in your `runReport` request.
      @@ -45,7 +45,7 @@ public interface CheckCompatibilityRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked. To
      +   * A Google Analytics property identifier whose events are tracked. To
          * learn more, see [where to find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          * `property` should be the same value as in your `runReport` request.
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java
      index 0277530daddc..39ae9bd16a83 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java
      @@ -4336,6 +4336,429 @@ public com.google.analytics.data.v1beta.Filter.BetweenFilter getDefaultInstanceF
           }
         }
       
      +  public interface EmptyFilterOrBuilder
      +      extends
      +      // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.Filter.EmptyFilter)
      +      com.google.protobuf.MessageOrBuilder {}
      +  /**
      +   *
      +   *
      +   * 
      +   * Filter for empty values.
      +   * 
      + * + * Protobuf type {@code google.analytics.data.v1beta.Filter.EmptyFilter} + */ + public static final class EmptyFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.Filter.EmptyFilter) + EmptyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmptyFilter.newBuilder() to construct. + private EmptyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmptyFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmptyFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.ReportingApiProto + .internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.ReportingApiProto + .internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.Filter.EmptyFilter.class, + com.google.analytics.data.v1beta.Filter.EmptyFilter.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.analytics.data.v1beta.Filter.EmptyFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1beta.Filter.EmptyFilter other = + (com.google.analytics.data.v1beta.Filter.EmptyFilter) 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.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter 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.analytics.data.v1beta.Filter.EmptyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter 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.analytics.data.v1beta.Filter.EmptyFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter 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.analytics.data.v1beta.Filter.EmptyFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter 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.analytics.data.v1beta.Filter.EmptyFilter 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; + } + /** + * + * + *
      +     * Filter for empty values.
      +     * 
      + * + * Protobuf type {@code google.analytics.data.v1beta.Filter.EmptyFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1beta.Filter.EmptyFilter) + com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.ReportingApiProto + .internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.ReportingApiProto + .internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.Filter.EmptyFilter.class, + com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1beta.Filter.EmptyFilter.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.analytics.data.v1beta.ReportingApiProto + .internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilter build() { + com.google.analytics.data.v1beta.Filter.EmptyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilter buildPartial() { + com.google.analytics.data.v1beta.Filter.EmptyFilter result = + new com.google.analytics.data.v1beta.Filter.EmptyFilter(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.analytics.data.v1beta.Filter.EmptyFilter) { + return mergeFrom((com.google.analytics.data.v1beta.Filter.EmptyFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.EmptyFilter other) { + if (other == com.google.analytics.data.v1beta.Filter.EmptyFilter.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.analytics.data.v1beta.Filter.EmptyFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.Filter.EmptyFilter) + private static final com.google.analytics.data.v1beta.Filter.EmptyFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.Filter.EmptyFilter(); + } + + public static com.google.analytics.data.v1beta.Filter.EmptyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmptyFilter 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.analytics.data.v1beta.Filter.EmptyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int oneFilterCase_ = 0; @SuppressWarnings("serial") @@ -4349,6 +4772,7 @@ public enum OneFilterCase IN_LIST_FILTER(4), NUMERIC_FILTER(5), BETWEEN_FILTER(6), + EMPTY_FILTER(8), ONEFILTER_NOT_SET(0); private final int value; @@ -4375,6 +4799,8 @@ public static OneFilterCase forNumber(int value) { return NUMERIC_FILTER; case 6: return BETWEEN_FILTER; + case 8: + return EMPTY_FILTER; case 0: return ONEFILTER_NOT_SET; default: @@ -4658,6 +5084,57 @@ public com.google.analytics.data.v1beta.Filter.BetweenFilter getBetweenFilter() return com.google.analytics.data.v1beta.Filter.BetweenFilter.getDefaultInstance(); } + public static final int EMPTY_FILTER_FIELD_NUMBER = 8; + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return Whether the emptyFilter field is set. + */ + @java.lang.Override + public boolean hasEmptyFilter() { + return oneFilterCase_ == 8; + } + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return The emptyFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilter getEmptyFilter() { + if (oneFilterCase_ == 8) { + return (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder getEmptyFilterOrBuilder() { + if (oneFilterCase_ == 8) { + return (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4687,6 +5164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 6) { output.writeMessage(6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); } + if (oneFilterCase_ == 8) { + output.writeMessage(8, (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_); + } getUnknownFields().writeTo(output); } @@ -4719,6 +5199,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); } + if (oneFilterCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4749,6 +5234,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; break; + case 8: + if (!getEmptyFilter().equals(other.getEmptyFilter())) return false; + break; case 0: default: } @@ -4782,6 +5270,10 @@ public int hashCode() { hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; hash = (53 * hash) + getBetweenFilter().hashCode(); break; + case 8: + hash = (37 * hash) + EMPTY_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEmptyFilter().hashCode(); + break; case 0: default: } @@ -4937,6 +5429,9 @@ public Builder clear() { if (betweenFilterBuilder_ != null) { betweenFilterBuilder_.clear(); } + if (emptyFilterBuilder_ != null) { + emptyFilterBuilder_.clear(); + } oneFilterCase_ = 0; oneFilter_ = null; return this; @@ -4996,6 +5491,9 @@ private void buildPartialOneofs(com.google.analytics.data.v1beta.Filter result) if (oneFilterCase_ == 6 && betweenFilterBuilder_ != null) { result.oneFilter_ = betweenFilterBuilder_.build(); } + if (oneFilterCase_ == 8 && emptyFilterBuilder_ != null) { + result.oneFilter_ = emptyFilterBuilder_.build(); + } } @java.lang.Override @@ -5069,6 +5567,11 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter other) { mergeBetweenFilter(other.getBetweenFilter()); break; } + case EMPTY_FILTER: + { + mergeEmptyFilter(other.getEmptyFilter()); + break; + } case ONEFILTER_NOT_SET: { break; @@ -5130,6 +5633,12 @@ public Builder mergeFrom( oneFilterCase_ = 6; break; } // case 50 + case 66: + { + input.readMessage(getEmptyFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6138,6 +6647,216 @@ public com.google.analytics.data.v1beta.Filter.BetweenFilter.Builder getBetweenF return betweenFilterBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.Filter.EmptyFilter, + com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder, + com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder> + emptyFilterBuilder_; + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return Whether the emptyFilter field is set. + */ + @java.lang.Override + public boolean hasEmptyFilter() { + return oneFilterCase_ == 8; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return The emptyFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilter getEmptyFilter() { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 8) { + return (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 8) { + return emptyFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + public Builder setEmptyFilter(com.google.analytics.data.v1beta.Filter.EmptyFilter value) { + if (emptyFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + emptyFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 8; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + public Builder setEmptyFilter( + com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder builderForValue) { + if (emptyFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + emptyFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 8; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + public Builder mergeEmptyFilter(com.google.analytics.data.v1beta.Filter.EmptyFilter value) { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 8 + && oneFilter_ + != com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1beta.Filter.EmptyFilter.newBuilder( + (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 8) { + emptyFilterBuilder_.mergeFrom(value); + } else { + emptyFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 8; + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + public Builder clearEmptyFilter() { + if (emptyFilterBuilder_ == null) { + if (oneFilterCase_ == 8) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 8) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + emptyFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + public com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder getEmptyFilterBuilder() { + return getEmptyFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + @java.lang.Override + public com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder getEmptyFilterOrBuilder() { + if ((oneFilterCase_ == 8) && (emptyFilterBuilder_ != null)) { + return emptyFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 8) { + return (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_; + } + return com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + } + /** + * + * + *
      +     * A filter for empty values such as "(not set)" and "" values.
      +     * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.Filter.EmptyFilter, + com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder, + com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder> + getEmptyFilterFieldBuilder() { + if (emptyFilterBuilder_ == null) { + if (!(oneFilterCase_ == 8)) { + oneFilter_ = com.google.analytics.data.v1beta.Filter.EmptyFilter.getDefaultInstance(); + } + emptyFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.Filter.EmptyFilter, + com.google.analytics.data.v1beta.Filter.EmptyFilter.Builder, + com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder>( + (com.google.analytics.data.v1beta.Filter.EmptyFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 8; + onChanged(); + return emptyFilterBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java index 40e9ee1eb5df..68b560138665 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java @@ -199,5 +199,40 @@ public interface FilterOrBuilder */ com.google.analytics.data.v1beta.Filter.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return Whether the emptyFilter field is set. + */ + boolean hasEmptyFilter(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + * + * @return The emptyFilter. + */ + com.google.analytics.data.v1beta.Filter.EmptyFilter getEmptyFilter(); + /** + * + * + *
      +   * A filter for empty values such as "(not set)" and "" values.
      +   * 
      + * + * .google.analytics.data.v1beta.Filter.EmptyFilter empty_filter = 8; + */ + com.google.analytics.data.v1beta.Filter.EmptyFilterOrBuilder getEmptyFilterOrBuilder(); + com.google.analytics.data.v1beta.Filter.OneFilterCase getOneFilterCase(); } diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java index 59bcb38257c9..6bbf5e18d81e 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
          * Required. The resource name of the metadata to retrieve. This name field is
          * specified in the URL path and not URL parameters. Property is a numeric
      -   * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +   * Google Analytics property identifier. To learn more, see [where to find
          * your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          *
      @@ -108,7 +108,7 @@ public java.lang.String getName() {
          * 
          * Required. The resource name of the metadata to retrieve. This name field is
          * specified in the URL path and not URL parameters. Property is a numeric
      -   * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +   * Google Analytics property identifier. To learn more, see [where to find
          * your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          *
      @@ -487,7 +487,7 @@ public Builder mergeFrom(
            * 
            * Required. The resource name of the metadata to retrieve. This name field is
            * specified in the URL path and not URL parameters. Property is a numeric
      -     * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +     * Google Analytics property identifier. To learn more, see [where to find
            * your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            *
      @@ -521,7 +521,7 @@ public java.lang.String getName() {
            * 
            * Required. The resource name of the metadata to retrieve. This name field is
            * specified in the URL path and not URL parameters. Property is a numeric
      -     * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +     * Google Analytics property identifier. To learn more, see [where to find
            * your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            *
      @@ -555,7 +555,7 @@ public com.google.protobuf.ByteString getNameBytes() {
            * 
            * Required. The resource name of the metadata to retrieve. This name field is
            * specified in the URL path and not URL parameters. Property is a numeric
      -     * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +     * Google Analytics property identifier. To learn more, see [where to find
            * your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            *
      @@ -588,7 +588,7 @@ public Builder setName(java.lang.String value) {
            * 
            * Required. The resource name of the metadata to retrieve. This name field is
            * specified in the URL path and not URL parameters. Property is a numeric
      -     * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +     * Google Analytics property identifier. To learn more, see [where to find
            * your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            *
      @@ -617,7 +617,7 @@ public Builder clearName() {
            * 
            * Required. The resource name of the metadata to retrieve. This name field is
            * specified in the URL path and not URL parameters. Property is a numeric
      -     * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +     * Google Analytics property identifier. To learn more, see [where to find
            * your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
            *
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java
      index a9766cb8dc54..b630ffed6d9b 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java
      @@ -30,7 +30,7 @@ public interface GetMetadataRequestOrBuilder
          * 
          * Required. The resource name of the metadata to retrieve. This name field is
          * specified in the URL path and not URL parameters. Property is a numeric
      -   * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +   * Google Analytics property identifier. To learn more, see [where to find
          * your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          *
      @@ -54,7 +54,7 @@ public interface GetMetadataRequestOrBuilder
          * 
          * Required. The resource name of the metadata to retrieve. This name field is
          * specified in the URL path and not URL parameters. Property is a numeric
      -   * Google Analytics GA4 Property identifier. To learn more, see [where to find
      +   * Google Analytics property identifier. To learn more, see [where to find
          * your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
          *
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java
      index 52b715893758..dcea64c84806 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java
      @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
             internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor;
         static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_fieldAccessorTable;
      +  static final com.google.protobuf.Descriptors.Descriptor
      +      internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor;
      +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      +      internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_fieldAccessorTable;
         static final com.google.protobuf.Descriptors.Descriptor
             internal_static_google_analytics_data_v1beta_OrderBy_descriptor;
         static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      @@ -248,7 +252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                 + "\0132$.google.analytics.data.v1beta.FilterH"
                 + "\000B\006\n\004expr\"[\n\024FilterExpressionList\022C\n\013exp"
                 + "ressions\030\001 \003(\0132..google.analytics.data.v"
      -          + "1beta.FilterExpression\"\336\010\n\006Filter\022\022\n\nfie"
      +          + "1beta.FilterExpression\"\267\t\n\006Filter\022\022\n\nfie"
                 + "ld_name\030\001 \001(\t\022J\n\rstring_filter\030\003 \001(\01321.g"
                 + "oogle.analytics.data.v1beta.Filter.Strin"
                 + "gFilterH\000\022K\n\016in_list_filter\030\004 \001(\01321.goog"
      @@ -257,160 +261,162 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                 + "analytics.data.v1beta.Filter.NumericFilt"
                 + "erH\000\022L\n\016between_filter\030\006 \001(\01322.google.an"
                 + "alytics.data.v1beta.Filter.BetweenFilter"
      -          + "H\000\032\216\002\n\014StringFilter\022O\n\nmatch_type\030\001 \001(\0162"
      -          + ";.google.analytics.data.v1beta.Filter.St"
      -          + "ringFilter.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n\016c"
      -          + "ase_sensitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026MAT"
      -          + "CH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGI"
      -          + "NS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017"
      -          + "\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\0326\n\014I"
      -          + "nListFilter\022\016\n\006values\030\001 \003(\t\022\026\n\016case_sens"
      -          + "itive\030\002 \001(\010\032\243\002\n\rNumericFilter\022O\n\toperati"
      -          + "on\030\001 \001(\0162<.google.analytics.data.v1beta."
      -          + "Filter.NumericFilter.Operation\0229\n\005value\030"
      -          + "\002 \001(\0132*.google.analytics.data.v1beta.Num"
      -          + "ericValue\"\205\001\n\tOperation\022\031\n\025OPERATION_UNS"
      -          + "PECIFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022"
      -          + "LESS_THAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031"
      -          + "\n\025GREATER_THAN_OR_EQUAL\020\005\032\215\001\n\rBetweenFil"
      -          + "ter\022>\n\nfrom_value\030\001 \001(\0132*.google.analyti"
      -          + "cs.data.v1beta.NumericValue\022<\n\010to_value\030"
      -          + "\002 \001(\0132*.google.analytics.data.v1beta.Num"
      -          + "ericValueB\014\n\none_filter\"\332\005\n\007OrderBy\022E\n\006m"
      -          + "etric\030\001 \001(\01323.google.analytics.data.v1be"
      -          + "ta.OrderBy.MetricOrderByH\000\022K\n\tdimension\030"
      -          + "\002 \001(\01326.google.analytics.data.v1beta.Ord"
      -          + "erBy.DimensionOrderByH\000\022C\n\005pivot\030\003 \001(\01322"
      -          + ".google.analytics.data.v1beta.OrderBy.Pi"
      -          + "votOrderByH\000\022\014\n\004desc\030\004 \001(\010\032$\n\rMetricOrde"
      -          + "rBy\022\023\n\013metric_name\030\001 \001(\t\032\353\001\n\020DimensionOr"
      -          + "derBy\022\026\n\016dimension_name\030\001 \001(\t\022T\n\norder_t"
      -          + "ype\030\002 \001(\0162@.google.analytics.data.v1beta"
      -          + ".OrderBy.DimensionOrderBy.OrderType\"i\n\tO"
      -          + "rderType\022\032\n\026ORDER_TYPE_UNSPECIFIED\020\000\022\020\n\014"
      -          + "ALPHANUMERIC\020\001\022!\n\035CASE_INSENSITIVE_ALPHA"
      -          + "NUMERIC\020\002\022\013\n\007NUMERIC\020\003\032\303\001\n\014PivotOrderBy\022"
      -          + "\023\n\013metric_name\030\001 \001(\t\022[\n\020pivot_selections"
      -          + "\030\002 \003(\0132A.google.analytics.data.v1beta.Or"
      -          + "derBy.PivotOrderBy.PivotSelection\032A\n\016Piv"
      -          + "otSelection\022\026\n\016dimension_name\030\001 \001(\t\022\027\n\017d"
      -          + "imension_value\030\002 \001(\tB\016\n\014one_order_by\"\303\001\n"
      -          + "\005Pivot\022\023\n\013field_names\030\001 \003(\t\0228\n\torder_bys"
      -          + "\030\002 \003(\0132%.google.analytics.data.v1beta.Or"
      -          + "derBy\022\016\n\006offset\030\003 \001(\003\022\r\n\005limit\030\004 \001(\003\022L\n\023"
      -          + "metric_aggregations\030\005 \003(\0162/.google.analy"
      -          + "tics.data.v1beta.MetricAggregation\"\332\001\n\nC"
      -          + "ohortSpec\0225\n\007cohorts\030\001 \003(\0132$.google.anal"
      -          + "ytics.data.v1beta.Cohort\022A\n\rcohorts_rang"
      -          + "e\030\002 \001(\0132*.google.analytics.data.v1beta.C"
      -          + "ohortsRange\022R\n\026cohort_report_settings\030\003 "
      -          + "\001(\01322.google.analytics.data.v1beta.Cohor"
      -          + "tReportSettings\"f\n\006Cohort\022\014\n\004name\030\001 \001(\t\022"
      -          + "\021\n\tdimension\030\002 \001(\t\022;\n\ndate_range\030\003 \001(\0132\'"
      -          + ".google.analytics.data.v1beta.DateRange\""
      -          + "\325\001\n\014CohortsRange\022K\n\013granularity\030\001 \001(\01626."
      -          + "google.analytics.data.v1beta.CohortsRang"
      -          + "e.Granularity\022\024\n\014start_offset\030\002 \001(\005\022\022\n\ne"
      -          + "nd_offset\030\003 \001(\005\"N\n\013Granularity\022\033\n\027GRANUL"
      -          + "ARITY_UNSPECIFIED\020\000\022\t\n\005DAILY\020\001\022\n\n\006WEEKLY"
      -          + "\020\002\022\013\n\007MONTHLY\020\003\"*\n\024CohortReportSettings\022"
      -          + "\022\n\naccumulate\030\001 \001(\010\"\226\006\n\020ResponseMetaData"
      -          + "\022 \n\030data_loss_from_other_row\030\003 \001(\010\022r\n\033sc"
      -          + "hema_restriction_response\030\004 \001(\0132H.google"
      -          + ".analytics.data.v1beta.ResponseMetaData."
      -          + "SchemaRestrictionResponseH\000\210\001\001\022\032\n\rcurren"
      -          + "cy_code\030\005 \001(\tH\001\210\001\001\022\026\n\ttime_zone\030\006 \001(\tH\002\210"
      -          + "\001\001\022\031\n\014empty_reason\030\007 \001(\tH\003\210\001\001\022$\n\027subject"
      -          + "_to_thresholding\030\010 \001(\010H\004\210\001\001\022J\n\022sampling_"
      -          + "metadatas\030\t \003(\0132..google.analytics.data."
      -          + "v1beta.SamplingMetadata\032\275\002\n\031SchemaRestri"
      -          + "ctionResponse\022\204\001\n\032active_metric_restrict"
      -          + "ions\030\001 \003(\0132`.google.analytics.data.v1bet"
      -          + "a.ResponseMetaData.SchemaRestrictionResp"
      -          + "onse.ActiveMetricRestriction\032\230\001\n\027ActiveM"
      -          + "etricRestriction\022\030\n\013metric_name\030\001 \001(\tH\000\210"
      -          + "\001\001\022S\n\027restricted_metric_types\030\002 \003(\01622.go"
      -          + "ogle.analytics.data.v1beta.RestrictedMet"
      -          + "ricTypeB\016\n\014_metric_nameB\036\n\034_schema_restr"
      -          + "iction_responseB\020\n\016_currency_codeB\014\n\n_ti"
      -          + "me_zoneB\017\n\r_empty_reasonB\032\n\030_subject_to_"
      -          + "thresholding\"K\n\020SamplingMetadata\022\032\n\022samp"
      -          + "les_read_count\030\001 \001(\003\022\033\n\023sampling_space_s"
      -          + "ize\030\002 \001(\003\"\037\n\017DimensionHeader\022\014\n\004name\030\001 \001"
      -          + "(\t\"T\n\014MetricHeader\022\014\n\004name\030\001 \001(\t\0226\n\004type"
      -          + "\030\002 \001(\0162(.google.analytics.data.v1beta.Me"
      -          + "tricType\"u\n\013PivotHeader\022S\n\027pivot_dimensi"
      -          + "on_headers\030\001 \003(\01322.google.analytics.data"
      -          + ".v1beta.PivotDimensionHeader\022\021\n\trow_coun"
      -          + "t\030\002 \001(\005\"^\n\024PivotDimensionHeader\022F\n\020dimen"
      -          + "sion_values\030\001 \003(\0132,.google.analytics.dat"
      -          + "a.v1beta.DimensionValue\"\217\001\n\003Row\022F\n\020dimen"
      -          + "sion_values\030\001 \003(\0132,.google.analytics.dat"
      -          + "a.v1beta.DimensionValue\022@\n\rmetric_values"
      -          + "\030\002 \003(\0132).google.analytics.data.v1beta.Me"
      -          + "tricValue\".\n\016DimensionValue\022\017\n\005value\030\001 \001"
      -          + "(\tH\000B\013\n\tone_value\"+\n\013MetricValue\022\017\n\005valu"
      -          + "e\030\004 \001(\tH\000B\013\n\tone_value\"J\n\014NumericValue\022\025"
      -          + "\n\013int64_value\030\001 \001(\003H\000\022\026\n\014double_value\030\002 "
      -          + "\001(\001H\000B\013\n\tone_value\"\343\003\n\rPropertyQuota\022A\n\016"
      -          + "tokens_per_day\030\001 \001(\0132).google.analytics."
      -          + "data.v1beta.QuotaStatus\022B\n\017tokens_per_ho"
      -          + "ur\030\002 \001(\0132).google.analytics.data.v1beta."
      -          + "QuotaStatus\022F\n\023concurrent_requests\030\003 \001(\013"
      -          + "2).google.analytics.data.v1beta.QuotaSta"
      -          + "tus\022U\n\"server_errors_per_project_per_hou"
      -          + "r\030\004 \001(\0132).google.analytics.data.v1beta.Q"
      -          + "uotaStatus\022\\\n)potentially_thresholded_re"
      -          + "quests_per_hour\030\005 \001(\0132).google.analytics"
      -          + ".data.v1beta.QuotaStatus\022N\n\033tokens_per_p"
      -          + "roject_per_hour\030\006 \001(\0132).google.analytics"
      -          + ".data.v1beta.QuotaStatus\"W\n\013QuotaStatus\022"
      -          + "\025\n\010consumed\030\001 \001(\005H\000\210\001\001\022\026\n\tremaining\030\002 \001("
      -          + "\005H\001\210\001\001B\013\n\t_consumedB\014\n\n_remaining\"\226\001\n\021Di"
      -          + "mensionMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_"
      -          + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024depre"
      -          + "cated_api_names\030\004 \003(\t\022\031\n\021custom_definiti"
      -          + "on\030\005 \001(\010\022\020\n\010category\030\007 \001(\t\"\222\003\n\016MetricMet"
      -          + "adata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t"
      -          + "\022\023\n\013description\030\003 \001(\t\022\034\n\024deprecated_api_"
      -          + "names\030\004 \003(\t\0226\n\004type\030\005 \001(\0162(.google.analy"
      -          + "tics.data.v1beta.MetricType\022\022\n\nexpressio"
      -          + "n\030\006 \001(\t\022\031\n\021custom_definition\030\007 \001(\010\022S\n\017bl"
      -          + "ocked_reasons\030\010 \003(\0162:.google.analytics.d"
      -          + "ata.v1beta.MetricMetadata.BlockedReason\022"
      -          + "\020\n\010category\030\n \001(\t\"\\\n\rBlockedReason\022\036\n\032BL"
      -          + "OCKED_REASON_UNSPECIFIED\020\000\022\026\n\022NO_REVENUE"
      -          + "_METRICS\020\001\022\023\n\017NO_COST_METRICS\020\002\"L\n\022Compa"
      -          + "risonMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_na"
      -          + "me\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"\334\001\n\026Dimens"
      -          + "ionCompatibility\022P\n\022dimension_metadata\030\001"
      -          + " \001(\0132/.google.analytics.data.v1beta.Dime"
      -          + "nsionMetadataH\000\210\001\001\022G\n\rcompatibility\030\002 \001("
      -          + "\0162+.google.analytics.data.v1beta.Compati"
      -          + "bilityH\001\210\001\001B\025\n\023_dimension_metadataB\020\n\016_c"
      -          + "ompatibility\"\320\001\n\023MetricCompatibility\022J\n\017"
      -          + "metric_metadata\030\001 \001(\0132,.google.analytics"
      -          + ".data.v1beta.MetricMetadataH\000\210\001\001\022G\n\rcomp"
      -          + "atibility\030\002 \001(\0162+.google.analytics.data."
      -          + "v1beta.CompatibilityH\001\210\001\001B\022\n\020_metric_met"
      -          + "adataB\020\n\016_compatibility*g\n\021MetricAggrega"
      -          + "tion\022\"\n\036METRIC_AGGREGATION_UNSPECIFIED\020\000"
      -          + "\022\t\n\005TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007MAXIMUM\020\006\022\t\n"
      -          + "\005COUNT\020\004*\201\002\n\nMetricType\022\033\n\027METRIC_TYPE_U"
      -          + "NSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022\016\n\nTYPE_F"
      -          + "LOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021TYPE_MILLISE"
      -          + "CONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\nTYPE_HOURS\020"
      -          + "\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYPE_CURRENCY\020\t\022"
      -          + "\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013TYPE_M"
      -          + "ETERS\020\014\022\023\n\017TYPE_KILOMETERS\020\r*_\n\024Restrict"
      -          + "edMetricType\022&\n\"RESTRICTED_METRIC_TYPE_U"
      -          + "NSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_D"
      -          + "ATA\020\002*P\n\rCompatibility\022\035\n\031COMPATIBILITY_"
      -          + "UNSPECIFIED\020\000\022\016\n\nCOMPATIBLE\020\001\022\020\n\014INCOMPA"
      -          + "TIBLE\020\002By\n com.google.analytics.data.v1b"
      -          + "etaB\021ReportingApiProtoP\001Z@google.golang."
      -          + "org/genproto/googleapis/analytics/data/v"
      -          + "1beta;datab\006proto3"
      +          + "H\000\022H\n\014empty_filter\030\010 \001(\01320.google.analyt"
      +          + "ics.data.v1beta.Filter.EmptyFilterH\000\032\216\002\n"
      +          + "\014StringFilter\022O\n\nmatch_type\030\001 \001(\0162;.goog"
      +          + "le.analytics.data.v1beta.Filter.StringFi"
      +          + "lter.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n\016case_se"
      +          + "nsitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026MATCH_TYP"
      +          + "E_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WIT"
      +          + "H\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL"
      +          + "_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\0326\n\014InListF"
      +          + "ilter\022\016\n\006values\030\001 \003(\t\022\026\n\016case_sensitive\030"
      +          + "\002 \001(\010\032\243\002\n\rNumericFilter\022O\n\toperation\030\001 \001"
      +          + "(\0162<.google.analytics.data.v1beta.Filter"
      +          + ".NumericFilter.Operation\0229\n\005value\030\002 \001(\0132"
      +          + "*.google.analytics.data.v1beta.NumericVa"
      +          + "lue\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPECIFI"
      +          + "ED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_T"
      +          + "HAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREA"
      +          + "TER_THAN_OR_EQUAL\020\005\032\215\001\n\rBetweenFilter\022>\n"
      +          + "\nfrom_value\030\001 \001(\0132*.google.analytics.dat"
      +          + "a.v1beta.NumericValue\022<\n\010to_value\030\002 \001(\0132"
      +          + "*.google.analytics.data.v1beta.NumericVa"
      +          + "lue\032\r\n\013EmptyFilterB\014\n\none_filter\"\332\005\n\007Ord"
      +          + "erBy\022E\n\006metric\030\001 \001(\01323.google.analytics."
      +          + "data.v1beta.OrderBy.MetricOrderByH\000\022K\n\td"
      +          + "imension\030\002 \001(\01326.google.analytics.data.v"
      +          + "1beta.OrderBy.DimensionOrderByH\000\022C\n\005pivo"
      +          + "t\030\003 \001(\01322.google.analytics.data.v1beta.O"
      +          + "rderBy.PivotOrderByH\000\022\014\n\004desc\030\004 \001(\010\032$\n\rM"
      +          + "etricOrderBy\022\023\n\013metric_name\030\001 \001(\t\032\353\001\n\020Di"
      +          + "mensionOrderBy\022\026\n\016dimension_name\030\001 \001(\t\022T"
      +          + "\n\norder_type\030\002 \001(\0162@.google.analytics.da"
      +          + "ta.v1beta.OrderBy.DimensionOrderBy.Order"
      +          + "Type\"i\n\tOrderType\022\032\n\026ORDER_TYPE_UNSPECIF"
      +          + "IED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!\n\035CASE_INSENSIT"
      +          + "IVE_ALPHANUMERIC\020\002\022\013\n\007NUMERIC\020\003\032\303\001\n\014Pivo"
      +          + "tOrderBy\022\023\n\013metric_name\030\001 \001(\t\022[\n\020pivot_s"
      +          + "elections\030\002 \003(\0132A.google.analytics.data."
      +          + "v1beta.OrderBy.PivotOrderBy.PivotSelecti"
      +          + "on\032A\n\016PivotSelection\022\026\n\016dimension_name\030\001"
      +          + " \001(\t\022\027\n\017dimension_value\030\002 \001(\tB\016\n\014one_ord"
      +          + "er_by\"\303\001\n\005Pivot\022\023\n\013field_names\030\001 \003(\t\0228\n\t"
      +          + "order_bys\030\002 \003(\0132%.google.analytics.data."
      +          + "v1beta.OrderBy\022\016\n\006offset\030\003 \001(\003\022\r\n\005limit\030"
      +          + "\004 \001(\003\022L\n\023metric_aggregations\030\005 \003(\0162/.goo"
      +          + "gle.analytics.data.v1beta.MetricAggregat"
      +          + "ion\"\332\001\n\nCohortSpec\0225\n\007cohorts\030\001 \003(\0132$.go"
      +          + "ogle.analytics.data.v1beta.Cohort\022A\n\rcoh"
      +          + "orts_range\030\002 \001(\0132*.google.analytics.data"
      +          + ".v1beta.CohortsRange\022R\n\026cohort_report_se"
      +          + "ttings\030\003 \001(\01322.google.analytics.data.v1b"
      +          + "eta.CohortReportSettings\"f\n\006Cohort\022\014\n\004na"
      +          + "me\030\001 \001(\t\022\021\n\tdimension\030\002 \001(\t\022;\n\ndate_rang"
      +          + "e\030\003 \001(\0132\'.google.analytics.data.v1beta.D"
      +          + "ateRange\"\325\001\n\014CohortsRange\022K\n\013granularity"
      +          + "\030\001 \001(\01626.google.analytics.data.v1beta.Co"
      +          + "hortsRange.Granularity\022\024\n\014start_offset\030\002"
      +          + " \001(\005\022\022\n\nend_offset\030\003 \001(\005\"N\n\013Granularity\022"
      +          + "\033\n\027GRANULARITY_UNSPECIFIED\020\000\022\t\n\005DAILY\020\001\022"
      +          + "\n\n\006WEEKLY\020\002\022\013\n\007MONTHLY\020\003\"*\n\024CohortReport"
      +          + "Settings\022\022\n\naccumulate\030\001 \001(\010\"\226\006\n\020Respons"
      +          + "eMetaData\022 \n\030data_loss_from_other_row\030\003 "
      +          + "\001(\010\022r\n\033schema_restriction_response\030\004 \001(\013"
      +          + "2H.google.analytics.data.v1beta.Response"
      +          + "MetaData.SchemaRestrictionResponseH\000\210\001\001\022"
      +          + "\032\n\rcurrency_code\030\005 \001(\tH\001\210\001\001\022\026\n\ttime_zone"
      +          + "\030\006 \001(\tH\002\210\001\001\022\031\n\014empty_reason\030\007 \001(\tH\003\210\001\001\022$"
      +          + "\n\027subject_to_thresholding\030\010 \001(\010H\004\210\001\001\022J\n\022"
      +          + "sampling_metadatas\030\t \003(\0132..google.analyt"
      +          + "ics.data.v1beta.SamplingMetadata\032\275\002\n\031Sch"
      +          + "emaRestrictionResponse\022\204\001\n\032active_metric"
      +          + "_restrictions\030\001 \003(\0132`.google.analytics.d"
      +          + "ata.v1beta.ResponseMetaData.SchemaRestri"
      +          + "ctionResponse.ActiveMetricRestriction\032\230\001"
      +          + "\n\027ActiveMetricRestriction\022\030\n\013metric_name"
      +          + "\030\001 \001(\tH\000\210\001\001\022S\n\027restricted_metric_types\030\002"
      +          + " \003(\01622.google.analytics.data.v1beta.Rest"
      +          + "rictedMetricTypeB\016\n\014_metric_nameB\036\n\034_sch"
      +          + "ema_restriction_responseB\020\n\016_currency_co"
      +          + "deB\014\n\n_time_zoneB\017\n\r_empty_reasonB\032\n\030_su"
      +          + "bject_to_thresholding\"K\n\020SamplingMetadat"
      +          + "a\022\032\n\022samples_read_count\030\001 \001(\003\022\033\n\023samplin"
      +          + "g_space_size\030\002 \001(\003\"\037\n\017DimensionHeader\022\014\n"
      +          + "\004name\030\001 \001(\t\"T\n\014MetricHeader\022\014\n\004name\030\001 \001("
      +          + "\t\0226\n\004type\030\002 \001(\0162(.google.analytics.data."
      +          + "v1beta.MetricType\"u\n\013PivotHeader\022S\n\027pivo"
      +          + "t_dimension_headers\030\001 \003(\01322.google.analy"
      +          + "tics.data.v1beta.PivotDimensionHeader\022\021\n"
      +          + "\trow_count\030\002 \001(\005\"^\n\024PivotDimensionHeader"
      +          + "\022F\n\020dimension_values\030\001 \003(\0132,.google.anal"
      +          + "ytics.data.v1beta.DimensionValue\"\217\001\n\003Row"
      +          + "\022F\n\020dimension_values\030\001 \003(\0132,.google.anal"
      +          + "ytics.data.v1beta.DimensionValue\022@\n\rmetr"
      +          + "ic_values\030\002 \003(\0132).google.analytics.data."
      +          + "v1beta.MetricValue\".\n\016DimensionValue\022\017\n\005"
      +          + "value\030\001 \001(\tH\000B\013\n\tone_value\"+\n\013MetricValu"
      +          + "e\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_value\"J\n\014Numer"
      +          + "icValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014double"
      +          + "_value\030\002 \001(\001H\000B\013\n\tone_value\"\343\003\n\rProperty"
      +          + "Quota\022A\n\016tokens_per_day\030\001 \001(\0132).google.a"
      +          + "nalytics.data.v1beta.QuotaStatus\022B\n\017toke"
      +          + "ns_per_hour\030\002 \001(\0132).google.analytics.dat"
      +          + "a.v1beta.QuotaStatus\022F\n\023concurrent_reque"
      +          + "sts\030\003 \001(\0132).google.analytics.data.v1beta"
      +          + ".QuotaStatus\022U\n\"server_errors_per_projec"
      +          + "t_per_hour\030\004 \001(\0132).google.analytics.data"
      +          + ".v1beta.QuotaStatus\022\\\n)potentially_thres"
      +          + "holded_requests_per_hour\030\005 \001(\0132).google."
      +          + "analytics.data.v1beta.QuotaStatus\022N\n\033tok"
      +          + "ens_per_project_per_hour\030\006 \001(\0132).google."
      +          + "analytics.data.v1beta.QuotaStatus\"W\n\013Quo"
      +          + "taStatus\022\025\n\010consumed\030\001 \001(\005H\000\210\001\001\022\026\n\tremai"
      +          + "ning\030\002 \001(\005H\001\210\001\001B\013\n\t_consumedB\014\n\n_remaini"
      +          + "ng\"\226\001\n\021DimensionMetadata\022\020\n\010api_name\030\001 \001"
      +          + "(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t"
      +          + "\022\034\n\024deprecated_api_names\030\004 \003(\t\022\031\n\021custom"
      +          + "_definition\030\005 \001(\010\022\020\n\010category\030\007 \001(\t\"\222\003\n\016"
      +          + "MetricMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_n"
      +          + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024deprec"
      +          + "ated_api_names\030\004 \003(\t\0226\n\004type\030\005 \001(\0162(.goo"
      +          + "gle.analytics.data.v1beta.MetricType\022\022\n\n"
      +          + "expression\030\006 \001(\t\022\031\n\021custom_definition\030\007 "
      +          + "\001(\010\022S\n\017blocked_reasons\030\010 \003(\0162:.google.an"
      +          + "alytics.data.v1beta.MetricMetadata.Block"
      +          + "edReason\022\020\n\010category\030\n \001(\t\"\\\n\rBlockedRea"
      +          + "son\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000\022\026\n\022N"
      +          + "O_REVENUE_METRICS\020\001\022\023\n\017NO_COST_METRICS\020\002"
      +          + "\"L\n\022ComparisonMetadata\022\020\n\010api_name\030\001 \001(\t"
      +          + "\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\"\334"
      +          + "\001\n\026DimensionCompatibility\022P\n\022dimension_m"
      +          + "etadata\030\001 \001(\0132/.google.analytics.data.v1"
      +          + "beta.DimensionMetadataH\000\210\001\001\022G\n\rcompatibi"
      +          + "lity\030\002 \001(\0162+.google.analytics.data.v1bet"
      +          + "a.CompatibilityH\001\210\001\001B\025\n\023_dimension_metad"
      +          + "ataB\020\n\016_compatibility\"\320\001\n\023MetricCompatib"
      +          + "ility\022J\n\017metric_metadata\030\001 \001(\0132,.google."
      +          + "analytics.data.v1beta.MetricMetadataH\000\210\001"
      +          + "\001\022G\n\rcompatibility\030\002 \001(\0162+.google.analyt"
      +          + "ics.data.v1beta.CompatibilityH\001\210\001\001B\022\n\020_m"
      +          + "etric_metadataB\020\n\016_compatibility*g\n\021Metr"
      +          + "icAggregation\022\"\n\036METRIC_AGGREGATION_UNSP"
      +          + "ECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007MAX"
      +          + "IMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\nMetricType\022\033\n\027METR"
      +          + "IC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022"
      +          + "\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021TYP"
      +          + "E_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\nTY"
      +          + "PE_HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYPE_CU"
      +          + "RRENCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILES\020\013\022"
      +          + "\017\n\013TYPE_METERS\020\014\022\023\n\017TYPE_KILOMETERS\020\r*_\n"
      +          + "\024RestrictedMetricType\022&\n\"RESTRICTED_METR"
      +          + "IC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014"
      +          + "REVENUE_DATA\020\002*P\n\rCompatibility\022\035\n\031COMPA"
      +          + "TIBILITY_UNSPECIFIED\020\000\022\016\n\nCOMPATIBLE\020\001\022\020"
      +          + "\n\014INCOMPATIBLE\020\002By\n com.google.analytics"
      +          + ".data.v1betaB\021ReportingApiProtoP\001Z@googl"
      +          + "e.golang.org/genproto/googleapis/analyti"
      +          + "cs/data/v1beta;datab\006proto3"
           };
           descriptor =
               com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
      @@ -510,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                     "InListFilter",
                     "NumericFilter",
                     "BetweenFilter",
      +              "EmptyFilter",
                     "OneFilter",
                   });
           internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor =
      @@ -544,6 +551,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   new java.lang.String[] {
                     "FromValue", "ToValue",
                   });
      +    internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor =
      +        internal_static_google_analytics_data_v1beta_Filter_descriptor.getNestedTypes().get(4);
      +    internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_fieldAccessorTable =
      +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
      +            internal_static_google_analytics_data_v1beta_Filter_EmptyFilter_descriptor,
      +            new java.lang.String[] {});
           internal_static_google_analytics_data_v1beta_OrderBy_descriptor =
               getDescriptor().getMessageTypes().get(9);
           internal_static_google_analytics_data_v1beta_OrderBy_fieldAccessorTable =
      diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java
      index e5796c3c0c07..05cf06a0c2e0 100644
      --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java
      +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java
      @@ -23,8 +23,8 @@
        *
        *
        * 
      - * Categories of data that you may be restricted from viewing on certain GA4
      - * properties.
      + * Categories of data that you may be restricted from viewing on certain
      + * Google Analytics properties.
        * 
      * * Protobuf enum {@code google.analytics.data.v1beta.RestrictedMetricType} diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java index fd904340694a..e1dfef4d6875 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -108,7 +108,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -695,7 +695,7 @@ public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuild
          * removed by a filter.
          *
          * Regardless of this `keep_empty_rows` setting, only data recorded by the
      -   * Google Analytics (GA4) property can be displayed in a report.
      +   * Google Analytics property can be displayed in a report.
          *
          * For example if a property never logs a `purchase` event, then a query for
          * the `eventName` dimension and  `eventCount` metric will not have a row
      @@ -717,8 +717,8 @@ public boolean getKeepEmptyRows() {
          *
          *
          * 
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 11; @@ -1693,7 +1693,7 @@ public Builder mergeFrom( * * *
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1722,7 +1722,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1751,7 +1751,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1779,7 +1779,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1803,7 +1803,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -4125,7 +4125,7 @@ public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuild
            * removed by a filter.
            *
            * Regardless of this `keep_empty_rows` setting, only data recorded by the
      -     * Google Analytics (GA4) property can be displayed in a report.
      +     * Google Analytics property can be displayed in a report.
            *
            * For example if a property never logs a `purchase` event, then a query for
            * the `eventName` dimension and  `eventCount` metric will not have a row
      @@ -4149,7 +4149,7 @@ public boolean getKeepEmptyRows() {
            * removed by a filter.
            *
            * Regardless of this `keep_empty_rows` setting, only data recorded by the
      -     * Google Analytics (GA4) property can be displayed in a report.
      +     * Google Analytics property can be displayed in a report.
            *
            * For example if a property never logs a `purchase` event, then a query for
            * the `eventName` dimension and  `eventCount` metric will not have a row
      @@ -4177,7 +4177,7 @@ public Builder setKeepEmptyRows(boolean value) {
            * removed by a filter.
            *
            * Regardless of this `keep_empty_rows` setting, only data recorded by the
      -     * Google Analytics (GA4) property can be displayed in a report.
      +     * Google Analytics property can be displayed in a report.
            *
            * For example if a property never logs a `purchase` event, then a query for
            * the `eventName` dimension and  `eventCount` metric will not have a row
      @@ -4200,8 +4200,8 @@ public Builder clearKeepEmptyRows() {
            *
            *
            * 
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 11; @@ -4216,8 +4216,8 @@ public boolean getReturnPropertyQuota() { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 11; @@ -4236,8 +4236,8 @@ public Builder setReturnPropertyQuota(boolean value) { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 11; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java index e272da076b46..325afdfe1f9c 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface RunPivotReportRequestOrBuilder * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -47,7 +47,7 @@ public interface RunPivotReportRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -474,7 +474,7 @@ public interface RunPivotReportRequestOrBuilder
          * removed by a filter.
          *
          * Regardless of this `keep_empty_rows` setting, only data recorded by the
      -   * Google Analytics (GA4) property can be displayed in a report.
      +   * Google Analytics property can be displayed in a report.
          *
          * For example if a property never logs a `purchase` event, then a query for
          * the `eventName` dimension and  `eventCount` metric will not have a row
      @@ -491,8 +491,8 @@ public interface RunPivotReportRequestOrBuilder
          *
          *
          * 
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 11; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java index bdb56e42f103..8bb799c3493f 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java @@ -683,7 +683,7 @@ public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrB * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -698,7 +698,7 @@ public boolean hasPropertyQuota() { * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -715,7 +715,7 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4233,7 +4233,7 @@ public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrB * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4247,7 +4247,7 @@ public boolean hasPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4267,7 +4267,7 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4289,7 +4289,7 @@ public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota v * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4309,7 +4309,7 @@ public Builder setPropertyQuota( * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4337,7 +4337,7 @@ public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4356,7 +4356,7 @@ public Builder clearPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4370,7 +4370,7 @@ public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBu * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -4388,7 +4388,7 @@ public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaO * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java index ad54fe930a07..c13f1c3f638b 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java @@ -522,7 +522,7 @@ public interface RunPivotReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -534,7 +534,7 @@ public interface RunPivotReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; @@ -546,7 +546,7 @@ public interface RunPivotReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 7; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java index 5e4aac5c1cdd..dbf567dfc437 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -105,7 +105,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -585,8 +585,9 @@ public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(in
          *
          *
          * 
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's Realtime quota. Quota is returned in
      +   * [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 9; @@ -1498,7 +1499,7 @@ public Builder mergeFrom( * * *
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1525,7 +1526,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1552,7 +1553,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1578,7 +1579,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1600,7 +1601,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -3386,8 +3387,9 @@ public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder(int i
            *
            *
            * 
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's Realtime quota. Quota is returned in
      +     * [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 9; @@ -3402,8 +3404,9 @@ public boolean getReturnPropertyQuota() { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's Realtime quota. Quota is returned in
      +     * [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 9; @@ -3422,8 +3425,9 @@ public Builder setReturnPropertyQuota(boolean value) { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's Realtime quota. Quota is returned in
      +     * [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 9; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java index 8dee49da88ad..4356c920fc50 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface RunRealtimeReportRequestOrBuilder * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -45,7 +45,7 @@ public interface RunRealtimeReportRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -381,8 +381,9 @@ public interface RunRealtimeReportRequestOrBuilder
          *
          *
          * 
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's Realtime quota. Quota is returned in
      +   * [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 9; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java index ef7e3c7f0a49..79d7338efb76 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java @@ -537,7 +537,8 @@ public int getRowCount() { * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -552,7 +553,8 @@ public boolean hasPropertyQuota() { * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -569,7 +571,8 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3682,7 +3685,8 @@ public Builder clearRowCount() { * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3696,7 +3700,8 @@ public boolean hasPropertyQuota() { * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3716,7 +3721,8 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3738,7 +3744,8 @@ public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota v * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3758,7 +3765,8 @@ public Builder setPropertyQuota( * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3786,7 +3794,8 @@ public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3805,7 +3814,8 @@ public Builder clearPropertyQuota() { * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3819,7 +3829,8 @@ public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBu * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -3837,7 +3848,8 @@ public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaO * * *
      -     * This Analytics Property's Realtime quota state including this request.
      +     * This Google Analytics property's Realtime quota state including this
      +     * request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java index e6d9518f3c22..58f9231ea3fa 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java @@ -365,7 +365,8 @@ public interface RunRealtimeReportResponseOrBuilder * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -377,7 +378,8 @@ public interface RunRealtimeReportResponseOrBuilder * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; @@ -389,7 +391,8 @@ public interface RunRealtimeReportResponseOrBuilder * * *
      -   * This Analytics Property's Realtime quota state including this request.
      +   * This Google Analytics property's Realtime quota state including this
      +   * request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 8; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java index d8e9cbb652fb..a0a8dd0232bb 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -109,7 +109,7 @@ public java.lang.String getProperty() {
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -561,6 +561,8 @@ public com.google.analytics.data.v1beta.MetricAggregation convert(
          * 
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -580,6 +582,8 @@ public com.google.analytics.data.v1beta.MetricAggregation convert( *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -596,6 +600,8 @@ public int getMetricAggregationsCount() { *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -613,6 +619,8 @@ public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations( *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -629,6 +637,8 @@ public java.util.List getMetricAggregationsValueList() { *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -652,6 +662,8 @@ public int getMetricAggregationsValue(int index) { * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -665,6 +677,8 @@ public java.util.List getOrderBysList( * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -679,6 +693,8 @@ public java.util.List getOrderBysList( * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -692,6 +708,8 @@ public int getOrderBysCount() { * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -705,6 +723,8 @@ public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -831,7 +851,7 @@ public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuild * removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -853,8 +873,8 @@ public boolean getKeepEmptyRows() { * * *
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 14; @@ -1934,7 +1954,7 @@ public Builder mergeFrom( * * *
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1963,7 +1983,7 @@ public java.lang.String getProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -1992,7 +2012,7 @@ public com.google.protobuf.ByteString getPropertyBytes() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -2020,7 +2040,7 @@ public Builder setProperty(java.lang.String value) {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -2044,7 +2064,7 @@ public Builder clearProperty() {
            *
            *
            * 
      -     * A Google Analytics GA4 property identifier whose events are tracked.
      +     * A Google Analytics property identifier whose events are tracked.
            * Specified in the URL path and not the body. To learn more, see [where to
            * find your Property
            * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -3781,6 +3801,8 @@ private void ensureMetricAggregationsIsMutable() {
            * 
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3800,6 +3822,8 @@ private void ensureMetricAggregationsIsMutable() { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3816,6 +3840,8 @@ public int getMetricAggregationsCount() { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3833,6 +3859,8 @@ public com.google.analytics.data.v1beta.MetricAggregation getMetricAggregations( *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3858,6 +3886,8 @@ public Builder setMetricAggregations( *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3881,6 +3911,8 @@ public Builder addMetricAggregations(com.google.analytics.data.v1beta.MetricAggr *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3904,6 +3936,8 @@ public Builder addAllMetricAggregations( *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3923,6 +3957,8 @@ public Builder clearMetricAggregations() { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3939,6 +3975,8 @@ public java.util.List getMetricAggregationsValueList() { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3956,6 +3994,8 @@ public int getMetricAggregationsValue(int index) { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3977,6 +4017,8 @@ public Builder setMetricAggregationsValue(int index, int value) { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -3997,6 +4039,8 @@ public Builder addMetricAggregationsValue(int value) { *
            * Aggregation of metrics. Aggregated metric values will be shown in rows
            * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +     * Aggregates including both comparisons and multiple date ranges will
      +     * be aggregated based on the date ranges.
            * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -4035,6 +4079,8 @@ private void ensureOrderBysIsMutable() { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4051,6 +4097,8 @@ public java.util.List getOrderBysList( * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4067,6 +4115,8 @@ public int getOrderBysCount() { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4083,6 +4133,8 @@ public com.google.analytics.data.v1beta.OrderBy getOrderBys(int index) { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4105,6 +4157,8 @@ public Builder setOrderBys(int index, com.google.analytics.data.v1beta.OrderBy v * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4125,6 +4179,8 @@ public Builder setOrderBys( * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4147,6 +4203,8 @@ public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy value) { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4169,6 +4227,8 @@ public Builder addOrderBys(int index, com.google.analytics.data.v1beta.OrderBy v * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4188,6 +4248,8 @@ public Builder addOrderBys(com.google.analytics.data.v1beta.OrderBy.Builder buil * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4208,6 +4270,8 @@ public Builder addOrderBys( * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4228,6 +4292,8 @@ public Builder addAllOrderBys( * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4247,6 +4313,8 @@ public Builder clearOrderBys() { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4266,6 +4334,8 @@ public Builder removeOrderBys(int index) { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4278,6 +4348,8 @@ public com.google.analytics.data.v1beta.OrderBy.Builder getOrderBysBuilder(int i * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4294,6 +4366,8 @@ public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(in * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4311,6 +4385,8 @@ public com.google.analytics.data.v1beta.OrderByOrBuilder getOrderBysOrBuilder(in * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4324,6 +4400,8 @@ public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder() { * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4337,6 +4415,8 @@ public com.google.analytics.data.v1beta.OrderBy.Builder addOrderBysBuilder(int i * *
            * Specifies how rows are ordered in the response.
      +     * Requests including both comparisons and multiple date ranges will
      +     * have order bys applied on the comparisons.
            * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -4679,7 +4759,7 @@ public com.google.analytics.data.v1beta.CohortSpecOrBuilder getCohortSpecOrBuild * removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -4703,7 +4783,7 @@ public boolean getKeepEmptyRows() { * removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -4731,7 +4811,7 @@ public Builder setKeepEmptyRows(boolean value) { * removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -4754,8 +4834,8 @@ public Builder clearKeepEmptyRows() { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 14; @@ -4770,8 +4850,8 @@ public boolean getReturnPropertyQuota() { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 14; @@ -4790,8 +4870,8 @@ public Builder setReturnPropertyQuota(boolean value) { * * *
      -     * Toggles whether to return the current state of this Analytics Property's
      -     * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +     * Toggles whether to return the current state of this Google Analytics
      +     * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
            * 
      * * bool return_property_quota = 14; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java index e35ef682af8a..c29361d5e8bd 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface RunReportRequestOrBuilder * * *
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -47,7 +47,7 @@ public interface RunReportRequestOrBuilder
          *
          *
          * 
      -   * A Google Analytics GA4 property identifier whose events are tracked.
      +   * A Google Analytics property identifier whose events are tracked.
          * Specified in the URL path and not the body. To learn more, see [where to
          * find your Property
          * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
      @@ -372,6 +372,8 @@ public interface RunReportRequestOrBuilder
          * 
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -385,6 +387,8 @@ public interface RunReportRequestOrBuilder *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -398,6 +402,8 @@ public interface RunReportRequestOrBuilder *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -412,6 +418,8 @@ public interface RunReportRequestOrBuilder *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -425,6 +433,8 @@ public interface RunReportRequestOrBuilder *
          * Aggregation of metrics. Aggregated metric values will be shown in rows
          * where the dimension_values are set to "RESERVED_(MetricAggregation)".
      +   * Aggregates including both comparisons and multiple date ranges will
      +   * be aggregated based on the date ranges.
          * 
      * * repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; @@ -439,6 +449,8 @@ public interface RunReportRequestOrBuilder * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -449,6 +461,8 @@ public interface RunReportRequestOrBuilder * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -459,6 +473,8 @@ public interface RunReportRequestOrBuilder * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -469,6 +485,8 @@ public interface RunReportRequestOrBuilder * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -480,6 +498,8 @@ public interface RunReportRequestOrBuilder * *
          * Specifies how rows are ordered in the response.
      +   * Requests including both comparisons and multiple date ranges will
      +   * have order bys applied on the comparisons.
          * 
      * * repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; @@ -560,7 +580,7 @@ public interface RunReportRequestOrBuilder * removed by a filter. * * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. + * Google Analytics property can be displayed in a report. * * For example if a property never logs a `purchase` event, then a query for * the `eventName` dimension and `eventCount` metric will not have a row @@ -577,8 +597,8 @@ public interface RunReportRequestOrBuilder * * *
      -   * Toggles whether to return the current state of this Analytics Property's
      -   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
      +   * Toggles whether to return the current state of this Google Analytics
      +   * property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
          * 
      * * bool return_property_quota = 14; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java index 0a356cadff43..d0ab39058d63 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java @@ -590,7 +590,7 @@ public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrB * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -605,7 +605,7 @@ public boolean hasPropertyQuota() { * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -622,7 +622,7 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -3963,7 +3963,7 @@ public com.google.analytics.data.v1beta.ResponseMetaDataOrBuilder getMetadataOrB * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -3977,7 +3977,7 @@ public boolean hasPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -3997,7 +3997,7 @@ public com.google.analytics.data.v1beta.PropertyQuota getPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4019,7 +4019,7 @@ public Builder setPropertyQuota(com.google.analytics.data.v1beta.PropertyQuota v * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4039,7 +4039,7 @@ public Builder setPropertyQuota( * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4067,7 +4067,7 @@ public Builder mergePropertyQuota(com.google.analytics.data.v1beta.PropertyQuota * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4086,7 +4086,7 @@ public Builder clearPropertyQuota() { * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4100,7 +4100,7 @@ public com.google.analytics.data.v1beta.PropertyQuota.Builder getPropertyQuotaBu * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -4118,7 +4118,7 @@ public com.google.analytics.data.v1beta.PropertyQuotaOrBuilder getPropertyQuotaO * * *
      -     * This Analytics Property's quota state including this request.
      +     * This Google Analytics property's quota state including this request.
            * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java index c4783825d4cf..42890b10d42a 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java @@ -403,7 +403,7 @@ public interface RunReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -415,7 +415,7 @@ public interface RunReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; @@ -427,7 +427,7 @@ public interface RunReportResponseOrBuilder * * *
      -   * This Analytics Property's quota state including this request.
      +   * This Google Analytics property's quota state including this request.
          * 
      * * .google.analytics.data.v1beta.PropertyQuota property_quota = 9; diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto index b9df319f06d5..ed81f4b108c9 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto @@ -71,7 +71,7 @@ service BetaAnalyticsData { } // Returns multiple reports in a batch. All reports must be for the same - // GA4 Property. + // Google Analytics property. rpc BatchRunReports(BatchRunReportsRequest) returns (BatchRunReportsResponse) { option (google.api.http) = { @@ -81,7 +81,7 @@ service BetaAnalyticsData { } // Returns multiple pivot reports in a batch. All reports must be for the same - // GA4 Property. + // Google Analytics property. rpc BatchRunPivotReports(BatchRunPivotReportsRequest) returns (BatchRunPivotReportsResponse) { option (google.api.http) = { @@ -92,7 +92,7 @@ service BetaAnalyticsData { // Returns metadata for dimensions and metrics available in reporting methods. // Used to explore the dimensions and metrics. In this method, a Google - // Analytics GA4 Property Identifier is specified in the request, and + // Analytics property identifier is specified in the request, and // the metadata response includes Custom dimensions and metrics as well as // Universal metadata. // @@ -256,7 +256,7 @@ service BetaAnalyticsData { // report; fields shared with the `runReport` request should be the same values // as in your `runReport` request. message CheckCompatibilityRequest { - // A Google Analytics GA4 property identifier whose events are tracked. To + // A Google Analytics property identifier whose events are tracked. To // learn more, see [where to find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). // `property` should be the same value as in your `runReport` request. @@ -318,7 +318,7 @@ message Metadata { // The request to generate a report. message RunReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. + // A Google Analytics property identifier whose events are tracked. // Specified in the URL path and not the body. To learn more, see [where to // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). @@ -378,9 +378,13 @@ message RunReportRequest { // Aggregation of metrics. Aggregated metric values will be shown in rows // where the dimension_values are set to "RESERVED_(MetricAggregation)". + // Aggregates including both comparisons and multiple date ranges will + // be aggregated based on the date ranges. repeated MetricAggregation metric_aggregations = 9; // Specifies how rows are ordered in the response. + // Requests including both comparisons and multiple date ranges will + // have order bys applied on the comparisons. repeated OrderBy order_bys = 10; // A currency code in ISO4217 format, such as "AED", "USD", "JPY". @@ -396,15 +400,15 @@ message RunReportRequest { // removed by a filter. // // Regardless of this `keep_empty_rows` setting, only data recorded by the - // Google Analytics (GA4) property can be displayed in a report. + // Google Analytics property can be displayed in a report. // // For example if a property never logs a `purchase` event, then a query for // the `eventName` dimension and `eventCount` metric will not have a row // eventName: "purchase" and eventCount: 0. bool keep_empty_rows = 13; - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [PropertyQuota](#PropertyQuota). + // Toggles whether to return the current state of this Google Analytics + // property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). bool return_property_quota = 14; // Optional. The configuration of comparisons requested and displayed. The @@ -448,7 +452,7 @@ message RunReportResponse { // Metadata for the report. ResponseMetaData metadata = 8; - // This Analytics Property's quota state including this request. + // This Google Analytics property's quota state including this request. PropertyQuota property_quota = 9; // Identifies what kind of resource this message is. This `kind` is always the @@ -459,7 +463,7 @@ message RunReportResponse { // The request to generate a pivot report. message RunPivotReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. + // A Google Analytics property identifier whose events are tracked. // Specified in the URL path and not the body. To learn more, see [where to // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). @@ -513,15 +517,15 @@ message RunPivotReportRequest { // removed by a filter. // // Regardless of this `keep_empty_rows` setting, only data recorded by the - // Google Analytics (GA4) property can be displayed in a report. + // Google Analytics property can be displayed in a report. // // For example if a property never logs a `purchase` event, then a query for // the `eventName` dimension and `eventCount` metric will not have a row // eventName: "purchase" and eventCount: 0. bool keep_empty_rows = 10; - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [PropertyQuota](#PropertyQuota). + // Toggles whether to return the current state of this Google Analytics + // property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). bool return_property_quota = 11; // Optional. The configuration of comparisons requested and displayed. The @@ -590,7 +594,7 @@ message RunPivotReportResponse { // Metadata for the report. ResponseMetaData metadata = 6; - // This Analytics Property's quota state including this request. + // This Google Analytics property's quota state including this request. PropertyQuota property_quota = 7; // Identifies what kind of resource this message is. This `kind` is always the @@ -601,7 +605,7 @@ message RunPivotReportResponse { // The batch request containing multiple report requests. message BatchRunReportsRequest { - // A Google Analytics GA4 property identifier whose events are tracked. + // A Google Analytics property identifier whose events are tracked. // Specified in the URL path and not the body. To learn more, see [where to // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). @@ -630,7 +634,7 @@ message BatchRunReportsResponse { // The batch request containing multiple pivot report requests. message BatchRunPivotReportsRequest { - // A Google Analytics GA4 property identifier whose events are tracked. + // A Google Analytics property identifier whose events are tracked. // Specified in the URL path and not the body. To learn more, see [where to // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). @@ -661,7 +665,7 @@ message BatchRunPivotReportsResponse { message GetMetadataRequest { // Required. The resource name of the metadata to retrieve. This name field is // specified in the URL path and not URL parameters. Property is a numeric - // Google Analytics GA4 Property identifier. To learn more, see [where to find + // Google Analytics property identifier. To learn more, see [where to find // your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). // @@ -680,7 +684,7 @@ message GetMetadataRequest { // The request to generate a realtime report. message RunRealtimeReportRequest { - // A Google Analytics GA4 property identifier whose events are tracked. + // A Google Analytics property identifier whose events are tracked. // Specified in the URL path and not the body. To learn more, see [where to // find your Property // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). @@ -719,8 +723,9 @@ message RunRealtimeReportRequest { // Specifies how rows are ordered in the response. repeated OrderBy order_bys = 8; - // Toggles whether to return the current state of this Analytics Property's - // Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + // Toggles whether to return the current state of this Google Analytics + // property's Realtime quota. Quota is returned in + // [PropertyQuota](#PropertyQuota). bool return_property_quota = 9; // The minute ranges of event data to read. If unspecified, one minute range @@ -760,7 +765,8 @@ message RunRealtimeReportResponse { // only 50 rows. int32 row_count = 7; - // This Analytics Property's Realtime quota state including this request. + // This Google Analytics property's Realtime quota state including this + // request. PropertyQuota property_quota = 8; // Identifies what kind of resource this message is. This `kind` is always the diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto index f89b70daf3c0..acf242a4b984 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto @@ -318,6 +318,9 @@ message Filter { NumericValue to_value = 2; } + // Filter for empty values. + message EmptyFilter {} + // The dimension name or metric name. // // In most methods, dimensions & metrics can be used for the first time in @@ -339,6 +342,9 @@ message Filter { // A filter for two values. BetweenFilter between_filter = 6; + + // A filter for empty values such as "(not set)" and "" values. + EmptyFilter empty_filter = 8; } } @@ -1048,8 +1054,8 @@ enum MetricType { TYPE_KILOMETERS = 13; } -// Categories of data that you may be restricted from viewing on certain GA4 -// properties. +// Categories of data that you may be restricted from viewing on certain +// Google Analytics properties. enum RestrictedMetricType { // Unspecified type. RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index c69c3629a66e..5cd780897035 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.50.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index f9604bbe6641..5959fd6a6b29 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.53.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index ce70e0127510..b098e3c93cb1 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.53.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index bbf74badccd5..a4a99be5447d 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.53.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.54.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/README.md b/java-apihub/README.md index 446657ee1a17..07cc19cd05bd 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.6.0' +implementation 'com.google.cloud:google-cloud-apihub:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 0589acea1dfa..2d7af6d55a31 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.51.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index c48877120069..677fdf1f1bc2 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.53.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/README.md b/java-apphub/README.md index df7b76e4ce61..d3d6ffb48e9b 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.17.0' +implementation 'com.google.cloud:google-cloud-apphub:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index d1c95962bd4e..5d564e829217 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.57.0' +implementation 'com.google.area120:google-area120-tables:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.57.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.58.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index e977169b0608..e1e0d70cd7e3 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.52.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/README.md b/java-asset/README.md index f894f59b68dd..96718a19d9c9 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.57.0 + 3.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.57.0' +implementation 'com.google.cloud:google-cloud-asset:3.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.58.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index c4ca7baf0849..803c83fb03d8 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.53.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/README.md b/java-automl/README.md index bc2af2b025e7..802e8e31c3e0 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.53.0' +implementation 'com.google.cloud:google-cloud-automl:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.54.0" ``` ## Authentication @@ -205,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java index f659352bbec5..f13fa89d6f93 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictInputConfig.java @@ -34,8 +34,8 @@ * non-terminal symbols defined near the end of this comment. The formats * are: * - * <h4>AutoML Vision</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Vision + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -51,7 +51,7 @@ * gs://folder/image2.gif * gs://folder/image3.png * - * </section><section><h5>Object Detection</h5> + * ##### Object Detection * * One or more CSV files where each line is a single column: * @@ -66,11 +66,9 @@ * gs://folder/image1.jpeg * gs://folder/image2.gif * gs://folder/image3.png - * </section> - * </div> * - * <h4>AutoML Video Intelligence</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Video Intelligence + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -89,7 +87,7 @@ * gs://folder/video1.mp4,20,60 * gs://folder/vid2.mov,0,inf * - * </section><section><h5>Object Tracking</h5> + * ##### Object Tracking * * One or more CSV files where each line is a single column: * @@ -107,11 +105,9 @@ * gs://folder/video1.mp4,10,40 * gs://folder/video1.mp4,20,60 * gs://folder/vid2.mov,0,inf - * </section> - * </div> * - * <h4>AutoML Natural Language</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Natural Language + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -128,7 +124,7 @@ * gs://folder/text2.pdf * gs://folder/text3.tif * - * </section><section><h5>Sentiment Analysis</h5> + * ##### Sentiment Analysis * One or more CSV files where each line is a single column: * * GCS_FILE_PATH @@ -144,7 +140,7 @@ * gs://folder/text2.pdf * gs://folder/text3.tif * - * </section><section><h5>Entity Extraction</h5> + * ##### Entity Extraction * * One or more JSONL (JSON Lines) files that either provide inline text or * documents. You can only use one format, either inline text or documents, @@ -214,11 +210,8 @@ * } * } * } - * </section> - * </div> * - * <h4>AutoML Tables</h4><div class="ui-datasection-main"><section - * class="selected"> + * #### AutoML Tables * * See [Preparing your training * data](https://cloud.google.com/automl-tables/docs/predict-batch) for more @@ -264,8 +257,6 @@ * input feature column specs must contain values compatible with the * column spec's data types. Prediction on all the rows of the table * will be attempted. - * </section> - * </div> * * **Input field definitions:** * @@ -626,8 +617,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * non-terminal symbols defined near the end of this comment. The formats * are: * - * <h4>AutoML Vision</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Vision + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -643,7 +634,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/image2.gif * gs://folder/image3.png * - * </section><section><h5>Object Detection</h5> + * ##### Object Detection * * One or more CSV files where each line is a single column: * @@ -658,11 +649,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/image1.jpeg * gs://folder/image2.gif * gs://folder/image3.png - * </section> - * </div> * - * <h4>AutoML Video Intelligence</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Video Intelligence + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -681,7 +670,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/video1.mp4,20,60 * gs://folder/vid2.mov,0,inf * - * </section><section><h5>Object Tracking</h5> + * ##### Object Tracking * * One or more CSV files where each line is a single column: * @@ -699,11 +688,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/video1.mp4,10,40 * gs://folder/video1.mp4,20,60 * gs://folder/vid2.mov,0,inf - * </section> - * </div> * - * <h4>AutoML Natural Language</h4> - * <div class="ds-selector-tabs"><section><h5>Classification</h5> + * #### AutoML Natural Language + * ##### Classification * * One or more CSV files where each line is a single column: * @@ -720,7 +707,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/text2.pdf * gs://folder/text3.tif * - * </section><section><h5>Sentiment Analysis</h5> + * ##### Sentiment Analysis * One or more CSV files where each line is a single column: * * GCS_FILE_PATH @@ -736,7 +723,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * gs://folder/text2.pdf * gs://folder/text3.tif * - * </section><section><h5>Entity Extraction</h5> + * ##### Entity Extraction * * One or more JSONL (JSON Lines) files that either provide inline text or * documents. You can only use one format, either inline text or documents, @@ -806,11 +793,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * } * } * } - * </section> - * </div> * - * <h4>AutoML Tables</h4><div class="ui-datasection-main"><section - * class="selected"> + * #### AutoML Tables * * See [Preparing your training * data](https://cloud.google.com/automl-tables/docs/predict-batch) for more @@ -856,8 +840,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * input feature column specs must contain values compatible with the * column spec's data types. Prediction on all the rows of the table * will be attempted. - * </section> - * </div> * * **Input field definitions:** * diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java index 7cfeaeb4c645..a9277dca6a5e 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfig.java @@ -360,8 +360,8 @@ public DestinationCase getDestinationCase() { * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * @@ -378,8 +378,8 @@ public boolean hasGcsDestination() { * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * @@ -399,8 +399,8 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * @@ -1059,8 +1059,8 @@ public Builder clearDestination() { * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1077,8 +1077,8 @@ public boolean hasGcsDestination() { * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1105,8 +1105,8 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() { * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1130,8 +1130,8 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1153,8 +1153,8 @@ public Builder setGcsDestination( * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1188,8 +1188,8 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1216,8 +1216,8 @@ public Builder clearGcsDestination() { * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1231,8 +1231,8 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * @@ -1254,8 +1254,8 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui * * *
      -     * Required. The Google Cloud Storage location of the directory where the output is to
      -     * be written to.
      +     * Required. The Google Cloud Storage location of the directory where the
      +     * output is to be written to.
            * 
      * * diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java index 5858e4b88ee0..311758af53b5 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/BatchPredictOutputConfigOrBuilder.java @@ -28,8 +28,8 @@ public interface BatchPredictOutputConfigOrBuilder * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * @@ -43,8 +43,8 @@ public interface BatchPredictOutputConfigOrBuilder * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * @@ -58,8 +58,8 @@ public interface BatchPredictOutputConfigOrBuilder * * *
      -   * Required. The Google Cloud Storage location of the directory where the output is to
      -   * be written to.
      +   * Required. The Google Cloud Storage location of the directory where the
      +   * output is to be written to.
          * 
      * * diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java index 467b2089ed8e..abd17ca42b6b 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfig.java @@ -23,7 +23,8 @@ * * *
      - * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
      + * Input configuration for
      + * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
        *
        * The format of input depends on dataset_metadata the Dataset into which
        * the import is happening has. As input source the
      @@ -39,10 +40,10 @@
        * The formats are represented in EBNF with commas being literal and with
        * non-terminal symbols defined near the end of this comment. The formats are:
        *
      - * <h4>AutoML Vision</h4>
      + * #### AutoML Vision
        *
        *
      - * <div class="ds-selector-tabs"><section><h5>Classification</h5>
      + * ##### Classification
        *
        * See [Preparing your training
        * data](https://cloud.google.com/vision/automl/docs/prepare) for more
      @@ -79,7 +80,7 @@
        *     UNASSIGNED,gs://folder/image4.jpg
        *
        *
      - * </section><section><h5>Object Detection</h5>
      + * ##### Object Detection
        * See [Preparing your training
        * data](https://cloud.google.com/vision/automl/object-detection/docs/prepare)
        * for more information.
      @@ -121,10 +122,10 @@
        * </div>
        *
        *
      - * <h4>AutoML Video Intelligence</h4>
      + * #### AutoML Video Intelligence
        *
        *
      - * <div class="ds-selector-tabs"><section><h5>Classification</h5>
      + * ##### Classification
        *
        * See [Preparing your training
        * data](https://cloud.google.com/video-intelligence/automl/docs/prepare) for
      @@ -167,7 +168,7 @@
        *
        *
        *
      - * </section><section><h5>Object Tracking</h5>
      + * ##### Object Tracking
        *
        * See [Preparing your training
        * data](/video-intelligence/automl/object-tracking/docs/prepare) for more
      @@ -218,14 +219,12 @@
        *      gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,,
        *      gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,,
        *      gs://folder/video2.avi,,,,,,,,,,,
      - *   </section>
      - * </div>
        *
        *
      - * <h4>AutoML Natural Language</h4>
      + * #### AutoML Natural Language
        *
        *
      - * <div class="ds-selector-tabs"><section><h5>Entity Extraction</h5>
      + * ##### Entity Extraction
        *
        * See [Preparing your training
        * data](/natural-language/automl/entity-analysis/docs/prepare) for more
      @@ -408,7 +407,7 @@
        *
        *
        *
      - * </section><section><h5>Classification</h5>
      + * ##### Classification
        *
        * See [Preparing your training
        * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
      @@ -455,7 +454,7 @@
        *
        *
        *
      - * </section><section><h5>Sentiment Analysis</h5>
      + * ##### Sentiment Analysis
        *
        * See [Preparing your training
        * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
      @@ -512,13 +511,10 @@
        *     gs://folder/content.txt,3
        *     TEST,gs://folder/document.pdf
        *     VALIDATE,gs://folder/text_files.zip,2
      - *   </section>
      - * </div>
        *
        *
        *
      - * <h4>AutoML Tables</h4><div class="ui-datasection-main"><section
      - * class="selected">
      + * #### AutoML Tables
        *
        * See [Preparing your training
        * data](https://cloud.google.com/automl-tables/docs/prepare) for more
      @@ -557,8 +553,6 @@
        * and between 1000 and 100,000,000 rows, inclusive. There are at most 5
        * import data running in parallel.
        *
      - *   </section>
      - * </div>
        *
        *
        * **Input field definitions:**
      @@ -735,8 +729,9 @@ public SourceCase getSourceCase() {
          *
          * 
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -752,8 +747,9 @@ public boolean hasGcsSource() { * *
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -772,8 +768,9 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { * *
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -820,7 +817,7 @@ public int getParamsCount() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -852,7 +849,7 @@ public java.util.Map getParams() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -875,7 +872,7 @@ public java.util.Map getParamsMap() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -905,7 +902,7 @@ public java.util.Map getParamsMap() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -1122,7 +1119,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
      +   * Input configuration for
      +   * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
          *
          * The format of input depends on dataset_metadata the Dataset into which
          * the import is happening has. As input source the
      @@ -1138,10 +1136,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          * The formats are represented in EBNF with commas being literal and with
          * non-terminal symbols defined near the end of this comment. The formats are:
          *
      -   * <h4>AutoML Vision</h4>
      +   * #### AutoML Vision
          *
          *
      -   * <div class="ds-selector-tabs"><section><h5>Classification</h5>
      +   * ##### Classification
          *
          * See [Preparing your training
          * data](https://cloud.google.com/vision/automl/docs/prepare) for more
      @@ -1178,7 +1176,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *     UNASSIGNED,gs://folder/image4.jpg
          *
          *
      -   * </section><section><h5>Object Detection</h5>
      +   * ##### Object Detection
          * See [Preparing your training
          * data](https://cloud.google.com/vision/automl/object-detection/docs/prepare)
          * for more information.
      @@ -1220,10 +1218,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          * </div>
          *
          *
      -   * <h4>AutoML Video Intelligence</h4>
      +   * #### AutoML Video Intelligence
          *
          *
      -   * <div class="ds-selector-tabs"><section><h5>Classification</h5>
      +   * ##### Classification
          *
          * See [Preparing your training
          * data](https://cloud.google.com/video-intelligence/automl/docs/prepare) for
      @@ -1266,7 +1264,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          *
          *
      -   * </section><section><h5>Object Tracking</h5>
      +   * ##### Object Tracking
          *
          * See [Preparing your training
          * data](/video-intelligence/automl/object-tracking/docs/prepare) for more
      @@ -1317,14 +1315,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *      gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,,
          *      gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,,
          *      gs://folder/video2.avi,,,,,,,,,,,
      -   *   </section>
      -   * </div>
          *
          *
      -   * <h4>AutoML Natural Language</h4>
      +   * #### AutoML Natural Language
          *
          *
      -   * <div class="ds-selector-tabs"><section><h5>Entity Extraction</h5>
      +   * ##### Entity Extraction
          *
          * See [Preparing your training
          * data](/natural-language/automl/entity-analysis/docs/prepare) for more
      @@ -1507,7 +1503,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          *
          *
      -   * </section><section><h5>Classification</h5>
      +   * ##### Classification
          *
          * See [Preparing your training
          * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
      @@ -1554,7 +1550,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          *
          *
      -   * </section><section><h5>Sentiment Analysis</h5>
      +   * ##### Sentiment Analysis
          *
          * See [Preparing your training
          * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more
      @@ -1611,13 +1607,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *     gs://folder/content.txt,3
          *     TEST,gs://folder/document.pdf
          *     VALIDATE,gs://folder/text_files.zip,2
      -   *   </section>
      -   * </div>
          *
          *
          *
      -   * <h4>AutoML Tables</h4><div class="ui-datasection-main"><section
      -   * class="selected">
      +   * #### AutoML Tables
          *
          * See [Preparing your training
          * data](https://cloud.google.com/automl-tables/docs/prepare) for more
      @@ -1656,8 +1649,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          * and between 1000 and 100,000,000 rows, inclusive. There are at most 5
          * import data running in parallel.
          *
      -   *   </section>
      -   * </div>
          *
          *
          * **Input field definitions:**
      @@ -1991,8 +1982,9 @@ public Builder clearSource() {
            *
            * 
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2008,8 +2000,9 @@ public boolean hasGcsSource() { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2035,8 +2028,9 @@ public com.google.cloud.automl.v1.GcsSource getGcsSource() { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2059,8 +2053,9 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource value) { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2080,8 +2075,9 @@ public Builder setGcsSource(com.google.cloud.automl.v1.GcsSource.Builder builder * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2114,8 +2110,9 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1.GcsSource value) { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2141,8 +2138,9 @@ public Builder clearGcsSource() { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2155,8 +2153,9 @@ public com.google.cloud.automl.v1.GcsSource.Builder getGcsSourceBuilder() { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2177,8 +2176,9 @@ public com.google.cloud.automl.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { * *
            * The Google Cloud Storage location for the input content.
      -     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -     * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +     * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +     * `gcs_source` points to a CSV file with a structure described in
      +     * [InputConfig][google.cloud.automl.v1.InputConfig].
            * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -2238,7 +2238,7 @@ public int getParamsCount() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2270,7 +2270,7 @@ public java.util.Map getParams() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2293,7 +2293,7 @@ public java.util.Map getParamsMap() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2323,7 +2323,7 @@ public java.util.Map getParamsMap() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2359,7 +2359,7 @@ public Builder clearParams() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2391,7 +2391,7 @@ public java.util.Map getMutableParams() { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -2421,7 +2421,7 @@ public Builder putParams(java.lang.String key, java.lang.String value) { * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java index 4bf59ba154d8..8a6384429921 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/InputConfigOrBuilder.java @@ -29,8 +29,9 @@ public interface InputConfigOrBuilder * *
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -43,8 +44,9 @@ public interface InputConfigOrBuilder * *
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -57,8 +59,9 @@ public interface InputConfigOrBuilder * *
          * The Google Cloud Storage location for the input content.
      -   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with
      -   * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig].
      +   * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData],
      +   * `gcs_source` points to a CSV file with a structure described in
      +   * [InputConfig][google.cloud.automl.v1.InputConfig].
          * 
      * * .google.cloud.automl.v1.GcsSource gcs_source = 1; @@ -73,7 +76,7 @@ public interface InputConfigOrBuilder * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -93,7 +96,7 @@ public interface InputConfigOrBuilder * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -116,7 +119,7 @@ public interface InputConfigOrBuilder * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -136,7 +139,7 @@ public interface InputConfigOrBuilder * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. @@ -160,7 +163,7 @@ java.lang.String getParamsOrDefault( * imported data, any string must be up to 25000 * characters long. * - * <h4>AutoML Tables</h4> + * #### AutoML Tables * * `schema_inference_version` * : (integer) This value must be supplied. diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java index 5e42320bed37..97f20b03860e 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfig.java @@ -126,8 +126,9 @@ public DestinationCase getDestinationCase() { * * *
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      @@ -151,8 +152,9 @@ public boolean hasGcsDestination() {
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      @@ -179,8 +181,9 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      @@ -917,8 +920,9 @@ public Builder clearDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -942,8 +946,9 @@ public boolean hasGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -977,8 +982,9 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1009,8 +1015,9 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1039,8 +1046,9 @@ public Builder setGcsDestination(
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1081,8 +1089,9 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1116,8 +1125,9 @@ public Builder clearGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1138,8 +1148,9 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      @@ -1168,8 +1179,9 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the model is to be written to.
      -     * This location may only be set for the following model formats:
      +     * Required. The Google Cloud Storage location where the model is to be
      +     * written to. This location may only be set for the following model
      +     * formats:
            *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
            *
            *  Under the directory given as the destination a new one with name
      diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
      index daffb40f8038..3a89d79815f0 100644
      --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
      +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelExportOutputConfigOrBuilder.java
      @@ -28,8 +28,9 @@ public interface ModelExportOutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      @@ -50,8 +51,9 @@ public interface ModelExportOutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      @@ -72,8 +74,9 @@ public interface ModelExportOutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the model is to be written to.
      -   * This location may only be set for the following model formats:
      +   * Required. The Google Cloud Storage location where the model is to be
      +   * written to. This location may only be set for the following model
      +   * formats:
          *   "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
          *
          *  Under the directory given as the destination a new one with name
      diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfig.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfig.java
      index 4fda51144178..285605e6c5ba 100644
      --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfig.java
      +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfig.java
      @@ -139,9 +139,10 @@ public DestinationCase getDestinationCase() {
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      @@ -161,9 +162,10 @@ public boolean hasGcsDestination() {
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      @@ -186,9 +188,10 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      @@ -627,9 +630,10 @@ public Builder clearDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -649,9 +653,10 @@ public boolean hasGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -681,9 +686,10 @@ public com.google.cloud.automl.v1.GcsDestination getGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -710,9 +716,10 @@ public Builder setGcsDestination(com.google.cloud.automl.v1.GcsDestination value
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -737,9 +744,10 @@ public Builder setGcsDestination(
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -776,9 +784,10 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1.GcsDestination val
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -808,9 +817,10 @@ public Builder clearGcsDestination() {
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -827,9 +837,10 @@ public com.google.cloud.automl.v1.GcsDestination.Builder getGcsDestinationBuilde
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      @@ -854,9 +865,10 @@ public com.google.cloud.automl.v1.GcsDestinationOrBuilder getGcsDestinationOrBui
            *
            *
            * 
      -     * Required. The Google Cloud Storage location where the output is to be written to.
      -     * For Image Object Detection, Text Extraction, Video Classification and
      -     * Tables, in the given directory a new directory will be created with name:
      +     * Required. The Google Cloud Storage location where the output is to be
      +     * written to. For Image Object Detection, Text Extraction, Video
      +     * Classification and Tables, in the given directory a new directory will be
      +     * created with name:
            * export_data-<dataset-display-name>-<timestamp-of-export-call> where
            * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
            * output will be written into that directory.
      diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java
      index fc0b458efbf6..d3c272bfd20c 100644
      --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java
      +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/OutputConfigOrBuilder.java
      @@ -28,9 +28,10 @@ public interface OutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      @@ -47,9 +48,10 @@ public interface OutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      @@ -66,9 +68,10 @@ public interface OutputConfigOrBuilder
          *
          *
          * 
      -   * Required. The Google Cloud Storage location where the output is to be written to.
      -   * For Image Object Detection, Text Extraction, Video Classification and
      -   * Tables, in the given directory a new directory will be created with name:
      +   * Required. The Google Cloud Storage location where the output is to be
      +   * written to. For Image Object Detection, Text Extraction, Video
      +   * Classification and Tables, in the given directory a new directory will be
      +   * created with name:
          * export_data-<dataset-display-name>-<timestamp-of-export-call> where
          * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
          * output will be written into that directory.
      diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto b/java-automl/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto
      index 8018851f9c57..77d5d36922a4 100644
      --- a/java-automl/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto
      +++ b/java-automl/proto-google-cloud-automl-v1/src/main/proto/google/cloud/automl/v1/io.proto
      @@ -25,7 +25,8 @@ option java_package = "com.google.cloud.automl.v1";
       option php_namespace = "Google\\Cloud\\AutoMl\\V1";
       option ruby_package = "Google::Cloud::AutoML::V1";
       
      -// Input configuration for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
      +// Input configuration for
      +// [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] action.
       //
       // The format of input depends on dataset_metadata the Dataset into which
       // the import is happening has. As input source the
      @@ -41,10 +42,10 @@ option ruby_package = "Google::Cloud::AutoML::V1";
       // The formats are represented in EBNF with commas being literal and with
       // non-terminal symbols defined near the end of this comment. The formats are:
       //
      -// 

      AutoML Vision

      +// #### AutoML Vision // // -//
      Classification
      +// ##### Classification // // See [Preparing your training // data](https://cloud.google.com/vision/automl/docs/prepare) for more @@ -81,7 +82,7 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // UNASSIGNED,gs://folder/image4.jpg // // -//
      Object Detection
      +// ##### Object Detection // See [Preparing your training // data](https://cloud.google.com/vision/automl/object-detection/docs/prepare) // for more information. @@ -123,10 +124,10 @@ option ruby_package = "Google::Cloud::AutoML::V1"; //
      // // -//

      AutoML Video Intelligence

      +// #### AutoML Video Intelligence // // -//
      Classification
      +// ##### Classification // // See [Preparing your training // data](https://cloud.google.com/video-intelligence/automl/docs/prepare) for @@ -169,7 +170,7 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // // // -//
      Object Tracking
      +// ##### Object Tracking // // See [Preparing your training // data](/video-intelligence/automl/object-tracking/docs/prepare) for more @@ -220,14 +221,12 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,, // gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,, // gs://folder/video2.avi,,,,,,,,,,, -//
      -//
      // // -//

      AutoML Natural Language

      +// #### AutoML Natural Language // // -//
      Entity Extraction
      +// ##### Entity Extraction // // See [Preparing your training // data](/natural-language/automl/entity-analysis/docs/prepare) for more @@ -410,7 +409,7 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // // // -//
      Classification
      +// ##### Classification // // See [Preparing your training // data](https://cloud.google.com/natural-language/automl/docs/prepare) for more @@ -457,7 +456,7 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // // // -//
      Sentiment Analysis
      +// ##### Sentiment Analysis // // See [Preparing your training // data](https://cloud.google.com/natural-language/automl/docs/prepare) for more @@ -514,13 +513,10 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // gs://folder/content.txt,3 // TEST,gs://folder/document.pdf // VALIDATE,gs://folder/text_files.zip,2 -//
      -//
      // // // -//

      AutoML Tables

      +// #### AutoML Tables // // See [Preparing your training // data](https://cloud.google.com/automl-tables/docs/prepare) for more @@ -559,8 +555,6 @@ option ruby_package = "Google::Cloud::AutoML::V1"; // and between 1000 and 100,000,000 rows, inclusive. There are at most 5 // import data running in parallel. // -//
      -//
      // // // **Input field definitions:** @@ -641,8 +635,9 @@ message InputConfig { // The source of the input. oneof source { // The Google Cloud Storage location for the input content. - // For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with - // a structure described in [InputConfig][google.cloud.automl.v1.InputConfig]. + // For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], + // `gcs_source` points to a CSV file with a structure described in + // [InputConfig][google.cloud.automl.v1.InputConfig]. GcsSource gcs_source = 1; } @@ -650,7 +645,7 @@ message InputConfig { // imported data, any string must be up to 25000 // characters long. // - //

      AutoML Tables

      + // #### AutoML Tables // // `schema_inference_version` // : (integer) This value must be supplied. @@ -671,8 +666,8 @@ message InputConfig { // non-terminal symbols defined near the end of this comment. The formats // are: // -//

      AutoML Vision

      -//
      Classification
      +// #### AutoML Vision +// ##### Classification // // One or more CSV files where each line is a single column: // @@ -688,7 +683,7 @@ message InputConfig { // gs://folder/image2.gif // gs://folder/image3.png // -//
      Object Detection
      +// ##### Object Detection // // One or more CSV files where each line is a single column: // @@ -703,11 +698,9 @@ message InputConfig { // gs://folder/image1.jpeg // gs://folder/image2.gif // gs://folder/image3.png -//
      -//
      // -//

      AutoML Video Intelligence

      -//
      Classification
      +// #### AutoML Video Intelligence +// ##### Classification // // One or more CSV files where each line is a single column: // @@ -726,7 +719,7 @@ message InputConfig { // gs://folder/video1.mp4,20,60 // gs://folder/vid2.mov,0,inf // -//
      Object Tracking
      +// ##### Object Tracking // // One or more CSV files where each line is a single column: // @@ -744,11 +737,9 @@ message InputConfig { // gs://folder/video1.mp4,10,40 // gs://folder/video1.mp4,20,60 // gs://folder/vid2.mov,0,inf -//
      -//
      // -//

      AutoML Natural Language

      -//
      Classification
      +// #### AutoML Natural Language +// ##### Classification // // One or more CSV files where each line is a single column: // @@ -765,7 +756,7 @@ message InputConfig { // gs://folder/text2.pdf // gs://folder/text3.tif // -//
      Sentiment Analysis
      +// ##### Sentiment Analysis // One or more CSV files where each line is a single column: // // GCS_FILE_PATH @@ -781,7 +772,7 @@ message InputConfig { // gs://folder/text2.pdf // gs://folder/text3.tif // -//
      Entity Extraction
      +// ##### Entity Extraction // // One or more JSONL (JSON Lines) files that either provide inline text or // documents. You can only use one format, either inline text or documents, @@ -851,11 +842,8 @@ message InputConfig { // } // } // } -//
      -//
      // -//

      AutoML Tables

      +// #### AutoML Tables // // See [Preparing your training // data](https://cloud.google.com/automl-tables/docs/predict-batch) for more @@ -901,8 +889,6 @@ message InputConfig { // input feature column specs must contain values compatible with the // column spec's data types. Prediction on all the rows of the table // will be attempted. -//
      -//
      // // **Input field definitions:** // @@ -984,9 +970,10 @@ message DocumentInputConfig { message OutputConfig { // The destination of the output. oneof destination { - // Required. The Google Cloud Storage location where the output is to be written to. - // For Image Object Detection, Text Extraction, Video Classification and - // Tables, in the given directory a new directory will be created with name: + // Required. The Google Cloud Storage location where the output is to be + // written to. For Image Object Detection, Text Extraction, Video + // Classification and Tables, in the given directory a new directory will be + // created with name: // export_data-- where // timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export // output will be written into that directory. @@ -1246,8 +1233,8 @@ message OutputConfig { message BatchPredictOutputConfig { // The destination of the output. oneof destination { - // Required. The Google Cloud Storage location of the directory where the output is to - // be written to. + // Required. The Google Cloud Storage location of the directory where the + // output is to be written to. GcsDestination gcs_destination = 1 [(google.api.field_behavior) = REQUIRED]; } } @@ -1256,8 +1243,9 @@ message BatchPredictOutputConfig { message ModelExportOutputConfig { // The destination of the output. oneof destination { - // Required. The Google Cloud Storage location where the model is to be written to. - // This location may only be set for the following model formats: + // Required. The Google Cloud Storage location where the model is to be + // written to. This location may only be set for the following model + // formats: // "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". // // Under the directory given as the destination a new one with name diff --git a/java-backupdr/README.md b/java-backupdr/README.md index a738f5e24f9f..a4bd1f727b34 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.12.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.13.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 87585aed7a1d..7544b1beb3e0 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.53.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.54.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/README.md b/java-batch/README.md index 6980f46cfb79..d6b8af5b45cd 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.53.0' +implementation 'com.google.cloud:google-cloud-batch:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.54.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index 161b121cfaa9..8374a409f7c9 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -4463,7 +4463,7 @@ public interface AcceleratorOrBuilder * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=368 + * deprecated. See google/cloud/batch/v1/job.proto;l=378 * @return The installGpuDrivers. */ @java.lang.Deprecated @@ -4634,7 +4634,7 @@ public long getCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=368 + * deprecated. See google/cloud/batch/v1/job.proto;l=378 * @return The installGpuDrivers. */ @java.lang.Override @@ -5296,7 +5296,7 @@ public Builder clearCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=368 + * deprecated. See google/cloud/batch/v1/job.proto;l=378 * @return The installGpuDrivers. */ @java.lang.Override @@ -5314,7 +5314,7 @@ public boolean getInstallGpuDrivers() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=368 + * deprecated. See google/cloud/batch/v1/job.proto;l=378 * @param value The installGpuDrivers to set. * @return This builder for chaining. */ @@ -5336,7 +5336,7 @@ public Builder setInstallGpuDrivers(boolean value) { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=368 + * deprecated. See google/cloud/batch/v1/job.proto;l=378 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5803,8 +5803,10 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -5816,8 +5818,10 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -6253,8 +6257,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -6277,8 +6283,10 @@ public java.lang.String getReservation() { * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8244,8 +8252,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8267,8 +8277,10 @@ public java.lang.String getReservation() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8290,8 +8302,10 @@ public com.google.protobuf.ByteString getReservationBytes() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8312,8 +8326,10 @@ public Builder setReservation(java.lang.String value) { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8330,8 +8346,10 @@ public Builder clearReservation() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8462,7 +8480,8 @@ public interface InstancePolicyOrTemplateOrBuilder * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -8479,7 +8498,8 @@ public interface InstancePolicyOrTemplateOrBuilder * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -8496,7 +8516,8 @@ public interface InstancePolicyOrTemplateOrBuilder * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -8728,7 +8749,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder getPol * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -8747,7 +8769,8 @@ public boolean hasInstanceTemplate() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -8779,7 +8802,8 @@ public java.lang.String getInstanceTemplate() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9603,7 +9627,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9623,7 +9648,8 @@ public boolean hasInstanceTemplate() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9656,7 +9682,8 @@ public java.lang.String getInstanceTemplate() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9689,7 +9716,8 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9715,7 +9743,8 @@ public Builder setInstanceTemplate(java.lang.String value) { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -9739,7 +9768,8 @@ public Builder clearInstanceTemplate() { * Named the field as 'instance_template' instead of 'template' to avoid * C++ keyword conflict. * - * Batch only supports global instance templates. + * Batch only supports global instance templates from the same project as + * the job. * You can specify the global instance template as a full or partial URL. *
      * @@ -13293,13 +13323,17 @@ public int getLabelsCount() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -13321,13 +13355,17 @@ public java.util.Map getLabels() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -13340,13 +13378,17 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -13366,13 +13408,17 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -15135,13 +15181,17 @@ public int getLabelsCount() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15163,13 +15213,17 @@ public java.util.Map getLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15182,13 +15236,17 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15208,13 +15266,17 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15240,13 +15302,17 @@ public Builder clearLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15268,13 +15334,17 @@ public java.util.Map getMutableLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -15294,13 +15364,17 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java index 83a07372059a..10af1e813800 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java @@ -193,13 +193,17 @@ public interface AllocationPolicyOrBuilder * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -209,13 +213,17 @@ public interface AllocationPolicyOrBuilder * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -228,13 +236,17 @@ public interface AllocationPolicyOrBuilder * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -244,13 +256,17 @@ public interface AllocationPolicyOrBuilder * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -264,13 +280,17 @@ java.lang.String getLabelsOrDefault( * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java index 0ed81d72d7a8..fa4b92204b32 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java @@ -364,16 +364,18 @@ public int getLabelsCount() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -395,16 +397,18 @@ public java.util.Map getLabels() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -417,16 +421,18 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -446,16 +452,18 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -2380,16 +2388,18 @@ public int getLabelsCount() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2411,16 +2421,18 @@ public java.util.Map getLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2433,16 +2445,18 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2462,16 +2476,18 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2497,16 +2513,18 @@ public Builder clearLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2528,16 +2546,18 @@ public java.util.Map getMutableLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -2557,16 +2577,18 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java index 759050952dc5..c7f1c5b099af 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java @@ -194,16 +194,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -213,16 +215,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -235,16 +239,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -254,16 +260,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -277,16 +285,18 @@ java.lang.String getLabelsOrDefault( * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java index 11cb6586676b..a44cd5db1723 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java @@ -23,8 +23,10 @@ * * *
      - * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
      - * preserved.
      + * LogsPolicy describes if and how a job's logs are preserved. Logs include
      + * information that is automatically written by the Batch service agent and any
      + * information that you configured the job's runnables to write to the `stdout`
      + * or `stderr` streams.
        * 
      * * Protobuf type {@code google.cloud.batch.v1.LogsPolicy} @@ -79,7 +81,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are not preserved.
      +     * (Default) Logs are not preserved.
            * 
      * * DESTINATION_UNSPECIFIED = 0; @@ -89,7 +91,8 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are streamed to Cloud Logging.
      +     * Logs are streamed to Cloud Logging. Optionally, you can configure
      +     * additional settings in the `cloudLoggingOption` field.
            * 
      * * CLOUD_LOGGING = 1; @@ -99,7 +102,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are saved to a file path.
      +     * Logs are saved to the file path specified in the `logsPath` field.
            * 
      * * PATH = 2; @@ -112,7 +115,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are not preserved.
      +     * (Default) Logs are not preserved.
            * 
      * * DESTINATION_UNSPECIFIED = 0; @@ -122,7 +125,8 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are streamed to Cloud Logging.
      +     * Logs are streamed to Cloud Logging. Optionally, you can configure
      +     * additional settings in the `cloudLoggingOption` field.
            * 
      * * CLOUD_LOGGING = 1; @@ -132,7 +136,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are saved to a file path.
      +     * Logs are saved to the file path specified in the `logsPath` field.
            * 
      * * PATH = 2; @@ -231,7 +235,7 @@ public interface CloudLoggingOptionOrBuilder * * *
      -     * Optional. Set this flag to true to change the [monitored resource
      +     * Optional. Set this field to `true` to change the [monitored resource
            * type](https://cloud.google.com/monitoring/api/resources) for
            * Cloud Logging logs generated by this Batch job from
            * the
      @@ -297,7 +301,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            *
            *
            * 
      -     * Optional. Set this flag to true to change the [monitored resource
      +     * Optional. Set this field to `true` to change the [monitored resource
            * type](https://cloud.google.com/monitoring/api/resources) for
            * Cloud Logging logs generated by this Batch job from
            * the
      @@ -673,7 +677,7 @@ public Builder mergeFrom(
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -697,7 +701,7 @@ public boolean getUseGenericTaskMonitoredResource() {
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -725,7 +729,7 @@ public Builder setUseGenericTaskMonitoredResource(boolean value) {
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -819,7 +823,7 @@ public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getDefaultInstanc
          *
          *
          * 
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -834,7 +838,7 @@ public int getDestinationValue() { * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -856,9 +860,14 @@ public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -881,9 +890,14 @@ public java.lang.String getLogsPath() { * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -909,8 +923,8 @@ public com.google.protobuf.ByteString getLogsPathBytes() { * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -927,8 +941,8 @@ public boolean hasCloudLoggingOption() { * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -947,8 +961,8 @@ public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getCloudLoggingOp * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -1149,8 +1163,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
      -   * preserved.
      +   * LogsPolicy describes if and how a job's logs are preserved. Logs include
      +   * information that is automatically written by the Batch service agent and any
      +   * information that you configured the job's runnables to write to the `stdout`
      +   * or `stderr` streams.
          * 
      * * Protobuf type {@code google.cloud.batch.v1.LogsPolicy} @@ -1378,7 +1394,7 @@ public Builder mergeFrom( * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -1393,7 +1409,7 @@ public int getDestinationValue() { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -1411,7 +1427,7 @@ public Builder setDestinationValue(int value) { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -1430,7 +1446,7 @@ public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -1451,7 +1467,7 @@ public Builder setDestination(com.google.cloud.batch.v1.LogsPolicy.Destination v * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -1470,9 +1486,14 @@ public Builder clearDestination() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1494,9 +1515,14 @@ public java.lang.String getLogsPath() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1518,9 +1544,14 @@ public com.google.protobuf.ByteString getLogsPathBytes() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1541,9 +1572,14 @@ public Builder setLogsPath(java.lang.String value) { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1560,9 +1596,14 @@ public Builder clearLogsPath() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1591,8 +1632,8 @@ public Builder setLogsPathBytes(com.google.protobuf.ByteString value) { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1608,8 +1649,8 @@ public boolean hasCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1631,8 +1672,8 @@ public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getCloudLoggingOp * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1657,8 +1698,8 @@ public Builder setCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1680,8 +1721,8 @@ public Builder setCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1712,8 +1753,8 @@ public Builder mergeCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1734,8 +1775,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1752,8 +1793,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1774,8 +1815,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java index 81137e08f5f0..d9cb173f458f 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java @@ -28,7 +28,7 @@ public interface LogsPolicyOrBuilder * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -40,7 +40,7 @@ public interface LogsPolicyOrBuilder * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; @@ -53,9 +53,14 @@ public interface LogsPolicyOrBuilder * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -67,9 +72,14 @@ public interface LogsPolicyOrBuilder * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -82,8 +92,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -97,8 +107,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -112,8 +122,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index 98c3b5b6f6eb..a215c35b837a 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -58,16 +58,18 @@ message Job { // Compute resource allocation for all TaskGroups in the Job. AllocationPolicy allocation_policy = 7; - // Labels for the Job. Labels could be user provided or system generated. - // For example, - // "labels": { - // "department": "finance", - // "environment": "test" - // } - // You can assign up to 64 labels. [Google Compute Engine label - // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - // apply. - // Label names that start with "goog-" or "google-" are reserved. + // Custom labels to apply to the job and any Cloud Logging + // [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) + // that it generates. + // + // Use labels to group and describe the resources they are applied to. Batch + // automatically applies predefined labels and supports multiple `labels` + // fields for each job, which each let you apply custom labels to various + // resources. Label names that start with "goog-" or "google-" are + // reserved for predefined labels. For more information about labels with + // Batch, see + // [Organize resources using + // labels](https://cloud.google.com/batch/docs/organize-resources-using-labels). map labels = 8; // Output only. Job status. It is read only for users. @@ -88,13 +90,15 @@ message Job { repeated JobNotification notifications = 14; } -// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be -// preserved. +// LogsPolicy describes if and how a job's logs are preserved. Logs include +// information that is automatically written by the Batch service agent and any +// information that you configured the job's runnables to write to the `stdout` +// or `stderr` streams. message LogsPolicy { // `CloudLoggingOption` contains additional settings for Cloud Logging logs // generated by Batch job. message CloudLoggingOption { - // Optional. Set this flag to true to change the [monitored resource + // Optional. Set this field to `true` to change the [monitored resource // type](https://cloud.google.com/monitoring/api/resources) for // Cloud Logging logs generated by this Batch job from // the @@ -108,26 +112,32 @@ message LogsPolicy { // The destination (if any) for logs. enum Destination { - // Logs are not preserved. + // (Default) Logs are not preserved. DESTINATION_UNSPECIFIED = 0; - // Logs are streamed to Cloud Logging. + // Logs are streamed to Cloud Logging. Optionally, you can configure + // additional settings in the `cloudLoggingOption` field. CLOUD_LOGGING = 1; - // Logs are saved to a file path. + // Logs are saved to the file path specified in the `logsPath` field. PATH = 2; } - // Where logs should be saved. + // If and where logs should be saved. Destination destination = 1; - // The path to which logs are saved when the destination = PATH. This can be a - // local file path on the VM, or under the mount point of a Persistent Disk or - // Filestore, or a Cloud Storage path. + // When `destination` is set to `PATH`, you must set this field to the path + // where you want logs to be saved. This path can point to a local directory + // on the VM or (if congifured) a directory under the mount path of any + // Cloud Storage bucket, network file system (NFS), or writable persistent + // disk that is mounted to the job. For example, if the job has a bucket with + // `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the + // root directory of the `remotePath` of that bucket by setting this field to + // `/mnt/disks/my-bucket/`. string logs_path = 2; - // Optional. Additional settings for Cloud Logging. It will only take effect - // when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`. + // Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally + // set this field to configure additional settings for Cloud Logging. CloudLoggingOption cloud_logging_option = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -407,8 +417,10 @@ message AllocationPolicy { // storage and accessing. repeated AttachedDisk disks = 6; - // Optional. If specified, VMs will consume only the specified reservation. - // If not specified (default), VMs will consume any applicable reservation. + // Optional. If not specified (default), VMs will consume any applicable + // reservation. If "NO_RESERVATION" is specified, VMs will not consume any + // reservation. Otherwise, if specified, VMs will consume only the specified + // reservation. string reservation = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -425,7 +437,8 @@ message AllocationPolicy { // Named the field as 'instance_template' instead of 'template' to avoid // C++ keyword conflict. // - // Batch only supports global instance templates. + // Batch only supports global instance templates from the same project as + // the job. // You can specify the global instance template as a full or partial URL. string instance_template = 2; } @@ -561,13 +574,17 @@ message AllocationPolicy { // default cloud-platform scope. (list of strings) ServiceAccount service_account = 9; - // Labels applied to all VM instances and other resources - // created by AllocationPolicy. - // Labels could be user provided or system generated. - // You can assign up to 64 labels. [Google Compute Engine label - // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - // apply. - // Label names that start with "goog-" or "google-" are reserved. + // Custom labels to apply to the job and all the Compute Engine resources + // that both are created by this allocation policy and support labels. + // + // Use labels to group and describe the resources they are applied to. Batch + // automatically applies predefined labels and supports multiple `labels` + // fields for each job, which each let you apply custom labels to various + // resources. Label names that start with "goog-" or "google-" are + // reserved for predefined labels. For more information about labels with + // Batch, see + // [Organize resources using + // labels](https://cloud.google.com/batch/docs/organize-resources-using-labels). map labels = 6; // The network policy. diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java index b9f815214d1d..b2ca36f0c15b 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java @@ -4842,7 +4842,7 @@ public interface AcceleratorOrBuilder * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The installGpuDrivers. */ @java.lang.Deprecated @@ -5013,7 +5013,7 @@ public long getCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The installGpuDrivers. */ @java.lang.Override @@ -5678,7 +5678,7 @@ public Builder clearCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The installGpuDrivers. */ @java.lang.Override @@ -5696,7 +5696,7 @@ public boolean getInstallGpuDrivers() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param value The installGpuDrivers to set. * @return This builder for chaining. */ @@ -5718,7 +5718,7 @@ public Builder setInstallGpuDrivers(boolean value) { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5945,7 +5945,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -5960,7 +5960,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -5975,7 +5975,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -5991,7 +5991,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -6256,8 +6256,10 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder getDisksOr * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -6269,8 +6271,10 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder getDisksOr * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -6346,7 +6350,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -6363,7 +6367,7 @@ public com.google.protobuf.ProtocolStringList getAllowedMachineTypesList() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -6380,7 +6384,7 @@ public int getAllowedMachineTypesCount() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -6398,7 +6402,7 @@ public java.lang.String getAllowedMachineTypes(int index) { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -6792,8 +6796,10 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder get * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -6816,8 +6822,10 @@ public java.lang.String getReservation() { * * *
      -     * Optional. If specified, VMs will consume only the specified reservation.
      -     * If not specified (default), VMs will consume any applicable reservation.
      +     * Optional. If not specified (default), VMs will consume any applicable
      +     * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +     * reservation. Otherwise, if specified, VMs will consume only the specified
      +     * reservation.
            * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -7510,7 +7518,7 @@ private void ensureAllowedMachineTypesIsMutable() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -7529,7 +7537,7 @@ public com.google.protobuf.ProtocolStringList getAllowedMachineTypesList() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -7547,7 +7555,7 @@ public int getAllowedMachineTypesCount() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -7566,7 +7574,7 @@ public java.lang.String getAllowedMachineTypes(int index) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -7585,7 +7593,7 @@ public com.google.protobuf.ByteString getAllowedMachineTypesBytes(int index) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param index The index to set the value at. * @param value The allowedMachineTypes to set. * @return This builder for chaining. @@ -7612,7 +7620,7 @@ public Builder setAllowedMachineTypes(int index, java.lang.String value) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param value The allowedMachineTypes to add. * @return This builder for chaining. */ @@ -7638,7 +7646,7 @@ public Builder addAllowedMachineTypes(java.lang.String value) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param values The allowedMachineTypes to add. * @return This builder for chaining. */ @@ -7661,7 +7669,7 @@ public Builder addAllAllowedMachineTypes(java.lang.Iterable va * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7683,7 +7691,7 @@ public Builder clearAllowedMachineTypes() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=456 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=466 * @param value The bytes of the allowedMachineTypes to add. * @return This builder for chaining. */ @@ -9064,8 +9072,10 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder addD * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9087,8 +9097,10 @@ public java.lang.String getReservation() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9110,8 +9122,10 @@ public com.google.protobuf.ByteString getReservationBytes() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9132,8 +9146,10 @@ public Builder setReservation(java.lang.String value) { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9150,8 +9166,10 @@ public Builder clearReservation() { * * *
      -       * Optional. If specified, VMs will consume only the specified reservation.
      -       * If not specified (default), VMs will consume any applicable reservation.
      +       * Optional. If not specified (default), VMs will consume any applicable
      +       * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
      +       * reservation. Otherwise, if specified, VMs will consume only the specified
      +       * reservation.
              * 
      * * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9283,7 +9301,11 @@ public interface InstancePolicyOrTemplateOrBuilder *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -9297,7 +9319,11 @@ public interface InstancePolicyOrTemplateOrBuilder *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -9311,7 +9337,11 @@ public interface InstancePolicyOrTemplateOrBuilder *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -9542,7 +9572,11 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy getPolicy( *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -9558,7 +9592,11 @@ public boolean hasInstanceTemplate() { *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -9587,7 +9625,11 @@ public java.lang.String getInstanceTemplate() { *
            * Name of an instance template used to create VMs.
            * Named the field as 'instance_template' instead of 'template' to avoid
      -     * c++ keyword conflict.
      +     * C++ keyword conflict.
      +     *
      +     * Batch only supports global instance templates from the same project as
      +     * the job.
      +     * You can specify the global instance template as a full or partial URL.
            * 
      * * string instance_template = 2; @@ -10426,7 +10468,11 @@ public Builder clearPolicy() { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -10443,7 +10489,11 @@ public boolean hasInstanceTemplate() { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -10473,7 +10523,11 @@ public java.lang.String getInstanceTemplate() { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -10503,7 +10557,11 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -10526,7 +10584,11 @@ public Builder setInstanceTemplate(java.lang.String value) { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -10547,7 +10609,11 @@ public Builder clearInstanceTemplate() { *
              * Name of an instance template used to create VMs.
              * Named the field as 'instance_template' instead of 'template' to avoid
      -       * c++ keyword conflict.
      +       * C++ keyword conflict.
      +       *
      +       * Batch only supports global instance templates from the same project as
      +       * the job.
      +       * You can specify the global instance template as a full or partial URL.
              * 
      * * string instance_template = 2; @@ -13949,7 +14015,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy getLocatio *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return Whether the instance field is set. */ @java.lang.Override @@ -13969,7 +14035,7 @@ public boolean hasInstance() { *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return The instance. */ @java.lang.Override @@ -14106,7 +14172,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -14123,7 +14189,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -14140,7 +14206,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -14158,7 +14224,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -14199,7 +14265,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the provisioningModels. */ @java.lang.Override @@ -14222,7 +14288,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return The count of provisioningModels. */ @java.lang.Override @@ -14242,7 +14308,7 @@ public int getProvisioningModelsCount() { *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -14264,7 +14330,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv *
      * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Override @@ -14284,7 +14350,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -14310,7 +14376,7 @@ public int getProvisioningModelsValue(int index) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The serviceAccountEmail. */ @java.lang.Override @@ -14336,7 +14402,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The bytes for serviceAccountEmail. */ @java.lang.Override @@ -14463,13 +14529,17 @@ public int getLabelsCount() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -14491,13 +14561,17 @@ public java.util.Map getLabels() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -14510,13 +14584,17 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -14536,13 +14614,17 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -15753,7 +15835,7 @@ public Builder clearLocation() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -15772,7 +15854,7 @@ public boolean hasInstance() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return The instance. */ @java.lang.Deprecated @@ -16407,7 +16489,7 @@ private void ensureInstanceTemplatesIsMutable() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -16425,7 +16507,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -16442,7 +16524,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -16460,7 +16542,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -16478,7 +16560,7 @@ public com.google.protobuf.ByteString getInstanceTemplatesBytes(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index to set the value at. * @param value The instanceTemplates to set. * @return This builder for chaining. @@ -16504,7 +16586,7 @@ public Builder setInstanceTemplates(int index, java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param value The instanceTemplates to add. * @return This builder for chaining. */ @@ -16529,7 +16611,7 @@ public Builder addInstanceTemplates(java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param values The instanceTemplates to add. * @return This builder for chaining. */ @@ -16551,7 +16633,7 @@ public Builder addAllInstanceTemplates(java.lang.Iterable valu * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16572,7 +16654,7 @@ public Builder clearInstanceTemplates() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param value The bytes of the instanceTemplates to add. * @return This builder for chaining. */ @@ -16610,7 +16692,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -16632,7 +16714,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -16651,7 +16733,7 @@ public int getProvisioningModelsCount() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -16672,7 +16754,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index to set the value at. * @param value The provisioningModels to set. * @return This builder for chaining. @@ -16700,7 +16782,7 @@ public Builder setProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param value The provisioningModels to add. * @return This builder for chaining. */ @@ -16727,7 +16809,7 @@ public Builder addProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param values The provisioningModels to add. * @return This builder for chaining. */ @@ -16755,7 +16837,7 @@ public Builder addAllProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16777,7 +16859,7 @@ public Builder clearProvisioningModels() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -16796,7 +16878,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -16816,7 +16898,7 @@ public int getProvisioningModelsValue(int index) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index to set the value at. * @param value The enum numeric value on the wire for provisioningModels to set. * @return This builder for chaining. @@ -16840,7 +16922,7 @@ public Builder setProvisioningModelsValue(int index, int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param value The enum numeric value on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -16863,7 +16945,7 @@ public Builder addProvisioningModelsValue(int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=629 + * See google/cloud/batch/v1alpha/job.proto;l=645 * @param values The enum numeric values on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -16888,7 +16970,7 @@ public Builder addAllProvisioningModelsValue(java.lang.Iterablestring service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -16913,7 +16995,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated @@ -16938,7 +17020,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ @@ -16962,7 +17044,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16982,7 +17064,7 @@ public Builder clearServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ @@ -17304,13 +17386,17 @@ public int getLabelsCount() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17332,13 +17418,17 @@ public java.util.Map getLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17351,13 +17441,17 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17377,13 +17471,17 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17409,13 +17507,17 @@ public Builder clearLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17437,13 +17539,17 @@ public java.util.Map getMutableLabels() { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; @@ -17463,13 +17569,17 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
      -     * Labels applied to all VM instances and other resources
      -     * created by AllocationPolicy.
      -     * Labels could be user provided or system generated.
      -     * You can assign up to 64 labels. [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and all the Compute Engine resources
      +     * that both are created by this allocation policy and support labels.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 6; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java index c65b226ded00..18f1d6e56077 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java @@ -71,7 +71,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=619 + * google/cloud/batch/v1alpha/job.proto;l=635 * @return The instance. */ @java.lang.Deprecated @@ -188,7 +188,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -203,7 +203,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -218,7 +218,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -234,7 +234,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=626 + * google/cloud/batch/v1alpha/job.proto;l=642 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -253,7 +253,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -271,7 +271,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -307,7 +307,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -324,7 +324,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=629 + * google/cloud/batch/v1alpha/job.proto;l=645 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -341,7 +341,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -356,7 +356,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=632 + * See google/cloud/batch/v1alpha/job.proto;l=648 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated @@ -431,13 +431,17 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -447,13 +451,17 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -466,13 +474,17 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -482,13 +494,17 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; @@ -502,13 +518,17 @@ java.lang.String getLabelsOrDefault( * * *
      -   * Labels applied to all VM instances and other resources
      -   * created by AllocationPolicy.
      -   * Labels could be user provided or system generated.
      -   * You can assign up to 64 labels. [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and all the Compute Engine resources
      +   * that both are created by this allocation policy and support labels.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 6; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java index 4d409a82ccf0..c93b6baca179 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java @@ -180,7 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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_messag" + "e\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006" - + " \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\211\026\n\014" + + " \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\244\026\n\014" + "BatchService\022\252\001\n\tCreateJob\022,.google.clou" + "d.batch.v1alpha.CreateJobRequest\032\037.googl" + "e.cloud.batch.v1alpha.Job\"N\332A\021parent,job" @@ -195,68 +195,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "protobuf.Empty\022,google.cloud.batch.v1alp" + "ha.OperationMetadata\332A\004name\202\323\344\223\002/*-/v1al" + "pha/{name=projects/*/locations/*/jobs/*}" - + "\022\345\001\n\tCancelJob\022,.google.cloud.batch.v1al" + + "\022\200\002\n\tCancelJob\022,.google.cloud.batch.v1al" + "pha.CancelJobRequest\032\035.google.longrunnin" - + "g.Operation\"\212\001\312AA\n\021CancelJobResponse\022,go" - + "ogle.cloud.batch.v1alpha.OperationMetada" - + "ta\332A\004name\202\323\344\223\0029\"4/v1alpha/{name=projects" - + "/*/locations/*/jobs/*}:cancel:\001*\022\254\001\n\tUpd" - + "ateJob\022,.google.cloud.batch.v1alpha.Upda" - + "teJobRequest\032\037.google.cloud.batch.v1alph" - + "a.Job\"P\332A\017job,update_mask\202\323\344\223\002821/v1alph" - + "a/{job.name=projects/*/locations/*/jobs/" - + "*}:\003job\022\245\001\n\010ListJobs\022+.google.cloud.batc" - + "h.v1alpha.ListJobsRequest\032,.google.cloud" - + ".batch.v1alpha.ListJobsResponse\">\332A\006pare" - + "nt\202\323\344\223\002/\022-/v1alpha/{parent=projects/*/lo" - + "cations/*}/jobs\022\252\001\n\007GetTask\022*.google.clo" - + "ud.batch.v1alpha.GetTaskRequest\032 .google" - + ".cloud.batch.v1alpha.Task\"Q\332A\004name\202\323\344\223\002D" - + "\022B/v1alpha/{name=projects/*/locations/*/" - + "jobs/*/taskGroups/*/tasks/*}\022\275\001\n\tListTas" - + "ks\022,.google.cloud.batch.v1alpha.ListTask" - + "sRequest\032-.google.cloud.batch.v1alpha.Li" - + "stTasksResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1alp" - + "ha/{parent=projects/*/locations/*/jobs/*" - + "/taskGroups/*}/tasks\022\220\002\n\027CreateResourceA" - + "llowance\022:.google.cloud.batch.v1alpha.Cr" - + "eateResourceAllowanceRequest\032-.google.cl" - + "oud.batch.v1alpha.ResourceAllowance\"\211\001\332A" - + "/parent,resource_allowance,resource_allo" - + "wance_id\202\323\344\223\002Q\";/v1alpha/{parent=project" - + "s/*/locations/*}/resourceAllowances:\022res" - + "ource_allowance\022\312\001\n\024GetResourceAllowance" - + "\0227.google.cloud.batch.v1alpha.GetResourc" - + "eAllowanceRequest\032-.google.cloud.batch.v" - + "1alpha.ResourceAllowance\"J\332A\004name\202\323\344\223\002=\022" - + ";/v1alpha/{name=projects/*/locations/*/r" - + "esourceAllowances/*}\022\211\002\n\027DeleteResourceA" - + "llowance\022:.google.cloud.batch.v1alpha.De" - + "leteResourceAllowanceRequest\032\035.google.lo" - + "ngrunning.Operation\"\222\001\312AE\n\025google.protob" - + "uf.Empty\022,google.cloud.batch.v1alpha.Ope" - + "rationMetadata\332A\004name\202\323\344\223\002=*;/v1alpha/{n" - + "ame=projects/*/locations/*/resourceAllow" - + "ances/*}\022\335\001\n\026ListResourceAllowances\0229.go" - + "ogle.cloud.batch.v1alpha.ListResourceAll" - + "owancesRequest\032:.google.cloud.batch.v1al" - + "pha.ListResourceAllowancesResponse\"L\332A\006p" - + "arent\202\323\344\223\002=\022;/v1alpha/{parent=projects/*" - + "/locations/*}/resourceAllowances\022\222\002\n\027Upd" - + "ateResourceAllowance\022:.google.cloud.batc" - + "h.v1alpha.UpdateResourceAllowanceRequest" - + "\032-.google.cloud.batch.v1alpha.ResourceAl" - + "lowance\"\213\001\332A\036resource_allowance,update_m" - + "ask\202\323\344\223\002d2N/v1alpha/{resource_allowance." - + "name=projects/*/locations/*/resourceAllo" - + "wances/*}:\022resource_allowance\032H\312A\024batch." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\304\001\n\036com.google.c" - + "loud.batch.v1alphaB\nBatchProtoP\001Z4cloud." - + "google.com/go/batch/apiv1alpha/batchpb;b" - + "atchpb\242\002\003GCB\252\002\032Google.Cloud.Batch.V1Alph" - + "a\312\002\032Google\\Cloud\\Batch\\V1alpha\352\002\035Google:" - + ":Cloud::Batch::V1alphab\006proto3" + + "g.Operation\"\245\001\312A\\\n,google.cloud.batch.v1" + + "alpha.CancelJobResponse\022,google.cloud.ba" + + "tch.v1alpha.OperationMetadata\332A\004name\202\323\344\223" + + "\0029\"4/v1alpha/{name=projects/*/locations/" + + "*/jobs/*}:cancel:\001*\022\254\001\n\tUpdateJob\022,.goog" + + "le.cloud.batch.v1alpha.UpdateJobRequest\032" + + "\037.google.cloud.batch.v1alpha.Job\"P\332A\017job" + + ",update_mask\202\323\344\223\002821/v1alpha/{job.name=p" + + "rojects/*/locations/*/jobs/*}:\003job\022\245\001\n\010L" + + "istJobs\022+.google.cloud.batch.v1alpha.Lis" + + "tJobsRequest\032,.google.cloud.batch.v1alph" + + "a.ListJobsResponse\">\332A\006parent\202\323\344\223\002/\022-/v1" + + "alpha/{parent=projects/*/locations/*}/jo" + + "bs\022\252\001\n\007GetTask\022*.google.cloud.batch.v1al" + + "pha.GetTaskRequest\032 .google.cloud.batch." + + "v1alpha.Task\"Q\332A\004name\202\323\344\223\002D\022B/v1alpha/{n" + + "ame=projects/*/locations/*/jobs/*/taskGr" + + "oups/*/tasks/*}\022\275\001\n\tListTasks\022,.google.c" + + "loud.batch.v1alpha.ListTasksRequest\032-.go" + + "ogle.cloud.batch.v1alpha.ListTasksRespon" + + "se\"S\332A\006parent\202\323\344\223\002D\022B/v1alpha/{parent=pr" + + "ojects/*/locations/*/jobs/*/taskGroups/*" + + "}/tasks\022\220\002\n\027CreateResourceAllowance\022:.go" + + "ogle.cloud.batch.v1alpha.CreateResourceA" + + "llowanceRequest\032-.google.cloud.batch.v1a" + + "lpha.ResourceAllowance\"\211\001\332A/parent,resou" + + "rce_allowance,resource_allowance_id\202\323\344\223\002" + + "Q\";/v1alpha/{parent=projects/*/locations" + + "/*}/resourceAllowances:\022resource_allowan" + + "ce\022\312\001\n\024GetResourceAllowance\0227.google.clo" + + "ud.batch.v1alpha.GetResourceAllowanceReq" + + "uest\032-.google.cloud.batch.v1alpha.Resour" + + "ceAllowance\"J\332A\004name\202\323\344\223\002=\022;/v1alpha/{na" + + "me=projects/*/locations/*/resourceAllowa" + + "nces/*}\022\211\002\n\027DeleteResourceAllowance\022:.go" + + "ogle.cloud.batch.v1alpha.DeleteResourceA" + + "llowanceRequest\032\035.google.longrunning.Ope" + + "ration\"\222\001\312AE\n\025google.protobuf.Empty\022,goo" + + "gle.cloud.batch.v1alpha.OperationMetadat" + + "a\332A\004name\202\323\344\223\002=*;/v1alpha/{name=projects/" + + "*/locations/*/resourceAllowances/*}\022\335\001\n\026" + + "ListResourceAllowances\0229.google.cloud.ba" + + "tch.v1alpha.ListResourceAllowancesReques" + + "t\032:.google.cloud.batch.v1alpha.ListResou" + + "rceAllowancesResponse\"L\332A\006parent\202\323\344\223\002=\022;" + + "/v1alpha/{parent=projects/*/locations/*}" + + "/resourceAllowances\022\222\002\n\027UpdateResourceAl" + + "lowance\022:.google.cloud.batch.v1alpha.Upd" + + "ateResourceAllowanceRequest\032-.google.clo" + + "ud.batch.v1alpha.ResourceAllowance\"\213\001\332A\036" + + "resource_allowance,update_mask\202\323\344\223\002d2N/v" + + "1alpha/{resource_allowance.name=projects" + + "/*/locations/*/resourceAllowances/*}:\022re" + + "source_allowance\032H\312A\024batch.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\304\001\n\036com.google.cloud.batch.v1" + + "alphaB\nBatchProtoP\001Z4cloud.google.com/go" + + "/batch/apiv1alpha/batchpb;batchpb\242\002\003GCB\252" + + "\002\032Google.Cloud.Batch.V1Alpha\312\002\032Google\\Cl" + + "oud\\Batch\\V1alpha\352\002\035Google::Cloud::Batch" + + "::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java index 3908c23cd8ab..6216a597d8cc 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java @@ -630,16 +630,18 @@ public int getLabelsCount() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -661,16 +663,18 @@ public java.util.Map getLabels() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -683,16 +687,18 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -712,16 +718,18 @@ public java.util.Map getLabelsMap() { * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -806,7 +814,7 @@ public com.google.cloud.batch.v1alpha.JobStatusOrBuilder getStatusOrBuilder() { * .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return Whether the notification field is set. */ @java.lang.Override @@ -824,7 +832,7 @@ public boolean hasNotification() { * .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return The notification. */ @java.lang.Override @@ -3340,16 +3348,18 @@ public int getLabelsCount() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3371,16 +3381,18 @@ public java.util.Map getLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3393,16 +3405,18 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3422,16 +3436,18 @@ public java.util.Map getLabelsMap() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3457,16 +3473,18 @@ public Builder clearLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3488,16 +3506,18 @@ public java.util.Map getMutableLabels() { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3517,16 +3537,18 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
      -     * Labels for the Job. Labels could be user provided or system generated.
      -     * For example,
      -     * "labels": {
      -     *    "department": "finance",
      -     *    "environment": "test"
      -     *  }
      -     * You can assign up to 64 labels.  [Google Compute Engine label
      -     * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -     * apply.
      -     * Label names that start with "goog-" or "google-" are reserved.
      +     * Custom labels to apply to the job and any Cloud Logging
      +     * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +     * that it generates.
      +     *
      +     * Use labels to group and describe the resources they are applied to. Batch
      +     * automatically applies predefined labels and supports multiple `labels`
      +     * fields for each job, which each let you apply custom labels to various
      +     * resources. Label names that start with "goog-" or "google-" are
      +     * reserved for predefined labels. For more information about labels with
      +     * Batch, see
      +     * [Organize resources using
      +     * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
            * 
      * * map<string, string> labels = 8; @@ -3757,7 +3779,7 @@ public com.google.cloud.batch.v1alpha.JobStatusOrBuilder getStatusOrBuilder() { * * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return Whether the notification field is set. */ @java.lang.Deprecated @@ -3775,7 +3797,7 @@ public boolean hasNotification() { * * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return The notification. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java index 4e79fd0cbee5..ee92b0f1cf2d 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java @@ -286,16 +286,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -305,16 +307,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -327,16 +331,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -346,16 +352,18 @@ public interface JobOrBuilder * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -369,16 +377,18 @@ java.lang.String getLabelsOrDefault( * * *
      -   * Labels for the Job. Labels could be user provided or system generated.
      -   * For example,
      -   * "labels": {
      -   *    "department": "finance",
      -   *    "environment": "test"
      -   *  }
      -   * You can assign up to 64 labels.  [Google Compute Engine label
      -   * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
      -   * apply.
      -   * Label names that start with "goog-" or "google-" are reserved.
      +   * Custom labels to apply to the job and any Cloud Logging
      +   * [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
      +   * that it generates.
      +   *
      +   * Use labels to group and describe the resources they are applied to. Batch
      +   * automatically applies predefined labels and supports multiple `labels`
      +   * fields for each job, which each let you apply custom labels to various
      +   * resources. Label names that start with "goog-" or "google-" are
      +   * reserved for predefined labels. For more information about labels with
      +   * Batch, see
      +   * [Organize resources using
      +   * labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
          * 
      * * map<string, string> labels = 8; @@ -436,7 +446,7 @@ java.lang.String getLabelsOrDefault( * .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return Whether the notification field is set. */ @java.lang.Deprecated @@ -451,7 +461,7 @@ java.lang.String getLabelsOrDefault( * .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Job.notification is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=96 + * google/cloud/batch/v1alpha/job.proto;l=98 * @return The notification. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java index f095e4a65335..dcebcfe9f8dd 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java @@ -23,8 +23,10 @@ * * *
      - * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
      - * preserved.
      + * LogsPolicy describes if and how a job's logs are preserved. Logs include
      + * information that is automatically written by the Batch service agent and any
      + * information that you configured the job's runnables to write to the `stdout`
      + * or `stderr` streams.
        * 
      * * Protobuf type {@code google.cloud.batch.v1alpha.LogsPolicy} @@ -79,7 +81,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are not preserved.
      +     * (Default) Logs are not preserved.
            * 
      * * DESTINATION_UNSPECIFIED = 0; @@ -89,7 +91,8 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are streamed to Cloud Logging.
      +     * Logs are streamed to Cloud Logging. Optionally, you can configure
      +     * additional settings in the `cloudLoggingOption` field.
            * 
      * * CLOUD_LOGGING = 1; @@ -99,7 +102,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are saved to a file path.
      +     * Logs are saved to the file path specified in the `logsPath` field.
            * 
      * * PATH = 2; @@ -112,7 +115,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are not preserved.
      +     * (Default) Logs are not preserved.
            * 
      * * DESTINATION_UNSPECIFIED = 0; @@ -122,7 +125,8 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are streamed to Cloud Logging.
      +     * Logs are streamed to Cloud Logging. Optionally, you can configure
      +     * additional settings in the `cloudLoggingOption` field.
            * 
      * * CLOUD_LOGGING = 1; @@ -132,7 +136,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Logs are saved to a file path.
      +     * Logs are saved to the file path specified in the `logsPath` field.
            * 
      * * PATH = 2; @@ -231,7 +235,7 @@ public interface CloudLoggingOptionOrBuilder * * *
      -     * Optional. Set this flag to true to change the [monitored resource
      +     * Optional. Set this field to `true` to change the [monitored resource
            * type](https://cloud.google.com/monitoring/api/resources) for
            * Cloud Logging logs generated by this Batch job from
            * the
      @@ -297,7 +301,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            *
            *
            * 
      -     * Optional. Set this flag to true to change the [monitored resource
      +     * Optional. Set this field to `true` to change the [monitored resource
            * type](https://cloud.google.com/monitoring/api/resources) for
            * Cloud Logging logs generated by this Batch job from
            * the
      @@ -676,7 +680,7 @@ public Builder mergeFrom(
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -700,7 +704,7 @@ public boolean getUseGenericTaskMonitoredResource() {
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -728,7 +732,7 @@ public Builder setUseGenericTaskMonitoredResource(boolean value) {
              *
              *
              * 
      -       * Optional. Set this flag to true to change the [monitored resource
      +       * Optional. Set this field to `true` to change the [monitored resource
              * type](https://cloud.google.com/monitoring/api/resources) for
              * Cloud Logging logs generated by this Batch job from
              * the
      @@ -825,7 +829,7 @@ public com.google.protobuf.Parser getParserForType() {
          *
          *
          * 
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -840,7 +844,7 @@ public int getDestinationValue() { * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -864,9 +868,14 @@ public com.google.cloud.batch.v1alpha.LogsPolicy.Destination getDestination() { * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -889,9 +898,14 @@ public java.lang.String getLogsPath() { * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -917,8 +931,8 @@ public com.google.protobuf.ByteString getLogsPathBytes() { * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -935,8 +949,8 @@ public boolean hasCloudLoggingOption() { * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -955,8 +969,8 @@ public com.google.cloud.batch.v1alpha.LogsPolicy.CloudLoggingOption getCloudLogg * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -1161,8 +1175,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
      -   * preserved.
      +   * LogsPolicy describes if and how a job's logs are preserved. Logs include
      +   * information that is automatically written by the Batch service agent and any
      +   * information that you configured the job's runnables to write to the `stdout`
      +   * or `stderr` streams.
          * 
      * * Protobuf type {@code google.cloud.batch.v1alpha.LogsPolicy} @@ -1391,7 +1407,7 @@ public Builder mergeFrom( * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -1406,7 +1422,7 @@ public int getDestinationValue() { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -1424,7 +1440,7 @@ public Builder setDestinationValue(int value) { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -1443,7 +1459,7 @@ public com.google.cloud.batch.v1alpha.LogsPolicy.Destination getDestination() { * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -1464,7 +1480,7 @@ public Builder setDestination(com.google.cloud.batch.v1alpha.LogsPolicy.Destinat * * *
      -     * Where logs should be saved.
      +     * If and where logs should be saved.
            * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -1483,9 +1499,14 @@ public Builder clearDestination() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1507,9 +1528,14 @@ public java.lang.String getLogsPath() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1531,9 +1557,14 @@ public com.google.protobuf.ByteString getLogsPathBytes() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1554,9 +1585,14 @@ public Builder setLogsPath(java.lang.String value) { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1573,9 +1609,14 @@ public Builder clearLogsPath() { * * *
      -     * The path to which logs are saved when the destination = PATH. This can be a
      -     * local file path on the VM, or under the mount point of a Persistent Disk or
      -     * Filestore, or a Cloud Storage path.
      +     * When `destination` is set to `PATH`, you must set this field to the path
      +     * where you want logs to be saved. This path can point to a local directory
      +     * on the VM or (if congifured) a directory under the mount path of any
      +     * Cloud Storage bucket, network file system (NFS), or writable persistent
      +     * disk that is mounted to the job. For example, if the job has a bucket with
      +     * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +     * root directory of the `remotePath` of that bucket by setting this field to
      +     * `/mnt/disks/my-bucket/`.
            * 
      * * string logs_path = 2; @@ -1604,8 +1645,8 @@ public Builder setLogsPathBytes(com.google.protobuf.ByteString value) { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1621,8 +1662,8 @@ public boolean hasCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1644,8 +1685,8 @@ public com.google.cloud.batch.v1alpha.LogsPolicy.CloudLoggingOption getCloudLogg * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1670,8 +1711,8 @@ public Builder setCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1693,8 +1734,8 @@ public Builder setCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1726,8 +1767,8 @@ public Builder mergeCloudLoggingOption( * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1748,8 +1789,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1766,8 +1807,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * @@ -1788,8 +1829,8 @@ public Builder clearCloudLoggingOption() { * * *
      -     * Optional. Additional settings for Cloud Logging. It will only take effect
      -     * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +     * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +     * set this field to configure additional settings for Cloud Logging.
            * 
      * * diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java index 87537b6d24e9..b7e42b77e2ea 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java @@ -28,7 +28,7 @@ public interface LogsPolicyOrBuilder * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -40,7 +40,7 @@ public interface LogsPolicyOrBuilder * * *
      -   * Where logs should be saved.
      +   * If and where logs should be saved.
          * 
      * * .google.cloud.batch.v1alpha.LogsPolicy.Destination destination = 1; @@ -53,9 +53,14 @@ public interface LogsPolicyOrBuilder * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -67,9 +72,14 @@ public interface LogsPolicyOrBuilder * * *
      -   * The path to which logs are saved when the destination = PATH. This can be a
      -   * local file path on the VM, or under the mount point of a Persistent Disk or
      -   * Filestore, or a Cloud Storage path.
      +   * When `destination` is set to `PATH`, you must set this field to the path
      +   * where you want logs to be saved. This path can point to a local directory
      +   * on the VM or (if congifured) a directory under the mount path of any
      +   * Cloud Storage bucket, network file system (NFS), or writable persistent
      +   * disk that is mounted to the job. For example, if the job has a bucket with
      +   * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the
      +   * root directory of the `remotePath` of that bucket by setting this field to
      +   * `/mnt/disks/my-bucket/`.
          * 
      * * string logs_path = 2; @@ -82,8 +92,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -97,8 +107,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * @@ -112,8 +122,8 @@ public interface LogsPolicyOrBuilder * * *
      -   * Optional. Additional settings for Cloud Logging. It will only take effect
      -   * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      +   * Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally
      +   * set this field to configure additional settings for Cloud Logging.
          * 
      * * diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto index 054046d85631..738ff341aa98 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto @@ -83,7 +83,7 @@ service BatchService { }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { - response_type: "CancelJobResponse" + response_type: "google.cloud.batch.v1alpha.CancelJobResponse" metadata_type: "google.cloud.batch.v1alpha.OperationMetadata" }; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto index e6890e431bde..8ab62c01f9a4 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto @@ -78,16 +78,18 @@ message Job { // Compute resource allocation for all TaskGroups in the Job. AllocationPolicy allocation_policy = 7; - // Labels for the Job. Labels could be user provided or system generated. - // For example, - // "labels": { - // "department": "finance", - // "environment": "test" - // } - // You can assign up to 64 labels. [Google Compute Engine label - // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - // apply. - // Label names that start with "goog-" or "google-" are reserved. + // Custom labels to apply to the job and any Cloud Logging + // [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) + // that it generates. + // + // Use labels to group and describe the resources they are applied to. Batch + // automatically applies predefined labels and supports multiple `labels` + // fields for each job, which each let you apply custom labels to various + // resources. Label names that start with "goog-" or "google-" are + // reserved for predefined labels. For more information about labels with + // Batch, see + // [Organize resources using + // labels](https://cloud.google.com/batch/docs/organize-resources-using-labels). map labels = 8; // Output only. Job status. It is read only for users. @@ -111,13 +113,15 @@ message Job { repeated JobNotification notifications = 14; } -// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be -// preserved. +// LogsPolicy describes if and how a job's logs are preserved. Logs include +// information that is automatically written by the Batch service agent and any +// information that you configured the job's runnables to write to the `stdout` +// or `stderr` streams. message LogsPolicy { // `CloudLoggingOption` contains additional settings for Cloud Logging logs // generated by Batch job. message CloudLoggingOption { - // Optional. Set this flag to true to change the [monitored resource + // Optional. Set this field to `true` to change the [monitored resource // type](https://cloud.google.com/monitoring/api/resources) for // Cloud Logging logs generated by this Batch job from // the @@ -131,26 +135,32 @@ message LogsPolicy { // The destination (if any) for logs. enum Destination { - // Logs are not preserved. + // (Default) Logs are not preserved. DESTINATION_UNSPECIFIED = 0; - // Logs are streamed to Cloud Logging. + // Logs are streamed to Cloud Logging. Optionally, you can configure + // additional settings in the `cloudLoggingOption` field. CLOUD_LOGGING = 1; - // Logs are saved to a file path. + // Logs are saved to the file path specified in the `logsPath` field. PATH = 2; } - // Where logs should be saved. + // If and where logs should be saved. Destination destination = 1; - // The path to which logs are saved when the destination = PATH. This can be a - // local file path on the VM, or under the mount point of a Persistent Disk or - // Filestore, or a Cloud Storage path. + // When `destination` is set to `PATH`, you must set this field to the path + // where you want logs to be saved. This path can point to a local directory + // on the VM or (if congifured) a directory under the mount path of any + // Cloud Storage bucket, network file system (NFS), or writable persistent + // disk that is mounted to the job. For example, if the job has a bucket with + // `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the + // root directory of the `remotePath` of that bucket by setting this field to + // `/mnt/disks/my-bucket/`. string logs_path = 2; - // Optional. Additional settings for Cloud Logging. It will only take effect - // when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`. + // Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally + // set this field to configure additional settings for Cloud Logging. CloudLoggingOption cloud_logging_option = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -482,8 +492,10 @@ message AllocationPolicy { // storage and accessing. repeated AttachedDisk disks = 6; - // Optional. If specified, VMs will consume only the specified reservation. - // If not specified (default), VMs will consume any applicable reservation. + // Optional. If not specified (default), VMs will consume any applicable + // reservation. If "NO_RESERVATION" is specified, VMs will not consume any + // reservation. Otherwise, if specified, VMs will consume only the specified + // reservation. string reservation = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -498,7 +510,11 @@ message AllocationPolicy { // Name of an instance template used to create VMs. // Named the field as 'instance_template' instead of 'template' to avoid - // c++ keyword conflict. + // C++ keyword conflict. + // + // Batch only supports global instance templates from the same project as + // the job. + // You can specify the global instance template as a full or partial URL. string instance_template = 2; } @@ -645,13 +661,17 @@ message AllocationPolicy { // default cloud-platform scope. (list of strings) ServiceAccount service_account = 9; - // Labels applied to all VM instances and other resources - // created by AllocationPolicy. - // Labels could be user provided or system generated. - // You can assign up to 64 labels. [Google Compute Engine label - // restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - // apply. - // Label names that start with "goog-" or "google-" are reserved. + // Custom labels to apply to the job and all the Compute Engine resources + // that both are created by this allocation policy and support labels. + // + // Use labels to group and describe the resources they are applied to. Batch + // automatically applies predefined labels and supports multiple `labels` + // fields for each job, which each let you apply custom labels to various + // resources. Label names that start with "goog-" or "google-" are + // reserved for predefined labels. For more information about labels with + // Batch, see + // [Organize resources using + // labels](https://cloud.google.com/batch/docs/organize-resources-using-labels). map labels = 6; // The network policy. diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 96847516cac6..1cbb46a7ce88 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.51.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index b870e4389782..9332d9d8539e 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.51.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 30b1d43633cc..d321737764da 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.51.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 590c7b7bc938..fc9de6555622 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.51.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index bb04da1d771c..3873c531c14d 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.51.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/README.md b/java-biglake/README.md index c8f0c1798975..58da719815d7 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.41.0' +implementation 'com.google.cloud:google-cloud-biglake:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.42.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 330ae015e4eb..995848e00105 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.48.0 + 2.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.48.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.49.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 7c28d6df3c5e..91ad8a7d1212 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.55.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index dfecb86f6ad8..f1312dd06777 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.50.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.51.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 7e71546a9b92..118eb354bed1 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.53.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 55903e1ef90b..af903aff8e70 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.56.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.57.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 4bb9166fb55e..2711dceec801 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.54.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java index d49ae81db3da..6df5ec0ca6ec 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java @@ -175,6 +175,20 @@ * * * + *

      FailoverReservation + *

      Fail over a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`. + * + *

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

      + *
        + *
      • failoverReservation(FailoverReservationRequest request) + *

      + *

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

      + *
        + *
      • failoverReservationCallable() + *

      + * + * + * *

      CreateCapacityCommitment *

      Creates a new capacity commitment resource. * @@ -1261,6 +1275,69 @@ public final UnaryCallable updateReservat return stub.updateReservationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fail over a reservation to the secondary location. The operation should be done in the current + * secondary location, which will be promoted to the new primary location for the reservation. + * Attempting to failover a reservation in the current primary location will fail with the error + * code `google.rpc.Code.FAILED_PRECONDITION`. + * + *

      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 (ReservationServiceClient reservationServiceClient = ReservationServiceClient.create()) {
      +   *   FailoverReservationRequest request =
      +   *       FailoverReservationRequest.newBuilder()
      +   *           .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString())
      +   *           .build();
      +   *   Reservation response = reservationServiceClient.failoverReservation(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 Reservation failoverReservation(FailoverReservationRequest request) { + return failoverReservationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fail over a reservation to the secondary location. The operation should be done in the current + * secondary location, which will be promoted to the new primary location for the reservation. + * Attempting to failover a reservation in the current primary location will fail with the error + * code `google.rpc.Code.FAILED_PRECONDITION`. + * + *

      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 (ReservationServiceClient reservationServiceClient = ReservationServiceClient.create()) {
      +   *   FailoverReservationRequest request =
      +   *       FailoverReservationRequest.newBuilder()
      +   *           .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       reservationServiceClient.failoverReservationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Reservation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + failoverReservationCallable() { + return stub.failoverReservationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new capacity commitment resource. diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java index 1a0d86d1eda0..f1f794423670 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java @@ -122,6 +122,11 @@ public UnaryCallSettings updateReservatio return ((ReservationServiceStubSettings) getStubSettings()).updateReservationSettings(); } + /** Returns the object with the settings used for calls to failoverReservation. */ + public UnaryCallSettings failoverReservationSettings() { + return ((ReservationServiceStubSettings) getStubSettings()).failoverReservationSettings(); + } + /** Returns the object with the settings used for calls to createCapacityCommitment. */ public UnaryCallSettings createCapacityCommitmentSettings() { @@ -367,6 +372,12 @@ public UnaryCallSettings.Builder deleteReservat return getStubSettingsBuilder().updateReservationSettings(); } + /** Returns the builder for the settings used for calls to failoverReservation. */ + public UnaryCallSettings.Builder + failoverReservationSettings() { + return getStubSettingsBuilder().failoverReservationSettings(); + } + /** Returns the builder for the settings used for calls to createCapacityCommitment. */ public UnaryCallSettings.Builder createCapacityCommitmentSettings() { diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/gapic_metadata.json b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/gapic_metadata.json index 821f1420b59d..e8ff3344f81f 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/gapic_metadata.json +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/gapic_metadata.json @@ -28,6 +28,9 @@ "DeleteReservation": { "methods": ["deleteReservation", "deleteReservation", "deleteReservation", "deleteReservationCallable"] }, + "FailoverReservation": { + "methods": ["failoverReservation", "failoverReservationCallable"] + }, "GetBiReservation": { "methods": ["getBiReservation", "getBiReservation", "getBiReservation", "getBiReservationCallable"] }, diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/GrpcReservationServiceStub.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/GrpcReservationServiceStub.java index 959c2c8452b8..0c81921ba888 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/GrpcReservationServiceStub.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/GrpcReservationServiceStub.java @@ -38,6 +38,7 @@ import com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest; +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.GetReservationRequest; @@ -132,6 +133,17 @@ public class GrpcReservationServiceStub extends ReservationServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Reservation.getDefaultInstance())) .build(); + private static final MethodDescriptor + failoverReservationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.reservation.v1.ReservationService/FailoverReservation") + .setRequestMarshaller( + ProtoUtils.marshaller(FailoverReservationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Reservation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createCapacityCommitmentMethodDescriptor = MethodDescriptor.newBuilder() @@ -325,6 +337,7 @@ public class GrpcReservationServiceStub extends ReservationServiceStub { private final UnaryCallable getReservationCallable; private final UnaryCallable deleteReservationCallable; private final UnaryCallable updateReservationCallable; + private final UnaryCallable failoverReservationCallable; private final UnaryCallable createCapacityCommitmentCallable; private final UnaryCallable @@ -457,6 +470,16 @@ protected GrpcReservationServiceStub( return builder.build(); }) .build(); + GrpcCallSettings failoverReservationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(failoverReservationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createCapacityCommitmentTransportSettings = GrpcCallSettings.newBuilder() @@ -659,6 +682,11 @@ protected GrpcReservationServiceStub( updateReservationTransportSettings, settings.updateReservationSettings(), clientContext); + this.failoverReservationCallable = + callableFactory.createUnaryCallable( + failoverReservationTransportSettings, + settings.failoverReservationSettings(), + clientContext); this.createCapacityCommitmentCallable = callableFactory.createUnaryCallable( createCapacityCommitmentTransportSettings, @@ -786,6 +814,11 @@ public UnaryCallable updateReservationCal return updateReservationCallable; } + @Override + public UnaryCallable failoverReservationCallable() { + return failoverReservationCallable; + } + @Override public UnaryCallable createCapacityCommitmentCallable() { diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/HttpJsonReservationServiceStub.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/HttpJsonReservationServiceStub.java index 002a2b5474a3..6b795a413f8f 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/HttpJsonReservationServiceStub.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/HttpJsonReservationServiceStub.java @@ -43,6 +43,7 @@ import com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest; +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.GetReservationRequest; @@ -272,6 +273,44 @@ public class HttpJsonReservationServiceStub extends ReservationServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + failoverReservationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.reservation.v1.ReservationService/FailoverReservation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/reservations/*}:failoverReservation", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Reservation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createCapacityCommitmentMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -899,6 +938,7 @@ public class HttpJsonReservationServiceStub extends ReservationServiceStub { private final UnaryCallable getReservationCallable; private final UnaryCallable deleteReservationCallable; private final UnaryCallable updateReservationCallable; + private final UnaryCallable failoverReservationCallable; private final UnaryCallable createCapacityCommitmentCallable; private final UnaryCallable @@ -1036,6 +1076,18 @@ protected HttpJsonReservationServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + failoverReservationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(failoverReservationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createCapacityCommitmentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1255,6 +1307,11 @@ protected HttpJsonReservationServiceStub( updateReservationTransportSettings, settings.updateReservationSettings(), clientContext); + this.failoverReservationCallable = + callableFactory.createUnaryCallable( + failoverReservationTransportSettings, + settings.failoverReservationSettings(), + clientContext); this.createCapacityCommitmentCallable = callableFactory.createUnaryCallable( createCapacityCommitmentTransportSettings, @@ -1354,6 +1411,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getReservationMethodDescriptor); methodDescriptors.add(deleteReservationMethodDescriptor); methodDescriptors.add(updateReservationMethodDescriptor); + methodDescriptors.add(failoverReservationMethodDescriptor); methodDescriptors.add(createCapacityCommitmentMethodDescriptor); methodDescriptors.add(listCapacityCommitmentsMethodDescriptor); methodDescriptors.add(getCapacityCommitmentMethodDescriptor); @@ -1405,6 +1463,11 @@ public UnaryCallable updateReservationCal return updateReservationCallable; } + @Override + public UnaryCallable failoverReservationCallable() { + return failoverReservationCallable; + } + @Override public UnaryCallable createCapacityCommitmentCallable() { diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStub.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStub.java index 552d4846cdef..bc9c91d8fb73 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStub.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStub.java @@ -33,6 +33,7 @@ import com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest; +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.GetReservationRequest; @@ -93,6 +94,10 @@ public UnaryCallable updateReservationCal throw new UnsupportedOperationException("Not implemented: updateReservationCallable()"); } + public UnaryCallable failoverReservationCallable() { + throw new UnsupportedOperationException("Not implemented: failoverReservationCallable()"); + } + public UnaryCallable createCapacityCommitmentCallable() { throw new UnsupportedOperationException("Not implemented: createCapacityCommitmentCallable()"); diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java index 82a83ecf6d8f..d1abb936c50b 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java @@ -57,6 +57,7 @@ import com.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.DeleteReservationRequest; +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest; import com.google.cloud.bigquery.reservation.v1.GetCapacityCommitmentRequest; import com.google.cloud.bigquery.reservation.v1.GetReservationRequest; @@ -157,6 +158,8 @@ public class ReservationServiceStubSettings extends StubSettings getReservationSettings; private final UnaryCallSettings deleteReservationSettings; private final UnaryCallSettings updateReservationSettings; + private final UnaryCallSettings + failoverReservationSettings; private final UnaryCallSettings createCapacityCommitmentSettings; private final PagedCallSettings< @@ -521,6 +524,11 @@ public UnaryCallSettings updateReservatio return updateReservationSettings; } + /** Returns the object with the settings used for calls to failoverReservation. */ + public UnaryCallSettings failoverReservationSettings() { + return failoverReservationSettings; + } + /** Returns the object with the settings used for calls to createCapacityCommitment. */ public UnaryCallSettings createCapacityCommitmentSettings() { @@ -741,6 +749,7 @@ protected ReservationServiceStubSettings(Builder settingsBuilder) throws IOExcep getReservationSettings = settingsBuilder.getReservationSettings().build(); deleteReservationSettings = settingsBuilder.deleteReservationSettings().build(); updateReservationSettings = settingsBuilder.updateReservationSettings().build(); + failoverReservationSettings = settingsBuilder.failoverReservationSettings().build(); createCapacityCommitmentSettings = settingsBuilder.createCapacityCommitmentSettings().build(); listCapacityCommitmentsSettings = settingsBuilder.listCapacityCommitmentsSettings().build(); getCapacityCommitmentSettings = settingsBuilder.getCapacityCommitmentSettings().build(); @@ -774,6 +783,8 @@ public static class Builder deleteReservationSettings; private final UnaryCallSettings.Builder updateReservationSettings; + private final UnaryCallSettings.Builder + failoverReservationSettings; private final UnaryCallSettings.Builder createCapacityCommitmentSettings; private final PagedCallSettings.Builder< @@ -873,6 +884,7 @@ protected Builder(ClientContext clientContext) { getReservationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteReservationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateReservationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + failoverReservationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createCapacityCommitmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCapacityCommitmentsSettings = PagedCallSettings.newBuilder(LIST_CAPACITY_COMMITMENTS_PAGE_STR_FACT); @@ -899,6 +911,7 @@ protected Builder(ClientContext clientContext) { getReservationSettings, deleteReservationSettings, updateReservationSettings, + failoverReservationSettings, createCapacityCommitmentSettings, listCapacityCommitmentsSettings, getCapacityCommitmentSettings, @@ -926,6 +939,7 @@ protected Builder(ReservationServiceStubSettings settings) { getReservationSettings = settings.getReservationSettings.toBuilder(); deleteReservationSettings = settings.deleteReservationSettings.toBuilder(); updateReservationSettings = settings.updateReservationSettings.toBuilder(); + failoverReservationSettings = settings.failoverReservationSettings.toBuilder(); createCapacityCommitmentSettings = settings.createCapacityCommitmentSettings.toBuilder(); listCapacityCommitmentsSettings = settings.listCapacityCommitmentsSettings.toBuilder(); getCapacityCommitmentSettings = settings.getCapacityCommitmentSettings.toBuilder(); @@ -950,6 +964,7 @@ protected Builder(ReservationServiceStubSettings settings) { getReservationSettings, deleteReservationSettings, updateReservationSettings, + failoverReservationSettings, createCapacityCommitmentSettings, listCapacityCommitmentsSettings, getCapacityCommitmentSettings, @@ -1018,6 +1033,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .failoverReservationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createCapacityCommitmentSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1145,6 +1165,12 @@ public UnaryCallSettings.Builder deleteReservat return updateReservationSettings; } + /** Returns the builder for the settings used for calls to failoverReservation. */ + public UnaryCallSettings.Builder + failoverReservationSettings() { + return failoverReservationSettings; + } + /** Returns the builder for the settings used for calls to createCapacityCommitment. */ public UnaryCallSettings.Builder createCapacityCommitmentSettings() { diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json index beacee5d6908..021b171fc379 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json @@ -620,6 +620,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.reservation.v1.GetBiReservationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/MockReservationServiceImpl.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/MockReservationServiceImpl.java index afd79ce3f3b0..56128f2bcdbe 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/MockReservationServiceImpl.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/MockReservationServiceImpl.java @@ -164,6 +164,27 @@ public void updateReservation( } } + @Override + public void failoverReservation( + FailoverReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) 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 FailoverReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createCapacityCommitment( CreateCapacityCommitmentRequest request, diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java index 687b573e0865..7aa637c20558 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java @@ -97,6 +97,9 @@ public void createReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); @@ -153,6 +156,9 @@ public void createReservationTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); @@ -309,6 +315,9 @@ public void getReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); @@ -361,6 +370,9 @@ public void getReservationTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); @@ -493,6 +505,9 @@ public void updateReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockService.addResponse(expectedResponse); @@ -507,6 +522,9 @@ public void updateReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -547,6 +565,9 @@ public void updateReservationExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateReservation(reservation, updateMask); @@ -556,6 +577,67 @@ public void updateReservationExceptionTest() throws Exception { } } + @Test + public void failoverReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setSlotCapacity(-1516717605) + .setIgnoreIdleSlots(true) + .setAutoscale(Reservation.Autoscale.newBuilder().build()) + .setConcurrency(1476186003) + .setCreationTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMultiRegionAuxiliary(true) + .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + + Reservation actualResponse = client.failoverReservation(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 failoverReservationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + client.failoverReservation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createCapacityCommitmentTest() throws Exception { CapacityCommitment expectedResponse = @@ -569,6 +651,7 @@ public void createCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -623,6 +706,7 @@ public void createCapacityCommitmentTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -777,6 +861,7 @@ public void getCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -831,6 +916,7 @@ public void getCapacityCommitmentTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -969,6 +1055,7 @@ public void updateCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -983,6 +1070,7 @@ public void updateCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1024,6 +1112,7 @@ public void updateCapacityCommitmentExceptionTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateCapacityCommitment(capacityCommitment, updateMask); @@ -1146,6 +1235,7 @@ public void mergeCapacityCommitmentsTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); @@ -1201,6 +1291,7 @@ public void mergeCapacityCommitmentsTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockService.addResponse(expectedResponse); diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java index bdeba629f97a..0b0f34180be2 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java @@ -100,6 +100,9 @@ public void createReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockReservationService.addResponse(expectedResponse); @@ -152,6 +155,9 @@ public void createReservationTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockReservationService.addResponse(expectedResponse); @@ -292,6 +298,9 @@ public void getReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockReservationService.addResponse(expectedResponse); @@ -338,6 +347,9 @@ public void getReservationTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockReservationService.addResponse(expectedResponse); @@ -452,6 +464,9 @@ public void updateReservationTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .build(); mockReservationService.addResponse(expectedResponse); @@ -488,6 +503,61 @@ public void updateReservationExceptionTest() throws Exception { } } + @Test + public void failoverReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setSlotCapacity(-1516717605) + .setIgnoreIdleSlots(true) + .setAutoscale(Reservation.Autoscale.newBuilder().build()) + .setConcurrency(1476186003) + .setCreationTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMultiRegionAuxiliary(true) + .setEdition(Edition.forNumber(0)) + .setPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSecondaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOriginalPrimaryLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + mockReservationService.addResponse(expectedResponse); + + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + + Reservation actualResponse = client.failoverReservation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReservationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FailoverReservationRequest actualRequest = ((FailoverReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void failoverReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReservationService.addException(exception); + + try { + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + client.failoverReservation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createCapacityCommitmentTest() throws Exception { CapacityCommitment expectedResponse = @@ -501,6 +571,7 @@ public void createCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -551,6 +622,7 @@ public void createCapacityCommitmentTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -691,6 +763,7 @@ public void getCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -740,6 +813,7 @@ public void getCapacityCommitmentTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -859,6 +933,7 @@ public void updateCapacityCommitmentTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -1000,6 +1075,7 @@ public void mergeCapacityCommitmentsTest() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); @@ -1051,6 +1127,7 @@ public void mergeCapacityCommitmentsTest2() throws Exception { .setFailureStatus(Status.newBuilder().build()) .setMultiRegionAuxiliary(true) .setEdition(Edition.forNumber(0)) + .setIsFlatRate(true) .build(); mockReservationService.addResponse(expectedResponse); diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java index 0f944b19f62d..d06585a72209 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java @@ -286,6 +286,56 @@ private ReservationServiceGrpc() {} return getUpdateReservationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest, + com.google.cloud.bigquery.reservation.v1.Reservation> + getFailoverReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FailoverReservation", + requestType = com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.class, + responseType = com.google.cloud.bigquery.reservation.v1.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest, + com.google.cloud.bigquery.reservation.v1.Reservation> + getFailoverReservationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest, + com.google.cloud.bigquery.reservation.v1.Reservation> + getFailoverReservationMethod; + if ((getFailoverReservationMethod = ReservationServiceGrpc.getFailoverReservationMethod) + == null) { + synchronized (ReservationServiceGrpc.class) { + if ((getFailoverReservationMethod = ReservationServiceGrpc.getFailoverReservationMethod) + == null) { + ReservationServiceGrpc.getFailoverReservationMethod = + getFailoverReservationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FailoverReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.reservation.v1.Reservation + .getDefaultInstance())) + .setSchemaDescriptor( + new ReservationServiceMethodDescriptorSupplier("FailoverReservation")) + .build(); + } + } + } + return getFailoverReservationMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest, com.google.cloud.bigquery.reservation.v1.CapacityCommitment> @@ -1221,6 +1271,25 @@ default void updateReservation( getUpdateReservationMethod(), responseObserver); } + /** + * + * + *
      +     * Fail over a reservation to the secondary location. The operation should be
      +     * done in the current secondary location, which will be promoted to the
      +     * new primary location for the reservation.
      +     * Attempting to failover a reservation in the current primary location will
      +     * fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
      +     * 
      + */ + default void failoverReservation( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFailoverReservationMethod(), responseObserver); + } + /** * * @@ -1717,6 +1786,27 @@ public void updateReservation( responseObserver); } + /** + * + * + *
      +     * Fail over a reservation to the secondary location. The operation should be
      +     * done in the current secondary location, which will be promoted to the
      +     * new primary location for the reservation.
      +     * Attempting to failover a reservation in the current primary location will
      +     * fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
      +     * 
      + */ + public void failoverReservation( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFailoverReservationMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2198,6 +2288,23 @@ public com.google.cloud.bigquery.reservation.v1.Reservation updateReservation( getChannel(), getUpdateReservationMethod(), getCallOptions(), request); } + /** + * + * + *
      +     * Fail over a reservation to the secondary location. The operation should be
      +     * done in the current secondary location, which will be promoted to the
      +     * new primary location for the reservation.
      +     * Attempting to failover a reservation in the current primary location will
      +     * fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
      +     * 
      + */ + public com.google.cloud.bigquery.reservation.v1.Reservation failoverReservation( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFailoverReservationMethod(), getCallOptions(), request); + } + /** * * @@ -2621,6 +2728,25 @@ protected ReservationServiceFutureStub build( getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); } + /** + * + * + *
      +     * Fail over a reservation to the secondary location. The operation should be
      +     * done in the current secondary location, which will be promoted to the
      +     * new primary location for the reservation.
      +     * Attempting to failover a reservation in the current primary location will
      +     * fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.reservation.v1.Reservation> + failoverReservation( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFailoverReservationMethod(), getCallOptions()), request); + } + /** * * @@ -2965,22 +3091,23 @@ protected ReservationServiceFutureStub build( private static final int METHODID_GET_RESERVATION = 2; private static final int METHODID_DELETE_RESERVATION = 3; private static final int METHODID_UPDATE_RESERVATION = 4; - private static final int METHODID_CREATE_CAPACITY_COMMITMENT = 5; - private static final int METHODID_LIST_CAPACITY_COMMITMENTS = 6; - private static final int METHODID_GET_CAPACITY_COMMITMENT = 7; - private static final int METHODID_DELETE_CAPACITY_COMMITMENT = 8; - private static final int METHODID_UPDATE_CAPACITY_COMMITMENT = 9; - private static final int METHODID_SPLIT_CAPACITY_COMMITMENT = 10; - private static final int METHODID_MERGE_CAPACITY_COMMITMENTS = 11; - private static final int METHODID_CREATE_ASSIGNMENT = 12; - private static final int METHODID_LIST_ASSIGNMENTS = 13; - private static final int METHODID_DELETE_ASSIGNMENT = 14; - private static final int METHODID_SEARCH_ASSIGNMENTS = 15; - private static final int METHODID_SEARCH_ALL_ASSIGNMENTS = 16; - private static final int METHODID_MOVE_ASSIGNMENT = 17; - private static final int METHODID_UPDATE_ASSIGNMENT = 18; - private static final int METHODID_GET_BI_RESERVATION = 19; - private static final int METHODID_UPDATE_BI_RESERVATION = 20; + private static final int METHODID_FAILOVER_RESERVATION = 5; + private static final int METHODID_CREATE_CAPACITY_COMMITMENT = 6; + private static final int METHODID_LIST_CAPACITY_COMMITMENTS = 7; + private static final int METHODID_GET_CAPACITY_COMMITMENT = 8; + private static final int METHODID_DELETE_CAPACITY_COMMITMENT = 9; + private static final int METHODID_UPDATE_CAPACITY_COMMITMENT = 10; + private static final int METHODID_SPLIT_CAPACITY_COMMITMENT = 11; + private static final int METHODID_MERGE_CAPACITY_COMMITMENTS = 12; + private static final int METHODID_CREATE_ASSIGNMENT = 13; + private static final int METHODID_LIST_ASSIGNMENTS = 14; + private static final int METHODID_DELETE_ASSIGNMENT = 15; + private static final int METHODID_SEARCH_ASSIGNMENTS = 16; + private static final int METHODID_SEARCH_ALL_ASSIGNMENTS = 17; + private static final int METHODID_MOVE_ASSIGNMENT = 18; + private static final int METHODID_UPDATE_ASSIGNMENT = 19; + private static final int METHODID_GET_BI_RESERVATION = 20; + private static final int METHODID_UPDATE_BI_RESERVATION = 21; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3029,6 +3156,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FAILOVER_RESERVATION: + serviceImpl.failoverReservation( + (com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_CAPACITY_COMMITMENT: serviceImpl.createCapacityCommitment( (com.google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest) request, @@ -3184,6 +3317,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.bigquery.reservation.v1.UpdateReservationRequest, com.google.cloud.bigquery.reservation.v1.Reservation>( service, METHODID_UPDATE_RESERVATION))) + .addMethod( + getFailoverReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest, + com.google.cloud.bigquery.reservation.v1.Reservation>( + service, METHODID_FAILOVER_RESERVATION))) .addMethod( getCreateCapacityCommitmentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3350,6 +3490,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetReservationMethod()) .addMethod(getDeleteReservationMethod()) .addMethod(getUpdateReservationMethod()) + .addMethod(getFailoverReservationMethod()) .addMethod(getCreateCapacityCommitmentMethod()) .addMethod(getListCapacityCommitmentsMethod()) .addMethod(getGetCapacityCommitmentMethod()) diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitment.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitment.java index c6e6c02bd163..fb01202f4ed4 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitment.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitment.java @@ -132,8 +132,9 @@ public enum CommitmentPlan implements com.google.protobuf.ProtocolMessageEnum { * that it can be deleted right after committed period ends. *
      * - * TRIAL = 5; + * TRIAL = 5 [deprecated = true]; */ + @java.lang.Deprecated TRIAL(5), /** * @@ -257,9 +258,9 @@ public enum CommitmentPlan implements com.google.protobuf.ProtocolMessageEnum { * that it can be deleted right after committed period ends. *
      * - * TRIAL = 5; + * TRIAL = 5 [deprecated = true]; */ - public static final int TRIAL_VALUE = 5; + @java.lang.Deprecated public static final int TRIAL_VALUE = 5; /** * * @@ -782,7 +783,9 @@ public com.google.cloud.bigquery.reservation.v1.CapacityCommitment.State getStat * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -800,7 +803,9 @@ public boolean hasCommitmentStartTime() { * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -820,7 +825,9 @@ public com.google.protobuf.Timestamp getCommitmentStartTime() { * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -841,7 +848,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitmentStartTimeOrBuilder() * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -859,7 +869,10 @@ public boolean hasCommitmentEndTime() { * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -879,7 +892,10 @@ public com.google.protobuf.Timestamp getCommitmentEndTime() { * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -1048,6 +1064,25 @@ public com.google.cloud.bigquery.reservation.v1.Edition getEdition() { return result == null ? com.google.cloud.bigquery.reservation.v1.Edition.UNRECOGNIZED : result; } + public static final int IS_FLAT_RATE_FIELD_NUMBER = 14; + private boolean isFlatRate_ = false; + /** + * + * + *
      +   * Output only. If true, the commitment is a flat-rate commitment, otherwise,
      +   * it's an edition commitment.
      +   * 
      + * + * bool is_flat_rate = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFlatRate. + */ + @java.lang.Override + public boolean getIsFlatRate() { + return isFlatRate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1101,6 +1136,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.bigquery.reservation.v1.Edition.EDITION_UNSPECIFIED.getNumber()) { output.writeEnum(12, edition_); } + if (isFlatRate_ != false) { + output.writeBool(14, isFlatRate_); + } getUnknownFields().writeTo(output); } @@ -1149,6 +1187,9 @@ public int getSerializedSize() { != com.google.cloud.bigquery.reservation.v1.Edition.EDITION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, edition_); } + if (isFlatRate_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isFlatRate_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1184,6 +1225,7 @@ public boolean equals(final java.lang.Object obj) { if (renewalPlan_ != other.renewalPlan_) return false; if (getMultiRegionAuxiliary() != other.getMultiRegionAuxiliary()) return false; if (edition_ != other.edition_) return false; + if (getIsFlatRate() != other.getIsFlatRate()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1221,6 +1263,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiRegionAuxiliary()); hash = (37 * hash) + EDITION_FIELD_NUMBER; hash = (53 * hash) + edition_; + hash = (37 * hash) + IS_FLAT_RATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFlatRate()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1403,6 +1447,7 @@ public Builder clear() { renewalPlan_ = 0; multiRegionAuxiliary_ = false; edition_ = 0; + isFlatRate_ = false; return this; } @@ -1480,6 +1525,9 @@ private void buildPartial0(com.google.cloud.bigquery.reservation.v1.CapacityComm if (((from_bitField0_ & 0x00000200) != 0)) { result.edition_ = edition_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.isFlatRate_ = isFlatRate_; + } result.bitField0_ |= to_bitField0_; } @@ -1561,6 +1609,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.reservation.v1.CapacityCommit if (other.edition_ != 0) { setEditionValue(other.getEditionValue()); } + if (other.getIsFlatRate() != false) { + setIsFlatRate(other.getIsFlatRate()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1649,6 +1700,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 96 + case 112: + { + isFlatRate_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2060,7 +2117,9 @@ public Builder clearState() { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2077,7 +2136,9 @@ public boolean hasCommitmentStartTime() { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2100,7 +2161,9 @@ public com.google.protobuf.Timestamp getCommitmentStartTime() { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2125,7 +2188,9 @@ public Builder setCommitmentStartTime(com.google.protobuf.Timestamp value) { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2147,7 +2212,9 @@ public Builder setCommitmentStartTime(com.google.protobuf.Timestamp.Builder buil * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2177,7 +2244,9 @@ public Builder mergeCommitmentStartTime(com.google.protobuf.Timestamp value) { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2199,7 +2268,9 @@ public Builder clearCommitmentStartTime() { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2216,7 +2287,9 @@ public com.google.protobuf.Timestamp.Builder getCommitmentStartTimeBuilder() { * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2237,7 +2310,9 @@ public com.google.protobuf.TimestampOrBuilder getCommitmentStartTimeOrBuilder() * *
            * Output only. The start of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +     * commitment_start_time won't be changed. It refers to the start time of the
      +     * original commitment.
            * 
      * * @@ -2272,7 +2347,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitmentStartTimeOrBuilder() * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2289,7 +2367,10 @@ public boolean hasCommitmentEndTime() { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2312,7 +2393,10 @@ public com.google.protobuf.Timestamp getCommitmentEndTime() { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2337,7 +2421,10 @@ public Builder setCommitmentEndTime(com.google.protobuf.Timestamp value) { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2359,7 +2446,10 @@ public Builder setCommitmentEndTime(com.google.protobuf.Timestamp.Builder builde * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2389,7 +2479,10 @@ public Builder mergeCommitmentEndTime(com.google.protobuf.Timestamp value) { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2411,7 +2504,10 @@ public Builder clearCommitmentEndTime() { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2428,7 +2524,10 @@ public com.google.protobuf.Timestamp.Builder getCommitmentEndTimeBuilder() { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2449,7 +2548,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitmentEndTimeOrBuilder() { * *
            * Output only. The end of the current commitment period. It is applicable
      -     * only for ACTIVE capacity commitments.
      +     * only for ACTIVE capacity commitments. Note after renewal,
      +     * commitment_end_time is the time the renewed commitment expires. So it would
      +     * be at a time after commitment_start_time + committed period, because we
      +     * don't change commitment_start_time ,
            * 
      * * @@ -2943,6 +3045,62 @@ public Builder clearEdition() { return this; } + private boolean isFlatRate_; + /** + * + * + *
      +     * Output only. If true, the commitment is a flat-rate commitment, otherwise,
      +     * it's an edition commitment.
      +     * 
      + * + * bool is_flat_rate = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFlatRate. + */ + @java.lang.Override + public boolean getIsFlatRate() { + return isFlatRate_; + } + /** + * + * + *
      +     * Output only. If true, the commitment is a flat-rate commitment, otherwise,
      +     * it's an edition commitment.
      +     * 
      + * + * bool is_flat_rate = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isFlatRate to set. + * @return This builder for chaining. + */ + public Builder setIsFlatRate(boolean value) { + + isFlatRate_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. If true, the commitment is a flat-rate commitment, otherwise,
      +     * it's an edition commitment.
      +     * 
      + * + * bool is_flat_rate = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsFlatRate() { + bitField0_ = (bitField0_ & ~0x00000400); + isFlatRate_ = 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-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentOrBuilder.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentOrBuilder.java index cdb877e29326..249113f039bc 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentOrBuilder.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentOrBuilder.java @@ -129,7 +129,9 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -144,7 +146,9 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -159,7 +163,9 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The start of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after the commitment is renewed,
      +   * commitment_start_time won't be changed. It refers to the start time of the
      +   * original commitment.
          * 
      * * @@ -173,7 +179,10 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -188,7 +197,10 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -203,7 +215,10 @@ public interface CapacityCommitmentOrBuilder * *
          * Output only. The end of the current commitment period. It is applicable
      -   * only for ACTIVE capacity commitments.
      +   * only for ACTIVE capacity commitments. Note after renewal,
      +   * commitment_end_time is the time the renewed commitment expires. So it would
      +   * be at a time after commitment_start_time + committed period, because we
      +   * don't change commitment_start_time ,
          * 
      * * @@ -326,4 +341,18 @@ public interface CapacityCommitmentOrBuilder * @return The edition. */ com.google.cloud.bigquery.reservation.v1.Edition getEdition(); + + /** + * + * + *
      +   * Output only. If true, the commitment is a flat-rate commitment, otherwise,
      +   * it's an edition commitment.
      +   * 
      + * + * bool is_flat_rate = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFlatRate. + */ + boolean getIsFlatRate(); } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Edition.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Edition.java index 9afb6a7b6a43..f9b276db4805 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Edition.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Edition.java @@ -65,7 +65,7 @@ public enum Edition implements com.google.protobuf.ProtocolMessageEnum { * * *
      -   * Enterprise plus edition.
      +   * Enterprise Plus edition.
          * 
      * * ENTERPRISE_PLUS = 3; @@ -108,7 +108,7 @@ public enum Edition implements com.google.protobuf.ProtocolMessageEnum { * * *
      -   * Enterprise plus edition.
      +   * Enterprise Plus edition.
          * 
      * * ENTERPRISE_PLUS = 3; diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java new file mode 100644 index 000000000000..616474f1837f --- /dev/null +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/bigquery/reservation/v1/reservation.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.bigquery.reservation.v1; + +/** + * + * + *
      + * The request for ReservationService.FailoverReservation.
      + * 
      + * + * Protobuf type {@code google.cloud.bigquery.reservation.v1.FailoverReservationRequest} + */ +public final class FailoverReservationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.reservation.v1.FailoverReservationRequest) + FailoverReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FailoverReservationRequest.newBuilder() to construct. + private FailoverReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FailoverReservationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FailoverReservationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.reservation.v1.ReservationProto + .internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.reservation.v1.ReservationProto + .internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.class, + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. Resource name of the reservation to failover. E.g.,
      +   *    `projects/myproject/locations/US/reservations/team1-prod`
      +   * 
      + * + * + * 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 the reservation to failover. E.g.,
      +   *    `projects/myproject/locations/US/reservations/team1-prod`
      +   * 
      + * + * + * 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.bigquery.reservation.v1.FailoverReservationRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest other = + (com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest) 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.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + 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.bigquery.reservation.v1.FailoverReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest 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 request for ReservationService.FailoverReservation.
      +   * 
      + * + * Protobuf type {@code google.cloud.bigquery.reservation.v1.FailoverReservationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.reservation.v1.FailoverReservationRequest) + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.reservation.v1.ReservationProto + .internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.reservation.v1.ReservationProto + .internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.class, + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest.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.bigquery.reservation.v1.ReservationProto + .internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest build() { + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest buildPartial() { + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest result = + new com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest) { + return mergeFrom( + (com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest other) { + if (other + == com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + .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 the reservation to failover. E.g.,
      +     *    `projects/myproject/locations/US/reservations/team1-prod`
      +     * 
      + * + * + * 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 the reservation to failover. E.g.,
      +     *    `projects/myproject/locations/US/reservations/team1-prod`
      +     * 
      + * + * + * 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 the reservation to failover. E.g.,
      +     *    `projects/myproject/locations/US/reservations/team1-prod`
      +     * 
      + * + * + * 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 the reservation to failover. E.g.,
      +     *    `projects/myproject/locations/US/reservations/team1-prod`
      +     * 
      + * + * + * 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 the reservation to failover. E.g.,
      +     *    `projects/myproject/locations/US/reservations/team1-prod`
      +     * 
      + * + * + * 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.bigquery.reservation.v1.FailoverReservationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.reservation.v1.FailoverReservationRequest) + private static final com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest(); + } + + public static com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverReservationRequest 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.bigquery.reservation.v1.FailoverReservationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java new file mode 100644 index 000000000000..edfd8a2d4c3d --- /dev/null +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.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/bigquery/reservation/v1/reservation.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.bigquery.reservation.v1; + +public interface FailoverReservationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.reservation.v1.FailoverReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Resource name of the reservation to failover. E.g.,
      +   *    `projects/myproject/locations/US/reservations/team1-prod`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
      +   * Required. Resource name of the reservation to failover. E.g.,
      +   *    `projects/myproject/locations/US/reservations/team1-prod`
      +   * 
      + * + * + * 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-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java index 85b4d80ef6ff..165b4d5b6bda 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java @@ -41,6 +41,9 @@ private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Reservation() { name_ = ""; edition_ = 0; + primaryLocation_ = ""; + secondaryLocation_ = ""; + originalPrimaryLocation_ = ""; } @java.lang.Override @@ -74,7 +77,10 @@ public interface AutoscaleOrBuilder * *
            * Output only. The slot capacity added to this reservation when autoscale
      -     * happens. Will be between [0, max_slots].
      +     * happens. Will be between [0, max_slots]. Note: after users reduce
      +     * max_slots, it may take a while before it can be propagated, so
      +     * current_slots may stay in the original value and could be larger than
      +     * max_slots for that brief period (less than one minute)
            * 
      * * int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -145,7 +151,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
            * Output only. The slot capacity added to this reservation when autoscale
      -     * happens. Will be between [0, max_slots].
      +     * happens. Will be between [0, max_slots]. Note: after users reduce
      +     * max_slots, it may take a while before it can be propagated, so
      +     * current_slots may stay in the original value and could be larger than
      +     * max_slots for that brief period (less than one minute)
            * 
      * * int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -552,7 +561,10 @@ public Builder mergeFrom( * *
              * Output only. The slot capacity added to this reservation when autoscale
      -       * happens. Will be between [0, max_slots].
      +       * happens. Will be between [0, max_slots]. Note: after users reduce
      +       * max_slots, it may take a while before it can be propagated, so
      +       * current_slots may stay in the original value and could be larger than
      +       * max_slots for that brief period (less than one minute)
              * 
      * * int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -568,7 +580,10 @@ public long getCurrentSlots() { * *
              * Output only. The slot capacity added to this reservation when autoscale
      -       * happens. Will be between [0, max_slots].
      +       * happens. Will be between [0, max_slots]. Note: after users reduce
      +       * max_slots, it may take a while before it can be propagated, so
      +       * current_slots may stay in the original value and could be larger than
      +       * max_slots for that brief period (less than one minute)
              * 
      * * int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -588,7 +603,10 @@ public Builder setCurrentSlots(long value) { * *
              * Output only. The slot capacity added to this reservation when autoscale
      -       * happens. Will be between [0, max_slots].
      +       * happens. Will be between [0, max_slots]. Note: after users reduce
      +       * max_slots, it may take a while before it can be propagated, so
      +       * current_slots may stay in the original value and could be larger than
      +       * max_slots for that brief period (less than one minute)
              * 
      * * int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -788,20 +806,26 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * Minimum slots available to this reservation. A slot is a unit of
      +   * Baseline slots available to this reservation. A slot is a unit of
          * computational power in BigQuery, and serves as the unit of parallelism.
          *
          * Queries using this reservation might use more slots during runtime if
      -   * ignore_idle_slots is set to false.
      -   *
      -   * If total slot_capacity of the reservation and its siblings
      -   * exceeds the total slot_count of all capacity commitments, the request will
      -   * fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
      -   *
      -   *
      -   * NOTE: for reservations in US or EU multi-regions, slot capacity constraints
      -   * are checked separately for default and auxiliary regions. See
      -   * multi_region_auxiliary flag for more details.
      +   * ignore_idle_slots is set to false, or autoscaling is enabled.
      +   *
      +   * If edition is EDITION_UNSPECIFIED and total slot_capacity of the
      +   * reservation and its siblings exceeds the total slot_count of all capacity
      +   * commitments, the request will fail with
      +   * `google.rpc.Code.RESOURCE_EXHAUSTED`.
      +   *
      +   * If edition is any value but EDITION_UNSPECIFIED, then the above requirement
      +   * is not needed. The total slot_capacity of the reservation and its siblings
      +   * may exceed the total slot_count of capacity commitments. In that case, the
      +   * exceeding slots will be charged with the autoscale SKU. You can increase
      +   * the number of baseline slots in a reservation every few minutes. If you
      +   * want to decrease your baseline slots, you are limited to once an hour if
      +   * you have recently changed your baseline slot capacity and your baseline
      +   * slots exceed your committed slots. Otherwise, you can decrease your
      +   * baseline slots every few minutes.
          * 
      * * int64 slot_capacity = 2; @@ -840,8 +864,7 @@ public boolean getIgnoreIdleSlots() { * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -856,8 +879,7 @@ public boolean hasAutoscale() { * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -874,8 +896,7 @@ public com.google.cloud.bigquery.reservation.v1.Reservation.Autoscale getAutosca * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -900,8 +921,8 @@ public com.google.cloud.bigquery.reservation.v1.Reservation.Autoscale getAutosca * queries. * Default value is 0 which means that concurrency target will be * automatically computed by the system. - * NOTE: this field is exposed as `target_job_concurrency` in the Information - * Schema, DDL and BQ CLI. + * NOTE: this field is exposed as target job concurrency in the Information + * Schema, DDL and BigQuery CLI. *
      * * int64 concurrency = 16; @@ -1079,6 +1100,187 @@ public com.google.cloud.bigquery.reservation.v1.Edition getEdition() { return result == null ? com.google.cloud.bigquery.reservation.v1.Edition.UNRECOGNIZED : result; } + public static final int PRIMARY_LOCATION_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryLocation_ = ""; + /** + * + * + *
      +   * Optional. The current location of the reservation's primary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature.
      +   * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The primaryLocation. + */ + @java.lang.Override + public java.lang.String getPrimaryLocation() { + java.lang.Object ref = primaryLocation_; + 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(); + primaryLocation_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. The current location of the reservation's primary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature.
      +   * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for primaryLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryLocationBytes() { + java.lang.Object ref = primaryLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_LOCATION_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryLocation_ = ""; + /** + * + * + *
      +   * Optional. The current location of the reservation's secondary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature. Users can set this in create reservation calls
      +   * to create a failover reservation or in update reservation calls to convert
      +   * a non-failover reservation to a failover reservation(or vice versa).
      +   * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + @java.lang.Override + public java.lang.String getSecondaryLocation() { + java.lang.Object ref = secondaryLocation_; + 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(); + secondaryLocation_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. The current location of the reservation's secondary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature. Users can set this in create reservation calls
      +   * to create a failover reservation or in update reservation calls to convert
      +   * a non-failover reservation to a failover reservation(or vice versa).
      +   * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryLocationBytes() { + java.lang.Object ref = secondaryLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORIGINAL_PRIMARY_LOCATION_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalPrimaryLocation_ = ""; + /** + * + * + *
      +   * Optional. The location where the reservation was originally created. This
      +   * is set only during the failover reservation's creation. All billing charges
      +   * for the failover reservation will be applied to this location.
      +   * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The originalPrimaryLocation. + */ + @java.lang.Override + public java.lang.String getOriginalPrimaryLocation() { + java.lang.Object ref = originalPrimaryLocation_; + 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(); + originalPrimaryLocation_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. The location where the reservation was originally created. This
      +   * is set only during the failover reservation's creation. All billing charges
      +   * for the failover reservation will be applied to this location.
      +   * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originalPrimaryLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginalPrimaryLocationBytes() { + java.lang.Object ref = originalPrimaryLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalPrimaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1121,6 +1323,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.bigquery.reservation.v1.Edition.EDITION_UNSPECIFIED.getNumber()) { output.writeEnum(17, edition_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, primaryLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, secondaryLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPrimaryLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, originalPrimaryLocation_); + } getUnknownFields().writeTo(output); } @@ -1158,6 +1369,16 @@ public int getSerializedSize() { != com.google.cloud.bigquery.reservation.v1.Edition.EDITION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, edition_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, primaryLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, secondaryLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPrimaryLocation_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(20, originalPrimaryLocation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1192,6 +1413,9 @@ public boolean equals(final java.lang.Object obj) { } if (getMultiRegionAuxiliary() != other.getMultiRegionAuxiliary()) return false; if (edition_ != other.edition_) return false; + if (!getPrimaryLocation().equals(other.getPrimaryLocation())) return false; + if (!getSecondaryLocation().equals(other.getSecondaryLocation())) return false; + if (!getOriginalPrimaryLocation().equals(other.getOriginalPrimaryLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1227,6 +1451,12 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiRegionAuxiliary()); hash = (37 * hash) + EDITION_FIELD_NUMBER; hash = (53 * hash) + edition_; + hash = (37 * hash) + PRIMARY_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryLocation().hashCode(); + hash = (37 * hash) + SECONDARY_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryLocation().hashCode(); + hash = (37 * hash) + ORIGINAL_PRIMARY_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getOriginalPrimaryLocation().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1398,6 +1628,9 @@ public Builder clear() { } multiRegionAuxiliary_ = false; edition_ = 0; + primaryLocation_ = ""; + secondaryLocation_ = ""; + originalPrimaryLocation_ = ""; return this; } @@ -1466,6 +1699,15 @@ private void buildPartial0(com.google.cloud.bigquery.reservation.v1.Reservation if (((from_bitField0_ & 0x00000100) != 0)) { result.edition_ = edition_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.primaryLocation_ = primaryLocation_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.secondaryLocation_ = secondaryLocation_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.originalPrimaryLocation_ = originalPrimaryLocation_; + } result.bitField0_ |= to_bitField0_; } @@ -1544,6 +1786,21 @@ public Builder mergeFrom(com.google.cloud.bigquery.reservation.v1.Reservation ot if (other.edition_ != 0) { setEditionValue(other.getEditionValue()); } + if (!other.getPrimaryLocation().isEmpty()) { + primaryLocation_ = other.primaryLocation_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getSecondaryLocation().isEmpty()) { + secondaryLocation_ = other.secondaryLocation_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getOriginalPrimaryLocation().isEmpty()) { + originalPrimaryLocation_ = other.originalPrimaryLocation_; + bitField0_ |= 0x00000800; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1624,6 +1881,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 136 + case 146: + { + primaryLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 146 + case 154: + { + secondaryLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 154 + case 162: + { + originalPrimaryLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1774,20 +2049,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * Minimum slots available to this reservation. A slot is a unit of
      +     * Baseline slots available to this reservation. A slot is a unit of
            * computational power in BigQuery, and serves as the unit of parallelism.
            *
            * Queries using this reservation might use more slots during runtime if
      -     * ignore_idle_slots is set to false.
      -     *
      -     * If total slot_capacity of the reservation and its siblings
      -     * exceeds the total slot_count of all capacity commitments, the request will
      -     * fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
      -     *
      -     *
      -     * NOTE: for reservations in US or EU multi-regions, slot capacity constraints
      -     * are checked separately for default and auxiliary regions. See
      -     * multi_region_auxiliary flag for more details.
      +     * ignore_idle_slots is set to false, or autoscaling is enabled.
      +     *
      +     * If edition is EDITION_UNSPECIFIED and total slot_capacity of the
      +     * reservation and its siblings exceeds the total slot_count of all capacity
      +     * commitments, the request will fail with
      +     * `google.rpc.Code.RESOURCE_EXHAUSTED`.
      +     *
      +     * If edition is any value but EDITION_UNSPECIFIED, then the above requirement
      +     * is not needed. The total slot_capacity of the reservation and its siblings
      +     * may exceed the total slot_count of capacity commitments. In that case, the
      +     * exceeding slots will be charged with the autoscale SKU. You can increase
      +     * the number of baseline slots in a reservation every few minutes. If you
      +     * want to decrease your baseline slots, you are limited to once an hour if
      +     * you have recently changed your baseline slot capacity and your baseline
      +     * slots exceed your committed slots. Otherwise, you can decrease your
      +     * baseline slots every few minutes.
            * 
      * * int64 slot_capacity = 2; @@ -1802,20 +2083,26 @@ public long getSlotCapacity() { * * *
      -     * Minimum slots available to this reservation. A slot is a unit of
      +     * Baseline slots available to this reservation. A slot is a unit of
            * computational power in BigQuery, and serves as the unit of parallelism.
            *
            * Queries using this reservation might use more slots during runtime if
      -     * ignore_idle_slots is set to false.
      -     *
      -     * If total slot_capacity of the reservation and its siblings
      -     * exceeds the total slot_count of all capacity commitments, the request will
      -     * fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
      -     *
      -     *
      -     * NOTE: for reservations in US or EU multi-regions, slot capacity constraints
      -     * are checked separately for default and auxiliary regions. See
      -     * multi_region_auxiliary flag for more details.
      +     * ignore_idle_slots is set to false, or autoscaling is enabled.
      +     *
      +     * If edition is EDITION_UNSPECIFIED and total slot_capacity of the
      +     * reservation and its siblings exceeds the total slot_count of all capacity
      +     * commitments, the request will fail with
      +     * `google.rpc.Code.RESOURCE_EXHAUSTED`.
      +     *
      +     * If edition is any value but EDITION_UNSPECIFIED, then the above requirement
      +     * is not needed. The total slot_capacity of the reservation and its siblings
      +     * may exceed the total slot_count of capacity commitments. In that case, the
      +     * exceeding slots will be charged with the autoscale SKU. You can increase
      +     * the number of baseline slots in a reservation every few minutes. If you
      +     * want to decrease your baseline slots, you are limited to once an hour if
      +     * you have recently changed your baseline slot capacity and your baseline
      +     * slots exceed your committed slots. Otherwise, you can decrease your
      +     * baseline slots every few minutes.
            * 
      * * int64 slot_capacity = 2; @@ -1834,20 +2121,26 @@ public Builder setSlotCapacity(long value) { * * *
      -     * Minimum slots available to this reservation. A slot is a unit of
      +     * Baseline slots available to this reservation. A slot is a unit of
            * computational power in BigQuery, and serves as the unit of parallelism.
            *
            * Queries using this reservation might use more slots during runtime if
      -     * ignore_idle_slots is set to false.
      -     *
      -     * If total slot_capacity of the reservation and its siblings
      -     * exceeds the total slot_count of all capacity commitments, the request will
      -     * fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
      -     *
      -     *
      -     * NOTE: for reservations in US or EU multi-regions, slot capacity constraints
      -     * are checked separately for default and auxiliary regions. See
      -     * multi_region_auxiliary flag for more details.
      +     * ignore_idle_slots is set to false, or autoscaling is enabled.
      +     *
      +     * If edition is EDITION_UNSPECIFIED and total slot_capacity of the
      +     * reservation and its siblings exceeds the total slot_count of all capacity
      +     * commitments, the request will fail with
      +     * `google.rpc.Code.RESOURCE_EXHAUSTED`.
      +     *
      +     * If edition is any value but EDITION_UNSPECIFIED, then the above requirement
      +     * is not needed. The total slot_capacity of the reservation and its siblings
      +     * may exceed the total slot_count of capacity commitments. In that case, the
      +     * exceeding slots will be charged with the autoscale SKU. You can increase
      +     * the number of baseline slots in a reservation every few minutes. If you
      +     * want to decrease your baseline slots, you are limited to once an hour if
      +     * you have recently changed your baseline slot capacity and your baseline
      +     * slots exceed your committed slots. Otherwise, you can decrease your
      +     * baseline slots every few minutes.
            * 
      * * int64 slot_capacity = 2; @@ -1933,8 +2226,7 @@ public Builder clearIgnoreIdleSlots() { * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -1948,8 +2240,7 @@ public boolean hasAutoscale() { * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -1969,8 +2260,7 @@ public com.google.cloud.bigquery.reservation.v1.Reservation.Autoscale getAutosca * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -1993,8 +2283,7 @@ public Builder setAutoscale( * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2014,8 +2303,7 @@ public Builder setAutoscale( * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2045,8 +2333,7 @@ public Builder mergeAutoscale( * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2065,8 +2352,7 @@ public Builder clearAutoscale() { * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2081,8 +2367,7 @@ public Builder clearAutoscale() { * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2101,8 +2386,7 @@ public Builder clearAutoscale() { * * *
      -     * The configuration parameters for the auto scaling feature. Note this is an
      -     * alpha feature.
      +     * The configuration parameters for the auto scaling feature.
            * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -2135,8 +2419,8 @@ public Builder clearAutoscale() { * queries. * Default value is 0 which means that concurrency target will be * automatically computed by the system. - * NOTE: this field is exposed as `target_job_concurrency` in the Information - * Schema, DDL and BQ CLI. + * NOTE: this field is exposed as target job concurrency in the Information + * Schema, DDL and BigQuery CLI. *
      * * int64 concurrency = 16; @@ -2157,8 +2441,8 @@ public long getConcurrency() { * queries. * Default value is 0 which means that concurrency target will be * automatically computed by the system. - * NOTE: this field is exposed as `target_job_concurrency` in the Information - * Schema, DDL and BQ CLI. + * NOTE: this field is exposed as target job concurrency in the Information + * Schema, DDL and BigQuery CLI. *
      * * int64 concurrency = 16; @@ -2183,8 +2467,8 @@ public Builder setConcurrency(long value) { * queries. * Default value is 0 which means that concurrency target will be * automatically computed by the system. - * NOTE: this field is exposed as `target_job_concurrency` in the Information - * Schema, DDL and BQ CLI. + * NOTE: this field is exposed as target job concurrency in the Information + * Schema, DDL and BigQuery CLI. *
      * * int64 concurrency = 16; @@ -2773,6 +3057,394 @@ public Builder clearEdition() { return this; } + private java.lang.Object primaryLocation_ = ""; + /** + * + * + *
      +     * Optional. The current location of the reservation's primary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature.
      +     * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The primaryLocation. + */ + public java.lang.String getPrimaryLocation() { + java.lang.Object ref = primaryLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. The current location of the reservation's primary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature.
      +     * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for primaryLocation. + */ + public com.google.protobuf.ByteString getPrimaryLocationBytes() { + java.lang.Object ref = primaryLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. The current location of the reservation's primary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature.
      +     * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The primaryLocation to set. + * @return This builder for chaining. + */ + public Builder setPrimaryLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryLocation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The current location of the reservation's primary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature.
      +     * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrimaryLocation() { + primaryLocation_ = getDefaultInstance().getPrimaryLocation(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The current location of the reservation's primary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature.
      +     * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for primaryLocation to set. + * @return This builder for chaining. + */ + public Builder setPrimaryLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryLocation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object secondaryLocation_ = ""; + /** + * + * + *
      +     * Optional. The current location of the reservation's secondary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature. Users can set this in create reservation calls
      +     * to create a failover reservation or in update reservation calls to convert
      +     * a non-failover reservation to a failover reservation(or vice versa).
      +     * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + public java.lang.String getSecondaryLocation() { + java.lang.Object ref = secondaryLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. The current location of the reservation's secondary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature. Users can set this in create reservation calls
      +     * to create a failover reservation or in update reservation calls to convert
      +     * a non-failover reservation to a failover reservation(or vice versa).
      +     * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + public com.google.protobuf.ByteString getSecondaryLocationBytes() { + java.lang.Object ref = secondaryLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. The current location of the reservation's secondary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature. Users can set this in create reservation calls
      +     * to create a failover reservation or in update reservation calls to convert
      +     * a non-failover reservation to a failover reservation(or vice versa).
      +     * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The secondaryLocation to set. + * @return This builder for chaining. + */ + public Builder setSecondaryLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryLocation_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The current location of the reservation's secondary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature. Users can set this in create reservation calls
      +     * to create a failover reservation or in update reservation calls to convert
      +     * a non-failover reservation to a failover reservation(or vice versa).
      +     * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSecondaryLocation() { + secondaryLocation_ = getDefaultInstance().getSecondaryLocation(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The current location of the reservation's secondary replica. This
      +     * field is only set for reservations using the managed disaster recovery
      +     * feature. Users can set this in create reservation calls
      +     * to create a failover reservation or in update reservation calls to convert
      +     * a non-failover reservation to a failover reservation(or vice versa).
      +     * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for secondaryLocation to set. + * @return This builder for chaining. + */ + public Builder setSecondaryLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryLocation_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object originalPrimaryLocation_ = ""; + /** + * + * + *
      +     * Optional. The location where the reservation was originally created. This
      +     * is set only during the failover reservation's creation. All billing charges
      +     * for the failover reservation will be applied to this location.
      +     * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The originalPrimaryLocation. + */ + public java.lang.String getOriginalPrimaryLocation() { + java.lang.Object ref = originalPrimaryLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalPrimaryLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. The location where the reservation was originally created. This
      +     * is set only during the failover reservation's creation. All billing charges
      +     * for the failover reservation will be applied to this location.
      +     * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originalPrimaryLocation. + */ + public com.google.protobuf.ByteString getOriginalPrimaryLocationBytes() { + java.lang.Object ref = originalPrimaryLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalPrimaryLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. The location where the reservation was originally created. This
      +     * is set only during the failover reservation's creation. All billing charges
      +     * for the failover reservation will be applied to this location.
      +     * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The originalPrimaryLocation to set. + * @return This builder for chaining. + */ + public Builder setOriginalPrimaryLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originalPrimaryLocation_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The location where the reservation was originally created. This
      +     * is set only during the failover reservation's creation. All billing charges
      +     * for the failover reservation will be applied to this location.
      +     * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOriginalPrimaryLocation() { + originalPrimaryLocation_ = getDefaultInstance().getOriginalPrimaryLocation(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The location where the reservation was originally created. This
      +     * is set only during the failover reservation's creation. All billing charges
      +     * for the failover reservation will be applied to this location.
      +     * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for originalPrimaryLocation to set. + * @return This builder for chaining. + */ + public Builder setOriginalPrimaryLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalPrimaryLocation_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationOrBuilder.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationOrBuilder.java index 5da5530577f9..0aebe234714e 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationOrBuilder.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationOrBuilder.java @@ -61,20 +61,26 @@ public interface ReservationOrBuilder * * *
      -   * Minimum slots available to this reservation. A slot is a unit of
      +   * Baseline slots available to this reservation. A slot is a unit of
          * computational power in BigQuery, and serves as the unit of parallelism.
          *
          * Queries using this reservation might use more slots during runtime if
      -   * ignore_idle_slots is set to false.
      -   *
      -   * If total slot_capacity of the reservation and its siblings
      -   * exceeds the total slot_count of all capacity commitments, the request will
      -   * fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
      -   *
      -   *
      -   * NOTE: for reservations in US or EU multi-regions, slot capacity constraints
      -   * are checked separately for default and auxiliary regions. See
      -   * multi_region_auxiliary flag for more details.
      +   * ignore_idle_slots is set to false, or autoscaling is enabled.
      +   *
      +   * If edition is EDITION_UNSPECIFIED and total slot_capacity of the
      +   * reservation and its siblings exceeds the total slot_count of all capacity
      +   * commitments, the request will fail with
      +   * `google.rpc.Code.RESOURCE_EXHAUSTED`.
      +   *
      +   * If edition is any value but EDITION_UNSPECIFIED, then the above requirement
      +   * is not needed. The total slot_capacity of the reservation and its siblings
      +   * may exceed the total slot_count of capacity commitments. In that case, the
      +   * exceeding slots will be charged with the autoscale SKU. You can increase
      +   * the number of baseline slots in a reservation every few minutes. If you
      +   * want to decrease your baseline slots, you are limited to once an hour if
      +   * you have recently changed your baseline slot capacity and your baseline
      +   * slots exceed your committed slots. Otherwise, you can decrease your
      +   * baseline slots every few minutes.
          * 
      * * int64 slot_capacity = 2; @@ -103,8 +109,7 @@ public interface ReservationOrBuilder * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -116,8 +121,7 @@ public interface ReservationOrBuilder * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -129,8 +133,7 @@ public interface ReservationOrBuilder * * *
      -   * The configuration parameters for the auto scaling feature. Note this is an
      -   * alpha feature.
      +   * The configuration parameters for the auto scaling feature.
          * 
      * * .google.cloud.bigquery.reservation.v1.Reservation.Autoscale autoscale = 7; @@ -147,8 +150,8 @@ public interface ReservationOrBuilder * queries. * Default value is 0 which means that concurrency target will be * automatically computed by the system. - * NOTE: this field is exposed as `target_job_concurrency` in the Information - * Schema, DDL and BQ CLI. + * NOTE: this field is exposed as target job concurrency in the Information + * Schema, DDL and BigQuery CLI. *
      * * int64 concurrency = 16; @@ -281,4 +284,107 @@ public interface ReservationOrBuilder * @return The edition. */ com.google.cloud.bigquery.reservation.v1.Edition getEdition(); + + /** + * + * + *
      +   * Optional. The current location of the reservation's primary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature.
      +   * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The primaryLocation. + */ + java.lang.String getPrimaryLocation(); + /** + * + * + *
      +   * Optional. The current location of the reservation's primary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature.
      +   * 
      + * + * + * string primary_location = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for primaryLocation. + */ + com.google.protobuf.ByteString getPrimaryLocationBytes(); + + /** + * + * + *
      +   * Optional. The current location of the reservation's secondary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature. Users can set this in create reservation calls
      +   * to create a failover reservation or in update reservation calls to convert
      +   * a non-failover reservation to a failover reservation(or vice versa).
      +   * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The secondaryLocation. + */ + java.lang.String getSecondaryLocation(); + /** + * + * + *
      +   * Optional. The current location of the reservation's secondary replica. This
      +   * field is only set for reservations using the managed disaster recovery
      +   * feature. Users can set this in create reservation calls
      +   * to create a failover reservation or in update reservation calls to convert
      +   * a non-failover reservation to a failover reservation(or vice versa).
      +   * 
      + * + * + * string secondary_location = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for secondaryLocation. + */ + com.google.protobuf.ByteString getSecondaryLocationBytes(); + + /** + * + * + *
      +   * Optional. The location where the reservation was originally created. This
      +   * is set only during the failover reservation's creation. All billing charges
      +   * for the failover reservation will be applied to this location.
      +   * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The originalPrimaryLocation. + */ + java.lang.String getOriginalPrimaryLocation(); + /** + * + * + *
      +   * Optional. The location where the reservation was originally created. This
      +   * is set only during the failover reservation's creation. All billing charges
      +   * for the failover reservation will be applied to this location.
      +   * 
      + * + * + * string original_primary_location = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for originalPrimaryLocation. + */ + com.google.protobuf.ByteString getOriginalPrimaryLocationBytes(); } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java index 021ac177c1c2..f498d6c86b29 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_reservation_v1_UpdateReservationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_reservation_v1_UpdateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -177,7 +181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rce.proto\032\033google/protobuf/empty.proto\032 " + "google/protobuf/field_mask.proto\032\037google" + "/protobuf/timestamp.proto\032\027google/rpc/st" - + "atus.proto\"\265\004\n\013Reservation\022\014\n\004name\030\001 \001(\t" + + "atus.proto\"\217\006\n\013Reservation\022\014\n\004name\030\001 \001(\t" + "\022\025\n\rslot_capacity\030\002 \001(\003\022\031\n\021ignore_idle_s" + "lots\030\004 \001(\010\022N\n\tautoscale\030\007 \001(\0132;.google.c" + "loud.bigquery.reservation.v1.Reservation" @@ -186,292 +190,307 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mpB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google.pr" + "otobuf.TimestampB\003\340A\003\022\036\n\026multi_region_au" + "xiliary\030\016 \001(\010\022>\n\007edition\030\021 \001(\0162-.google." - + "cloud.bigquery.reservation.v1.Edition\032:\n" - + "\tAutoscale\022\032\n\rcurrent_slots\030\001 \001(\003B\003\340A\003\022\021" - + "\n\tmax_slots\030\002 \001(\003:w\352At\n.bigqueryreservat" - + "ion.googleapis.com/Reservation\022Bprojects" - + "/{project}/locations/{location}/reservat" - + "ions/{reservation}\"\363\007\n\022CapacityCommitmen" - + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\022\n\nslot_count\030\002 \001(\003" - + "\022U\n\004plan\030\003 \001(\0162G.google.cloud.bigquery.r" - + "eservation.v1.CapacityCommitment.Commitm" - + "entPlan\022R\n\005state\030\004 \001(\0162>.google.cloud.bi" - + "gquery.reservation.v1.CapacityCommitment" - + ".StateB\003\340A\003\022>\n\025commitment_start_time\030\t \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n\023c" - + "ommitment_end_time\030\005 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022/\n\016failure_status\030\007 \001(" - + "\0132\022.google.rpc.StatusB\003\340A\003\022]\n\014renewal_pl" - + "an\030\010 \001(\0162G.google.cloud.bigquery.reserva" - + "tion.v1.CapacityCommitment.CommitmentPla" - + "n\022\036\n\026multi_region_auxiliary\030\n \001(\010\022>\n\007edi" - + "tion\030\014 \001(\0162-.google.cloud.bigquery.reser" - + "vation.v1.Edition\"\306\001\n\016CommitmentPlan\022\037\n\033" - + "COMMITMENT_PLAN_UNSPECIFIED\020\000\022\010\n\004FLEX\020\003\022" - + "\026\n\016FLEX_FLAT_RATE\020\007\032\002\010\001\022\t\n\005TRIAL\020\005\022\013\n\007MO" - + "NTHLY\020\002\022\031\n\021MONTHLY_FLAT_RATE\020\010\032\002\010\001\022\n\n\006AN" - + "NUAL\020\004\022\030\n\020ANNUAL_FLAT_RATE\020\t\032\002\010\001\022\016\n\nTHRE" - + "E_YEAR\020\n\022\010\n\004NONE\020\006\"C\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006F" - + "AILED\020\003:\216\001\352A\212\001\n5bigqueryreservation.goog" - + "leapis.com/CapacityCommitment\022Qprojects/" - + "{project}/locations/{location}/capacityC" - + "ommitments/{capacity_commitment}\"\302\001\n\030Cre" - + "ateReservationRequest\022F\n\006parent\030\001 \001(\tB6\340" - + "A\002\372A0\022.bigqueryreservation.googleapis.co" - + "m/Reservation\022\026\n\016reservation_id\030\002 \001(\t\022F\n" - + "\013reservation\030\003 \001(\01321.google.cloud.bigque" - + "ry.reservation.v1.Reservation\"\210\001\n\027ListRe" - + "servationsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A" - + "0\022.bigqueryreservation.googleapis.com/Re" - + "servation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"|\n\030ListReservationsResponse\022G\n\014" - + "reservations\030\001 \003(\01321.google.cloud.bigque" - + "ry.reservation.v1.Reservation\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"]\n\025GetReservationRequest\022" - + "D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigqueryreservati" - + "on.googleapis.com/Reservation\"`\n\030DeleteR" - + "eservationRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n" - + ".bigqueryreservation.googleapis.com/Rese" - + "rvation\"\223\001\n\030UpdateReservationRequest\022F\n\013" - + "reservation\030\001 \001(\01321.google.cloud.bigquer" - + "y.reservation.v1.Reservation\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\225\002" - + "\n\037CreateCapacityCommitmentRequest\022M\n\006par" - + "ent\030\001 \001(\tB=\340A\002\372A7\0225bigqueryreservation.g" - + "oogleapis.com/CapacityCommitment\022U\n\023capa" - + "city_commitment\030\002 \001(\01328.google.cloud.big" - + "query.reservation.v1.CapacityCommitment\022" - + ",\n$enforce_single_admin_project_per_org\030" - + "\004 \001(\010\022\036\n\026capacity_commitment_id\030\005 \001(\t\"\226\001" - + "\n\036ListCapacityCommitmentsRequest\022M\n\006pare" - + "nt\030\001 \001(\tB=\340A\002\372A7\0225bigqueryreservation.go" - + "ogleapis.com/CapacityCommitment\022\021\n\tpage_" - + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\222\001\n\037ListC" - + "apacityCommitmentsResponse\022V\n\024capacity_c" - + "ommitments\030\001 \003(\01328.google.cloud.bigquery" - + ".reservation.v1.CapacityCommitment\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"k\n\034GetCapacityCommit" + + "cloud.bigquery.reservation.v1.Edition\022C\n" + + "\020primary_location\030\022 \001(\tB)\340A\001\372A#\n!locatio" + + "ns.googleapis.com/Location\022E\n\022secondary_" + + "location\030\023 \001(\tB)\340A\001\372A#\n!locations.google" + + "apis.com/Location\022L\n\031original_primary_lo" + + "cation\030\024 \001(\tB)\340A\001\372A#\n!locations.googleap" + + "is.com/Location\032:\n\tAutoscale\022\032\n\rcurrent_" + + "slots\030\001 \001(\003B\003\340A\003\022\021\n\tmax_slots\030\002 \001(\003:w\352At" + + "\n.bigqueryreservation.googleapis.com/Res" + + "ervation\022Bprojects/{project}/locations/{" + + "location}/reservations/{reservation}\"\222\010\n" + + "\022CapacityCommitment\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\022" + + "\n\nslot_count\030\002 \001(\003\022U\n\004plan\030\003 \001(\0162G.googl" + + "e.cloud.bigquery.reservation.v1.Capacity" + + "Commitment.CommitmentPlan\022R\n\005state\030\004 \001(\016" + + "2>.google.cloud.bigquery.reservation.v1." + + "CapacityCommitment.StateB\003\340A\003\022>\n\025commitm" + + "ent_start_time\030\t \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022<\n\023commitment_end_time\030\005 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022/\n\016f" + + "ailure_status\030\007 \001(\0132\022.google.rpc.StatusB" + + "\003\340A\003\022]\n\014renewal_plan\030\010 \001(\0162G.google.clou" + + "d.bigquery.reservation.v1.CapacityCommit" + + "ment.CommitmentPlan\022\036\n\026multi_region_auxi" + + "liary\030\n \001(\010\022>\n\007edition\030\014 \001(\0162-.google.cl" + + "oud.bigquery.reservation.v1.Edition\022\031\n\014i" + + "s_flat_rate\030\016 \001(\010B\003\340A\003\"\312\001\n\016CommitmentPla" + + "n\022\037\n\033COMMITMENT_PLAN_UNSPECIFIED\020\000\022\010\n\004FL" + + "EX\020\003\022\026\n\016FLEX_FLAT_RATE\020\007\032\002\010\001\022\r\n\005TRIAL\020\005\032" + + "\002\010\001\022\013\n\007MONTHLY\020\002\022\031\n\021MONTHLY_FLAT_RATE\020\010\032" + + "\002\010\001\022\n\n\006ANNUAL\020\004\022\030\n\020ANNUAL_FLAT_RATE\020\t\032\002\010" + + "\001\022\016\n\nTHREE_YEAR\020\n\022\010\n\004NONE\020\006\"C\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006ACTI" + + "VE\020\002\022\n\n\006FAILED\020\003:\216\001\352A\212\001\n5bigqueryreserva" + + "tion.googleapis.com/CapacityCommitment\022Q" + + "projects/{project}/locations/{location}/" + + "capacityCommitments/{capacity_commitment" + + "}\"\302\001\n\030CreateReservationRequest\022F\n\006parent" + + "\030\001 \001(\tB6\340A\002\372A0\022.bigqueryreservation.goog" + + "leapis.com/Reservation\022\026\n\016reservation_id" + + "\030\002 \001(\t\022F\n\013reservation\030\003 \001(\01321.google.clo" + + "ud.bigquery.reservation.v1.Reservation\"\210" + + "\001\n\027ListReservationsRequest\022F\n\006parent\030\001 \001" + + "(\tB6\340A\002\372A0\022.bigqueryreservation.googleap" + + "is.com/Reservation\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\"|\n\030ListReservationsRes" + + "ponse\022G\n\014reservations\030\001 \003(\01321.google.clo" + + "ud.bigquery.reservation.v1.Reservation\022\027" + + "\n\017next_page_token\030\002 \001(\t\"]\n\025GetReservatio" + + "nRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquery" + + "reservation.googleapis.com/Reservation\"`" + + "\n\030DeleteReservationRequest\022D\n\004name\030\001 \001(\t" + + "B6\340A\002\372A0\n.bigqueryreservation.googleapis" + + ".com/Reservation\"\223\001\n\030UpdateReservationRe" + + "quest\022F\n\013reservation\030\001 \001(\01321.google.clou" + + "d.bigquery.reservation.v1.Reservation\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"b\n\032FailoverReservationRequest\022D\n\004" + + "name\030\001 \001(\tB6\340A\002\372A0\n.bigqueryreservation." + + "googleapis.com/Reservation\"\225\002\n\037CreateCap" + + "acityCommitmentRequest\022M\n\006parent\030\001 \001(\tB=" + + "\340A\002\372A7\0225bigqueryreservation.googleapis.c" + + "om/CapacityCommitment\022U\n\023capacity_commit" + + "ment\030\002 \001(\01328.google.cloud.bigquery.reser" + + "vation.v1.CapacityCommitment\022,\n$enforce_" + + "single_admin_project_per_org\030\004 \001(\010\022\036\n\026ca" + + "pacity_commitment_id\030\005 \001(\t\"\226\001\n\036ListCapac" + + "ityCommitmentsRequest\022M\n\006parent\030\001 \001(\tB=\340" + + "A\002\372A7\0225bigqueryreservation.googleapis.co" + + "m/CapacityCommitment\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"\222\001\n\037ListCapacityComm" + + "itmentsResponse\022V\n\024capacity_commitments\030" + + "\001 \003(\01328.google.cloud.bigquery.reservatio" + + "n.v1.CapacityCommitment\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"k\n\034GetCapacityCommitmentRequest" + + "\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5bigqueryreservat" + + "ion.googleapis.com/CapacityCommitment\"}\n" + + "\037DeleteCapacityCommitmentRequest\022K\n\004name" + + "\030\001 \001(\tB=\340A\002\372A7\n5bigqueryreservation.goog" + + "leapis.com/CapacityCommitment\022\r\n\005force\030\003" + + " \001(\010\"\251\001\n\037UpdateCapacityCommitmentRequest" + + "\022U\n\023capacity_commitment\030\001 \001(\01328.google.c" + + "loud.bigquery.reservation.v1.CapacityCom" + + "mitment\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"\201\001\n\036SplitCapacityCommit" + "mentRequest\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5bigqu" + "eryreservation.googleapis.com/CapacityCo" - + "mmitment\"}\n\037DeleteCapacityCommitmentRequ" - + "est\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5bigqueryreser" - + "vation.googleapis.com/CapacityCommitment" - + "\022\r\n\005force\030\003 \001(\010\"\251\001\n\037UpdateCapacityCommit" - + "mentRequest\022U\n\023capacity_commitment\030\001 \001(\013" - + "28.google.cloud.bigquery.reservation.v1." - + "CapacityCommitment\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"\201\001\n\036SplitCap" - + "acityCommitmentRequest\022K\n\004name\030\001 \001(\tB=\340A" - + "\002\372A7\n5bigqueryreservation.googleapis.com" - + "/CapacityCommitment\022\022\n\nslot_count\030\002 \001(\003\"" - + "\264\001\n\037SplitCapacityCommitmentResponse\022G\n\005f" - + "irst\030\001 \001(\01328.google.cloud.bigquery.reser" - + "vation.v1.CapacityCommitment\022H\n\006second\030\002" - + " \001(\01328.google.cloud.bigquery.reservation" - + ".v1.CapacityCommitment\"\216\001\n\037MergeCapacity" - + "CommitmentsRequest\022J\n\006parent\030\001 \001(\tB:\372A7\022" - + "5bigqueryreservation.googleapis.com/Capa" - + "cityCommitment\022\037\n\027capacity_commitment_id" - + "s\030\002 \003(\t\"\364\003\n\nAssignment\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022\020\n\010assignee\030\004 \001(\t\022J\n\010job_type\030\003 \001(\01628." - + "google.cloud.bigquery.reservation.v1.Ass" - + "ignment.JobType\022J\n\005state\030\006 \001(\01626.google." - + "cloud.bigquery.reservation.v1.Assignment" - + ".StateB\003\340A\003\"]\n\007JobType\022\030\n\024JOB_TYPE_UNSPE" - + "CIFIED\020\000\022\014\n\010PIPELINE\020\001\022\t\n\005QUERY\020\002\022\017\n\013ML_" - + "EXTERNAL\020\003\022\016\n\nBACKGROUND\020\004\"7\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006ACTIV" - + "E\020\002:\220\001\352A\214\001\n-bigqueryreservation.googleap" - + "is.com/Assignment\022[projects/{project}/lo" - + "cations/{location}/reservations/{reserva" - + "tion}/assignments/{assignment}\"\275\001\n\027Creat" - + "eAssignmentRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372" - + "A/\022-bigqueryreservation.googleapis.com/A" - + "ssignment\022D\n\nassignment\030\002 \001(\01320.google.c" - + "loud.bigquery.reservation.v1.Assignment\022" - + "\025\n\rassignment_id\030\004 \001(\t\"\206\001\n\026ListAssignmen" - + "tsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-bigqu" - + "eryreservation.googleapis.com/Assignment" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "y\n\027ListAssignmentsResponse\022E\n\013assignment" - + "s\030\001 \003(\01320.google.cloud.bigquery.reservat" - + "ion.v1.Assignment\022\027\n\017next_page_token\030\002 \001" - + "(\t\"^\n\027DeleteAssignmentRequest\022C\n\004name\030\001 " - + "\001(\tB5\340A\002\372A/\n-bigqueryreservation.googlea" - + "pis.com/Assignment\"\213\001\n\030SearchAssignments" - + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" - + "ns.googleapis.com/Location\022\r\n\005query\030\002 \001(" - + "\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" - + "\"\216\001\n\033SearchAllAssignmentsRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\022\r\n\005query\030\002 \001(\t\022\021\n\tpage_size\030" - + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"{\n\031SearchAssig" - + "nmentsResponse\022E\n\013assignments\030\001 \003(\01320.go" - + "ogle.cloud.bigquery.reservation.v1.Assig" - + "nment\022\027\n\017next_page_token\030\002 \001(\t\"~\n\034Search" - + "AllAssignmentsResponse\022E\n\013assignments\030\001 " - + "\003(\01320.google.cloud.bigquery.reservation." - + "v1.Assignment\022\027\n\017next_page_token\030\002 \001(\t\"\277" - + "\001\n\025MoveAssignmentRequest\022C\n\004name\030\001 \001(\tB5" - + "\340A\002\372A/\n-bigqueryreservation.googleapis.c" - + "om/Assignment\022J\n\016destination_id\030\003 \001(\tB2\372" - + "A/\022-bigqueryreservation.googleapis.com/A" - + "ssignment\022\025\n\rassignment_id\030\005 \001(\t\"\220\001\n\027Upd" - + "ateAssignmentRequest\022D\n\nassignment\030\001 \001(\013" - + "20.google.cloud.bigquery.reservation.v1." - + "Assignment\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"J\n\016TableReference\022\022\n" - + "\nproject_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n" - + "\010table_id\030\003 \001(\t\"\237\002\n\rBiReservation\022\014\n\004nam" - + "e\030\001 \001(\t\0224\n\013update_time\030\003 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\014\n\004size\030\004 \001(\003\022N\n\020p" - + "referred_tables\030\005 \003(\01324.google.cloud.big" - + "query.reservation.v1.TableReference:l\352Ai" - + "\n0bigqueryreservation.googleapis.com/BiR" - + "eservation\0225projects/{project}/locations" - + "/{location}/biReservation\"a\n\027GetBiReserv" - + "ationRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0bigq" - + "ueryreservation.googleapis.com/BiReserva" - + "tion\"\232\001\n\032UpdateBiReservationRequest\022K\n\016b" - + "i_reservation\030\001 \001(\01323.google.cloud.bigqu" - + "ery.reservation.v1.BiReservation\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k*U\n\007Edition\022\027\n\023EDITION_UNSPECIFIED\020\000\022\014\n" - + "\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\022\023\n\017ENTERPRIS" - + "E_PLUS\020\0032\301\'\n\022ReservationService\022\361\001\n\021Crea" - + "teReservation\022>.google.cloud.bigquery.re" - + "servation.v1.CreateReservationRequest\0321." - + "google.cloud.bigquery.reservation.v1.Res" - + "ervation\"i\332A!parent,reservation,reservat" - + "ion_id\202\323\344\223\002?\"0/v1/{parent=projects/*/loc" - + "ations/*}/reservations:\013reservation\022\324\001\n\020" - + "ListReservations\022=.google.cloud.bigquery" - + ".reservation.v1.ListReservationsRequest\032" - + ">.google.cloud.bigquery.reservation.v1.L" - + "istReservationsResponse\"A\332A\006parent\202\323\344\223\0022" - + "\0220/v1/{parent=projects/*/locations/*}/re" - + "servations\022\301\001\n\016GetReservation\022;.google.c" - + "loud.bigquery.reservation.v1.GetReservat" - + "ionRequest\0321.google.cloud.bigquery.reser" - + "vation.v1.Reservation\"?\332A\004name\202\323\344\223\0022\0220/v" - + "1/{name=projects/*/locations/*/reservati" - + "ons/*}\022\254\001\n\021DeleteReservation\022>.google.cl" - + "oud.bigquery.reservation.v1.DeleteReserv" - + "ationRequest\032\026.google.protobuf.Empty\"?\332A" - + "\004name\202\323\344\223\0022*0/v1/{name=projects/*/locati" - + "ons/*/reservations/*}\022\363\001\n\021UpdateReservat" - + "ion\022>.google.cloud.bigquery.reservation." - + "v1.UpdateReservationRequest\0321.google.clo" - + "ud.bigquery.reservation.v1.Reservation\"k" - + "\332A\027reservation,update_mask\202\323\344\223\002K2.google.clo" + + "ud.bigquery.reservation.v1.CreateReserva" + + "tionRequest\0321.google.cloud.bigquery.rese" + + "rvation.v1.Reservation\"i\332A!parent,reserv" + + "ation,reservation_id\202\323\344\223\002?\"0/v1/{parent=" + + "projects/*/locations/*}/reservations:\013re" + + "servation\022\324\001\n\020ListReservations\022=.google." + + "cloud.bigquery.reservation.v1.ListReserv" + + "ationsRequest\032>.google.cloud.bigquery.re" + + "servation.v1.ListReservationsResponse\"A\332" + + "A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/l" + + "ocations/*}/reservations\022\301\001\n\016GetReservat" + + "ion\022;.google.cloud.bigquery.reservation." + + "v1.GetReservationRequest\0321.google.cloud." + + "bigquery.reservation.v1.Reservation\"?\332A\004" + + "name\202\323\344\223\0022\0220/v1/{name=projects/*/locatio" + + "ns/*/reservations/*}\022\254\001\n\021DeleteReservati" + + "on\022>.google.cloud.bigquery.reservation.v" + + "1.DeleteReservationRequest\032\026.google.prot" + + "obuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=pro" + + "jects/*/locations/*/reservations/*}\022\363\001\n\021" + + "UpdateReservation\022>.google.cloud.bigquer" + + "y.reservation.v1.UpdateReservationReques" + + "t\0321.google.cloud.bigquery.reservation.v1" + + ".Reservation\"k\332A\027reservation,update_mask" + + "\202\323\344\223\002K2/v1/{par" - + "ent=projects/*/locations/*/reservations/" - + "*}/assignments:\nassignment\022\337\001\n\017ListAssig" - + "nments\022<.google.cloud.bigquery.reservati" - + "on.v1.ListAssignmentsRequest\032=.google.cl" - + "oud.bigquery.reservation.v1.ListAssignme" - + "ntsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{paren" - + "t=projects/*/locations/*/reservations/*}" - + "/assignments\022\270\001\n\020DeleteAssignment\022=.goog" - + "le.cloud.bigquery.reservation.v1.DeleteA" - + "ssignmentRequest\032\026.google.protobuf.Empty" - + "\"M\332A\004name\202\323\344\223\002@*>/v1/{name=projects/*/lo" - + "cations/*/reservations/*/assignments/*}\022" - + "\345\001\n\021SearchAssignments\022>.google.cloud.big" - + "query.reservation.v1.SearchAssignmentsRe" - + "quest\032?.google.cloud.bigquery.reservatio" - + "n.v1.SearchAssignmentsResponse\"O\210\002\001\332A\014pa" - + "rent,query\202\323\344\223\0027\0225/v1/{parent=projects/*" - + "/locations/*}:searchAssignments\022\356\001\n\024Sear" - + "chAllAssignments\022A.google.cloud.bigquery" - + ".reservation.v1.SearchAllAssignmentsRequ" - + "est\032B.google.cloud.bigquery.reservation." - + "v1.SearchAllAssignmentsResponse\"O\332A\014pare" - + "nt,query\202\323\344\223\002:\0228/v1/{parent=projects/*/l" - + "ocations/*}:searchAllAssignments\022\345\001\n\016Mov" - + "eAssignment\022;.google.cloud.bigquery.rese" - + "rvation.v1.MoveAssignmentRequest\0320.googl" - + "e.cloud.bigquery.reservation.v1.Assignme" - + "nt\"d\332A\023name,destination_id\202\323\344\223\002H\"C/v1/{n" - + "ame=projects/*/locations/*/reservations/" - + "*/assignments/*}:move:\001*\022\373\001\n\020UpdateAssig" + + "/*}\022\301\001\n\030DeleteCapacityCommitment\022E.googl" + + "e.cloud.bigquery.reservation.v1.DeleteCa" + + "pacityCommitmentRequest\032\026.google.protobu" + + "f.Empty\"F\332A\004name\202\323\344\223\0029*7/v1/{name=projec" + + "ts/*/locations/*/capacityCommitments/*}\022" + + "\250\002\n\030UpdateCapacityCommitment\022E.google.cl" + + "oud.bigquery.reservation.v1.UpdateCapaci" + + "tyCommitmentRequest\0328.google.cloud.bigqu" + + "ery.reservation.v1.CapacityCommitment\"\212\001" + + "\332A\037capacity_commitment,update_mask\202\323\344\223\002b" + + "2K/v1/{capacity_commitment.name=projects" + + "/*/locations/*/capacityCommitments/*}:\023c" + + "apacity_commitment\022\202\002\n\027SplitCapacityComm" + + "itment\022D.google.cloud.bigquery.reservati" + + "on.v1.SplitCapacityCommitmentRequest\032E.g" + + "oogle.cloud.bigquery.reservation.v1.Spli" + + "tCapacityCommitmentResponse\"Z\332A\017name,slo" + + "t_count\202\323\344\223\002B\"=/v1/{name=projects/*/loca" + + "tions/*/capacityCommitments/*}:split:\001*\022" + + "\206\002\n\030MergeCapacityCommitments\022E.google.cl" + + "oud.bigquery.reservation.v1.MergeCapacit" + + "yCommitmentsRequest\0328.google.cloud.bigqu" + + "ery.reservation.v1.CapacityCommitment\"i\332" + + "A\036parent,capacity_commitment_ids\202\323\344\223\002B\"=" + + "/v1/{parent=projects/*/locations/*}/capa" + + "cityCommitments:merge:\001*\022\353\001\n\020CreateAssig" + "nment\022=.google.cloud.bigquery.reservatio" - + "n.v1.UpdateAssignmentRequest\0320.google.cl" - + "oud.bigquery.reservation.v1.Assignment\"v" - + "\332A\026assignment,update_mask\202\323\344\223\002W2I/v1/{as" - + "signment.name=projects/*/locations/*/res" - + "ervations/*/assignments/*}:\nassignment\022\306" - + "\001\n\020GetBiReservation\022=.google.cloud.bigqu" - + "ery.reservation.v1.GetBiReservationReque" - + "st\0323.google.cloud.bigquery.reservation.v" - + "1.BiReservation\">\332A\004name\202\323\344\223\0021\022//v1/{nam" - + "e=projects/*/locations/*/biReservation}\022" - + "\201\002\n\023UpdateBiReservation\022@.google.cloud.b" - + "igquery.reservation.v1.UpdateBiReservati" - + "onRequest\0323.google.cloud.bigquery.reserv" - + "ation.v1.BiReservation\"s\332A\032bi_reservatio" - + "n,update_mask\202\323\344\223\002P2>/v1/{bi_reservation" - + ".name=projects/*/locations/*/biReservati" - + "on}:\016bi_reservation\032\177\312A\"bigqueryreservat" - + "ion.googleapis.com\322AWhttps://www.googlea" - + "pis.com/auth/bigquery,https://www.google" - + "apis.com/auth/cloud-platformB\330\001\n(com.goo" - + "gle.cloud.bigquery.reservation.v1B\020Reser" - + "vationProtoP\001ZJcloud.google.com/go/bigqu" - + "ery/reservation/apiv1/reservationpb;rese" - + "rvationpb\252\002$Google.Cloud.BigQuery.Reserv" - + "ation.V1\312\002$Google\\Cloud\\BigQuery\\Reserva" - + "tion\\V1b\006proto3" + + "n.v1.CreateAssignmentRequest\0320.google.cl" + + "oud.bigquery.reservation.v1.Assignment\"f" + + "\332A\021parent,assignment\202\323\344\223\002L\">/v1/{parent=" + + "projects/*/locations/*/reservations/*}/a" + + "ssignments:\nassignment\022\337\001\n\017ListAssignmen" + + "ts\022<.google.cloud.bigquery.reservation.v" + + "1.ListAssignmentsRequest\032=.google.cloud." + + "bigquery.reservation.v1.ListAssignmentsR" + + "esponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pr" + + "ojects/*/locations/*/reservations/*}/ass" + + "ignments\022\270\001\n\020DeleteAssignment\022=.google.c" + + "loud.bigquery.reservation.v1.DeleteAssig" + + "nmentRequest\032\026.google.protobuf.Empty\"M\332A" + + "\004name\202\323\344\223\002@*>/v1/{name=projects/*/locati" + + "ons/*/reservations/*/assignments/*}\022\345\001\n\021" + + "SearchAssignments\022>.google.cloud.bigquer" + + "y.reservation.v1.SearchAssignmentsReques" + + "t\032?.google.cloud.bigquery.reservation.v1" + + ".SearchAssignmentsResponse\"O\210\002\001\332A\014parent" + + ",query\202\323\344\223\0027\0225/v1/{parent=projects/*/loc" + + "ations/*}:searchAssignments\022\356\001\n\024SearchAl" + + "lAssignments\022A.google.cloud.bigquery.res" + + "ervation.v1.SearchAllAssignmentsRequest\032" + + "B.google.cloud.bigquery.reservation.v1.S" + + "earchAllAssignmentsResponse\"O\332A\014parent,q" + + "uery\202\323\344\223\002:\0228/v1/{parent=projects/*/locat" + + "ions/*}:searchAllAssignments\022\345\001\n\016MoveAss" + + "ignment\022;.google.cloud.bigquery.reservat" + + "ion.v1.MoveAssignmentRequest\0320.google.cl" + + "oud.bigquery.reservation.v1.Assignment\"d" + + "\332A\023name,destination_id\202\323\344\223\002H\"C/v1/{name=" + + "projects/*/locations/*/reservations/*/as" + + "signments/*}:move:\001*\022\373\001\n\020UpdateAssignmen" + + "t\022=.google.cloud.bigquery.reservation.v1" + + ".UpdateAssignmentRequest\0320.google.cloud." + + "bigquery.reservation.v1.Assignment\"v\332A\026a" + + "ssignment,update_mask\202\323\344\223\002W2I/v1/{assign" + + "ment.name=projects/*/locations/*/reserva" + + "tions/*/assignments/*}:\nassignment\022\306\001\n\020G" + + "etBiReservation\022=.google.cloud.bigquery." + + "reservation.v1.GetBiReservationRequest\0323" + + ".google.cloud.bigquery.reservation.v1.Bi" + + "Reservation\">\332A\004name\202\323\344\223\0021\022//v1/{name=pr" + + "ojects/*/locations/*/biReservation}\022\201\002\n\023" + + "UpdateBiReservation\022@.google.cloud.bigqu" + + "ery.reservation.v1.UpdateBiReservationRe" + + "quest\0323.google.cloud.bigquery.reservatio" + + "n.v1.BiReservation\"s\332A\032bi_reservation,up" + + "date_mask\202\323\344\223\002P2>/v1/{bi_reservation.nam" + + "e=projects/*/locations/*/biReservation}:" + + "\016bi_reservation\032\177\312A\"bigqueryreservation." + + "googleapis.com\322AWhttps://www.googleapis." + + "com/auth/bigquery,https://www.googleapis" + + ".com/auth/cloud-platformB\330\001\n(com.google." + + "cloud.bigquery.reservation.v1B\020Reservati" + + "onProtoP\001ZJcloud.google.com/go/bigquery/" + + "reservation/apiv1/reservationpb;reservat" + + "ionpb\252\002$Google.Cloud.BigQuery.Reservatio" + + "n.V1\312\002$Google\\Cloud\\BigQuery\\Reservation" + + "\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -501,6 +520,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "MultiRegionAuxiliary", "Edition", + "PrimaryLocation", + "SecondaryLocation", + "OriginalPrimaryLocation", }); internal_static_google_cloud_bigquery_reservation_v1_Reservation_Autoscale_descriptor = internal_static_google_cloud_bigquery_reservation_v1_Reservation_descriptor @@ -528,6 +550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RenewalPlan", "MultiRegionAuxiliary", "Edition", + "IsFlatRate", }); internal_static_google_cloud_bigquery_reservation_v1_CreateReservationRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -577,8 +600,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Reservation", "UpdateMask", }); - internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_descriptor = + internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_descriptor, @@ -589,7 +620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CapacityCommitmentId", }); internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsRequest_descriptor, @@ -597,7 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_ListCapacityCommitmentsResponse_descriptor, @@ -605,7 +636,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CapacityCommitments", "NextPageToken", }); internal_static_google_cloud_bigquery_reservation_v1_GetCapacityCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_bigquery_reservation_v1_GetCapacityCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_GetCapacityCommitmentRequest_descriptor, @@ -613,7 +644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_reservation_v1_DeleteCapacityCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_bigquery_reservation_v1_DeleteCapacityCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_DeleteCapacityCommitmentRequest_descriptor, @@ -621,7 +652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_bigquery_reservation_v1_UpdateCapacityCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_bigquery_reservation_v1_UpdateCapacityCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_UpdateCapacityCommitmentRequest_descriptor, @@ -629,7 +660,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CapacityCommitment", "UpdateMask", }); internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentRequest_descriptor, @@ -637,7 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SlotCount", }); internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SplitCapacityCommitmentResponse_descriptor, @@ -645,7 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "First", "Second", }); internal_static_google_cloud_bigquery_reservation_v1_MergeCapacityCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_bigquery_reservation_v1_MergeCapacityCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_MergeCapacityCommitmentsRequest_descriptor, @@ -653,7 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CapacityCommitmentIds", }); internal_static_google_cloud_bigquery_reservation_v1_Assignment_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_bigquery_reservation_v1_Assignment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_Assignment_descriptor, @@ -661,7 +692,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Assignee", "JobType", "State", }); internal_static_google_cloud_bigquery_reservation_v1_CreateAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_bigquery_reservation_v1_CreateAssignmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_CreateAssignmentRequest_descriptor, @@ -669,7 +700,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Assignment", "AssignmentId", }); internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsRequest_descriptor, @@ -677,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_ListAssignmentsResponse_descriptor, @@ -685,7 +716,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Assignments", "NextPageToken", }); internal_static_google_cloud_bigquery_reservation_v1_DeleteAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_bigquery_reservation_v1_DeleteAssignmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_DeleteAssignmentRequest_descriptor, @@ -693,7 +724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsRequest_descriptor, @@ -701,7 +732,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Query", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsRequest_descriptor, @@ -709,7 +740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Query", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SearchAssignmentsResponse_descriptor, @@ -717,7 +748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Assignments", "NextPageToken", }); internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_SearchAllAssignmentsResponse_descriptor, @@ -725,7 +756,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Assignments", "NextPageToken", }); internal_static_google_cloud_bigquery_reservation_v1_MoveAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_bigquery_reservation_v1_MoveAssignmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_MoveAssignmentRequest_descriptor, @@ -733,7 +764,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DestinationId", "AssignmentId", }); internal_static_google_cloud_bigquery_reservation_v1_UpdateAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_bigquery_reservation_v1_UpdateAssignmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_UpdateAssignmentRequest_descriptor, @@ -741,7 +772,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Assignment", "UpdateMask", }); internal_static_google_cloud_bigquery_reservation_v1_TableReference_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_bigquery_reservation_v1_TableReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_TableReference_descriptor, @@ -749,7 +780,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "TableId", }); internal_static_google_cloud_bigquery_reservation_v1_BiReservation_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_bigquery_reservation_v1_BiReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_BiReservation_descriptor, @@ -757,7 +788,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UpdateTime", "Size", "PreferredTables", }); internal_static_google_cloud_bigquery_reservation_v1_GetBiReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_bigquery_reservation_v1_GetBiReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_GetBiReservationRequest_descriptor, @@ -765,7 +796,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_reservation_v1_UpdateBiReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_bigquery_reservation_v1_UpdateBiReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_UpdateBiReservationRequest_descriptor, diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto index cc72af264129..ba8609f2b1be 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto @@ -99,6 +99,18 @@ service ReservationService { option (google.api.method_signature) = "reservation,update_mask"; } + // Fail over a reservation to the secondary location. The operation should be + // done in the current secondary location, which will be promoted to the + // new primary location for the reservation. + // Attempting to failover a reservation in the current primary location will + // fail with the error code `google.rpc.Code.FAILED_PRECONDITION`. + rpc FailoverReservation(FailoverReservationRequest) returns (Reservation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/reservations/*}:failoverReservation" + body: "*" + }; + } + // Creates a new capacity commitment resource. rpc CreateCapacityCommitment(CreateCapacityCommitmentRequest) returns (CapacityCommitment) { @@ -401,7 +413,10 @@ message Reservation { // Auto scaling settings. message Autoscale { // Output only. The slot capacity added to this reservation when autoscale - // happens. Will be between [0, max_slots]. + // happens. Will be between [0, max_slots]. Note: after users reduce + // max_slots, it may take a while before it can be propagated, so + // current_slots may stay in the original value and could be larger than + // max_slots for that brief period (less than one minute) int64 current_slots = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Number of slots to be scaled when needed. @@ -415,20 +430,26 @@ message Reservation { // maximum length is 64 characters. string name = 1; - // Minimum slots available to this reservation. A slot is a unit of + // Baseline slots available to this reservation. A slot is a unit of // computational power in BigQuery, and serves as the unit of parallelism. // // Queries using this reservation might use more slots during runtime if - // ignore_idle_slots is set to false. - // - // If total slot_capacity of the reservation and its siblings - // exceeds the total slot_count of all capacity commitments, the request will - // fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. + // ignore_idle_slots is set to false, or autoscaling is enabled. // + // If edition is EDITION_UNSPECIFIED and total slot_capacity of the + // reservation and its siblings exceeds the total slot_count of all capacity + // commitments, the request will fail with + // `google.rpc.Code.RESOURCE_EXHAUSTED`. // - // NOTE: for reservations in US or EU multi-regions, slot capacity constraints - // are checked separately for default and auxiliary regions. See - // multi_region_auxiliary flag for more details. + // If edition is any value but EDITION_UNSPECIFIED, then the above requirement + // is not needed. The total slot_capacity of the reservation and its siblings + // may exceed the total slot_count of capacity commitments. In that case, the + // exceeding slots will be charged with the autoscale SKU. You can increase + // the number of baseline slots in a reservation every few minutes. If you + // want to decrease your baseline slots, you are limited to once an hour if + // you have recently changed your baseline slot capacity and your baseline + // slots exceed your committed slots. Otherwise, you can decrease your + // baseline slots every few minutes. int64 slot_capacity = 2; // If false, any query or pipeline job using this reservation will use idle @@ -437,8 +458,7 @@ message Reservation { // capacity specified in the slot_capacity field at most. bool ignore_idle_slots = 4; - // The configuration parameters for the auto scaling feature. Note this is an - // alpha feature. + // The configuration parameters for the auto scaling feature. Autoscale autoscale = 7; // Job concurrency target which sets a soft upper bound on the number of jobs @@ -447,8 +467,8 @@ message Reservation { // queries. // Default value is 0 which means that concurrency target will be // automatically computed by the system. - // NOTE: this field is exposed as `target_job_concurrency` in the Information - // Schema, DDL and BQ CLI. + // NOTE: this field is exposed as target job concurrency in the Information + // Schema, DDL and BigQuery CLI. int64 concurrency = 16; // Output only. Creation time of the reservation. @@ -472,6 +492,38 @@ message Reservation { // Edition of the reservation. Edition edition = 17; + + // Optional. The current location of the reservation's primary replica. This + // field is only set for reservations using the managed disaster recovery + // feature. + string primary_location = 18 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The current location of the reservation's secondary replica. This + // field is only set for reservations using the managed disaster recovery + // feature. Users can set this in create reservation calls + // to create a failover reservation or in update reservation calls to convert + // a non-failover reservation to a failover reservation(or vice versa). + string secondary_location = 19 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The location where the reservation was originally created. This + // is set only during the failover reservation's creation. All billing charges + // for the failover reservation will be applied to this location. + string original_primary_location = 20 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; } // Capacity commitment is a way to purchase compute capacity for BigQuery jobs @@ -510,7 +562,7 @@ message CapacityCommitment { // ACTIVE. After that, they are converted to a new commitment based on the // `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so // that it can be deleted right after committed period ends. - TRIAL = 5; + TRIAL = 5 [deprecated = true]; // Monthly commitments have a committed period of 30 days after becoming // ACTIVE. After that, they are not in a committed period anymore and can be @@ -579,12 +631,17 @@ message CapacityCommitment { State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The start of the current commitment period. It is applicable - // only for ACTIVE capacity commitments. + // only for ACTIVE capacity commitments. Note after the commitment is renewed, + // commitment_start_time won't be changed. It refers to the start time of the + // original commitment. google.protobuf.Timestamp commitment_start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The end of the current commitment period. It is applicable - // only for ACTIVE capacity commitments. + // only for ACTIVE capacity commitments. Note after renewal, + // commitment_end_time is the time the renewed commitment expires. So it would + // be at a time after commitment_start_time + committed period, because we + // don't change commitment_start_time , google.protobuf.Timestamp commitment_end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -610,6 +667,10 @@ message CapacityCommitment { // Edition of the capacity commitment. Edition edition = 12; + + // Output only. If true, the commitment is a flat-rate commitment, otherwise, + // it's an edition commitment. + bool is_flat_rate = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request for @@ -699,6 +760,18 @@ message UpdateReservationRequest { google.protobuf.FieldMask update_mask = 2; } +// The request for ReservationService.FailoverReservation. +message FailoverReservationRequest { + // Required. Resource name of the reservation to failover. E.g., + // `projects/myproject/locations/US/reservations/team1-prod` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigqueryreservation.googleapis.com/Reservation" + } + ]; +} + // The request for // [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment]. message CreateCapacityCommitmentRequest { @@ -846,6 +919,8 @@ message Assignment { option (google.api.resource) = { type: "bigqueryreservation.googleapis.com/Assignment" pattern: "projects/{project}/locations/{location}/reservations/{reservation}/assignments/{assignment}" + plural: "assignments" + singular: "assignment" }; // Types of job, which could be specified when using the reservation. @@ -1172,6 +1247,6 @@ enum Edition { // Enterprise edition. ENTERPRISE = 2; - // Enterprise plus edition. + // Enterprise Plus edition. ENTERPRISE_PLUS = 3; } diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java new file mode 100644 index 000000000000..cfa132e103ac --- /dev/null +++ b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.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.bigquery.reservation.v1.samples; + +// [START bigqueryreservation_v1_generated_ReservationService_FailoverReservation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; +import com.google.cloud.bigquery.reservation.v1.Reservation; +import com.google.cloud.bigquery.reservation.v1.ReservationName; +import com.google.cloud.bigquery.reservation.v1.ReservationServiceClient; + +public class AsyncFailoverReservation { + + public static void main(String[] args) throws Exception { + asyncFailoverReservation(); + } + + public static void asyncFailoverReservation() 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 (ReservationServiceClient reservationServiceClient = ReservationServiceClient.create()) { + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + ApiFuture future = + reservationServiceClient.failoverReservationCallable().futureCall(request); + // Do something. + Reservation response = future.get(); + } + } +} +// [END bigqueryreservation_v1_generated_ReservationService_FailoverReservation_async] diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java new file mode 100644 index 000000000000..5b16900b3516 --- /dev/null +++ b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.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.bigquery.reservation.v1.samples; + +// [START bigqueryreservation_v1_generated_ReservationService_FailoverReservation_sync] +import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; +import com.google.cloud.bigquery.reservation.v1.Reservation; +import com.google.cloud.bigquery.reservation.v1.ReservationName; +import com.google.cloud.bigquery.reservation.v1.ReservationServiceClient; + +public class SyncFailoverReservation { + + public static void main(String[] args) throws Exception { + syncFailoverReservation(); + } + + public static void syncFailoverReservation() 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 (ReservationServiceClient reservationServiceClient = ReservationServiceClient.create()) { + FailoverReservationRequest request = + FailoverReservationRequest.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .build(); + Reservation response = reservationServiceClient.failoverReservation(request); + } + } +} +// [END bigqueryreservation_v1_generated_ReservationService_FailoverReservation_sync] diff --git a/java-billing/README.md b/java-billing/README.md index be99cac9b489..8986c3ef2860 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.53.0' +implementation 'com.google.cloud:google-cloud-billing:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java index c2a8a5e22fe1..8cfd14ec5bad 100644 --- a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java +++ b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java @@ -92,6 +92,7 @@ public void getBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -140,6 +141,7 @@ public void getBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -292,6 +294,7 @@ public void updateBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -342,6 +345,7 @@ public void updateBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -392,6 +396,7 @@ public void createBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -440,6 +445,7 @@ public void createBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); @@ -1013,6 +1019,7 @@ public void moveBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockService.addResponse(expectedResponse); diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java index 0bb906a4af0e..43080b3d19a8 100644 --- a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java +++ b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java @@ -98,6 +98,7 @@ public void getBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -140,6 +141,7 @@ public void getBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -273,6 +275,7 @@ public void updateBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -319,6 +322,7 @@ public void updateBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -365,6 +369,7 @@ public void createBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -408,6 +413,7 @@ public void createBillingAccountTest2() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); @@ -921,6 +927,7 @@ public void moveBillingAccountTest() throws Exception { .setDisplayName("displayName1714148973") .setMasterBillingAccount("masterBillingAccount1488941620") .setParent("parent-995424086") + .setCurrencyCode("currencyCode1004773790") .build(); mockCloudBilling.addResponse(expectedResponse); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java index d3b2ec9644b2..6384ca98adb1 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java @@ -45,6 +45,7 @@ private BillingAccount() { displayName_ = ""; masterBillingAccount_ = ""; parent_ = ""; + currencyCode_ = ""; } @java.lang.Override @@ -327,6 +328,73 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int CURRENCY_CODE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
      +   * Optional. The currency in which the billing account is billed and charged,
      +   * represented as an ISO 4217 code such as `USD`.
      +   *
      +   * Billing account currency is determined at the time of billing account
      +   * creation and cannot be updated subsequently, so this field should not be
      +   * set on update requests. In addition, a subaccount always matches the
      +   * currency of its parent billing account, so this field should not be set on
      +   * subaccount creation requests. Clients can read this field to determine the
      +   * currency of an existing billing account.
      +   * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + 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(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. The currency in which the billing account is billed and charged,
      +   * represented as an ISO 4217 code such as `USD`.
      +   *
      +   * Billing account currency is determined at the time of billing account
      +   * creation and cannot be updated subsequently, so this field should not be
      +   * set on update requests. In addition, a subaccount always matches the
      +   * currency of its parent billing account, so this field should not be set on
      +   * subaccount creation requests. Clients can read this field to determine the
      +   * currency of an existing billing account.
      +   * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -356,6 +424,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, currencyCode_); + } getUnknownFields().writeTo(output); } @@ -380,6 +451,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, currencyCode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -401,6 +475,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getMasterBillingAccount().equals(other.getMasterBillingAccount())) return false; if (!getParent().equals(other.getParent())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,6 +497,8 @@ public int hashCode() { hash = (53 * hash) + getMasterBillingAccount().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -568,6 +645,7 @@ public Builder clear() { displayName_ = ""; masterBillingAccount_ = ""; parent_ = ""; + currencyCode_ = ""; return this; } @@ -619,6 +697,9 @@ private void buildPartial0(com.google.cloud.billing.v1.BillingAccount result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currencyCode_ = currencyCode_; + } } @java.lang.Override @@ -689,6 +770,11 @@ public Builder mergeFrom(com.google.cloud.billing.v1.BillingAccount other) { bitField0_ |= 0x00000010; onChanged(); } + if (!other.getCurrencyCode().isEmpty()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -745,6 +831,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 50 + case 58: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1335,6 +1427,152 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
      +     * Optional. The currency in which the billing account is billed and charged,
      +     * represented as an ISO 4217 code such as `USD`.
      +     *
      +     * Billing account currency is determined at the time of billing account
      +     * creation and cannot be updated subsequently, so this field should not be
      +     * set on update requests. In addition, a subaccount always matches the
      +     * currency of its parent billing account, so this field should not be set on
      +     * subaccount creation requests. Clients can read this field to determine the
      +     * currency of an existing billing account.
      +     * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. The currency in which the billing account is billed and charged,
      +     * represented as an ISO 4217 code such as `USD`.
      +     *
      +     * Billing account currency is determined at the time of billing account
      +     * creation and cannot be updated subsequently, so this field should not be
      +     * set on update requests. In addition, a subaccount always matches the
      +     * currency of its parent billing account, so this field should not be set on
      +     * subaccount creation requests. Clients can read this field to determine the
      +     * currency of an existing billing account.
      +     * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. The currency in which the billing account is billed and charged,
      +     * represented as an ISO 4217 code such as `USD`.
      +     *
      +     * Billing account currency is determined at the time of billing account
      +     * creation and cannot be updated subsequently, so this field should not be
      +     * set on update requests. In addition, a subaccount always matches the
      +     * currency of its parent billing account, so this field should not be set on
      +     * subaccount creation requests. Clients can read this field to determine the
      +     * currency of an existing billing account.
      +     * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The currency in which the billing account is billed and charged,
      +     * represented as an ISO 4217 code such as `USD`.
      +     *
      +     * Billing account currency is determined at the time of billing account
      +     * creation and cannot be updated subsequently, so this field should not be
      +     * set on update requests. In addition, a subaccount always matches the
      +     * currency of its parent billing account, so this field should not be set on
      +     * subaccount creation requests. Clients can read this field to determine the
      +     * currency of an existing billing account.
      +     * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The currency in which the billing account is billed and charged,
      +     * represented as an ISO 4217 code such as `USD`.
      +     *
      +     * Billing account currency is determined at the time of billing account
      +     * creation and cannot be updated subsequently, so this field should not be
      +     * set on update requests. In addition, a subaccount always matches the
      +     * currency of its parent billing account, so this field should not be set on
      +     * subaccount creation requests. Clients can read this field to determine the
      +     * currency of an existing billing account.
      +     * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java index cdc4487e7771..e61727ddd9d0 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java @@ -173,4 +173,45 @@ public interface BillingAccountOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The currency in which the billing account is billed and charged,
      +   * represented as an ISO 4217 code such as `USD`.
      +   *
      +   * Billing account currency is determined at the time of billing account
      +   * creation and cannot be updated subsequently, so this field should not be
      +   * set on update requests. In addition, a subaccount always matches the
      +   * currency of its parent billing account, so this field should not be set on
      +   * subaccount creation requests. Clients can read this field to determine the
      +   * currency of an existing billing account.
      +   * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
      +   * Optional. The currency in which the billing account is billed and charged,
      +   * represented as an ISO 4217 code such as `USD`.
      +   *
      +   * Billing account currency is determined at the time of billing account
      +   * creation and cannot be updated subsequently, so this field should not be
      +   * set on update requests. In addition, a subaccount always matches the
      +   * currency of its parent billing account, so this field should not be set on
      +   * subaccount creation requests. Clients can read this field to determine the
      +   * currency of an existing billing account.
      +   * 
      + * + * string currency_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java index 9168a2025098..0914107e30a3 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java @@ -92,123 +92,123 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/resource.proto\032\036google/iam/v1" + "/iam_policy.proto\032\032google/iam/v1/policy." + "proto\032 google/protobuf/field_mask.proto\"" - + "\347\002\n\016BillingAccount\022@\n\004name\030\001 \001(\tB2\340A\003\372A," + + "\203\003\n\016BillingAccount\022@\n\004name\030\001 \001(\tB2\340A\003\372A," + "\n*cloudbilling.googleapis.com/BillingAcc" + "ount\022\021\n\004open\030\002 \001(\010B\003\340A\003\022\024\n\014display_name\030" + "\003 \001(\t\022\036\n\026master_billing_account\030\004 \001(\t\022\023\n" - + "\006parent\030\006 \001(\tB\003\340A\003:\264\001\352A\260\001\n*cloudbilling." - + "googleapis.com/BillingAccount\022!billingAc" - + "counts/{billing_account}\022>organizations/" - + "{organization}/billingAccounts/{billing_" - + "account}*\017billingAccounts2\016billingAccoun" - + "t\"\321\001\n\022ProjectBillingInfo\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\027\n\nproject_id\030\002 \001(\tB\003\340A\003\022\034\n\024billing_" - + "account_name\030\003 \001(\t\022\034\n\017billing_enabled\030\004 " - + "\001(\010B\003\340A\003:S\352AP\n.cloudbilling.googleapis.c" - + "om/ProjectBillingInfo\022\036projects/{project" - + "}/billingInfo\"\\\n\030GetBillingAccountReques" - + "t\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*cloudbilling.go" - + "ogleapis.com/BillingAccount\"h\n\032ListBilli" - + "ngAccountsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022\023\n\006pare" - + "nt\030\004 \001(\tB\003\340A\001\"y\n\033ListBillingAccountsResp" - + "onse\022A\n\020billing_accounts\030\001 \003(\0132\'.google." - + "cloud.billing.v1.BillingAccount\022\027\n\017next_" - + "page_token\030\002 \001(\t\"y\n\033CreateBillingAccount" - + "Request\022E\n\017billing_account\030\001 \001(\0132\'.googl" - + "e.cloud.billing.v1.BillingAccountB\003\340A\002\022\023" - + "\n\006parent\030\002 \001(\tB\003\340A\001\"\317\001\n\033UpdateBillingAcc" - + "ountRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*cloud" - + "billing.googleapis.com/BillingAccount\022=\n" - + "\007account\030\002 \001(\0132\'.google.cloud.billing.v1" - + ".BillingAccountB\003\340A\002\022/\n\013update_mask\030\003 \001(" - + "\0132\032.google.protobuf.FieldMask\"\210\001\n\035ListPr" - + "ojectBillingInfoRequest\022@\n\004name\030\001 \001(\tB2\340" - + "A\002\372A,\n*cloudbilling.googleapis.com/Billi" - + "ngAccount\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"\204\001\n\036ListProjectBillingInfoRespo" - + "nse\022I\n\024project_billing_info\030\001 \003(\0132+.goog" - + "le.cloud.billing.v1.ProjectBillingInfo\022\027" - + "\n\017next_page_token\030\002 \001(\t\"a\n\034GetProjectBil" - + "lingInfoRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\"\177\n\037UpdateProjectBillingInfoRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022I\n\024project_billing_info" - + "\030\002 \001(\0132+.google.cloud.billing.v1.Project" - + "BillingInfo\"\263\001\n\031MoveBillingAccountReques" - + "t\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*cloudbilling.go" - + "ogleapis.com/BillingAccount\022T\n\022destinati" - + "on_parent\030\002 \001(\tB8\340A\002\372A2\n0cloudresourcema" - + "nager.googleapis.com/Organization2\241\023\n\014Cl" - + "oudBilling\022\234\001\n\021GetBillingAccount\0221.googl" - + "e.cloud.billing.v1.GetBillingAccountRequ" - + "est\032\'.google.cloud.billing.v1.BillingAcc" - + "ount\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{name=billingAc" - + "counts/*}\022\210\002\n\023ListBillingAccounts\0223.goog" - + "le.cloud.billing.v1.ListBillingAccountsR" - + "equest\0324.google.cloud.billing.v1.ListBil" - + "lingAccountsResponse\"\205\001\332A\000\332A\006parent\202\323\344\223\002" - + "s\022\023/v1/billingAccountsZ.\022,/v1/{parent=or" - + "ganizations/*}/billingAccountsZ,\022*/v1/{p" - + "arent=billingAccounts/*}/subAccounts\022\263\001\n" - + "\024UpdateBillingAccount\0224.google.cloud.bil" - + "ling.v1.UpdateBillingAccountRequest\032\'.go" - + "ogle.cloud.billing.v1.BillingAccount\"<\332A" - + "\014name,account\202\323\344\223\002\'2\034/v1/{name=billingAc" - + "counts/*}:\007account\022\320\002\n\024CreateBillingAcco" - + "unt\0224.google.cloud.billing.v1.CreateBill" - + "ingAccountRequest\032\'.google.cloud.billing" - + ".v1.BillingAccount\"\330\001\332A\017billing_account\332" - + "A\026billing_account,parent\202\323\344\223\002\246\001\"\023/v1/bil" - + "lingAccounts:\017billing_accountZ?\",/v1/{pa" - + "rent=organizations/*}/billingAccounts:\017b" - + "illing_accountZ=\"*/v1/{parent=billingAcc" - + "ounts/*}/subAccounts:\017billing_account\022\277\001" - + "\n\026ListProjectBillingInfo\0226.google.cloud." - + "billing.v1.ListProjectBillingInfoRequest" - + "\0327.google.cloud.billing.v1.ListProjectBi" - + "llingInfoResponse\"4\332A\004name\202\323\344\223\002\'\022%/v1/{n" - + "ame=billingAccounts/*}/projects\022\255\001\n\025GetP" - + "rojectBillingInfo\0225.google.cloud.billing" - + ".v1.GetProjectBillingInfoRequest\032+.googl" - + "e.cloud.billing.v1.ProjectBillingInfo\"0\332" - + "A\004name\202\323\344\223\002#\022!/v1/{name=projects/*}/bill" - + "ingInfo\022\336\001\n\030UpdateProjectBillingInfo\0228.g" - + "oogle.cloud.billing.v1.UpdateProjectBill" - + "ingInfoRequest\032+.google.cloud.billing.v1" - + ".ProjectBillingInfo\"[\332A\031name,project_bil" - + "ling_info\202\323\344\223\0029\032!/v1/{name=projects/*}/b" - + "illingInfo:\024project_billing_info\022\213\001\n\014Get" - + "IamPolicy\022\".google.iam.v1.GetIamPolicyRe" - + "quest\032\025.google.iam.v1.Policy\"@\332A\010resourc" - + "e\202\323\344\223\002/\022-/v1/{resource=billingAccounts/*" - + "}:getIamPolicy\022\225\001\n\014SetIamPolicy\022\".google" - + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\"J\332A\017resource,policy\202\323\344\223\0022\"-/v" - + "1/{resource=billingAccounts/*}:setIamPol" - + "icy:\001*\022\300\001\n\022TestIamPermissions\022(.google.i" - + "am.v1.TestIamPermissionsRequest\032).google" - + ".iam.v1.TestIamPermissionsResponse\"U\332A\024r" - + "esource,permissions\202\323\344\223\0028\"3/v1/{resource" - + "=billingAccounts/*}:testIamPermissions:\001" - + "*\022\351\001\n\022MoveBillingAccount\0222.google.cloud." - + "billing.v1.MoveBillingAccountRequest\032\'.g" - + "oogle.cloud.billing.v1.BillingAccount\"v\202" - + "\323\344\223\002p\"!/v1/{name=billingAccounts/*}:move" - + ":\001*ZH\022F/v1/{destination_parent=organizat" - + "ions/*}/{name=billingAccounts/*}:move\032\265\001" - + "\312A\033cloudbilling.googleapis.com\322A\223\001https:" - + "//www.googleapis.com/auth/cloud-billing," - + "https://www.googleapis.com/auth/cloud-bi" - + "lling.readonly,https://www.googleapis.co" - + "m/auth/cloud-platformB\200\002\n\033com.google.clo" - + "ud.billing.v1B\021CloudBillingProtoP\001Z5clou" - + "d.google.com/go/billing/apiv1/billingpb;" - + "billingpb\352AA\n+cloudresourcemanager.googl" - + "eapis.com/Project\022\022projects/{project}\352AP" - + "\n0cloudresourcemanager.googleapis.com/Or" - + "ganization\022\034organizations/{organization}" - + "b\006proto3" + + "\006parent\030\006 \001(\tB\003\340A\003\022\032\n\rcurrency_code\030\007 \001(" + + "\tB\003\340A\001:\264\001\352A\260\001\n*cloudbilling.googleapis.c" + + "om/BillingAccount\022!billingAccounts/{bill" + + "ing_account}\022>organizations/{organizatio" + + "n}/billingAccounts/{billing_account}*\017bi" + + "llingAccounts2\016billingAccount\"\321\001\n\022Projec" + + "tBillingInfo\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nproje" + + "ct_id\030\002 \001(\tB\003\340A\003\022\034\n\024billing_account_name" + + "\030\003 \001(\t\022\034\n\017billing_enabled\030\004 \001(\010B\003\340A\003:S\352A" + + "P\n.cloudbilling.googleapis.com/ProjectBi" + + "llingInfo\022\036projects/{project}/billingInf" + + "o\"\\\n\030GetBillingAccountRequest\022@\n\004name\030\001 " + + "\001(\tB2\340A\002\372A,\n*cloudbilling.googleapis.com" + + "/BillingAccount\"h\n\032ListBillingAccountsRe" + + "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + + " \001(\t\022\016\n\006filter\030\003 \001(\t\022\023\n\006parent\030\004 \001(\tB\003\340A" + + "\001\"y\n\033ListBillingAccountsResponse\022A\n\020bill" + + "ing_accounts\030\001 \003(\0132\'.google.cloud.billin" + + "g.v1.BillingAccount\022\027\n\017next_page_token\030\002" + + " \001(\t\"y\n\033CreateBillingAccountRequest\022E\n\017b" + + "illing_account\030\001 \001(\0132\'.google.cloud.bill" + + "ing.v1.BillingAccountB\003\340A\002\022\023\n\006parent\030\002 \001" + + "(\tB\003\340A\001\"\317\001\n\033UpdateBillingAccountRequest\022" + + "@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*cloudbilling.goog" + + "leapis.com/BillingAccount\022=\n\007account\030\002 \001" + + "(\0132\'.google.cloud.billing.v1.BillingAcco" + + "untB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"\210\001\n\035ListProjectBilling" + + "InfoRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*cloud" + + "billing.googleapis.com/BillingAccount\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n" + + "\036ListProjectBillingInfoResponse\022I\n\024proje" + + "ct_billing_info\030\001 \003(\0132+.google.cloud.bil" + + "ling.v1.ProjectBillingInfo\022\027\n\017next_page_" + + "token\030\002 \001(\t\"a\n\034GetProjectBillingInfoRequ" + + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudresource" + + "manager.googleapis.com/Project\"\177\n\037Update" + + "ProjectBillingInfoRequest\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\022I\n\024project_billing_info\030\002 \001(\0132+.goo" + + "gle.cloud.billing.v1.ProjectBillingInfo\"" + + "\263\001\n\031MoveBillingAccountRequest\022@\n\004name\030\001 " + + "\001(\tB2\340A\002\372A,\n*cloudbilling.googleapis.com" + + "/BillingAccount\022T\n\022destination_parent\030\002 " + + "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" + + "apis.com/Organization2\241\023\n\014CloudBilling\022\234" + + "\001\n\021GetBillingAccount\0221.google.cloud.bill" + + "ing.v1.GetBillingAccountRequest\032\'.google" + + ".cloud.billing.v1.BillingAccount\"+\332A\004nam" + + "e\202\323\344\223\002\036\022\034/v1/{name=billingAccounts/*}\022\210\002" + + "\n\023ListBillingAccounts\0223.google.cloud.bil" + + "ling.v1.ListBillingAccountsRequest\0324.goo" + + "gle.cloud.billing.v1.ListBillingAccounts" + + "Response\"\205\001\332A\000\332A\006parent\202\323\344\223\002s\022\023/v1/billi" + + "ngAccountsZ.\022,/v1/{parent=organizations/" + + "*}/billingAccountsZ,\022*/v1/{parent=billin" + + "gAccounts/*}/subAccounts\022\263\001\n\024UpdateBilli" + + "ngAccount\0224.google.cloud.billing.v1.Upda" + + "teBillingAccountRequest\032\'.google.cloud.b" + + "illing.v1.BillingAccount\"<\332A\014name,accoun" + + "t\202\323\344\223\002\'2\034/v1/{name=billingAccounts/*}:\007a" + + "ccount\022\320\002\n\024CreateBillingAccount\0224.google" + + ".cloud.billing.v1.CreateBillingAccountRe" + + "quest\032\'.google.cloud.billing.v1.BillingA" + + "ccount\"\330\001\332A\017billing_account\332A\026billing_ac" + + "count,parent\202\323\344\223\002\246\001\"\023/v1/billingAccounts" + + ":\017billing_accountZ?\",/v1/{parent=organiz" + + "ations/*}/billingAccounts:\017billing_accou" + + "ntZ=\"*/v1/{parent=billingAccounts/*}/sub" + + "Accounts:\017billing_account\022\277\001\n\026ListProjec" + + "tBillingInfo\0226.google.cloud.billing.v1.L" + + "istProjectBillingInfoRequest\0327.google.cl" + + "oud.billing.v1.ListProjectBillingInfoRes" + + "ponse\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=billingA" + + "ccounts/*}/projects\022\255\001\n\025GetProjectBillin" + + "gInfo\0225.google.cloud.billing.v1.GetProje" + + "ctBillingInfoRequest\032+.google.cloud.bill" + + "ing.v1.ProjectBillingInfo\"0\332A\004name\202\323\344\223\002#" + + "\022!/v1/{name=projects/*}/billingInfo\022\336\001\n\030" + + "UpdateProjectBillingInfo\0228.google.cloud." + + "billing.v1.UpdateProjectBillingInfoReque" + + "st\032+.google.cloud.billing.v1.ProjectBill" + + "ingInfo\"[\332A\031name,project_billing_info\202\323\344" + + "\223\0029\032!/v1/{name=projects/*}/billingInfo:\024" + + "project_billing_info\022\213\001\n\014GetIamPolicy\022\"." + + "google.iam.v1.GetIamPolicyRequest\032\025.goog" + + "le.iam.v1.Policy\"@\332A\010resource\202\323\344\223\002/\022-/v1" + + "/{resource=billingAccounts/*}:getIamPoli" + + "cy\022\225\001\n\014SetIamPolicy\022\".google.iam.v1.SetI" + + "amPolicyRequest\032\025.google.iam.v1.Policy\"J" + + "\332A\017resource,policy\202\323\344\223\0022\"-/v1/{resource=" + + "billingAccounts/*}:setIamPolicy:\001*\022\300\001\n\022T" + + "estIamPermissions\022(.google.iam.v1.TestIa" + + "mPermissionsRequest\032).google.iam.v1.Test" + + "IamPermissionsResponse\"U\332A\024resource,perm" + + "issions\202\323\344\223\0028\"3/v1/{resource=billingAcco" + + "unts/*}:testIamPermissions:\001*\022\351\001\n\022MoveBi" + + "llingAccount\0222.google.cloud.billing.v1.M" + + "oveBillingAccountRequest\032\'.google.cloud." + + "billing.v1.BillingAccount\"v\202\323\344\223\002p\"!/v1/{" + + "name=billingAccounts/*}:move:\001*ZH\022F/v1/{" + + "destination_parent=organizations/*}/{nam" + + "e=billingAccounts/*}:move\032\265\001\312A\033cloudbill" + + "ing.googleapis.com\322A\223\001https://www.google" + + "apis.com/auth/cloud-billing,https://www." + + "googleapis.com/auth/cloud-billing.readon" + + "ly,https://www.googleapis.com/auth/cloud" + + "-platformB\200\002\n\033com.google.cloud.billing.v" + + "1B\021CloudBillingProtoP\001Z5cloud.google.com" + + "/go/billing/apiv1/billingpb;billingpb\352AA" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\022projects/{project}\352AP\n0cloudresou" + + "rcemanager.googleapis.com/Organization\022\034" + + "organizations/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -228,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_billing_v1_BillingAccount_descriptor, new java.lang.String[] { - "Name", "Open", "DisplayName", "MasterBillingAccount", "Parent", + "Name", "Open", "DisplayName", "MasterBillingAccount", "Parent", "CurrencyCode", }); internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto index 4c740311648b..8d05a1626407 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto +++ b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto @@ -285,6 +285,17 @@ message BillingAccount { // - `billingAccounts/{billing_account_id}`, for example, // `billingAccounts/012345-567890-ABCDEF` string parent = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The currency in which the billing account is billed and charged, + // represented as an ISO 4217 code such as `USD`. + // + // Billing account currency is determined at the time of billing account + // creation and cannot be updated subsequently, so this field should not be + // set on update requests. In addition, a subaccount always matches the + // currency of its parent billing account, so this field should not be set on + // subaccount creation requests. Clients can read this field to determine the + // currency of an existing billing account. + string currency_code = 7 [(google.api.field_behavior) = OPTIONAL]; } // Encapsulation of billing information for a Google Cloud Console project. A diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 48fb3ed40c40..8efb9e918d94 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.53.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 3c16d1d28366..6333be377673 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.52.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index b44b006606b4..568241dfdd15 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.56.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.57.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/README.md b/java-channel/README.md index 0171b8caa53b..d09530e4e93a 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.57.0 + 3.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.57.0' +implementation 'com.google.cloud:google-cloud-channel:3.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.58.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/README.md b/java-chat/README.md index d2d846f04ded..95a396438973 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.17.0' +implementation 'com.google.cloud:google-cloud-chat:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index e01dff895a6d..b24e4e970ca8 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -69,12 +69,13 @@ * *

      CreateMessage *

      Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). - *

      The `create()` method requires either user or app authentication. Chat attributes the message sender differently depending on the type of authentication that you use in your request. + *

      The `create()` method requires either [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat attributes the message sender differently depending on the type of authentication that you use in your request. *

      The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). *

      ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) *

      The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). *

      ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) - *

      The maximum message size, including the message contents, is 32,000 bytes. + *

      The maximum message size, including the message contents, is 32,000 bytes. + *

      For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, the response doesn't contain the full message. The response only populates the `name` and `thread.name` fields in addition to the information that was in the request. * *

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

      *
        @@ -93,7 +94,8 @@ * * *

        ListMessages - *

        Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an example, see [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

        Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an example, see [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + *

        Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

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

        *
          @@ -114,7 +116,9 @@ * *

          ListMemberships *

          Lists memberships in a space. For an example, see [List users and Google Chat apps in a space](https://developers.google.com/workspace/chat/list-members). Listing memberships with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) lists memberships in spaces that the authenticated user has access to. - *

          Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

          Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

          - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

          - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

          *
            @@ -135,7 +139,9 @@ * *

            GetMembership *

            Returns details about a membership. For an example, see [Get details about a user's or Google Chat app's membership](https://developers.google.com/workspace/chat/get-members). - *

            Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

            Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

            - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

            - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

            *
              @@ -155,7 +161,9 @@ * *

              GetMessage *

              Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). - *

              Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

              Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

              - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

              - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) *

              Note: Might return a message from a blocked member or space. * *

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

              @@ -176,7 +184,10 @@ * *

              UpdateMessage *

              Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/update-messages). - *

              Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). When using app authentication, requests can only update messages created by the calling Chat app. + *

              Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

              - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

              - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + *

              When using app authentication, requests can only update messages created by the calling Chat app. * *

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

              *
                @@ -195,7 +206,10 @@ * *

                DeleteMessage *

                Deletes a message. For an example, see [Delete a message](https://developers.google.com/workspace/chat/delete-messages). - *

                Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). When using app authentication, requests can only delete messages created by the calling Chat app. + *

                Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

                - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + *

                When using app authentication, requests can only delete messages created by the calling Chat app. * *

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

                *
                  @@ -233,7 +247,8 @@ * * *

                  UploadAttachment - *

                  Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires user [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                  Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/workspace/chat/upload-media-attachments). + *

                  Requires user [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *

                  You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). * *

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

                  @@ -249,8 +264,9 @@ * *

                  ListSpaces *

                  Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). - *

                  Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - *

                  Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. + *

                  Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                  - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

                  - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) *

                  To list all named spaces by Google Workspace organization, use the [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace administrator privileges instead. * *

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

                  @@ -270,7 +286,8 @@ * * *

                  SearchSpaces - *

                  Returns a list of spaces in a Google Workspace organization based on an administrator's search. Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). In the request, set `use_admin_access` to `true`. + *

                  Returns a list of spaces in a Google Workspace organization based on an administrator's search. + *

                  Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). In the request, set `use_admin_access` to `true`. * *

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

                  *
                    @@ -290,7 +307,9 @@ * *

                    GetSpace *

                    Returns details about a space. For an example, see [Get details about a space](https://developers.google.com/workspace/chat/get-spaces). - *

                    Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                    Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                    - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

                    - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

                    *
                      @@ -309,10 +328,12 @@ * * *

                      CreateSpace - *

                      Creates a space with no members. Can be used to create a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). + *

                      Creates a space with no members. Can be used to create a named space, or a group chat in `Import mode`. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). *

                      If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. - *

                      If you're a member of the [Developer Preview program](https://developers.google.com/workspace/preview), you can create a group chat in import mode using `spaceType.GROUP_CHAT`. - *

                      Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                      Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                      - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                      - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + *

                      When authenticating as an app, the `space.customer` field must be set in the request. * *

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

                      *
                        @@ -354,7 +375,9 @@ *

                        UpdateSpace *

                        Updates a space. For an example, see [Update a space](https://developers.google.com/workspace/chat/update-spaces). *

                        If you're updating the `displayName` field and receive the error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. - *

                        Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                        Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                        - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                        - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

                        *
                          @@ -372,7 +395,10 @@ * * *

                          DeleteSpace - *

                          Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) from a user who has permission to delete the space. + *

                          Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). + *

                          Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                          - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                          - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

                          *
                            @@ -391,7 +417,8 @@ * * *

                            CompleteImportSpace - *

                            Completes the [import process](https://developers.google.com/workspace/chat/import-data) for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/workspace/chat/authorize-import). + *

                            Completes the [import process](https://developers.google.com/workspace/chat/import-data) for the specified space and makes it visible to users. + *

                            Requires [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and domain-wide delegation. For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/workspace/chat/authorize-import). * *

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

                            *
                              @@ -406,9 +433,11 @@ * *

                              FindDirectMessage *

                              Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - *

                              With [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), returns the direct message space between the specified user and the authenticated user. *

                              With [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), returns the direct message space between the specified user and the calling Chat app. - *

                              Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + *

                              With [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), returns the direct message space between the specified user and the authenticated user. + *

                              // Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                              - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + *

                              - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

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

                              *
                                @@ -422,7 +451,10 @@ * * *

                                CreateMembership - *

                                Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. + *

                                Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                                - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                                - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. *

                                For example usage, see: *

                                - [Invite or add a user to a space](https://developers.google.com/workspace/chat/create-members#create-user-membership). *

                                - [Invite or add a Google Group to a space](https://developers.google.com/workspace/chat/create-members#create-group-membership). @@ -446,7 +478,9 @@ * *

                                UpdateMembership *

                                Updates a membership. For an example, see [Update a user's membership in a space](https://developers.google.com/workspace/chat/update-members). - *

                                Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                                - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                                - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

                                *
                                  @@ -465,7 +499,9 @@ * *

                                  DeleteMembership *

                                  Deletes a membership. For an example, see [Remove a user or a Google Chat app from a space](https://developers.google.com/workspace/chat/delete-members). - *

                                  Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                  Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + *

                                  - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://developers.google.com/workspace/preview) + *

                                  - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can authenticate and authorize this method with administrator privileges by setting the `use_admin_access` field in the request. * *

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

                                  *
                                    @@ -484,7 +520,8 @@ * * *

                                    CreateReaction - *

                                    Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                    Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). + *

                                    Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

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

                                    *
                                      @@ -503,7 +540,8 @@ * * *

                                      ListReactions - *

                                      Lists reactions to a message. For an example, see [List reactions for a message](https://developers.google.com/workspace/chat/list-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                      Lists reactions to a message. For an example, see [List reactions for a message](https://developers.google.com/workspace/chat/list-reactions). + *

                                      Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

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

                                      *
                                        @@ -523,7 +561,8 @@ * * *

                                        DeleteReaction - *

                                        Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                        Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). + *

                                        Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

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

                                        *
                                          @@ -751,9 +790,11 @@ public ChatServiceStub getStub() { * Creates a message in a Google Chat space. For an example, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). * - *

                                          The `create()` method requires either user or app authentication. Chat attributes the - * message sender differently depending on the type of authentication that you use in your - * request. + *

                                          The `create()` method requires either [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat + * attributes the message sender differently depending on the type of authentication that you use + * in your request. * *

                                          The following image shows how Chat attributes a message when you use app authentication. * Chat displays the Chat app as the message sender. The content of the message can contain text @@ -771,6 +812,10 @@ public ChatServiceStub getStub() { * *

                                          The maximum message size, including the message contents, is 32,000 bytes. * + *

                                          For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, + * the response doesn't contain the full message. The response only populates the `name` and + * `thread.name` fields in addition to the information that was in the request. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -820,9 +865,11 @@ public final Message createMessage(SpaceName parent, Message message, String mes
                                              * Creates a message in a Google Chat space. For an example, see [Send a
                                              * message](https://developers.google.com/workspace/chat/create-messages).
                                              *
                                          -   * 

                                          The `create()` method requires either user or app authentication. Chat attributes the - * message sender differently depending on the type of authentication that you use in your - * request. + *

                                          The `create()` method requires either [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat + * attributes the message sender differently depending on the type of authentication that you use + * in your request. * *

                                          The following image shows how Chat attributes a message when you use app authentication. * Chat displays the Chat app as the message sender. The content of the message can contain text @@ -840,6 +887,10 @@ public final Message createMessage(SpaceName parent, Message message, String mes * *

                                          The maximum message size, including the message contents, is 32,000 bytes. * + *

                                          For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, + * the response doesn't contain the full message. The response only populates the `name` and + * `thread.name` fields in addition to the information that was in the request. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -889,9 +940,11 @@ public final Message createMessage(String parent, Message message, String messag
                                              * Creates a message in a Google Chat space. For an example, see [Send a
                                              * message](https://developers.google.com/workspace/chat/create-messages).
                                              *
                                          -   * 

                                          The `create()` method requires either user or app authentication. Chat attributes the - * message sender differently depending on the type of authentication that you use in your - * request. + *

                                          The `create()` method requires either [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat + * attributes the message sender differently depending on the type of authentication that you use + * in your request. * *

                                          The following image shows how Chat attributes a message when you use app authentication. * Chat displays the Chat app as the message sender. The content of the message can contain text @@ -909,6 +962,10 @@ public final Message createMessage(String parent, Message message, String messag * *

                                          The maximum message size, including the message contents, is 32,000 bytes. * + *

                                          For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, + * the response doesn't contain the full message. The response only populates the `name` and + * `thread.name` fields in addition to the information that was in the request. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -942,9 +999,11 @@ public final Message createMessage(CreateMessageRequest request) {
                                              * Creates a message in a Google Chat space. For an example, see [Send a
                                              * message](https://developers.google.com/workspace/chat/create-messages).
                                              *
                                          -   * 

                                          The `create()` method requires either user or app authentication. Chat attributes the - * message sender differently depending on the type of authentication that you use in your - * request. + *

                                          The `create()` method requires either [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat + * attributes the message sender differently depending on the type of authentication that you use + * in your request. * *

                                          The following image shows how Chat attributes a message when you use app authentication. * Chat displays the Chat app as the message sender. The content of the message can contain text @@ -962,6 +1021,10 @@ public final Message createMessage(CreateMessageRequest request) { * *

                                          The maximum message size, including the message contents, is 32,000 bytes. * + *

                                          For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, + * the response doesn't contain the full message. The response only populates the `name` and + * `thread.name` fields in addition to the information that was in the request. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -995,8 +1058,9 @@ public final UnaryCallable createMessageCallable(
                                              * members and spaces. If you list messages from a space with no messages, the response is an
                                              * empty object. When using a REST/HTTP interface, the response contains an empty JSON object,
                                              * `{}`. For an example, see [List
                                          -   * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires
                                          -   * [user
                                          +   * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
                                          +   *
                                          +   * 

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -1033,8 +1097,9 @@ public final ListMessagesPagedResponse listMessages(SpaceName parent) { * members and spaces. If you list messages from a space with no messages, the response is an * empty object. When using a REST/HTTP interface, the response contains an empty JSON object, * `{}`. For an example, see [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires - * [user + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -1068,8 +1133,9 @@ public final ListMessagesPagedResponse listMessages(String parent) { * members and spaces. If you list messages from a space with no messages, the response is an * empty object. When using a REST/HTTP interface, the response contains an empty JSON object, * `{}`. For an example, see [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires - * [user + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -1109,8 +1175,9 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * members and spaces. If you list messages from a space with no messages, the response is an * empty object. When using a REST/HTTP interface, the response contains an empty JSON object, * `{}`. For an example, see [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires - * [user + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -1150,8 +1217,9 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * members and spaces. If you list messages from a space with no messages, the response is an * empty object. When using a REST/HTTP interface, the response contains an empty JSON object, * `{}`. For an example, see [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Requires - * [user + * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -1202,12 +1270,16 @@ public final UnaryCallable listMessag * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1248,12 +1320,16 @@ public final ListMembershipsPagedResponse listMemberships(SpaceName parent) { * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1291,12 +1367,16 @@ public final ListMembershipsPagedResponse listMemberships(String parent) { * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1341,12 +1421,16 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1392,12 +1476,16 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1444,12 +1532,16 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * Returns details about a membership. For an example, see [Get details about a user's or Google * Chat app's membership](https://developers.google.com/workspace/chat/get-members). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1470,9 +1562,7 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), * you can optionally use `spaces/{space}/members/app`. *

                                          Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - *

                                          When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), you - * can use the user's email as an alias for `{member}`. For example, + *

                                          You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example{@literal @}gmail.com` where `example{@literal @}gmail.com` * is the email of the Google Chat user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1488,12 +1578,16 @@ public final Membership getMembership(MembershipName name) { * Returns details about a membership. For an example, see [Get details about a user's or Google * Chat app's membership](https://developers.google.com/workspace/chat/get-members). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1514,9 +1608,7 @@ public final Membership getMembership(MembershipName name) { * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), * you can optionally use `spaces/{space}/members/app`. *

                                          Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - *

                                          When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), you - * can use the user's email as an alias for `{member}`. For example, + *

                                          You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example{@literal @}gmail.com` where `example{@literal @}gmail.com` * is the email of the Google Chat user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1531,12 +1623,16 @@ public final Membership getMembership(String name) { * Returns details about a membership. For an example, see [Get details about a user's or Google * Chat app's membership](https://developers.google.com/workspace/chat/get-members). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1568,12 +1664,16 @@ public final Membership getMembership(GetMembershipRequest request) { * Returns details about a membership. For an example, see [Get details about a user's or Google * Chat app's membership](https://developers.google.com/workspace/chat/get-members). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -1604,12 +1704,14 @@ public final UnaryCallable getMembershipCallab * Returns details about a message. For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          Note: Might return a message from a blocked member or space. * @@ -1645,12 +1747,14 @@ public final Message getMessage(MessageName name) { * Returns details about a message. For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          Note: Might return a message from a blocked member or space. * @@ -1685,12 +1789,14 @@ public final Message getMessage(String name) { * Returns details about a message. For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          Note: Might return a message from a blocked member or space. * @@ -1723,12 +1829,14 @@ public final Message getMessage(GetMessageRequest request) { * Returns details about a message. For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          Note: Might return a message from a blocked member or space. * @@ -1762,13 +1870,16 @@ public final UnaryCallable getMessageCallable() { * using the `patch` method. For an example, see [Update a * message](https://developers.google.com/workspace/chat/update-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only update messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only update messages created by the calling Chat * app. * *

                                          Sample code: @@ -1811,13 +1922,16 @@ public final Message updateMessage(Message message, FieldMask updateMask) { * using the `patch` method. For an example, see [Update a * message](https://developers.google.com/workspace/chat/update-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only update messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only update messages created by the calling Chat * app. * *

                                          Sample code: @@ -1853,13 +1967,16 @@ public final Message updateMessage(UpdateMessageRequest request) { * using the `patch` method. For an example, see [Update a * message](https://developers.google.com/workspace/chat/update-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only update messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only update messages created by the calling Chat * app. * *

                                          Sample code: @@ -1892,13 +2009,16 @@ public final UnaryCallable updateMessageCallable( * Deletes a message. For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only delete messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only delete messages created by the calling Chat * app. * *

                                          Sample code: @@ -1933,13 +2053,16 @@ public final void deleteMessage(MessageName name) { * Deletes a message. For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only delete messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only delete messages created by the calling Chat * app. * *

                                          Sample code: @@ -1973,13 +2096,16 @@ public final void deleteMessage(String name) { * Deletes a message. For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only delete messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only delete messages created by the calling Chat * app. * *

                                          Sample code: @@ -2012,13 +2138,16 @@ public final void deleteMessage(DeleteMessageRequest request) { * Deletes a message. For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only delete messages created by the calling Chat + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When using app authentication, requests can only delete messages created by the calling Chat * app. * *

                                          Sample code: @@ -2174,8 +2303,9 @@ public final UnaryCallable getAttachmentCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Uploads an attachment. For an example, see [Upload media as a file - * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires - * user + * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). + * + *

                                          Requires user * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          You can upload attachments up to 200 MB. Certain file types aren't supported. For details, @@ -2210,8 +2340,9 @@ public final UploadAttachmentResponse uploadAttachment(UploadAttachmentRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Uploads an attachment. For an example, see [Upload media as a file - * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires - * user + * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). + * + *

                                          Requires user * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          You can upload attachments up to 200 MB. Certain file types aren't supported. For details, @@ -2250,15 +2381,14 @@ public final UploadAttachmentResponse uploadAttachment(UploadAttachmentRequest r * message is sent. For an example, see [List * spaces](https://developers.google.com/workspace/chat/list-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * - *

                                          Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed - * until the first message is sent. + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) @@ -2293,15 +2423,14 @@ public final ListSpacesPagedResponse listSpaces() { * message is sent. For an example, see [List * spaces](https://developers.google.com/workspace/chat/list-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * - *

                                          Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed - * until the first message is sent. + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) @@ -2341,15 +2470,14 @@ public final ListSpacesPagedResponse listSpaces(ListSpacesRequest request) { * message is sent. For an example, see [List * spaces](https://developers.google.com/workspace/chat/list-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * - *

                                          Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed - * until the first message is sent. + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) @@ -2388,15 +2516,14 @@ public final UnaryCallable listSpace * message is sent. For an example, see [List * spaces](https://developers.google.com/workspace/chat/list-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * - *

                                          Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed - * until the first message is sent. + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * *

                                          To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) @@ -2439,7 +2566,8 @@ public final UnaryCallable listSpacesCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of spaces in a Google Workspace organization based on an administrator's search. - * Requires [user authentication with administrator + * + *

                                          Requires [user authentication with administrator * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). * In the request, set `use_admin_access` to `true`. * @@ -2469,7 +2597,8 @@ public final SearchSpacesPagedResponse searchSpaces() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of spaces in a Google Workspace organization based on an administrator's search. - * Requires [user authentication with administrator + * + *

                                          Requires [user authentication with administrator * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). * In the request, set `use_admin_access` to `true`. * @@ -2506,7 +2635,8 @@ public final SearchSpacesPagedResponse searchSpaces(SearchSpacesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of spaces in a Google Workspace organization based on an administrator's search. - * Requires [user authentication with administrator + * + *

                                          Requires [user authentication with administrator * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). * In the request, set `use_admin_access` to `true`. * @@ -2543,7 +2673,8 @@ public final SearchSpacesPagedResponse searchSpaces(SearchSpacesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of spaces in a Google Workspace organization based on an administrator's search. - * Requires [user authentication with administrator + * + *

                                          Requires [user authentication with administrator * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). * In the request, set `use_admin_access` to `true`. * @@ -2588,12 +2719,16 @@ public final UnaryCallable searchSpac * Returns details about a space. For an example, see [Get details about a * space](https://developers.google.com/workspace/chat/get-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -2624,12 +2759,16 @@ public final Space getSpace(SpaceName name) { * Returns details about a space. For an example, see [Get details about a * space](https://developers.google.com/workspace/chat/get-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -2659,12 +2798,16 @@ public final Space getSpace(String name) { * Returns details about a space. For an example, see [Get details about a * space](https://developers.google.com/workspace/chat/get-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -2696,12 +2839,16 @@ public final Space getSpace(GetSpaceRequest request) { * Returns details about a space. For an example, see [Get details about a * space](https://developers.google.com/workspace/chat/get-spaces). * - *

                                          Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports - * [app + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -2729,20 +2876,26 @@ public final UnaryCallable getSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a space with no members. Can be used to create a named space. Spaces grouped by topics - * aren't supported. For an example, see [Create a + * Creates a space with no members. Can be used to create a named space, or a group chat in + * `Import mode`. For an example, see [Create a * space](https://developers.google.com/workspace/chat/create-spaces). * *

                                          If you receive the error message `ALREADY_EXISTS` when creating a space, try a different * `displayName`. An existing space within the Google Workspace organization might already use * this display name. * - *

                                          If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), you can create a group chat in - * import mode using `spaceType.GROUP_CHAT`. + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When authenticating as an app, the `space.customer` field must be set in the request. * *

                                          Sample code: * @@ -2759,13 +2912,11 @@ public final UnaryCallable getSpaceCallable() { * }

                                          * * @param space Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. + * `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. `SpaceType.GROUP_CHAT` can only + * be used if `importMode` is set to true. *

                                          If you receive the error message `ALREADY_EXISTS`, try a different `displayName`. An * existing space within the Google Workspace organization might already use this display * name. - *

                                          If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), `SpaceType.GROUP_CHAT` can be - * used if `importMode` is set to true. *

                                          The space `name` is assigned on the server so anything specified in this field will be * ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2777,20 +2928,26 @@ public final Space createSpace(Space space) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a space with no members. Can be used to create a named space. Spaces grouped by topics - * aren't supported. For an example, see [Create a + * Creates a space with no members. Can be used to create a named space, or a group chat in + * `Import mode`. For an example, see [Create a * space](https://developers.google.com/workspace/chat/create-spaces). * *

                                          If you receive the error message `ALREADY_EXISTS` when creating a space, try a different * `displayName`. An existing space within the Google Workspace organization might already use * this display name. * - *

                                          If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), you can create a group chat in - * import mode using `spaceType.GROUP_CHAT`. + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When authenticating as an app, the `space.customer` field must be set in the request. * *

                                          Sample code: * @@ -2819,20 +2976,26 @@ public final Space createSpace(CreateSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a space with no members. Can be used to create a named space. Spaces grouped by topics - * aren't supported. For an example, see [Create a + * Creates a space with no members. Can be used to create a named space, or a group chat in + * `Import mode`. For an example, see [Create a * space](https://developers.google.com/workspace/chat/create-spaces). * *

                                          If you receive the error message `ALREADY_EXISTS` when creating a space, try a different * `displayName`. An existing space within the Google Workspace organization might already use * this display name. * - *

                                          If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), you can create a group chat in - * import mode using `spaceType.GROUP_CHAT`. + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + *

                                          When authenticating as an app, the `space.customer` field must be set in the request. * *

                                          Sample code: * @@ -3012,8 +3175,18 @@ public final UnaryCallable setUpSpaceCallable() { * try a different display name.. An existing space within the Google Workspace organization might * already use this display name. * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3088,8 +3261,18 @@ public final Space updateSpace(Space space, FieldMask updateMask) { * try a different display name.. An existing space within the Google Workspace organization might * already use this display name. * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3126,8 +3309,18 @@ public final Space updateSpace(UpdateSpaceRequest request) { * try a different display name.. An existing space within the Google Workspace organization might * already use this display name. * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3159,9 +3352,19 @@ public final UnaryCallable updateSpaceCallable() { * Deletes a named space. Always performs a cascading delete, which means that the space's child * resources—like messages posted in the space and memberships in the space—are also deleted. For * an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3192,9 +3395,19 @@ public final void deleteSpace(SpaceName name) { * Deletes a named space. Always performs a cascading delete, which means that the space's child * resources—like messages posted in the space and memberships in the space—are also deleted. For * an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3224,9 +3437,19 @@ public final void deleteSpace(String name) { * Deletes a named space. Always performs a cascading delete, which means that the space's child * resources—like messages posted in the space and memberships in the space—are also deleted. For * an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3258,9 +3481,19 @@ public final void deleteSpace(DeleteSpaceRequest request) { * Deletes a named space. Always performs a cascading delete, which means that the space's child * resources—like messages posted in the space and memberships in the space—are also deleted. For * an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3289,8 +3522,11 @@ public final UnaryCallable deleteSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Completes the [import process](https://developers.google.com/workspace/chat/import-data) for - * the specified space and makes it visible to users. Requires app authentication and domain-wide - * delegation. For more information, see [Authorize Google Chat apps to import + * the specified space and makes it visible to users. + * + *

                                          Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and domain-wide delegation. For more information, see [Authorize Google Chat apps to import * data](https://developers.google.com/workspace/chat/authorize-import). * *

                                          Sample code: @@ -3320,8 +3556,11 @@ public final CompleteImportSpaceResponse completeImportSpace(CompleteImportSpace // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Completes the [import process](https://developers.google.com/workspace/chat/import-data) for - * the specified space and makes it visible to users. Requires app authentication and domain-wide - * delegation. For more information, see [Authorize Google Chat apps to import + * the specified space and makes it visible to users. + * + *

                                          Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and domain-wide delegation. For more information, see [Authorize Google Chat apps to import * data](https://developers.google.com/workspace/chat/authorize-import). * *

                                          Sample code: @@ -3355,18 +3594,22 @@ public final CompleteImportSpaceResponse completeImportSpace(CompleteImportSpace * found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct * message](/chat/api/guides/v1/spaces/find-direct-message). * + *

                                          With [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * returns the direct message space between the specified user and the calling Chat app. + * *

                                          With [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), * returns the direct message space between the specified user and the authenticated user. * - *

                                          With [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * returns the direct message space between the specified user and the calling Chat app. + *

                                          // Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): * - *

                                          Requires [user + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). * *

                                          Sample code: * @@ -3396,18 +3639,22 @@ public final Space findDirectMessage(FindDirectMessageRequest request) { * found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct * message](/chat/api/guides/v1/spaces/find-direct-message). * + *

                                          With [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + * returns the direct message space between the specified user and the calling Chat app. + * *

                                          With [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), * returns the direct message space between the specified user and the authenticated user. * - *

                                          With [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * returns the direct message space between the specified user and the calling Chat app. + *

                                          // Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): * - *

                                          Requires [user + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * + *

                                          - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). * *

                                          Sample code: * @@ -3436,8 +3683,20 @@ public final UnaryCallable findDirectMessageCal * for other Chat apps isn't supported. When creating a membership, if the specified member has * their auto-accept policy turned off, then they're invited, and must accept the space invitation * before joining. Otherwise, creating a membership adds the member directly to the specified - * space. Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * space. + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          For example usage, see: * @@ -3467,19 +3726,31 @@ public final UnaryCallable findDirectMessageCal * * @param parent Required. The resource name of the space for which to create the membership. *

                                          Format: spaces/{space} - * @param membership Required. The membership relation to create. The `memberType` field must - * contain a user with the `user.name` and `user.type` fields populated. The server will - * assign a resource name and overwrite anything specified. When a Chat app creates a - * membership relation for a human user, it must use the `chat.memberships` scope, set - * `user.type` to `HUMAN`, and set `user.name` with format `users/{user}`, where `{user}` can - * be the email address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the + * @param membership Required. The membership relation to create. + *

                                          The `memberType` field must contain a user with the `user.name` and `user.type` fields + * populated. The server will assign a resource name and overwrite anything specified. + *

                                          When a Chat app creates a membership relation for a human user, it must use certain + * authorization scopes and set specific values for certain fields: + *

                                          - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the + * `chat.memberships` authorization scope is required. + *

                                          - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), the + * `chat.app.memberships` authorization scope is required. Authenticating as an app is + * available in [Developer Preview](https://developers.google.com/workspace/preview). + *

                                          - Set `user.type` to `HUMAN`, and set `user.name` with format `users/{user}`, where + * `{user}` can be the email address for the user. For users in the same Workspace + * organization `{user}` can also be the `id` of the * [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or * the `id` for the user in the Directory API. For example, if the People API Person profile * ID for `user{@literal @}example.com` is `123456789`, you can add the user to the space by * setting the `membership.member.name` to `users/user{@literal @}example.com` or - * `users/123456789`. When a Chat app creates a membership relation for itself, it must use - * the `chat.memberships.app` scope, set `user.type` to `BOT`, and set `user.name` to + * `users/123456789`. + *

                                          Inviting users external to the Workspace organization that owns the space requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          When a Chat app creates a membership relation for itself, it must [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) and + * use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set `user.name` to * `users/app`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3498,8 +3769,20 @@ public final Membership createMembership(SpaceName parent, Membership membership * for other Chat apps isn't supported. When creating a membership, if the specified member has * their auto-accept policy turned off, then they're invited, and must accept the space invitation * before joining. Otherwise, creating a membership adds the member directly to the specified - * space. Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * space. + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          For example usage, see: * @@ -3529,19 +3812,31 @@ public final Membership createMembership(SpaceName parent, Membership membership * * @param parent Required. The resource name of the space for which to create the membership. *

                                          Format: spaces/{space} - * @param membership Required. The membership relation to create. The `memberType` field must - * contain a user with the `user.name` and `user.type` fields populated. The server will - * assign a resource name and overwrite anything specified. When a Chat app creates a - * membership relation for a human user, it must use the `chat.memberships` scope, set - * `user.type` to `HUMAN`, and set `user.name` with format `users/{user}`, where `{user}` can - * be the email address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the + * @param membership Required. The membership relation to create. + *

                                          The `memberType` field must contain a user with the `user.name` and `user.type` fields + * populated. The server will assign a resource name and overwrite anything specified. + *

                                          When a Chat app creates a membership relation for a human user, it must use certain + * authorization scopes and set specific values for certain fields: + *

                                          - When [authenticating as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the + * `chat.memberships` authorization scope is required. + *

                                          - When [authenticating as an + * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), the + * `chat.app.memberships` authorization scope is required. Authenticating as an app is + * available in [Developer Preview](https://developers.google.com/workspace/preview). + *

                                          - Set `user.type` to `HUMAN`, and set `user.name` with format `users/{user}`, where + * `{user}` can be the email address for the user. For users in the same Workspace + * organization `{user}` can also be the `id` of the * [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or * the `id` for the user in the Directory API. For example, if the People API Person profile * ID for `user{@literal @}example.com` is `123456789`, you can add the user to the space by * setting the `membership.member.name` to `users/user{@literal @}example.com` or - * `users/123456789`. When a Chat app creates a membership relation for itself, it must use - * the `chat.memberships.app` scope, set `user.type` to `BOT`, and set `user.name` to + * `users/123456789`. + *

                                          Inviting users external to the Workspace organization that owns the space requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          When a Chat app creates a membership relation for itself, it must [authenticate as a + * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) and + * use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set `user.name` to * `users/app`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3557,8 +3852,20 @@ public final Membership createMembership(String parent, Membership membership) { * for other Chat apps isn't supported. When creating a membership, if the specified member has * their auto-accept policy turned off, then they're invited, and must accept the space invitation * before joining. Otherwise, creating a membership adds the member directly to the specified - * space. Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * space. + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          For example usage, see: * @@ -3603,8 +3910,20 @@ public final Membership createMembership(CreateMembershipRequest request) { * for other Chat apps isn't supported. When creating a membership, if the specified member has * their auto-accept policy turned off, then they're invited, and must accept the space invitation * before joining. Otherwise, creating a membership adds the member directly to the specified - * space. Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * space. + * + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          For example usage, see: * @@ -3648,8 +3967,18 @@ public final UnaryCallable createMembership * Updates a membership. For an example, see [Update a user's membership in a * space](https://developers.google.com/workspace/chat/update-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3688,8 +4017,18 @@ public final Membership updateMembership(Membership membership, FieldMask update * Updates a membership. For an example, see [Update a user's membership in a * space](https://developers.google.com/workspace/chat/update-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3722,8 +4061,18 @@ public final Membership updateMembership(UpdateMembershipRequest request) { * Updates a membership. For an example, see [Update a user's membership in a * space](https://developers.google.com/workspace/chat/update-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3756,8 +4105,18 @@ public final UnaryCallable updateMembership * Deletes a membership. For an example, see [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3795,8 +4154,18 @@ public final Membership deleteMembership(MembershipName name) { * Deletes a membership. For an example, see [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3833,8 +4202,18 @@ public final Membership deleteMembership(String name) { * Deletes a membership. For an example, see [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3866,8 +4245,18 @@ public final Membership deleteMembership(DeleteMembershipRequest request) { * Deletes a membership. For an example, see [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). * - *

                                          Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + *

                                          Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * + *

                                          - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) in [Developer + * Preview](https://developers.google.com/workspace/preview) + * + *

                                          - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator privileges by setting the + * `use_admin_access` field in the request. * *

                                          Sample code: * @@ -3898,7 +4287,9 @@ public final UnaryCallable deleteMembership /** * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, * see [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/create-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -3934,7 +4325,9 @@ public final Reaction createReaction(MessageName parent, Reaction reaction) { /** * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, * see [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/create-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -3967,7 +4360,9 @@ public final Reaction createReaction(String parent, Reaction reaction) { /** * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, * see [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/create-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -3999,7 +4394,9 @@ public final Reaction createReaction(CreateReactionRequest request) { /** * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, * see [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/create-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4029,7 +4426,9 @@ public final UnaryCallable createReactionCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists reactions to a message. For an example, see [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/list-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4063,7 +4462,9 @@ public final ListReactionsPagedResponse listReactions(MessageName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists reactions to a message. For an example, see [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/list-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4094,7 +4495,9 @@ public final ListReactionsPagedResponse listReactions(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists reactions to a message. For an example, see [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/list-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4129,7 +4532,9 @@ public final ListReactionsPagedResponse listReactions(ListReactionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists reactions to a message. For an example, see [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/list-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4165,7 +4570,9 @@ public final ListReactionsPagedResponse listReactions(ListReactionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists reactions to a message. For an example, see [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). Requires [user + * message](https://developers.google.com/workspace/chat/list-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4206,7 +4613,9 @@ public final UnaryCallable listReac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete - * a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user + * a reaction](https://developers.google.com/workspace/chat/delete-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4236,7 +4645,9 @@ public final void deleteReaction(ReactionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete - * a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user + * a reaction](https://developers.google.com/workspace/chat/delete-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4265,7 +4676,9 @@ public final void deleteReaction(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete - * a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user + * a reaction](https://developers.google.com/workspace/chat/delete-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: @@ -4295,7 +4708,9 @@ public final void deleteReaction(DeleteReactionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a reaction to a message. Only unicode emojis are supported. For an example, see [Delete - * a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user + * a reaction](https://developers.google.com/workspace/chat/delete-reactions). + * + *

                                          Requires [user * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). * *

                                          Sample code: diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 23f66efd7966..f493a17d1d1e 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -413,6 +440,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.card.v1.Action", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index a4f5bf3a92f6..1ccc9dea2da7 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -1141,6 +1141,7 @@ public void getSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1198,6 +1199,7 @@ public void getSpaceTest2() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1255,6 +1257,7 @@ public void createSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1312,6 +1315,7 @@ public void setUpSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1379,6 +1383,7 @@ public void updateSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1398,6 +1403,7 @@ public void updateSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1443,6 +1449,7 @@ public void updateSpaceExceptionTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSpace(space, updateMask); @@ -1596,6 +1603,7 @@ public void findDirectMessageTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 3f9b22902605..9bf74cf698b8 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -984,6 +984,7 @@ public void getSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); @@ -1035,6 +1036,7 @@ public void getSpaceTest2() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); @@ -1086,6 +1088,7 @@ public void createSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); @@ -1137,6 +1140,7 @@ public void setUpSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); @@ -1200,6 +1204,7 @@ public void updateSpaceTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); @@ -1362,6 +1367,7 @@ public void findDirectMessageTest() throws Exception { .setMembershipCount(Space.MembershipCount.newBuilder().build()) .setAccessSettings(Space.AccessSettings.newBuilder().build()) .setSpaceUri("spaceUri2047440518") + .setImportModeExpireTime(Timestamp.newBuilder().build()) .build(); mockChatService.addResponse(expectedResponse); diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index 38c99f56621c..35216634df5c 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -1262,8 +1262,11 @@ public interface AsyncService { *

                                                * Creates a message in a Google Chat space. For an example, see [Send a
                                                * message](https://developers.google.com/workspace/chat/create-messages).
                                          -     * The `create()` method requires either user or app authentication. Chat
                                          -     * attributes the message sender differently depending on the type of
                                          +     * The `create()` method requires either [user
                                          +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
                                          +     * or [app
                                          +     * authentication](https://developers.google.com/workspace/chat/authorize-import).
                                          +     * Chat attributes the message sender differently depending on the type of
                                                * authentication that you use in your request.
                                                * The following image shows how Chat attributes a message when you use app
                                                * authentication. Chat displays the Chat app as the message
                                          @@ -1278,6 +1281,11 @@ public interface AsyncService {
                                                * ![Message sent with user
                                                * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
                                                * The maximum message size, including the message contents, is 32,000 bytes.
                                          +     * For
                                          +     * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
                                          +     * requests, the response doesn't contain the full message. The response only
                                          +     * populates the `name` and `thread.name` fields in addition to the
                                          +     * information that was in the request.
                                                * 
                                          */ default void createMessage( @@ -1324,13 +1332,14 @@ default void listMessages( * [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
                                          */ default void listMemberships( @@ -1347,13 +1356,14 @@ default void listMemberships( * Returns details about a membership. For an example, see * [Get details about a user's or Google Chat app's * membership](https://developers.google.com/workspace/chat/get-members). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
                                          */ default void getMembership( @@ -1370,13 +1380,12 @@ default void getMembership( * Returns details about a message. * For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * Note: Might return a message from a blocked member or space. *
                                          */ @@ -1396,13 +1405,12 @@ default void getMessage( * request. We recommend using the `patch` method. For an example, see * [Update a * message](https://developers.google.com/workspace/chat/update-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only update messages * created by the calling Chat app. *
      @@ -1421,13 +1429,12 @@ default void updateMessage( * Deletes a message. * For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only delete messages * created by the calling Chat app. *
      @@ -1489,15 +1496,12 @@ default void uploadAttachment( * until the first message is sent. For an example, see * [List * spaces](https://developers.google.com/workspace/chat/list-spaces). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Lists spaces visible to the caller or authenticated user. Group chats - * and DMs aren't listed until the first message is sent. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) * method using Workspace administrator privileges instead. @@ -1514,7 +1518,8 @@ default void listSpaces( * *
            * Returns a list of spaces in a Google Workspace organization based on an
      -     * administrator's search. Requires [user
      +     * administrator's search.
      +     * Requires [user
            * authentication with administrator
            * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
            * In the request, set `use_admin_access` to `true`.
      @@ -1534,13 +1539,14 @@ default void searchSpaces(
            * Returns details about a space. For an example, see
            * [Get details about a
            * space](https://developers.google.com/workspace/chat/get-spaces).
      -     * Requires
      -     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
      -     * Supports
      -     * [app
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      -     * and [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ default void getSpace( @@ -1553,18 +1559,22 @@ default void getSpace( * * *
      -     * Creates a space with no members. Can be used to create a named space.
      -     * Spaces grouped by topics aren't supported. For an example, see
      -     * [Create a
      +     * Creates a space with no members. Can be used to create a named space, or a
      +     * group chat in `Import mode`. For an example, see [Create a
            * space](https://developers.google.com/workspace/chat/create-spaces).
            *  If you receive the error message `ALREADY_EXISTS` when creating
            *  a space, try a different `displayName`. An existing space within
            *  the Google Workspace organization might already use this display name.
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview), you can create a
      -     * group chat in import mode using `spaceType.GROUP_CHAT`.
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * When authenticating as an app, the `space.customer` field must be set in
      +     * the request.
            * 
      */ default void createSpace( @@ -1640,8 +1650,16 @@ default void setUpSpace( * If you're updating the `displayName` field and receive the error message * `ALREADY_EXISTS`, try a different display name.. An existing space within * the Google Workspace organization might already use this display name. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ default void updateSpace( @@ -1660,9 +1678,16 @@ default void updateSpace( * memberships in the space—are also deleted. For an example, see * [Delete a * space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ default void deleteSpace( @@ -1679,8 +1704,10 @@ default void deleteSpace( * Completes the * [import process](https://developers.google.com/workspace/chat/import-data) * for the specified space and makes it visible to users. - * Requires app authentication and domain-wide delegation. For more - * information, see [Authorize Google Chat apps to import + * Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and domain-wide delegation. For more information, see [Authorize Google + * Chat apps to import * data](https://developers.google.com/workspace/chat/authorize-import). *
      */ @@ -1700,18 +1727,20 @@ default void completeImportSpace( * message space is found, returns a `404 NOT_FOUND` error. For an example, * see * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - * With [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * returns the direct message space between the specified user and the - * authenticated user. * With [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), * returns the direct message space between the specified user and the calling * Chat app. - * Requires [user + * With [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * returns the direct message space between the specified user and the + * authenticated user. + * // Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). *
      */ default void findDirectMessage( @@ -1731,8 +1760,16 @@ default void findDirectMessage( * policy turned off, then they're invited, and must accept the space * invitation before joining. Otherwise, creating a membership adds the member * directly to the specified space. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. * For example usage, see: * - [Invite or add a user to a * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). @@ -1755,8 +1792,16 @@ default void createMembership( *
            * Updates a membership. For an example, see [Update a user's membership in
            * a space](https://developers.google.com/workspace/chat/update-members).
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ default void updateMembership( @@ -1773,8 +1818,16 @@ default void updateMembership( * Deletes a membership. For an example, see * [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ default void deleteMembership( @@ -1991,8 +2044,11 @@ protected ChatServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions cal *
            * Creates a message in a Google Chat space. For an example, see [Send a
            * message](https://developers.google.com/workspace/chat/create-messages).
      -     * The `create()` method requires either user or app authentication. Chat
      -     * attributes the message sender differently depending on the type of
      +     * The `create()` method requires either [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * or [app
      +     * authentication](https://developers.google.com/workspace/chat/authorize-import).
      +     * Chat attributes the message sender differently depending on the type of
            * authentication that you use in your request.
            * The following image shows how Chat attributes a message when you use app
            * authentication. Chat displays the Chat app as the message
      @@ -2007,6 +2063,11 @@ protected ChatServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions cal
            * ![Message sent with user
            * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
            * The maximum message size, including the message contents, is 32,000 bytes.
      +     * For
      +     * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
      +     * requests, the response doesn't contain the full message. The response only
      +     * populates the `name` and `thread.name` fields in addition to the
      +     * information that was in the request.
            * 
      */ public void createMessage( @@ -2057,13 +2118,14 @@ public void listMessages( * [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public void listMemberships( @@ -2082,13 +2144,14 @@ public void listMemberships( * Returns details about a membership. For an example, see * [Get details about a user's or Google Chat app's * membership](https://developers.google.com/workspace/chat/get-members). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public void getMembership( @@ -2107,13 +2170,12 @@ public void getMembership( * Returns details about a message. * For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * Note: Might return a message from a blocked member or space. *
      */ @@ -2134,13 +2196,12 @@ public void getMessage( * request. We recommend using the `patch` method. For an example, see * [Update a * message](https://developers.google.com/workspace/chat/update-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only update messages * created by the calling Chat app. *
      @@ -2161,13 +2222,12 @@ public void updateMessage( * Deletes a message. * For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only delete messages * created by the calling Chat app. *
      @@ -2235,15 +2295,12 @@ public void uploadAttachment( * until the first message is sent. For an example, see * [List * spaces](https://developers.google.com/workspace/chat/list-spaces). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Lists spaces visible to the caller or authenticated user. Group chats - * and DMs aren't listed until the first message is sent. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) * method using Workspace administrator privileges instead. @@ -2261,7 +2318,8 @@ public void listSpaces( * *
            * Returns a list of spaces in a Google Workspace organization based on an
      -     * administrator's search. Requires [user
      +     * administrator's search.
      +     * Requires [user
            * authentication with administrator
            * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
            * In the request, set `use_admin_access` to `true`.
      @@ -2283,13 +2341,14 @@ public void searchSpaces(
            * Returns details about a space. For an example, see
            * [Get details about a
            * space](https://developers.google.com/workspace/chat/get-spaces).
      -     * Requires
      -     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
      -     * Supports
      -     * [app
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      -     * and [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ public void getSpace( @@ -2303,18 +2362,22 @@ public void getSpace( * * *
      -     * Creates a space with no members. Can be used to create a named space.
      -     * Spaces grouped by topics aren't supported. For an example, see
      -     * [Create a
      +     * Creates a space with no members. Can be used to create a named space, or a
      +     * group chat in `Import mode`. For an example, see [Create a
            * space](https://developers.google.com/workspace/chat/create-spaces).
            *  If you receive the error message `ALREADY_EXISTS` when creating
            *  a space, try a different `displayName`. An existing space within
            *  the Google Workspace organization might already use this display name.
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview), you can create a
      -     * group chat in import mode using `spaceType.GROUP_CHAT`.
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * When authenticating as an app, the `space.customer` field must be set in
      +     * the request.
            * 
      */ public void createSpace( @@ -2393,8 +2456,16 @@ public void setUpSpace( * If you're updating the `displayName` field and receive the error message * `ALREADY_EXISTS`, try a different display name.. An existing space within * the Google Workspace organization might already use this display name. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public void updateSpace( @@ -2415,9 +2486,16 @@ public void updateSpace( * memberships in the space—are also deleted. For an example, see * [Delete a * space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public void deleteSpace( @@ -2436,8 +2514,10 @@ public void deleteSpace( * Completes the * [import process](https://developers.google.com/workspace/chat/import-data) * for the specified space and makes it visible to users. - * Requires app authentication and domain-wide delegation. For more - * information, see [Authorize Google Chat apps to import + * Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and domain-wide delegation. For more information, see [Authorize Google + * Chat apps to import * data](https://developers.google.com/workspace/chat/authorize-import). *
      */ @@ -2459,18 +2539,20 @@ public void completeImportSpace( * message space is found, returns a `404 NOT_FOUND` error. For an example, * see * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - * With [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * returns the direct message space between the specified user and the - * authenticated user. * With [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), * returns the direct message space between the specified user and the calling * Chat app. - * Requires [user + * With [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * returns the direct message space between the specified user and the + * authenticated user. + * // Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). *
      */ public void findDirectMessage( @@ -2492,8 +2574,16 @@ public void findDirectMessage( * policy turned off, then they're invited, and must accept the space * invitation before joining. Otherwise, creating a membership adds the member * directly to the specified space. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. * For example usage, see: * - [Invite or add a user to a * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). @@ -2518,8 +2608,16 @@ public void createMembership( *
            * Updates a membership. For an example, see [Update a user's membership in
            * a space](https://developers.google.com/workspace/chat/update-members).
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ public void updateMembership( @@ -2538,8 +2636,16 @@ public void updateMembership( * Deletes a membership. For an example, see * [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public void deleteMembership( @@ -2758,8 +2864,11 @@ protected ChatServiceBlockingStub build( *
            * Creates a message in a Google Chat space. For an example, see [Send a
            * message](https://developers.google.com/workspace/chat/create-messages).
      -     * The `create()` method requires either user or app authentication. Chat
      -     * attributes the message sender differently depending on the type of
      +     * The `create()` method requires either [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * or [app
      +     * authentication](https://developers.google.com/workspace/chat/authorize-import).
      +     * Chat attributes the message sender differently depending on the type of
            * authentication that you use in your request.
            * The following image shows how Chat attributes a message when you use app
            * authentication. Chat displays the Chat app as the message
      @@ -2774,6 +2883,11 @@ protected ChatServiceBlockingStub build(
            * ![Message sent with user
            * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
            * The maximum message size, including the message contents, is 32,000 bytes.
      +     * For
      +     * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
      +     * requests, the response doesn't contain the full message. The response only
      +     * populates the `name` and `thread.name` fields in addition to the
      +     * information that was in the request.
            * 
      */ public com.google.chat.v1.Message createMessage( @@ -2818,13 +2932,14 @@ public com.google.chat.v1.ListMessagesResponse listMessages( * [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.chat.v1.ListMembershipsResponse listMemberships( @@ -2840,13 +2955,14 @@ public com.google.chat.v1.ListMembershipsResponse listMemberships( * Returns details about a membership. For an example, see * [Get details about a user's or Google Chat app's * membership](https://developers.google.com/workspace/chat/get-members). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.chat.v1.Membership getMembership( @@ -2862,13 +2978,12 @@ public com.google.chat.v1.Membership getMembership( * Returns details about a message. * For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * Note: Might return a message from a blocked member or space. *
      */ @@ -2887,13 +3002,12 @@ public com.google.chat.v1.Message getMessage(com.google.chat.v1.GetMessageReques * request. We recommend using the `patch` method. For an example, see * [Update a * message](https://developers.google.com/workspace/chat/update-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only update messages * created by the calling Chat app. *
      @@ -2911,13 +3025,12 @@ public com.google.chat.v1.Message updateMessage( * Deletes a message. * For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only delete messages * created by the calling Chat app. *
      @@ -2976,15 +3089,12 @@ public com.google.chat.v1.UploadAttachmentResponse uploadAttachment( * until the first message is sent. For an example, see * [List * spaces](https://developers.google.com/workspace/chat/list-spaces). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Lists spaces visible to the caller or authenticated user. Group chats - * and DMs aren't listed until the first message is sent. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) * method using Workspace administrator privileges instead. @@ -3001,7 +3111,8 @@ public com.google.chat.v1.ListSpacesResponse listSpaces( * *
            * Returns a list of spaces in a Google Workspace organization based on an
      -     * administrator's search. Requires [user
      +     * administrator's search.
      +     * Requires [user
            * authentication with administrator
            * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
            * In the request, set `use_admin_access` to `true`.
      @@ -3020,13 +3131,14 @@ public com.google.chat.v1.SearchSpacesResponse searchSpaces(
            * Returns details about a space. For an example, see
            * [Get details about a
            * space](https://developers.google.com/workspace/chat/get-spaces).
      -     * Requires
      -     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
      -     * Supports
      -     * [app
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      -     * and [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ public com.google.chat.v1.Space getSpace(com.google.chat.v1.GetSpaceRequest request) { @@ -3038,18 +3150,22 @@ public com.google.chat.v1.Space getSpace(com.google.chat.v1.GetSpaceRequest requ * * *
      -     * Creates a space with no members. Can be used to create a named space.
      -     * Spaces grouped by topics aren't supported. For an example, see
      -     * [Create a
      +     * Creates a space with no members. Can be used to create a named space, or a
      +     * group chat in `Import mode`. For an example, see [Create a
            * space](https://developers.google.com/workspace/chat/create-spaces).
            *  If you receive the error message `ALREADY_EXISTS` when creating
            *  a space, try a different `displayName`. An existing space within
            *  the Google Workspace organization might already use this display name.
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview), you can create a
      -     * group chat in import mode using `spaceType.GROUP_CHAT`.
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * When authenticating as an app, the `space.customer` field must be set in
      +     * the request.
            * 
      */ public com.google.chat.v1.Space createSpace(com.google.chat.v1.CreateSpaceRequest request) { @@ -3122,8 +3238,16 @@ public com.google.chat.v1.Space setUpSpace(com.google.chat.v1.SetUpSpaceRequest * If you're updating the `displayName` field and receive the error message * `ALREADY_EXISTS`, try a different display name.. An existing space within * the Google Workspace organization might already use this display name. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.chat.v1.Space updateSpace(com.google.chat.v1.UpdateSpaceRequest request) { @@ -3140,9 +3264,16 @@ public com.google.chat.v1.Space updateSpace(com.google.chat.v1.UpdateSpaceReques * memberships in the space—are also deleted. For an example, see * [Delete a * space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.protobuf.Empty deleteSpace(com.google.chat.v1.DeleteSpaceRequest request) { @@ -3157,8 +3288,10 @@ public com.google.protobuf.Empty deleteSpace(com.google.chat.v1.DeleteSpaceReque * Completes the * [import process](https://developers.google.com/workspace/chat/import-data) * for the specified space and makes it visible to users. - * Requires app authentication and domain-wide delegation. For more - * information, see [Authorize Google Chat apps to import + * Requires [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * and domain-wide delegation. For more information, see [Authorize Google + * Chat apps to import * data](https://developers.google.com/workspace/chat/authorize-import). *
      */ @@ -3176,18 +3309,20 @@ public com.google.chat.v1.CompleteImportSpaceResponse completeImportSpace( * message space is found, returns a `404 NOT_FOUND` error. For an example, * see * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - * With [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * returns the direct message space between the specified user and the - * authenticated user. * With [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), * returns the direct message space between the specified user and the calling * Chat app. - * Requires [user + * With [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + * returns the direct message space between the specified user and the + * authenticated user. + * // Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * - [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). *
      */ public com.google.chat.v1.Space findDirectMessage( @@ -3206,8 +3341,16 @@ public com.google.chat.v1.Space findDirectMessage( * policy turned off, then they're invited, and must accept the space * invitation before joining. Otherwise, creating a membership adds the member * directly to the specified space. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. * For example usage, see: * - [Invite or add a user to a * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). @@ -3229,8 +3372,16 @@ public com.google.chat.v1.Membership createMembership( *
            * Updates a membership. For an example, see [Update a user's membership in
            * a space](https://developers.google.com/workspace/chat/update-members).
      -     * Requires [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      +     * with [administrator approval](https://support.google.com/a?p=chat-app-auth)
      +     * in [Developer Preview](https://developers.google.com/workspace/preview)
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ public com.google.chat.v1.Membership updateMembership( @@ -3246,8 +3397,16 @@ public com.google.chat.v1.Membership updateMembership( * Deletes a membership. For an example, see * [Remove a user or a Google Chat app from a * space](https://developers.google.com/workspace/chat/delete-members). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.chat.v1.Membership deleteMembership( @@ -3439,8 +3598,11 @@ protected ChatServiceFutureStub build( *
            * Creates a message in a Google Chat space. For an example, see [Send a
            * message](https://developers.google.com/workspace/chat/create-messages).
      -     * The `create()` method requires either user or app authentication. Chat
      -     * attributes the message sender differently depending on the type of
      +     * The `create()` method requires either [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * or [app
      +     * authentication](https://developers.google.com/workspace/chat/authorize-import).
      +     * Chat attributes the message sender differently depending on the type of
            * authentication that you use in your request.
            * The following image shows how Chat attributes a message when you use app
            * authentication. Chat displays the Chat app as the message
      @@ -3455,6 +3617,11 @@ protected ChatServiceFutureStub build(
            * ![Message sent with user
            * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
            * The maximum message size, including the message contents, is 32,000 bytes.
      +     * For
      +     * [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
      +     * requests, the response doesn't contain the full message. The response only
      +     * populates the `name` and `thread.name` fields in addition to the
      +     * information that was in the request.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture @@ -3500,13 +3667,14 @@ protected ChatServiceFutureStub build( * [User * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * lists memberships in spaces that the authenticated user has access to. - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.common.util.concurrent.ListenableFuture< @@ -3523,13 +3691,14 @@ protected ChatServiceFutureStub build( * Returns details about a membership. For an example, see * [Get details about a user's or Google Chat app's * membership](https://developers.google.com/workspace/chat/get-members). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.common.util.concurrent.ListenableFuture @@ -3545,13 +3714,12 @@ protected ChatServiceFutureStub build( * Returns details about a message. * For an example, see [Get details about a * message](https://developers.google.com/workspace/chat/get-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * Note: Might return a message from a blocked member or space. *
      */ @@ -3571,13 +3739,12 @@ protected ChatServiceFutureStub build( * request. We recommend using the `patch` method. For an example, see * [Update a * message](https://developers.google.com/workspace/chat/update-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only update messages * created by the calling Chat app. *
      @@ -3595,13 +3762,12 @@ protected ChatServiceFutureStub build( * Deletes a message. * For an example, see [Delete a * message](https://developers.google.com/workspace/chat/delete-messages). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * When using app authentication, requests can only delete messages * created by the calling Chat app. *
      @@ -3661,15 +3827,12 @@ protected ChatServiceFutureStub build( * until the first message is sent. For an example, see * [List * spaces](https://developers.google.com/workspace/chat/list-spaces). - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Lists spaces visible to the caller or authenticated user. Group chats - * and DMs aren't listed until the first message is sent. + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) * To list all named spaces by Google Workspace organization, use the * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) * method using Workspace administrator privileges instead. @@ -3686,7 +3849,8 @@ protected ChatServiceFutureStub build( * *
            * Returns a list of spaces in a Google Workspace organization based on an
      -     * administrator's search. Requires [user
      +     * administrator's search.
      +     * Requires [user
            * authentication with administrator
            * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
            * In the request, set `use_admin_access` to `true`.
      @@ -3706,13 +3870,14 @@ protected ChatServiceFutureStub build(
            * Returns details about a space. For an example, see
            * [Get details about a
            * space](https://developers.google.com/workspace/chat/get-spaces).
      -     * Requires
      -     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize).
      -     * Supports
      -     * [app
      +     * Supports the following types of
      +     * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
      +     * - [App
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
      -     * and [user
      -     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     * - [User
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * You can authenticate and authorize this method with administrator
      +     * privileges by setting the `use_admin_access` field in the request.
            * 
      */ public com.google.common.util.concurrent.ListenableFuture getSpace( @@ -3725,18 +3890,22 @@ public com.google.common.util.concurrent.ListenableFuture - * Creates a space with no members. Can be used to create a named space. - * Spaces grouped by topics aren't supported. For an example, see - * [Create a + * Creates a space with no members. Can be used to create a named space, or a + * group chat in `Import mode`. For an example, see [Create a * space](https://developers.google.com/workspace/chat/create-spaces). * If you receive the error message `ALREADY_EXISTS` when creating * a space, try a different `displayName`. An existing space within * the Google Workspace organization might already use this display name. - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), you can create a - * group chat in import mode using `spaceType.GROUP_CHAT`. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * When authenticating as an app, the `space.customer` field must be set in + * the request. *
      */ public com.google.common.util.concurrent.ListenableFuture createSpace( @@ -3811,8 +3980,16 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture updateSpace( @@ -3830,9 +4007,16 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture @@ -3848,8 +4032,10 @@ public com.google.common.util.concurrent.ListenableFuture */ @@ -3868,18 +4054,20 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture @@ -3898,8 +4086,16 @@ public com.google.common.util.concurrent.ListenableFuture * Updates a membership. For an example, see [Update a user's membership in * a space](https://developers.google.com/workspace/chat/update-members). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + * Supports the following types of + * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator approval](https://support.google.com/a?p=chat-app-auth) + * in [Developer Preview](https://developers.google.com/workspace/preview) + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * You can authenticate and authorize this method with administrator + * privileges by setting the `use_admin_access` field in the request. *
      */ public com.google.common.util.concurrent.ListenableFuture @@ -3938,8 +4142,16 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionResponse.java index 4dfb3c2388c1..a7eea1d04bc8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionResponse.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionResponse.java @@ -1379,8 +1379,8 @@ public interface UpdatedWidgetOrBuilder * * *
      -   * The response of the updated widget.
      -   * Used to provide autocomplete options for a widget.
      +   * For `selectionInput` widgets, returns autocomplete suggestions for a
      +   * multiselect menu.
          * 
      * * Protobuf type {@code google.chat.v1.ActionResponse.UpdatedWidget} @@ -1758,8 +1758,8 @@ protected Builder newBuilderForType( * * *
      -     * The response of the updated widget.
      -     * Used to provide autocomplete options for a widget.
      +     * For `selectionInput` widgets, returns autocomplete suggestions for a
      +     * multiselect menu.
            * 
      * * Protobuf type {@code google.chat.v1.ActionResponse.UpdatedWidget} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Attachment.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Attachment.java index 3b247b0fefeb..d9faf9634a9c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Attachment.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Attachment.java @@ -280,11 +280,11 @@ public DataRefCase getDataRefCase() { * * *
      -   * Resource name of the attachment, in the form
      +   * Optional. Resource name of the attachment, in the form
          * `spaces/{space}/messages/{message}/attachments/{attachment}`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -304,11 +304,11 @@ public java.lang.String getName() { * * *
      -   * Resource name of the attachment, in the form
      +   * Optional. Resource name of the attachment, in the form
          * `spaces/{space}/messages/{message}/attachments/{attachment}`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -432,11 +432,14 @@ public com.google.protobuf.ByteString getContentTypeBytes() { * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the attachmentDataRef field is set. */ @@ -448,11 +451,14 @@ public boolean hasAttachmentDataRef() { * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The attachmentDataRef. */ @@ -467,11 +473,14 @@ public com.google.chat.v1.AttachmentDataRef getAttachmentDataRef() { * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder() { @@ -1252,11 +1261,11 @@ public Builder clearDataRef() { * * *
      -     * Resource name of the attachment, in the form
      +     * Optional. Resource name of the attachment, in the form
            * `spaces/{space}/messages/{message}/attachments/{attachment}`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -1275,11 +1284,11 @@ public java.lang.String getName() { * * *
      -     * Resource name of the attachment, in the form
      +     * Optional. Resource name of the attachment, in the form
            * `spaces/{space}/messages/{message}/attachments/{attachment}`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -1298,11 +1307,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Resource name of the attachment, in the form
      +     * Optional. Resource name of the attachment, in the form
            * `spaces/{space}/messages/{message}/attachments/{attachment}`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -1320,11 +1329,11 @@ public Builder setName(java.lang.String value) { * * *
      -     * Resource name of the attachment, in the form
      +     * Optional. Resource name of the attachment, in the form
            * `spaces/{space}/messages/{message}/attachments/{attachment}`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1338,11 +1347,11 @@ public Builder clearName() { * * *
      -     * Resource name of the attachment, in the form
      +     * Optional. Resource name of the attachment, in the form
            * `spaces/{space}/messages/{message}/attachments/{attachment}`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1579,11 +1588,14 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the attachmentDataRef field is set. */ @@ -1595,11 +1607,14 @@ public boolean hasAttachmentDataRef() { * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The attachmentDataRef. */ @@ -1621,11 +1636,14 @@ public com.google.chat.v1.AttachmentDataRef getAttachmentDataRef() { * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAttachmentDataRef(com.google.chat.v1.AttachmentDataRef value) { if (attachmentDataRefBuilder_ == null) { @@ -1644,11 +1662,14 @@ public Builder setAttachmentDataRef(com.google.chat.v1.AttachmentDataRef value) * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAttachmentDataRef( com.google.chat.v1.AttachmentDataRef.Builder builderForValue) { @@ -1665,11 +1686,14 @@ public Builder setAttachmentDataRef( * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAttachmentDataRef(com.google.chat.v1.AttachmentDataRef value) { if (attachmentDataRefBuilder_ == null) { @@ -1698,11 +1722,14 @@ public Builder mergeAttachmentDataRef(com.google.chat.v1.AttachmentDataRef value * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAttachmentDataRef() { if (attachmentDataRefBuilder_ == null) { @@ -1724,11 +1751,14 @@ public Builder clearAttachmentDataRef() { * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AttachmentDataRef.Builder getAttachmentDataRefBuilder() { return getAttachmentDataRefFieldBuilder().getBuilder(); @@ -1737,11 +1767,14 @@ public com.google.chat.v1.AttachmentDataRef.Builder getAttachmentDataRefBuilder( * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder() { @@ -1758,11 +1791,14 @@ public com.google.chat.v1.AttachmentDataRefOrBuilder getAttachmentDataRefOrBuild * * *
      -     * A reference to the attachment data. This field is used with the media API
      -     * to download the attachment data.
      +     * Optional. A reference to the attachment data. This field is used to
      +     * create or update messages with attachments, or with the media API to
      +     * download the attachment data.
            * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.AttachmentDataRef, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRef.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRef.java index 841535c8a8f1..96f2c37eea57 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRef.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRef.java @@ -72,11 +72,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * The resource name of the attachment data. This field is used with the media
      -   * API to download the attachment data.
      +   * Optional. The resource name of the attachment data. This field is used with
      +   * the media API to download the attachment data.
          * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The resourceName. */ @@ -96,11 +96,11 @@ public java.lang.String getResourceName() { * * *
      -   * The resource name of the attachment data. This field is used with the media
      -   * API to download the attachment data.
      +   * Optional. The resource name of the attachment data. This field is used with
      +   * the media API to download the attachment data.
          * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for resourceName. */ @@ -125,12 +125,12 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
      -   * Opaque token containing a reference to an uploaded attachment. Treated by
      -   * clients as an opaque string and used to create or update Chat messages with
      -   * attachments.
      +   * Optional. Opaque token containing a reference to an uploaded attachment.
      +   * Treated by clients as an opaque string and used to create or update Chat
      +   * messages with attachments.
          * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The attachmentUploadToken. */ @@ -150,12 +150,12 @@ public java.lang.String getAttachmentUploadToken() { * * *
      -   * Opaque token containing a reference to an uploaded attachment. Treated by
      -   * clients as an opaque string and used to create or update Chat messages with
      -   * attachments.
      +   * Optional. Opaque token containing a reference to an uploaded attachment.
      +   * Treated by clients as an opaque string and used to create or update Chat
      +   * messages with attachments.
          * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for attachmentUploadToken. */ @@ -539,11 +539,11 @@ public Builder mergeFrom( * * *
      -     * The resource name of the attachment data. This field is used with the media
      -     * API to download the attachment data.
      +     * Optional. The resource name of the attachment data. This field is used with
      +     * the media API to download the attachment data.
            * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The resourceName. */ @@ -562,11 +562,11 @@ public java.lang.String getResourceName() { * * *
      -     * The resource name of the attachment data. This field is used with the media
      -     * API to download the attachment data.
      +     * Optional. The resource name of the attachment data. This field is used with
      +     * the media API to download the attachment data.
            * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for resourceName. */ @@ -585,11 +585,11 @@ public com.google.protobuf.ByteString getResourceNameBytes() { * * *
      -     * The resource name of the attachment data. This field is used with the media
      -     * API to download the attachment data.
      +     * Optional. The resource name of the attachment data. This field is used with
      +     * the media API to download the attachment data.
            * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The resourceName to set. * @return This builder for chaining. @@ -607,11 +607,11 @@ public Builder setResourceName(java.lang.String value) { * * *
      -     * The resource name of the attachment data. This field is used with the media
      -     * API to download the attachment data.
      +     * Optional. The resource name of the attachment data. This field is used with
      +     * the media API to download the attachment data.
            * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -625,11 +625,11 @@ public Builder clearResourceName() { * * *
      -     * The resource name of the attachment data. This field is used with the media
      -     * API to download the attachment data.
      +     * Optional. The resource name of the attachment data. This field is used with
      +     * the media API to download the attachment data.
            * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for resourceName to set. * @return This builder for chaining. @@ -650,12 +650,12 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * Opaque token containing a reference to an uploaded attachment. Treated by
      -     * clients as an opaque string and used to create or update Chat messages with
      -     * attachments.
      +     * Optional. Opaque token containing a reference to an uploaded attachment.
      +     * Treated by clients as an opaque string and used to create or update Chat
      +     * messages with attachments.
            * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The attachmentUploadToken. */ @@ -674,12 +674,12 @@ public java.lang.String getAttachmentUploadToken() { * * *
      -     * Opaque token containing a reference to an uploaded attachment. Treated by
      -     * clients as an opaque string and used to create or update Chat messages with
      -     * attachments.
      +     * Optional. Opaque token containing a reference to an uploaded attachment.
      +     * Treated by clients as an opaque string and used to create or update Chat
      +     * messages with attachments.
            * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for attachmentUploadToken. */ @@ -698,12 +698,12 @@ public com.google.protobuf.ByteString getAttachmentUploadTokenBytes() { * * *
      -     * Opaque token containing a reference to an uploaded attachment. Treated by
      -     * clients as an opaque string and used to create or update Chat messages with
      -     * attachments.
      +     * Optional. Opaque token containing a reference to an uploaded attachment.
      +     * Treated by clients as an opaque string and used to create or update Chat
      +     * messages with attachments.
            * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The attachmentUploadToken to set. * @return This builder for chaining. @@ -721,12 +721,12 @@ public Builder setAttachmentUploadToken(java.lang.String value) { * * *
      -     * Opaque token containing a reference to an uploaded attachment. Treated by
      -     * clients as an opaque string and used to create or update Chat messages with
      -     * attachments.
      +     * Optional. Opaque token containing a reference to an uploaded attachment.
      +     * Treated by clients as an opaque string and used to create or update Chat
      +     * messages with attachments.
            * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -740,12 +740,12 @@ public Builder clearAttachmentUploadToken() { * * *
      -     * Opaque token containing a reference to an uploaded attachment. Treated by
      -     * clients as an opaque string and used to create or update Chat messages with
      -     * attachments.
      +     * Optional. Opaque token containing a reference to an uploaded attachment.
      +     * Treated by clients as an opaque string and used to create or update Chat
      +     * messages with attachments.
            * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for attachmentUploadToken to set. * @return This builder for chaining. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRefOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRefOrBuilder.java index 44f16f84a8f4..c538f8f17f6d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRefOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentDataRefOrBuilder.java @@ -28,11 +28,11 @@ public interface AttachmentDataRefOrBuilder * * *
      -   * The resource name of the attachment data. This field is used with the media
      -   * API to download the attachment data.
      +   * Optional. The resource name of the attachment data. This field is used with
      +   * the media API to download the attachment data.
          * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The resourceName. */ @@ -41,11 +41,11 @@ public interface AttachmentDataRefOrBuilder * * *
      -   * The resource name of the attachment data. This field is used with the media
      -   * API to download the attachment data.
      +   * Optional. The resource name of the attachment data. This field is used with
      +   * the media API to download the attachment data.
          * 
      * - * string resource_name = 1; + * string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for resourceName. */ @@ -55,12 +55,12 @@ public interface AttachmentDataRefOrBuilder * * *
      -   * Opaque token containing a reference to an uploaded attachment. Treated by
      -   * clients as an opaque string and used to create or update Chat messages with
      -   * attachments.
      +   * Optional. Opaque token containing a reference to an uploaded attachment.
      +   * Treated by clients as an opaque string and used to create or update Chat
      +   * messages with attachments.
          * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The attachmentUploadToken. */ @@ -69,12 +69,12 @@ public interface AttachmentDataRefOrBuilder * * *
      -   * Opaque token containing a reference to an uploaded attachment. Treated by
      -   * clients as an opaque string and used to create or update Chat messages with
      -   * attachments.
      +   * Optional. Opaque token containing a reference to an uploaded attachment.
      +   * Treated by clients as an opaque string and used to create or update Chat
      +   * messages with attachments.
          * 
      * - * string attachment_upload_token = 2; + * string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for attachmentUploadToken. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentOrBuilder.java index 849be1e080c4..be2d06ea456a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentOrBuilder.java @@ -28,11 +28,11 @@ public interface AttachmentOrBuilder * * *
      -   * Resource name of the attachment, in the form
      +   * Optional. Resource name of the attachment, in the form
          * `spaces/{space}/messages/{message}/attachments/{attachment}`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -41,11 +41,11 @@ public interface AttachmentOrBuilder * * *
      -   * Resource name of the attachment, in the form
      +   * Optional. Resource name of the attachment, in the form
          * `spaces/{space}/messages/{message}/attachments/{attachment}`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -105,11 +105,14 @@ public interface AttachmentOrBuilder * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the attachmentDataRef field is set. */ @@ -118,11 +121,14 @@ public interface AttachmentOrBuilder * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The attachmentDataRef. */ @@ -131,11 +137,14 @@ public interface AttachmentOrBuilder * * *
      -   * A reference to the attachment data. This field is used with the media API
      -   * to download the attachment data.
      +   * Optional. A reference to the attachment data. This field is used to
      +   * create or update messages with attachments, or with the media API to
      +   * download the attachment data.
          * 
      * - * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; + * + * .google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentProto.java index 1aeaf49d7765..b9b55d36dc41 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentProto.java @@ -63,34 +63,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\037google/chat/v1/attachment.proto\022\016googl" + "e.chat.v1\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\"\363\003\n\nAttach" - + "ment\022\014\n\004name\030\001 \001(\t\022\031\n\014content_name\030\002 \001(\t" - + "B\003\340A\003\022\031\n\014content_type\030\003 \001(\tB\003\340A\003\022@\n\023atta" - + "chment_data_ref\030\004 \001(\0132!.google.chat.v1.A" - + "ttachmentDataRefH\000\022;\n\016drive_data_ref\030\007 \001" - + "(\0132\034.google.chat.v1.DriveDataRefB\003\340A\003H\000\022" - + "\032\n\rthumbnail_uri\030\005 \001(\tB\003\340A\003\022\031\n\014download_" - + "uri\030\006 \001(\tB\003\340A\003\0226\n\006source\030\t \001(\0162!.google." - + "chat.v1.Attachment.SourceB\003\340A\003\"F\n\006Source" - + "\022\026\n\022SOURCE_UNSPECIFIED\020\000\022\016\n\nDRIVE_FILE\020\001" - + "\022\024\n\020UPLOADED_CONTENT\020\002:_\352A\\\n\036chat.google" - + "apis.com/Attachment\022:spaces/{space}/mess" - + "ages/{message}/attachments/{attachment}B" - + "\n\n\010data_ref\"%\n\014DriveDataRef\022\025\n\rdrive_fil" - + "e_id\030\002 \001(\t\"K\n\021AttachmentDataRef\022\025\n\rresou" - + "rce_name\030\001 \001(\t\022\037\n\027attachment_upload_toke" - + "n\030\002 \001(\t\"L\n\024GetAttachmentRequest\0224\n\004name\030" - + "\001 \001(\tB&\340A\002\372A \n\036chat.googleapis.com/Attac" - + "hment\"e\n\027UploadAttachmentRequest\0223\n\006pare" - + "nt\030\001 \001(\tB#\340A\002\372A\035\022\033chat.googleapis.com/Me" - + "ssage\022\025\n\010filename\030\004 \001(\tB\003\340A\002\"Z\n\030UploadAt" - + "tachmentResponse\022>\n\023attachment_data_ref\030" - + "\001 \001(\0132!.google.chat.v1.AttachmentDataRef" - + "B\250\001\n\022com.google.chat.v1B\017AttachmentProto" - + "P\001Z,cloud.google.com/go/chat/apiv1/chatp" - + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha" - + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::App" - + "s::Chat::V1b\006proto3" + + "to\032\031google/api/resource.proto\"\375\003\n\nAttach" + + "ment\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014content_name\030" + + "\002 \001(\tB\003\340A\003\022\031\n\014content_type\030\003 \001(\tB\003\340A\003\022E\n" + + "\023attachment_data_ref\030\004 \001(\0132!.google.chat" + + ".v1.AttachmentDataRefB\003\340A\001H\000\022;\n\016drive_da" + + "ta_ref\030\007 \001(\0132\034.google.chat.v1.DriveDataR" + + "efB\003\340A\003H\000\022\032\n\rthumbnail_uri\030\005 \001(\tB\003\340A\003\022\031\n" + + "\014download_uri\030\006 \001(\tB\003\340A\003\0226\n\006source\030\t \001(\016" + + "2!.google.chat.v1.Attachment.SourceB\003\340A\003" + + "\"F\n\006Source\022\026\n\022SOURCE_UNSPECIFIED\020\000\022\016\n\nDR" + + "IVE_FILE\020\001\022\024\n\020UPLOADED_CONTENT\020\002:_\352A\\\n\036c" + + "hat.googleapis.com/Attachment\022:spaces/{s" + + "pace}/messages/{message}/attachments/{at" + + "tachment}B\n\n\010data_ref\"%\n\014DriveDataRef\022\025\n" + + "\rdrive_file_id\030\002 \001(\t\"U\n\021AttachmentDataRe" + + "f\022\032\n\rresource_name\030\001 \001(\tB\003\340A\001\022$\n\027attachm" + + "ent_upload_token\030\002 \001(\tB\003\340A\001\"L\n\024GetAttach" + + "mentRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036chat." + + "googleapis.com/Attachment\"e\n\027UploadAttac" + + "hmentRequest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033ch" + + "at.googleapis.com/Message\022\025\n\010filename\030\004 " + + "\001(\tB\003\340A\002\"Z\n\030UploadAttachmentResponse\022>\n\023" + + "attachment_data_ref\030\001 \001(\0132!.google.chat." + + "v1.AttachmentDataRefB\250\001\n\022com.google.chat" + + ".v1B\017AttachmentProtoP\001Z,cloud.google.com" + + "/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIPro" + + "to\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\C" + + "hat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequest.java index 6a689ab6ce37..451aef473dba 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequest.java @@ -132,21 +132,42 @@ public com.google.protobuf.ByteString getParentBytes() { * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -163,21 +184,42 @@ public boolean hasMembership() { * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -194,21 +236,42 @@ public com.google.chat.v1.Membership getMembership() { * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -225,7 +288,7 @@ public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -240,7 +303,7 @@ public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() {
          * access.
          * 
      * - * bool use_admin_access = 5; + * bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -797,21 +860,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -827,21 +911,42 @@ public boolean hasMembership() { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -863,21 +968,42 @@ public com.google.chat.v1.Membership getMembership() { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -901,21 +1027,42 @@ public Builder setMembership(com.google.chat.v1.Membership value) { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -936,21 +1083,42 @@ public Builder setMembership(com.google.chat.v1.Membership.Builder builderForVal * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -979,21 +1147,42 @@ public Builder mergeMembership(com.google.chat.v1.Membership value) { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1014,21 +1203,42 @@ public Builder clearMembership() { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1044,21 +1254,42 @@ public com.google.chat.v1.Membership.Builder getMembershipBuilder() { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1078,21 +1309,42 @@ public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { * *
            * Required. The membership relation to create.
      +     *
            * The `memberType` field must contain a user with the `user.name` and
            * `user.type` fields populated. The server will assign a resource name
            * and overwrite anything specified.
      +     *
            * When a Chat app creates a membership relation for a human user, it must use
      -     * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -     * `user.name` with format `users/{user}`, where `{user}` can be the email
      -     * address for the user. For users in the same Workspace organization `{user}`
      -     * can also be the `id` of the
      -     * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -     * People API, or the `id` for the user in the Directory API. For example, if
      -     * the People API Person profile ID for `user@example.com` is `123456789`, you
      -     * can add the user to the space by setting the `membership.member.name` to
      -     * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -     * membership relation for itself, it must use the `chat.memberships.app`
      -     * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +     * certain authorization scopes and set specific values for certain fields:
      +     *
      +     * - When [authenticating as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +     * the `chat.memberships` authorization scope is required.
      +     *
      +     * - When [authenticating as an
      +     * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +     * the `chat.app.memberships` authorization scope is required.
      +     * Authenticating as an app is available in [Developer
      +     * Preview](https://developers.google.com/workspace/preview).
      +     *
      +     * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +     * `users/{user}`, where `{user}` can be the email address for the user. For
      +     * users in the same Workspace organization `{user}` can also be the `id` of
      +     * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +     * the People API, or the `id` for the user in the Directory API. For example,
      +     * if the People API Person profile ID for `user@example.com` is `123456789`,
      +     * you can add the user to the space by setting the `membership.member.name`
      +     * to `users/user@example.com` or `users/123456789`.
      +     *
      +     * Inviting users external to the Workspace organization that owns the space
      +     * requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +     *
      +     * When a Chat app creates a membership relation for itself, it must
      +     * [authenticate as a
      +     * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +     * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +     * `user.name` to `users/app`.
            * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1120,7 +1372,7 @@ public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1135,7 +1387,7 @@ public com.google.chat.v1.MembershipOrBuilder getMembershipOrBuilder() {
            * access.
            * 
      * - * bool use_admin_access = 5; + * bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1147,7 +1399,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1162,7 +1414,7 @@ public boolean getUseAdminAccess() {
            * access.
            * 
      * - * bool use_admin_access = 5; + * bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -1178,7 +1430,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1193,7 +1445,7 @@ public Builder setUseAdminAccess(boolean value) {
            * access.
            * 
      * - * bool use_admin_access = 5; + * bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequestOrBuilder.java index 564d3d06eac4..6c01ccdc48ad 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMembershipRequestOrBuilder.java @@ -64,21 +64,42 @@ public interface CreateMembershipRequestOrBuilder * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -92,21 +113,42 @@ public interface CreateMembershipRequestOrBuilder * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -120,21 +162,42 @@ public interface CreateMembershipRequestOrBuilder * *
          * Required. The membership relation to create.
      +   *
          * The `memberType` field must contain a user with the `user.name` and
          * `user.type` fields populated. The server will assign a resource name
          * and overwrite anything specified.
      +   *
          * When a Chat app creates a membership relation for a human user, it must use
      -   * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set
      -   * `user.name` with format `users/{user}`, where `{user}` can be the email
      -   * address for the user. For users in the same Workspace organization `{user}`
      -   * can also be the `id` of the
      -   * [person](https://developers.google.com/people/api/rest/v1/people) from the
      -   * People API, or the `id` for the user in the Directory API. For example, if
      -   * the People API Person profile ID for `user@example.com` is `123456789`, you
      -   * can add the user to the space by setting the `membership.member.name` to
      -   * `users/user@example.com` or `users/123456789`. When a Chat app creates a
      -   * membership relation for itself, it must use the `chat.memberships.app`
      -   * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`.
      +   * certain authorization scopes and set specific values for certain fields:
      +   *
      +   * - When [authenticating as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      +   * the `chat.memberships` authorization scope is required.
      +   *
      +   * - When [authenticating as an
      +   * app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
      +   * the `chat.app.memberships` authorization scope is required.
      +   * Authenticating as an app is available in [Developer
      +   * Preview](https://developers.google.com/workspace/preview).
      +   *
      +   * - Set `user.type` to `HUMAN`, and set `user.name` with format
      +   * `users/{user}`, where `{user}` can be the email address for the user. For
      +   * users in the same Workspace organization `{user}` can also be the `id` of
      +   * the [person](https://developers.google.com/people/api/rest/v1/people) from
      +   * the People API, or the `id` for the user in the Directory API. For example,
      +   * if the People API Person profile ID for `user@example.com` is `123456789`,
      +   * you can add the user to the space by setting the `membership.member.name`
      +   * to `users/user@example.com` or `users/123456789`.
      +   *
      +   * Inviting users external to the Workspace organization that owns the space
      +   * requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      +   *
      +   * When a Chat app creates a membership relation for itself, it must
      +   * [authenticate as a
      +   * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
      +   * and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set
      +   * `user.name` to `users/app`.
          * 
      * * .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -146,7 +209,7 @@ public interface CreateMembershipRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -161,7 +224,7 @@ public interface CreateMembershipRequestOrBuilder
          * access.
          * 
      * - * bool use_admin_access = 5; + * bool use_admin_access = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index a1e9b2d41037..58b38afd9b89 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -373,7 +373,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The threadKey. */ @java.lang.Override @@ -406,7 +406,7 @@ public java.lang.String getThreadKey() { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The bytes for threadKey. */ @java.lang.Override @@ -486,6 +486,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { *
          * Optional. Specifies whether a message starts a thread or replies to one.
          * Only supported in named spaces.
      +   *
      +   * When [responding to user
      +   * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +   * this field is ignored. For interactions within a thread, the reply is
      +   * created in the same thread. Otherwise, the reply is created as a new
      +   * thread.
          * 
      * * @@ -504,6 +510,12 @@ public int getMessageReplyOptionValue() { *
          * Optional. Specifies whether a message starts a thread or replies to one.
          * Only supported in named spaces.
      +   *
      +   * When [responding to user
      +   * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +   * this field is ignored. For interactions within a thread, the reply is
      +   * created in the same thread. Otherwise, the reply is created as a new
      +   * thread.
          * 
      * * @@ -1408,7 +1420,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The threadKey. */ @java.lang.Deprecated @@ -1440,7 +1452,7 @@ public java.lang.String getThreadKey() { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1472,7 +1484,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1503,7 +1515,7 @@ public Builder setThreadKey(java.lang.String value) { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1530,7 +1542,7 @@ public Builder clearThreadKey() { *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ @@ -1669,6 +1681,12 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { *
            * Optional. Specifies whether a message starts a thread or replies to one.
            * Only supported in named spaces.
      +     *
      +     * When [responding to user
      +     * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +     * this field is ignored. For interactions within a thread, the reply is
      +     * created in the same thread. Otherwise, the reply is created as a new
      +     * thread.
            * 
      * * @@ -1687,6 +1705,12 @@ public int getMessageReplyOptionValue() { *
            * Optional. Specifies whether a message starts a thread or replies to one.
            * Only supported in named spaces.
      +     *
      +     * When [responding to user
      +     * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +     * this field is ignored. For interactions within a thread, the reply is
      +     * created in the same thread. Otherwise, the reply is created as a new
      +     * thread.
            * 
      * * @@ -1708,6 +1732,12 @@ public Builder setMessageReplyOptionValue(int value) { *
            * Optional. Specifies whether a message starts a thread or replies to one.
            * Only supported in named spaces.
      +     *
      +     * When [responding to user
      +     * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +     * this field is ignored. For interactions within a thread, the reply is
      +     * created in the same thread. Otherwise, the reply is created as a new
      +     * thread.
            * 
      * * @@ -1730,6 +1760,12 @@ public com.google.chat.v1.CreateMessageRequest.MessageReplyOption getMessageRepl *
            * Optional. Specifies whether a message starts a thread or replies to one.
            * Only supported in named spaces.
      +     *
      +     * When [responding to user
      +     * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +     * this field is ignored. For interactions within a thread, the reply is
      +     * created in the same thread. Otherwise, the reply is created as a new
      +     * thread.
            * 
      * * @@ -1755,6 +1791,12 @@ public Builder setMessageReplyOption( *
            * Optional. Specifies whether a message starts a thread or replies to one.
            * Only supported in named spaces.
      +     *
      +     * When [responding to user
      +     * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +     * this field is ignored. For interactions within a thread, the reply is
      +     * created in the same thread. Otherwise, the reply is created as a new
      +     * thread.
            * 
      * * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index a60470b68fd1..1caf36becc3a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -109,7 +109,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The threadKey. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface CreateMessageRequestOrBuilder *
      * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=504 + * google/chat/v1/message.proto;l=510 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -172,6 +172,12 @@ public interface CreateMessageRequestOrBuilder *
          * Optional. Specifies whether a message starts a thread or replies to one.
          * Only supported in named spaces.
      +   *
      +   * When [responding to user
      +   * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +   * this field is ignored. For interactions within a thread, the reply is
      +   * created in the same thread. Otherwise, the reply is created as a new
      +   * thread.
          * 
      * * @@ -187,6 +193,12 @@ public interface CreateMessageRequestOrBuilder *
          * Optional. Specifies whether a message starts a thread or replies to one.
          * Only supported in named spaces.
      +   *
      +   * When [responding to user
      +   * interactions](https://developers.google.com/workspace/chat/receive-respond-interactions),
      +   * this field is ignored. For interactions within a thread, the reply is
      +   * created in the same thread. Otherwise, the reply is created as a new
      +   * thread.
          * 
      * * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequest.java index 41491febfff6..b811e653f8f8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequest.java @@ -71,15 +71,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      @@ -98,15 +96,13 @@ public boolean hasSpace() {
          *
          * 
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      @@ -125,15 +121,13 @@ public com.google.chat.v1.Space getSpace() {
          *
          * 
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      @@ -600,15 +594,13 @@ public Builder mergeFrom(
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -626,15 +618,13 @@ public boolean hasSpace() {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -656,15 +646,13 @@ public com.google.chat.v1.Space getSpace() {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -690,15 +678,13 @@ public Builder setSpace(com.google.chat.v1.Space value) {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -721,15 +707,13 @@ public Builder setSpace(com.google.chat.v1.Space.Builder builderForValue) {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -760,15 +744,13 @@ public Builder mergeSpace(com.google.chat.v1.Space value) {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -791,15 +773,13 @@ public Builder clearSpace() {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -817,15 +797,13 @@ public com.google.chat.v1.Space.Builder getSpaceBuilder() {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      @@ -845,15 +823,13 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() {
            *
            * 
            * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -     * `SpaceType.SPACE` is supported.
      +     * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +     * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
            *
            * If you receive the error message `ALREADY_EXISTS`,
            * try a different `displayName`. An existing space within the Google
            * Workspace organization might already use this display name.
            *
      -     * If you're a member of the [Developer Preview
      -     * program](https://developers.google.com/workspace/preview),
      -     * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
            *
            * The space `name` is assigned on the server so anything specified in this
            * field will be ignored.
      diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequestOrBuilder.java
      index 29a0b9847c8d..6ad5c1509594 100644
      --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequestOrBuilder.java
      +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateSpaceRequestOrBuilder.java
      @@ -29,15 +29,13 @@ public interface CreateSpaceRequestOrBuilder
          *
          * 
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      @@ -53,15 +51,13 @@ public interface CreateSpaceRequestOrBuilder
          *
          * 
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      @@ -77,15 +73,13 @@ public interface CreateSpaceRequestOrBuilder
          *
          * 
          * Required. The `displayName` and `spaceType` fields must be populated.  Only
      -   * `SpaceType.SPACE` is supported.
      +   * `SpaceType.SPACE`  and `SpaceType.GROUP_CHAT` are supported.
      +   * `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
          *
          * If you receive the error message `ALREADY_EXISTS`,
          * try a different `displayName`. An existing space within the Google
          * Workspace organization might already use this display name.
          *
      -   * If you're a member of the [Developer Preview
      -   * program](https://developers.google.com/workspace/preview),
      -   * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true.
          *
          * The space `name` is assigned on the server so anything specified in this
          * field will be ignored.
      diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmoji.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmoji.java
      index 97fe06485911..5be3c61c89d8 100644
      --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmoji.java
      +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmoji.java
      @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * Output only. Unique key for the custom emoji resource.
          * 
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -95,7 +97,9 @@ public java.lang.String getUid() { * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -455,7 +459,9 @@ public Builder mergeFrom( * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -477,7 +483,9 @@ public java.lang.String getUid() { * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -499,7 +507,9 @@ public com.google.protobuf.ByteString getUidBytes() { * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The uid to set. * @return This builder for chaining. @@ -520,7 +530,9 @@ public Builder setUid(java.lang.String value) { * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -537,7 +549,9 @@ public Builder clearUid() { * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The bytes for uid to set. * @return This builder for chaining. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiOrBuilder.java index 3d22dceec007..bcb540bc38af 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiOrBuilder.java @@ -31,7 +31,9 @@ public interface CustomEmojiOrBuilder * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -43,7 +45,9 @@ public interface CustomEmojiOrBuilder * Output only. Unique key for the custom emoji resource. *
      * - * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequest.java index 79188b85119a..ef64802aec5f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequest.java @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * Deleting app memberships in a space isn't supported using admin access.
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -721,7 +721,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -734,7 +734,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * Deleting app memberships in a space isn't supported using admin access.
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -746,7 +746,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -759,7 +759,7 @@ public boolean getUseAdminAccess() {
            * Deleting app memberships in a space isn't supported using admin access.
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -775,7 +775,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -788,7 +788,7 @@ public Builder setUseAdminAccess(boolean value) {
            * Deleting app memberships in a space isn't supported using admin access.
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequestOrBuilder.java index 1f759ef9a9d6..65523ec9b250 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMembershipRequestOrBuilder.java @@ -83,7 +83,7 @@ public interface DeleteMembershipRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -96,7 +96,7 @@ public interface DeleteMembershipRequestOrBuilder
          * Deleting app memberships in a space isn't supported using admin access.
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequest.java index a86e60eecc34..b430402c01f0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequest.java @@ -138,8 +138,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * When `true`, deleting a message also deletes its threaded replies. When
      -   * `false`, if a message has threaded replies, deletion fails.
      +   * Optional. When `true`, deleting a message also deletes its threaded
      +   * replies. When `false`, if a message has threaded replies, deletion fails.
          *
          * Only applies when [authenticating as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * bool force = 2; + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The force. */ @@ -674,8 +674,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * When `true`, deleting a message also deletes its threaded replies. When
      -     * `false`, if a message has threaded replies, deletion fails.
      +     * Optional. When `true`, deleting a message also deletes its threaded
      +     * replies. When `false`, if a message has threaded replies, deletion fails.
            *
            * Only applies when [authenticating as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      @@ -683,7 +683,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * bool force = 2; + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The force. */ @@ -695,8 +695,8 @@ public boolean getForce() { * * *
      -     * When `true`, deleting a message also deletes its threaded replies. When
      -     * `false`, if a message has threaded replies, deletion fails.
      +     * Optional. When `true`, deleting a message also deletes its threaded
      +     * replies. When `false`, if a message has threaded replies, deletion fails.
            *
            * Only applies when [authenticating as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      @@ -704,7 +704,7 @@ public boolean getForce() {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * bool force = 2; + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The force to set. * @return This builder for chaining. @@ -720,8 +720,8 @@ public Builder setForce(boolean value) { * * *
      -     * When `true`, deleting a message also deletes its threaded replies. When
      -     * `false`, if a message has threaded replies, deletion fails.
      +     * Optional. When `true`, deleting a message also deletes its threaded
      +     * replies. When `false`, if a message has threaded replies, deletion fails.
            *
            * Only applies when [authenticating as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      @@ -729,7 +729,7 @@ public Builder setForce(boolean value) {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * bool force = 2; + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequestOrBuilder.java index 5bf69afe0201..b51a2c118013 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteMessageRequestOrBuilder.java @@ -71,8 +71,8 @@ public interface DeleteMessageRequestOrBuilder * * *
      -   * When `true`, deleting a message also deletes its threaded replies. When
      -   * `false`, if a message has threaded replies, deletion fails.
      +   * Optional. When `true`, deleting a message also deletes its threaded
      +   * replies. When `false`, if a message has threaded replies, deletion fails.
          *
          * Only applies when [authenticating as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
      @@ -80,7 +80,7 @@ public interface DeleteMessageRequestOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * bool force = 2; + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The force. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequest.java index 24f51909492b..cb85a82ed5b3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequest.java @@ -128,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -640,7 +640,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -651,7 +651,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -663,7 +663,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -674,7 +674,7 @@ public boolean getUseAdminAccess() {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -690,7 +690,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -701,7 +701,7 @@ public Builder setUseAdminAccess(boolean value) {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequestOrBuilder.java index 477b67004674..ffcc4e4e361d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeleteSpaceRequestOrBuilder.java @@ -61,7 +61,7 @@ public interface DeleteSpaceRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -72,7 +72,7 @@ public interface DeleteSpaceRequestOrBuilder
          * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java index 586be48c109a..84e2234618a0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/DeletionMetadata.java @@ -68,7 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Who deleted the message and how it was deleted.
      +   * Who deleted the message and how it was deleted. More values may be added in
      +   * the future.
          * 
      * * Protobuf enum {@code google.chat.v1.DeletionMetadata.DeletionType} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Emoji.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Emoji.java index 4439d461973e..566f17ecb3c1 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Emoji.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Emoji.java @@ -112,10 +112,10 @@ public ContentCase getContentCase() { * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the unicode field is set. */ @@ -126,10 +126,10 @@ public boolean hasUnicode() { * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The unicode. */ @@ -153,10 +153,10 @@ public java.lang.String getUnicode() { * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for unicode. */ @@ -645,10 +645,10 @@ public Builder clearContent() { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the unicode field is set. */ @@ -660,10 +660,10 @@ public boolean hasUnicode() { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The unicode. */ @@ -688,10 +688,10 @@ public java.lang.String getUnicode() { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for unicode. */ @@ -716,10 +716,10 @@ public com.google.protobuf.ByteString getUnicodeBytes() { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The unicode to set. * @return This builder for chaining. @@ -737,10 +737,10 @@ public Builder setUnicode(java.lang.String value) { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -756,10 +756,10 @@ public Builder clearUnicode() { * * *
      -     * A basic emoji represented by a unicode string.
      +     * Optional. A basic emoji represented by a unicode string.
            * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for unicode to set. * @return This builder for chaining. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiOrBuilder.java index 1cf612ecb991..344e63bbf576 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiOrBuilder.java @@ -28,10 +28,10 @@ public interface EmojiOrBuilder * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the unicode field is set. */ @@ -40,10 +40,10 @@ public interface EmojiOrBuilder * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The unicode. */ @@ -52,10 +52,10 @@ public interface EmojiOrBuilder * * *
      -   * A basic emoji represented by a unicode string.
      +   * Optional. A basic emoji represented by a unicode string.
          * 
      * - * string unicode = 1; + * string unicode = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for unicode. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummary.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummary.java index e29fefd30926..b4f49a5ca8f4 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummary.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummary.java @@ -68,10 +68,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the emoji field is set. */ @@ -83,10 +83,10 @@ public boolean hasEmoji() { * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The emoji. */ @@ -98,10 +98,10 @@ public com.google.chat.v1.Emoji getEmoji() { * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { @@ -114,10 +114,10 @@ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { * * *
      -   * The total number of reactions using the associated emoji.
      +   * Output only. The total number of reactions using the associated emoji.
          * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the reactionCount field is set. */ @@ -129,10 +129,10 @@ public boolean hasReactionCount() { * * *
      -   * The total number of reactions using the associated emoji.
      +   * Output only. The total number of reactions using the associated emoji.
          * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reactionCount. */ @@ -538,10 +538,10 @@ public Builder mergeFrom( * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the emoji field is set. */ @@ -552,10 +552,10 @@ public boolean hasEmoji() { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The emoji. */ @@ -570,10 +570,10 @@ public com.google.chat.v1.Emoji getEmoji() { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEmoji(com.google.chat.v1.Emoji value) { if (emojiBuilder_ == null) { @@ -592,10 +592,10 @@ public Builder setEmoji(com.google.chat.v1.Emoji value) { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEmoji(com.google.chat.v1.Emoji.Builder builderForValue) { if (emojiBuilder_ == null) { @@ -611,10 +611,10 @@ public Builder setEmoji(com.google.chat.v1.Emoji.Builder builderForValue) { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEmoji(com.google.chat.v1.Emoji value) { if (emojiBuilder_ == null) { @@ -638,10 +638,10 @@ public Builder mergeEmoji(com.google.chat.v1.Emoji value) { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEmoji() { bitField0_ = (bitField0_ & ~0x00000001); @@ -657,10 +657,10 @@ public Builder clearEmoji() { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.chat.v1.Emoji.Builder getEmojiBuilder() { bitField0_ |= 0x00000001; @@ -671,10 +671,10 @@ public com.google.chat.v1.Emoji.Builder getEmojiBuilder() { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { if (emojiBuilder_ != null) { @@ -687,10 +687,10 @@ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { * * *
      -     * Emoji associated with the reactions.
      +     * Output only. Emoji associated with the reactions.
            * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Emoji, @@ -713,10 +713,10 @@ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { * * *
      -     * The total number of reactions using the associated emoji.
      +     * Output only. The total number of reactions using the associated emoji.
            * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the reactionCount field is set. */ @@ -728,10 +728,10 @@ public boolean hasReactionCount() { * * *
      -     * The total number of reactions using the associated emoji.
      +     * Output only. The total number of reactions using the associated emoji.
            * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reactionCount. */ @@ -743,10 +743,10 @@ public int getReactionCount() { * * *
      -     * The total number of reactions using the associated emoji.
      +     * Output only. The total number of reactions using the associated emoji.
            * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The reactionCount to set. * @return This builder for chaining. @@ -762,10 +762,10 @@ public Builder setReactionCount(int value) { * * *
      -     * The total number of reactions using the associated emoji.
      +     * Output only. The total number of reactions using the associated emoji.
            * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummaryOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummaryOrBuilder.java index d6f779beb177..0837c6cbe9c3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummaryOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/EmojiReactionSummaryOrBuilder.java @@ -28,10 +28,10 @@ public interface EmojiReactionSummaryOrBuilder * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the emoji field is set. */ @@ -40,10 +40,10 @@ public interface EmojiReactionSummaryOrBuilder * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The emoji. */ @@ -52,10 +52,10 @@ public interface EmojiReactionSummaryOrBuilder * * *
      -   * Emoji associated with the reactions.
      +   * Output only. Emoji associated with the reactions.
          * 
      * - * .google.chat.v1.Emoji emoji = 1; + * .google.chat.v1.Emoji emoji = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder(); @@ -63,10 +63,10 @@ public interface EmojiReactionSummaryOrBuilder * * *
      -   * The total number of reactions using the associated emoji.
      +   * Output only. The total number of reactions using the associated emoji.
          * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the reactionCount field is set. */ @@ -75,10 +75,10 @@ public interface EmojiReactionSummaryOrBuilder * * *
      -   * The total number of reactions using the associated emoji.
      +   * Output only. The total number of reactions using the associated emoji.
          * 
      * - * optional int32 reaction_count = 2; + * optional int32 reaction_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reactionCount. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequest.java index 41b53684cbf8..ad0b2137c5ca 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequest.java @@ -79,9 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -116,9 +114,7 @@ public java.lang.String getName() { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -148,7 +144,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -162,7 +158,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * Getting app memberships in a space isn't supported when using admin access.
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -546,9 +542,7 @@ public Builder mergeFrom( * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -582,9 +576,7 @@ public java.lang.String getName() { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -618,9 +610,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -653,9 +643,7 @@ public Builder setName(java.lang.String value) { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -684,9 +672,7 @@ public Builder clearName() { * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -714,7 +700,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -728,7 +714,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * Getting app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -740,7 +726,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -754,7 +740,7 @@ public boolean getUseAdminAccess() {
            * Getting app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -770,7 +756,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -784,7 +770,7 @@ public Builder setUseAdminAccess(boolean value) {
            * Getting app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequestOrBuilder.java index 151a393ad6a0..a6616776915f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMembershipRequestOrBuilder.java @@ -36,9 +36,7 @@ public interface GetMembershipRequestOrBuilder * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -62,9 +60,7 @@ public interface GetMembershipRequestOrBuilder * * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, + * You can use the user's email as an alias for `{member}`. For example, * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the * email of the Google Chat user. *
      @@ -81,7 +77,7 @@ public interface GetMembershipRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -95,7 +91,7 @@ public interface GetMembershipRequestOrBuilder
          * Getting app memberships in a space isn't supported when using admin access.
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequest.java index d291c86bb87b..f3863419de85 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -138,7 +138,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -638,7 +638,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -649,7 +649,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -661,7 +661,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -672,7 +672,7 @@ public boolean getUseAdminAccess() {
            * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -688,7 +688,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -699,7 +699,7 @@ public Builder setUseAdminAccess(boolean value) {
            * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequestOrBuilder.java index 1f24562a4c72..64486158679c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetSpaceRequestOrBuilder.java @@ -61,7 +61,7 @@ public interface GetSpaceRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -72,7 +72,7 @@ public interface GetSpaceRequestOrBuilder
          * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 2; + * bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequest.java index 56d5ac4674b2..a173214fbd4d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequest.java @@ -391,7 +391,7 @@ public boolean getShowInvited() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -405,7 +405,7 @@ public boolean getShowInvited() {
          * Listing app memberships in a space isn't supported when using admin access.
          * 
      * - * bool use_admin_access = 8; + * bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1666,7 +1666,7 @@ public Builder clearShowInvited() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1680,7 +1680,7 @@ public Builder clearShowInvited() {
            * Listing app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 8; + * bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1692,7 +1692,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1706,7 +1706,7 @@ public boolean getUseAdminAccess() {
            * Listing app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 8; + * bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -1722,7 +1722,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1736,7 +1736,7 @@ public Builder setUseAdminAccess(boolean value) {
            * Listing app memberships in a space isn't supported when using admin access.
            * 
      * - * bool use_admin_access = 8; + * bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequestOrBuilder.java index 8827aa002d21..aee465cc35af 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMembershipsRequestOrBuilder.java @@ -255,7 +255,7 @@ public interface ListMembershipsRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -269,7 +269,7 @@ public interface ListMembershipsRequestOrBuilder
          * Listing app memberships in a space isn't supported when using admin access.
          * 
      * - * bool use_admin_access = 8; + * bool use_admin_access = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java index 84ed5f63395b..3ad3e4acb807 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java @@ -131,8 +131,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
      -   * The maximum number of messages returned. The service might return fewer
      -   * messages than this value.
      +   * Optional. The maximum number of messages returned. The service might return
      +   * fewer messages than this value.
          *
          * If unspecified, at most 25 are returned.
          *
      @@ -142,7 +142,7 @@ public com.google.protobuf.ByteString getParentBytes() {
          * Negative values return an `INVALID_ARGUMENT` error.
          * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -159,17 +159,15 @@ public int getPageSize() { * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * A page token received from a previous list messages call. Provide this
      -   * parameter to retrieve the subsequent page.
      +   * Optional. A page token received from a previous list messages call. Provide
      +   * this parameter to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided should match the call that
          * provided the page token. Passing different values to the other parameters
          * might lead to unexpected results.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -189,17 +187,15 @@ public java.lang.String getPageToken() { * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * A page token received from a previous list messages call. Provide this
      -   * parameter to retrieve the subsequent page.
      +   * Optional. A page token received from a previous list messages call. Provide
      +   * this parameter to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided should match the call that
          * provided the page token. Passing different values to the other parameters
          * might lead to unexpected results.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -224,7 +220,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
      -   * A query filter.
      +   * Optional. A query filter.
          *
          * You can filter messages by date (`create_time`) and thread (`thread.name`).
          *
      @@ -263,7 +259,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * error.
          * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -283,7 +279,7 @@ public java.lang.String getFilter() { * * *
      -   * A query filter.
      +   * Optional. A query filter.
          *
          * You can filter messages by date (`create_time`) and thread (`thread.name`).
          *
      @@ -322,7 +318,7 @@ public java.lang.String getFilter() {
          * error.
          * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -347,10 +343,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * How the list of messages is ordered. Specify a value to order by an
      -   * ordering operation. Valid ordering operation values are as follows:
      +   * Optional. How the list of messages is ordered. Specify a value to order by
      +   * an ordering operation. Valid ordering operation values are as follows:
          *
          * - `ASC` for ascending.
          *
      @@ -359,7 +353,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
          * The default ordering is `create_time ASC`.
          * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -379,10 +373,8 @@ public java.lang.String getOrderBy() { * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * How the list of messages is ordered. Specify a value to order by an
      -   * ordering operation. Valid ordering operation values are as follows:
      +   * Optional. How the list of messages is ordered. Specify a value to order by
      +   * an ordering operation. Valid ordering operation values are as follows:
          *
          * - `ASC` for ascending.
          *
      @@ -391,7 +383,7 @@ public java.lang.String getOrderBy() {
          * The default ordering is `create_time ASC`.
          * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -414,11 +406,12 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -   * Whether to include deleted messages. Deleted messages include deleted time
      -   * and metadata about their deletion, but message content is unavailable.
      +   * Optional. Whether to include deleted messages. Deleted messages include
      +   * deleted time and metadata about their deletion, but message content is
      +   * unavailable.
          * 
      * - * bool show_deleted = 6; + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The showDeleted. */ @@ -1014,8 +1007,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
      -     * The maximum number of messages returned. The service might return fewer
      -     * messages than this value.
      +     * Optional. The maximum number of messages returned. The service might return
      +     * fewer messages than this value.
            *
            * If unspecified, at most 25 are returned.
            *
      @@ -1025,7 +1018,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
            * Negative values return an `INVALID_ARGUMENT` error.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -1037,8 +1030,8 @@ public int getPageSize() { * * *
      -     * The maximum number of messages returned. The service might return fewer
      -     * messages than this value.
      +     * Optional. The maximum number of messages returned. The service might return
      +     * fewer messages than this value.
            *
            * If unspecified, at most 25 are returned.
            *
      @@ -1048,7 +1041,7 @@ public int getPageSize() {
            * Negative values return an `INVALID_ARGUMENT` error.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -1064,8 +1057,8 @@ public Builder setPageSize(int value) { * * *
      -     * The maximum number of messages returned. The service might return fewer
      -     * messages than this value.
      +     * Optional. The maximum number of messages returned. The service might return
      +     * fewer messages than this value.
            *
            * If unspecified, at most 25 are returned.
            *
      @@ -1075,7 +1068,7 @@ public Builder setPageSize(int value) {
            * Negative values return an `INVALID_ARGUMENT` error.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1091,17 +1084,15 @@ public Builder clearPageSize() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * A page token received from a previous list messages call. Provide this
      -     * parameter to retrieve the subsequent page.
      +     * Optional. A page token received from a previous list messages call. Provide
      +     * this parameter to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided should match the call that
            * provided the page token. Passing different values to the other parameters
            * might lead to unexpected results.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1120,17 +1111,15 @@ public java.lang.String getPageToken() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * A page token received from a previous list messages call. Provide this
      -     * parameter to retrieve the subsequent page.
      +     * Optional. A page token received from a previous list messages call. Provide
      +     * this parameter to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided should match the call that
            * provided the page token. Passing different values to the other parameters
            * might lead to unexpected results.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1149,17 +1138,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * A page token received from a previous list messages call. Provide this
      -     * parameter to retrieve the subsequent page.
      +     * Optional. A page token received from a previous list messages call. Provide
      +     * this parameter to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided should match the call that
            * provided the page token. Passing different values to the other parameters
            * might lead to unexpected results.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1177,17 +1164,15 @@ public Builder setPageToken(java.lang.String value) { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * A page token received from a previous list messages call. Provide this
      -     * parameter to retrieve the subsequent page.
      +     * Optional. A page token received from a previous list messages call. Provide
      +     * this parameter to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided should match the call that
            * provided the page token. Passing different values to the other parameters
            * might lead to unexpected results.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1201,17 +1186,15 @@ public Builder clearPageToken() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * A page token received from a previous list messages call. Provide this
      -     * parameter to retrieve the subsequent page.
      +     * Optional. A page token received from a previous list messages call. Provide
      +     * this parameter to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided should match the call that
            * provided the page token. Passing different values to the other parameters
            * might lead to unexpected results.
            * 
      * - * 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. @@ -1232,7 +1215,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
      -     * A query filter.
      +     * Optional. A query filter.
            *
            * You can filter messages by date (`create_time`) and thread (`thread.name`).
            *
      @@ -1271,7 +1254,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
            * error.
            * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1290,7 +1273,7 @@ public java.lang.String getFilter() { * * *
      -     * A query filter.
      +     * Optional. A query filter.
            *
            * You can filter messages by date (`create_time`) and thread (`thread.name`).
            *
      @@ -1329,7 +1312,7 @@ public java.lang.String getFilter() {
            * error.
            * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1348,7 +1331,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -     * A query filter.
      +     * Optional. A query filter.
            *
            * You can filter messages by date (`create_time`) and thread (`thread.name`).
            *
      @@ -1387,7 +1370,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
            * error.
            * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1405,7 +1388,7 @@ public Builder setFilter(java.lang.String value) { * * *
      -     * A query filter.
      +     * Optional. A query filter.
            *
            * You can filter messages by date (`create_time`) and thread (`thread.name`).
            *
      @@ -1444,7 +1427,7 @@ public Builder setFilter(java.lang.String value) {
            * error.
            * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1458,7 +1441,7 @@ public Builder clearFilter() { * * *
      -     * A query filter.
      +     * Optional. A query filter.
            *
            * You can filter messages by date (`create_time`) and thread (`thread.name`).
            *
      @@ -1497,7 +1480,7 @@ public Builder clearFilter() {
            * error.
            * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1518,10 +1501,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * How the list of messages is ordered. Specify a value to order by an
      -     * ordering operation. Valid ordering operation values are as follows:
      +     * Optional. How the list of messages is ordered. Specify a value to order by
      +     * an ordering operation. Valid ordering operation values are as follows:
            *
            * - `ASC` for ascending.
            *
      @@ -1530,7 +1511,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
            * The default ordering is `create_time ASC`.
            * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1549,10 +1530,8 @@ public java.lang.String getOrderBy() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * How the list of messages is ordered. Specify a value to order by an
      -     * ordering operation. Valid ordering operation values are as follows:
      +     * Optional. How the list of messages is ordered. Specify a value to order by
      +     * an ordering operation. Valid ordering operation values are as follows:
            *
            * - `ASC` for ascending.
            *
      @@ -1561,7 +1540,7 @@ public java.lang.String getOrderBy() {
            * The default ordering is `create_time ASC`.
            * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1580,10 +1559,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * How the list of messages is ordered. Specify a value to order by an
      -     * ordering operation. Valid ordering operation values are as follows:
      +     * Optional. How the list of messages is ordered. Specify a value to order by
      +     * an ordering operation. Valid ordering operation values are as follows:
            *
            * - `ASC` for ascending.
            *
      @@ -1592,7 +1569,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
            * The default ordering is `create_time ASC`.
            * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1610,10 +1587,8 @@ public Builder setOrderBy(java.lang.String value) { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * How the list of messages is ordered. Specify a value to order by an
      -     * ordering operation. Valid ordering operation values are as follows:
      +     * Optional. How the list of messages is ordered. Specify a value to order by
      +     * an ordering operation. Valid ordering operation values are as follows:
            *
            * - `ASC` for ascending.
            *
      @@ -1622,7 +1597,7 @@ public Builder setOrderBy(java.lang.String value) {
            * The default ordering is `create_time ASC`.
            * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1636,10 +1611,8 @@ public Builder clearOrderBy() { * * *
      -     * Optional, if resuming from a previous query.
      -     *
      -     * How the list of messages is ordered. Specify a value to order by an
      -     * ordering operation. Valid ordering operation values are as follows:
      +     * Optional. How the list of messages is ordered. Specify a value to order by
      +     * an ordering operation. Valid ordering operation values are as follows:
            *
            * - `ASC` for ascending.
            *
      @@ -1648,7 +1621,7 @@ public Builder clearOrderBy() {
            * The default ordering is `create_time ASC`.
            * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. @@ -1669,11 +1642,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
      -     * Whether to include deleted messages. Deleted messages include deleted time
      -     * and metadata about their deletion, but message content is unavailable.
      +     * Optional. Whether to include deleted messages. Deleted messages include
      +     * deleted time and metadata about their deletion, but message content is
      +     * unavailable.
            * 
      * - * bool show_deleted = 6; + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The showDeleted. */ @@ -1685,11 +1659,12 @@ public boolean getShowDeleted() { * * *
      -     * Whether to include deleted messages. Deleted messages include deleted time
      -     * and metadata about their deletion, but message content is unavailable.
      +     * Optional. Whether to include deleted messages. Deleted messages include
      +     * deleted time and metadata about their deletion, but message content is
      +     * unavailable.
            * 
      * - * bool show_deleted = 6; + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The showDeleted to set. * @return This builder for chaining. @@ -1705,11 +1680,12 @@ public Builder setShowDeleted(boolean value) { * * *
      -     * Whether to include deleted messages. Deleted messages include deleted time
      -     * and metadata about their deletion, but message content is unavailable.
      +     * Optional. Whether to include deleted messages. Deleted messages include
      +     * deleted time and metadata about their deletion, but message content is
      +     * unavailable.
            * 
      * - * bool show_deleted = 6; + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java index f05de268151f..634766de9ab7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java @@ -61,8 +61,8 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * The maximum number of messages returned. The service might return fewer
      -   * messages than this value.
      +   * Optional. The maximum number of messages returned. The service might return
      +   * fewer messages than this value.
          *
          * If unspecified, at most 25 are returned.
          *
      @@ -72,7 +72,7 @@ public interface ListMessagesRequestOrBuilder
          * Negative values return an `INVALID_ARGUMENT` error.
          * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -82,17 +82,15 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * A page token received from a previous list messages call. Provide this
      -   * parameter to retrieve the subsequent page.
      +   * Optional. A page token received from a previous list messages call. Provide
      +   * this parameter to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided should match the call that
          * provided the page token. Passing different values to the other parameters
          * might lead to unexpected results.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -101,17 +99,15 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * A page token received from a previous list messages call. Provide this
      -   * parameter to retrieve the subsequent page.
      +   * Optional. A page token received from a previous list messages call. Provide
      +   * this parameter to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided should match the call that
          * provided the page token. Passing different values to the other parameters
          * might lead to unexpected results.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -121,7 +117,7 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * A query filter.
      +   * Optional. A query filter.
          *
          * You can filter messages by date (`create_time`) and thread (`thread.name`).
          *
      @@ -160,7 +156,7 @@ public interface ListMessagesRequestOrBuilder
          * error.
          * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -169,7 +165,7 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * A query filter.
      +   * Optional. A query filter.
          *
          * You can filter messages by date (`create_time`) and thread (`thread.name`).
          *
      @@ -208,7 +204,7 @@ public interface ListMessagesRequestOrBuilder
          * error.
          * 
      * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -218,10 +214,8 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * How the list of messages is ordered. Specify a value to order by an
      -   * ordering operation. Valid ordering operation values are as follows:
      +   * Optional. How the list of messages is ordered. Specify a value to order by
      +   * an ordering operation. Valid ordering operation values are as follows:
          *
          * - `ASC` for ascending.
          *
      @@ -230,7 +224,7 @@ public interface ListMessagesRequestOrBuilder
          * The default ordering is `create_time ASC`.
          * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -239,10 +233,8 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * Optional, if resuming from a previous query.
      -   *
      -   * How the list of messages is ordered. Specify a value to order by an
      -   * ordering operation. Valid ordering operation values are as follows:
      +   * Optional. How the list of messages is ordered. Specify a value to order by
      +   * an ordering operation. Valid ordering operation values are as follows:
          *
          * - `ASC` for ascending.
          *
      @@ -251,7 +243,7 @@ public interface ListMessagesRequestOrBuilder
          * The default ordering is `create_time ASC`.
          * 
      * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -261,11 +253,12 @@ public interface ListMessagesRequestOrBuilder * * *
      -   * Whether to include deleted messages. Deleted messages include deleted time
      -   * and metadata about their deletion, but message content is unavailable.
      +   * Optional. Whether to include deleted messages. Deleted messages include
      +   * deleted time and metadata about their deletion, but message content is
      +   * unavailable.
          * 
      * - * bool show_deleted = 6; + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The showDeleted. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java index 44f79a8636b3..56e15fd178c4 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequest.java @@ -140,7 +140,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Negative values return an `INVALID_ARGUMENT` error. *
      * - * int32 page_size = 5; + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -157,15 +157,15 @@ public int getPageSize() { * * *
      -   * A page token, received from a previous list space events call. Provide this
      -   * to retrieve the subsequent page.
      +   * Optional. A page token, received from a previous list space events call.
      +   * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to list space events must
          * match the call that provided the page token. Passing different values to
          * the other parameters might lead to unexpected results.
          * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -185,15 +185,15 @@ public java.lang.String getPageToken() { * * *
      -   * A page token, received from a previous list space events call. Provide this
      -   * to retrieve the subsequent page.
      +   * Optional. A page token, received from a previous list space events call.
      +   * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to list space events must
          * match the call that provided the page token. Passing different values to
          * the other parameters might lead to unexpected results.
          * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -921,7 +921,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Negative values return an `INVALID_ARGUMENT` error. *
      * - * int32 page_size = 5; + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -939,7 +939,7 @@ public int getPageSize() { * Negative values return an `INVALID_ARGUMENT` error. *
      * - * int32 page_size = 5; + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -961,7 +961,7 @@ public Builder setPageSize(int value) { * Negative values return an `INVALID_ARGUMENT` error. *
      * - * int32 page_size = 5; + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -977,15 +977,15 @@ public Builder clearPageSize() { * * *
      -     * A page token, received from a previous list space events call. Provide this
      -     * to retrieve the subsequent page.
      +     * Optional. A page token, received from a previous list space events call.
      +     * Provide this to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided to list space events must
            * match the call that provided the page token. Passing different values to
            * the other parameters might lead to unexpected results.
            * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1004,15 +1004,15 @@ public java.lang.String getPageToken() { * * *
      -     * A page token, received from a previous list space events call. Provide this
      -     * to retrieve the subsequent page.
      +     * Optional. A page token, received from a previous list space events call.
      +     * Provide this to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided to list space events must
            * match the call that provided the page token. Passing different values to
            * the other parameters might lead to unexpected results.
            * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1031,15 +1031,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
      -     * A page token, received from a previous list space events call. Provide this
      -     * to retrieve the subsequent page.
      +     * Optional. A page token, received from a previous list space events call.
      +     * Provide this to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided to list space events must
            * match the call that provided the page token. Passing different values to
            * the other parameters might lead to unexpected results.
            * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1057,15 +1057,15 @@ public Builder setPageToken(java.lang.String value) { * * *
      -     * A page token, received from a previous list space events call. Provide this
      -     * to retrieve the subsequent page.
      +     * Optional. A page token, received from a previous list space events call.
      +     * Provide this to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided to list space events must
            * match the call that provided the page token. Passing different values to
            * the other parameters might lead to unexpected results.
            * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1079,15 +1079,15 @@ public Builder clearPageToken() { * * *
      -     * A page token, received from a previous list space events call. Provide this
      -     * to retrieve the subsequent page.
      +     * Optional. A page token, received from a previous list space events call.
      +     * Provide this to retrieve the subsequent page.
            *
            * When paginating, all other parameters provided to list space events must
            * match the call that provided the page token. Passing different values to
            * the other parameters might lead to unexpected results.
            * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java index a9b5427b5eea..f542bd03a3aa 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListSpaceEventsRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface ListSpaceEventsRequestOrBuilder * Negative values return an `INVALID_ARGUMENT` error. *
      * - * int32 page_size = 5; + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -81,15 +81,15 @@ public interface ListSpaceEventsRequestOrBuilder * * *
      -   * A page token, received from a previous list space events call. Provide this
      -   * to retrieve the subsequent page.
      +   * Optional. A page token, received from a previous list space events call.
      +   * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to list space events must
          * match the call that provided the page token. Passing different values to
          * the other parameters might lead to unexpected results.
          * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -98,15 +98,15 @@ public interface ListSpaceEventsRequestOrBuilder * * *
      -   * A page token, received from a previous list space events call. Provide this
      -   * to retrieve the subsequent page.
      +   * Optional. A page token, received from a previous list space events call.
      +   * Provide this to retrieve the subsequent page.
          *
          * When paginating, all other parameters provided to list space events must
          * match the call that provided the page token. Passing different values to
          * the other parameters might lead to unexpected results.
          * 
      * - * string page_token = 6; + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java index af53aae98e11..bc1d93589a7e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Membership.java @@ -480,12 +480,12 @@ public MemberTypeCase getMemberTypeCase() { * * *
      -   * Resource name of the membership, assigned by the server.
      +   * Identifier. Resource name of the membership, assigned by the server.
          *
          * Format: `spaces/{space}/members/{member}`
          * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -505,12 +505,12 @@ public java.lang.String getName() { * * *
      -   * Resource name of the membership, assigned by the server.
      +   * Identifier. Resource name of the membership, assigned by the server.
          *
          * Format: `spaces/{space}/members/{member}`
          * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -616,7 +616,7 @@ public com.google.chat.v1.Membership.MembershipRole getRole() { * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -624,7 +624,7 @@ public com.google.chat.v1.Membership.MembershipRole getRole() {
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the member field is set. */ @@ -636,7 +636,7 @@ public boolean hasMember() { * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -644,7 +644,7 @@ public boolean hasMember() {
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The member. */ @@ -659,7 +659,7 @@ public com.google.chat.v1.User getMember() { * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -667,7 +667,7 @@ public com.google.chat.v1.User getMember() {
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() { @@ -682,10 +682,13 @@ public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() { * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the groupMember field is set. */ @@ -697,10 +700,13 @@ public boolean hasGroupMember() { * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The groupMember. */ @@ -715,10 +721,13 @@ public com.google.chat.v1.Group getGroupMember() { * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.chat.v1.GroupOrBuilder getGroupMemberOrBuilder() { @@ -1412,12 +1421,12 @@ public Builder clearMemberType() { * * *
      -     * Resource name of the membership, assigned by the server.
      +     * Identifier. Resource name of the membership, assigned by the server.
            *
            * Format: `spaces/{space}/members/{member}`
            * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1436,12 +1445,12 @@ public java.lang.String getName() { * * *
      -     * Resource name of the membership, assigned by the server.
      +     * Identifier. Resource name of the membership, assigned by the server.
            *
            * Format: `spaces/{space}/members/{member}`
            * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1460,12 +1469,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Resource name of the membership, assigned by the server.
      +     * Identifier. Resource name of the membership, assigned by the server.
            *
            * Format: `spaces/{space}/members/{member}`
            * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1483,12 +1492,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Resource name of the membership, assigned by the server.
      +     * Identifier. Resource name of the membership, assigned by the server.
            *
            * Format: `spaces/{space}/members/{member}`
            * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1502,12 +1511,12 @@ public Builder clearName() { * * *
      -     * Resource name of the membership, assigned by the server.
      +     * Identifier. Resource name of the membership, assigned by the server.
            *
            * Format: `spaces/{space}/members/{member}`
            * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1747,7 +1756,7 @@ public Builder clearRole() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1755,7 +1764,7 @@ public Builder clearRole() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the member field is set. */ @@ -1767,7 +1776,7 @@ public boolean hasMember() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1775,7 +1784,7 @@ public boolean hasMember() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The member. */ @@ -1797,7 +1806,7 @@ public com.google.chat.v1.User getMember() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1805,7 +1814,7 @@ public com.google.chat.v1.User getMember() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMember(com.google.chat.v1.User value) { if (memberBuilder_ == null) { @@ -1824,7 +1833,7 @@ public Builder setMember(com.google.chat.v1.User value) { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1832,7 +1841,7 @@ public Builder setMember(com.google.chat.v1.User value) {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMember(com.google.chat.v1.User.Builder builderForValue) { if (memberBuilder_ == null) { @@ -1848,7 +1857,7 @@ public Builder setMember(com.google.chat.v1.User.Builder builderForValue) { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1856,7 +1865,7 @@ public Builder setMember(com.google.chat.v1.User.Builder builderForValue) {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMember(com.google.chat.v1.User value) { if (memberBuilder_ == null) { @@ -1883,7 +1892,7 @@ public Builder mergeMember(com.google.chat.v1.User value) { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1891,7 +1900,7 @@ public Builder mergeMember(com.google.chat.v1.User value) {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMember() { if (memberBuilder_ == null) { @@ -1913,7 +1922,7 @@ public Builder clearMember() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1921,7 +1930,7 @@ public Builder clearMember() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.chat.v1.User.Builder getMemberBuilder() { return getMemberFieldBuilder().getBuilder(); @@ -1930,7 +1939,7 @@ public com.google.chat.v1.User.Builder getMemberBuilder() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1938,7 +1947,7 @@ public com.google.chat.v1.User.Builder getMemberBuilder() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() { @@ -1955,7 +1964,7 @@ public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() { * * *
      -     * The Google Chat user or app the membership corresponds to.
      +     * Optional. The Google Chat user or app the membership corresponds to.
            * If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
            * the output populates the
      @@ -1963,7 +1972,7 @@ public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() {
            * `name` and `type`.
            * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.User, @@ -1996,10 +2005,14 @@ public com.google.chat.v1.UserOrBuilder getMemberOrBuilder() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the groupMember field is set. */ @@ -2011,10 +2024,14 @@ public boolean hasGroupMember() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The groupMember. */ @@ -2036,10 +2053,14 @@ public com.google.chat.v1.Group getGroupMember() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGroupMember(com.google.chat.v1.Group value) { if (groupMemberBuilder_ == null) { @@ -2058,10 +2079,14 @@ public Builder setGroupMember(com.google.chat.v1.Group value) { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGroupMember(com.google.chat.v1.Group.Builder builderForValue) { if (groupMemberBuilder_ == null) { @@ -2077,10 +2102,14 @@ public Builder setGroupMember(com.google.chat.v1.Group.Builder builderForValue) * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGroupMember(com.google.chat.v1.Group value) { if (groupMemberBuilder_ == null) { @@ -2107,10 +2136,14 @@ public Builder mergeGroupMember(com.google.chat.v1.Group value) { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGroupMember() { if (groupMemberBuilder_ == null) { @@ -2132,10 +2165,14 @@ public Builder clearGroupMember() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Group.Builder getGroupMemberBuilder() { return getGroupMemberFieldBuilder().getBuilder(); @@ -2144,10 +2181,14 @@ public com.google.chat.v1.Group.Builder getGroupMemberBuilder() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.GroupOrBuilder getGroupMemberOrBuilder() { @@ -2164,10 +2205,14 @@ public com.google.chat.v1.GroupOrBuilder getGroupMemberOrBuilder() { * * *
      -     * The Google Group the membership corresponds to.
      +     * Optional. The Google Group the membership corresponds to.
      +     *
      +     * Reading or mutating memberships for Google Groups requires [user
      +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
            * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Group, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipOrBuilder.java index ba892b313529..6984b3186c43 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipOrBuilder.java @@ -28,12 +28,12 @@ public interface MembershipOrBuilder * * *
      -   * Resource name of the membership, assigned by the server.
      +   * Identifier. Resource name of the membership, assigned by the server.
          *
          * Format: `spaces/{space}/members/{member}`
          * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -42,12 +42,12 @@ public interface MembershipOrBuilder * * *
      -   * Resource name of the membership, assigned by the server.
      +   * Identifier. Resource name of the membership, assigned by the server.
          *
          * Format: `spaces/{space}/members/{member}`
          * 
      * - * string name = 1 [(.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -121,7 +121,7 @@ public interface MembershipOrBuilder * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -129,7 +129,7 @@ public interface MembershipOrBuilder
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the member field is set. */ @@ -138,7 +138,7 @@ public interface MembershipOrBuilder * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -146,7 +146,7 @@ public interface MembershipOrBuilder
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The member. */ @@ -155,7 +155,7 @@ public interface MembershipOrBuilder * * *
      -   * The Google Chat user or app the membership corresponds to.
      +   * Optional. The Google Chat user or app the membership corresponds to.
          * If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
          * the output populates the
      @@ -163,7 +163,7 @@ public interface MembershipOrBuilder
          * `name` and `type`.
          * 
      * - * .google.chat.v1.User member = 3; + * .google.chat.v1.User member = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.chat.v1.UserOrBuilder getMemberOrBuilder(); @@ -171,10 +171,13 @@ public interface MembershipOrBuilder * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the groupMember field is set. */ @@ -183,10 +186,13 @@ public interface MembershipOrBuilder * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The groupMember. */ @@ -195,10 +201,13 @@ public interface MembershipOrBuilder * * *
      -   * The Google Group the membership corresponds to.
      +   * Optional. The Google Group the membership corresponds to.
      +   *
      +   * Reading or mutating memberships for Google Groups requires [user
      +   * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
          * 
      * - * .google.chat.v1.Group group_member = 5; + * .google.chat.v1.Group group_member = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.chat.v1.GroupOrBuilder getGroupMemberOrBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java index 01dccb410f22..045f09958f5a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipProto.java @@ -70,50 +70,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\031google/api/resource.proto\032\032google/ch" + "at/v1/group.proto\032\031google/chat/v1/user.p" + "roto\032 google/protobuf/field_mask.proto\032\037" - + "google/protobuf/timestamp.proto\"\220\005\n\nMemb" - + "ership\0221\n\004name\030\001 \001(\tB#\372A \n\036chat.googleap" - + "is.com/Membership\022>\n\005state\030\002 \001(\0162*.googl" - + "e.chat.v1.Membership.MembershipStateB\003\340A" - + "\003\022<\n\004role\030\007 \001(\0162).google.chat.v1.Members" - + "hip.MembershipRoleB\003\340A\001\022&\n\006member\030\003 \001(\0132" - + "\024.google.chat.v1.UserH\000\022-\n\014group_member\030" - + "\005 \001(\0132\025.google.chat.v1.GroupH\000\0227\n\013create" - + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" - + "\006\340A\005\340A\001\0227\n\013delete_time\030\010 \001(\0132\032.google.pr" - + "otobuf.TimestampB\006\340A\005\340A\001\"^\n\017MembershipSt" - + "ate\022 \n\034MEMBERSHIP_STATE_UNSPECIFIED\020\000\022\n\n" - + "\006JOINED\020\001\022\013\n\007INVITED\020\002\022\020\n\014NOT_A_MEMBER\020\003" - + "\"T\n\016MembershipRole\022\037\n\033MEMBERSHIP_ROLE_UN" - + "SPECIFIED\020\000\022\017\n\013ROLE_MEMBER\020\001\022\020\n\014ROLE_MAN" - + "AGER\020\002:D\352AA\n\036chat.googleapis.com/Members" - + "hip\022\037spaces/{space}/members/{member}B\014\n\n" - + "memberType\"\240\001\n\027CreateMembershipRequest\0226" - + "\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036chat.googleapis." - + "com/Membership\0223\n\nmembership\030\002 \001(\0132\032.goo" - + "gle.chat.v1.MembershipB\003\340A\002\022\030\n\020use_admin" - + "_access\030\005 \001(\010\"\236\001\n\027UpdateMembershipReques" - + "t\0223\n\nmembership\030\001 \001(\0132\032.google.chat.v1.M" - + "embershipB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\022\030\n\020use_admi" - + "n_access\030\003 \001(\010\"\345\001\n\026ListMembershipsReques" - + "t\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036chat.googleap" - + "is.com/Membership\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\005 \001" - + "(\tB\003\340A\001\022\030\n\013show_groups\030\006 \001(\010B\003\340A\001\022\031\n\014sho" - + "w_invited\030\007 \001(\010B\003\340A\001\022\030\n\020use_admin_access" - + "\030\010 \001(\010\"h\n\027ListMembershipsResponse\0224\n\013mem" - + "berships\030\001 \003(\0132\032.google.chat.v1.Membersh" - + "ipB\003\340A\006\022\027\n\017next_page_token\030\002 \001(\t\"f\n\024GetM" - + "embershipRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036" - + "chat.googleapis.com/Membership\022\030\n\020use_ad" - + "min_access\030\003 \001(\010\"i\n\027DeleteMembershipRequ" - + "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036chat.googleap" - + "is.com/Membership\022\030\n\020use_admin_access\030\002 " - + "\001(\010B\250\001\n\022com.google.chat.v1B\017MembershipPr" - + "otoP\001Z,cloud.google.com/go/chat/apiv1/ch" - + "atpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps." - + "Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::" - + "Apps::Chat::V1b\006proto3" + + "google/protobuf/timestamp.proto\"\372\004\n\nMemb" + + "ership\022\021\n\004name\030\001 \001(\tB\003\340A\010\022>\n\005state\030\002 \001(\016" + + "2*.google.chat.v1.Membership.MembershipS" + + "tateB\003\340A\003\022<\n\004role\030\007 \001(\0162).google.chat.v1" + + ".Membership.MembershipRoleB\003\340A\001\022+\n\006membe" + + "r\030\003 \001(\0132\024.google.chat.v1.UserB\003\340A\001H\000\0222\n\014" + + "group_member\030\005 \001(\0132\025.google.chat.v1.Grou" + + "pB\003\340A\001H\000\0227\n\013create_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\006\340A\005\340A\001\0227\n\013delete_time" + + "\030\010 \001(\0132\032.google.protobuf.TimestampB\006\340A\005\340" + + "A\001\"^\n\017MembershipState\022 \n\034MEMBERSHIP_STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006JOINED\020\001\022\013\n\007INVITED\020\002" + + "\022\020\n\014NOT_A_MEMBER\020\003\"T\n\016MembershipRole\022\037\n\033" + + "MEMBERSHIP_ROLE_UNSPECIFIED\020\000\022\017\n\013ROLE_ME" + + "MBER\020\001\022\020\n\014ROLE_MANAGER\020\002:D\352AA\n\036chat.goog" + + "leapis.com/Membership\022\037spaces/{space}/me" + + "mbers/{member}B\014\n\nmemberType\"\245\001\n\027CreateM" + + "embershipRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A " + + "\022\036chat.googleapis.com/Membership\0223\n\nmemb" + + "ership\030\002 \001(\0132\032.google.chat.v1.Membership" + + "B\003\340A\002\022\035\n\020use_admin_access\030\005 \001(\010B\003\340A\001\"\243\001\n" + + "\027UpdateMembershipRequest\0223\n\nmembership\030\001" + + " \001(\0132\032.google.chat.v1.MembershipB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\022\035\n\020use_admin_access\030\003 \001(\010B\003\340" + + "A\001\"\352\001\n\026ListMembershipsRequest\0226\n\006parent\030" + + "\001 \001(\tB&\340A\002\372A \022\036chat.googleapis.com/Membe" + + "rship\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\005 \001(\tB\003\340A\001\022\030\n\013s" + + "how_groups\030\006 \001(\010B\003\340A\001\022\031\n\014show_invited\030\007 " + + "\001(\010B\003\340A\001\022\035\n\020use_admin_access\030\010 \001(\010B\003\340A\001\"" + + "h\n\027ListMembershipsResponse\0224\n\013membership" + + "s\030\001 \003(\0132\032.google.chat.v1.MembershipB\003\340A\006" + + "\022\027\n\017next_page_token\030\002 \001(\t\"k\n\024GetMembersh" + + "ipRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036chat.go" + + "ogleapis.com/Membership\022\035\n\020use_admin_acc" + + "ess\030\003 \001(\010B\003\340A\001\"n\n\027DeleteMembershipReques" + + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036chat.googleapis" + + ".com/Membership\022\035\n\020use_admin_access\030\002 \001(" + + "\010B\003\340A\001B\250\001\n\022com.google.chat.v1B\017Membershi" + + "pProtoP\001Z,cloud.google.com/go/chat/apiv1" + + "/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.Ap" + + "ps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Googl" + + "e::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java index 158b7c1a989f..5987999bbea9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Resource name of the message.
      +   * Identifier. Resource name of the message.
          *
          * Format: `spaces/{space}/messages/{message}`
          *
      @@ -98,7 +98,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -118,7 +118,7 @@ public java.lang.String getName() { * * *
      -   * Resource name of the message.
      +   * Identifier. Resource name of the message.
          *
          * Format: `spaces/{space}/messages/{message}`
          *
      @@ -135,7 +135,7 @@ public java.lang.String getName() {
          * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -402,10 +402,10 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * * *
      -   * Plain-text body of the message. The first link to an image, video, or web
      -   * page generates a
      -   * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -   * You can also [@mention a Google Chat
      +   * Optional. Plain-text body of the message. The first link to an image,
      +   * video, or web page generates a [preview
      +   * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +   * also [@mention a Google Chat
          * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
          * or everyone in the space.
          *
      @@ -413,7 +413,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
          * message](https://developers.google.com/workspace/chat/create-messages).
          * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The text. */ @@ -433,10 +433,10 @@ public java.lang.String getText() { * * *
      -   * Plain-text body of the message. The first link to an image, video, or web
      -   * page generates a
      -   * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -   * You can also [@mention a Google Chat
      +   * Optional. Plain-text body of the message. The first link to an image,
      +   * video, or web page generates a [preview
      +   * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +   * also [@mention a Google Chat
          * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
          * or everyone in the space.
          *
      @@ -444,7 +444,7 @@ public java.lang.String getText() {
          * message](https://developers.google.com/workspace/chat/create-messages).
          * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for text. */ @@ -665,7 +665,7 @@ public com.google.chat.v1.ContextualAddOnMarkup.CardOrBuilder getCardsOrBuilder( * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -678,7 +678,9 @@ public com.google.chat.v1.ContextualAddOnMarkup.CardOrBuilder getCardsOrBuilder(
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getCardsV2List() { @@ -688,7 +690,7 @@ public java.util.List getCardsV2List() { * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -701,7 +703,9 @@ public java.util.List getCardsV2List() {
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -712,7 +716,7 @@ public java.util.List getCardsV2List() { * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -725,7 +729,9 @@ public java.util.List getCardsV2List() {
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getCardsV2Count() { @@ -735,7 +741,7 @@ public int getCardsV2Count() { * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -748,7 +754,9 @@ public int getCardsV2Count() {
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.CardWithId getCardsV2(int index) { @@ -758,7 +766,7 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -771,7 +779,9 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) {
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { @@ -917,14 +927,14 @@ public com.google.chat.v1.ThreadOrBuilder getThreadOrBuilder() { * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the space field is set. */ @@ -936,14 +946,14 @@ public boolean hasSpace() { * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The space. */ @@ -955,14 +965,14 @@ public com.google.chat.v1.Space getSpace() { * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { @@ -977,11 +987,11 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { * * *
      -   * A plain-text description of the message's cards, used when the actual cards
      -   * can't be displayed—for example, mobile notifications.
      +   * Optional. A plain-text description of the message's cards, used when the
      +   * actual cards can't be displayed—for example, mobile notifications.
          * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fallbackText. */ @@ -1001,11 +1011,11 @@ public java.lang.String getFallbackText() { * * *
      -   * A plain-text description of the message's cards, used when the actual cards
      -   * can't be displayed—for example, mobile notifications.
      +   * Optional. A plain-text description of the message's cards, used when the
      +   * actual cards can't be displayed—for example, mobile notifications.
          * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fallbackText. */ @@ -1198,10 +1208,12 @@ public com.google.chat.v1.SlashCommandOrBuilder getSlashCommandOrBuilder() { * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getAttachmentList() { @@ -1211,10 +1223,12 @@ public java.util.List getAttachmentList() { * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -1225,10 +1239,12 @@ public java.util.List getAttachmentList() { * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAttachmentCount() { @@ -1238,10 +1254,12 @@ public int getAttachmentCount() { * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Attachment getAttachment(int index) { @@ -1251,10 +1269,12 @@ public com.google.chat.v1.Attachment getAttachment(int index) { * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index) { @@ -1355,7 +1375,7 @@ public boolean getThreadReply() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientAssignedMessageId. */ @@ -1383,7 +1403,7 @@ public java.lang.String getClientAssignedMessageId() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientAssignedMessageId. */ @@ -1488,10 +1508,10 @@ public com.google.chat.v1.EmojiReactionSummaryOrBuilder getEmojiReactionSummarie * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1504,7 +1524,7 @@ public com.google.chat.v1.EmojiReactionSummaryOrBuilder getEmojiReactionSummarie
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateMessageViewer field is set. @@ -1517,10 +1537,10 @@ public boolean hasPrivateMessageViewer() { * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1533,7 +1553,7 @@ public boolean hasPrivateMessageViewer() {
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return The privateMessageViewer. @@ -1548,10 +1568,10 @@ public com.google.chat.v1.User getPrivateMessageViewer() { * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1564,7 +1584,7 @@ public com.google.chat.v1.User getPrivateMessageViewer() {
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1781,10 +1801,10 @@ public com.google.chat.v1.AttachedGifOrBuilder getAttachedGifsOrBuilder(int inde * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1792,7 +1812,9 @@ public com.google.chat.v1.AttachedGifOrBuilder getAttachedGifsOrBuilder(int inde
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getAccessoryWidgetsList() { @@ -1802,10 +1824,10 @@ public java.util.List getAccessoryWidgetsLis * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1813,7 +1835,9 @@ public java.util.List getAccessoryWidgetsLis
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -1824,10 +1848,10 @@ public java.util.List getAccessoryWidgetsLis * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1835,7 +1859,9 @@ public java.util.List getAccessoryWidgetsLis
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAccessoryWidgetsCount() { @@ -1845,10 +1871,10 @@ public int getAccessoryWidgetsCount() { * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1856,7 +1882,9 @@ public int getAccessoryWidgetsCount() {
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) { @@ -1866,10 +1894,10 @@ public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) { * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1877,7 +1905,9 @@ public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) {
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index) { @@ -3268,7 +3298,7 @@ public Builder mergeFrom( * * *
      -     * Resource name of the message.
      +     * Identifier. Resource name of the message.
            *
            * Format: `spaces/{space}/messages/{message}`
            *
      @@ -3285,7 +3315,7 @@ public Builder mergeFrom(
            * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3304,7 +3334,7 @@ public java.lang.String getName() { * * *
      -     * Resource name of the message.
      +     * Identifier. Resource name of the message.
            *
            * Format: `spaces/{space}/messages/{message}`
            *
      @@ -3321,7 +3351,7 @@ public java.lang.String getName() {
            * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -3340,7 +3370,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Resource name of the message.
      +     * Identifier. Resource name of the message.
            *
            * Format: `spaces/{space}/messages/{message}`
            *
      @@ -3357,7 +3387,7 @@ public com.google.protobuf.ByteString getNameBytes() {
            * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -3375,7 +3405,7 @@ public Builder setName(java.lang.String value) { * * *
      -     * Resource name of the message.
      +     * Identifier. Resource name of the message.
            *
            * Format: `spaces/{space}/messages/{message}`
            *
      @@ -3392,7 +3422,7 @@ public Builder setName(java.lang.String value) {
            * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -3406,7 +3436,7 @@ public Builder clearName() { * * *
      -     * Resource name of the message.
      +     * Identifier. Resource name of the message.
            *
            * Format: `spaces/{space}/messages/{message}`
            *
      @@ -3423,7 +3453,7 @@ public Builder clearName() {
            * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -4350,10 +4380,10 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * * *
      -     * Plain-text body of the message. The first link to an image, video, or web
      -     * page generates a
      -     * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -     * You can also [@mention a Google Chat
      +     * Optional. Plain-text body of the message. The first link to an image,
      +     * video, or web page generates a [preview
      +     * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +     * also [@mention a Google Chat
            * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
            * or everyone in the space.
            *
      @@ -4361,7 +4391,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
            * message](https://developers.google.com/workspace/chat/create-messages).
            * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The text. */ @@ -4380,10 +4410,10 @@ public java.lang.String getText() { * * *
      -     * Plain-text body of the message. The first link to an image, video, or web
      -     * page generates a
      -     * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -     * You can also [@mention a Google Chat
      +     * Optional. Plain-text body of the message. The first link to an image,
      +     * video, or web page generates a [preview
      +     * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +     * also [@mention a Google Chat
            * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
            * or everyone in the space.
            *
      @@ -4391,7 +4421,7 @@ public java.lang.String getText() {
            * message](https://developers.google.com/workspace/chat/create-messages).
            * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for text. */ @@ -4410,10 +4440,10 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
      -     * Plain-text body of the message. The first link to an image, video, or web
      -     * page generates a
      -     * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -     * You can also [@mention a Google Chat
      +     * Optional. Plain-text body of the message. The first link to an image,
      +     * video, or web page generates a [preview
      +     * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +     * also [@mention a Google Chat
            * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
            * or everyone in the space.
            *
      @@ -4421,7 +4451,7 @@ public com.google.protobuf.ByteString getTextBytes() {
            * message](https://developers.google.com/workspace/chat/create-messages).
            * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The text to set. * @return This builder for chaining. @@ -4439,10 +4469,10 @@ public Builder setText(java.lang.String value) { * * *
      -     * Plain-text body of the message. The first link to an image, video, or web
      -     * page generates a
      -     * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -     * You can also [@mention a Google Chat
      +     * Optional. Plain-text body of the message. The first link to an image,
      +     * video, or web page generates a [preview
      +     * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +     * also [@mention a Google Chat
            * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
            * or everyone in the space.
            *
      @@ -4450,7 +4480,7 @@ public Builder setText(java.lang.String value) {
            * message](https://developers.google.com/workspace/chat/create-messages).
            * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -4464,10 +4494,10 @@ public Builder clearText() { * * *
      -     * Plain-text body of the message. The first link to an image, video, or web
      -     * page generates a
      -     * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -     * You can also [@mention a Google Chat
      +     * Optional. Plain-text body of the message. The first link to an image,
      +     * video, or web page generates a [preview
      +     * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +     * also [@mention a Google Chat
            * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
            * or everyone in the space.
            *
      @@ -4475,7 +4505,7 @@ public Builder clearText() {
            * message](https://developers.google.com/workspace/chat/create-messages).
            * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for text to set. * @return This builder for chaining. @@ -5202,7 +5232,7 @@ private void ensureCardsV2IsMutable() { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5215,7 +5245,9 @@ private void ensureCardsV2IsMutable() {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getCardsV2List() { if (cardsV2Builder_ == null) { @@ -5228,7 +5260,7 @@ public java.util.List getCardsV2List() { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5241,7 +5273,9 @@ public java.util.List getCardsV2List() {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getCardsV2Count() { if (cardsV2Builder_ == null) { @@ -5254,7 +5288,7 @@ public int getCardsV2Count() { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5267,7 +5301,9 @@ public int getCardsV2Count() {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.CardWithId getCardsV2(int index) { if (cardsV2Builder_ == null) { @@ -5280,7 +5316,7 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5293,7 +5329,9 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) { if (cardsV2Builder_ == null) { @@ -5312,7 +5350,7 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5325,7 +5363,9 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder builderForValue) { if (cardsV2Builder_ == null) { @@ -5341,7 +5381,7 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5354,7 +5394,9 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder build
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCardsV2(com.google.chat.v1.CardWithId value) { if (cardsV2Builder_ == null) { @@ -5373,7 +5415,7 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId value) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5386,7 +5428,9 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId value) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) { if (cardsV2Builder_ == null) { @@ -5405,7 +5449,7 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5418,7 +5462,9 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue) { if (cardsV2Builder_ == null) { @@ -5434,7 +5480,7 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue) * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5447,7 +5493,9 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue)
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder builderForValue) { if (cardsV2Builder_ == null) { @@ -5463,7 +5511,7 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5476,7 +5524,9 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder build
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllCardsV2( java.lang.Iterable values) { @@ -5493,7 +5543,7 @@ public Builder addAllCardsV2( * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5506,7 +5556,9 @@ public Builder addAllCardsV2(
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCardsV2() { if (cardsV2Builder_ == null) { @@ -5522,7 +5574,7 @@ public Builder clearCardsV2() { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5535,7 +5587,9 @@ public Builder clearCardsV2() {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeCardsV2(int index) { if (cardsV2Builder_ == null) { @@ -5551,7 +5605,7 @@ public Builder removeCardsV2(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5564,7 +5618,9 @@ public Builder removeCardsV2(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) { return getCardsV2FieldBuilder().getBuilder(index); @@ -5573,7 +5629,7 @@ public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5586,7 +5642,9 @@ public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { if (cardsV2Builder_ == null) { @@ -5599,7 +5657,7 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5612,7 +5670,9 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getCardsV2OrBuilderList() { @@ -5626,7 +5686,7 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5639,7 +5699,9 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() { return getCardsV2FieldBuilder() @@ -5649,7 +5711,7 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5662,7 +5724,9 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) { return getCardsV2FieldBuilder() @@ -5672,7 +5736,7 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) { * * *
      -     * An array of
      +     * Optional. An array of
            * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
            *
            * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -5685,7 +5749,9 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) {
            * [Card builder](https://addons.gsuite.google.com/uikit/builder)
            * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getCardsV2BuilderList() { return getCardsV2FieldBuilder().getBuilderList(); @@ -6300,14 +6366,14 @@ public com.google.chat.v1.ThreadOrBuilder getThreadOrBuilder() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the space field is set. */ @@ -6318,14 +6384,14 @@ public boolean hasSpace() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The space. */ @@ -6340,14 +6406,14 @@ public com.google.chat.v1.Space getSpace() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSpace(com.google.chat.v1.Space value) { if (spaceBuilder_ == null) { @@ -6366,14 +6432,14 @@ public Builder setSpace(com.google.chat.v1.Space value) { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSpace(com.google.chat.v1.Space.Builder builderForValue) { if (spaceBuilder_ == null) { @@ -6389,14 +6455,14 @@ public Builder setSpace(com.google.chat.v1.Space.Builder builderForValue) { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSpace(com.google.chat.v1.Space value) { if (spaceBuilder_ == null) { @@ -6420,14 +6486,14 @@ public Builder mergeSpace(com.google.chat.v1.Space value) { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSpace() { bitField0_ = (bitField0_ & ~0x00000800); @@ -6443,14 +6509,14 @@ public Builder clearSpace() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.chat.v1.Space.Builder getSpaceBuilder() { bitField0_ |= 0x00000800; @@ -6461,14 +6527,14 @@ public com.google.chat.v1.Space.Builder getSpaceBuilder() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { if (spaceBuilder_ != null) { @@ -6481,14 +6547,14 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { * * *
      -     * If your Chat app [authenticates as a
      +     * Output only. If your Chat app [authenticates as a
            * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -     * the output populates the
      +     * the output only populates the
            * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
            * `name`.
            * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space, @@ -6511,11 +6577,11 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { * * *
      -     * A plain-text description of the message's cards, used when the actual cards
      -     * can't be displayed—for example, mobile notifications.
      +     * Optional. A plain-text description of the message's cards, used when the
      +     * actual cards can't be displayed—for example, mobile notifications.
            * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fallbackText. */ @@ -6534,11 +6600,11 @@ public java.lang.String getFallbackText() { * * *
      -     * A plain-text description of the message's cards, used when the actual cards
      -     * can't be displayed—for example, mobile notifications.
      +     * Optional. A plain-text description of the message's cards, used when the
      +     * actual cards can't be displayed—for example, mobile notifications.
            * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fallbackText. */ @@ -6557,11 +6623,11 @@ public com.google.protobuf.ByteString getFallbackTextBytes() { * * *
      -     * A plain-text description of the message's cards, used when the actual cards
      -     * can't be displayed—for example, mobile notifications.
      +     * Optional. A plain-text description of the message's cards, used when the
      +     * actual cards can't be displayed—for example, mobile notifications.
            * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The fallbackText to set. * @return This builder for chaining. @@ -6579,11 +6645,11 @@ public Builder setFallbackText(java.lang.String value) { * * *
      -     * A plain-text description of the message's cards, used when the actual cards
      -     * can't be displayed—for example, mobile notifications.
      +     * Optional. A plain-text description of the message's cards, used when the
      +     * actual cards can't be displayed—for example, mobile notifications.
            * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6597,11 +6663,11 @@ public Builder clearFallbackText() { * * *
      -     * A plain-text description of the message's cards, used when the actual cards
      -     * can't be displayed—for example, mobile notifications.
      +     * Optional. A plain-text description of the message's cards, used when the
      +     * actual cards can't be displayed—for example, mobile notifications.
            * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for fallbackText to set. * @return This builder for chaining. @@ -7163,10 +7229,12 @@ private void ensureAttachmentIsMutable() { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAttachmentList() { if (attachmentBuilder_ == null) { @@ -7179,10 +7247,12 @@ public java.util.List getAttachmentList() { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAttachmentCount() { if (attachmentBuilder_ == null) { @@ -7195,10 +7265,12 @@ public int getAttachmentCount() { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Attachment getAttachment(int index) { if (attachmentBuilder_ == null) { @@ -7211,10 +7283,12 @@ public com.google.chat.v1.Attachment getAttachment(int index) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAttachment(int index, com.google.chat.v1.Attachment value) { if (attachmentBuilder_ == null) { @@ -7233,10 +7307,12 @@ public Builder setAttachment(int index, com.google.chat.v1.Attachment value) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAttachment(int index, com.google.chat.v1.Attachment.Builder builderForValue) { if (attachmentBuilder_ == null) { @@ -7252,10 +7328,12 @@ public Builder setAttachment(int index, com.google.chat.v1.Attachment.Builder bu * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAttachment(com.google.chat.v1.Attachment value) { if (attachmentBuilder_ == null) { @@ -7274,10 +7352,12 @@ public Builder addAttachment(com.google.chat.v1.Attachment value) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAttachment(int index, com.google.chat.v1.Attachment value) { if (attachmentBuilder_ == null) { @@ -7296,10 +7376,12 @@ public Builder addAttachment(int index, com.google.chat.v1.Attachment value) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAttachment(com.google.chat.v1.Attachment.Builder builderForValue) { if (attachmentBuilder_ == null) { @@ -7315,10 +7397,12 @@ public Builder addAttachment(com.google.chat.v1.Attachment.Builder builderForVal * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAttachment(int index, com.google.chat.v1.Attachment.Builder builderForValue) { if (attachmentBuilder_ == null) { @@ -7334,10 +7418,12 @@ public Builder addAttachment(int index, com.google.chat.v1.Attachment.Builder bu * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAttachment( java.lang.Iterable values) { @@ -7354,10 +7440,12 @@ public Builder addAllAttachment( * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAttachment() { if (attachmentBuilder_ == null) { @@ -7373,10 +7461,12 @@ public Builder clearAttachment() { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAttachment(int index) { if (attachmentBuilder_ == null) { @@ -7392,10 +7482,12 @@ public Builder removeAttachment(int index) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Attachment.Builder getAttachmentBuilder(int index) { return getAttachmentFieldBuilder().getBuilder(index); @@ -7404,10 +7496,12 @@ public com.google.chat.v1.Attachment.Builder getAttachmentBuilder(int index) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index) { if (attachmentBuilder_ == null) { @@ -7420,10 +7514,12 @@ public com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index) * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAttachmentOrBuilderList() { @@ -7437,10 +7533,12 @@ public com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index) * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Attachment.Builder addAttachmentBuilder() { return getAttachmentFieldBuilder() @@ -7450,10 +7548,12 @@ public com.google.chat.v1.Attachment.Builder addAttachmentBuilder() { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Attachment.Builder addAttachmentBuilder(int index) { return getAttachmentFieldBuilder() @@ -7463,10 +7563,12 @@ public com.google.chat.v1.Attachment.Builder addAttachmentBuilder(int index) { * * *
      -     * User-uploaded attachment.
      +     * Optional. User-uploaded attachment.
            * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAttachmentBuilderList() { return getAttachmentFieldBuilder().getBuilderList(); @@ -7791,7 +7893,8 @@ public Builder clearThreadReply() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The clientAssignedMessageId. */ @@ -7818,7 +7921,8 @@ public java.lang.String getClientAssignedMessageId() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for clientAssignedMessageId. */ @@ -7845,7 +7949,8 @@ public com.google.protobuf.ByteString getClientAssignedMessageIdBytes() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The clientAssignedMessageId to set. * @return This builder for chaining. @@ -7871,7 +7976,8 @@ public Builder setClientAssignedMessageId(java.lang.String value) { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -7893,7 +7999,8 @@ public Builder clearClientAssignedMessageId() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes for clientAssignedMessageId to set. * @return This builder for chaining. @@ -8315,10 +8422,10 @@ public com.google.chat.v1.EmojiReactionSummary.Builder addEmojiReactionSummaries * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8331,7 +8438,7 @@ public com.google.chat.v1.EmojiReactionSummary.Builder addEmojiReactionSummaries
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateMessageViewer field is set. @@ -8343,10 +8450,10 @@ public boolean hasPrivateMessageViewer() { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8359,7 +8466,7 @@ public boolean hasPrivateMessageViewer() {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return The privateMessageViewer. @@ -8377,10 +8484,10 @@ public com.google.chat.v1.User getPrivateMessageViewer() { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8393,7 +8500,7 @@ public com.google.chat.v1.User getPrivateMessageViewer() {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateMessageViewer(com.google.chat.v1.User value) { @@ -8413,10 +8520,10 @@ public Builder setPrivateMessageViewer(com.google.chat.v1.User value) { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8429,7 +8536,7 @@ public Builder setPrivateMessageViewer(com.google.chat.v1.User value) {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateMessageViewer(com.google.chat.v1.User.Builder builderForValue) { @@ -8446,10 +8553,10 @@ public Builder setPrivateMessageViewer(com.google.chat.v1.User.Builder builderFo * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8462,7 +8569,7 @@ public Builder setPrivateMessageViewer(com.google.chat.v1.User.Builder builderFo
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergePrivateMessageViewer(com.google.chat.v1.User value) { @@ -8487,10 +8594,10 @@ public Builder mergePrivateMessageViewer(com.google.chat.v1.User value) { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8503,7 +8610,7 @@ public Builder mergePrivateMessageViewer(com.google.chat.v1.User value) {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearPrivateMessageViewer() { @@ -8520,10 +8627,10 @@ public Builder clearPrivateMessageViewer() { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8536,7 +8643,7 @@ public Builder clearPrivateMessageViewer() {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.User.Builder getPrivateMessageViewerBuilder() { @@ -8548,10 +8655,10 @@ public com.google.chat.v1.User.Builder getPrivateMessageViewerBuilder() { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8564,7 +8671,7 @@ public com.google.chat.v1.User.Builder getPrivateMessageViewerBuilder() {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.UserOrBuilder getPrivateMessageViewerOrBuilder() { @@ -8580,10 +8687,10 @@ public com.google.chat.v1.UserOrBuilder getPrivateMessageViewerOrBuilder() { * * *
      -     * Immutable. Input for creating a message, otherwise output only. The user
      -     * that can view the message. When set, the message is private and only
      -     * visible to the specified user and the Chat app. To include this field in
      -     * your request, you must call the Chat API using [app
      +     * Optional. Immutable. Input for creating a message, otherwise output only.
      +     * The user that can view the message. When set, the message is private and
      +     * only visible to the specified user and the Chat app. To include this field
      +     * in your request, you must call the Chat API using [app
            * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
            * and omit the following:
            *
      @@ -8596,7 +8703,7 @@ public com.google.chat.v1.UserOrBuilder getPrivateMessageViewerOrBuilder() {
            * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -9448,10 +9555,10 @@ private void ensureAccessoryWidgetsIsMutable() { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9459,7 +9566,9 @@ private void ensureAccessoryWidgetsIsMutable() {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAccessoryWidgetsList() { if (accessoryWidgetsBuilder_ == null) { @@ -9472,10 +9581,10 @@ public java.util.List getAccessoryWidgetsLis * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9483,7 +9592,9 @@ public java.util.List getAccessoryWidgetsLis
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAccessoryWidgetsCount() { if (accessoryWidgetsBuilder_ == null) { @@ -9496,10 +9607,10 @@ public int getAccessoryWidgetsCount() { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9507,7 +9618,9 @@ public int getAccessoryWidgetsCount() {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) { if (accessoryWidgetsBuilder_ == null) { @@ -9520,10 +9633,10 @@ public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9531,7 +9644,9 @@ public com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index) {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget value) { if (accessoryWidgetsBuilder_ == null) { @@ -9550,10 +9665,10 @@ public Builder setAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9561,7 +9676,9 @@ public Builder setAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccessoryWidgets( int index, com.google.chat.v1.AccessoryWidget.Builder builderForValue) { @@ -9578,10 +9695,10 @@ public Builder setAccessoryWidgets( * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9589,7 +9706,9 @@ public Builder setAccessoryWidgets(
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget value) { if (accessoryWidgetsBuilder_ == null) { @@ -9608,10 +9727,10 @@ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget value) { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9619,7 +9738,9 @@ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget value) {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget value) { if (accessoryWidgetsBuilder_ == null) { @@ -9638,10 +9759,10 @@ public Builder addAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9649,7 +9770,9 @@ public Builder addAccessoryWidgets(int index, com.google.chat.v1.AccessoryWidget
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget.Builder builderForValue) { if (accessoryWidgetsBuilder_ == null) { @@ -9665,10 +9788,10 @@ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget.Builder bu * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9676,7 +9799,9 @@ public Builder addAccessoryWidgets(com.google.chat.v1.AccessoryWidget.Builder bu
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccessoryWidgets( int index, com.google.chat.v1.AccessoryWidget.Builder builderForValue) { @@ -9693,10 +9818,10 @@ public Builder addAccessoryWidgets( * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9704,7 +9829,9 @@ public Builder addAccessoryWidgets(
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAccessoryWidgets( java.lang.Iterable values) { @@ -9721,10 +9848,10 @@ public Builder addAllAccessoryWidgets( * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9732,7 +9859,9 @@ public Builder addAllAccessoryWidgets(
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccessoryWidgets() { if (accessoryWidgetsBuilder_ == null) { @@ -9748,10 +9877,10 @@ public Builder clearAccessoryWidgets() { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9759,7 +9888,9 @@ public Builder clearAccessoryWidgets() {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAccessoryWidgets(int index) { if (accessoryWidgetsBuilder_ == null) { @@ -9775,10 +9906,10 @@ public Builder removeAccessoryWidgets(int index) { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9786,7 +9917,9 @@ public Builder removeAccessoryWidgets(int index) {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AccessoryWidget.Builder getAccessoryWidgetsBuilder(int index) { return getAccessoryWidgetsFieldBuilder().getBuilder(index); @@ -9795,10 +9928,10 @@ public com.google.chat.v1.AccessoryWidget.Builder getAccessoryWidgetsBuilder(int * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9806,7 +9939,9 @@ public com.google.chat.v1.AccessoryWidget.Builder getAccessoryWidgetsBuilder(int
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index) { if (accessoryWidgetsBuilder_ == null) { @@ -9819,10 +9954,10 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder( * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9830,7 +9965,9 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAccessoryWidgetsOrBuilderList() { @@ -9844,10 +9981,10 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder( * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9855,7 +9992,9 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder() { return getAccessoryWidgetsFieldBuilder() @@ -9865,10 +10004,10 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder() { * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9876,7 +10015,9 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder() {
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int index) { return getAccessoryWidgetsFieldBuilder() @@ -9886,10 +10027,10 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int * * *
      -     * One or more interactive widgets that appear at the bottom of a message.
      -     * You can add accessory widgets to messages that contain text, cards, or both
      -     * text and cards. Not supported for messages that contain dialogs. For
      -     * details, see [Add interactive widgets at the bottom of a
      +     * Optional. One or more interactive widgets that appear at the bottom of a
      +     * message. You can add accessory widgets to messages that contain text,
      +     * cards, or both text and cards. Not supported for messages that contain
      +     * dialogs. For details, see [Add interactive widgets at the bottom of a
            * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
            *
            * Creating a message with accessory widgets requires [app
      @@ -9897,7 +10038,9 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int
            * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
            * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getAccessoryWidgetsBuilderList() { diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index a5ca68ebf798..e6889f9a3411 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -28,7 +28,7 @@ public interface MessageOrBuilder * * *
      -   * Resource name of the message.
      +   * Identifier. Resource name of the message.
          *
          * Format: `spaces/{space}/messages/{message}`
          *
      @@ -45,7 +45,7 @@ public interface MessageOrBuilder
          * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -54,7 +54,7 @@ public interface MessageOrBuilder * * *
      -   * Resource name of the message.
      +   * Identifier. Resource name of the message.
          *
          * Format: `spaces/{space}/messages/{message}`
          *
      @@ -71,7 +71,7 @@ public interface MessageOrBuilder
          * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -275,10 +275,10 @@ public interface MessageOrBuilder * * *
      -   * Plain-text body of the message. The first link to an image, video, or web
      -   * page generates a
      -   * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -   * You can also [@mention a Google Chat
      +   * Optional. Plain-text body of the message. The first link to an image,
      +   * video, or web page generates a [preview
      +   * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +   * also [@mention a Google Chat
          * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
          * or everyone in the space.
          *
      @@ -286,7 +286,7 @@ public interface MessageOrBuilder
          * message](https://developers.google.com/workspace/chat/create-messages).
          * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The text. */ @@ -295,10 +295,10 @@ public interface MessageOrBuilder * * *
      -   * Plain-text body of the message. The first link to an image, video, or web
      -   * page generates a
      -   * [preview chip](https://developers.google.com/workspace/chat/preview-links).
      -   * You can also [@mention a Google Chat
      +   * Optional. Plain-text body of the message. The first link to an image,
      +   * video, or web page generates a [preview
      +   * chip](https://developers.google.com/workspace/chat/preview-links). You can
      +   * also [@mention a Google Chat
          * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
          * or everyone in the space.
          *
      @@ -306,7 +306,7 @@ public interface MessageOrBuilder
          * message](https://developers.google.com/workspace/chat/create-messages).
          * 
      * - * string text = 4; + * string text = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for text. */ @@ -467,7 +467,7 @@ public interface MessageOrBuilder * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -480,14 +480,16 @@ public interface MessageOrBuilder
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getCardsV2List(); /** * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -500,14 +502,16 @@ public interface MessageOrBuilder
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.CardWithId getCardsV2(int index); /** * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -520,14 +524,16 @@ public interface MessageOrBuilder
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getCardsV2Count(); /** * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -540,14 +546,16 @@ public interface MessageOrBuilder
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getCardsV2OrBuilderList(); /** * * *
      -   * An array of
      +   * Optional. An array of
          * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
          *
          * Only Chat apps can create cards. If your Chat app [authenticates as a
      @@ -560,7 +568,9 @@ public interface MessageOrBuilder
          * [Card builder](https://addons.gsuite.google.com/uikit/builder)
          * 
      * - * repeated .google.chat.v1.CardWithId cards_v2 = 22; + * + * repeated .google.chat.v1.CardWithId cards_v2 = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index); @@ -670,14 +680,14 @@ public interface MessageOrBuilder * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the space field is set. */ @@ -686,14 +696,14 @@ public interface MessageOrBuilder * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The space. */ @@ -702,14 +712,14 @@ public interface MessageOrBuilder * * *
      -   * If your Chat app [authenticates as a
      +   * Output only. If your Chat app [authenticates as a
          * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
      -   * the output populates the
      +   * the output only populates the
          * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
          * `name`.
          * 
      * - * .google.chat.v1.Space space = 12; + * .google.chat.v1.Space space = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder(); @@ -717,11 +727,11 @@ public interface MessageOrBuilder * * *
      -   * A plain-text description of the message's cards, used when the actual cards
      -   * can't be displayed—for example, mobile notifications.
      +   * Optional. A plain-text description of the message's cards, used when the
      +   * actual cards can't be displayed—for example, mobile notifications.
          * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fallbackText. */ @@ -730,11 +740,11 @@ public interface MessageOrBuilder * * *
      -   * A plain-text description of the message's cards, used when the actual cards
      -   * can't be displayed—for example, mobile notifications.
      +   * Optional. A plain-text description of the message's cards, used when the
      +   * actual cards can't be displayed—for example, mobile notifications.
          * 
      * - * string fallback_text = 13; + * string fallback_text = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fallbackText. */ @@ -856,50 +866,60 @@ public interface MessageOrBuilder * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getAttachmentList(); /** * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Attachment getAttachment(int index); /** * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttachmentCount(); /** * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getAttachmentOrBuilderList(); /** * * *
      -   * User-uploaded attachment.
      +   * Optional. User-uploaded attachment.
          * 
      * - * repeated .google.chat.v1.Attachment attachment = 18; + * + * repeated .google.chat.v1.Attachment attachment = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index); @@ -977,7 +997,7 @@ public interface MessageOrBuilder * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientAssignedMessageId. */ @@ -994,7 +1014,7 @@ public interface MessageOrBuilder * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). *
      * - * string client_assigned_message_id = 32; + * string client_assigned_message_id = 32 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientAssignedMessageId. */ @@ -1066,10 +1086,10 @@ public interface MessageOrBuilder * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1082,7 +1102,7 @@ public interface MessageOrBuilder
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateMessageViewer field is set. @@ -1092,10 +1112,10 @@ public interface MessageOrBuilder * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1108,7 +1128,7 @@ public interface MessageOrBuilder
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return The privateMessageViewer. @@ -1118,10 +1138,10 @@ public interface MessageOrBuilder * * *
      -   * Immutable. Input for creating a message, otherwise output only. The user
      -   * that can view the message. When set, the message is private and only
      -   * visible to the specified user and the Chat app. To include this field in
      -   * your request, you must call the Chat API using [app
      +   * Optional. Immutable. Input for creating a message, otherwise output only.
      +   * The user that can view the message. When set, the message is private and
      +   * only visible to the specified user and the Chat app. To include this field
      +   * in your request, you must call the Chat API using [app
          * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
          * and omit the following:
          *
      @@ -1134,7 +1154,7 @@ public interface MessageOrBuilder
          * 
      * * - * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ com.google.chat.v1.UserOrBuilder getPrivateMessageViewerOrBuilder(); @@ -1292,10 +1312,10 @@ public interface MessageOrBuilder * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1303,17 +1323,19 @@ public interface MessageOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getAccessoryWidgetsList(); /** * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1321,17 +1343,19 @@ public interface MessageOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.AccessoryWidget getAccessoryWidgets(int index); /** * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1339,17 +1363,19 @@ public interface MessageOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAccessoryWidgetsCount(); /** * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1357,7 +1383,9 @@ public interface MessageOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getAccessoryWidgetsOrBuilderList(); @@ -1365,10 +1393,10 @@ public interface MessageOrBuilder * * *
      -   * One or more interactive widgets that appear at the bottom of a message.
      -   * You can add accessory widgets to messages that contain text, cards, or both
      -   * text and cards. Not supported for messages that contain dialogs. For
      -   * details, see [Add interactive widgets at the bottom of a
      +   * Optional. One or more interactive widgets that appear at the bottom of a
      +   * message. You can add accessory widgets to messages that contain text,
      +   * cards, or both text and cards. Not supported for messages that contain
      +   * dialogs. For details, see [Add interactive widgets at the bottom of a
          * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
          *
          * Creating a message with accessory widgets requires [app
      @@ -1376,7 +1404,9 @@ public interface MessageOrBuilder
          * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
          * 
      * - * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; + * + * repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 656c186205a6..174953e84510 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -118,103 +118,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/slash_command.proto\032\032google/chat/v1/spa" + "ce.proto\032\031google/chat/v1/user.proto\032 goo" + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\251\n\n\007Message\022\014\n\004na" - + "me\030\001 \001(\t\022)\n\006sender\030\002 \001(\0132\024.google.chat.v" - + "1.UserB\003\340A\003\0227\n\013create_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\006\340A\005\340A\001\0229\n\020last_upd" - + "ate_time\030\027 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013delete_time\030\032 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\014\n\004text\030\004 \001(\t\022\033\n\016f" - + "ormatted_text\030+ \001(\tB\003\340A\003\022=\n\005cards\030\005 \003(\0132" - + "*.google.chat.v1.ContextualAddOnMarkup.C" - + "ardB\002\030\001\022,\n\010cards_v2\030\026 \003(\0132\032.google.chat." - + "v1.CardWithId\0224\n\013annotations\030\n \003(\0132\032.goo" - + "gle.chat.v1.AnnotationB\003\340A\003\022&\n\006thread\030\013 " - + "\001(\0132\026.google.chat.v1.Thread\022$\n\005space\030\014 \001" - + "(\0132\025.google.chat.v1.Space\022\025\n\rfallback_te" - + "xt\030\r \001(\t\022<\n\017action_response\030\016 \001(\0132\036.goog" - + "le.chat.v1.ActionResponseB\003\340A\004\022\032\n\rargume" - + "nt_text\030\017 \001(\tB\003\340A\003\0228\n\rslash_command\030\021 \001(" - + "\0132\034.google.chat.v1.SlashCommandB\003\340A\003\022.\n\n" - + "attachment\030\022 \003(\0132\032.google.chat.v1.Attach" - + "ment\0224\n\013matched_url\030\024 \001(\0132\032.google.chat." - + "v1.MatchedUrlB\003\340A\003\022\031\n\014thread_reply\030\031 \001(\010" - + "B\003\340A\003\022\"\n\032client_assigned_message_id\030 \001(" - + "\t\022K\n\030emoji_reaction_summaries\030! \003(\0132$.go" - + "ogle.chat.v1.EmojiReactionSummaryB\003\340A\003\0229" - + "\n\026private_message_viewer\030$ \001(\0132\024.google." - + "chat.v1.UserB\003\340A\005\022@\n\021deletion_metadata\030&" - + " \001(\0132 .google.chat.v1.DeletionMetadataB\003" - + "\340A\003\022K\n\027quoted_message_metadata\030\' \001(\0132%.g" - + "oogle.chat.v1.QuotedMessageMetadataB\003\340A\003" - + "\0227\n\rattached_gifs\030* \003(\0132\033.google.chat.v1" - + ".AttachedGifB\003\340A\003\022:\n\021accessory_widgets\030," - + " \003(\0132\037.google.chat.v1.AccessoryWidget:C\352" - + "A@\n\033chat.googleapis.com/Message\022!spaces/" - + "{space}/messages/{message}\"\037\n\013AttachedGi" - + "f\022\020\n\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n\025QuotedMessageMet" - + "adata\0221\n\004name\030\001 \001(\tB#\340A\003\372A\035\n\033chat.google" - + "apis.com/Message\0229\n\020last_update_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A" - + "~\n)chat.googleapis.com/QuotedMessageMeta" - + "data\022Qspaces/{space}/messages/{message}/" - + "quotedMessageMetadata/{quoted_message_me" - + "tadata}\"q\n\006Thread\022\014\n\004name\030\001 \001(\t\022\027\n\nthrea" - + "d_key\030\003 \001(\tB\003\340A\001:@\352A=\n\032chat.googleapis.c" - + "om/Thread\022\037spaces/{space}/threads/{threa" - + "d}\"\322\004\n\016ActionResponse\022>\n\004type\030\001 \001(\0162+.go" - + "ogle.chat.v1.ActionResponse.ResponseType" - + "B\003\340A\004\022\020\n\003url\030\002 \001(\tB\003\340A\004\0228\n\rdialog_action" - + "\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A" - + "\004\022I\n\016updated_widget\030\004 \001(\0132,.google.chat." - + "v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n\016" - + "SelectionItems\022@\n\005items\030\001 \003(\01321.google.a" - + "pps.card.v1.SelectionInput.SelectionItem" - + "\032w\n\rUpdatedWidget\022D\n\013suggestions\030\001 \001(\0132-" - + ".google.chat.v1.ActionResponse.Selection" - + "ItemsH\000\022\016\n\006widget\030\002 \001(\tB\020\n\016updated_widge" - + "t\"\233\001\n\014ResponseType\022\024\n\020TYPE_UNSPECIFIED\020\000" - + "\022\017\n\013NEW_MESSAGE\020\001\022\022\n\016UPDATE_MESSAGE\020\002\022\035\n" - + "\031UPDATE_USER_MESSAGE_CARDS\020\006\022\022\n\016REQUEST_" - + "CONFIG\020\003\022\n\n\006DIALOG\020\004\022\021\n\rUPDATE_WIDGET\020\007\"" - + "S\n\017AccessoryWidget\0226\n\013button_list\030\001 \001(\0132" - + "\037.google.apps.card.v1.ButtonListH\000B\010\n\006ac" - + "tion\"F\n\021GetMessageRequest\0221\n\004name\030\001 \001(\tB" - + "#\340A\002\372A\035\n\033chat.googleapis.com/Message\"X\n\024" - + "DeleteMessageRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033chat.googleapis.com/Message\022\r\n\005force" - + "\030\002 \001(\010\"\222\001\n\024UpdateMessageRequest\022-\n\007messa" - + "ge\030\001 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\"\244\003\n\024" - + "CreateMessageRequest\0223\n\006parent\030\001 \001(\tB#\340A" - + "\002\372A\035\022\033chat.googleapis.com/Message\022-\n\007mes" - + "sage\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002" - + "\022\031\n\nthread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\nrequest_i" - + "d\030\007 \001(\tB\003\340A\001\022Z\n\024message_reply_option\030\010 \001" - + "(\01627.google.chat.v1.CreateMessageRequest" - + ".MessageReplyOptionB\003\340A\001\022\027\n\nmessage_id\030\t" - + " \001(\tB\003\340A\001\"\177\n\022MessageReplyOption\022$\n MESSA" - + "GE_REPLY_OPTION_UNSPECIFIED\020\000\022(\n$REPLY_M" - + "ESSAGE_FALLBACK_TO_NEW_THREAD\020\001\022\031\n\025REPLY" - + "_MESSAGE_OR_FAIL\020\002\"\251\001\n\023ListMessagesReque" - + "st\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033chat.googlea" - + "pis.com/Message\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_" - + "by\030\005 \001(\t\022\024\n\014show_deleted\030\006 \001(\010\"Z\n\024ListMe" - + "ssagesResponse\022)\n\010messages\030\001 \003(\0132\027.googl" - + "e.chat.v1.Message\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\201\001\n\014DialogAction\022-\n\006dialog\030\001 \001(\0132\026.go" - + "ogle.chat.v1.DialogB\003\340A\004H\000\0228\n\raction_sta" - + "tus\030\002 \001(\0132\034.google.chat.v1.ActionStatusB" - + "\003\340A\004B\010\n\006action\"6\n\006Dialog\022,\n\004body\030\001 \001(\0132\031" - + ".google.apps.card.v1.CardB\003\340A\004\"F\n\nCardWi" - + "thId\022\017\n\007card_id\030\001 \001(\t\022\'\n\004card\030\002 \001(\0132\031.go" - + "ogle.apps.card.v1.CardB\245\001\n\022com.google.ch" - + "at.v1B\014MessageProtoP\001Z,cloud.google.com/" - + "go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIProt" - + "o\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\Ch" - + "at\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "otobuf/timestamp.proto\"\324\n\n\007Message\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\010\022)\n\006sender\030\002 \001(\0132\024.google.c" + + "hat.v1.UserB\003\340A\003\0227\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\006\340A\005\340A\001\0229\n\020las" + + "t_update_time\030\027 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013delete_time\030\032 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\021\n\004text\030\004 \001(\t" + + "B\003\340A\001\022\033\n\016formatted_text\030+ \001(\tB\003\340A\003\022=\n\005ca" + + "rds\030\005 \003(\0132*.google.chat.v1.ContextualAdd" + + "OnMarkup.CardB\002\030\001\0221\n\010cards_v2\030\026 \003(\0132\032.go" + + "ogle.chat.v1.CardWithIdB\003\340A\001\0224\n\013annotati" + + "ons\030\n \003(\0132\032.google.chat.v1.AnnotationB\003\340" + + "A\003\022&\n\006thread\030\013 \001(\0132\026.google.chat.v1.Thre" + + "ad\022)\n\005space\030\014 \001(\0132\025.google.chat.v1.Space" + + "B\003\340A\003\022\032\n\rfallback_text\030\r \001(\tB\003\340A\001\022<\n\017act" + + "ion_response\030\016 \001(\0132\036.google.chat.v1.Acti" + + "onResponseB\003\340A\004\022\032\n\rargument_text\030\017 \001(\tB\003" + + "\340A\003\0228\n\rslash_command\030\021 \001(\0132\034.google.chat" + + ".v1.SlashCommandB\003\340A\003\0223\n\nattachment\030\022 \003(" + + "\0132\032.google.chat.v1.AttachmentB\003\340A\001\0224\n\013ma" + + "tched_url\030\024 \001(\0132\032.google.chat.v1.Matched" + + "UrlB\003\340A\003\022\031\n\014thread_reply\030\031 \001(\010B\003\340A\003\022\'\n\032c" + + "lient_assigned_message_id\030 \001(\tB\003\340A\001\022K\n\030" + + "emoji_reaction_summaries\030! \003(\0132$.google." + + "chat.v1.EmojiReactionSummaryB\003\340A\003\022<\n\026pri" + + "vate_message_viewer\030$ \001(\0132\024.google.chat." + + "v1.UserB\006\340A\005\340A\001\022@\n\021deletion_metadata\030& \001" + + "(\0132 .google.chat.v1.DeletionMetadataB\003\340A" + + "\003\022K\n\027quoted_message_metadata\030\' \001(\0132%.goo" + + "gle.chat.v1.QuotedMessageMetadataB\003\340A\003\0227" + + "\n\rattached_gifs\030* \003(\0132\033.google.chat.v1.A" + + "ttachedGifB\003\340A\003\022?\n\021accessory_widgets\030, \003" + + "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001" + + ":C\352A@\n\033chat.googleapis.com/Message\022!spac" + + "es/{space}/messages/{message}\"\037\n\013Attache" + + "dGif\022\020\n\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n\025QuotedMessage" + + "Metadata\0221\n\004name\030\001 \001(\tB#\340A\003\372A\035\n\033chat.goo" + + "gleapis.com/Message\0229\n\020last_update_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201" + + "\001\352A~\n)chat.googleapis.com/QuotedMessageM" + + "etadata\022Qspaces/{space}/messages/{messag" + + "e}/quotedMessageMetadata/{quoted_message" + + "_metadata}\"v\n\006Thread\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\027\n\nthread_key\030\003 \001(\tB\003\340A\001:@\352A=\n\032chat.goog" + + "leapis.com/Thread\022\037spaces/{space}/thread" + + "s/{thread}\"\322\004\n\016ActionResponse\022>\n\004type\030\001 " + + "\001(\0162+.google.chat.v1.ActionResponse.Resp" + + "onseTypeB\003\340A\004\022\020\n\003url\030\002 \001(\tB\003\340A\004\0228\n\rdialo" + + "g_action\030\003 \001(\0132\034.google.chat.v1.DialogAc" + + "tionB\003\340A\004\022I\n\016updated_widget\030\004 \001(\0132,.goog" + + "le.chat.v1.ActionResponse.UpdatedWidgetB" + + "\003\340A\004\032R\n\016SelectionItems\022@\n\005items\030\001 \003(\01321." + + "google.apps.card.v1.SelectionInput.Selec" + + "tionItem\032w\n\rUpdatedWidget\022D\n\013suggestions" + + "\030\001 \001(\0132-.google.chat.v1.ActionResponse.S" + + "electionItemsH\000\022\016\n\006widget\030\002 \001(\tB\020\n\016updat" + + "ed_widget\"\233\001\n\014ResponseType\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\017\n\013NEW_MESSAGE\020\001\022\022\n\016UPDATE_MESS" + + "AGE\020\002\022\035\n\031UPDATE_USER_MESSAGE_CARDS\020\006\022\022\n\016" + + "REQUEST_CONFIG\020\003\022\n\n\006DIALOG\020\004\022\021\n\rUPDATE_W" + + "IDGET\020\007\"S\n\017AccessoryWidget\0226\n\013button_lis" + + "t\030\001 \001(\0132\037.google.apps.card.v1.ButtonList" + + "H\000B\010\n\006action\"F\n\021GetMessageRequest\0221\n\004nam" + + "e\030\001 \001(\tB#\340A\002\372A\035\n\033chat.googleapis.com/Mes" + + "sage\"]\n\024DeleteMessageRequest\0221\n\004name\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033chat.googleapis.com/Message\022" + + "\022\n\005force\030\002 \001(\010B\003\340A\001\"\227\001\n\024UpdateMessageReq" + + "uest\022-\n\007message\030\001 \001(\0132\027.google.chat.v1.M" + + "essageB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\022\032\n\rallow_missi" + + "ng\030\004 \001(\010B\003\340A\001\"\244\003\n\024CreateMessageRequest\0223" + + "\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033chat.googleapis." + + "com/Message\022-\n\007message\030\004 \001(\0132\027.google.ch" + + "at.v1.MessageB\003\340A\002\022\031\n\nthread_key\030\006 \001(\tB\005" + + "\030\001\340A\001\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\022Z\n\024messag" + + "e_reply_option\030\010 \001(\01627.google.chat.v1.Cr" + + "eateMessageRequest.MessageReplyOptionB\003\340" + + "A\001\022\027\n\nmessage_id\030\t \001(\tB\003\340A\001\"\177\n\022MessageRe" + + "plyOption\022$\n MESSAGE_REPLY_OPTION_UNSPEC" + + "IFIED\020\000\022(\n$REPLY_MESSAGE_FALLBACK_TO_NEW" + + "_THREAD\020\001\022\031\n\025REPLY_MESSAGE_OR_FAIL\020\002\"\302\001\n" + + "\023ListMessagesRequest\0223\n\006parent\030\001 \001(\tB#\340A" + + "\002\372A\035\022\033chat.googleapis.com/Message\022\026\n\tpag" + + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(" + + "\tB\003\340A\001\022\031\n\014show_deleted\030\006 \001(\010B\003\340A\001\"Z\n\024Lis" + + "tMessagesResponse\022)\n\010messages\030\001 \003(\0132\027.go" + + "ogle.chat.v1.Message\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\201\001\n\014DialogAction\022-\n\006dialog\030\001 \001(\0132\026" + + ".google.chat.v1.DialogB\003\340A\004H\000\0228\n\raction_" + + "status\030\002 \001(\0132\034.google.chat.v1.ActionStat" + + "usB\003\340A\004B\010\n\006action\"6\n\006Dialog\022,\n\004body\030\001 \001(" + + "\0132\031.google.apps.card.v1.CardB\003\340A\004\"F\n\nCar" + + "dWithId\022\017\n\007card_id\030\001 \001(\t\022\'\n\004card\030\002 \001(\0132\031" + + ".google.apps.card.v1.CardB\245\001\n\022com.google" + + ".chat.v1B\014MessageProtoP\001Z,cloud.google.c" + + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP" + + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps" + + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Reaction.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Reaction.java index 1cfd01b5a4f3..aab9f1be1bf7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Reaction.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Reaction.java @@ -70,12 +70,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * The resource name of the reaction.
      +   * Identifier. The resource name of the reaction.
          *
          * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -95,12 +95,12 @@ public java.lang.String getName() { * * *
      -   * The resource name of the reaction.
      +   * Identifier. The resource name of the reaction.
          *
          * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -169,10 +169,10 @@ public com.google.chat.v1.UserOrBuilder getUserOrBuilder() { * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the emoji field is set. */ @@ -184,10 +184,10 @@ public boolean hasEmoji() { * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The emoji. */ @@ -199,10 +199,10 @@ public com.google.chat.v1.Emoji getEmoji() { * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { @@ -625,12 +625,12 @@ public Builder mergeFrom( * * *
      -     * The resource name of the reaction.
      +     * Identifier. The resource name of the reaction.
            *
            * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -649,12 +649,12 @@ public java.lang.String getName() { * * *
      -     * The resource name of the reaction.
      +     * Identifier. The resource name of the reaction.
            *
            * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -673,12 +673,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * The resource name of the reaction.
      +     * Identifier. The resource name of the reaction.
            *
            * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -696,12 +696,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * The resource name of the reaction.
      +     * Identifier. The resource name of the reaction.
            *
            * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -715,12 +715,12 @@ public Builder clearName() { * * *
      -     * The resource name of the reaction.
      +     * Identifier. The resource name of the reaction.
            *
            * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -926,10 +926,10 @@ public com.google.chat.v1.UserOrBuilder getUserOrBuilder() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the emoji field is set. */ @@ -940,10 +940,10 @@ public boolean hasEmoji() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The emoji. */ @@ -958,10 +958,10 @@ public com.google.chat.v1.Emoji getEmoji() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEmoji(com.google.chat.v1.Emoji value) { if (emojiBuilder_ == null) { @@ -980,10 +980,10 @@ public Builder setEmoji(com.google.chat.v1.Emoji value) { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEmoji(com.google.chat.v1.Emoji.Builder builderForValue) { if (emojiBuilder_ == null) { @@ -999,10 +999,10 @@ public Builder setEmoji(com.google.chat.v1.Emoji.Builder builderForValue) { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEmoji(com.google.chat.v1.Emoji value) { if (emojiBuilder_ == null) { @@ -1026,10 +1026,10 @@ public Builder mergeEmoji(com.google.chat.v1.Emoji value) { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEmoji() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1045,10 +1045,10 @@ public Builder clearEmoji() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.chat.v1.Emoji.Builder getEmojiBuilder() { bitField0_ |= 0x00000004; @@ -1059,10 +1059,10 @@ public com.google.chat.v1.Emoji.Builder getEmojiBuilder() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { if (emojiBuilder_ != null) { @@ -1075,10 +1075,10 @@ public com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder() { * * *
      -     * The emoji used in the reaction.
      +     * Required. The emoji used in the reaction.
            * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Emoji, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionOrBuilder.java index 0900ca6a8178..fa70c25e21eb 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionOrBuilder.java @@ -28,12 +28,12 @@ public interface ReactionOrBuilder * * *
      -   * The resource name of the reaction.
      +   * Identifier. The resource name of the reaction.
          *
          * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -42,12 +42,12 @@ public interface ReactionOrBuilder * * *
      -   * The resource name of the reaction.
      +   * Identifier. The resource name of the reaction.
          *
          * Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -92,10 +92,10 @@ public interface ReactionOrBuilder * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the emoji field is set. */ @@ -104,10 +104,10 @@ public interface ReactionOrBuilder * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The emoji. */ @@ -116,10 +116,10 @@ public interface ReactionOrBuilder * * *
      -   * The emoji used in the reaction.
      +   * Required. The emoji used in the reaction.
          * 
      * - * .google.chat.v1.Emoji emoji = 3; + * .google.chat.v1.Emoji emoji = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.chat.v1.EmojiOrBuilder getEmojiOrBuilder(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionProto.java index 31c8ac8bcbe6..3497d0e8d489 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionProto.java @@ -71,40 +71,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\035google/chat/v1/reaction.proto\022\016google." + "chat.v1\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032\031google/chat" - + "/v1/user.proto\"\302\001\n\010Reaction\022\014\n\004name\030\001 \001(" - + "\t\022\'\n\004user\030\002 \001(\0132\024.google.chat.v1.UserB\003\340" - + "A\003\022$\n\005emoji\030\003 \001(\0132\025.google.chat.v1.Emoji" - + ":Y\352AV\n\034chat.googleapis.com/Reaction\0226spa" - + "ces/{space}/messages/{message}/reactions" - + "/{reaction}\"_\n\005Emoji\022\021\n\007unicode\030\001 \001(\tH\000\022" - + "8\n\014custom_emoji\030\002 \001(\0132\033.google.chat.v1.C" - + "ustomEmojiB\003\340A\003H\000B\t\n\007content\"\037\n\013CustomEm" - + "oji\022\020\n\003uid\030\001 \001(\tB\003\340A\003\"l\n\024EmojiReactionSu" - + "mmary\022$\n\005emoji\030\001 \001(\0132\025.google.chat.v1.Em" - + "oji\022\033\n\016reaction_count\030\002 \001(\005H\000\210\001\001B\021\n\017_rea" - + "ction_count\"~\n\025CreateReactionRequest\0224\n\006" - + "parent\030\001 \001(\tB$\340A\002\372A\036\022\034chat.googleapis.co" - + "m/Reaction\022/\n\010reaction\030\002 \001(\0132\030.google.ch" - + "at.v1.ReactionB\003\340A\002\"\222\001\n\024ListReactionsReq" - + "uest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034chat.googl" - + "eapis.com/Reaction\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 " - + "\001(\tB\003\340A\001\"]\n\025ListReactionsResponse\022+\n\trea" - + "ctions\030\001 \003(\0132\030.google.chat.v1.Reaction\022\027" - + "\n\017next_page_token\030\002 \001(\t\"K\n\025DeleteReactio" - + "nRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034chat.goo" - + "gleapis.com/ReactionB\246\001\n\022com.google.chat" - + ".v1B\rReactionProtoP\001Z,cloud.google.com/g" - + "o/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIProto" - + "\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\Cha" - + "t\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\032\033google/api/field_info.proto\032\031google/ap" + + "i/resource.proto\032\031google/chat/v1/user.pr" + + "oto\"\314\001\n\010Reaction\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\'\n\004u" + + "ser\030\002 \001(\0132\024.google.chat.v1.UserB\003\340A\003\022)\n\005" + + "emoji\030\003 \001(\0132\025.google.chat.v1.EmojiB\003\340A\002:" + + "Y\352AV\n\034chat.googleapis.com/Reaction\0226spac" + + "es/{space}/messages/{message}/reactions/" + + "{reaction}\"d\n\005Emoji\022\026\n\007unicode\030\001 \001(\tB\003\340A" + + "\001H\000\0228\n\014custom_emoji\030\002 \001(\0132\033.google.chat." + + "v1.CustomEmojiB\003\340A\003H\000B\t\n\007content\"\'\n\013Cust" + + "omEmoji\022\030\n\003uid\030\001 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"v\n\024Emo" + + "jiReactionSummary\022)\n\005emoji\030\001 \001(\0132\025.googl" + + "e.chat.v1.EmojiB\003\340A\003\022 \n\016reaction_count\030\002" + + " \001(\005B\003\340A\003H\000\210\001\001B\021\n\017_reaction_count\"~\n\025Cre" + + "ateReactionRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372" + + "A\036\022\034chat.googleapis.com/Reaction\022/\n\010reac" + + "tion\030\002 \001(\0132\030.google.chat.v1.ReactionB\003\340A" + + "\002\"\222\001\n\024ListReactionsRequest\0224\n\006parent\030\001 \001" + + "(\tB$\340A\002\372A\036\022\034chat.googleapis.com/Reaction" + + "\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\"]\n\025ListRe" + + "actionsResponse\022+\n\treactions\030\001 \003(\0132\030.goo" + + "gle.chat.v1.Reaction\022\027\n\017next_page_token\030" + + "\002 \001(\t\"K\n\025DeleteReactionRequest\0222\n\004name\030\001" + + " \001(\tB$\340A\002\372A\036\n\034chat.googleapis.com/Reacti" + + "onB\246\001\n\022com.google.chat.v1B\rReactionProto" + + "P\001Z,cloud.google.com/go/chat/apiv1/chatp" + + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha" + + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::App" + + "s::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.chat.v1.UserProto.getDescriptor(), }); @@ -173,11 +176,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.chat.v1.UserProto.getDescriptor(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java index 6bb8b630ae76..9df58ab5d68a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java @@ -782,7 +782,7 @@ public interface SpaceDetailsOrBuilder * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -797,7 +797,7 @@ public interface SpaceDetailsOrBuilder * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -812,7 +812,7 @@ public interface SpaceDetailsOrBuilder * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The guidelines. */ @@ -826,7 +826,7 @@ public interface SpaceDetailsOrBuilder * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for guidelines. */ @@ -891,7 +891,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -917,7 +917,7 @@ public java.lang.String getDescription() { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -947,7 +947,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The guidelines. */ @@ -972,7 +972,7 @@ public java.lang.String getGuidelines() { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for guidelines. */ @@ -1368,7 +1368,7 @@ public Builder mergeFrom( * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -1393,7 +1393,7 @@ public java.lang.String getDescription() { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -1442,7 +1442,7 @@ public Builder setDescription(java.lang.String value) { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1462,7 +1462,7 @@ public Builder clearDescription() { * Supports up to 150 characters. *
      * - * string description = 1; + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -1488,7 +1488,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The guidelines. */ @@ -1512,7 +1512,7 @@ public java.lang.String getGuidelines() { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for guidelines. */ @@ -1536,7 +1536,7 @@ public com.google.protobuf.ByteString getGuidelinesBytes() { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The guidelines to set. * @return This builder for chaining. @@ -1559,7 +1559,7 @@ public Builder setGuidelines(java.lang.String value) { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1578,7 +1578,7 @@ public Builder clearGuidelines() { * Supports up to 5,000 characters. *
      * - * string guidelines = 2; + * string guidelines = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for guidelines to set. * @return This builder for chaining. @@ -1667,11 +1667,12 @@ public interface MembershipCountOrBuilder * * *
      -     * Count of human users that have directly joined the space, not counting
      -     * users joined by having membership in a joined group.
      +     * Output only. Count of human users that have directly joined the space,
      +     * not counting users joined by having membership in a joined group.
            * 
      * - * int32 joined_direct_human_user_count = 4; + * int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The joinedDirectHumanUserCount. */ @@ -1681,10 +1682,10 @@ public interface MembershipCountOrBuilder * * *
      -     * Count of all groups that have directly joined the space.
      +     * Output only. Count of all groups that have directly joined the space.
            * 
      * - * int32 joined_group_count = 5; + * int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The joinedGroupCount. */ @@ -1738,11 +1739,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Count of human users that have directly joined the space, not counting
      -     * users joined by having membership in a joined group.
      +     * Output only. Count of human users that have directly joined the space,
      +     * not counting users joined by having membership in a joined group.
            * 
      * - * int32 joined_direct_human_user_count = 4; + * int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The joinedDirectHumanUserCount. */ @@ -1757,10 +1759,10 @@ public int getJoinedDirectHumanUserCount() { * * *
      -     * Count of all groups that have directly joined the space.
      +     * Output only. Count of all groups that have directly joined the space.
            * 
      * - * int32 joined_group_count = 5; + * int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The joinedGroupCount. */ @@ -2140,11 +2142,13 @@ public Builder mergeFrom( * * *
      -       * Count of human users that have directly joined the space, not counting
      -       * users joined by having membership in a joined group.
      +       * Output only. Count of human users that have directly joined the space,
      +       * not counting users joined by having membership in a joined group.
              * 
      * - * int32 joined_direct_human_user_count = 4; + * + * int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The joinedDirectHumanUserCount. */ @@ -2156,11 +2160,13 @@ public int getJoinedDirectHumanUserCount() { * * *
      -       * Count of human users that have directly joined the space, not counting
      -       * users joined by having membership in a joined group.
      +       * Output only. Count of human users that have directly joined the space,
      +       * not counting users joined by having membership in a joined group.
              * 
      * - * int32 joined_direct_human_user_count = 4; + * + * int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The joinedDirectHumanUserCount to set. * @return This builder for chaining. @@ -2176,11 +2182,13 @@ public Builder setJoinedDirectHumanUserCount(int value) { * * *
      -       * Count of human users that have directly joined the space, not counting
      -       * users joined by having membership in a joined group.
      +       * Output only. Count of human users that have directly joined the space,
      +       * not counting users joined by having membership in a joined group.
              * 
      * - * int32 joined_direct_human_user_count = 4; + * + * int32 joined_direct_human_user_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2196,10 +2204,10 @@ public Builder clearJoinedDirectHumanUserCount() { * * *
      -       * Count of all groups that have directly joined the space.
      +       * Output only. Count of all groups that have directly joined the space.
              * 
      * - * int32 joined_group_count = 5; + * int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The joinedGroupCount. */ @@ -2211,10 +2219,10 @@ public int getJoinedGroupCount() { * * *
      -       * Count of all groups that have directly joined the space.
      +       * Output only. Count of all groups that have directly joined the space.
              * 
      * - * int32 joined_group_count = 5; + * int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The joinedGroupCount to set. * @return This builder for chaining. @@ -2230,10 +2238,10 @@ public Builder setJoinedGroupCount(int value) { * * *
      -       * Count of all groups that have directly joined the space.
      +       * Output only. Count of all groups that have directly joined the space.
              * 
      * - * int32 joined_group_count = 5; + * int32 joined_group_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2359,8 +2367,23 @@ public interface AccessSettingsOrBuilder * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -2385,8 +2408,23 @@ public interface AccessSettingsOrBuilder * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -2482,6 +2520,9 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { * invited to the space can also discover and access the space. To learn * more, see [Make a space discoverable to specific * users](https://developers.google.com/workspace/chat/space-target-audience). + * + * Creating discoverable spaces requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * DISCOVERABLE = 2; @@ -2521,6 +2562,9 @@ public enum AccessState implements com.google.protobuf.ProtocolMessageEnum { * invited to the space can also discover and access the space. To learn * more, see [Make a space discoverable to specific * users](https://developers.google.com/workspace/chat/space-target-audience). + * + * Creating discoverable spaces requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * DISCOVERABLE = 2; @@ -2672,8 +2716,23 @@ public com.google.chat.v1.Space.AccessSettings.AccessState getAccessState() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -2709,8 +2768,23 @@ public java.lang.String getAudience() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3221,8 +3295,23 @@ public Builder clearAccessState() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3257,8 +3346,23 @@ public java.lang.String getAudience() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3293,8 +3397,23 @@ public com.google.protobuf.ByteString getAudienceBytes() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3328,8 +3447,23 @@ public Builder setAudience(java.lang.String value) { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3359,8 +3493,23 @@ public Builder clearAudience() { * To use the default target audience for the Google Workspace organization, * set to `audiences/default`. * + * Reading the target audience supports: + * + * - [User + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * + * - [App + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + * with [administrator + * approval](https://support.google.com/a?p=chat-app-auth) + * with the `chat.app.spaces` scope in [Developer + * Preview](https://developers.google.com/workspace/preview). + * * This field is not populated when using the `chat.bot` scope with [app * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * + * Setting the target audience requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3452,10 +3601,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageMembersAndGroups field is set. */ @@ -3464,10 +3615,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageMembersAndGroups. */ @@ -3476,10 +3629,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getManageMembersAndGroupsOrBuilder(); @@ -3487,10 +3642,13 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the modifySpaceDetails field is set. */ @@ -3499,10 +3657,13 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The modifySpaceDetails. */ @@ -3511,10 +3672,13 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetailsOrBuilder(); @@ -3522,10 +3686,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the toggleHistory field is set. */ @@ -3534,10 +3700,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The toggleHistory. */ @@ -3546,10 +3714,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBuilder(); @@ -3557,10 +3727,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useAtMentionAll field is set. */ @@ -3569,10 +3741,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useAtMentionAll. */ @@ -3581,10 +3755,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrBuilder(); @@ -3592,10 +3768,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageApps field is set. */ @@ -3604,10 +3782,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageApps. */ @@ -3616,10 +3796,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilder(); @@ -3627,10 +3809,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageWebhooks field is set. */ @@ -3639,10 +3823,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageWebhooks. */ @@ -3651,10 +3837,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getManageWebhooksOrBuilder(); @@ -3703,10 +3891,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the replyMessages field is set. */ @@ -3715,10 +3905,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The replyMessages. */ @@ -3727,10 +3919,12 @@ public interface PermissionSettingsOrBuilder * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.PermissionSettingOrBuilder getReplyMessagesOrBuilder(); } @@ -3787,10 +3981,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageMembersAndGroups field is set. */ @@ -3802,10 +3998,12 @@ public boolean hasManageMembersAndGroups() { * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageMembersAndGroups. */ @@ -3819,10 +4017,12 @@ public com.google.chat.v1.Space.PermissionSetting getManageMembersAndGroups() { * * *
      -     * Setting for managing members and groups in a space.
      +     * Optional. Setting for managing members and groups in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder @@ -3838,10 +4038,13 @@ public com.google.chat.v1.Space.PermissionSetting getManageMembersAndGroups() { * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the modifySpaceDetails field is set. */ @@ -3853,10 +4056,13 @@ public boolean hasModifySpaceDetails() { * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The modifySpaceDetails. */ @@ -3870,10 +4076,13 @@ public com.google.chat.v1.Space.PermissionSetting getModifySpaceDetails() { * * *
      -     * Setting for updating space name, avatar, description and guidelines.
      +     * Optional. Setting for updating space name, avatar, description and
      +     * guidelines.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetailsOrBuilder() { @@ -3888,10 +4097,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetails * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the toggleHistory field is set. */ @@ -3903,10 +4114,12 @@ public boolean hasToggleHistory() { * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The toggleHistory. */ @@ -3920,10 +4133,12 @@ public com.google.chat.v1.Space.PermissionSetting getToggleHistory() { * * *
      -     * Setting for toggling space history on and off.
      +     * Optional. Setting for toggling space history on and off.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBuilder() { @@ -3938,10 +4153,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBui * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useAtMentionAll field is set. */ @@ -3953,10 +4170,12 @@ public boolean hasUseAtMentionAll() { * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useAtMentionAll. */ @@ -3970,10 +4189,12 @@ public com.google.chat.v1.Space.PermissionSetting getUseAtMentionAll() { * * *
      -     * Setting for using @all in a space.
      +     * Optional. Setting for using @all in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrBuilder() { @@ -3988,10 +4209,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrB * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageApps field is set. */ @@ -4003,10 +4226,12 @@ public boolean hasManageApps() { * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageApps. */ @@ -4020,10 +4245,12 @@ public com.google.chat.v1.Space.PermissionSetting getManageApps() { * * *
      -     * Setting for managing apps in a space.
      +     * Optional. Setting for managing apps in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilder() { @@ -4038,10 +4265,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilde * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageWebhooks field is set. */ @@ -4053,10 +4282,12 @@ public boolean hasManageWebhooks() { * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageWebhooks. */ @@ -4070,10 +4301,12 @@ public com.google.chat.v1.Space.PermissionSetting getManageWebhooks() { * * *
      -     * Setting for managing webhooks in a space.
      +     * Optional. Setting for managing webhooks in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageWebhooksOrBuilder() { @@ -4144,10 +4377,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getPostMessagesOrBuil * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the replyMessages field is set. */ @@ -4159,10 +4394,12 @@ public boolean hasReplyMessages() { * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The replyMessages. */ @@ -4176,10 +4413,12 @@ public com.google.chat.v1.Space.PermissionSetting getReplyMessages() { * * *
      -     * Setting for replying to messages in a space.
      +     * Optional. Setting for replying to messages in a space.
            * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.PermissionSettingOrBuilder getReplyMessagesOrBuilder() { @@ -4816,10 +5055,11 @@ public Builder mergeFrom( * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the manageMembersAndGroups field is set. @@ -4831,10 +5071,11 @@ public boolean hasManageMembersAndGroups() { * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The manageMembersAndGroups. @@ -4852,10 +5093,11 @@ public com.google.chat.v1.Space.PermissionSetting getManageMembersAndGroups() { * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setManageMembersAndGroups(com.google.chat.v1.Space.PermissionSetting value) { @@ -4875,10 +5117,11 @@ public Builder setManageMembersAndGroups(com.google.chat.v1.Space.PermissionSett * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setManageMembersAndGroups( @@ -4896,10 +5139,11 @@ public Builder setManageMembersAndGroups( * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeManageMembersAndGroups(com.google.chat.v1.Space.PermissionSetting value) { @@ -4925,10 +5169,11 @@ public Builder mergeManageMembersAndGroups(com.google.chat.v1.Space.PermissionSe * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearManageMembersAndGroups() { @@ -4945,10 +5190,11 @@ public Builder clearManageMembersAndGroups() { * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.Space.PermissionSetting.Builder getManageMembersAndGroupsBuilder() { @@ -4960,10 +5206,11 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getManageMembersAndGro * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder @@ -4980,10 +5227,11 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getManageMembersAndGro * * *
      -       * Setting for managing members and groups in a space.
      +       * Optional. Setting for managing members and groups in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; + * + * optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5013,10 +5261,13 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getManageMembersAndGro * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the modifySpaceDetails field is set. */ @@ -5027,10 +5278,13 @@ public boolean hasModifySpaceDetails() { * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The modifySpaceDetails. */ @@ -5047,10 +5301,13 @@ public com.google.chat.v1.Space.PermissionSetting getModifySpaceDetails() { * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setModifySpaceDetails(com.google.chat.v1.Space.PermissionSetting value) { if (modifySpaceDetailsBuilder_ == null) { @@ -5069,10 +5326,13 @@ public Builder setModifySpaceDetails(com.google.chat.v1.Space.PermissionSetting * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setModifySpaceDetails( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -5089,10 +5349,13 @@ public Builder setModifySpaceDetails( * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeModifySpaceDetails(com.google.chat.v1.Space.PermissionSetting value) { if (modifySpaceDetailsBuilder_ == null) { @@ -5117,10 +5380,13 @@ public Builder mergeModifySpaceDetails(com.google.chat.v1.Space.PermissionSettin * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearModifySpaceDetails() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5136,10 +5402,13 @@ public Builder clearModifySpaceDetails() { * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getModifySpaceDetailsBuilder() { bitField0_ |= 0x00000002; @@ -5150,10 +5419,13 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getModifySpaceDetailsB * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetailsOrBuilder() { if (modifySpaceDetailsBuilder_ != null) { @@ -5168,10 +5440,13 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetails * * *
      -       * Setting for updating space name, avatar, description and guidelines.
      +       * Optional. Setting for updating space name, avatar, description and
      +       * guidelines.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; + * + * optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -5200,10 +5475,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getModifySpaceDetails * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the toggleHistory field is set. */ @@ -5214,10 +5491,12 @@ public boolean hasToggleHistory() { * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The toggleHistory. */ @@ -5234,10 +5513,12 @@ public com.google.chat.v1.Space.PermissionSetting getToggleHistory() { * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setToggleHistory(com.google.chat.v1.Space.PermissionSetting value) { if (toggleHistoryBuilder_ == null) { @@ -5256,10 +5537,12 @@ public Builder setToggleHistory(com.google.chat.v1.Space.PermissionSetting value * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setToggleHistory( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -5276,10 +5559,12 @@ public Builder setToggleHistory( * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeToggleHistory(com.google.chat.v1.Space.PermissionSetting value) { if (toggleHistoryBuilder_ == null) { @@ -5304,10 +5589,12 @@ public Builder mergeToggleHistory(com.google.chat.v1.Space.PermissionSetting val * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearToggleHistory() { bitField0_ = (bitField0_ & ~0x00000004); @@ -5323,10 +5610,12 @@ public Builder clearToggleHistory() { * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getToggleHistoryBuilder() { bitField0_ |= 0x00000004; @@ -5337,10 +5626,12 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getToggleHistoryBuilde * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBuilder() { if (toggleHistoryBuilder_ != null) { @@ -5355,10 +5646,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBui * * *
      -       * Setting for toggling space history on and off.
      +       * Optional. Setting for toggling space history on and off.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; + * + * optional .google.chat.v1.Space.PermissionSetting toggle_history = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -5387,10 +5680,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getToggleHistoryOrBui * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the useAtMentionAll field is set. */ @@ -5401,10 +5696,12 @@ public boolean hasUseAtMentionAll() { * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The useAtMentionAll. */ @@ -5421,10 +5718,12 @@ public com.google.chat.v1.Space.PermissionSetting getUseAtMentionAll() { * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUseAtMentionAll(com.google.chat.v1.Space.PermissionSetting value) { if (useAtMentionAllBuilder_ == null) { @@ -5443,10 +5742,12 @@ public Builder setUseAtMentionAll(com.google.chat.v1.Space.PermissionSetting val * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUseAtMentionAll( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -5463,10 +5764,12 @@ public Builder setUseAtMentionAll( * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUseAtMentionAll(com.google.chat.v1.Space.PermissionSetting value) { if (useAtMentionAllBuilder_ == null) { @@ -5491,10 +5794,12 @@ public Builder mergeUseAtMentionAll(com.google.chat.v1.Space.PermissionSetting v * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUseAtMentionAll() { bitField0_ = (bitField0_ & ~0x00000008); @@ -5510,10 +5815,12 @@ public Builder clearUseAtMentionAll() { * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getUseAtMentionAllBuilder() { bitField0_ |= 0x00000008; @@ -5524,10 +5831,12 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getUseAtMentionAllBuil * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrBuilder() { if (useAtMentionAllBuilder_ != null) { @@ -5542,10 +5851,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrB * * *
      -       * Setting for using @all in a space.
      +       * Optional. Setting for using @all in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; + * + * optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -5574,10 +5885,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getUseAtMentionAllOrB * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageApps field is set. */ @@ -5588,10 +5901,12 @@ public boolean hasManageApps() { * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageApps. */ @@ -5608,10 +5923,12 @@ public com.google.chat.v1.Space.PermissionSetting getManageApps() { * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManageApps(com.google.chat.v1.Space.PermissionSetting value) { if (manageAppsBuilder_ == null) { @@ -5630,10 +5947,12 @@ public Builder setManageApps(com.google.chat.v1.Space.PermissionSetting value) { * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManageApps( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -5650,10 +5969,12 @@ public Builder setManageApps( * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeManageApps(com.google.chat.v1.Space.PermissionSetting value) { if (manageAppsBuilder_ == null) { @@ -5677,10 +5998,12 @@ public Builder mergeManageApps(com.google.chat.v1.Space.PermissionSetting value) * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearManageApps() { bitField0_ = (bitField0_ & ~0x00000010); @@ -5696,10 +6019,12 @@ public Builder clearManageApps() { * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getManageAppsBuilder() { bitField0_ |= 0x00000010; @@ -5710,10 +6035,12 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getManageAppsBuilder() * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilder() { if (manageAppsBuilder_ != null) { @@ -5728,10 +6055,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilde * * *
      -       * Setting for managing apps in a space.
      +       * Optional. Setting for managing apps in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; + * + * optional .google.chat.v1.Space.PermissionSetting manage_apps = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -5760,10 +6089,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageAppsOrBuilde * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the manageWebhooks field is set. */ @@ -5774,10 +6105,12 @@ public boolean hasManageWebhooks() { * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The manageWebhooks. */ @@ -5794,10 +6127,12 @@ public com.google.chat.v1.Space.PermissionSetting getManageWebhooks() { * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManageWebhooks(com.google.chat.v1.Space.PermissionSetting value) { if (manageWebhooksBuilder_ == null) { @@ -5816,10 +6151,12 @@ public Builder setManageWebhooks(com.google.chat.v1.Space.PermissionSetting valu * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManageWebhooks( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -5836,10 +6173,12 @@ public Builder setManageWebhooks( * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeManageWebhooks(com.google.chat.v1.Space.PermissionSetting value) { if (manageWebhooksBuilder_ == null) { @@ -5864,10 +6203,12 @@ public Builder mergeManageWebhooks(com.google.chat.v1.Space.PermissionSetting va * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearManageWebhooks() { bitField0_ = (bitField0_ & ~0x00000020); @@ -5883,10 +6224,12 @@ public Builder clearManageWebhooks() { * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getManageWebhooksBuilder() { bitField0_ |= 0x00000020; @@ -5897,10 +6240,12 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getManageWebhooksBuild * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageWebhooksOrBuilder() { if (manageWebhooksBuilder_ != null) { @@ -5915,10 +6260,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getManageWebhooksOrBu * * *
      -       * Setting for managing webhooks in a space.
      +       * Optional. Setting for managing webhooks in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; + * + * optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -6151,10 +6498,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getPostMessagesOrBuil * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the replyMessages field is set. */ @@ -6165,10 +6514,12 @@ public boolean hasReplyMessages() { * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The replyMessages. */ @@ -6185,10 +6536,12 @@ public com.google.chat.v1.Space.PermissionSetting getReplyMessages() { * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReplyMessages(com.google.chat.v1.Space.PermissionSetting value) { if (replyMessagesBuilder_ == null) { @@ -6207,10 +6560,12 @@ public Builder setReplyMessages(com.google.chat.v1.Space.PermissionSetting value * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReplyMessages( com.google.chat.v1.Space.PermissionSetting.Builder builderForValue) { @@ -6227,10 +6582,12 @@ public Builder setReplyMessages( * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReplyMessages(com.google.chat.v1.Space.PermissionSetting value) { if (replyMessagesBuilder_ == null) { @@ -6255,10 +6612,12 @@ public Builder mergeReplyMessages(com.google.chat.v1.Space.PermissionSetting val * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReplyMessages() { bitField0_ = (bitField0_ & ~0x00000080); @@ -6274,10 +6633,12 @@ public Builder clearReplyMessages() { * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSetting.Builder getReplyMessagesBuilder() { bitField0_ |= 0x00000080; @@ -6288,10 +6649,12 @@ public com.google.chat.v1.Space.PermissionSetting.Builder getReplyMessagesBuilde * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.PermissionSettingOrBuilder getReplyMessagesOrBuilder() { if (replyMessagesBuilder_ != null) { @@ -6306,10 +6669,12 @@ public com.google.chat.v1.Space.PermissionSettingOrBuilder getReplyMessagesOrBui * * *
      -       * Setting for replying to messages in a space.
      +       * Optional. Setting for replying to messages in a space.
              * 
      * - * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; + * + * optional .google.chat.v1.Space.PermissionSetting reply_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.PermissionSetting, @@ -6401,10 +6766,10 @@ public interface PermissionSettingOrBuilder * * *
      -     * Whether spaces managers have this permission.
      +     * Optional. Whether spaces managers have this permission.
            * 
      * - * bool managers_allowed = 1; + * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The managersAllowed. */ @@ -6414,10 +6779,10 @@ public interface PermissionSettingOrBuilder * * *
      -     * Whether non-manager members have this permission.
      +     * Optional. Whether non-manager members have this permission.
            * 
      * - * bool members_allowed = 2; + * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The membersAllowed. */ @@ -6471,10 +6836,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Whether spaces managers have this permission.
      +     * Optional. Whether spaces managers have this permission.
            * 
      * - * bool managers_allowed = 1; + * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The managersAllowed. */ @@ -6489,10 +6854,10 @@ public boolean getManagersAllowed() { * * *
      -     * Whether non-manager members have this permission.
      +     * Optional. Whether non-manager members have this permission.
            * 
      * - * bool members_allowed = 2; + * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The membersAllowed. */ @@ -6871,10 +7236,10 @@ public Builder mergeFrom( * * *
      -       * Whether spaces managers have this permission.
      +       * Optional. Whether spaces managers have this permission.
              * 
      * - * bool managers_allowed = 1; + * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The managersAllowed. */ @@ -6886,10 +7251,10 @@ public boolean getManagersAllowed() { * * *
      -       * Whether spaces managers have this permission.
      +       * Optional. Whether spaces managers have this permission.
              * 
      * - * bool managers_allowed = 1; + * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The managersAllowed to set. * @return This builder for chaining. @@ -6905,10 +7270,10 @@ public Builder setManagersAllowed(boolean value) { * * *
      -       * Whether spaces managers have this permission.
      +       * Optional. Whether spaces managers have this permission.
              * 
      * - * bool managers_allowed = 1; + * bool managers_allowed = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6924,10 +7289,10 @@ public Builder clearManagersAllowed() { * * *
      -       * Whether non-manager members have this permission.
      +       * Optional. Whether non-manager members have this permission.
              * 
      * - * bool members_allowed = 2; + * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The membersAllowed. */ @@ -6939,10 +7304,10 @@ public boolean getMembersAllowed() { * * *
      -       * Whether non-manager members have this permission.
      +       * Optional. Whether non-manager members have this permission.
              * 
      * - * bool members_allowed = 2; + * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The membersAllowed to set. * @return This builder for chaining. @@ -6958,10 +7323,10 @@ public Builder setMembersAllowed(boolean value) { * * *
      -       * Whether non-manager members have this permission.
      +       * Optional. Whether non-manager members have this permission.
              * 
      * - * bool members_allowed = 2; + * bool members_allowed = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -7094,7 +7459,7 @@ public SpacePermissionSettingsCase getSpacePermissionSettingsCase() { * * *
      -   * Resource name of the space.
      +   * Identifier. Resource name of the space.
          *
          * Format: `spaces/{space}`
          *
      @@ -7106,7 +7471,7 @@ public SpacePermissionSettingsCase getSpacePermissionSettingsCase() {
          * is `AAAAAAAAA`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -7126,7 +7491,7 @@ public java.lang.String getName() { * * *
      -   * Resource name of the space.
      +   * Identifier. Resource name of the space.
          *
          * Format: `spaces/{space}`
          *
      @@ -7138,7 +7503,7 @@ public java.lang.String getName() {
          * is `AAAAAAAAA`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -7169,7 +7534,7 @@ public com.google.protobuf.ByteString getNameBytes() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
      * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -7189,7 +7554,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
      * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The type. */ @java.lang.Override @@ -7205,11 +7570,13 @@ public com.google.chat.v1.Space.Type getType() { * * *
      -   * The type of space. Required when creating a space or updating the space
      -   * type of a space. Output only for other usage.
      +   * Optional. The type of space. Required when creating a space or updating the
      +   * space type of a space. Output only for other usage.
          * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceType. */ @@ -7221,11 +7588,13 @@ public int getSpaceTypeValue() { * * *
      -   * The type of space. Required when creating a space or updating the space
      -   * type of a space. Output only for other usage.
      +   * Optional. The type of space. Required when creating a space or updating the
      +   * space type of a space. Output only for other usage.
          * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceType. */ @@ -7267,7 +7636,7 @@ public boolean getSingleUserBotDm() { * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=241 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=268 * @return The threaded. */ @java.lang.Override @@ -7284,7 +7653,7 @@ public boolean getThreaded() { * * *
      -   * The space's display name. Required when [creating a
      +   * Optional. The space's display name. Required when [creating a
          * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
          * with a `spaceType` of `SPACE`. If you receive the error message
          * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -7296,7 +7665,7 @@ public boolean getThreaded() {
          * Supports up to 128 characters.
          * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -7316,7 +7685,7 @@ public java.lang.String getDisplayName() { * * *
      -   * The space's display name. Required when [creating a
      +   * Optional. The space's display name. Required when [creating a
          * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
          * with a `spaceType` of `SPACE`. If you receive the error message
          * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -7328,7 +7697,7 @@ public java.lang.String getDisplayName() {
          * Supports up to 128 characters.
          * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -7351,9 +7720,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
      -   * Immutable. Whether this space permits any Google Chat user as a member.
      -   * Input when creating a space in a Google Workspace organization. Omit this
      -   * field when creating spaces in the following conditions:
      +   * Optional. Immutable. Whether this space permits any Google Chat user as a
      +   * member. Input when creating a space in a Google Workspace organization.
      +   * Omit this field when creating spaces in the following conditions:
          *
          *   * The authenticated user uses a consumer account (unmanaged user
          *     account). By default, a space created by a consumer account permits any
      @@ -7362,7 +7731,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
          * For existing spaces, this field is output only.
          * 
      * - * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The externalUserAllowed. */ @@ -7416,10 +7787,12 @@ public com.google.chat.v1.Space.SpaceThreadingState getSpaceThreadingState() { * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the spaceDetails field is set. */ @@ -7431,10 +7804,12 @@ public boolean hasSpaceDetails() { * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceDetails. */ @@ -7448,10 +7823,12 @@ public com.google.chat.v1.Space.SpaceDetails getSpaceDetails() { * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder() { @@ -7466,10 +7843,12 @@ public com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder() * * *
      -   * The message history state for messages and threads in this space.
      +   * Optional. The message history state for messages and threads in this space.
          * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceHistoryState. */ @@ -7481,10 +7860,12 @@ public int getSpaceHistoryStateValue() { * * *
      -   * The message history state for messages and threads in this space.
      +   * Optional. The message history state for messages and threads in this space.
          * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceHistoryState. */ @@ -7504,6 +7885,9 @@ public com.google.chat.v1.HistoryState getSpaceHistoryState() { * Optional. Whether this space is created in `Import Mode` as part of a data * migration into Google Workspace. While spaces are being imported, they * aren't visible to users until the import is complete. + * + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; @@ -7976,6 +8360,80 @@ public com.google.chat.v1.Space.PermissionSettingsOrBuilder getPermissionSetting return com.google.chat.v1.Space.PermissionSettings.getDefaultInstance(); } + public static final int IMPORT_MODE_EXPIRE_TIME_FIELD_NUMBER = 28; + private com.google.protobuf.Timestamp importModeExpireTime_; + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importModeExpireTime field is set. + */ + @java.lang.Override + public boolean hasImportModeExpireTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importModeExpireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getImportModeExpireTime() { + return importModeExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : importModeExpireTime_; + } + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getImportModeExpireTimeOrBuilder() { + return importModeExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : importModeExpireTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8051,6 +8509,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 27, (com.google.chat.v1.Space.PermissionSettings) spacePermissionSettings_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(28, getImportModeExpireTime()); + } getUnknownFields().writeTo(output); } @@ -8124,6 +8585,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 27, (com.google.chat.v1.Space.PermissionSettings) spacePermissionSettings_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getImportModeExpireTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8171,6 +8636,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAccessSettings().equals(other.getAccessSettings())) return false; } if (!getSpaceUri().equals(other.getSpaceUri())) return false; + if (hasImportModeExpireTime() != other.hasImportModeExpireTime()) return false; + if (hasImportModeExpireTime()) { + if (!getImportModeExpireTime().equals(other.getImportModeExpireTime())) return false; + } if (!getSpacePermissionSettingsCase().equals(other.getSpacePermissionSettingsCase())) return false; switch (spacePermissionSettingsCase_) { @@ -8239,6 +8708,10 @@ public int hashCode() { } hash = (37 * hash) + SPACE_URI_FIELD_NUMBER; hash = (53 * hash) + getSpaceUri().hashCode(); + if (hasImportModeExpireTime()) { + hash = (37 * hash) + IMPORT_MODE_EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getImportModeExpireTime().hashCode(); + } switch (spacePermissionSettingsCase_) { case 26: hash = (37 * hash) + PREDEFINED_PERMISSION_SETTINGS_FIELD_NUMBER; @@ -8393,6 +8866,7 @@ private void maybeForceBuilderInitialization() { getLastActiveTimeFieldBuilder(); getMembershipCountFieldBuilder(); getAccessSettingsFieldBuilder(); + getImportModeExpireTimeFieldBuilder(); } } @@ -8440,6 +8914,11 @@ public Builder clear() { if (permissionSettingsBuilder_ != null) { permissionSettingsBuilder_.clear(); } + importModeExpireTime_ = null; + if (importModeExpireTimeBuilder_ != null) { + importModeExpireTimeBuilder_.dispose(); + importModeExpireTimeBuilder_ = null; + } spacePermissionSettingsCase_ = 0; spacePermissionSettings_ = null; return this; @@ -8538,6 +9017,13 @@ private void buildPartial0(com.google.chat.v1.Space result) { if (((from_bitField0_ & 0x00010000) != 0)) { result.spaceUri_ = spaceUri_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.importModeExpireTime_ = + importModeExpireTimeBuilder_ == null + ? importModeExpireTime_ + : importModeExpireTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -8651,6 +9137,9 @@ public Builder mergeFrom(com.google.chat.v1.Space other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.hasImportModeExpireTime()) { + mergeImportModeExpireTime(other.getImportModeExpireTime()); + } switch (other.getSpacePermissionSettingsCase()) { case PREDEFINED_PERMISSION_SETTINGS: { @@ -8809,6 +9298,13 @@ public Builder mergeFrom( spacePermissionSettingsCase_ = 27; break; } // case 218 + case 226: + { + input.readMessage( + getImportModeExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8847,7 +9343,7 @@ public Builder clearSpacePermissionSettings() { * * *
      -     * Resource name of the space.
      +     * Identifier. Resource name of the space.
            *
            * Format: `spaces/{space}`
            *
      @@ -8859,7 +9355,7 @@ public Builder clearSpacePermissionSettings() {
            * is `AAAAAAAAA`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -8878,7 +9374,7 @@ public java.lang.String getName() { * * *
      -     * Resource name of the space.
      +     * Identifier. Resource name of the space.
            *
            * Format: `spaces/{space}`
            *
      @@ -8890,7 +9386,7 @@ public java.lang.String getName() {
            * is `AAAAAAAAA`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -8909,7 +9405,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Resource name of the space.
      +     * Identifier. Resource name of the space.
            *
            * Format: `spaces/{space}`
            *
      @@ -8921,7 +9417,7 @@ public com.google.protobuf.ByteString getNameBytes() {
            * is `AAAAAAAAA`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -8939,7 +9435,7 @@ public Builder setName(java.lang.String value) { * * *
      -     * Resource name of the space.
      +     * Identifier. Resource name of the space.
            *
            * Format: `spaces/{space}`
            *
      @@ -8951,7 +9447,7 @@ public Builder setName(java.lang.String value) {
            * is `AAAAAAAAA`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -8965,7 +9461,7 @@ public Builder clearName() { * * *
      -     * Resource name of the space.
      +     * Identifier. Resource name of the space.
            *
            * Format: `spaces/{space}`
            *
      @@ -8977,7 +9473,7 @@ public Builder clearName() {
            * is `AAAAAAAAA`.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -9006,7 +9502,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -9026,7 +9522,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -9049,7 +9545,7 @@ public Builder setTypeValue(int value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The type. */ @java.lang.Override @@ -9070,7 +9566,7 @@ public com.google.chat.v1.Space.Type getType() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @param value The type to set. * @return This builder for chaining. */ @@ -9096,7 +9592,7 @@ public Builder setType(com.google.chat.v1.Space.Type value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9112,11 +9608,13 @@ public Builder clearType() { * * *
      -     * The type of space. Required when creating a space or updating the space
      -     * type of a space. Output only for other usage.
      +     * Optional. The type of space. Required when creating a space or updating the
      +     * space type of a space. Output only for other usage.
            * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceType. */ @@ -9128,11 +9626,13 @@ public int getSpaceTypeValue() { * * *
      -     * The type of space. Required when creating a space or updating the space
      -     * type of a space. Output only for other usage.
      +     * Optional. The type of space. Required when creating a space or updating the
      +     * space type of a space. Output only for other usage.
            * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for spaceType to set. * @return This builder for chaining. @@ -9147,11 +9647,13 @@ public Builder setSpaceTypeValue(int value) { * * *
      -     * The type of space. Required when creating a space or updating the space
      -     * type of a space. Output only for other usage.
      +     * Optional. The type of space. Required when creating a space or updating the
      +     * space type of a space. Output only for other usage.
            * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceType. */ @@ -9165,11 +9667,13 @@ public com.google.chat.v1.Space.SpaceType getSpaceType() { * * *
      -     * The type of space. Required when creating a space or updating the space
      -     * type of a space. Output only for other usage.
      +     * Optional. The type of space. Required when creating a space or updating the
      +     * space type of a space. Output only for other usage.
            * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The spaceType to set. * @return This builder for chaining. @@ -9187,11 +9691,13 @@ public Builder setSpaceType(com.google.chat.v1.Space.SpaceType value) { * * *
      -     * The type of space. Required when creating a space or updating the space
      -     * type of a space. Output only for other usage.
      +     * Optional. The type of space. Required when creating a space or updating the
      +     * space type of a space. Output only for other usage.
            * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -9270,7 +9776,7 @@ public Builder clearSingleUserBotDm() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=241 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=268 * @return The threaded. */ @java.lang.Override @@ -9289,7 +9795,7 @@ public boolean getThreaded() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=241 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=268 * @param value The threaded to set. * @return This builder for chaining. */ @@ -9312,7 +9818,7 @@ public Builder setThreaded(boolean value) { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=241 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=268 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9328,7 +9834,7 @@ public Builder clearThreaded() { * * *
      -     * The space's display name. Required when [creating a
      +     * Optional. The space's display name. Required when [creating a
            * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
            * with a `spaceType` of `SPACE`. If you receive the error message
            * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -9340,7 +9846,7 @@ public Builder clearThreaded() {
            * Supports up to 128 characters.
            * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -9359,7 +9865,7 @@ public java.lang.String getDisplayName() { * * *
      -     * The space's display name. Required when [creating a
      +     * Optional. The space's display name. Required when [creating a
            * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
            * with a `spaceType` of `SPACE`. If you receive the error message
            * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -9371,7 +9877,7 @@ public java.lang.String getDisplayName() {
            * Supports up to 128 characters.
            * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -9390,7 +9896,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
      -     * The space's display name. Required when [creating a
      +     * Optional. The space's display name. Required when [creating a
            * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
            * with a `spaceType` of `SPACE`. If you receive the error message
            * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -9402,7 +9908,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
            * Supports up to 128 characters.
            * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -9420,7 +9926,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
      -     * The space's display name. Required when [creating a
      +     * Optional. The space's display name. Required when [creating a
            * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
            * with a `spaceType` of `SPACE`. If you receive the error message
            * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -9432,7 +9938,7 @@ public Builder setDisplayName(java.lang.String value) {
            * Supports up to 128 characters.
            * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -9446,7 +9952,7 @@ public Builder clearDisplayName() { * * *
      -     * The space's display name. Required when [creating a
      +     * Optional. The space's display name. Required when [creating a
            * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
            * with a `spaceType` of `SPACE`. If you receive the error message
            * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -9458,7 +9964,7 @@ public Builder clearDisplayName() {
            * Supports up to 128 characters.
            * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -9479,9 +9985,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * Immutable. Whether this space permits any Google Chat user as a member.
      -     * Input when creating a space in a Google Workspace organization. Omit this
      -     * field when creating spaces in the following conditions:
      +     * Optional. Immutable. Whether this space permits any Google Chat user as a
      +     * member. Input when creating a space in a Google Workspace organization.
      +     * Omit this field when creating spaces in the following conditions:
            *
            *   * The authenticated user uses a consumer account (unmanaged user
            *     account). By default, a space created by a consumer account permits any
      @@ -9490,7 +9996,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
            * For existing spaces, this field is output only.
            * 
      * - * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The externalUserAllowed. */ @@ -9502,9 +10010,9 @@ public boolean getExternalUserAllowed() { * * *
      -     * Immutable. Whether this space permits any Google Chat user as a member.
      -     * Input when creating a space in a Google Workspace organization. Omit this
      -     * field when creating spaces in the following conditions:
      +     * Optional. Immutable. Whether this space permits any Google Chat user as a
      +     * member. Input when creating a space in a Google Workspace organization.
      +     * Omit this field when creating spaces in the following conditions:
            *
            *   * The authenticated user uses a consumer account (unmanaged user
            *     account). By default, a space created by a consumer account permits any
      @@ -9513,7 +10021,9 @@ public boolean getExternalUserAllowed() {
            * For existing spaces, this field is output only.
            * 
      * - * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * * * @param value The externalUserAllowed to set. * @return This builder for chaining. @@ -9529,9 +10039,9 @@ public Builder setExternalUserAllowed(boolean value) { * * *
      -     * Immutable. Whether this space permits any Google Chat user as a member.
      -     * Input when creating a space in a Google Workspace organization. Omit this
      -     * field when creating spaces in the following conditions:
      +     * Optional. Immutable. Whether this space permits any Google Chat user as a
      +     * member. Input when creating a space in a Google Workspace organization.
      +     * Omit this field when creating spaces in the following conditions:
            *
            *   * The authenticated user uses a consumer account (unmanaged user
            *     account). By default, a space created by a consumer account permits any
      @@ -9540,7 +10050,9 @@ public Builder setExternalUserAllowed(boolean value) {
            * For existing spaces, this field is output only.
            * 
      * - * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -9661,10 +10173,12 @@ public Builder clearSpaceThreadingState() { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the spaceDetails field is set. */ @@ -9675,10 +10189,12 @@ public boolean hasSpaceDetails() { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceDetails. */ @@ -9695,10 +10211,12 @@ public com.google.chat.v1.Space.SpaceDetails getSpaceDetails() { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpaceDetails(com.google.chat.v1.Space.SpaceDetails value) { if (spaceDetailsBuilder_ == null) { @@ -9717,10 +10235,12 @@ public Builder setSpaceDetails(com.google.chat.v1.Space.SpaceDetails value) { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpaceDetails(com.google.chat.v1.Space.SpaceDetails.Builder builderForValue) { if (spaceDetailsBuilder_ == null) { @@ -9736,10 +10256,12 @@ public Builder setSpaceDetails(com.google.chat.v1.Space.SpaceDetails.Builder bui * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSpaceDetails(com.google.chat.v1.Space.SpaceDetails value) { if (spaceDetailsBuilder_ == null) { @@ -9763,10 +10285,12 @@ public Builder mergeSpaceDetails(com.google.chat.v1.Space.SpaceDetails value) { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpaceDetails() { bitField0_ = (bitField0_ & ~0x00000100); @@ -9782,10 +10306,12 @@ public Builder clearSpaceDetails() { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.SpaceDetails.Builder getSpaceDetailsBuilder() { bitField0_ |= 0x00000100; @@ -9796,10 +10322,12 @@ public com.google.chat.v1.Space.SpaceDetails.Builder getSpaceDetailsBuilder() { * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder() { if (spaceDetailsBuilder_ != null) { @@ -9814,10 +10342,12 @@ public com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder() * * *
      -     * Details about the space including description and rules.
      +     * Optional. Details about the space including description and rules.
            * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.Space.SpaceDetails, @@ -9841,10 +10371,12 @@ public com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder() * * *
      -     * The message history state for messages and threads in this space.
      +     * Optional. The message history state for messages and threads in this space.
            * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceHistoryState. */ @@ -9856,10 +10388,12 @@ public int getSpaceHistoryStateValue() { * * *
      -     * The message history state for messages and threads in this space.
      +     * Optional. The message history state for messages and threads in this space.
            * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for spaceHistoryState to set. * @return This builder for chaining. @@ -9874,10 +10408,12 @@ public Builder setSpaceHistoryStateValue(int value) { * * *
      -     * The message history state for messages and threads in this space.
      +     * Optional. The message history state for messages and threads in this space.
            * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceHistoryState. */ @@ -9891,10 +10427,12 @@ public com.google.chat.v1.HistoryState getSpaceHistoryState() { * * *
      -     * The message history state for messages and threads in this space.
      +     * Optional. The message history state for messages and threads in this space.
            * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The spaceHistoryState to set. * @return This builder for chaining. @@ -9912,10 +10450,12 @@ public Builder setSpaceHistoryState(com.google.chat.v1.HistoryState value) { * * *
      -     * The message history state for messages and threads in this space.
      +     * Optional. The message history state for messages and threads in this space.
            * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -9934,6 +10474,9 @@ public Builder clearSpaceHistoryState() { * Optional. Whether this space is created in `Import Mode` as part of a data * migration into Google Workspace. While spaces are being imported, they * aren't visible to users until the import is complete. + * + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; @@ -9951,6 +10494,9 @@ public boolean getImportMode() { * Optional. Whether this space is created in `Import Mode` as part of a data * migration into Google Workspace. While spaces are being imported, they * aren't visible to users until the import is complete. + * + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; @@ -9972,6 +10518,9 @@ public Builder setImportMode(boolean value) { * Optional. Whether this space is created in `Import Mode` as part of a data * migration into Google Workspace. While spaces are being imported, they * aren't visible to users until the import is complete. + * + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; @@ -11466,6 +12015,263 @@ public com.google.chat.v1.Space.PermissionSettingsOrBuilder getPermissionSetting return permissionSettingsBuilder_; } + private com.google.protobuf.Timestamp importModeExpireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + importModeExpireTimeBuilder_; + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importModeExpireTime field is set. + */ + public boolean hasImportModeExpireTime() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importModeExpireTime. + */ + public com.google.protobuf.Timestamp getImportModeExpireTime() { + if (importModeExpireTimeBuilder_ == null) { + return importModeExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : importModeExpireTime_; + } else { + return importModeExpireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImportModeExpireTime(com.google.protobuf.Timestamp value) { + if (importModeExpireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importModeExpireTime_ = value; + } else { + importModeExpireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImportModeExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (importModeExpireTimeBuilder_ == null) { + importModeExpireTime_ = builderForValue.build(); + } else { + importModeExpireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeImportModeExpireTime(com.google.protobuf.Timestamp value) { + if (importModeExpireTimeBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && importModeExpireTime_ != null + && importModeExpireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getImportModeExpireTimeBuilder().mergeFrom(value); + } else { + importModeExpireTime_ = value; + } + } else { + importModeExpireTimeBuilder_.mergeFrom(value); + } + if (importModeExpireTime_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearImportModeExpireTime() { + bitField0_ = (bitField0_ & ~0x00080000); + importModeExpireTime_ = null; + if (importModeExpireTimeBuilder_ != null) { + importModeExpireTimeBuilder_.dispose(); + importModeExpireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getImportModeExpireTimeBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getImportModeExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getImportModeExpireTimeOrBuilder() { + if (importModeExpireTimeBuilder_ != null) { + return importModeExpireTimeBuilder_.getMessageOrBuilder(); + } else { + return importModeExpireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : importModeExpireTime_; + } + } + /** + * + * + *
      +     * Output only. The time when the space will be automatically deleted by the
      +     * system if it remains in import mode.
      +     *
      +     * Each space created in import mode must exit this mode before this expire
      +     * time using `spaces.completeImport`.
      +     *
      +     * This field is only populated for spaces that were created with import mode.
      +     * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getImportModeExpireTimeFieldBuilder() { + if (importModeExpireTimeBuilder_ == null) { + importModeExpireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getImportModeExpireTime(), getParentForChildren(), isClean()); + importModeExpireTime_ = null; + } + return importModeExpireTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java index d81491180d4a..42adfd3d524f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventProto.java @@ -103,17 +103,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "{space}/spaceEvents/{space_event}B\t\n\007pay" + "load\"L\n\024GetSpaceEventRequest\0224\n\004name\030\001 \001" + "(\tB&\340A\002\372A \n\036chat.googleapis.com/SpaceEve" - + "nt\"\214\001\n\026ListSpaceEventsRequest\0226\n\006parent\030" + + "nt\"\226\001\n\026ListSpaceEventsRequest\0226\n\006parent\030" + "\001 \001(\tB&\340A\002\372A \022\036chat.googleapis.com/Space" - + "Event\022\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006" - + " \001(\t\022\023\n\006filter\030\010 \001(\tB\003\340A\002\"d\n\027ListSpaceEv" - + "entsResponse\0220\n\014space_events\030\001 \003(\0132\032.goo" - + "gle.chat.v1.SpaceEvent\022\027\n\017next_page_toke" - + "n\030\002 \001(\tB\232\001\n\022com.google.chat.v1B\017SpaceEve" - + "ntProtoP\001Z,cloud.google.com/go/chat/apiv" - + "1/chatpb;chatpb\252\002\023Google.Apps.Chat.V1\312\002\023" - + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" - + "::V1b\006proto3" + + "Event\022\026\n\tpage_size\030\005 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\006 \001(\tB\003\340A\001\022\023\n\006filter\030\010 \001(\tB\003\340A\002\"d\n\027L" + + "istSpaceEventsResponse\0220\n\014space_events\030\001" + + " \003(\0132\032.google.chat.v1.SpaceEvent\022\027\n\017next" + + "_page_token\030\002 \001(\tB\232\001\n\022com.google.chat.v1" + + "B\017SpaceEventProtoP\001Z,cloud.google.com/go" + + "/chat/apiv1/chatpb;chatpb\252\002\023Google.Apps." + + "Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::" + + "Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java index 1e22c8e05dfd..79cf7e46d357 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java @@ -28,7 +28,7 @@ public interface SpaceOrBuilder * * *
      -   * Resource name of the space.
      +   * Identifier. Resource name of the space.
          *
          * Format: `spaces/{space}`
          *
      @@ -40,7 +40,7 @@ public interface SpaceOrBuilder
          * is `AAAAAAAAA`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -49,7 +49,7 @@ public interface SpaceOrBuilder * * *
      -   * Resource name of the space.
      +   * Identifier. Resource name of the space.
          *
          * Format: `spaces/{space}`
          *
      @@ -61,7 +61,7 @@ public interface SpaceOrBuilder
          * is `AAAAAAAAA`.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -79,7 +79,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The enum numeric value on the wire for type. */ @java.lang.Deprecated @@ -96,7 +96,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=229 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=256 * @return The type. */ @java.lang.Deprecated @@ -106,11 +106,13 @@ public interface SpaceOrBuilder * * *
      -   * The type of space. Required when creating a space or updating the space
      -   * type of a space. Output only for other usage.
      +   * Optional. The type of space. Required when creating a space or updating the
      +   * space type of a space. Output only for other usage.
          * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceType. */ @@ -119,11 +121,13 @@ public interface SpaceOrBuilder * * *
      -   * The type of space. Required when creating a space or updating the space
      -   * type of a space. Output only for other usage.
      +   * Optional. The type of space. Required when creating a space or updating the
      +   * space type of a space. Output only for other usage.
          * 
      * - * .google.chat.v1.Space.SpaceType space_type = 10; + * + * .google.chat.v1.Space.SpaceType space_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceType. */ @@ -153,7 +157,7 @@ public interface SpaceOrBuilder * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=241 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=268 * @return The threaded. */ @java.lang.Deprecated @@ -163,7 +167,7 @@ public interface SpaceOrBuilder * * *
      -   * The space's display name. Required when [creating a
      +   * Optional. The space's display name. Required when [creating a
          * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
          * with a `spaceType` of `SPACE`. If you receive the error message
          * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -175,7 +179,7 @@ public interface SpaceOrBuilder
          * Supports up to 128 characters.
          * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -184,7 +188,7 @@ public interface SpaceOrBuilder * * *
      -   * The space's display name. Required when [creating a
      +   * Optional. The space's display name. Required when [creating a
          * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
          * with a `spaceType` of `SPACE`. If you receive the error message
          * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
      @@ -196,7 +200,7 @@ public interface SpaceOrBuilder
          * Supports up to 128 characters.
          * 
      * - * string display_name = 3; + * string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -206,9 +210,9 @@ public interface SpaceOrBuilder * * *
      -   * Immutable. Whether this space permits any Google Chat user as a member.
      -   * Input when creating a space in a Google Workspace organization. Omit this
      -   * field when creating spaces in the following conditions:
      +   * Optional. Immutable. Whether this space permits any Google Chat user as a
      +   * member. Input when creating a space in a Google Workspace organization.
      +   * Omit this field when creating spaces in the following conditions:
          *
          *   * The authenticated user uses a consumer account (unmanaged user
          *     account). By default, a space created by a consumer account permits any
      @@ -217,7 +221,9 @@ public interface SpaceOrBuilder
          * For existing spaces, this field is output only.
          * 
      * - * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The externalUserAllowed. */ @@ -256,10 +262,12 @@ public interface SpaceOrBuilder * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the spaceDetails field is set. */ @@ -268,10 +276,12 @@ public interface SpaceOrBuilder * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceDetails. */ @@ -280,10 +290,12 @@ public interface SpaceOrBuilder * * *
      -   * Details about the space including description and rules.
      +   * Optional. Details about the space including description and rules.
          * 
      * - * .google.chat.v1.Space.SpaceDetails space_details = 11; + * + * .google.chat.v1.Space.SpaceDetails space_details = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.chat.v1.Space.SpaceDetailsOrBuilder getSpaceDetailsOrBuilder(); @@ -291,10 +303,12 @@ public interface SpaceOrBuilder * * *
      -   * The message history state for messages and threads in this space.
      +   * Optional. The message history state for messages and threads in this space.
          * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for spaceHistoryState. */ @@ -303,10 +317,12 @@ public interface SpaceOrBuilder * * *
      -   * The message history state for messages and threads in this space.
      +   * Optional. The message history state for messages and threads in this space.
          * 
      * - * .google.chat.v1.HistoryState space_history_state = 13; + * + * .google.chat.v1.HistoryState space_history_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The spaceHistoryState. */ @@ -319,6 +335,9 @@ public interface SpaceOrBuilder * Optional. Whether this space is created in `Import Mode` as part of a data * migration into Google Workspace. While spaces are being imported, they * aren't visible to users until the import is complete. + * + * Creating a space in `Import Mode`requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). *
      * * bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; @@ -666,5 +685,64 @@ public interface SpaceOrBuilder */ com.google.chat.v1.Space.PermissionSettingsOrBuilder getPermissionSettingsOrBuilder(); + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the importModeExpireTime field is set. + */ + boolean hasImportModeExpireTime(); + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The importModeExpireTime. + */ + com.google.protobuf.Timestamp getImportModeExpireTime(); + /** + * + * + *
      +   * Output only. The time when the space will be automatically deleted by the
      +   * system if it remains in import mode.
      +   *
      +   * Each space created in import mode must exit this mode before this expire
      +   * time using `spaces.completeImport`.
      +   *
      +   * This field is only populated for spaces that were created with import mode.
      +   * 
      + * + * + * .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getImportModeExpireTimeOrBuilder(); + com.google.chat.v1.Space.SpacePermissionSettingsCase getSpacePermissionSettingsCase(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java index 698ffda29041..b133a53d9712 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java @@ -110,102 +110,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/resource.proto\032\"google/chat/v1" + "/history_state.proto\032 google/protobuf/fi" + "eld_mask.proto\032\037google/protobuf/timestam" - + "p.proto\"\264\024\n\005Space\022\014\n\004name\030\001 \001(\t\022/\n\004type\030" - + "\002 \001(\0162\032.google.chat.v1.Space.TypeB\005\030\001\340A\003" - + "\0223\n\nspace_type\030\n \001(\0162\037.google.chat.v1.Sp" - + "ace.SpaceType\022\037\n\022single_user_bot_dm\030\004 \001(" - + "\010B\003\340A\001\022\027\n\010threaded\030\005 \001(\010B\005\030\001\340A\003\022\024\n\014displ" - + "ay_name\030\003 \001(\t\022\"\n\025external_user_allowed\030\010" - + " \001(\010B\003\340A\005\022M\n\025space_threading_state\030\t \001(\016" - + "2).google.chat.v1.Space.SpaceThreadingSt" - + "ateB\003\340A\003\0229\n\rspace_details\030\013 \001(\0132\".google" - + ".chat.v1.Space.SpaceDetails\0229\n\023space_his" - + "tory_state\030\r \001(\0162\034.google.chat.v1.Histor" - + "yState\022\030\n\013import_mode\030\020 \001(\010B\003\340A\001\0227\n\013crea" - + "te_time\030\021 \001(\0132\032.google.protobuf.Timestam" - + "pB\006\340A\005\340A\001\0229\n\020last_active_time\030\022 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\034\n\017admin_in" - + "stalled\030\023 \001(\010B\003\340A\003\022D\n\020membership_count\030\024" - + " \001(\0132%.google.chat.v1.Space.MembershipCo" - + "untB\003\340A\003\022B\n\017access_settings\030\027 \001(\0132$.goog" - + "le.chat.v1.Space.AccessSettingsB\003\340A\001\022\026\n\t" - + "space_uri\030\031 \001(\tB\003\340A\003\022d\n\036predefined_permi" - + "ssion_settings\030\032 \001(\01622.google.chat.v1.Sp" - + "ace.PredefinedPermissionSettingsB\006\340A\004\340A\001" - + "H\000\022L\n\023permission_settings\030\033 \001(\0132(.google" - + ".chat.v1.Space.PermissionSettingsB\003\340A\001H\000" - + "\0327\n\014SpaceDetails\022\023\n\013description\030\001 \001(\t\022\022\n" - + "\nguidelines\030\002 \001(\t\032U\n\017MembershipCount\022&\n\036" - + "joined_direct_human_user_count\030\004 \001(\005\022\032\n\022" - + "joined_group_count\030\005 \001(\005\032\300\001\n\016AccessSetti" - + "ngs\022K\n\014access_state\030\001 \001(\01620.google.chat." - + "v1.Space.AccessSettings.AccessStateB\003\340A\003" - + "\022\025\n\010audience\030\003 \001(\tB\003\340A\001\"J\n\013AccessState\022\034" - + "\n\030ACCESS_STATE_UNSPECIFIED\020\000\022\013\n\007PRIVATE\020" - + "\001\022\020\n\014DISCOVERABLE\020\002\032\205\006\n\022PermissionSettin" - + "gs\022O\n\031manage_members_and_groups\030\001 \001(\0132\'." - + "google.chat.v1.Space.PermissionSettingH\000" - + "\210\001\001\022J\n\024modify_space_details\030\002 \001(\0132\'.goog" - + "le.chat.v1.Space.PermissionSettingH\001\210\001\001\022" - + "D\n\016toggle_history\030\003 \001(\0132\'.google.chat.v1" - + ".Space.PermissionSettingH\002\210\001\001\022H\n\022use_at_" - + "mention_all\030\004 \001(\0132\'.google.chat.v1.Space" - + ".PermissionSettingH\003\210\001\001\022A\n\013manage_apps\030\005" - + " \001(\0132\'.google.chat.v1.Space.PermissionSe" - + "ttingH\004\210\001\001\022E\n\017manage_webhooks\030\006 \001(\0132\'.go" - + "ogle.chat.v1.Space.PermissionSettingH\005\210\001" - + "\001\022H\n\rpost_messages\030\007 \001(\0132\'.google.chat.v" - + "1.Space.PermissionSettingB\003\340A\003H\006\210\001\001\022D\n\016r" - + "eply_messages\030\010 \001(\0132\'.google.chat.v1.Spa" - + "ce.PermissionSettingH\007\210\001\001B\034\n\032_manage_mem" - + "bers_and_groupsB\027\n\025_modify_space_details" - + "B\021\n\017_toggle_historyB\025\n\023_use_at_mention_a" - + "llB\016\n\014_manage_appsB\022\n\020_manage_webhooksB\020" - + "\n\016_post_messagesB\021\n\017_reply_messages\032F\n\021P" - + "ermissionSetting\022\030\n\020managers_allowed\030\001 \001" - + "(\010\022\027\n\017members_allowed\030\002 \001(\010\".\n\004Type\022\024\n\020T" - + "YPE_UNSPECIFIED\020\000\022\010\n\004ROOM\020\001\022\006\n\002DM\020\002\"V\n\tS" - + "paceType\022\032\n\026SPACE_TYPE_UNSPECIFIED\020\000\022\t\n\005" - + "SPACE\020\001\022\016\n\nGROUP_CHAT\020\002\022\022\n\016DIRECT_MESSAG" - + "E\020\003\"\202\001\n\023SpaceThreadingState\022%\n!SPACE_THR" - + "EADING_STATE_UNSPECIFIED\020\000\022\025\n\021THREADED_M" - + "ESSAGES\020\002\022\024\n\020GROUPED_MESSAGES\020\003\022\027\n\023UNTHR" - + "EADED_MESSAGES\020\004\"\177\n\034PredefinedPermission" - + "Settings\022.\n*PREDEFINED_PERMISSION_SETTIN" - + "GS_UNSPECIFIED\020\000\022\027\n\023COLLABORATION_SPACE\020" - + "\001\022\026\n\022ANNOUNCEMENT_SPACE\020\002:.\352A+\n\031chat.goo" - + "gleapis.com/Space\022\016spaces/{space}B\033\n\031spa" - + "ce_permission_settings\"X\n\022CreateSpaceReq" - + "uest\022)\n\005space\030\001 \001(\0132\025.google.chat.v1.Spa" - + "ceB\003\340A\002\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"Y\n\021List" - + "SpacesRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003" - + "\340A\001\"T\n\022ListSpacesResponse\022%\n\006spaces\030\001 \003(" - + "\0132\025.google.chat.v1.Space\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"\\\n\017GetSpaceRequest\022/\n\004name\030\001 \001" - + "(\tB!\340A\002\372A\033\n\031chat.googleapis.com/Space\022\030\n" - + "\020use_admin_access\030\002 \001(\010\"-\n\030FindDirectMes" - + "sageRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\212\001\n\022Updat" - + "eSpaceRequest\022)\n\005space\030\001 \001(\0132\025.google.ch" - + "at.v1.SpaceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\022\030\n\020use_admin_a" - + "ccess\030\003 \001(\010\"\201\001\n\023SearchSpacesRequest\022\030\n\020u" - + "se_admin_access\030\001 \001(\010\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\022\n\005query\030\004 \001(\tB\003\340A\002" - + "\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"j\n\024SearchSpacesR" - + "esponse\022%\n\006spaces\030\001 \003(\0132\025.google.chat.v1" - + ".Space\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal" - + "_size\030\003 \001(\005\"_\n\022DeleteSpaceRequest\022/\n\004nam" - + "e\030\001 \001(\tB!\340A\002\372A\033\n\031chat.googleapis.com/Spa" - + "ce\022\030\n\020use_admin_access\030\002 \001(\010\"M\n\032Complete" - + "ImportSpaceRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033" - + "\n\031chat.googleapis.com/Space\"C\n\033CompleteI" - + "mportSpaceResponse\022$\n\005space\030\001 \001(\0132\025.goog" - + "le.chat.v1.SpaceB\243\001\n\022com.google.chat.v1B" - + "\nSpaceProtoP\001Z,cloud.google.com/go/chat/" - + "apiv1/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Goog" - + "le.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026" - + "Google::Apps::Chat::V1b\006proto3" + + "p.proto\"\323\025\n\005Space\022\021\n\004name\030\001 \001(\tB\003\340A\010\022/\n\004" + + "type\030\002 \001(\0162\032.google.chat.v1.Space.TypeB\005" + + "\030\001\340A\003\0228\n\nspace_type\030\n \001(\0162\037.google.chat." + + "v1.Space.SpaceTypeB\003\340A\001\022\037\n\022single_user_b" + + "ot_dm\030\004 \001(\010B\003\340A\001\022\027\n\010threaded\030\005 \001(\010B\005\030\001\340A" + + "\003\022\031\n\014display_name\030\003 \001(\tB\003\340A\001\022%\n\025external" + + "_user_allowed\030\010 \001(\010B\006\340A\005\340A\001\022M\n\025space_thr" + + "eading_state\030\t \001(\0162).google.chat.v1.Spac" + + "e.SpaceThreadingStateB\003\340A\003\022>\n\rspace_deta" + + "ils\030\013 \001(\0132\".google.chat.v1.Space.SpaceDe" + + "tailsB\003\340A\001\022>\n\023space_history_state\030\r \001(\0162" + + "\034.google.chat.v1.HistoryStateB\003\340A\001\022\030\n\013im" + + "port_mode\030\020 \001(\010B\003\340A\001\0227\n\013create_time\030\021 \001(" + + "\0132\032.google.protobuf.TimestampB\006\340A\005\340A\001\0229\n" + + "\020last_active_time\030\022 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\034\n\017admin_installed\030\023 \001(" + + "\010B\003\340A\003\022D\n\020membership_count\030\024 \001(\0132%.googl" + + "e.chat.v1.Space.MembershipCountB\003\340A\003\022B\n\017" + + "access_settings\030\027 \001(\0132$.google.chat.v1.S" + + "pace.AccessSettingsB\003\340A\001\022\026\n\tspace_uri\030\031 " + + "\001(\tB\003\340A\003\022d\n\036predefined_permission_settin" + + "gs\030\032 \001(\01622.google.chat.v1.Space.Predefin" + + "edPermissionSettingsB\006\340A\004\340A\001H\000\022L\n\023permis" + + "sion_settings\030\033 \001(\0132(.google.chat.v1.Spa" + + "ce.PermissionSettingsB\003\340A\001H\000\022@\n\027import_m" + + "ode_expire_time\030\034 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\032A\n\014SpaceDetails\022\030\n\013descri" + + "ption\030\001 \001(\tB\003\340A\001\022\027\n\nguidelines\030\002 \001(\tB\003\340A" + + "\001\032_\n\017MembershipCount\022+\n\036joined_direct_hu" + + "man_user_count\030\004 \001(\005B\003\340A\003\022\037\n\022joined_grou" + + "p_count\030\005 \001(\005B\003\340A\003\032\300\001\n\016AccessSettings\022K\n" + + "\014access_state\030\001 \001(\01620.google.chat.v1.Spa" + + "ce.AccessSettings.AccessStateB\003\340A\003\022\025\n\010au" + + "dience\030\003 \001(\tB\003\340A\001\"J\n\013AccessState\022\034\n\030ACCE" + + "SS_STATE_UNSPECIFIED\020\000\022\013\n\007PRIVATE\020\001\022\020\n\014D" + + "ISCOVERABLE\020\002\032\250\006\n\022PermissionSettings\022T\n\031" + + "manage_members_and_groups\030\001 \001(\0132\'.google" + + ".chat.v1.Space.PermissionSettingB\003\340A\001H\000\210" + + "\001\001\022O\n\024modify_space_details\030\002 \001(\0132\'.googl" + + "e.chat.v1.Space.PermissionSettingB\003\340A\001H\001" + + "\210\001\001\022I\n\016toggle_history\030\003 \001(\0132\'.google.cha" + + "t.v1.Space.PermissionSettingB\003\340A\001H\002\210\001\001\022M" + + "\n\022use_at_mention_all\030\004 \001(\0132\'.google.chat" + + ".v1.Space.PermissionSettingB\003\340A\001H\003\210\001\001\022F\n" + + "\013manage_apps\030\005 \001(\0132\'.google.chat.v1.Spac" + + "e.PermissionSettingB\003\340A\001H\004\210\001\001\022J\n\017manage_" + + "webhooks\030\006 \001(\0132\'.google.chat.v1.Space.Pe" + + "rmissionSettingB\003\340A\001H\005\210\001\001\022H\n\rpost_messag" + + "es\030\007 \001(\0132\'.google.chat.v1.Space.Permissi" + + "onSettingB\003\340A\003H\006\210\001\001\022I\n\016reply_messages\030\010 " + + "\001(\0132\'.google.chat.v1.Space.PermissionSet" + + "tingB\003\340A\001H\007\210\001\001B\034\n\032_manage_members_and_gr" + + "oupsB\027\n\025_modify_space_detailsB\021\n\017_toggle" + + "_historyB\025\n\023_use_at_mention_allB\016\n\014_mana" + + "ge_appsB\022\n\020_manage_webhooksB\020\n\016_post_mes" + + "sagesB\021\n\017_reply_messages\032P\n\021PermissionSe" + + "tting\022\035\n\020managers_allowed\030\001 \001(\010B\003\340A\001\022\034\n\017" + + "members_allowed\030\002 \001(\010B\003\340A\001\".\n\004Type\022\024\n\020TY" + + "PE_UNSPECIFIED\020\000\022\010\n\004ROOM\020\001\022\006\n\002DM\020\002\"V\n\tSp" + + "aceType\022\032\n\026SPACE_TYPE_UNSPECIFIED\020\000\022\t\n\005S" + + "PACE\020\001\022\016\n\nGROUP_CHAT\020\002\022\022\n\016DIRECT_MESSAGE" + + "\020\003\"\202\001\n\023SpaceThreadingState\022%\n!SPACE_THRE" + + "ADING_STATE_UNSPECIFIED\020\000\022\025\n\021THREADED_ME" + + "SSAGES\020\002\022\024\n\020GROUPED_MESSAGES\020\003\022\027\n\023UNTHRE" + + "ADED_MESSAGES\020\004\"\177\n\034PredefinedPermissionS" + + "ettings\022.\n*PREDEFINED_PERMISSION_SETTING" + + "S_UNSPECIFIED\020\000\022\027\n\023COLLABORATION_SPACE\020\001" + + "\022\026\n\022ANNOUNCEMENT_SPACE\020\002:.\352A+\n\031chat.goog" + + "leapis.com/Space\022\016spaces/{space}B\033\n\031spac" + + "e_permission_settings\"X\n\022CreateSpaceRequ" + + "est\022)\n\005space\030\001 \001(\0132\025.google.chat.v1.Spac" + + "eB\003\340A\002\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"Y\n\021ListS" + + "pacesRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340" + + "A\001\"T\n\022ListSpacesResponse\022%\n\006spaces\030\001 \003(\013" + + "2\025.google.chat.v1.Space\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"a\n\017GetSpaceRequest\022/\n\004name\030\001 \001(" + + "\tB!\340A\002\372A\033\n\031chat.googleapis.com/Space\022\035\n\020" + + "use_admin_access\030\002 \001(\010B\003\340A\001\"-\n\030FindDirec" + + "tMessageRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\224\001\n\022U" + + "pdateSpaceRequest\022)\n\005space\030\001 \001(\0132\025.googl" + + "e.chat.v1.SpaceB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\035\n\020us" + + "e_admin_access\030\003 \001(\010B\003\340A\001\"\201\001\n\023SearchSpac" + + "esRequest\022\030\n\020use_admin_access\030\001 \001(\010\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\022\n\005qu" + + "ery\030\004 \001(\tB\003\340A\002\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"j\n" + + "\024SearchSpacesResponse\022%\n\006spaces\030\001 \003(\0132\025." + + "google.chat.v1.Space\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"d\n\022DeleteSpace" + + "Request\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031chat.goog" + + "leapis.com/Space\022\035\n\020use_admin_access\030\002 \001" + + "(\010B\003\340A\001\"M\n\032CompleteImportSpaceRequest\022/\n" + + "\004name\030\001 \001(\tB!\340A\002\372A\033\n\031chat.googleapis.com" + + "/Space\"C\n\033CompleteImportSpaceResponse\022$\n" + + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\243\001\n\022" + + "com.google.chat.v1B\nSpaceProtoP\001Z,cloud." + + "google.com/go/chat/apiv1/chatpb;chatpb\242\002" + + "\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Goo" + + "gle\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -241,6 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpaceUri", "PredefinedPermissionSettings", "PermissionSettings", + "ImportModeExpireTime", "SpacePermissionSettings", }); internal_static_google_chat_v1_Space_SpaceDetails_descriptor = diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Thread.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Thread.java index 363bf735af72..6b24f1e89723 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Thread.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Thread.java @@ -75,12 +75,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Resource name of the thread.
      +   * Identifier. Resource name of the thread.
          *
          * Example: `spaces/{space}/threads/{thread}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -100,12 +100,12 @@ public java.lang.String getName() { * * *
      -   * Resource name of the thread.
      +   * Identifier. Resource name of the thread.
          *
          * Example: `spaces/{space}/threads/{thread}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -557,12 +557,12 @@ public Builder mergeFrom( * * *
      -     * Resource name of the thread.
      +     * Identifier. Resource name of the thread.
            *
            * Example: `spaces/{space}/threads/{thread}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -581,12 +581,12 @@ public java.lang.String getName() { * * *
      -     * Resource name of the thread.
      +     * Identifier. Resource name of the thread.
            *
            * Example: `spaces/{space}/threads/{thread}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -605,12 +605,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Resource name of the thread.
      +     * Identifier. Resource name of the thread.
            *
            * Example: `spaces/{space}/threads/{thread}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -628,12 +628,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Resource name of the thread.
      +     * Identifier. Resource name of the thread.
            *
            * Example: `spaces/{space}/threads/{thread}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -647,12 +647,12 @@ public Builder clearName() { * * *
      -     * Resource name of the thread.
      +     * Identifier. Resource name of the thread.
            *
            * Example: `spaces/{space}/threads/{thread}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadOrBuilder.java index 6f9e8a1558c7..b4097a0b081a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadOrBuilder.java @@ -28,12 +28,12 @@ public interface ThreadOrBuilder * * *
      -   * Resource name of the thread.
      +   * Identifier. Resource name of the thread.
          *
          * Example: `spaces/{space}/threads/{thread}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -42,12 +42,12 @@ public interface ThreadOrBuilder * * *
      -   * Resource name of the thread.
      +   * Identifier. Resource name of the thread.
          *
          * Example: `spaces/{space}/threads/{thread}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequest.java index e64bcba5cb27..9941ea02980b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequest.java @@ -184,7 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -195,7 +195,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1066,7 +1066,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1077,7 +1077,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1089,7 +1089,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1100,7 +1100,7 @@ public boolean getUseAdminAccess() {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -1116,7 +1116,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1127,7 +1127,7 @@ public Builder setUseAdminAccess(boolean value) {
            * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequestOrBuilder.java index b070cdb660d3..476fcfbbfb06 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMembershipRequestOrBuilder.java @@ -122,7 +122,7 @@ public interface UpdateMembershipRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -133,7 +133,7 @@ public interface UpdateMembershipRequestOrBuilder
          * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java index a97b0bd9d6d2..0c2ea10b86aa 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java @@ -133,7 +133,8 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * authentication](/chat/api/guides/auth/service-accounts).) *
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -164,7 +165,8 @@ public boolean hasUpdateMask() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -195,7 +197,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -847,7 +850,8 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -877,7 +881,8 @@ public boolean hasUpdateMask() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -913,7 +918,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -951,7 +957,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -986,7 +993,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1029,7 +1037,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1064,7 +1073,8 @@ public Builder clearUpdateMask() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1094,7 +1104,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1128,7 +1139,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java index dcd9f8cee232..032cc520f2cf 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java @@ -82,7 +82,8 @@ public interface UpdateMessageRequestOrBuilder * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -110,7 +111,8 @@ public interface UpdateMessageRequestOrBuilder * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -138,7 +140,8 @@ public interface UpdateMessageRequestOrBuilder * authentication](/chat/api/guides/auth/service-accounts).) * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequest.java index db4aa173a93b..779670a94b08 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequest.java @@ -183,7 +183,8 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -258,7 +259,8 @@ public boolean hasUpdateMask() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -333,7 +335,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -346,7 +349,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -360,7 +363,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          * see the description of `update_mask`.
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1053,7 +1056,8 @@ public com.google.chat.v1.SpaceOrBuilder getSpaceOrBuilder() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -1127,7 +1131,8 @@ public boolean hasUpdateMask() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -1207,7 +1212,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1289,7 +1295,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -1368,7 +1375,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1455,7 +1463,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1534,7 +1543,8 @@ public Builder clearUpdateMask() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1608,7 +1618,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1686,7 +1697,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -1710,7 +1722,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1724,7 +1736,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
            * see the description of `update_mask`.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ @@ -1736,7 +1748,7 @@ public boolean getUseAdminAccess() { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1750,7 +1762,7 @@ public boolean getUseAdminAccess() {
            * see the description of `update_mask`.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useAdminAccess to set. * @return This builder for chaining. @@ -1766,7 +1778,7 @@ public Builder setUseAdminAccess(boolean value) { * * *
      -     * When `true`, the method runs using the user's Google Workspace
      +     * Optional. When `true`, the method runs using the user's Google Workspace
            * administrator privileges.
            *
            * The calling user must be a Google Workspace administrator with the
      @@ -1780,7 +1792,7 @@ public Builder setUseAdminAccess(boolean value) {
            * see the description of `update_mask`.
            * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequestOrBuilder.java index 729924e54439..b836bb2c14dc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateSpaceRequestOrBuilder.java @@ -132,7 +132,8 @@ public interface UpdateSpaceRequestOrBuilder * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -204,7 +205,8 @@ public interface UpdateSpaceRequestOrBuilder * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -276,7 +278,8 @@ public interface UpdateSpaceRequestOrBuilder * - `permission_settings.replyMessages` * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); @@ -284,7 +287,7 @@ public interface UpdateSpaceRequestOrBuilder * * *
      -   * When `true`, the method runs using the user's Google Workspace
      +   * Optional. When `true`, the method runs using the user's Google Workspace
          * administrator privileges.
          *
          * The calling user must be a Google Workspace administrator with the
      @@ -298,7 +301,7 @@ public interface UpdateSpaceRequestOrBuilder
          * see the description of `update_mask`.
          * 
      * - * bool use_admin_access = 3; + * bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useAdminAccess. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto index c500959e5b77..69ecd8b37a3c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/attachment.proto @@ -47,9 +47,9 @@ message Attachment { UPLOADED_CONTENT = 2; } - // Resource name of the attachment, in the form + // Optional. Resource name of the attachment, in the form // `spaces/{space}/messages/{message}/attachments/{attachment}`. - string name = 1; + string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Output only. The original file name for the content, not the full path. string content_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -59,9 +59,11 @@ message Attachment { // The data reference to the attachment. oneof data_ref { - // A reference to the attachment data. This field is used with the media API - // to download the attachment data. - AttachmentDataRef attachment_data_ref = 4; + // Optional. A reference to the attachment data. This field is used to + // create or update messages with attachments, or with the media API to + // download the attachment data. + AttachmentDataRef attachment_data_ref = 4 + [(google.api.field_behavior) = OPTIONAL]; // Output only. A reference to the Google Drive attachment. This field is // used with the Google Drive API. @@ -90,14 +92,14 @@ message DriveDataRef { // A reference to the attachment data. message AttachmentDataRef { - // The resource name of the attachment data. This field is used with the media - // API to download the attachment data. - string resource_name = 1; - - // Opaque token containing a reference to an uploaded attachment. Treated by - // clients as an opaque string and used to create or update Chat messages with - // attachments. - string attachment_upload_token = 2; + // Optional. The resource name of the attachment data. This field is used with + // the media API to download the attachment data. + string resource_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Opaque token containing a reference to an uploaded attachment. + // Treated by clients as an opaque string and used to create or update Chat + // messages with attachments. + string attachment_upload_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request to get an attachment. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index 8b19ca34613e..f051a885451a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -69,8 +69,11 @@ service ChatService { // Creates a message in a Google Chat space. For an example, see [Send a // message](https://developers.google.com/workspace/chat/create-messages). // - // The `create()` method requires either user or app authentication. Chat - // attributes the message sender differently depending on the type of + // The `create()` method requires either [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // or [app + // authentication](https://developers.google.com/workspace/chat/authorize-import). + // Chat attributes the message sender differently depending on the type of // authentication that you use in your request. // // The following image shows how Chat attributes a message when you use app @@ -90,6 +93,12 @@ service ChatService { // authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) // // The maximum message size, including the message contents, is 32,000 bytes. + // + // For + // [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) + // requests, the response doesn't contain the full message. The response only + // populates the `name` and `thread.name` fields in addition to the + // information that was in the request. rpc CreateMessage(CreateMessageRequest) returns (Message) { option (google.api.http) = { post: "/v1/{parent=spaces/*}/messages" @@ -105,6 +114,7 @@ service ChatService { // For an example, see // [List // messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). + // // Requires [user // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) { @@ -126,13 +136,16 @@ service ChatService { // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // lists memberships in spaces that the authenticated user has access to. // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc ListMemberships(ListMembershipsRequest) returns (ListMembershipsResponse) { option (google.api.http) = { @@ -145,13 +158,16 @@ service ChatService { // [Get details about a user's or Google Chat app's // membership](https://developers.google.com/workspace/chat/get-members). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc GetMembership(GetMembershipRequest) returns (Membership) { option (google.api.http) = { get: "/v1/{name=spaces/*/members/*}" @@ -163,13 +179,14 @@ service ChatService { // For an example, see [Get details about a // message](https://developers.google.com/workspace/chat/get-messages). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // // Note: Might return a message from a blocked member or space. rpc GetMessage(GetMessageRequest) returns (Message) { @@ -186,13 +203,15 @@ service ChatService { // [Update a // message](https://developers.google.com/workspace/chat/update-messages). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // // When using app authentication, requests can only update messages // created by the calling Chat app. rpc UpdateMessage(UpdateMessageRequest) returns (Message) { @@ -211,13 +230,15 @@ service ChatService { // For an example, see [Delete a // message](https://developers.google.com/workspace/chat/delete-messages). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // // When using app authentication, requests can only delete messages // created by the calling Chat app. rpc DeleteMessage(DeleteMessageRequest) returns (google.protobuf.Empty) { @@ -245,6 +266,7 @@ service ChatService { // Uploads an attachment. For an example, see // [Upload media as a file // attachment](https://developers.google.com/workspace/chat/upload-media-attachments). + // // Requires user // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). // @@ -264,16 +286,14 @@ service ChatService { // [List // spaces](https://developers.google.com/workspace/chat/list-spaces). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). // - // Lists spaces visible to the caller or authenticated user. Group chats - // and DMs aren't listed until the first message is sent. + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // // To list all named spaces by Google Workspace organization, use the // [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) @@ -286,7 +306,9 @@ service ChatService { } // Returns a list of spaces in a Google Workspace organization based on an - // administrator's search. Requires [user + // administrator's search. + // + // Requires [user // authentication with administrator // privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). // In the request, set `use_admin_access` to `true`. @@ -301,13 +323,16 @@ service ChatService { // [Get details about a // space](https://developers.google.com/workspace/chat/get-spaces). // - // Requires - // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - // Supports - // [app + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - // and [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc GetSpace(GetSpaceRequest) returns (Space) { option (google.api.http) = { get: "/v1/{name=spaces/*}" @@ -315,21 +340,27 @@ service ChatService { option (google.api.method_signature) = "name"; } - // Creates a space with no members. Can be used to create a named space. - // Spaces grouped by topics aren't supported. For an example, see - // [Create a + // Creates a space with no members. Can be used to create a named space, or a + // group chat in `Import mode`. For an example, see [Create a // space](https://developers.google.com/workspace/chat/create-spaces). // // If you receive the error message `ALREADY_EXISTS` when creating // a space, try a different `displayName`. An existing space within // the Google Workspace organization might already use this display name. // - // If you're a member of the [Developer Preview - // program](https://developers.google.com/workspace/preview), you can create a - // group chat in import mode using `spaceType.GROUP_CHAT`. + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): // - // Requires [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // + // When authenticating as an app, the `space.customer` field must be set in + // the request. rpc CreateSpace(CreateSpaceRequest) returns (Space) { option (google.api.http) = { post: "/v1/spaces" @@ -405,8 +436,18 @@ service ChatService { // `ALREADY_EXISTS`, try a different display name.. An existing space within // the Google Workspace organization might already use this display name. // - // Requires [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc UpdateSpace(UpdateSpaceRequest) returns (Space) { option (google.api.http) = { patch: "/v1/{space.name=spaces/*}" @@ -420,9 +461,19 @@ service ChatService { // memberships in the space—are also deleted. For an example, see // [Delete a // space](https://developers.google.com/workspace/chat/delete-spaces). - // Requires [user + // + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - // from a user who has permission to delete the space. + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc DeleteSpace(DeleteSpaceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=spaces/*}" @@ -433,8 +484,11 @@ service ChatService { // Completes the // [import process](https://developers.google.com/workspace/chat/import-data) // for the specified space and makes it visible to users. - // Requires app authentication and domain-wide delegation. For more - // information, see [Authorize Google Chat apps to import + // + // Requires [app + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // and domain-wide delegation. For more information, see [Authorize Google + // Chat apps to import // data](https://developers.google.com/workspace/chat/authorize-import). rpc CompleteImportSpace(CompleteImportSpaceRequest) returns (CompleteImportSpaceResponse) { @@ -449,20 +503,24 @@ service ChatService { // see // [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). // + // With [app + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + // returns the direct message space between the specified user and the calling + // Chat app. + // // With [user // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), // returns the direct message space between the specified user and the // authenticated user. // - // With [app - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - // returns the direct message space between the specified user and the calling - // Chat app. + // // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): // - // Requires [user + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // + // - [User // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - // or [app - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). rpc FindDirectMessage(FindDirectMessageRequest) returns (Space) { option (google.api.http) = { get: "/v1/spaces:findDirectMessage" @@ -475,8 +533,19 @@ service ChatService { // policy turned off, then they're invited, and must accept the space // invitation before joining. Otherwise, creating a membership adds the member // directly to the specified space. - // Requires [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. // // For example usage, see: // @@ -499,8 +568,18 @@ service ChatService { // Updates a membership. For an example, see [Update a user's membership in // a space](https://developers.google.com/workspace/chat/update-members). // - // Requires [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc UpdateMembership(UpdateMembershipRequest) returns (Membership) { option (google.api.http) = { patch: "/v1/{membership.name=spaces/*/members/*}" @@ -513,8 +592,18 @@ service ChatService { // [Remove a user or a Google Chat app from a // space](https://developers.google.com/workspace/chat/delete-members). // - // Requires [user - // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // Supports the following types of + // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator approval](https://support.google.com/a?p=chat-app-auth) + // in [Developer Preview](https://developers.google.com/workspace/preview) + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // You can authenticate and authorize this method with administrator + // privileges by setting the `use_admin_access` field in the request. rpc DeleteMembership(DeleteMembershipRequest) returns (Membership) { option (google.api.http) = { delete: "/v1/{name=spaces/*/members/*}" @@ -526,6 +615,7 @@ service ChatService { // supported. For an example, see // [Add a reaction to a // message](https://developers.google.com/workspace/chat/create-reactions). + // // Requires [user // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). rpc CreateReaction(CreateReactionRequest) returns (Reaction) { @@ -539,6 +629,7 @@ service ChatService { // Lists reactions to a message. For an example, see // [List reactions for a // message](https://developers.google.com/workspace/chat/list-reactions). + // // Requires [user // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). rpc ListReactions(ListReactionsRequest) returns (ListReactionsResponse) { @@ -552,6 +643,7 @@ service ChatService { // For an example, see // [Delete a // reaction](https://developers.google.com/workspace/chat/delete-reactions). + // // Requires [user // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). rpc DeleteReaction(DeleteReactionRequest) returns (google.protobuf.Empty) { diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto index 4b208755efcc..5ca7c148efcc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/deletion_metadata.proto @@ -28,7 +28,8 @@ option ruby_package = "Google::Apps::Chat::V1"; // Information about a deleted message. A message is deleted when `delete_time` // is set. message DeletionMetadata { - // Who deleted the message and how it was deleted. + // Who deleted the message and how it was deleted. More values may be added in + // the future. enum DeletionType { // This value is unused. DELETION_TYPE_UNSPECIFIED = 0; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto index 5222a49b0be2..0aef1bad3d17 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/membership.proto @@ -78,12 +78,10 @@ message Membership { ROLE_MANAGER = 2; } - // Resource name of the membership, assigned by the server. + // Identifier. Resource name of the membership, assigned by the server. // // Format: `spaces/{space}/members/{member}` - string name = 1 [ - (google.api.resource_reference) = { type: "chat.googleapis.com/Membership" } - ]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. State of the membership. MembershipState state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -97,16 +95,19 @@ message Membership { // Member associated with this membership. Other member types might be // supported in the future. oneof memberType { - // The Google Chat user or app the membership corresponds to. + // Optional. The Google Chat user or app the membership corresponds to. // If your Chat app [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), // the output populates the // [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) // `name` and `type`. - User member = 3; + User member = 3 [(google.api.field_behavior) = OPTIONAL]; - // The Google Group the membership corresponds to. - Group group_member = 5; + // Optional. The Google Group the membership corresponds to. + // + // Reading or mutating memberships for Google Groups requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + Group group_member = 5 [(google.api.field_behavior) = OPTIONAL]; } // Optional. Immutable. The creation time of the membership, such as when a @@ -140,24 +141,45 @@ message CreateMembershipRequest { ]; // Required. The membership relation to create. + // // The `memberType` field must contain a user with the `user.name` and // `user.type` fields populated. The server will assign a resource name // and overwrite anything specified. + // // When a Chat app creates a membership relation for a human user, it must use - // the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - // `user.name` with format `users/{user}`, where `{user}` can be the email - // address for the user. For users in the same Workspace organization `{user}` - // can also be the `id` of the - // [person](https://developers.google.com/people/api/rest/v1/people) from the - // People API, or the `id` for the user in the Directory API. For example, if - // the People API Person profile ID for `user@example.com` is `123456789`, you - // can add the user to the space by setting the `membership.member.name` to - // `users/user@example.com` or `users/123456789`. When a Chat app creates a - // membership relation for itself, it must use the `chat.memberships.app` - // scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. + // certain authorization scopes and set specific values for certain fields: + // + // - When [authenticating as a + // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), + // the `chat.memberships` authorization scope is required. + // + // - When [authenticating as an + // app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), + // the `chat.app.memberships` authorization scope is required. + // Authenticating as an app is available in [Developer + // Preview](https://developers.google.com/workspace/preview). + // + // - Set `user.type` to `HUMAN`, and set `user.name` with format + // `users/{user}`, where `{user}` can be the email address for the user. For + // users in the same Workspace organization `{user}` can also be the `id` of + // the [person](https://developers.google.com/people/api/rest/v1/people) from + // the People API, or the `id` for the user in the Directory API. For example, + // if the People API Person profile ID for `user@example.com` is `123456789`, + // you can add the user to the space by setting the `membership.member.name` + // to `users/user@example.com` or `users/123456789`. + // + // Inviting users external to the Workspace organization that owns the space + // requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). + // + // When a Chat app creates a membership relation for itself, it must + // [authenticate as a + // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // and use the `chat.memberships.app` scope, set `user.type` to `BOT`, and set + // `user.name` to `users/app`. Membership membership = 2 [(google.api.field_behavior) = REQUIRED]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -170,7 +192,7 @@ message CreateMembershipRequest { // Creating app memberships or creating memberships for users outside the // administrator's Google Workspace organization isn't supported using admin // access. - bool use_admin_access = 5; + bool use_admin_access = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request message for updating a membership. @@ -188,7 +210,7 @@ message UpdateMembershipRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -197,7 +219,7 @@ message UpdateMembershipRequest { // // Requires the `chat.admin.memberships` [OAuth 2.0 // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - bool use_admin_access = 3; + bool use_admin_access = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for listing memberships. @@ -290,7 +312,7 @@ message ListMembershipsRequest { // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). bool show_invited = 7 [(google.api.field_behavior) = OPTIONAL]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -302,7 +324,7 @@ message ListMembershipsRequest { // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). // // Listing app memberships in a space isn't supported when using admin access. - bool use_admin_access = 8; + bool use_admin_access = 8 [(google.api.field_behavior) = OPTIONAL]; } // Response to list memberships of the space. @@ -326,9 +348,7 @@ message GetMembershipRequest { // // Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` // - // When [authenticated as a - // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - // you can use the user's email as an alias for `{member}`. For example, + // You can use the user's email as an alias for `{member}`. For example, // `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the // email of the Google Chat user. string name = 1 [ @@ -336,7 +356,7 @@ message GetMembershipRequest { (google.api.resource_reference) = { type: "chat.googleapis.com/Membership" } ]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -348,7 +368,7 @@ message GetMembershipRequest { // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). // // Getting app memberships in a space isn't supported when using admin access. - bool use_admin_access = 3; + bool use_admin_access = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request to delete a membership in a space. @@ -372,7 +392,7 @@ message DeleteMembershipRequest { (google.api.resource_reference) = { type: "chat.googleapis.com/Membership" } ]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -383,5 +403,5 @@ message DeleteMembershipRequest { // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). // // Deleting app memberships in a space isn't supported using admin access. - bool use_admin_access = 2; + bool use_admin_access = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 09a3f4d489bc..bc054012e0ea 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -48,7 +48,7 @@ message Message { pattern: "spaces/{space}/messages/{message}" }; - // Resource name of the message. + // Identifier. Resource name of the message. // // Format: `spaces/{space}/messages/{message}` // @@ -63,7 +63,7 @@ message Message { // `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name // a // message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The user who created the message. // If your Chat app [authenticates as a @@ -95,16 +95,16 @@ message Message { google.protobuf.Timestamp delete_time = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Plain-text body of the message. The first link to an image, video, or web - // page generates a - // [preview chip](https://developers.google.com/workspace/chat/preview-links). - // You can also [@mention a Google Chat + // Optional. Plain-text body of the message. The first link to an image, + // video, or web page generates a [preview + // chip](https://developers.google.com/workspace/chat/preview-links). You can + // also [@mention a Google Chat // user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), // or everyone in the space. // // To learn about creating text messages, see [Send a // message](https://developers.google.com/workspace/chat/create-messages). - string text = 4; + string text = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. Contains the message `text` with markups added to communicate // formatting. This field might not capture all formatting visible in the UI, @@ -139,7 +139,7 @@ message Message { // `cards_v2` can have a maximum size of 32 KB. repeated ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - // An array of + // Optional. An array of // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). // // Only Chat apps can create cards. If your Chat app [authenticates as a @@ -150,7 +150,7 @@ message Message { // message](https://developers.google.com/workspace/chat/create-messages). // // [Card builder](https://addons.gsuite.google.com/uikit/builder) - repeated CardWithId cards_v2 = 22; + repeated CardWithId cards_v2 = 22 [(google.api.field_behavior) = OPTIONAL]; // Output only. Annotations associated with the `text` in this message. repeated Annotation annotations = 10 @@ -161,16 +161,16 @@ message Message { // thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). Thread thread = 11; - // If your Chat app [authenticates as a + // Output only. If your Chat app [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - // the output populates the + // the output only populates the // [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) // `name`. - Space space = 12; + Space space = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - // A plain-text description of the message's cards, used when the actual cards - // can't be displayed—for example, mobile notifications. - string fallback_text = 13; + // Optional. A plain-text description of the message's cards, used when the + // actual cards can't be displayed—for example, mobile notifications. + string fallback_text = 13 [(google.api.field_behavior) = OPTIONAL]; // Input only. Parameters that a Chat app can use to configure how its // response is posted. @@ -184,8 +184,8 @@ message Message { // Output only. Slash command information, if applicable. SlashCommand slash_command = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - // User-uploaded attachment. - repeated Attachment attachment = 18; + // Optional. User-uploaded attachment. + repeated Attachment attachment = 18 [(google.api.field_behavior) = OPTIONAL]; // Output only. A URL in `spaces.messages.text` that matches a link preview // pattern. For more information, see [Preview @@ -206,16 +206,17 @@ message Message { // [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) // field when you create the message. For details, see [Name a // message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - string client_assigned_message_id = 32; + string client_assigned_message_id = 32 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The list of emoji reaction summaries on the message. repeated EmojiReactionSummary emoji_reaction_summaries = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Input for creating a message, otherwise output only. The user - // that can view the message. When set, the message is private and only - // visible to the specified user and the Chat app. To include this field in - // your request, you must call the Chat API using [app + // Optional. Immutable. Input for creating a message, otherwise output only. + // The user that can view the message. When set, the message is private and + // only visible to the specified user and the Chat app. To include this field + // in your request, you must call the Chat API using [app // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) // and omit the following: // @@ -225,7 +226,10 @@ message Message { // // For details, see [Send a message // privately](https://developers.google.com/workspace/chat/create-messages#private). - User private_message_viewer = 36 [(google.api.field_behavior) = IMMUTABLE]; + User private_message_viewer = 36 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; // Output only. Information about a deleted message. A message is deleted when // `delete_time` is set. @@ -241,16 +245,17 @@ message Message { repeated AttachedGif attached_gifs = 42 [(google.api.field_behavior) = OUTPUT_ONLY]; - // One or more interactive widgets that appear at the bottom of a message. - // You can add accessory widgets to messages that contain text, cards, or both - // text and cards. Not supported for messages that contain dialogs. For - // details, see [Add interactive widgets at the bottom of a + // Optional. One or more interactive widgets that appear at the bottom of a + // message. You can add accessory widgets to messages that contain text, + // cards, or both text and cards. Not supported for messages that contain + // dialogs. For details, see [Add interactive widgets at the bottom of a // message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). // // Creating a message with accessory widgets requires [app // authentication] // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - repeated AccessoryWidget accessory_widgets = 44; + repeated AccessoryWidget accessory_widgets = 44 + [(google.api.field_behavior) = OPTIONAL]; } // A GIF image that's specified by a URL. @@ -293,10 +298,10 @@ message Thread { pattern: "spaces/{space}/threads/{thread}" }; - // Resource name of the thread. + // Identifier. Resource name of the thread. // // Example: `spaces/{space}/threads/{thread}` - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Input for creating or updating a thread. Otherwise, output only. // ID for the thread. Supports up to 4000 characters. @@ -345,8 +350,8 @@ message ActionResponse { repeated google.apps.card.v1.SelectionInput.SelectionItem items = 1; } - // The response of the updated widget. - // Used to provide autocomplete options for a widget. + // For `selectionInput` widgets, returns autocomplete suggestions for a + // multiselect menu. message UpdatedWidget { // The widget updated in response to a user action. oneof updated_widget { @@ -417,14 +422,14 @@ message DeleteMessageRequest { (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } ]; - // When `true`, deleting a message also deletes its threaded replies. When - // `false`, if a message has threaded replies, deletion fails. + // Optional. When `true`, deleting a message also deletes its threaded + // replies. When `false`, if a message has threaded replies, deletion fails. // // Only applies when [authenticating as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). // Has no effect when [authenticating as a Chat app] // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - bool force = 2; + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request to update a message. @@ -449,7 +454,8 @@ message UpdateMessageRequest { // // - `accessory_widgets` (Requires [app // authentication](/chat/api/guides/auth/service-accounts).) - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; // Optional. If `true` and the message isn't found, a new message is created // and `updateMask` is ignored. The specified message ID must be @@ -512,6 +518,12 @@ message CreateMessageRequest { // Optional. Specifies whether a message starts a thread or replies to one. // Only supported in named spaces. + // + // When [responding to user + // interactions](https://developers.google.com/workspace/chat/receive-respond-interactions), + // this field is ignored. For interactions within a thread, the reply is + // created in the same thread. Otherwise, the reply is created as a new + // thread. MessageReplyOption message_reply_option = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -545,8 +557,8 @@ message ListMessagesRequest { } ]; - // The maximum number of messages returned. The service might return fewer - // messages than this value. + // Optional. The maximum number of messages returned. The service might return + // fewer messages than this value. // // If unspecified, at most 25 are returned. // @@ -554,19 +566,17 @@ message ListMessagesRequest { // automatically changed to 1000. // // Negative values return an `INVALID_ARGUMENT` error. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional, if resuming from a previous query. - // - // A page token received from a previous list messages call. Provide this - // parameter to retrieve the subsequent page. + // Optional. A page token received from a previous list messages call. Provide + // this parameter to retrieve the subsequent page. // // When paginating, all other parameters provided should match the call that // provided the page token. Passing different values to the other parameters // might lead to unexpected results. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // A query filter. + // Optional. A query filter. // // You can filter messages by date (`create_time`) and thread (`thread.name`). // @@ -603,23 +613,22 @@ message ListMessagesRequest { // // Invalid queries are rejected by the server with an `INVALID_ARGUMENT` // error. - string filter = 4; + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional, if resuming from a previous query. - // - // How the list of messages is ordered. Specify a value to order by an - // ordering operation. Valid ordering operation values are as follows: + // Optional. How the list of messages is ordered. Specify a value to order by + // an ordering operation. Valid ordering operation values are as follows: // // - `ASC` for ascending. // // - `DESC` for descending. // // The default ordering is `create_time ASC`. - string order_by = 5; + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; - // Whether to include deleted messages. Deleted messages include deleted time - // and metadata about their deletion, but message content is unavailable. - bool show_deleted = 6; + // Optional. Whether to include deleted messages. Deleted messages include + // deleted time and metadata about their deletion, but message content is + // unavailable. + bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for listing messages. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto index 9639b1f5b29a..a08903bb1ef7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/reaction.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.chat.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/chat/v1/user.proto"; @@ -36,24 +37,24 @@ message Reaction { pattern: "spaces/{space}/messages/{message}/reactions/{reaction}" }; - // The resource name of the reaction. + // Identifier. The resource name of the reaction. // // Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The user who created the reaction. User user = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The emoji used in the reaction. - Emoji emoji = 3; + // Required. The emoji used in the reaction. + Emoji emoji = 3 [(google.api.field_behavior) = REQUIRED]; } // An emoji that is used as a reaction to a message. message Emoji { - // The content of the emoji. + // Required. The content of the emoji. oneof content { - // A basic emoji represented by a unicode string. - string unicode = 1; + // Optional. A basic emoji represented by a unicode string. + string unicode = 1 [(google.api.field_behavior) = OPTIONAL]; // Output only. A custom emoji. CustomEmoji custom_emoji = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -63,16 +64,19 @@ message Emoji { // Represents a custom emoji. message CustomEmoji { // Output only. Unique key for the custom emoji resource. - string uid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string uid = 1 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; } // The number of people who reacted to a message with a specific emoji. message EmojiReactionSummary { - // Emoji associated with the reactions. - Emoji emoji = 1; + // Output only. Emoji associated with the reactions. + Emoji emoji = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The total number of reactions using the associated emoji. - optional int32 reaction_count = 2; + // Output only. The total number of reactions using the associated emoji. + optional int32 reaction_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Creates a reaction to a message. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index da6c0fe3a8d8..5b6edb5fd38f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -95,22 +95,23 @@ message Space { // discussion topic, functional purpose, or participants. // // Supports up to 150 characters. - string description = 1; + string description = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The space's rules, expectations, and etiquette. // // Supports up to 5,000 characters. - string guidelines = 2; + string guidelines = 2 [(google.api.field_behavior) = OPTIONAL]; } // Represents the count of memberships of a space, grouped into categories. message MembershipCount { - // Count of human users that have directly joined the space, not counting - // users joined by having membership in a joined group. - int32 joined_direct_human_user_count = 4; + // Output only. Count of human users that have directly joined the space, + // not counting users joined by having membership in a joined group. + int32 joined_direct_human_user_count = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Count of all groups that have directly joined the space. - int32 joined_group_count = 5; + // Output only. Count of all groups that have directly joined the space. + int32 joined_group_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents the [access @@ -131,6 +132,9 @@ message Space { // invited to the space can also discover and access the space. To learn // more, see [Make a space discoverable to specific // users](https://developers.google.com/workspace/chat/space-target-audience). + // + // Creating discoverable spaces requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). DISCOVERABLE = 2; } @@ -150,8 +154,23 @@ message Space { // To use the default target audience for the Google Workspace organization, // set to `audiences/default`. // + // Reading the target audience supports: + // + // - [User + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // + // - [App + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with [administrator + // approval](https://support.google.com/a?p=chat-app-auth) + // with the `chat.app.spaces` scope in [Developer + // Preview](https://developers.google.com/workspace/preview). + // // This field is not populated when using the `chat.bot` scope with [app // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + // + // Setting the target audience requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). string audience = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -178,42 +197,50 @@ message Space { // To set permission settings when creating a space, specify the // `PredefinedPermissionSettings` field in your request. message PermissionSettings { - // Setting for managing members and groups in a space. - optional PermissionSetting manage_members_and_groups = 1; + // Optional. Setting for managing members and groups in a space. + optional PermissionSetting manage_members_and_groups = 1 + [(google.api.field_behavior) = OPTIONAL]; - // Setting for updating space name, avatar, description and guidelines. - optional PermissionSetting modify_space_details = 2; + // Optional. Setting for updating space name, avatar, description and + // guidelines. + optional PermissionSetting modify_space_details = 2 + [(google.api.field_behavior) = OPTIONAL]; - // Setting for toggling space history on and off. - optional PermissionSetting toggle_history = 3; + // Optional. Setting for toggling space history on and off. + optional PermissionSetting toggle_history = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Setting for using @all in a space. - optional PermissionSetting use_at_mention_all = 4; + // Optional. Setting for using @all in a space. + optional PermissionSetting use_at_mention_all = 4 + [(google.api.field_behavior) = OPTIONAL]; - // Setting for managing apps in a space. - optional PermissionSetting manage_apps = 5; + // Optional. Setting for managing apps in a space. + optional PermissionSetting manage_apps = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Setting for managing webhooks in a space. - optional PermissionSetting manage_webhooks = 6; + // Optional. Setting for managing webhooks in a space. + optional PermissionSetting manage_webhooks = 6 + [(google.api.field_behavior) = OPTIONAL]; // Output only. Setting for posting messages in a space. optional PermissionSetting post_messages = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Setting for replying to messages in a space. - optional PermissionSetting reply_messages = 8; + // Optional. Setting for replying to messages in a space. + optional PermissionSetting reply_messages = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Represents a space permission setting. message PermissionSetting { - // Whether spaces managers have this permission. - bool managers_allowed = 1; + // Optional. Whether spaces managers have this permission. + bool managers_allowed = 1 [(google.api.field_behavior) = OPTIONAL]; - // Whether non-manager members have this permission. - bool members_allowed = 2; + // Optional. Whether non-manager members have this permission. + bool members_allowed = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Resource name of the space. + // Identifier. Resource name of the space. // // Format: `spaces/{space}` // @@ -223,15 +250,15 @@ message Space { // method or from the space URL. For example, if the space URL // is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID // is `AAAAAAAAA`. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Deprecated: Use `space_type` instead. // The type of a space. Type type = 2 [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // The type of space. Required when creating a space or updating the space - // type of a space. Output only for other usage. - SpaceType space_type = 10; + // Optional. The type of space. Required when creating a space or updating the + // space type of a space. Output only for other usage. + SpaceType space_type = 10 [(google.api.field_behavior) = OPTIONAL]; // Optional. Whether the space is a DM between a Chat app and a single // human. @@ -242,7 +269,7 @@ message Space { bool threaded = 5 [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // The space's display name. Required when [creating a + // Optional. The space's display name. Required when [creating a // space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) // with a `spaceType` of `SPACE`. If you receive the error message // `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a @@ -252,32 +279,39 @@ message Space { // For direct messages, this field might be empty. // // Supports up to 128 characters. - string display_name = 3; + string display_name = 3 [(google.api.field_behavior) = OPTIONAL]; - // Immutable. Whether this space permits any Google Chat user as a member. - // Input when creating a space in a Google Workspace organization. Omit this - // field when creating spaces in the following conditions: + // Optional. Immutable. Whether this space permits any Google Chat user as a + // member. Input when creating a space in a Google Workspace organization. + // Omit this field when creating spaces in the following conditions: // // * The authenticated user uses a consumer account (unmanaged user // account). By default, a space created by a consumer account permits any // Google Chat user. // // For existing spaces, this field is output only. - bool external_user_allowed = 8 [(google.api.field_behavior) = IMMUTABLE]; + bool external_user_allowed = 8 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; // Output only. The threading state in the Chat space. SpaceThreadingState space_threading_state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Details about the space including description and rules. - SpaceDetails space_details = 11; + // Optional. Details about the space including description and rules. + SpaceDetails space_details = 11 [(google.api.field_behavior) = OPTIONAL]; - // The message history state for messages and threads in this space. - HistoryState space_history_state = 13; + // Optional. The message history state for messages and threads in this space. + HistoryState space_history_state = 13 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Whether this space is created in `Import Mode` as part of a data // migration into Google Workspace. While spaces are being imported, they // aren't visible to users until the import is complete. + // + // Creating a space in `Import Mode`requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). bool import_mode = 16 [(google.api.field_behavior) = OPTIONAL]; // Optional. Immutable. For spaces created in Chat, the time the space was @@ -322,6 +356,9 @@ message Space { // Represents the [permission settings] // (https://support.google.com/chat/answer/13340792) of a space. Only // populated when the `space_type` is `SPACE`. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). oneof space_permission_settings { // Optional. Input only. Predefined space permission settings, input only // when creating a space. If the field is not set, a collaboration space is @@ -338,20 +375,28 @@ message Space { PermissionSettings permission_settings = 27 [(google.api.field_behavior) = OPTIONAL]; } + + // Output only. The time when the space will be automatically deleted by the + // system if it remains in import mode. + // + // Each space created in import mode must exit this mode before this expire + // time using `spaces.completeImport`. + // + // This field is only populated for spaces that were created with import mode. + google.protobuf.Timestamp import_mode_expire_time = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to create a named space with no members. message CreateSpaceRequest { // Required. The `displayName` and `spaceType` fields must be populated. Only - // `SpaceType.SPACE` is supported. + // `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported. + // `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true. // // If you receive the error message `ALREADY_EXISTS`, // try a different `displayName`. An existing space within the Google // Workspace organization might already use this display name. // - // If you're a member of the [Developer Preview - // program](https://developers.google.com/workspace/preview), - // `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. // // The space `name` is assigned on the server so anything specified in this // field will be ignored. @@ -430,7 +475,7 @@ message GetSpaceRequest { (google.api.resource_reference) = { type: "chat.googleapis.com/Space" } ]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -439,7 +484,7 @@ message GetSpaceRequest { // // Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - bool use_admin_access = 2; + bool use_admin_access = 2 [(google.api.field_behavior) = OPTIONAL]; } // A request to get direct message space based on the user resource. @@ -528,9 +573,10 @@ message UpdateSpaceRequest { // - `permission_settings.manageApps` // - `permission_settings.manageWebhooks` // - `permission_settings.replyMessages` - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -542,7 +588,7 @@ message UpdateSpaceRequest { // // Some `FieldMask` values are not supported using admin access. For details, // see the description of `update_mask`. - bool use_admin_access = 3; + bool use_admin_access = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request to search for a list of spaces based on a query. @@ -700,7 +746,7 @@ message DeleteSpaceRequest { (google.api.resource_reference) = { type: "chat.googleapis.com/Space" } ]; - // When `true`, the method runs using the user's Google Workspace + // Optional. When `true`, the method runs using the user's Google Workspace // administrator privileges. // // The calling user must be a Google Workspace administrator with the @@ -709,7 +755,7 @@ message DeleteSpaceRequest { // // Requires the `chat.admin.delete` [OAuth 2.0 // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - bool use_admin_access = 2; + bool use_admin_access = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for completing the import process for a space. diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto index 8e450ad8c927..0d8d5bcd5bd3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space_event.proto @@ -216,15 +216,15 @@ message ListSpaceEventsRequest { // return fewer than this value. // // Negative values return an `INVALID_ARGUMENT` error. - int32 page_size = 5; + int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous list space events call. Provide this - // to retrieve the subsequent page. + // Optional. A page token, received from a previous list space events call. + // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to list space events must // match the call that provided the page token. Passing different values to // the other parameters might lead to unexpected results. - string page_token = 6; + string page_token = 6 [(google.api.field_behavior) = OPTIONAL]; // Required. A query filter. // diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 1b93392e5439..b3f172164ed7 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.55.0 + 3.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.55.0' +implementation 'com.google.cloud:google-cloud-build:3.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 5e78f89efa1b..09c7f31ba72a 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.51.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 1281142cd8dc..2de7db3e7320 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.17.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.18.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 60b196279727..eefccf707e8e 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.21.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.22.0" ``` ## Authentication @@ -196,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 1f1696d561aa..494578a05788 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.37.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.38.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.38.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/README.md b/java-compute/README.md index db7357133207..4e312b79a452 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.63.0 + 1.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.63.0' +implementation 'com.google.cloud:google-cloud-compute:1.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.64.0" ``` ## Authentication @@ -257,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.64.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java index 9d276a7f0ac5..d674299504f1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java @@ -392,6 +392,25 @@ * * * + *

      ResumeInstances + *

      Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • resumeInstancesAsync(ResumeInstancesInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • resumeInstancesAsync(String project, String zone, String instanceGroupManager, InstanceGroupManagersResumeInstancesRequest instanceGroupManagersResumeInstancesRequestResource) + *

      + *

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

      + *
        + *
      • resumeInstancesOperationCallable() + *

      • resumeInstancesCallable() + *

      + * + * + * *

      SetInstanceTemplate *

      Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. * @@ -430,6 +449,63 @@ * * * + *

      StartInstances + *

      Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • startInstancesAsync(StartInstancesInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • startInstancesAsync(String project, String zone, String instanceGroupManager, InstanceGroupManagersStartInstancesRequest instanceGroupManagersStartInstancesRequestResource) + *

      + *

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

      + *
        + *
      • startInstancesOperationCallable() + *

      • startInstancesCallable() + *

      + * + * + * + *

      StopInstances + *

      Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • stopInstancesAsync(StopInstancesInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • stopInstancesAsync(String project, String zone, String instanceGroupManager, InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource) + *

      + *

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

      + *
        + *
      • stopInstancesOperationCallable() + *

      • stopInstancesCallable() + *

      + * + * + * + *

      SuspendInstances + *

      Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • suspendInstancesAsync(SuspendInstancesInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • suspendInstancesAsync(String project, String zone, String instanceGroupManager, InstanceGroupManagersSuspendInstancesRequest instanceGroupManagersSuspendInstancesRequestResource) + *

      + *

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

      + *
        + *
      • suspendInstancesOperationCallable() + *

      • suspendInstancesCallable() + *

      + * + * + * *

      UpdatePerInstanceConfigs *

      Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. * @@ -3406,6 +3482,201 @@ public final UnaryCallable resizeC return stub.resizeCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String zone = "zone3744684";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   InstanceGroupManagersResumeInstancesRequest
      +   *       instanceGroupManagersResumeInstancesRequestResource =
      +   *           InstanceGroupManagersResumeInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       instanceGroupManagersClient
      +   *           .resumeInstancesAsync(
      +   *               project,
      +   *               zone,
      +   *               instanceGroupManager,
      +   *               instanceGroupManagersResumeInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param zone The name of the zone where the managed instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param instanceGroupManagersResumeInstancesRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resumeInstancesAsync( + String project, + String zone, + String instanceGroupManager, + InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource) { + ResumeInstancesInstanceGroupManagerRequest request = + ResumeInstancesInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstanceGroupManager(instanceGroupManager) + .setInstanceGroupManagersResumeInstancesRequestResource( + instanceGroupManagersResumeInstancesRequestResource) + .build(); + return resumeInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesInstanceGroupManagerRequest request =
      +   *       ResumeInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersResumeInstancesRequestResource(
      +   *               InstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   Operation response = instanceGroupManagersClient.resumeInstancesAsync(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 resumeInstancesAsync( + ResumeInstancesInstanceGroupManagerRequest request) { + return resumeInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesInstanceGroupManagerRequest request =
      +   *       ResumeInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersResumeInstancesRequestResource(
      +   *               InstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       instanceGroupManagersClient.resumeInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + resumeInstancesOperationCallable() { + return stub.resumeInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesInstanceGroupManagerRequest request =
      +   *       ResumeInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersResumeInstancesRequestResource(
      +   *               InstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       instanceGroupManagersClient.resumeInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + resumeInstancesCallable() { + return stub.resumeInstancesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Specifies the instance template to use when creating new instances in this group. The templates @@ -3750,6 +4021,629 @@ public final OperationFuture setTargetPoolsAsync( return stub.setTargetPoolsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String zone = "zone3744684";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   InstanceGroupManagersStartInstancesRequest
      +   *       instanceGroupManagersStartInstancesRequestResource =
      +   *           InstanceGroupManagersStartInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       instanceGroupManagersClient
      +   *           .startInstancesAsync(
      +   *               project,
      +   *               zone,
      +   *               instanceGroupManager,
      +   *               instanceGroupManagersStartInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param zone The name of the zone where the managed instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param instanceGroupManagersStartInstancesRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startInstancesAsync( + String project, + String zone, + String instanceGroupManager, + InstanceGroupManagersStartInstancesRequest + instanceGroupManagersStartInstancesRequestResource) { + StartInstancesInstanceGroupManagerRequest request = + StartInstancesInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstanceGroupManager(instanceGroupManager) + .setInstanceGroupManagersStartInstancesRequestResource( + instanceGroupManagersStartInstancesRequestResource) + .build(); + return startInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StartInstancesInstanceGroupManagerRequest request =
      +   *       StartInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStartInstancesRequestResource(
      +   *               InstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   Operation response = instanceGroupManagersClient.startInstancesAsync(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 startInstancesAsync( + StartInstancesInstanceGroupManagerRequest request) { + return startInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StartInstancesInstanceGroupManagerRequest request =
      +   *       StartInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStartInstancesRequestResource(
      +   *               InstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       instanceGroupManagersClient.startInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + startInstancesOperationCallable() { + return stub.startInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StartInstancesInstanceGroupManagerRequest request =
      +   *       StartInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStartInstancesRequestResource(
      +   *               InstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       instanceGroupManagersClient.startInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + startInstancesCallable() { + return stub.startInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String zone = "zone3744684";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource =
      +   *       InstanceGroupManagersStopInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       instanceGroupManagersClient
      +   *           .stopInstancesAsync(
      +   *               project,
      +   *               zone,
      +   *               instanceGroupManager,
      +   *               instanceGroupManagersStopInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param zone The name of the zone where the managed instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param instanceGroupManagersStopInstancesRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopInstancesAsync( + String project, + String zone, + String instanceGroupManager, + InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource) { + StopInstancesInstanceGroupManagerRequest request = + StopInstancesInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstanceGroupManager(instanceGroupManager) + .setInstanceGroupManagersStopInstancesRequestResource( + instanceGroupManagersStopInstancesRequestResource) + .build(); + return stopInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StopInstancesInstanceGroupManagerRequest request =
      +   *       StopInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStopInstancesRequestResource(
      +   *               InstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   Operation response = instanceGroupManagersClient.stopInstancesAsync(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 stopInstancesAsync( + StopInstancesInstanceGroupManagerRequest request) { + return stopInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StopInstancesInstanceGroupManagerRequest request =
      +   *       StopInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStopInstancesRequestResource(
      +   *               InstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       instanceGroupManagersClient.stopInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + stopInstancesOperationCallable() { + return stub.stopInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   StopInstancesInstanceGroupManagerRequest request =
      +   *       StopInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersStopInstancesRequestResource(
      +   *               InstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       instanceGroupManagersClient.stopInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + stopInstancesCallable() { + return stub.stopInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String zone = "zone3744684";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   InstanceGroupManagersSuspendInstancesRequest
      +   *       instanceGroupManagersSuspendInstancesRequestResource =
      +   *           InstanceGroupManagersSuspendInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       instanceGroupManagersClient
      +   *           .suspendInstancesAsync(
      +   *               project,
      +   *               zone,
      +   *               instanceGroupManager,
      +   *               instanceGroupManagersSuspendInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param zone The name of the zone where the managed instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param instanceGroupManagersSuspendInstancesRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture suspendInstancesAsync( + String project, + String zone, + String instanceGroupManager, + InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource) { + SuspendInstancesInstanceGroupManagerRequest request = + SuspendInstancesInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstanceGroupManager(instanceGroupManager) + .setInstanceGroupManagersSuspendInstancesRequestResource( + instanceGroupManagersSuspendInstancesRequestResource) + .build(); + return suspendInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesInstanceGroupManagerRequest request =
      +   *       SuspendInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               InstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   Operation response = instanceGroupManagersClient.suspendInstancesAsync(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 suspendInstancesAsync( + SuspendInstancesInstanceGroupManagerRequest request) { + return suspendInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesInstanceGroupManagerRequest request =
      +   *       SuspendInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               InstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       instanceGroupManagersClient.suspendInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + suspendInstancesOperationCallable() { + return stub.suspendInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (InstanceGroupManagersClient instanceGroupManagersClient =
      +   *     InstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesInstanceGroupManagerRequest request =
      +   *       SuspendInstancesInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               InstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setProject("project-309310695")
      +   *           .setRequestId("requestId693933066")
      +   *           .setZone("zone3744684")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       instanceGroupManagersClient.suspendInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + suspendInstancesCallable() { + return stub.suspendInstancesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Inserts or updates per-instance configurations for the managed instance group. diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java index fd78a671d76e..e0ac8dfd2786 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java @@ -307,6 +307,19 @@ public UnaryCallSettings resizeSet return ((InstanceGroupManagersStubSettings) getStubSettings()).resizeOperationSettings(); } + /** Returns the object with the settings used for calls to resumeInstances. */ + public UnaryCallSettings + resumeInstancesSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()).resumeInstancesSettings(); + } + + /** Returns the object with the settings used for calls to resumeInstances. */ + public OperationCallSettings + resumeInstancesOperationSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()) + .resumeInstancesOperationSettings(); + } + /** Returns the object with the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings setInstanceTemplateSettings() { @@ -333,6 +346,44 @@ public UnaryCallSettings resizeSet .setTargetPoolsOperationSettings(); } + /** Returns the object with the settings used for calls to startInstances. */ + public UnaryCallSettings + startInstancesSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()).startInstancesSettings(); + } + + /** Returns the object with the settings used for calls to startInstances. */ + public OperationCallSettings + startInstancesOperationSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()) + .startInstancesOperationSettings(); + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public UnaryCallSettings + stopInstancesSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()).stopInstancesSettings(); + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public OperationCallSettings + stopInstancesOperationSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()).stopInstancesOperationSettings(); + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public UnaryCallSettings + suspendInstancesSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()).suspendInstancesSettings(); + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public OperationCallSettings + suspendInstancesOperationSettings() { + return ((InstanceGroupManagersStubSettings) getStubSettings()) + .suspendInstancesOperationSettings(); + } + /** Returns the object with the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings updatePerInstanceConfigsSettings() { @@ -633,6 +684,19 @@ public UnaryCallSettings.Builder pa return getStubSettingsBuilder().resizeOperationSettings(); } + /** Returns the builder for the settings used for calls to resumeInstances. */ + public UnaryCallSettings.Builder + resumeInstancesSettings() { + return getStubSettingsBuilder().resumeInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to resumeInstances. */ + public OperationCallSettings.Builder< + ResumeInstancesInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return getStubSettingsBuilder().resumeInstancesOperationSettings(); + } + /** Returns the builder for the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings.Builder setInstanceTemplateSettings() { @@ -659,6 +723,45 @@ public UnaryCallSettings.Builder pa return getStubSettingsBuilder().setTargetPoolsOperationSettings(); } + /** Returns the builder for the settings used for calls to startInstances. */ + public UnaryCallSettings.Builder + startInstancesSettings() { + return getStubSettingsBuilder().startInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to startInstances. */ + public OperationCallSettings.Builder< + StartInstancesInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return getStubSettingsBuilder().startInstancesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public UnaryCallSettings.Builder + stopInstancesSettings() { + return getStubSettingsBuilder().stopInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public OperationCallSettings.Builder< + StopInstancesInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings() { + return getStubSettingsBuilder().stopInstancesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public UnaryCallSettings.Builder + suspendInstancesSettings() { + return getStubSettingsBuilder().suspendInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public OperationCallSettings.Builder< + SuspendInstancesInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return getStubSettingsBuilder().suspendInstancesOperationSettings(); + } + /** Returns the builder for the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings.Builder updatePerInstanceConfigsSettings() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java new file mode 100644 index 000000000000..88072e62823a --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java @@ -0,0 +1,532 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +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.compute.v1.stub.NetworkProfilesStub; +import com.google.cloud.compute.v1.stub.NetworkProfilesStubSettings; +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: The NetworkProfiles API. + * + *

      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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      + *   String project = "project-309310695";
      + *   String networkProfile = "networkProfile-2013096037";
      + *   NetworkProfile response = networkProfilesClient.get(project, networkProfile);
      + * }
      + * }
      + * + *

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

      Get

      Returns the specified network profile.

      + *

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

      + *
        + *
      • get(GetNetworkProfileRequest request) + *

      + *

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

      + *
        + *
      • get(String project, String networkProfile) + *

      + *

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

      + *
        + *
      • getCallable() + *

      + *

      List

      Retrieves a list of network profiles available to the specified project.

      + *

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

      + *
        + *
      • list(ListNetworkProfilesRequest request) + *

      + *

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

      + *
        + *
      • list(String project) + *

      + *

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

      + *
        + *
      • listPagedCallable() + *

      • listCallable() + *

      + *
      + * + *

      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 NetworkProfilesSettings 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
      + * NetworkProfilesSettings networkProfilesSettings =
      + *     NetworkProfilesSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * NetworkProfilesClient networkProfilesClient =
      + *     NetworkProfilesClient.create(networkProfilesSettings);
      + * }
      + * + *

      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
      + * NetworkProfilesSettings networkProfilesSettings =
      + *     NetworkProfilesSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * NetworkProfilesClient networkProfilesClient =
      + *     NetworkProfilesClient.create(networkProfilesSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class NetworkProfilesClient implements BackgroundResource { + private final NetworkProfilesSettings settings; + private final NetworkProfilesStub stub; + + /** Constructs an instance of NetworkProfilesClient with default settings. */ + public static final NetworkProfilesClient create() throws IOException { + return create(NetworkProfilesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of NetworkProfilesClient, 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 NetworkProfilesClient create(NetworkProfilesSettings settings) + throws IOException { + return new NetworkProfilesClient(settings); + } + + /** + * Constructs an instance of NetworkProfilesClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(NetworkProfilesSettings). + */ + public static final NetworkProfilesClient create(NetworkProfilesStub stub) { + return new NetworkProfilesClient(stub); + } + + /** + * Constructs an instance of NetworkProfilesClient, 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 NetworkProfilesClient(NetworkProfilesSettings settings) throws IOException { + this.settings = settings; + this.stub = ((NetworkProfilesStubSettings) settings.getStubSettings()).createStub(); + } + + protected NetworkProfilesClient(NetworkProfilesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final NetworkProfilesSettings getSettings() { + return settings; + } + + public NetworkProfilesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified network 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String networkProfile = "networkProfile-2013096037";
      +   *   NetworkProfile response = networkProfilesClient.get(project, networkProfile);
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param networkProfile Name of the network profile to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NetworkProfile get(String project, String networkProfile) { + GetNetworkProfileRequest request = + GetNetworkProfileRequest.newBuilder() + .setProject(project) + .setNetworkProfile(networkProfile) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified network 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   GetNetworkProfileRequest request =
      +   *       GetNetworkProfileRequest.newBuilder()
      +   *           .setNetworkProfile("networkProfile-2013096037")
      +   *           .setProject("project-309310695")
      +   *           .build();
      +   *   NetworkProfile response = networkProfilesClient.get(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 NetworkProfile get(GetNetworkProfileRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified network 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   GetNetworkProfileRequest request =
      +   *       GetNetworkProfileRequest.newBuilder()
      +   *           .setNetworkProfile("networkProfile-2013096037")
      +   *           .setProject("project-309310695")
      +   *           .build();
      +   *   ApiFuture future = networkProfilesClient.getCallable().futureCall(request);
      +   *   // Do something.
      +   *   NetworkProfile response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of network profiles available to the specified project. + * + *

      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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   String project = "project-309310695";
      +   *   for (NetworkProfile element : networkProfilesClient.list(project).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project) { + ListNetworkProfilesRequest request = + ListNetworkProfilesRequest.newBuilder().setProject(project).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of network profiles available to the specified project. + * + *

      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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   ListNetworkProfilesRequest request =
      +   *       ListNetworkProfilesRequest.newBuilder()
      +   *           .setFilter("filter-1274492040")
      +   *           .setMaxResults(1128457243)
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .setPageToken("pageToken873572522")
      +   *           .setProject("project-309310695")
      +   *           .setReturnPartialSuccess(true)
      +   *           .build();
      +   *   for (NetworkProfile element : networkProfilesClient.list(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 ListPagedResponse list(ListNetworkProfilesRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of network profiles available to the specified project. + * + *

      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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   ListNetworkProfilesRequest request =
      +   *       ListNetworkProfilesRequest.newBuilder()
      +   *           .setFilter("filter-1274492040")
      +   *           .setMaxResults(1128457243)
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .setPageToken("pageToken873572522")
      +   *           .setProject("project-309310695")
      +   *           .setReturnPartialSuccess(true)
      +   *           .build();
      +   *   ApiFuture future =
      +   *       networkProfilesClient.listPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (NetworkProfile element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of network profiles available to the specified project. + * + *

      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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
      +   *   ListNetworkProfilesRequest request =
      +   *       ListNetworkProfilesRequest.newBuilder()
      +   *           .setFilter("filter-1274492040")
      +   *           .setMaxResults(1128457243)
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .setPageToken("pageToken873572522")
      +   *           .setProject("project-309310695")
      +   *           .setReturnPartialSuccess(true)
      +   *           .build();
      +   *   while (true) {
      +   *     NetworkProfilesListResponse response = networkProfilesClient.listCallable().call(request);
      +   *     for (NetworkProfile element : response.getItemsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listCallable() { + return stub.listCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListNetworkProfilesRequest, + NetworkProfilesListResponse, + NetworkProfile, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListNetworkProfilesRequest, NetworkProfilesListResponse, NetworkProfile, ListPage> { + + private ListPage( + PageContext + context, + NetworkProfilesListResponse response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext + context, + NetworkProfilesListResponse response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNetworkProfilesRequest, + NetworkProfilesListResponse, + NetworkProfile, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java new file mode 100644 index 000000000000..b63a1120cb58 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java @@ -0,0 +1,215 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1; + +import static com.google.cloud.compute.v1.NetworkProfilesClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +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.compute.v1.stub.NetworkProfilesStubSettings; +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 NetworkProfilesClient}. + * + *

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

        + *
      • The default service address (compute.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

      {@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
      + * NetworkProfilesSettings.Builder networkProfilesSettingsBuilder =
      + *     NetworkProfilesSettings.newBuilder();
      + * networkProfilesSettingsBuilder
      + *     .getSettings()
      + *     .setRetrySettings(
      + *         networkProfilesSettingsBuilder
      + *             .getSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
      + *             .setMaxAttempts(5)
      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
      + *             .setRetryDelayMultiplier(1.3)
      + *             .setRpcTimeoutMultiplier(1.5)
      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      + *             .build());
      + * NetworkProfilesSettings networkProfilesSettings = networkProfilesSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class NetworkProfilesSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((NetworkProfilesStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings() { + return ((NetworkProfilesStubSettings) getStubSettings()).listSettings(); + } + + public static final NetworkProfilesSettings create(NetworkProfilesStubSettings stub) + throws IOException { + return new NetworkProfilesSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return NetworkProfilesStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return NetworkProfilesStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return NetworkProfilesStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return NetworkProfilesStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return NetworkProfilesStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return NetworkProfilesStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return NetworkProfilesStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 NetworkProfilesSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for NetworkProfilesSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(NetworkProfilesStubSettings.newBuilder(clientContext)); + } + + protected Builder(NetworkProfilesSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(NetworkProfilesStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(NetworkProfilesStubSettings.newBuilder()); + } + + public NetworkProfilesStubSettings.Builder getStubSettingsBuilder() { + return ((NetworkProfilesStubSettings.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 get. */ + public UnaryCallSettings.Builder getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + @Override + public NetworkProfilesSettings build() throws IOException { + return new NetworkProfilesSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java index ebd8717f7e38..534c675c723e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java @@ -372,6 +372,25 @@ * * * + *

      ResumeInstances + *

      Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • resumeInstancesAsync(ResumeInstancesRegionInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • resumeInstancesAsync(String project, String region, String instanceGroupManager, RegionInstanceGroupManagersResumeInstancesRequest regionInstanceGroupManagersResumeInstancesRequestResource) + *

      + *

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

      + *
        + *
      • resumeInstancesOperationCallable() + *

      • resumeInstancesCallable() + *

      + * + * + * *

      SetInstanceTemplate *

      Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected. * @@ -410,6 +429,63 @@ * * * + *

      StartInstances + *

      Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • startInstancesAsync(StartInstancesRegionInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • startInstancesAsync(String project, String region, String instanceGroupManager, RegionInstanceGroupManagersStartInstancesRequest regionInstanceGroupManagersStartInstancesRequestResource) + *

      + *

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

      + *
        + *
      • startInstancesOperationCallable() + *

      • startInstancesCallable() + *

      + * + * + * + *

      StopInstances + *

      Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • stopInstancesAsync(StopInstancesRegionInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • stopInstancesAsync(String project, String region, String instanceGroupManager, RegionInstanceGroupManagersStopInstancesRequest regionInstanceGroupManagersStopInstancesRequestResource) + *

      + *

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

      + *
        + *
      • stopInstancesOperationCallable() + *

      • stopInstancesCallable() + *

      + * + * + * + *

      SuspendInstances + *

      Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + * + *

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

      + *
        + *
      • suspendInstancesAsync(SuspendInstancesRegionInstanceGroupManagerRequest request) + *

      + *

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

      + *
        + *
      • suspendInstancesAsync(String project, String region, String instanceGroupManager, RegionInstanceGroupManagersSuspendInstancesRequest regionInstanceGroupManagersSuspendInstancesRequestResource) + *

      + *

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

      + *
        + *
      • suspendInstancesOperationCallable() + *

      • suspendInstancesCallable() + *

      + * + * + * *

      UpdatePerInstanceConfigs *

      Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. * @@ -3207,6 +3283,203 @@ public final UnaryCallable r return stub.resizeCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String region = "region-934795532";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   RegionInstanceGroupManagersResumeInstancesRequest
      +   *       regionInstanceGroupManagersResumeInstancesRequestResource =
      +   *           RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       regionInstanceGroupManagersClient
      +   *           .resumeInstancesAsync(
      +   *               project,
      +   *               region,
      +   *               instanceGroupManager,
      +   *               regionInstanceGroupManagersResumeInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param regionInstanceGroupManagersResumeInstancesRequestResource The body resource for this + * request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resumeInstancesAsync( + String project, + String region, + String instanceGroupManager, + RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource) { + ResumeInstancesRegionInstanceGroupManagerRequest request = + ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setRegionInstanceGroupManagersResumeInstancesRequestResource( + regionInstanceGroupManagersResumeInstancesRequestResource) + .build(); + return resumeInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesRegionInstanceGroupManagerRequest request =
      +   *       ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersResumeInstancesRequestResource(
      +   *               RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   Operation response = regionInstanceGroupManagersClient.resumeInstancesAsync(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 resumeInstancesAsync( + ResumeInstancesRegionInstanceGroupManagerRequest request) { + return resumeInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesRegionInstanceGroupManagerRequest request =
      +   *       ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersResumeInstancesRequestResource(
      +   *               RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       regionInstanceGroupManagersClient.resumeInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationCallable() { + return stub.resumeInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases the targetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the RESUMING action with the listmanagedinstances method. In + * this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. If a health check is attached to the managed instance group, the + * specified instances will be verified as healthy after they are resumed. You can specify a + * maximum of 1000 instances with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   ResumeInstancesRegionInstanceGroupManagerRequest request =
      +   *       ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersResumeInstancesRequestResource(
      +   *               RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       regionInstanceGroupManagersClient.resumeInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + resumeInstancesCallable() { + return stub.resumeInstancesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the instance template to use when creating new instances or recreating instances in this @@ -3539,6 +3812,637 @@ public final OperationFuture setTargetPoolsAsync( return stub.setTargetPoolsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String region = "region-934795532";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   RegionInstanceGroupManagersStartInstancesRequest
      +   *       regionInstanceGroupManagersStartInstancesRequestResource =
      +   *           RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       regionInstanceGroupManagersClient
      +   *           .startInstancesAsync(
      +   *               project,
      +   *               region,
      +   *               instanceGroupManager,
      +   *               regionInstanceGroupManagersStartInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param regionInstanceGroupManagersStartInstancesRequestResource The body resource for this + * request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startInstancesAsync( + String project, + String region, + String instanceGroupManager, + RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource) { + StartInstancesRegionInstanceGroupManagerRequest request = + StartInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setRegionInstanceGroupManagersStartInstancesRequestResource( + regionInstanceGroupManagersStartInstancesRequestResource) + .build(); + return startInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StartInstancesRegionInstanceGroupManagerRequest request =
      +   *       StartInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStartInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   Operation response = regionInstanceGroupManagersClient.startInstancesAsync(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 startInstancesAsync( + StartInstancesRegionInstanceGroupManagerRequest request) { + return startInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StartInstancesRegionInstanceGroupManagerRequest request =
      +   *       StartInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStartInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       regionInstanceGroupManagersClient.startInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationCallable() { + return stub.startInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases the targetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of the STARTING action with the listmanagedinstances method. In + * this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. If a health check is attached to the managed instance group, the specified instances + * will be verified as healthy after they are started. You can specify a maximum of 1000 instances + * with this method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StartInstancesRegionInstanceGroupManagerRequest request =
      +   *       StartInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStartInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       regionInstanceGroupManagersClient.startInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + startInstancesCallable() { + return stub.startInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String region = "region-934795532";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   RegionInstanceGroupManagersStopInstancesRequest
      +   *       regionInstanceGroupManagersStopInstancesRequestResource =
      +   *           RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       regionInstanceGroupManagersClient
      +   *           .stopInstancesAsync(
      +   *               project,
      +   *               region,
      +   *               instanceGroupManager,
      +   *               regionInstanceGroupManagersStopInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @param regionInstanceGroupManagersStopInstancesRequestResource The body resource for this + * request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopInstancesAsync( + String project, + String region, + String instanceGroupManager, + RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource) { + StopInstancesRegionInstanceGroupManagerRequest request = + StopInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setRegionInstanceGroupManagersStopInstancesRequestResource( + regionInstanceGroupManagersStopInstancesRequestResource) + .build(); + return stopInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StopInstancesRegionInstanceGroupManagerRequest request =
      +   *       StopInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStopInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   Operation response = regionInstanceGroupManagersClient.stopInstancesAsync(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 stopInstancesAsync( + StopInstancesRegionInstanceGroupManagerRequest request) { + return stopInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StopInstancesRegionInstanceGroupManagerRequest request =
      +   *       StopInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStopInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       regionInstanceGroupManagersClient.stopInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationCallable() { + return stub.stopInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces the targetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the STOPPING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is stopped. Stopped instances can be + * started using the startInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   StopInstancesRegionInstanceGroupManagerRequest request =
      +   *       StopInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersStopInstancesRequestResource(
      +   *               RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       regionInstanceGroupManagersClient.stopInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + stopInstancesCallable() { + return stub.stopInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   String project = "project-309310695";
      +   *   String region = "region-934795532";
      +   *   String instanceGroupManager = "instanceGroupManager-388242077";
      +   *   RegionInstanceGroupManagersSuspendInstancesRequest
      +   *       regionInstanceGroupManagersSuspendInstancesRequestResource =
      +   *           RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build();
      +   *   Operation response =
      +   *       regionInstanceGroupManagersClient
      +   *           .suspendInstancesAsync(
      +   *               project,
      +   *               region,
      +   *               instanceGroupManager,
      +   *               regionInstanceGroupManagersSuspendInstancesRequestResource)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param regionInstanceGroupManagersSuspendInstancesRequestResource The body resource for this + * request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture suspendInstancesAsync( + String project, + String region, + String instanceGroupManager, + RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource) { + SuspendInstancesRegionInstanceGroupManagerRequest request = + SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setRegionInstanceGroupManagersSuspendInstancesRequestResource( + regionInstanceGroupManagersSuspendInstancesRequestResource) + .build(); + return suspendInstancesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesRegionInstanceGroupManagerRequest request =
      +   *       SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   Operation response = regionInstanceGroupManagersClient.suspendInstancesAsync(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 suspendInstancesAsync( + SuspendInstancesRegionInstanceGroupManagerRequest request) { + return suspendInstancesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesRegionInstanceGroupManagerRequest request =
      +   *       SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       regionInstanceGroupManagersClient.suspendInstancesOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationCallable() { + return stub.suspendInstancesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces the targetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of the SUSPENDING action with the listmanagedinstances method. If the + * standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the + * instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp + * when this method is called, there will be zero delay. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after the connection + * draining duration has elapsed before the VM instance is suspended. Suspended instances can be + * resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this + * method per request. + * + *

      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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
      +   *     RegionInstanceGroupManagersClient.create()) {
      +   *   SuspendInstancesRegionInstanceGroupManagerRequest request =
      +   *       SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder()
      +   *           .setInstanceGroupManager("instanceGroupManager-388242077")
      +   *           .setProject("project-309310695")
      +   *           .setRegion("region-934795532")
      +   *           .setRegionInstanceGroupManagersSuspendInstancesRequestResource(
      +   *               RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build())
      +   *           .setRequestId("requestId693933066")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       regionInstanceGroupManagersClient.suspendInstancesCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + suspendInstancesCallable() { + return stub.suspendInstancesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Inserts or updates per-instance configurations for the managed instance group. diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java index 93137bf61227..10070bd3e23c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java @@ -306,6 +306,20 @@ public UnaryCallSettings res return ((RegionInstanceGroupManagersStubSettings) getStubSettings()).resizeOperationSettings(); } + /** Returns the object with the settings used for calls to resumeInstances. */ + public UnaryCallSettings + resumeInstancesSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()).resumeInstancesSettings(); + } + + /** Returns the object with the settings used for calls to resumeInstances. */ + public OperationCallSettings< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()) + .resumeInstancesOperationSettings(); + } + /** Returns the object with the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings setInstanceTemplateSettings() { @@ -335,6 +349,47 @@ public UnaryCallSettings res .setTargetPoolsOperationSettings(); } + /** Returns the object with the settings used for calls to startInstances. */ + public UnaryCallSettings + startInstancesSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()).startInstancesSettings(); + } + + /** Returns the object with the settings used for calls to startInstances. */ + public OperationCallSettings< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()) + .startInstancesOperationSettings(); + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public UnaryCallSettings + stopInstancesSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()).stopInstancesSettings(); + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public OperationCallSettings + stopInstancesOperationSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()) + .stopInstancesOperationSettings(); + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public UnaryCallSettings + suspendInstancesSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()).suspendInstancesSettings(); + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public OperationCallSettings< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return ((RegionInstanceGroupManagersStubSettings) getStubSettings()) + .suspendInstancesOperationSettings(); + } + /** Returns the object with the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings updatePerInstanceConfigsSettings() { @@ -636,6 +691,19 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().resizeOperationSettings(); } + /** Returns the builder for the settings used for calls to resumeInstances. */ + public UnaryCallSettings.Builder + resumeInstancesSettings() { + return getStubSettingsBuilder().resumeInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to resumeInstances. */ + public OperationCallSettings.Builder< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return getStubSettingsBuilder().resumeInstancesOperationSettings(); + } + /** Returns the builder for the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings.Builder< SetInstanceTemplateRegionInstanceGroupManagerRequest, Operation> @@ -663,6 +731,45 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().setTargetPoolsOperationSettings(); } + /** Returns the builder for the settings used for calls to startInstances. */ + public UnaryCallSettings.Builder + startInstancesSettings() { + return getStubSettingsBuilder().startInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to startInstances. */ + public OperationCallSettings.Builder< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return getStubSettingsBuilder().startInstancesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public UnaryCallSettings.Builder + stopInstancesSettings() { + return getStubSettingsBuilder().stopInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public OperationCallSettings.Builder< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings() { + return getStubSettingsBuilder().stopInstancesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public UnaryCallSettings.Builder + suspendInstancesSettings() { + return getStubSettingsBuilder().suspendInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public OperationCallSettings.Builder< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return getStubSettingsBuilder().suspendInstancesOperationSettings(); + } + /** Returns the builder for the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings.Builder< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation> diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java index 12a6b1438498..a6aeef26735d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java @@ -236,6 +236,25 @@ *
    * * + * + *

    SetLabels + *

    Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + * + *

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

    + *
      + *
    • setLabelsAsync(SetLabelsRegionSecurityPolicyRequest request) + *

    + *

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

    + *
      + *
    • setLabelsAsync(String project, String region, String resource, RegionSetLabelsRequest regionSetLabelsRequestResource) + *

    + *

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

    + *
      + *
    • setLabelsOperationCallable() + *

    • setLabelsCallable() + *

    + * + * * * *

    See the individual methods for example code. @@ -1559,6 +1578,158 @@ public final OperationFuture removeRuleAsync( return stub.removeRuleCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + *

    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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient =
    +   *     RegionSecurityPoliciesClient.create()) {
    +   *   String project = "project-309310695";
    +   *   String region = "region-934795532";
    +   *   String resource = "resource-341064690";
    +   *   RegionSetLabelsRequest regionSetLabelsRequestResource =
    +   *       RegionSetLabelsRequest.newBuilder().build();
    +   *   Operation response =
    +   *       regionSecurityPoliciesClient
    +   *           .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param regionSetLabelsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture setLabelsAsync( + String project, + String region, + String resource, + RegionSetLabelsRequest regionSetLabelsRequestResource) { + SetLabelsRegionSecurityPolicyRequest request = + SetLabelsRegionSecurityPolicyRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) + .build(); + return setLabelsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + *

    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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient =
    +   *     RegionSecurityPoliciesClient.create()) {
    +   *   SetLabelsRegionSecurityPolicyRequest request =
    +   *       SetLabelsRegionSecurityPolicyRequest.newBuilder()
    +   *           .setProject("project-309310695")
    +   *           .setRegion("region-934795532")
    +   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .setResource("resource-341064690")
    +   *           .build();
    +   *   Operation response = regionSecurityPoliciesClient.setLabelsAsync(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 setLabelsAsync( + SetLabelsRegionSecurityPolicyRequest request) { + return setLabelsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + *

    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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient =
    +   *     RegionSecurityPoliciesClient.create()) {
    +   *   SetLabelsRegionSecurityPolicyRequest request =
    +   *       SetLabelsRegionSecurityPolicyRequest.newBuilder()
    +   *           .setProject("project-309310695")
    +   *           .setRegion("region-934795532")
    +   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .setResource("resource-341064690")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       regionSecurityPoliciesClient.setLabelsOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + setLabelsOperationCallable() { + return stub.setLabelsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + *

    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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient =
    +   *     RegionSecurityPoliciesClient.create()) {
    +   *   SetLabelsRegionSecurityPolicyRequest request =
    +   *       SetLabelsRegionSecurityPolicyRequest.newBuilder()
    +   *           .setProject("project-309310695")
    +   *           .setRegion("region-934795532")
    +   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .setResource("resource-341064690")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       regionSecurityPoliciesClient.setLabelsCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setLabelsCallable() { + return stub.setLabelsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java index dc4668125a00..e55aaea76f85 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java @@ -197,6 +197,17 @@ public UnaryCallSettings remov return ((RegionSecurityPoliciesStubSettings) getStubSettings()).removeRuleOperationSettings(); } + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return ((RegionSecurityPoliciesStubSettings) getStubSettings()).setLabelsSettings(); + } + + /** Returns the object with the settings used for calls to setLabels. */ + public OperationCallSettings + setLabelsOperationSettings() { + return ((RegionSecurityPoliciesStubSettings) getStubSettings()).setLabelsOperationSettings(); + } + public static final RegionSecurityPoliciesSettings create(RegionSecurityPoliciesStubSettings stub) throws IOException { return new RegionSecurityPoliciesSettings.Builder(stub.toBuilder()).build(); @@ -385,6 +396,18 @@ public UnaryCallSettings.Builder pa return getStubSettingsBuilder().removeRuleOperationSettings(); } + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder + setLabelsSettings() { + return getStubSettingsBuilder().setLabelsSettings(); + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public OperationCallSettings.Builder + setLabelsOperationSettings() { + return getStubSettingsBuilder().setLabelsOperationSettings(); + } + @Override public RegionSecurityPoliciesSettings build() throws IOException { return new RegionSecurityPoliciesSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json index c0f0e7e0ffcc..611f8c6a6eca 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json @@ -733,12 +733,24 @@ "Resize": { "methods": ["resizeAsync", "resizeAsync", "resizeOperationCallable", "resizeCallable"] }, + "ResumeInstances": { + "methods": ["resumeInstancesAsync", "resumeInstancesAsync", "resumeInstancesOperationCallable", "resumeInstancesCallable"] + }, "SetInstanceTemplate": { "methods": ["setInstanceTemplateAsync", "setInstanceTemplateAsync", "setInstanceTemplateOperationCallable", "setInstanceTemplateCallable"] }, "SetTargetPools": { "methods": ["setTargetPoolsAsync", "setTargetPoolsAsync", "setTargetPoolsOperationCallable", "setTargetPoolsCallable"] }, + "StartInstances": { + "methods": ["startInstancesAsync", "startInstancesAsync", "startInstancesOperationCallable", "startInstancesCallable"] + }, + "StopInstances": { + "methods": ["stopInstancesAsync", "stopInstancesAsync", "stopInstancesOperationCallable", "stopInstancesCallable"] + }, + "SuspendInstances": { + "methods": ["suspendInstancesAsync", "suspendInstancesAsync", "suspendInstancesOperationCallable", "suspendInstancesCallable"] + }, "UpdatePerInstanceConfigs": { "methods": ["updatePerInstanceConfigsAsync", "updatePerInstanceConfigsAsync", "updatePerInstanceConfigsOperationCallable", "updatePerInstanceConfigsCallable"] } @@ -1358,6 +1370,21 @@ } } }, + "NetworkProfiles": { + "clients": { + "grpc": { + "libraryClient": "NetworkProfilesClient", + "rpcs": { + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + } + } + } + } + }, "Networks": { "clients": { "grpc": { @@ -1924,12 +1951,24 @@ "Resize": { "methods": ["resizeAsync", "resizeAsync", "resizeOperationCallable", "resizeCallable"] }, + "ResumeInstances": { + "methods": ["resumeInstancesAsync", "resumeInstancesAsync", "resumeInstancesOperationCallable", "resumeInstancesCallable"] + }, "SetInstanceTemplate": { "methods": ["setInstanceTemplateAsync", "setInstanceTemplateAsync", "setInstanceTemplateOperationCallable", "setInstanceTemplateCallable"] }, "SetTargetPools": { "methods": ["setTargetPoolsAsync", "setTargetPoolsAsync", "setTargetPoolsOperationCallable", "setTargetPoolsCallable"] }, + "StartInstances": { + "methods": ["startInstancesAsync", "startInstancesAsync", "startInstancesOperationCallable", "startInstancesCallable"] + }, + "StopInstances": { + "methods": ["stopInstancesAsync", "stopInstancesAsync", "stopInstancesOperationCallable", "stopInstancesCallable"] + }, + "SuspendInstances": { + "methods": ["suspendInstancesAsync", "suspendInstancesAsync", "suspendInstancesOperationCallable", "suspendInstancesCallable"] + }, "UpdatePerInstanceConfigs": { "methods": ["updatePerInstanceConfigsAsync", "updatePerInstanceConfigsAsync", "updatePerInstanceConfigsOperationCallable", "updatePerInstanceConfigsCallable"] } @@ -2187,6 +2226,9 @@ }, "RemoveRule": { "methods": ["removeRuleAsync", "removeRuleAsync", "removeRuleOperationCallable", "removeRuleCallable"] + }, + "SetLabels": { + "methods": ["setLabelsAsync", "setLabelsAsync", "setLabelsOperationCallable", "setLabelsCallable"] } } } 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 be6de403c41a..7f98ba02e7d9 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 @@ -802,6 +802,25 @@ * } * } * + *

    ======================= NetworkProfilesClient ======================= + * + *

    Service Description: The NetworkProfiles API. + * + *

    Sample for NetworkProfilesClient: + * + *

    {@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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) {
    + *   String project = "project-309310695";
    + *   String networkProfile = "networkProfile-2013096037";
    + *   NetworkProfile response = networkProfilesClient.get(project, networkProfile);
    + * }
    + * }
    + * *

    ======================= NetworksClient ======================= * *

    Service Description: The Networks API. diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagersStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagersStub.java index 1524f371272a..589e6c5b637c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagersStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagersStub.java @@ -61,8 +61,12 @@ import com.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest; import com.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -1072,6 +1076,66 @@ public class HttpJsonInstanceGroupManagersStub extends InstanceGroupManagersStub }) .build(); + private static final ApiMethodDescriptor + resumeInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstanceGroupManagers/ResumeInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instanceGroupManagersResumeInstancesRequestResource", + request + .getInstanceGroupManagersResumeInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResumeInstancesInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private static final ApiMethodDescriptor< SetInstanceTemplateInstanceGroupManagerRequest, Operation> setInstanceTemplateMethodDescriptor = @@ -1195,6 +1259,186 @@ public class HttpJsonInstanceGroupManagersStub extends InstanceGroupManagersStub }) .build(); + private static final ApiMethodDescriptor + startInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstanceGroupManagers/StartInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instanceGroupManagersStartInstancesRequestResource", + request + .getInstanceGroupManagersStartInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StartInstancesInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + stopInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstanceGroupManagers/StopInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instanceGroupManagersStopInstancesRequestResource", + request + .getInstanceGroupManagersStopInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StopInstancesInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + suspendInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstanceGroupManagers/SuspendInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instanceGroupManagersSuspendInstancesRequestResource", + request + .getInstanceGroupManagersSuspendInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SuspendInstancesInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private static final ApiMethodDescriptor< UpdatePerInstanceConfigsInstanceGroupManagerRequest, Operation> updatePerInstanceConfigsMethodDescriptor = @@ -1333,6 +1577,10 @@ public class HttpJsonInstanceGroupManagersStub extends InstanceGroupManagersStub private final UnaryCallable resizeCallable; private final OperationCallable resizeOperationCallable; + private final UnaryCallable + resumeInstancesCallable; + private final OperationCallable + resumeInstancesOperationCallable; private final UnaryCallable setInstanceTemplateCallable; private final OperationCallable< @@ -1342,6 +1590,18 @@ public class HttpJsonInstanceGroupManagersStub extends InstanceGroupManagersStub setTargetPoolsCallable; private final OperationCallable setTargetPoolsOperationCallable; + private final UnaryCallable + startInstancesCallable; + private final OperationCallable + startInstancesOperationCallable; + private final UnaryCallable + stopInstancesCallable; + private final OperationCallable + stopInstancesOperationCallable; + private final UnaryCallable + suspendInstancesCallable; + private final OperationCallable + suspendInstancesOperationCallable; private final UnaryCallable updatePerInstanceConfigsCallable; private final OperationCallable< @@ -1669,6 +1929,22 @@ protected HttpJsonInstanceGroupManagersStub( return builder.build(); }) .build(); + HttpJsonCallSettings + resumeInstancesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resumeInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); HttpJsonCallSettings setInstanceTemplateTransportSettings = HttpJsonCallSettings @@ -1702,6 +1978,55 @@ protected HttpJsonInstanceGroupManagersStub( return builder.build(); }) .build(); + HttpJsonCallSettings + startInstancesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + stopInstancesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(stopInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + suspendInstancesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(suspendInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); HttpJsonCallSettings updatePerInstanceConfigsTransportSettings = HttpJsonCallSettings @@ -1868,6 +2193,15 @@ protected HttpJsonInstanceGroupManagersStub( settings.resizeOperationSettings(), clientContext, httpJsonOperationsStub); + this.resumeInstancesCallable = + callableFactory.createUnaryCallable( + resumeInstancesTransportSettings, settings.resumeInstancesSettings(), clientContext); + this.resumeInstancesOperationCallable = + callableFactory.createOperationCallable( + resumeInstancesTransportSettings, + settings.resumeInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); this.setInstanceTemplateCallable = callableFactory.createUnaryCallable( setInstanceTemplateTransportSettings, @@ -1888,6 +2222,33 @@ protected HttpJsonInstanceGroupManagersStub( settings.setTargetPoolsOperationSettings(), clientContext, httpJsonOperationsStub); + this.startInstancesCallable = + callableFactory.createUnaryCallable( + startInstancesTransportSettings, settings.startInstancesSettings(), clientContext); + this.startInstancesOperationCallable = + callableFactory.createOperationCallable( + startInstancesTransportSettings, + settings.startInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.stopInstancesCallable = + callableFactory.createUnaryCallable( + stopInstancesTransportSettings, settings.stopInstancesSettings(), clientContext); + this.stopInstancesOperationCallable = + callableFactory.createOperationCallable( + stopInstancesTransportSettings, + settings.stopInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.suspendInstancesCallable = + callableFactory.createUnaryCallable( + suspendInstancesTransportSettings, settings.suspendInstancesSettings(), clientContext); + this.suspendInstancesOperationCallable = + callableFactory.createOperationCallable( + suspendInstancesTransportSettings, + settings.suspendInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); this.updatePerInstanceConfigsCallable = callableFactory.createUnaryCallable( updatePerInstanceConfigsTransportSettings, @@ -1924,8 +2285,12 @@ public static List getMethodDescriptors() { methodDescriptors.add(patchPerInstanceConfigsMethodDescriptor); methodDescriptors.add(recreateInstancesMethodDescriptor); methodDescriptors.add(resizeMethodDescriptor); + methodDescriptors.add(resumeInstancesMethodDescriptor); methodDescriptors.add(setInstanceTemplateMethodDescriptor); methodDescriptors.add(setTargetPoolsMethodDescriptor); + methodDescriptors.add(startInstancesMethodDescriptor); + methodDescriptors.add(stopInstancesMethodDescriptor); + methodDescriptors.add(suspendInstancesMethodDescriptor); methodDescriptors.add(updatePerInstanceConfigsMethodDescriptor); return methodDescriptors; } @@ -2130,6 +2495,18 @@ public UnaryCallable resizeCallabl return resizeOperationCallable; } + @Override + public UnaryCallable + resumeInstancesCallable() { + return resumeInstancesCallable; + } + + @Override + public OperationCallable + resumeInstancesOperationCallable() { + return resumeInstancesOperationCallable; + } + @Override public UnaryCallable setInstanceTemplateCallable() { @@ -2154,6 +2531,42 @@ public UnaryCallable resizeCallabl return setTargetPoolsOperationCallable; } + @Override + public UnaryCallable + startInstancesCallable() { + return startInstancesCallable; + } + + @Override + public OperationCallable + startInstancesOperationCallable() { + return startInstancesOperationCallable; + } + + @Override + public UnaryCallable + stopInstancesCallable() { + return stopInstancesCallable; + } + + @Override + public OperationCallable + stopInstancesOperationCallable() { + return stopInstancesOperationCallable; + } + + @Override + public UnaryCallable + suspendInstancesCallable() { + return suspendInstancesCallable; + } + + @Override + public OperationCallable + suspendInstancesOperationCallable() { + return suspendInstancesOperationCallable; + } + @Override public UnaryCallable updatePerInstanceConfigsCallable() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesCallableFactory.java new file mode 100644 index 000000000000..175986e1963e --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesCallableFactory.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.compute.v1.stub; + +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 NetworkProfiles service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonNetworkProfilesCallableFactory + 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-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesStub.java new file mode 100644 index 000000000000..c66a8ee15d8c --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkProfilesStub.java @@ -0,0 +1,287 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1.stub; + +import static com.google.cloud.compute.v1.NetworkProfilesClient.ListPagedResponse; + +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.compute.v1.GetNetworkProfileRequest; +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesListResponse; +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 NetworkProfiles service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonNetworkProfilesStub extends NetworkProfilesStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.NetworkProfiles/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/global/networkProfiles/{networkProfile}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "networkProfile", request.getNetworkProfile()); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NetworkProfile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.NetworkProfiles/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/global/networkProfiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NetworkProfilesListResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getCallable; + private final UnaryCallable listCallable; + private final UnaryCallable listPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonNetworkProfilesStub create(NetworkProfilesStubSettings settings) + throws IOException { + return new HttpJsonNetworkProfilesStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonNetworkProfilesStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonNetworkProfilesStub( + NetworkProfilesStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonNetworkProfilesStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonNetworkProfilesStub( + NetworkProfilesStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonNetworkProfilesStub, 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 HttpJsonNetworkProfilesStub( + NetworkProfilesStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonNetworkProfilesCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonNetworkProfilesStub, 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 HttpJsonNetworkProfilesStub( + NetworkProfilesStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("network_profile", String.valueOf(request.getNetworkProfile())); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable listCallable() { + return listCallable; + } + + @Override + public UnaryCallable listPagedCallable() { + return listPagedCallable; + } + + @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-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagersStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagersStub.java index 7b30c661b5fd..56058886b3de 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagersStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagersStub.java @@ -58,8 +58,12 @@ import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstanceConfigsResp; import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstancesResponse; import com.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -1036,6 +1040,70 @@ public class HttpJsonRegionInstanceGroupManagersStub extends RegionInstanceGroup }) .build(); + private static final ApiMethodDescriptor< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation> + resumeInstancesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagers/ResumeInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionInstanceGroupManagersResumeInstancesRequestResource", + request + .getRegionInstanceGroupManagersResumeInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResumeInstancesRegionInstanceGroupManagerRequest request, + Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private static final ApiMethodDescriptor< SetInstanceTemplateRegionInstanceGroupManagerRequest, Operation> setInstanceTemplateMethodDescriptor = @@ -1165,6 +1233,196 @@ public class HttpJsonRegionInstanceGroupManagersStub extends RegionInstanceGroup }) .build(); + private static final ApiMethodDescriptor< + StartInstancesRegionInstanceGroupManagerRequest, Operation> + startInstancesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagers/StartInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionInstanceGroupManagersStartInstancesRequestResource", + request + .getRegionInstanceGroupManagersStartInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StartInstancesRegionInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + StopInstancesRegionInstanceGroupManagerRequest, Operation> + stopInstancesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagers/StopInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionInstanceGroupManagersStopInstancesRequestResource", + request + .getRegionInstanceGroupManagersStopInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StopInstancesRegionInstanceGroupManagerRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation> + suspendInstancesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagers/SuspendInstances") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionInstanceGroupManagersSuspendInstancesRequestResource", + request + .getRegionInstanceGroupManagersSuspendInstancesRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SuspendInstancesRegionInstanceGroupManagerRequest request, + Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private static final ApiMethodDescriptor< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation> updatePerInstanceConfigsMethodDescriptor = @@ -1306,6 +1564,11 @@ public class HttpJsonRegionInstanceGroupManagersStub extends RegionInstanceGroup private final UnaryCallable resizeCallable; private final OperationCallable resizeOperationCallable; + private final UnaryCallable + resumeInstancesCallable; + private final OperationCallable< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationCallable; private final UnaryCallable setInstanceTemplateCallable; private final OperationCallable< @@ -1316,6 +1579,21 @@ public class HttpJsonRegionInstanceGroupManagersStub extends RegionInstanceGroup private final OperationCallable< SetTargetPoolsRegionInstanceGroupManagerRequest, Operation, Operation> setTargetPoolsOperationCallable; + private final UnaryCallable + startInstancesCallable; + private final OperationCallable< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationCallable; + private final UnaryCallable + stopInstancesCallable; + private final OperationCallable< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationCallable; + private final UnaryCallable + suspendInstancesCallable; + private final OperationCallable< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationCallable; private final UnaryCallable updatePerInstanceConfigsCallable; private final OperationCallable< @@ -1643,6 +1921,23 @@ protected HttpJsonRegionInstanceGroupManagersStub( return builder.build(); }) .build(); + HttpJsonCallSettings + resumeInstancesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(resumeInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .build(); HttpJsonCallSettings setInstanceTemplateTransportSettings = HttpJsonCallSettings @@ -1677,6 +1972,57 @@ protected HttpJsonRegionInstanceGroupManagersStub( return builder.build(); }) .build(); + HttpJsonCallSettings + startInstancesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(startInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + stopInstancesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(stopInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + suspendInstancesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(suspendInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .build(); HttpJsonCallSettings updatePerInstanceConfigsTransportSettings = HttpJsonCallSettings @@ -1837,6 +2183,15 @@ protected HttpJsonRegionInstanceGroupManagersStub( settings.resizeOperationSettings(), clientContext, httpJsonOperationsStub); + this.resumeInstancesCallable = + callableFactory.createUnaryCallable( + resumeInstancesTransportSettings, settings.resumeInstancesSettings(), clientContext); + this.resumeInstancesOperationCallable = + callableFactory.createOperationCallable( + resumeInstancesTransportSettings, + settings.resumeInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); this.setInstanceTemplateCallable = callableFactory.createUnaryCallable( setInstanceTemplateTransportSettings, @@ -1857,6 +2212,33 @@ protected HttpJsonRegionInstanceGroupManagersStub( settings.setTargetPoolsOperationSettings(), clientContext, httpJsonOperationsStub); + this.startInstancesCallable = + callableFactory.createUnaryCallable( + startInstancesTransportSettings, settings.startInstancesSettings(), clientContext); + this.startInstancesOperationCallable = + callableFactory.createOperationCallable( + startInstancesTransportSettings, + settings.startInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.stopInstancesCallable = + callableFactory.createUnaryCallable( + stopInstancesTransportSettings, settings.stopInstancesSettings(), clientContext); + this.stopInstancesOperationCallable = + callableFactory.createOperationCallable( + stopInstancesTransportSettings, + settings.stopInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.suspendInstancesCallable = + callableFactory.createUnaryCallable( + suspendInstancesTransportSettings, settings.suspendInstancesSettings(), clientContext); + this.suspendInstancesOperationCallable = + callableFactory.createOperationCallable( + suspendInstancesTransportSettings, + settings.suspendInstancesOperationSettings(), + clientContext, + httpJsonOperationsStub); this.updatePerInstanceConfigsCallable = callableFactory.createUnaryCallable( updatePerInstanceConfigsTransportSettings, @@ -1892,8 +2274,12 @@ public static List getMethodDescriptors() { methodDescriptors.add(patchPerInstanceConfigsMethodDescriptor); methodDescriptors.add(recreateInstancesMethodDescriptor); methodDescriptors.add(resizeMethodDescriptor); + methodDescriptors.add(resumeInstancesMethodDescriptor); methodDescriptors.add(setInstanceTemplateMethodDescriptor); methodDescriptors.add(setTargetPoolsMethodDescriptor); + methodDescriptors.add(startInstancesMethodDescriptor); + methodDescriptors.add(stopInstancesMethodDescriptor); + methodDescriptors.add(suspendInstancesMethodDescriptor); methodDescriptors.add(updatePerInstanceConfigsMethodDescriptor); return methodDescriptors; } @@ -2091,6 +2477,18 @@ public UnaryCallable resizeC return resizeOperationCallable; } + @Override + public UnaryCallable + resumeInstancesCallable() { + return resumeInstancesCallable; + } + + @Override + public OperationCallable + resumeInstancesOperationCallable() { + return resumeInstancesOperationCallable; + } + @Override public UnaryCallable setInstanceTemplateCallable() { @@ -2116,6 +2514,42 @@ public UnaryCallable resizeC return setTargetPoolsOperationCallable; } + @Override + public UnaryCallable + startInstancesCallable() { + return startInstancesCallable; + } + + @Override + public OperationCallable + startInstancesOperationCallable() { + return startInstancesOperationCallable; + } + + @Override + public UnaryCallable + stopInstancesCallable() { + return stopInstancesCallable; + } + + @Override + public OperationCallable + stopInstancesOperationCallable() { + return stopInstancesOperationCallable; + } + + @Override + public UnaryCallable + suspendInstancesCallable() { + return suspendInstancesCallable; + } + + @Override + public OperationCallable + suspendInstancesOperationCallable() { + return suspendInstancesOperationCallable; + } + @Override public UnaryCallable updatePerInstanceConfigsCallable() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSecurityPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSecurityPoliciesStub.java index 8f7927f84b5c..3aff6527c231 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSecurityPoliciesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSecurityPoliciesStub.java @@ -46,6 +46,7 @@ import com.google.cloud.compute.v1.SecurityPolicy; import com.google.cloud.compute.v1.SecurityPolicyList; import com.google.cloud.compute.v1.SecurityPolicyRule; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -545,6 +546,63 @@ public class HttpJsonRegionSecurityPoliciesStub extends RegionSecurityPoliciesSt }) .build(); + private static final ApiMethodDescriptor + setLabelsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSecurityPolicies/SetLabels") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSetLabelsRequestResource", + request.getRegionSetLabelsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SetLabelsRegionSecurityPolicyRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private final UnaryCallable addRuleCallable; private final OperationCallable addRuleOperationCallable; @@ -569,6 +627,9 @@ public class HttpJsonRegionSecurityPoliciesStub extends RegionSecurityPoliciesSt private final UnaryCallable removeRuleCallable; private final OperationCallable removeRuleOperationCallable; + private final UnaryCallable setLabelsCallable; + private final OperationCallable + setLabelsOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonRegionOperationsStub httpJsonOperationsStub; @@ -735,6 +796,20 @@ protected HttpJsonRegionSecurityPoliciesStub( return builder.build(); }) .build(); + HttpJsonCallSettings + setLabelsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); this.addRuleCallable = callableFactory.createUnaryCallable( @@ -802,6 +877,15 @@ protected HttpJsonRegionSecurityPoliciesStub( settings.removeRuleOperationSettings(), clientContext, httpJsonOperationsStub); + this.setLabelsCallable = + callableFactory.createUnaryCallable( + setLabelsTransportSettings, settings.setLabelsSettings(), clientContext); + this.setLabelsOperationCallable = + callableFactory.createOperationCallable( + setLabelsTransportSettings, + settings.setLabelsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -819,6 +903,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(patchMethodDescriptor); methodDescriptors.add(patchRuleMethodDescriptor); methodDescriptors.add(removeRuleMethodDescriptor); + methodDescriptors.add(setLabelsMethodDescriptor); return methodDescriptors; } @@ -908,6 +993,17 @@ public UnaryCallable removeRul return removeRuleOperationCallable; } + @Override + public UnaryCallable setLabelsCallable() { + return setLabelsCallable; + } + + @Override + public OperationCallable + setLabelsOperationCallable() { + return setLabelsOperationCallable; + } + @Override public final void close() { try { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStub.java index c135cd6ea47e..5e29f7845835 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStub.java @@ -49,8 +49,12 @@ import com.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest; import com.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest; import javax.annotation.Generated; @@ -235,6 +239,16 @@ public UnaryCallable resizeCallabl throw new UnsupportedOperationException("Not implemented: resizeCallable()"); } + public OperationCallable + resumeInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: resumeInstancesOperationCallable()"); + } + + public UnaryCallable + resumeInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: resumeInstancesCallable()"); + } + public OperationCallable setInstanceTemplateOperationCallable() { throw new UnsupportedOperationException( @@ -256,6 +270,36 @@ public UnaryCallable resizeCallabl throw new UnsupportedOperationException("Not implemented: setTargetPoolsCallable()"); } + public OperationCallable + startInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startInstancesOperationCallable()"); + } + + public UnaryCallable + startInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: startInstancesCallable()"); + } + + public OperationCallable + stopInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstancesOperationCallable()"); + } + + public UnaryCallable + stopInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstancesCallable()"); + } + + public OperationCallable + suspendInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: suspendInstancesOperationCallable()"); + } + + public UnaryCallable + suspendInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: suspendInstancesCallable()"); + } + public OperationCallable< UpdatePerInstanceConfigsInstanceGroupManagerRequest, Operation, Operation> updatePerInstanceConfigsOperationCallable() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java index 3589ea3ec0ec..5c09027e3eee 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java @@ -76,8 +76,12 @@ import com.google.cloud.compute.v1.PerInstanceConfig; import com.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -247,6 +251,11 @@ public class InstanceGroupManagersStubSettings private final UnaryCallSettings resizeSettings; private final OperationCallSettings resizeOperationSettings; + private final UnaryCallSettings + resumeInstancesSettings; + private final OperationCallSettings< + ResumeInstancesInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings; private final UnaryCallSettings setInstanceTemplateSettings; private final OperationCallSettings< @@ -257,6 +266,21 @@ public class InstanceGroupManagersStubSettings private final OperationCallSettings< SetTargetPoolsInstanceGroupManagerRequest, Operation, Operation> setTargetPoolsOperationSettings; + private final UnaryCallSettings + startInstancesSettings; + private final OperationCallSettings< + StartInstancesInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings; + private final UnaryCallSettings + stopInstancesSettings; + private final OperationCallSettings< + StopInstancesInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings; + private final UnaryCallSettings + suspendInstancesSettings; + private final OperationCallSettings< + SuspendInstancesInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings; private final UnaryCallSettings updatePerInstanceConfigsSettings; private final OperationCallSettings< @@ -811,6 +835,18 @@ public UnaryCallSettings resizeSet return resizeOperationSettings; } + /** Returns the object with the settings used for calls to resumeInstances. */ + public UnaryCallSettings + resumeInstancesSettings() { + return resumeInstancesSettings; + } + + /** Returns the object with the settings used for calls to resumeInstances. */ + public OperationCallSettings + resumeInstancesOperationSettings() { + return resumeInstancesOperationSettings; + } + /** Returns the object with the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings setInstanceTemplateSettings() { @@ -835,6 +871,42 @@ public UnaryCallSettings resizeSet return setTargetPoolsOperationSettings; } + /** Returns the object with the settings used for calls to startInstances. */ + public UnaryCallSettings + startInstancesSettings() { + return startInstancesSettings; + } + + /** Returns the object with the settings used for calls to startInstances. */ + public OperationCallSettings + startInstancesOperationSettings() { + return startInstancesOperationSettings; + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public UnaryCallSettings + stopInstancesSettings() { + return stopInstancesSettings; + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public OperationCallSettings + stopInstancesOperationSettings() { + return stopInstancesOperationSettings; + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public UnaryCallSettings + suspendInstancesSettings() { + return suspendInstancesSettings; + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public OperationCallSettings + suspendInstancesOperationSettings() { + return suspendInstancesOperationSettings; + } + /** Returns the object with the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings updatePerInstanceConfigsSettings() { @@ -962,11 +1034,19 @@ protected InstanceGroupManagersStubSettings(Builder settingsBuilder) throws IOEx settingsBuilder.recreateInstancesOperationSettings().build(); resizeSettings = settingsBuilder.resizeSettings().build(); resizeOperationSettings = settingsBuilder.resizeOperationSettings().build(); + resumeInstancesSettings = settingsBuilder.resumeInstancesSettings().build(); + resumeInstancesOperationSettings = settingsBuilder.resumeInstancesOperationSettings().build(); setInstanceTemplateSettings = settingsBuilder.setInstanceTemplateSettings().build(); setInstanceTemplateOperationSettings = settingsBuilder.setInstanceTemplateOperationSettings().build(); setTargetPoolsSettings = settingsBuilder.setTargetPoolsSettings().build(); setTargetPoolsOperationSettings = settingsBuilder.setTargetPoolsOperationSettings().build(); + startInstancesSettings = settingsBuilder.startInstancesSettings().build(); + startInstancesOperationSettings = settingsBuilder.startInstancesOperationSettings().build(); + stopInstancesSettings = settingsBuilder.stopInstancesSettings().build(); + stopInstancesOperationSettings = settingsBuilder.stopInstancesOperationSettings().build(); + suspendInstancesSettings = settingsBuilder.suspendInstancesSettings().build(); + suspendInstancesOperationSettings = settingsBuilder.suspendInstancesOperationSettings().build(); updatePerInstanceConfigsSettings = settingsBuilder.updatePerInstanceConfigsSettings().build(); updatePerInstanceConfigsOperationSettings = settingsBuilder.updatePerInstanceConfigsOperationSettings().build(); @@ -1059,6 +1139,11 @@ public static class Builder private final OperationCallSettings.Builder< ResizeInstanceGroupManagerRequest, Operation, Operation> resizeOperationSettings; + private final UnaryCallSettings.Builder + resumeInstancesSettings; + private final OperationCallSettings.Builder< + ResumeInstancesInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings; private final UnaryCallSettings.Builder< SetInstanceTemplateInstanceGroupManagerRequest, Operation> setInstanceTemplateSettings; @@ -1070,6 +1155,21 @@ public static class Builder private final OperationCallSettings.Builder< SetTargetPoolsInstanceGroupManagerRequest, Operation, Operation> setTargetPoolsOperationSettings; + private final UnaryCallSettings.Builder + startInstancesSettings; + private final OperationCallSettings.Builder< + StartInstancesInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings; + private final UnaryCallSettings.Builder + stopInstancesSettings; + private final OperationCallSettings.Builder< + StopInstancesInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings; + private final UnaryCallSettings.Builder + suspendInstancesSettings; + private final OperationCallSettings.Builder< + SuspendInstancesInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings; private final UnaryCallSettings.Builder< UpdatePerInstanceConfigsInstanceGroupManagerRequest, Operation> updatePerInstanceConfigsSettings; @@ -1156,10 +1256,18 @@ protected Builder(ClientContext clientContext) { recreateInstancesOperationSettings = OperationCallSettings.newBuilder(); resizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resizeOperationSettings = OperationCallSettings.newBuilder(); + resumeInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resumeInstancesOperationSettings = OperationCallSettings.newBuilder(); setInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setInstanceTemplateOperationSettings = OperationCallSettings.newBuilder(); setTargetPoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setTargetPoolsOperationSettings = OperationCallSettings.newBuilder(); + startInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startInstancesOperationSettings = OperationCallSettings.newBuilder(); + stopInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + stopInstancesOperationSettings = OperationCallSettings.newBuilder(); + suspendInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suspendInstancesOperationSettings = OperationCallSettings.newBuilder(); updatePerInstanceConfigsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updatePerInstanceConfigsOperationSettings = OperationCallSettings.newBuilder(); @@ -1182,8 +1290,12 @@ protected Builder(ClientContext clientContext) { patchPerInstanceConfigsSettings, recreateInstancesSettings, resizeSettings, + resumeInstancesSettings, setInstanceTemplateSettings, setTargetPoolsSettings, + startInstancesSettings, + stopInstancesSettings, + suspendInstancesSettings, updatePerInstanceConfigsSettings); initDefaults(this); } @@ -1222,11 +1334,19 @@ protected Builder(InstanceGroupManagersStubSettings settings) { recreateInstancesOperationSettings = settings.recreateInstancesOperationSettings.toBuilder(); resizeSettings = settings.resizeSettings.toBuilder(); resizeOperationSettings = settings.resizeOperationSettings.toBuilder(); + resumeInstancesSettings = settings.resumeInstancesSettings.toBuilder(); + resumeInstancesOperationSettings = settings.resumeInstancesOperationSettings.toBuilder(); setInstanceTemplateSettings = settings.setInstanceTemplateSettings.toBuilder(); setInstanceTemplateOperationSettings = settings.setInstanceTemplateOperationSettings.toBuilder(); setTargetPoolsSettings = settings.setTargetPoolsSettings.toBuilder(); setTargetPoolsOperationSettings = settings.setTargetPoolsOperationSettings.toBuilder(); + startInstancesSettings = settings.startInstancesSettings.toBuilder(); + startInstancesOperationSettings = settings.startInstancesOperationSettings.toBuilder(); + stopInstancesSettings = settings.stopInstancesSettings.toBuilder(); + stopInstancesOperationSettings = settings.stopInstancesOperationSettings.toBuilder(); + suspendInstancesSettings = settings.suspendInstancesSettings.toBuilder(); + suspendInstancesOperationSettings = settings.suspendInstancesOperationSettings.toBuilder(); updatePerInstanceConfigsSettings = settings.updatePerInstanceConfigsSettings.toBuilder(); updatePerInstanceConfigsOperationSettings = settings.updatePerInstanceConfigsOperationSettings.toBuilder(); @@ -1250,8 +1370,12 @@ protected Builder(InstanceGroupManagersStubSettings settings) { patchPerInstanceConfigsSettings, recreateInstancesSettings, resizeSettings, + resumeInstancesSettings, setInstanceTemplateSettings, setTargetPoolsSettings, + startInstancesSettings, + stopInstancesSettings, + suspendInstancesSettings, updatePerInstanceConfigsSettings); } @@ -1353,6 +1477,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .resumeInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .setInstanceTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1363,6 +1492,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .startInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .stopInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .suspendInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .updatePerInstanceConfigsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1643,6 +1787,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .resumeInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + builder .setInstanceTemplateOperationSettings() .setInitialCallSettings( @@ -1693,6 +1862,81 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .startInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .stopInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .suspendInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + builder .updatePerInstanceConfigsOperationSettings() .setInitialCallSettings( @@ -1923,6 +2167,19 @@ public UnaryCallSettings.Builder pa return resizeOperationSettings; } + /** Returns the builder for the settings used for calls to resumeInstances. */ + public UnaryCallSettings.Builder + resumeInstancesSettings() { + return resumeInstancesSettings; + } + + /** Returns the builder for the settings used for calls to resumeInstances. */ + public OperationCallSettings.Builder< + ResumeInstancesInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return resumeInstancesOperationSettings; + } + /** Returns the builder for the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings.Builder setInstanceTemplateSettings() { @@ -1949,6 +2206,45 @@ public UnaryCallSettings.Builder pa return setTargetPoolsOperationSettings; } + /** Returns the builder for the settings used for calls to startInstances. */ + public UnaryCallSettings.Builder + startInstancesSettings() { + return startInstancesSettings; + } + + /** Returns the builder for the settings used for calls to startInstances. */ + public OperationCallSettings.Builder< + StartInstancesInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return startInstancesOperationSettings; + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public UnaryCallSettings.Builder + stopInstancesSettings() { + return stopInstancesSettings; + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public OperationCallSettings.Builder< + StopInstancesInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings() { + return stopInstancesOperationSettings; + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public UnaryCallSettings.Builder + suspendInstancesSettings() { + return suspendInstancesSettings; + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public OperationCallSettings.Builder< + SuspendInstancesInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return suspendInstancesOperationSettings; + } + /** Returns the builder for the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings.Builder updatePerInstanceConfigsSettings() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStub.java new file mode 100644 index 000000000000..e3147d3e1f48 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStub.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.compute.v1.stub; + +import static com.google.cloud.compute.v1.NetworkProfilesClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.GetNetworkProfileRequest; +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesListResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the NetworkProfiles service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class NetworkProfilesStub implements BackgroundResource { + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public UnaryCallable listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java new file mode 100644 index 000000000000..50c021388c8a --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java @@ -0,0 +1,397 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1.stub; + +import static com.google.cloud.compute.v1.NetworkProfilesClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +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.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.compute.v1.GetNetworkProfileRequest; +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesListResponse; +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.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link NetworkProfilesStub}. + * + *

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

      + *
    • The default service address (compute.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

    {@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
    + * NetworkProfilesStubSettings.Builder networkProfilesSettingsBuilder =
    + *     NetworkProfilesStubSettings.newBuilder();
    + * networkProfilesSettingsBuilder
    + *     .getSettings()
    + *     .setRetrySettings(
    + *         networkProfilesSettingsBuilder
    + *             .getSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * NetworkProfilesStubSettings networkProfilesSettings = networkProfilesSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class NetworkProfilesStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute.readonly") + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings getSettings; + private final PagedCallSettings< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings; + + private static final PagedListDescriptor< + ListNetworkProfilesRequest, NetworkProfilesListResponse, NetworkProfile> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListNetworkProfilesRequest, NetworkProfilesListResponse, NetworkProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNetworkProfilesRequest injectToken( + ListNetworkProfilesRequest payload, String token) { + return ListNetworkProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNetworkProfilesRequest injectPageSize( + ListNetworkProfilesRequest payload, int pageSize) { + return ListNetworkProfilesRequest.newBuilder(payload).setMaxResults(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNetworkProfilesRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(NetworkProfilesListResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(NetworkProfilesListResponse payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNetworkProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings() { + return listSettings; + } + + public NetworkProfilesStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonNetworkProfilesStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(NetworkProfilesStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 NetworkProfilesStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSettings = settingsBuilder.getSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + } + + /** Builder for NetworkProfilesStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getSettings; + private final PagedCallSettings.Builder< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSettings, listSettings); + initDefaults(this); + } + + protected Builder(NetworkProfilesStubSettings settings) { + super(settings); + + getSettings = settings.getSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSettings, listSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_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 get. */ + public UnaryCallSettings.Builder getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListNetworkProfilesRequest, NetworkProfilesListResponse, ListPagedResponse> + listSettings() { + return listSettings; + } + + @Override + public NetworkProfilesStubSettings build() throws IOException { + return new NetworkProfilesStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStub.java index b531e5720287..dc9f67b63791 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStub.java @@ -46,8 +46,12 @@ import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstanceConfigsResp; import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstancesResponse; import com.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest; import javax.annotation.Generated; @@ -227,6 +231,16 @@ public UnaryCallable resizeC throw new UnsupportedOperationException("Not implemented: resizeCallable()"); } + public OperationCallable + resumeInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: resumeInstancesOperationCallable()"); + } + + public UnaryCallable + resumeInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: resumeInstancesCallable()"); + } + public OperationCallable< SetInstanceTemplateRegionInstanceGroupManagerRequest, Operation, Operation> setInstanceTemplateOperationCallable() { @@ -249,6 +263,36 @@ public UnaryCallable resizeC throw new UnsupportedOperationException("Not implemented: setTargetPoolsCallable()"); } + public OperationCallable + startInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startInstancesOperationCallable()"); + } + + public UnaryCallable + startInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: startInstancesCallable()"); + } + + public OperationCallable + stopInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstancesOperationCallable()"); + } + + public UnaryCallable + stopInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstancesCallable()"); + } + + public OperationCallable + suspendInstancesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: suspendInstancesOperationCallable()"); + } + + public UnaryCallable + suspendInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: suspendInstancesCallable()"); + } + public OperationCallable< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation, Operation> updatePerInstanceConfigsOperationCallable() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java index a353c2d8ff4c..e20d19ad08a0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java @@ -72,8 +72,12 @@ import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstanceConfigsResp; import com.google.cloud.compute.v1.RegionInstanceGroupManagersListInstancesResponse; import com.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; import com.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -244,6 +248,11 @@ public class RegionInstanceGroupManagersStubSettings resizeSettings; private final OperationCallSettings resizeOperationSettings; + private final UnaryCallSettings + resumeInstancesSettings; + private final OperationCallSettings< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings; private final UnaryCallSettings setInstanceTemplateSettings; private final OperationCallSettings< @@ -254,6 +263,21 @@ public class RegionInstanceGroupManagersStubSettings private final OperationCallSettings< SetTargetPoolsRegionInstanceGroupManagerRequest, Operation, Operation> setTargetPoolsOperationSettings; + private final UnaryCallSettings + startInstancesSettings; + private final OperationCallSettings< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings; + private final UnaryCallSettings + stopInstancesSettings; + private final OperationCallSettings< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings; + private final UnaryCallSettings + suspendInstancesSettings; + private final OperationCallSettings< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings; private final UnaryCallSettings< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation> updatePerInstanceConfigsSettings; @@ -738,6 +762,19 @@ public UnaryCallSettings res return resizeOperationSettings; } + /** Returns the object with the settings used for calls to resumeInstances. */ + public UnaryCallSettings + resumeInstancesSettings() { + return resumeInstancesSettings; + } + + /** Returns the object with the settings used for calls to resumeInstances. */ + public OperationCallSettings< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return resumeInstancesOperationSettings; + } + /** Returns the object with the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings setInstanceTemplateSettings() { @@ -764,6 +801,44 @@ public UnaryCallSettings res return setTargetPoolsOperationSettings; } + /** Returns the object with the settings used for calls to startInstances. */ + public UnaryCallSettings + startInstancesSettings() { + return startInstancesSettings; + } + + /** Returns the object with the settings used for calls to startInstances. */ + public OperationCallSettings< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return startInstancesOperationSettings; + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public UnaryCallSettings + stopInstancesSettings() { + return stopInstancesSettings; + } + + /** Returns the object with the settings used for calls to stopInstances. */ + public OperationCallSettings + stopInstancesOperationSettings() { + return stopInstancesOperationSettings; + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public UnaryCallSettings + suspendInstancesSettings() { + return suspendInstancesSettings; + } + + /** Returns the object with the settings used for calls to suspendInstances. */ + public OperationCallSettings< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return suspendInstancesOperationSettings; + } + /** Returns the object with the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings updatePerInstanceConfigsSettings() { @@ -890,11 +965,19 @@ protected RegionInstanceGroupManagersStubSettings(Builder settingsBuilder) throw settingsBuilder.recreateInstancesOperationSettings().build(); resizeSettings = settingsBuilder.resizeSettings().build(); resizeOperationSettings = settingsBuilder.resizeOperationSettings().build(); + resumeInstancesSettings = settingsBuilder.resumeInstancesSettings().build(); + resumeInstancesOperationSettings = settingsBuilder.resumeInstancesOperationSettings().build(); setInstanceTemplateSettings = settingsBuilder.setInstanceTemplateSettings().build(); setInstanceTemplateOperationSettings = settingsBuilder.setInstanceTemplateOperationSettings().build(); setTargetPoolsSettings = settingsBuilder.setTargetPoolsSettings().build(); setTargetPoolsOperationSettings = settingsBuilder.setTargetPoolsOperationSettings().build(); + startInstancesSettings = settingsBuilder.startInstancesSettings().build(); + startInstancesOperationSettings = settingsBuilder.startInstancesOperationSettings().build(); + stopInstancesSettings = settingsBuilder.stopInstancesSettings().build(); + stopInstancesOperationSettings = settingsBuilder.stopInstancesOperationSettings().build(); + suspendInstancesSettings = settingsBuilder.suspendInstancesSettings().build(); + suspendInstancesOperationSettings = settingsBuilder.suspendInstancesOperationSettings().build(); updatePerInstanceConfigsSettings = settingsBuilder.updatePerInstanceConfigsSettings().build(); updatePerInstanceConfigsOperationSettings = settingsBuilder.updatePerInstanceConfigsOperationSettings().build(); @@ -989,6 +1072,12 @@ public static class Builder private final OperationCallSettings.Builder< ResizeRegionInstanceGroupManagerRequest, Operation, Operation> resizeOperationSettings; + private final UnaryCallSettings.Builder< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation> + resumeInstancesSettings; + private final OperationCallSettings.Builder< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings; private final UnaryCallSettings.Builder< SetInstanceTemplateRegionInstanceGroupManagerRequest, Operation> setInstanceTemplateSettings; @@ -1001,6 +1090,24 @@ public static class Builder private final OperationCallSettings.Builder< SetTargetPoolsRegionInstanceGroupManagerRequest, Operation, Operation> setTargetPoolsOperationSettings; + private final UnaryCallSettings.Builder< + StartInstancesRegionInstanceGroupManagerRequest, Operation> + startInstancesSettings; + private final OperationCallSettings.Builder< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings; + private final UnaryCallSettings.Builder< + StopInstancesRegionInstanceGroupManagerRequest, Operation> + stopInstancesSettings; + private final OperationCallSettings.Builder< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings; + private final UnaryCallSettings.Builder< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation> + suspendInstancesSettings; + private final OperationCallSettings.Builder< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings; private final UnaryCallSettings.Builder< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation> updatePerInstanceConfigsSettings; @@ -1086,10 +1193,18 @@ protected Builder(ClientContext clientContext) { recreateInstancesOperationSettings = OperationCallSettings.newBuilder(); resizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resizeOperationSettings = OperationCallSettings.newBuilder(); + resumeInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resumeInstancesOperationSettings = OperationCallSettings.newBuilder(); setInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setInstanceTemplateOperationSettings = OperationCallSettings.newBuilder(); setTargetPoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setTargetPoolsOperationSettings = OperationCallSettings.newBuilder(); + startInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startInstancesOperationSettings = OperationCallSettings.newBuilder(); + stopInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + stopInstancesOperationSettings = OperationCallSettings.newBuilder(); + suspendInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suspendInstancesOperationSettings = OperationCallSettings.newBuilder(); updatePerInstanceConfigsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updatePerInstanceConfigsOperationSettings = OperationCallSettings.newBuilder(); @@ -1111,8 +1226,12 @@ protected Builder(ClientContext clientContext) { patchPerInstanceConfigsSettings, recreateInstancesSettings, resizeSettings, + resumeInstancesSettings, setInstanceTemplateSettings, setTargetPoolsSettings, + startInstancesSettings, + stopInstancesSettings, + suspendInstancesSettings, updatePerInstanceConfigsSettings); initDefaults(this); } @@ -1150,11 +1269,19 @@ protected Builder(RegionInstanceGroupManagersStubSettings settings) { recreateInstancesOperationSettings = settings.recreateInstancesOperationSettings.toBuilder(); resizeSettings = settings.resizeSettings.toBuilder(); resizeOperationSettings = settings.resizeOperationSettings.toBuilder(); + resumeInstancesSettings = settings.resumeInstancesSettings.toBuilder(); + resumeInstancesOperationSettings = settings.resumeInstancesOperationSettings.toBuilder(); setInstanceTemplateSettings = settings.setInstanceTemplateSettings.toBuilder(); setInstanceTemplateOperationSettings = settings.setInstanceTemplateOperationSettings.toBuilder(); setTargetPoolsSettings = settings.setTargetPoolsSettings.toBuilder(); setTargetPoolsOperationSettings = settings.setTargetPoolsOperationSettings.toBuilder(); + startInstancesSettings = settings.startInstancesSettings.toBuilder(); + startInstancesOperationSettings = settings.startInstancesOperationSettings.toBuilder(); + stopInstancesSettings = settings.stopInstancesSettings.toBuilder(); + stopInstancesOperationSettings = settings.stopInstancesOperationSettings.toBuilder(); + suspendInstancesSettings = settings.suspendInstancesSettings.toBuilder(); + suspendInstancesOperationSettings = settings.suspendInstancesOperationSettings.toBuilder(); updatePerInstanceConfigsSettings = settings.updatePerInstanceConfigsSettings.toBuilder(); updatePerInstanceConfigsOperationSettings = settings.updatePerInstanceConfigsOperationSettings.toBuilder(); @@ -1177,8 +1304,12 @@ protected Builder(RegionInstanceGroupManagersStubSettings settings) { patchPerInstanceConfigsSettings, recreateInstancesSettings, resizeSettings, + resumeInstancesSettings, setInstanceTemplateSettings, setTargetPoolsSettings, + startInstancesSettings, + stopInstancesSettings, + suspendInstancesSettings, updatePerInstanceConfigsSettings); } @@ -1275,6 +1406,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .resumeInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .setInstanceTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1285,6 +1421,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .startInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .stopInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .suspendInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .updatePerInstanceConfigsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1565,6 +1716,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .resumeInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + builder .setInstanceTemplateOperationSettings() .setInitialCallSettings( @@ -1615,6 +1791,81 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .startInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .stopInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .suspendInstancesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + builder .updatePerInstanceConfigsOperationSettings() .setInitialCallSettings( @@ -1846,6 +2097,19 @@ public Builder applyToAllUnaryMethods( return resizeOperationSettings; } + /** Returns the builder for the settings used for calls to resumeInstances. */ + public UnaryCallSettings.Builder + resumeInstancesSettings() { + return resumeInstancesSettings; + } + + /** Returns the builder for the settings used for calls to resumeInstances. */ + public OperationCallSettings.Builder< + ResumeInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + resumeInstancesOperationSettings() { + return resumeInstancesOperationSettings; + } + /** Returns the builder for the settings used for calls to setInstanceTemplate. */ public UnaryCallSettings.Builder< SetInstanceTemplateRegionInstanceGroupManagerRequest, Operation> @@ -1873,6 +2137,45 @@ public Builder applyToAllUnaryMethods( return setTargetPoolsOperationSettings; } + /** Returns the builder for the settings used for calls to startInstances. */ + public UnaryCallSettings.Builder + startInstancesSettings() { + return startInstancesSettings; + } + + /** Returns the builder for the settings used for calls to startInstances. */ + public OperationCallSettings.Builder< + StartInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + startInstancesOperationSettings() { + return startInstancesOperationSettings; + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public UnaryCallSettings.Builder + stopInstancesSettings() { + return stopInstancesSettings; + } + + /** Returns the builder for the settings used for calls to stopInstances. */ + public OperationCallSettings.Builder< + StopInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + stopInstancesOperationSettings() { + return stopInstancesOperationSettings; + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public UnaryCallSettings.Builder + suspendInstancesSettings() { + return suspendInstancesSettings; + } + + /** Returns the builder for the settings used for calls to suspendInstances. */ + public OperationCallSettings.Builder< + SuspendInstancesRegionInstanceGroupManagerRequest, Operation, Operation> + suspendInstancesOperationSettings() { + return suspendInstancesOperationSettings; + } + /** Returns the builder for the settings used for calls to updatePerInstanceConfigs. */ public UnaryCallSettings.Builder< UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, Operation> diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStub.java index 5cd97767586c..f95515cc9124 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStub.java @@ -34,6 +34,7 @@ import com.google.cloud.compute.v1.SecurityPolicy; import com.google.cloud.compute.v1.SecurityPolicyList; import com.google.cloud.compute.v1.SecurityPolicyRule; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -115,6 +116,15 @@ public UnaryCallable removeRul throw new UnsupportedOperationException("Not implemented: removeRuleCallable()"); } + public OperationCallable + setLabelsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: setLabelsOperationCallable()"); + } + + public UnaryCallable setLabelsCallable() { + throw new UnsupportedOperationException("Not implemented: setLabelsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java index 24f42d4ffc1e..a37a83c5ae95 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java @@ -57,6 +57,7 @@ import com.google.cloud.compute.v1.SecurityPolicy; import com.google.cloud.compute.v1.SecurityPolicyList; import com.google.cloud.compute.v1.SecurityPolicyRule; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -179,6 +180,10 @@ public class RegionSecurityPoliciesStubSettings removeRuleSettings; private final OperationCallSettings removeRuleOperationSettings; + private final UnaryCallSettings + setLabelsSettings; + private final OperationCallSettings + setLabelsOperationSettings; private static final PagedListDescriptor< ListRegionSecurityPoliciesRequest, SecurityPolicyList, SecurityPolicy> @@ -322,6 +327,17 @@ public UnaryCallSettings remov return removeRuleOperationSettings; } + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the object with the settings used for calls to setLabels. */ + public OperationCallSettings + setLabelsOperationSettings() { + return setLabelsOperationSettings; + } + public RegionSecurityPoliciesStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -419,6 +435,8 @@ protected RegionSecurityPoliciesStubSettings(Builder settingsBuilder) throws IOE patchRuleOperationSettings = settingsBuilder.patchRuleOperationSettings().build(); removeRuleSettings = settingsBuilder.removeRuleSettings().build(); removeRuleOperationSettings = settingsBuilder.removeRuleOperationSettings().build(); + setLabelsSettings = settingsBuilder.setLabelsSettings().build(); + setLabelsOperationSettings = settingsBuilder.setLabelsOperationSettings().build(); } /** Builder for RegionSecurityPoliciesStubSettings. */ @@ -462,6 +480,11 @@ public static class Builder private final OperationCallSettings.Builder< RemoveRuleRegionSecurityPolicyRequest, Operation, Operation> removeRuleOperationSettings; + private final UnaryCallSettings.Builder + setLabelsSettings; + private final OperationCallSettings.Builder< + SetLabelsRegionSecurityPolicyRequest, Operation, Operation> + setLabelsOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -527,6 +550,8 @@ protected Builder(ClientContext clientContext) { patchRuleOperationSettings = OperationCallSettings.newBuilder(); removeRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); removeRuleOperationSettings = OperationCallSettings.newBuilder(); + setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLabelsOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -538,7 +563,8 @@ protected Builder(ClientContext clientContext) { listSettings, patchSettings, patchRuleSettings, - removeRuleSettings); + removeRuleSettings, + setLabelsSettings); initDefaults(this); } @@ -560,6 +586,8 @@ protected Builder(RegionSecurityPoliciesStubSettings settings) { patchRuleOperationSettings = settings.patchRuleOperationSettings.toBuilder(); removeRuleSettings = settings.removeRuleSettings.toBuilder(); removeRuleOperationSettings = settings.removeRuleOperationSettings.toBuilder(); + setLabelsSettings = settings.setLabelsSettings.toBuilder(); + setLabelsOperationSettings = settings.setLabelsOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -571,7 +599,8 @@ protected Builder(RegionSecurityPoliciesStubSettings settings) { listSettings, patchSettings, patchRuleSettings, - removeRuleSettings); + removeRuleSettings, + setLabelsSettings); } private static Builder createDefault() { @@ -632,6 +661,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .setLabelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .addRuleOperationSettings() .setInitialCallSettings( @@ -782,6 +816,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .setLabelsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + return builder; } @@ -890,6 +949,18 @@ public UnaryCallSettings.Builder pa return removeRuleOperationSettings; } + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder + setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public OperationCallSettings.Builder + setLabelsOperationSettings() { + return setLabelsOperationSettings; + } + @Override public RegionSecurityPoliciesStubSettings build() throws IOException { return new RegionSecurityPoliciesStubSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json index 0913837ec913..34b7300d1db1 100644 --- a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json +++ b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json @@ -8459,6 +8459,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetNetworkProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetNetworkProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetNetworkRequest", "queryAllDeclaredConstructors": true, @@ -12428,6 +12446,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InstanceGroupManagerStatus", "queryAllDeclaredConstructors": true, @@ -12797,6 +12842,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InstanceGroupManagersScopedList", "queryAllDeclaredConstructors": true, @@ -12851,6 +12914,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InstanceGroupManagersUpdatePerInstanceConfigsReq", "queryAllDeclaredConstructors": true, @@ -15596,6 +15713,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListNetworkProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListNetworkProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListNetworksRequest", "queryAllDeclaredConstructors": true, @@ -17982,7 +18117,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworkRoutingConfig", + "name": "com.google.cloud.compute.v1.NetworkProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17991,7 +18126,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfile$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18000,7 +18135,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$RoutingMode", + "name": "com.google.cloud.compute.v1.NetworkProfileLocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18009,7 +18144,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksAddPeeringRequest", + "name": "com.google.cloud.compute.v1.NetworkProfileLocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18018,7 +18153,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksAddPeeringRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileLocation$Scope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18027,7 +18162,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18036,7 +18171,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AddressPurposes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18045,7 +18180,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowAliasIpRanges", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18054,7 +18189,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowAutoModeSubnet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18063,7 +18198,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy$Type", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowClassDFirewalls", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18072,7 +18207,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksRemovePeeringRequest", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowCloudNat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18081,7 +18216,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksRemovePeeringRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowCloudRouter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18090,7 +18225,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksUpdatePeeringRequest", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowExternalIpAccess", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18099,7 +18234,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NetworksUpdatePeeringRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowInterconnect", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18108,7 +18243,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroup", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowLoadBalancing", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18117,7 +18252,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroup$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowMultiNicInSameNetwork", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18126,7 +18261,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroup$MaintenanceInterval", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowPacketMirroring", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18135,7 +18270,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroup$MaintenancePolicy", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowPrivateGoogleAccess", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18144,7 +18279,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroup$Status", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowPsc", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18153,7 +18288,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupAggregatedList", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowSameNetworkUnicast", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18162,7 +18297,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupAggregatedList$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowStaticRoutes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18171,7 +18306,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowSubInterfaces", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18180,7 +18315,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowVpcPeering", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18189,7 +18324,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy$Mode", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$AllowVpn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18198,7 +18333,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupList", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18207,7 +18342,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupList$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$InterfaceTypes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18216,7 +18351,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupMaintenanceWindow", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$SubnetPurposes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18225,7 +18360,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupMaintenanceWindow$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$SubnetStackTypes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18234,7 +18369,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupNode", + "name": "com.google.cloud.compute.v1.NetworkProfileNetworkFeatures$Unicast", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18243,7 +18378,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupNode$Builder", + "name": "com.google.cloud.compute.v1.NetworkProfilesListResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18252,7 +18387,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupNode$CpuOvercommitType", + "name": "com.google.cloud.compute.v1.NetworkProfilesListResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18261,7 +18396,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupNode$Status", + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18270,7 +18405,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsAddNodesRequest", + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$BgpBestPathSelectionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18279,7 +18414,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsAddNodesRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$BgpInterRegionCost", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18288,7 +18423,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsDeleteNodesRequest", + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18297,7 +18432,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsDeleteNodesRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$RoutingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18306,7 +18441,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsListNodes", + "name": "com.google.cloud.compute.v1.NetworksAddPeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18315,7 +18450,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsListNodes$Builder", + "name": "com.google.cloud.compute.v1.NetworksAddPeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18324,7 +18459,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequest", + "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18333,7 +18468,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18342,7 +18477,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsScopedList", + "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18351,7 +18486,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsScopedList$Builder", + "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18360,7 +18495,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsSetNodeTemplateRequest", + "name": "com.google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18369,7 +18504,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsSetNodeTemplateRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworksRemovePeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18378,7 +18513,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequest", + "name": "com.google.cloud.compute.v1.NetworksRemovePeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18387,7 +18522,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequest$Builder", + "name": "com.google.cloud.compute.v1.NetworksUpdatePeeringRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18396,7 +18531,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplate", + "name": "com.google.cloud.compute.v1.NetworksUpdatePeeringRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18405,7 +18540,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplate$Builder", + "name": "com.google.cloud.compute.v1.NodeGroup", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18414,7 +18549,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplate$CpuOvercommitType", + "name": "com.google.cloud.compute.v1.NodeGroup$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18423,7 +18558,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplate$Status", + "name": "com.google.cloud.compute.v1.NodeGroup$MaintenanceInterval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18432,7 +18567,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateAggregatedList", + "name": "com.google.cloud.compute.v1.NodeGroup$MaintenancePolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18441,7 +18576,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateAggregatedList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroup$Status", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18450,7 +18585,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateList", + "name": "com.google.cloud.compute.v1.NodeGroupAggregatedList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18459,7 +18594,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupAggregatedList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18468,7 +18603,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility", + "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18477,7 +18612,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18486,7 +18621,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplatesScopedList", + "name": "com.google.cloud.compute.v1.NodeGroupAutoscalingPolicy$Mode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18495,7 +18630,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTemplatesScopedList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18504,7 +18639,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeType", + "name": "com.google.cloud.compute.v1.NodeGroupList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18513,7 +18648,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeType$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupMaintenanceWindow", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18522,7 +18657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypeAggregatedList", + "name": "com.google.cloud.compute.v1.NodeGroupMaintenanceWindow$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18531,7 +18666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypeAggregatedList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupNode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18540,7 +18675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypeList", + "name": "com.google.cloud.compute.v1.NodeGroupNode$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18549,7 +18684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypeList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupNode$CpuOvercommitType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18558,7 +18693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypesScopedList", + "name": "com.google.cloud.compute.v1.NodeGroupNode$Status", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18567,7 +18702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NodeTypesScopedList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsAddNodesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18576,7 +18711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpoint", + "name": "com.google.cloud.compute.v1.NodeGroupsAddNodesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18585,7 +18720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpoint$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsDeleteNodesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18594,7 +18729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpointGrpcSettings", + "name": "com.google.cloud.compute.v1.NodeGroupsDeleteNodesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18603,7 +18738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpointGrpcSettings$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsListNodes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18612,7 +18747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpointList", + "name": "com.google.cloud.compute.v1.NodeGroupsListNodes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18621,7 +18756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.NotificationEndpointList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18630,7 +18765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.Operation", + "name": "com.google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18639,7 +18774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.Operation$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsScopedList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18648,7 +18783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.Operation$Status", + "name": "com.google.cloud.compute.v1.NodeGroupsScopedList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18657,7 +18792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationAggregatedList", + "name": "com.google.cloud.compute.v1.NodeGroupsSetNodeTemplateRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18666,7 +18801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationAggregatedList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsSetNodeTemplateRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18675,7 +18810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationList", + "name": "com.google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18684,7 +18819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationList$Builder", + "name": "com.google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18693,7 +18828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationsScopedList", + "name": "com.google.cloud.compute.v1.NodeTemplate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18702,7 +18837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OperationsScopedList$Builder", + "name": "com.google.cloud.compute.v1.NodeTemplate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18711,7 +18846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OutlierDetection", + "name": "com.google.cloud.compute.v1.NodeTemplate$CpuOvercommitType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18720,7 +18855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.OutlierDetection$Builder", + "name": "com.google.cloud.compute.v1.NodeTemplate$Status", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18729,7 +18864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.PacketIntervals", + "name": "com.google.cloud.compute.v1.NodeTemplateAggregatedList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18738,7 +18873,304 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.compute.v1.PacketIntervals$Builder", + "name": "com.google.cloud.compute.v1.NodeTemplateAggregatedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplateList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplateList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplatesScopedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTemplatesScopedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypeAggregatedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypeAggregatedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypeList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypeList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypesScopedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NodeTypesScopedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpointGrpcSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpointGrpcSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpointList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NotificationEndpointList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.Operation$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationAggregatedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationAggregatedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationsScopedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OperationsScopedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OutlierDetection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.OutlierDetection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.PacketIntervals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.PacketIntervals$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -21077,6 +21509,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequest", "queryAllDeclaredConstructors": true, @@ -21113,6 +21563,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.RegionInstanceGroupsListInstances", "queryAllDeclaredConstructors": true, @@ -22328,6 +22832,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Route", "queryAllDeclaredConstructors": true, @@ -22346,6 +22886,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.Route$NextHopOrigin", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Route$RouteStatus", "queryAllDeclaredConstructors": true, @@ -25136,6 +25685,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetLabelsSecurityPolicyRequest", "queryAllDeclaredConstructors": true, @@ -26531,6 +27098,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.StartWithEncryptionKeyInstanceRequest", "queryAllDeclaredConstructors": true, @@ -26747,6 +27350,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.StoragePool", "queryAllDeclaredConstructors": true, @@ -27242,6 +27881,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SwitchToCustomModeNetworkRequest", "queryAllDeclaredConstructors": true, diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagersClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagersClientTest.java index f8df76da823e..ddb12e084a0f 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagersClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagersClientTest.java @@ -698,10 +698,13 @@ public void getTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setSelfLink("selfLink1191800166") + .setStandbyPolicy(InstanceGroupManagerStandbyPolicy.newBuilder().build()) .setStatefulPolicy(StatefulPolicy.newBuilder().build()) .setStatus(InstanceGroupManagerStatus.newBuilder().build()) .addAllTargetPools(new ArrayList()) .setTargetSize(-2084603409) + .setTargetStoppedSize(1613032225) + .setTargetSuspendedSize(-765655981) .setUpdatePolicy(InstanceGroupManagerUpdatePolicy.newBuilder().build()) .addAllVersions(new ArrayList()) .setZone("zone3744684") @@ -1379,6 +1382,99 @@ public void resizeExceptionTest() throws Exception { } } + @Test + public void resumeInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource = + InstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .resumeInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersResumeInstancesRequestResource) + .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 resumeInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource = + InstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + client + .resumeInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersResumeInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void setInstanceTemplateTest() throws Exception { Operation expectedResponse = @@ -1564,6 +1660,282 @@ public void setTargetPoolsExceptionTest() throws Exception { } } + @Test + public void startInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersStartInstancesRequest instanceGroupManagersStartInstancesRequestResource = + InstanceGroupManagersStartInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .startInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStartInstancesRequestResource) + .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 startInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersStartInstancesRequest + instanceGroupManagersStartInstancesRequestResource = + InstanceGroupManagersStartInstancesRequest.newBuilder().build(); + client + .startInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStartInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource = + InstanceGroupManagersStopInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .stopInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStopInstancesRequestResource) + .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 stopInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource = + InstanceGroupManagersStopInstancesRequest.newBuilder().build(); + client + .stopInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStopInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void suspendInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource = + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .suspendInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersSuspendInstancesRequestResource) + .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 suspendInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource = + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + client + .suspendInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersSuspendInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void updatePerInstanceConfigsTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkProfilesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkProfilesClientTest.java new file mode 100644 index 000000000000..83da7b13c336 --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkProfilesClientTest.java @@ -0,0 +1,182 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1; + +import static com.google.cloud.compute.v1.NetworkProfilesClient.ListPagedResponse; + +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.compute.v1.stub.HttpJsonNetworkProfilesStub; +import com.google.common.collect.Lists; +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 NetworkProfilesClientTest { + private static MockHttpService mockService; + private static NetworkProfilesClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonNetworkProfilesStub.getMethodDescriptors(), + NetworkProfilesSettings.getDefaultEndpoint()); + NetworkProfilesSettings settings = + NetworkProfilesSettings.newBuilder() + .setTransportChannelProvider( + NetworkProfilesSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = NetworkProfilesClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTest() throws Exception { + NetworkProfile expectedResponse = + NetworkProfile.newBuilder() + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setFeatures(NetworkProfileNetworkFeatures.newBuilder().build()) + .setId(3355) + .setKind("kind3292052") + .setLocation(NetworkProfileLocation.newBuilder().build()) + .setName("name3373707") + .setSelfLink("selfLink1191800166") + .setSelfLinkWithId("selfLinkWithId-776809081") + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String networkProfile = "networkProfile-2335"; + + NetworkProfile actualResponse = client.get(project, networkProfile); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String networkProfile = "networkProfile-2335"; + client.get(project, networkProfile); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTest() throws Exception { + NetworkProfile responsesElement = NetworkProfile.newBuilder().build(); + NetworkProfilesListResponse expectedResponse = + NetworkProfilesListResponse.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + + ListPagedResponse pagedListResponse = client.list(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + client.list(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworksClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworksClientTest.java index ab04663d9b3c..262894f772f2 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworksClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworksClientTest.java @@ -245,6 +245,7 @@ public void getTest() throws Exception { .setName("name3373707") .setNetworkFirewallPolicyEnforcementOrder( "networkFirewallPolicyEnforcementOrder1610545966") + .setNetworkProfile("networkProfile-2013096037") .addAllPeerings(new ArrayList()) .setRoutingConfig(NetworkRoutingConfig.newBuilder().build()) .setSelfLink("selfLink1191800166") diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClientTest.java index 4504f52500e1..e55be6976b40 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClientTest.java @@ -647,10 +647,13 @@ public void getTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setSelfLink("selfLink1191800166") + .setStandbyPolicy(InstanceGroupManagerStandbyPolicy.newBuilder().build()) .setStatefulPolicy(StatefulPolicy.newBuilder().build()) .setStatus(InstanceGroupManagerStatus.newBuilder().build()) .addAllTargetPools(new ArrayList()) .setTargetSize(-2084603409) + .setTargetStoppedSize(1613032225) + .setTargetSuspendedSize(-765655981) .setUpdatePolicy(InstanceGroupManagerUpdatePolicy.newBuilder().build()) .addAllVersions(new ArrayList()) .setZone("zone3744684") @@ -1330,6 +1333,99 @@ public void resizeExceptionTest() throws Exception { } } + @Test + public void resumeInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource = + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .resumeInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersResumeInstancesRequestResource) + .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 resumeInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource = + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + client + .resumeInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersResumeInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void setInstanceTemplateTest() throws Exception { Operation expectedResponse = @@ -1516,6 +1612,285 @@ public void setTargetPoolsExceptionTest() throws Exception { } } + @Test + public void startInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource = + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .startInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStartInstancesRequestResource) + .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 startInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource = + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build(); + client + .startInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStartInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource = + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .stopInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStopInstancesRequestResource) + .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 stopInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource = + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build(); + client + .stopInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStopInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void suspendInstancesTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource = + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + + Operation actualResponse = + client + .suspendInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersSuspendInstancesRequestResource) + .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 suspendInstancesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource = + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + client + .suspendInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersSuspendInstancesRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void updatePerInstanceConfigsTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClientTest.java index a36a340ef2f4..c3b15fba1838 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClientTest.java @@ -707,4 +707,83 @@ public void removeRuleExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void setLabelsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + + Operation actualResponse = + client.setLabelsAsync(project, region, resource, regionSetLabelsRequestResource).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 setLabelsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + client.setLabelsAsync(project, region, resource, regionSetLabelsRequestResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RoutesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RoutesClientTest.java index facfcbedd0cc..0243a2fbb8ca 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RoutesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RoutesClientTest.java @@ -165,8 +165,11 @@ public void getTest() throws Exception { .setNextHopHub("nextHopHub-1583649601") .setNextHopIlb("nextHopIlb-1583648919") .setNextHopInstance("nextHopInstance-776074485") + .setNextHopInterRegionCost(-1586170733) .setNextHopIp("nextHopIp1195840541") + .setNextHopMed(-1948800118) .setNextHopNetwork("nextHopNetwork2077637880") + .setNextHopOrigin("nextHopOrigin1908427548") .setNextHopPeering("nextHopPeering-456329718") .setNextHopVpnTunnel("nextHopVpnTunnel2134841030") .setPriority(-1165461084) diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java index b1fa16da7e61..71e81489538c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *

    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * 
    * * Protobuf enum {@code google.cloud.compute.v1.BackendBucketCdnPolicy.CacheMode} @@ -408,7 +408,7 @@ public com.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy getCache * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -424,7 +424,7 @@ public boolean hasCacheMode() { * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -448,7 +448,7 @@ public java.lang.String getCacheMode() { * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -2272,7 +2272,7 @@ public Builder clearCacheKeyPolicy() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2287,7 +2287,7 @@ public boolean hasCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2310,7 +2310,7 @@ public java.lang.String getCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2333,7 +2333,7 @@ public com.google.protobuf.ByteString getCacheModeBytes() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2355,7 +2355,7 @@ public Builder setCacheMode(java.lang.String value) { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2373,7 +2373,7 @@ public Builder clearCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicyOrBuilder.java index fb938d5f61a3..7d504c1ac8fc 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicyOrBuilder.java @@ -137,7 +137,7 @@ public interface BackendBucketCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -150,7 +150,7 @@ public interface BackendBucketCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -163,7 +163,7 @@ public interface BackendBucketCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java index b54405c0a3e9..a084e23fecec 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * 
    * * Protobuf enum {@code google.cloud.compute.v1.BackendServiceCdnPolicy.CacheMode} @@ -402,7 +402,7 @@ public com.google.cloud.compute.v1.CacheKeyPolicyOrBuilder getCacheKeyPolicyOrBu * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -418,7 +418,7 @@ public boolean hasCacheMode() { * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -442,7 +442,7 @@ public java.lang.String getCacheMode() { * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -2242,7 +2242,7 @@ public com.google.cloud.compute.v1.CacheKeyPolicyOrBuilder getCacheKeyPolicyOrBu * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2257,7 +2257,7 @@ public boolean hasCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2280,7 +2280,7 @@ public java.lang.String getCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2303,7 +2303,7 @@ public com.google.protobuf.ByteString getCacheModeBytes() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2325,7 +2325,7 @@ public Builder setCacheMode(java.lang.String value) { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * @@ -2343,7 +2343,7 @@ public Builder clearCacheMode() { * * *
    -     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +     * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
          * Check the CacheMode enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicyOrBuilder.java index 1a70983f10f4..997cc773c59b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicyOrBuilder.java @@ -131,7 +131,7 @@ public interface BackendServiceCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -144,7 +144,7 @@ public interface BackendServiceCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * @@ -157,7 +157,7 @@ public interface BackendServiceCdnPolicyOrBuilder * * *
    -   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
    +   * Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.
        * Check the CacheMode enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java index e94edbdb4bed..6388faab795b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -560,6 +560,12 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { MEMORY_OPTIMIZED(281753417), /** MEMORY_OPTIMIZED_M3 = 276301372; */ MEMORY_OPTIMIZED_M3(276301372), + /** MEMORY_OPTIMIZED_X4_16TB = 183089120; */ + MEMORY_OPTIMIZED_X4_16TB(183089120), + /** MEMORY_OPTIMIZED_X4_24TB = 183116989; */ + MEMORY_OPTIMIZED_X4_24TB(183116989), + /** MEMORY_OPTIMIZED_X4_32TB = 183144858; */ + MEMORY_OPTIMIZED_X4_32TB(183144858), /** STORAGE_OPTIMIZED_Z3 = 316796085; */ STORAGE_OPTIMIZED_Z3(316796085), /** TYPE_UNSPECIFIED = 437714322; */ @@ -615,6 +621,12 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { public static final int MEMORY_OPTIMIZED_VALUE = 281753417; /** MEMORY_OPTIMIZED_M3 = 276301372; */ public static final int MEMORY_OPTIMIZED_M3_VALUE = 276301372; + /** MEMORY_OPTIMIZED_X4_16TB = 183089120; */ + public static final int MEMORY_OPTIMIZED_X4_16TB_VALUE = 183089120; + /** MEMORY_OPTIMIZED_X4_24TB = 183116989; */ + public static final int MEMORY_OPTIMIZED_X4_24TB_VALUE = 183116989; + /** MEMORY_OPTIMIZED_X4_32TB = 183144858; */ + public static final int MEMORY_OPTIMIZED_X4_32TB_VALUE = 183144858; /** STORAGE_OPTIMIZED_Z3 = 316796085; */ public static final int STORAGE_OPTIMIZED_Z3_VALUE = 316796085; /** TYPE_UNSPECIFIED = 437714322; */ @@ -684,6 +696,12 @@ public static Type forNumber(int value) { return MEMORY_OPTIMIZED; case 276301372: return MEMORY_OPTIMIZED_M3; + case 183089120: + return MEMORY_OPTIMIZED_X4_16TB; + case 183116989: + return MEMORY_OPTIMIZED_X4_24TB; + case 183144858: + return MEMORY_OPTIMIZED_X4_32TB; case 316796085: return STORAGE_OPTIMIZED_Z3; case 437714322: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index de2cc2f18a4b..11018b6b2a38 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -1764,6 +1764,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -2632,6 +2636,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -2700,6 +2708,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -2712,6 +2724,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -3296,6 +3320,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -3808,6 +3836,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkProfile_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -4464,6 +4508,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -4472,6 +4520,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -4744,6 +4804,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_Route_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -5288,6 +5356,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -5604,6 +5676,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -5660,6 +5740,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_StoragePool_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -5760,6 +5848,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -6442,11 +6538,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n%google/cloud/compute/v1/compute.proto\022" - + "\027google.cloud.compute.v1\032\031google/protobu" - + "f/any.proto\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032&google/cloud/extended_operations" + + "\027google.cloud.compute.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032&google/cloud/extend" + + "ed_operations.proto\032\031google/protobuf/any" + ".proto\"\332\001\n\016AWSV4Signature\022\033\n\naccess_key\030" + "\204\342\314\337\001 \001(\tH\000\210\001\001\022\036\n\raccess_key_id\030\266\344\331\213\001 \001(" + "\tH\001\210\001\001\022\"\n\022access_key_version\030\235\341\242& \001(\tH\002\210" @@ -8031,8 +8127,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n\026" + "source_firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n\013" - + "_request_idB\031\n\027_source_firewall_policy\"\305" - + "\020\n\nCommitment\022\033\n\nauto_renew\030\375\227\244\354\001 \001(\010H\000\210" + + "_request_idB\031\n\027_source_firewall_policy\"\250" + + "\021\n\nCommitment\022\033\n\nauto_renew\030\375\227\244\354\001 \001(\010H\000\210" + "\001\001\022\030\n\010category\030\376\371\212\030 \001(\tH\001\210\001\001\022\"\n\022creation" + "_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022$\n\024custom_end_t" + "imestamp\030\344\264\326V \001(\tH\003\210\001\001\022\034\n\013description\030\374\207" @@ -8061,7 +8157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\014TWELVE_MONTH\020\272\232\304R\"z\n\006Status\022\024\n\020UNDEFIN" + "ED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\tCANCELLED" + "\020\261\362\200\024\022\020\n\010CREATING\020\271\275\235\331\001\022\017\n\007EXPIRED\020\205\346\210\346\001" - + "\022\025\n\016NOT_YET_ACTIVE\020\351\342\351\t\"\373\004\n\004Type\022\022\n\016UNDE" + + "\022\025\n\016NOT_YET_ACTIVE\020\351\342\351\t\"\336\005\n\004Type\022\022\n\016UNDE" + "FINED_TYPE\020\000\022\035\n\025ACCELERATOR_OPTIMIZED\020\223\320" + "\365\205\001\022\037\n\030ACCELERATOR_OPTIMIZED_A3\020\276\317\316K\022$\n\035" + "ACCELERATOR_OPTIMIZED_A3_MEGA\020\323\210\321J\022\030\n\021CO" @@ -8076,4121 +8172,4065 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "URPOSE_N4\020\336\240\373\217\001\022\032\n\023GENERAL_PURPOSE_T2D\020\356" + "\243\355n\022\031\n\022GRAPHICS_OPTIMIZED\020\323\370\324 \022\030\n\020MEMORY" + "_OPTIMIZED\020\311\356\254\206\001\022\033\n\023MEMORY_OPTIMIZED_M3\020" - + "\274\214\340\203\001\022\034\n\024STORAGE_OPTIMIZED_Z3\020\265\331\207\227\001\022\030\n\020T" - + "YPE_UNSPECIFIED\020\222\373\333\320\001B\r\n\013_auto_renewB\013\n\t" - + "_categoryB\025\n\023_creation_timestampB\027\n\025_cus" - + "tom_end_timestampB\016\n\014_descriptionB\020\n\016_en" - + "d_timestampB\005\n\003_idB\007\n\005_kindB\023\n\021_license_" - + "resourceB\007\n\005_nameB\007\n\005_planB\t\n\007_regionB\022\n" - + "\020_resource_statusB\014\n\n_self_linkB\032\n\030_spli" - + "t_source_commitmentB\022\n\020_start_timestampB" - + "\t\n\007_statusB\021\n\017_status_messageB\007\n\005_type\"\277" - + "\003\n\030CommitmentAggregatedList\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.google.cloud.c" - + "ompute.v1.CommitmentAggregatedList.Items" - + "Entry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007war" - + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." - + "WarningH\004\210\001\001\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" - + "=\n\005value\030\002 \001(\0132..google.cloud.compute.v1" - + ".CommitmentsScopedList:\0028\001B\005\n\003_idB\007\n\005_ki" - + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" - + "_warning\"\245\002\n\016CommitmentList\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.google.cloud.c" - + "ompute.v1.Commitment\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" - + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" - + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " - + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" - + "\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" - + "\n\n_self_linkB\n\n\010_warning\"|\n\030CommitmentRe" - + "sourceStatus\0226\n%custom_term_eligibility_" - + "end_timestamp\030\373\253\307\255\001 \001(\tH\000\210\001\001B(\n&_custom_" - + "term_eligibility_end_timestamp\"\234\001\n\025Commi" - + "tmentsScopedList\022<\n\013commitments\030\376\257\362\326\001 \003(" - + "\0132#.google.cloud.compute.v1.Commitment\0229" - + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" - + "e.v1.WarningH\000\210\001\001B\n\n\010_warning\"\320\002\n\032Confid" - + "entialInstanceConfig\022*\n\032confidential_ins" - + "tance_type\030\255\214\336\024 \001(\tH\000\210\001\001\022+\n\033enable_confi" - + "dential_compute\030\274\353\3310 \001(\010H\001\210\001\001\"\231\001\n\030Confid" - + "entialInstanceType\022(\n$UNDEFINED_CONFIDEN" - + "TIAL_INSTANCE_TYPE\020\000\022-\n&CONFIDENTIAL_INS" - + "TANCE_TYPE_UNSPECIFIED\020\205\260\3546\022\t\n\003SEV\020\304\200\005\022\016" - + "\n\007SEV_SNP\020\332\335\257\n\022\t\n\003TDX\020\350\207\005B\035\n\033_confidenti" - + "al_instance_typeB\036\n\034_enable_confidential" - + "_compute\"S\n\022ConnectionDraining\022$\n\024draini" - + "ng_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n\025_drainin" - + "g_timeout_sec\"\210\002\n\"ConsistentHashLoadBala" - + "ncerSettings\022b\n\013http_cookie\030\373\253\227\003 \001(\0132E.g" - + "oogle.cloud.compute.v1.ConsistentHashLoa" - + "dBalancerSettingsHttpCookieH\000\210\001\001\022 \n\020http" - + "_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n\021minimum_ri" - + "ng_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n\014_http_cookieB\023\n" - + "\021_http_header_nameB\024\n\022_minimum_ring_size" - + "\"\253\001\n,ConsistentHashLoadBalancerSettingsH" - + "ttpCookie\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\024\n\004path\030" - + "\245\310\321\001 \001(\tH\001\210\001\001\0225\n\003ttl\030\354\203\007 \001(\0132!.google.cl" - + "oud.compute.v1.DurationH\002\210\001\001B\007\n\005_nameB\007\n" - + "\005_pathB\006\n\004_ttl\"\236\002\n\nCorsPolicy\022\"\n\021allow_c" - + "redentials\030\206\376\275\345\001 \001(\010H\000\210\001\001\022\030\n\rallow_heade" - + "rs\030\220\301\305\025 \003(\t\022\030\n\rallow_methods\030\274\371\370a \003(\t\022\037\n" - + "\024allow_origin_regexes\030\322\215\332f \003(\t\022\030\n\rallow_" - + "origins\030\227\316\370\\ \003(\t\022\031\n\010disabled\030\374\364\230\201\001 \001(\010H\001" - + "\210\001\001\022\031\n\016expose_headers\030\213\314\210v \003(\t\022\030\n\007max_ag" - + "e\030\244\367\323\222\001 \001(\005H\002\210\001\001B\024\n\022_allow_credentialsB\013" - + "\n\t_disabledB\n\n\010_max_age\"\321\002\n*CreateInstan" - + "cesInstanceGroupManagerRequest\022&\n\026instan" - + "ce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n9insta" - + "nce_group_managers_create_instances_requ" - + "est_resource\030\223\372\332\013 \001(\0132D.google.cloud.com" - + "pute.v1.InstanceGroupManagersCreateInsta" - + "ncesRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" - + "\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request" - + "_id\"\351\002\n0CreateInstancesRegionInstanceGro" - + "upManagerRequest\022&\n\026instance_group_manag" - + "er\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006re" - + "gion\022\235\001\n@region_instance_group_managers_" - + "create_instances_request_resource\030\210\277\230\253\001 " - + "\001(\0132J.google.cloud.compute.v1.RegionInst" - + "anceGroupManagersCreateInstancesRequestB" - + "\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" - + "uest_id\"\221\002\n\031CreateSnapshotDiskRequest\022\024\n" - + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022\034\n\013guest_flush\030\335\223\354\267\001" - + " \001(\010H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022E\n\021snap" - + "shot_resource\030\251\270\301\345\001 \001(\0132!.google.cloud.c" - + "ompute.v1.SnapshotB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\t" - + "B\n\340A\002\362G\004zoneB\016\n\014_guest_flushB\r\n\013_request" - + "_id\"\355\001\n\037CreateSnapshotRegionDiskRequest\022" - + "\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" - + "\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n" - + "\021snapshot_resource\030\251\270\301\345\001 \001(\0132!.google.cl" - + "oud.compute.v1.SnapshotB\003\340A\002B\r\n\013_request" - + "_id\"\270\001\n\031CustomErrorResponsePolicy\022j\n\024err" - + "or_response_rules\030\220\255\374\006 \003(\0132I.google.clou" - + "d.compute.v1.CustomErrorResponsePolicyCu" - + "stomErrorResponseRule\022\035\n\rerror_service\030\376" - + "\356\246N \001(\tH\000\210\001\001B\020\n\016_error_service\"\266\001\n0Custo" - + "mErrorResponsePolicyCustomErrorResponseR" - + "ule\022\037\n\024match_response_codes\030\342\210\2072 \003(\t\022\'\n\026" - + "override_response_code\030\370\327\360\374\001 \001(\005H\000\210\001\001\022\024\n" - + "\004path\030\245\310\321\001 \001(\tH\001\210\001\001B\031\n\027_override_respons" - + "e_codeB\007\n\005_path\"\217\002\n\025CustomerEncryptionKe" - + "y\022\035\n\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001\022\'\n\027kms_" - + "key_service_account\030\325\305\220d \001(\tH\001\210\001\001\022\030\n\007raw" - + "_key\030\310\343\230\326\001 \001(\tH\002\210\001\001\022\"\n\021rsa_encrypted_key" - + "\030\245\303\374\237\001 \001(\tH\003\210\001\001\022\026\n\006sha256\030\247\354\216Q \001(\tH\004\210\001\001B" - + "\017\n\r_kms_key_nameB\032\n\030_kms_key_service_acc" - + "ountB\n\n\010_raw_keyB\024\n\022_rsa_encrypted_keyB\t" - + "\n\007_sha256\"\265\001\n\"CustomerEncryptionKeyProte" - + "ctedDisk\022T\n\023disk_encryption_key\030\205\355\304\201\001 \001(" - + "\0132..google.cloud.compute.v1.CustomerEncr" - + "yptionKeyH\000\210\001\001\022\026\n\006source\030\233\320\301T \001(\tH\001\210\001\001B\026" - + "\n\024_disk_encryption_keyB\t\n\007_source\"C\n\004Dat" - + "a\022\022\n\003key\030\337\274\006 \001(\tH\000\210\001\001\022\025\n\005value\030\361\242\2625 \001(\tH" - + "\001\210\001\001B\006\n\004_keyB\010\n\006_value\"\353\001\n!DeleteAccessC" - + "onfigInstanceRequest\022\035\n\raccess_config\030\375\344" - + "\336\" \001(\tB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" - + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G" - + "\004zoneB\r\n\013_request_id\"\237\001\n\024DeleteAddressRe" - + "quest\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240" - + "B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001" - + "(\tH\000\210\001\001B\r\n\013_request_id\"\241\001\n\027DeleteAutosca" - + "lerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB" - + "\n\340A\002\362G\004zoneB\r\n\013_request_id\"\212\001\n\032DeleteBac" - + "kendBucketRequest\022\036\n\016backend_bucket\030\365\343\335+" - + " \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" - + "uest_id\"\215\001\n\033DeleteBackendServiceRequest\022" - + " \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\224\001\n\021Dele" - + "teDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007p" + + "\274\214\340\203\001\022\037\n\030MEMORY_OPTIMIZED_X4_16TB\020\340\357\246W\022\037" + + "\n\030MEMORY_OPTIMIZED_X4_24TB\020\275\311\250W\022\037\n\030MEMOR" + + "Y_OPTIMIZED_X4_32TB\020\232\243\252W\022\034\n\024STORAGE_OPTI" + + "MIZED_Z3\020\265\331\207\227\001\022\030\n\020TYPE_UNSPECIFIED\020\222\373\333\320\001" + + "B\r\n\013_auto_renewB\013\n\t_categoryB\025\n\023_creatio" + + "n_timestampB\027\n\025_custom_end_timestampB\016\n\014" + + "_descriptionB\020\n\016_end_timestampB\005\n\003_idB\007\n" + + "\005_kindB\023\n\021_license_resourceB\007\n\005_nameB\007\n\005" + + "_planB\t\n\007_regionB\022\n\020_resource_statusB\014\n\n" + + "_self_linkB\032\n\030_split_source_commitmentB\022" + + "\n\020_start_timestampB\t\n\007_statusB\021\n\017_status" + + "_messageB\007\n\005_type\"\277\003\n\030CommitmentAggregat" + + "edList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003" + + "(\0132<.google.cloud.compute.v1.CommitmentA" + + "ggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachab" + + "les\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .googl" + + "e.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\nItems" + + "Entry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..goog" + + "le.cloud.compute.v1.CommitmentsScopedLis" + + "t:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_toke" + + "nB\014\n\n_self_linkB\n\n\010_warning\"\245\002\n\016Commitme" + + "ntList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003" + + "(\0132#.google.cloud.compute.v1.Commitment\022" + + "\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token" + + "\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210" + + "\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_warn" + + "ing\"|\n\030CommitmentResourceStatus\0226\n%custo" + + "m_term_eligibility_end_timestamp\030\373\253\307\255\001 \001" + + "(\tH\000\210\001\001B(\n&_custom_term_eligibility_end_" + + "timestamp\"\234\001\n\025CommitmentsScopedList\022<\n\013c" + + "ommitments\030\376\257\362\326\001 \003(\0132#.google.cloud.comp" + + "ute.v1.Commitment\0229\n\007warning\030\234\337\226\030 \001(\0132 ." + + "google.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010" + + "_warning\"\320\002\n\032ConfidentialInstanceConfig\022" + + "*\n\032confidential_instance_type\030\255\214\336\024 \001(\tH\000" + + "\210\001\001\022+\n\033enable_confidential_compute\030\274\353\3310 " + + "\001(\010H\001\210\001\001\"\231\001\n\030ConfidentialInstanceType\022(\n" + + "$UNDEFINED_CONFIDENTIAL_INSTANCE_TYPE\020\000\022" + + "-\n&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIE" + + "D\020\205\260\3546\022\t\n\003SEV\020\304\200\005\022\016\n\007SEV_SNP\020\332\335\257\n\022\t\n\003TDX" + + "\020\350\207\005B\035\n\033_confidential_instance_typeB\036\n\034_" + + "enable_confidential_compute\"S\n\022Connectio" + + "nDraining\022$\n\024draining_timeout_sec\030\236\325\254k \001" + + "(\005H\000\210\001\001B\027\n\025_draining_timeout_sec\"\210\002\n\"Con" + + "sistentHashLoadBalancerSettings\022b\n\013http_" + + "cookie\030\373\253\227\003 \001(\0132E.google.cloud.compute.v" + + "1.ConsistentHashLoadBalancerSettingsHttp" + + "CookieH\000\210\001\001\022 \n\020http_header_name\030\306\367\372o \001(\t" + + "H\001\210\001\001\022!\n\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001" + + "B\016\n\014_http_cookieB\023\n\021_http_header_nameB\024\n" + + "\022_minimum_ring_size\"\253\001\n,ConsistentHashLo" + + "adBalancerSettingsHttpCookie\022\024\n\004name\030\213\365\315" + + "\001 \001(\tH\000\210\001\001\022\024\n\004path\030\245\310\321\001 \001(\tH\001\210\001\001\0225\n\003ttl\030" + + "\354\203\007 \001(\0132!.google.cloud.compute.v1.Durati" + + "onH\002\210\001\001B\007\n\005_nameB\007\n\005_pathB\006\n\004_ttl\"\236\002\n\nCo" + + "rsPolicy\022\"\n\021allow_credentials\030\206\376\275\345\001 \001(\010H" + + "\000\210\001\001\022\030\n\rallow_headers\030\220\301\305\025 \003(\t\022\030\n\rallow_" + + "methods\030\274\371\370a \003(\t\022\037\n\024allow_origin_regexes" + + "\030\322\215\332f \003(\t\022\030\n\rallow_origins\030\227\316\370\\ \003(\t\022\031\n\010d" + + "isabled\030\374\364\230\201\001 \001(\010H\001\210\001\001\022\031\n\016expose_headers" + + "\030\213\314\210v \003(\t\022\030\n\007max_age\030\244\367\323\222\001 \001(\005H\002\210\001\001B\024\n\022_" + + "allow_credentialsB\013\n\t_disabledB\n\n\010_max_a" + + "ge\"\321\002\n*CreateInstancesInstanceGroupManag" + + "erRequest\022&\n\026instance_group_manager\030\303\367\363v" + + " \001(\tB\003\340A\002\022\217\001\n9instance_group_managers_cr" + + "eate_instances_request_resource\030\223\372\332\013 \001(\013" + + "2D.google.cloud.compute.v1.InstanceGroup" + + "ManagersCreateInstancesRequestB\003\340A\002\022!\n\007p" + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002" - + "\362G\004zoneB\r\n\013_request_id\"\225\001\n\037DeleteExterna" - + "lVpnGatewayRequest\022$\n\024external_vpn_gatew" - + "ay\030\205\327\2634 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\362G\004zoneB\r\n\013_request_id\"\351\002\n0CreateInstanc" + + "esRegionInstanceGroupManagerRequest\022&\n\026i" + + "nstance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region" + + "\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n@region_insta" + + "nce_group_managers_create_instances_requ" + + "est_resource\030\210\277\230\253\001 \001(\0132J.google.cloud.co" + + "mpute.v1.RegionInstanceGroupManagersCrea" + + "teInstancesRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\221\002\n\031CreateSna" + + "pshotDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022\034" + + "\n\013guest_flush\030\335\223\354\267\001 \001(\010H\000\210\001\001\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\001\210\001\001\022E\n\021snapshot_resource\030\251\270\301\345\001 \001" + + "(\0132!.google.cloud.compute.v1.SnapshotB\003\340" + + "A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\016\n\014_gues" + + "t_flushB\r\n\013_request_id\"\355\001\n\037CreateSnapsho" + + "tRegionDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" + + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" + + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n\021snapshot_resource\030\251\270" + + "\301\345\001 \001(\0132!.google.cloud.compute.v1.Snapsh" + + "otB\003\340A\002B\r\n\013_request_id\"\270\001\n\031CustomErrorRe" + + "sponsePolicy\022j\n\024error_response_rules\030\220\255\374" + + "\006 \003(\0132I.google.cloud.compute.v1.CustomEr" + + "rorResponsePolicyCustomErrorResponseRule" + + "\022\035\n\rerror_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n\016_erro" + + "r_service\"\266\001\n0CustomErrorResponsePolicyC" + + "ustomErrorResponseRule\022\037\n\024match_response" + + "_codes\030\342\210\2072 \003(\t\022\'\n\026override_response_cod" + + "e\030\370\327\360\374\001 \001(\005H\000\210\001\001\022\024\n\004path\030\245\310\321\001 \001(\tH\001\210\001\001B\031" + + "\n\027_override_response_codeB\007\n\005_path\"\217\002\n\025C" + + "ustomerEncryptionKey\022\035\n\014kms_key_name\030\231\353\373" + + "\346\001 \001(\tH\000\210\001\001\022\'\n\027kms_key_service_account\030\325" + + "\305\220d \001(\tH\001\210\001\001\022\030\n\007raw_key\030\310\343\230\326\001 \001(\tH\002\210\001\001\022\"" + + "\n\021rsa_encrypted_key\030\245\303\374\237\001 \001(\tH\003\210\001\001\022\026\n\006sh" + + "a256\030\247\354\216Q \001(\tH\004\210\001\001B\017\n\r_kms_key_nameB\032\n\030_" + + "kms_key_service_accountB\n\n\010_raw_keyB\024\n\022_" + + "rsa_encrypted_keyB\t\n\007_sha256\"\265\001\n\"Custome" + + "rEncryptionKeyProtectedDisk\022T\n\023disk_encr" + + "yption_key\030\205\355\304\201\001 \001(\0132..google.cloud.comp" + + "ute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n\006sou" + + "rce\030\233\320\301T \001(\tH\001\210\001\001B\026\n\024_disk_encryption_ke" + + "yB\t\n\007_source\"C\n\004Data\022\022\n\003key\030\337\274\006 \001(\tH\000\210\001\001" + + "\022\025\n\005value\030\361\242\2625 \001(\tH\001\210\001\001B\006\n\004_keyB\010\n\006_valu" + + "e\"\353\001\n!DeleteAccessConfigInstanceRequest\022" + + "\035\n\raccess_config\030\375\344\336\" \001(\tB\003\340A\002\022\030\n\010instan" + + "ce\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n\021network_interface\030\350\300" + + "\235\256\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"" + + "\237\001\n\024DeleteAddressRequest\022\030\n\007address\030\364\267\336\334" + + "\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032" + + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_i" + + "d\"\241\001\n\027DeleteAutoscalerRequest\022\033\n\nautosca" + + "ler\030\327\375\322\366\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reque" + + "st_id\"\212\001\n\032DeleteBackendBucketRequest\022\036\n\016" + + "backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\215\001\n\033DeleteBac" + + "kendServiceRequest\022 \n\017backend_service\030\212\300" + + "\256\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"\224\001\n\021DeleteDiskRequest\022\024\n\004disk" + + "\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_i" + + "d\"\225\001\n\037DeleteExternalVpnGatewayRequest\022$\n" + + "\024external_vpn_gateway\030\205\327\2634 \001(\tB\003\340A\002\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"j\n\033Del" + + "eteFirewallPolicyRequest\022 \n\017firewall_pol" + + "icy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001B\r\n\013_request_id\"\200\001\n\025DeleteFirewall" + + "Request\022\031\n\010firewall\030\200\372\325\363\001 \001(\tB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest" + + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\256\001\n\033Del" + + "eteForwardingRuleRequest\022 \n\017forwarding_r" + + "ule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" + + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" + + "equest_id\"\204\001\n\032DeleteGlobalAddressRequest" + + "\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\000\210\001\001B\r\n\013_request_id\"\223\001\n!DeleteGloba" + + "lForwardingRuleRequest\022 \n\017forwarding_rul" + + "e\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" - + "\r\n\013_request_id\"j\n\033DeleteFirewallPolicyRe" - + "quest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_" - + "id\"\200\001\n\025DeleteFirewallRequest\022\031\n\010firewall" - + "\030\200\372\325\363\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n\013_request_id\"\256\001\n\033DeleteForwardingRuleRe" - + "quest\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" - + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\204\001\n\032Delet" - + "eGlobalAddressRequest\022\030\n\007address\030\364\267\336\334\001 \001" - + "(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" - + "st_id\"\223\001\n!DeleteGlobalForwardingRuleRequ" - + "est\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n" + + "\r\n\013_request_id\"\240\001\n\'DeleteGlobalNetworkEn" + + "dpointGroupRequest\022\'\n\026network_endpoint_g" + + "roup\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001B\r\n\013_request_id\"R\n\034DeleteGlobalOperati" + + "onRequest\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"\037\n\035DeleteGlobalOpe" + + "rationResponse\"o\n(DeleteGlobalOrganizati" + + "onOperationRequest\022\031\n\toperation\030\347\252\353\030 \001(\t" + + "B\003\340A\002\022\032\n\tparent_id\030\320\341\232\333\001 \001(\tH\000\210\001\001B\014\n\n_pa" + + "rent_id\"+\n)DeleteGlobalOrganizationOpera" + + "tionResponse\"\242\001\n)DeleteGlobalPublicDeleg" + + "atedPrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\'\n\027public_delegated_prefix" + + "\030\350\334\261a \001(\tB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001B\r\n\013_request_id\"\207\001\n\030DeleteHealthCheckR" + + "equest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" - + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\240\001\n\'" - + "DeleteGlobalNetworkEndpointGroupRequest\022" - + "\'\n\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"y\n\022D" + + "eleteImageRequest\022\025\n\005image\030\333\322\352/ \001(\tB\003\340A\002" + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"R" - + "\n\034DeleteGlobalOperationRequest\022\031\n\toperat" - + "ion\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\"\037\n\035DeleteGlobalOperationResponse\"o\n(D" - + "eleteGlobalOrganizationOperationRequest\022" - + "\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\032\n\tparent_id\030" - + "\320\341\232\333\001 \001(\tH\000\210\001\001B\014\n\n_parent_id\"+\n)DeleteGl" - + "obalOrganizationOperationResponse\"\242\001\n)De" - + "leteGlobalPublicDelegatedPrefixeRequest\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027pu" - + "blic_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\207" - + "\001\n\030DeleteHealthCheckRequest\022\035\n\014health_ch" - + "eck\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001B\r\n\013_request_id\"y\n\022DeleteImageRequest\022\025" - + "\n\005image\030\333\322\352/ \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001B\r\n\013_request_id\"\266\001\n!DeleteInstanceGr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\266" + + "\001\n!DeleteInstanceGroupManagerRequest\022&\n\026" + + "instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A" + + "\002\362G\004zoneB\r\n\013_request_id\"\343\001\n.DeleteInstan" + + "ceGroupManagerResizeRequestRequest\022&\n\026in" + + "stance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest" + + "_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\036\n\016resize_request\030\204\204\271g" + + " \001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r" + + "\n\013_request_id\"\247\001\n\032DeleteInstanceGroupReq" + + "uest\022\036\n\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A" + + "\002\362G\004zoneB\r\n\013_request_id\"\234\001\n\025DeleteInstan" + + "ceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002" + + "\362G\004zoneB\r\n\013_request_id\"\221\001\n\035DeleteInstanc" + + "eTemplateRequest\022\"\n\021instance_template\030\344\201" + + "\273\223\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"\321\002\n*DeleteInstancesInstanceGr" + "oupManagerRequest\022&\n\026instance_group_mana" - + "ger\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" - + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" - + "t_id\"\343\001\n.DeleteInstanceGroupManagerResiz" - + "eRequestRequest\022&\n\026instance_group_manage" - + "r\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\036" - + "\n\016resize_request\030\204\204\271g \001(\tB\003\340A\002\022\033\n\004zone\030\254" - + "\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\247\001\n\032D" - + "eleteInstanceGroupRequest\022\036\n\016instance_gr" - + "oup\030\325\324\325& \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" - + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" - + "t_id\"\234\001\n\025DeleteInstanceRequest\022\030\n\010instan" - + "ce\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" - + "\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request" - + "_id\"\221\001\n\035DeleteInstanceTemplateRequest\022\"\n" - + "\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\321\002\n*Dele" - + "teInstancesInstanceGroupManagerRequest\022&" - + "\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217" - + "\001\n9instance_group_managers_delete_instan" - + "ces_request_resource\030\204\306\255O \001(\0132D.google.c" - + "loud.compute.v1.InstanceGroupManagersDel" - + "eteInstancesRequestB\003\340A\002\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" - + "(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013" - + "_request_id\"\351\002\n0DeleteInstancesRegionIns" - + "tanceGroupManagerRequest\022&\n\026instance_gro" - + "up_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" - + "\340A\002\362G\006region\022\235\001\n@region_instance_group_m" - + "anagers_delete_instances_request_resourc" - + "e\030\371\212\353\356\001 \001(\0132J.google.cloud.compute.v1.Re" - + "gionInstanceGroupManagersDeleteInstances" - + "RequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "B\r\n\013_request_id\"\254\001\n\034DeleteInstantSnapsho" - + "tRequest\022!\n\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003" + + "ger\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n9instance_group_man" + + "agers_delete_instances_request_resource\030" + + "\204\306\255O \001(\0132D.google.cloud.compute.v1.Insta" + + "nceGroupManagersDeleteInstancesRequestB\003" + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 " - + "\001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\276\001\n#Delet" - + "eInterconnectAttachmentRequest\022(\n\027interc" - + "onnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315" - + "\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 " - + "\001(\tH\000\210\001\001B\r\n\013_request_id\"\207\001\n\031DeleteInterc" - + "onnectRequest\022\034\n\014interconnect\030\216\311\214k \001(\tB\003" - + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_i" - + "d\"}\n\024DeleteLicenseRequest\022\027\n\007license\030\301\210\302" - + "O \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_re" - + "quest_id\"\210\001\n\031DeleteMachineImageRequest\022\035" - + "\n\rmachine_image\030\343\376\376 \001(\tB\003\340A\002\022!\n\007project" + + "\001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\351\002\n0Delet" + + "eInstancesRegionInstanceGroupManagerRequ" + + "est\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003" + + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037" + + "\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n@regi" + + "on_instance_group_managers_delete_instan" + + "ces_request_resource\030\371\212\353\356\001 \001(\0132J.google." + + "cloud.compute.v1.RegionInstanceGroupMana" + + "gersDeleteInstancesRequestB\003\340A\002\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\254\001\n\034D" + + "eleteInstantSnapshotRequest\022!\n\020instant_s" + + "napshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" + + "H\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_r" + + "equest_id\"\276\001\n#DeleteInterconnectAttachme" + + "ntRequest\022(\n\027interconnect_attachment\030\364\212\367" + + "\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_" + + "id\"\207\001\n\031DeleteInterconnectRequest\022\034\n\014inte" + + "rconnect\030\216\311\214k \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" + + "H\000\210\001\001B\r\n\013_request_id\"}\n\024DeleteLicenseReq" + + "uest\022\027\n\007license\030\301\210\302O \001(\tB\003\340A\002\022!\n\007project" + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\263\001\n\036DeleteNe" - + "tworkAttachmentRequest\022\"\n\022network_attach" - + "ment\030\324\227\217k \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" - + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" - + "equest_id\"\307\001\n\'DeleteNetworkEdgeSecurityS" - + "erviceRequest\022-\n\035network_edge_security_s" - + "ervice\030\247\237\357J \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" - + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" - + "_request_id\"\267\001\n!DeleteNetworkEndpointGro" - + "upRequest\022\'\n\026network_endpoint_group\030\206\313\363\316" - + "\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zon" - + "e\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\224\001" - + "\n\"DeleteNetworkFirewallPolicyRequest\022 \n\017" - + "firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022!\n\007projec" + + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\210\001\n\031DeleteMa" + + "chineImageRequest\022\035\n\rmachine_image\030\343\376\376 " + + "\001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" + + "est_id\"\263\001\n\036DeleteNetworkAttachmentReques" + + "t\022\"\n\022network_attachment\030\324\227\217k \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regi" + + "on\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\307\001\n\'DeleteN" + + "etworkEdgeSecurityServiceRequest\022-\n\035netw" + + "ork_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\267\001\n!Delet" + + "eNetworkEndpointGroupRequest\022\'\n\026network_" + + "endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n\007project" + + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313" + + "\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zon" + + "eB\r\n\013_request_id\"\224\001\n\"DeleteNetworkFirewa" + + "llPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001" + + " \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" + + "uest_id\"}\n\024DeleteNetworkRequest\022\027\n\007netwo" + + "rk\030\256\264\205o \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\240\001\n\026DeleteNodeGroupReques" + + "t\022\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022!\n\007projec" + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"}\n\024DeleteNe" - + "tworkRequest\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022!\n" - + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" - + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\240\001\n\026" - + "DeleteNodeGroupRequest\022\033\n\nnode_group\030\202\374\213" - + "\340\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zo" - + "ne\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\252" - + "\001\n\031DeleteNodeTemplateRequest\022\036\n\rnode_tem" - + "plate\030\227\344\213\232\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" - + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" - + "_request_id\"\227\002\n\033DeleteNodesNodeGroupRequ" - + "est\022\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022p\n)node" - + "_groups_delete_nodes_request_resource\030\222\327" - + "\263W \001(\01325.google.cloud.compute.v1.NodeGro" - + "upsDeleteNodesRequestB\003\340A\002\022!\n\007project\030\231\226" - + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" - + " \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r" - + "\n\013_request_id\"\257\001\n\034DeletePacketMirroringR" - + "equest\022 \n\020packet_mirroring\030\314\271\321\n \001(\tB\003\340A\002" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" - + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\274\002\n3Dele" - + "tePerInstanceConfigsInstanceGroupManager" - + "Request\022&\n\026instance_group_manager\030\303\367\363v \001" - + "(\tB\003\340A\002\022\234\001\n@instance_group_managers_dele" - + "te_per_instance_configs_req_resource\030\240\352\350" - + "\254\001 \001(\0132I.google.cloud.compute.v1.Instanc" - + "eGroupManagersDeletePerInstanceConfigsRe" - + "qB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zone\"\306\002\n9Delet" - + "ePerInstanceConfigsRegionInstanceGroupMa" - + "nagerRequest\022&\n\026instance_group_manager\030\303" - + "\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region" - + "\022\234\001\nAregion_instance_group_manager_delet" - + "e_instance_config_req_resource\030\205\233- \001(\0132J" - + ".google.cloud.compute.v1.RegionInstanceG" - + "roupManagerDeleteInstanceConfigReqB\003\340A\002\"" - + "\236\001\n$DeletePublicAdvertisedPrefixeRequest" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022(\n\030p" - + "ublic_advertised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" - + "\"\275\001\n#DeletePublicDelegatedPrefixeRequest" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027p" - + "ublic_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022\037\n\006" - + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\253\001\n\035Del" - + "eteRegionAutoscalerRequest\022\033\n\nautoscaler" - + "\030\327\375\322\366\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" - + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" - + "est_id\"\264\001\n!DeleteRegionBackendServiceReq" - + "uest\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!" - + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" - + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\236\001\n\027Delete" - + "RegionDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022" + + "\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "neB\r\n\013_request_id\"\252\001\n\031DeleteNodeTemplate" + + "Request\022\036\n\rnode_template\030\227\344\213\232\001 \001(\tB\003\340A\002\022" + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\256\001\n\036Delet" - + "eRegionHealthCheckRequest\022\035\n\014health_chec" - + "k\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006re" - + "gion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" - + "uest_id\"\275\001\n%DeleteRegionHealthCheckServi" - + "ceRequest\022%\n\024health_check_service\030\333\233\335\302\001 " - + "\001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "\300\001\n\'DeleteRegionInstanceGroupManagerRequ" - + "est\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003" - + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037" - + "\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreque" - + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\270\001\n#D" - + "eleteRegionInstanceTemplateRequest\022\"\n\021in" - + "stance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022!\n\007projec" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\227\002\n\033Delet" + + "eNodesNodeGroupRequest\022\033\n\nnode_group\030\202\374\213" + + "\340\001 \001(\tB\003\340A\002\022p\n)node_groups_delete_nodes_" + + "request_resource\030\222\327\263W \001(\01325.google.cloud" + + ".compute.v1.NodeGroupsDeleteNodesRequest" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344" + + "\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\257\001\n\034Del" + + "etePacketMirroringRequest\022 \n\020packet_mirr" + + "oring\030\314\271\321\n \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G" + + "\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"\274\002\n3DeletePerInstanceConfigsI" + + "nstanceGroupManagerRequest\022&\n\026instance_g" + + "roup_manager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n@instance_" + + "group_managers_delete_per_instance_confi" + + "gs_req_resource\030\240\352\350\254\001 \001(\0132I.google.cloud" + + ".compute.v1.InstanceGroupManagersDeleteP" + + "erInstanceConfigsReqB\003\340A\002\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340" + + "A\002\362G\004zone\"\306\002\n9DeletePerInstanceConfigsRe" + + "gionInstanceGroupManagerRequest\022&\n\026insta" + + "nce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240" + + "B \001(\tB\014\340A\002\362G\006region\022\234\001\nAregion_instance_" + + "group_manager_delete_instance_config_req" + + "_resource\030\205\233- \001(\0132J.google.cloud.compute" + + ".v1.RegionInstanceGroupManagerDeleteInst" + + "anceConfigReqB\003\340A\002\"\236\001\n$DeletePublicAdver" + + "tisedPrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022(\n\030public_advertised_pref" + + "ix\030\236\367\3110 \001(\tB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001B\r\n\013_request_id\"\275\001\n#DeletePublicDele" + + "gatedPrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\'\n\027public_delegated_prefi" + + "x\030\350\334\261a \001(\tB\003\340A\002\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" + + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" + + "_request_id\"\253\001\n\035DeleteRegionAutoscalerRe" + + "quest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" + + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\264\001\n!DeleteRegi" + + "onBackendServiceRequest\022 \n\017backend_servi" + + "ce\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006r" + + "egion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_re" + + "quest_id\"\236\001\n\027DeleteRegionDiskRequest\022\024\n\004" + + "disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" + + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" + + "equest_id\"\256\001\n\036DeleteRegionHealthCheckReq" + + "uest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region" + + "\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\275\001\n%DeleteReg" + + "ionHealthCheckServiceRequest\022%\n\024health_c" + + "heck_service\030\333\233\335\302\001 \001(\tB\003\340A\002\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" + + "\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001B\r\n\013_request_id\"\300\001\n\'DeleteRegionInsta" + + "nceGroupManagerRequest\022&\n\026instance_group" + + "_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" + + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n\013_request_id\"\270\001\n#DeleteRegionInstanceTe" + + "mplateRequest\022\"\n\021instance_template\030\344\201\273\223\001" + + " \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" + + "\"\266\001\n\"DeleteRegionInstantSnapshotRequest\022" + + "!\n\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" + + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\301\001\n\'DeleteRegi" + + "onNetworkEndpointGroupRequest\022\'\n\026network" + + "_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n\007projec" + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001B\r\n\013_request_id\"\266\001\n\"DeleteRegionIn" - + "stantSnapshotRequest\022!\n\020instant_snapshot" - + "\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\tH\000\210\001\001B\r\n\013_request_id\"\273\001\n(DeleteRegionNe" + + "tworkFirewallPolicyRequest\022 \n\017firewall_p" + + "olicy\030\321\212\306\355\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" + + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" + + "_request_id\"\300\001\n\'DeleteRegionNotification" + + "EndpointRequest\022&\n\025notification_endpoint" + + "\030\351\274\326\263\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" - + "est_id\"\301\001\n\'DeleteRegionNetworkEndpointGr" - + "oupRequest\022\'\n\026network_endpoint_group\030\206\313\363" - + "\316\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_" - + "id\"\273\001\n(DeleteRegionNetworkFirewallPolicy" - + "Request\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A" - + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006" - + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\300\001\n\'Del" - + "eteRegionNotificationEndpointRequest\022&\n\025" - + "notification_endpoint\030\351\274\326\263\001 \001(\tB\003\340A\002\022!\n\007" - + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" - + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"j\n\034DeleteReg" - + "ionOperationRequest\022\031\n\toperation\030\347\252\353\030 \001(" - + "\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regio" - + "n\030\364\315\240B \001(\tB\003\340A\002\"\037\n\035DeleteRegionOperation" - + "Response\"\263\001\n!DeleteRegionSecurityPolicyR", - "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017security_polic" - + "y\030\221\206\312Q \001(\tB\003\340A\002B\r\n\013_request_id\"\263\001\n!Delet" - + "eRegionSslCertificateRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001" - + "(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001\022\037\n\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002B\r\n" - + "\013_request_id\"\252\001\n\034DeleteRegionSslPolicyRe" - + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" - + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nssl_policy\030\305\375\340\214" - + "\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\266\001\n\"DeleteRegi" - + "onTargetHttpProxyRequest\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" - + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022!\n\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002B\r\n\013_" - + "request_id\"\270\001\n#DeleteRegionTargetHttpsPr" - + "oxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_htt" - + "ps_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\265\001" - + "\n!DeleteRegionTargetTcpProxyRequest\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region" - + "\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022!\n\020target_tcp_proxy\030\342\326\360\357\001 \001(" - + "\tB\003\340A\002B\r\n\013_request_id\"\244\001\n\031DeleteRegionUr" - + "lMapRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214" - + "\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\242\001\n\030DeleteR" - + "eservationRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340" - + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022\033\n\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\033\n\004zone\030\254\307" - + "\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\255\001\n\033De" - + "leteResourcePolicyRequest\022!\n\007project\030\231\226\301" + + "est_id\"j\n\034DeleteRegionOperationRequest\022\031" + + "\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301", + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"\037\n\035De" + + "leteRegionOperationResponse\"\263\001\n!DeleteRe" + + "gionSecurityPolicyRequest\022!\n\007project\030\231\226\301" + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001\022\037\n\017resource_policy\030\203\245\367K \001(\tB\003\340A\002B\r\n\013_r" - + "equest_id\"y\n\022DeleteRouteRequest\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\025\n\005route\030\311\344\3523 \001(\tB\003\340A\002B\r\n" - + "\013_request_id\"\234\001\n\023DeleteRouterRequest\022!\n\007" - + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" - + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002B\r\n\013" - + "_request_id\"\214\001\n\033DeleteSecurityPolicyRequ" - + "est\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017security_p" - + "olicy\030\221\206\312Q \001(\tB\003\340A\002B\r\n\013_request_id\"\264\001\n\036D" - + "eleteServiceAttachmentRequest\022!\n\007project" + + "\001\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n\013_r" + + "equest_id\"\263\001\n!DeleteRegionSslCertificate" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017ssl_certifica" + + "te\030\344\327\222\026 \001(\tB\003\340A\002B\r\n\013_request_id\"\252\001\n\034Dele" + + "teRegionSslPolicyRequest\022!\n\007project\030\231\226\301l" + + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" + + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n\013_reques" + + "t_id\"\266\001\n\"DeleteRegionTargetHttpProxyRequ" + + "est\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037" + + "\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_http_proxy" + + "\030\345\276\322b \001(\tB\003\340A\002B\r\n\013_request_id\"\270\001\n#Delete" + + "RegionTargetHttpsProxyRequest\022!\n\007project" + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B " + "\001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001\022#\n\022service_attachment\030\355\251\320\241\001 \001(\tB\003\340" - + "A\002B\r\n\013_request_id\"\261\001\n&DeleteSignedUrlKey" - + "BackendBucketRequest\022\036\n\016backend_bucket\030\365" - + "\343\335+ \001(\tB\003\340A\002\022\031\n\010key_name\030\353\360\356\356\001 \001(\tB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\264\001" - + "\n\'DeleteSignedUrlKeyBackendServiceReques" - + "t\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\031\n\010k" - + "ey_name\030\353\360\356\356\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001B\r\n\013_request_id\"\200\001\n\025DeleteSnapshotR" - + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n\010snapsho" - + "t\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\214\001\n\033Dele" - + "teSslCertificateRequest\022!\n\007project\030\231\226\301l " - + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001\022\037\n\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002B" - + "\r\n\013_request_id\"\203\001\n\026DeleteSslPolicyReques" - + "t\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nssl_policy\030\305" - + "\375\340\214\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\244\001\n\030DeleteS" - + "toragePoolRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340" - + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022\035\n\014storage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022\033\n\004zone\030" - + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\245\001\n\027" - + "DeleteSubnetworkRequest\022!\n\007project\030\231\226\301l " - + "\001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340" - + "A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" - + "\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002B\r\n\013_request" - + "_id\"\217\001\n\034DeleteTargetGrpcProxyRequest\022!\n\007" + + "H\000\210\001\001\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A" + + "\002B\r\n\013_request_id\"\265\001\n!DeleteRegionTargetT" + + "cpProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" + + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\020target" + + "_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_request_id" + + "\"\244\001\n\031DeleteRegionUrlMapRequest\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_req" + + "uest_id\"\242\001\n\030DeleteReservationRequest\022!\n\007" + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" - + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_grpc_proxy" - + "\030\373\264\262\002 \001(\tB\003\340A\002B\r\n\013_request_id\"\217\001\n\034Delete" - + "TargetHttpProxyRequest\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001\022!\n\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002" - + "B\r\n\013_request_id\"\221\001\n\035DeleteTargetHttpsPro" - + "xyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022targ" - + "et_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request" - + "_id\"\252\001\n\033DeleteTargetInstanceRequest\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n\017target_instance\030\203\217" - + "\226\212\001 \001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zon" - + "eB\r\n\013_request_id\"\245\001\n\027DeleteTargetPoolReq" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\013reservation\030\314\207\325\026 " + + "\001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n" + + "\013_request_id\"\255\001\n\033DeleteResourcePolicyReq" + "uest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + "\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequ" - + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\013target_pool\030\212\344\370\035" - + " \001(\tB\003\340A\002B\r\n\013_request_id\"\216\001\n\033DeleteTarge" - + "tSslProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" - + "!\n\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_r" - + "equest_id\"\216\001\n\033DeleteTargetTcpProxyReques" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017resource_policy\030" + + "\203\245\367K \001(\tB\003\340A\002B\r\n\013_request_id\"y\n\022DeleteRo" + + "uteRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\025\n\005rou" + + "te\030\311\344\3523 \001(\tB\003\340A\002B\r\n\013_request_id\"\234\001\n\023Dele" + + "teRouterRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n\006route" + + "r\030\311\256\356F \001(\tB\003\340A\002B\r\n\013_request_id\"\214\001\n\033Delet" + + "eSecurityPolicyRequest\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" + + "H\000\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r" + + "\n\013_request_id\"\264\001\n\036DeleteServiceAttachmen" + + "tRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n\022service_atta" + + "chment\030\355\251\320\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\261\001\n" + + "&DeleteSignedUrlKeyBackendBucketRequest\022" + + "\036\n\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022\031\n\010key_n" + + "ame\030\353\360\356\356\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001B\r\n\013_request_id\"\264\001\n\'DeleteSignedUrlKeyB" + + "ackendServiceRequest\022 \n\017backend_service\030" + + "\212\300\256\222\001 \001(\tB\003\340A\002\022\031\n\010key_name\030\353\360\356\356\001 \001(\tB\003\340A" + + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" + + "\200\001\n\025DeleteSnapshotRequest\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 " + + "\001(\tH\000\210\001\001\022\031\n\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n\013_" + + "request_id\"\214\001\n\033DeleteSslCertificateReque" + + "st\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017ssl_certifi" + + "cate\030\344\327\222\026 \001(\tB\003\340A\002B\r\n\013_request_id\"\203\001\n\026De" + + "leteSslPolicyRequest\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n\013_req" + + "uest_id\"\244\001\n\030DeleteStoragePoolRequest\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\014storage_pool\030\340\306\361\253" + + "\001 \001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB" + + "\r\n\013_request_id\"\245\001\n\027DeleteSubnetworkReque" + + "st\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001" + + "(\tB\003\340A\002B\r\n\013_request_id\"\217\001\n\034DeleteTargetG" + + "rpcProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!" + + "\n\021target_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002B\r\n\013_re" + + "quest_id\"\217\001\n\034DeleteTargetHttpProxyReques" + "t\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\020target_tcp_p" - + "roxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\263\001\n\035D" - + "eleteTargetVpnGatewayRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001" - + "(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001\022#\n\022target_vpn_gateway\030\313\200\366\375\001 \001(\tB\003\340A" - + "\002B\r\n\013_request_id\"}\n\023DeleteUrlMapRequest\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 " - + "\001(\tB\003\340A\002B\r\n\013_request_id\"\246\001\n\027DeleteVpnGat" - + "ewayRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\013vpn_gatew" - + "ay\030\371\203\366\301\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\243\001\n\026Del" - + "eteVpnTunnelRequest\022!\n\007project\030\231\226\301l \001(\tB" - + "\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G" - + "\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n\nv" - + "pn_tunnel\030\223\224\312D \001(\tB\003\340A\002B\r\n\013_request_id\"f" - + "\n\032DeleteZoneOperationRequest\022\031\n\toperatio" - + "n\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\035\n\033DeleteZoneOper" - + "ationResponse\"J\n\006Denied\022\035\n\014I_p_protocol\030" - + "\275\366\336\350\001 \001(\tH\000\210\001\001\022\020\n\005ports\030\222\360\3712 \003(\tB\017\n\r_I_p" - + "_protocol\"\326\001\n\025DeprecateImageRequest\022X\n\033d" - + "eprecation_status_resource\030\360\211\345\236\001 \001(\0132*.g" - + "oogle.cloud.compute.v1.DeprecationStatus" - + "B\003\340A\002\022\025\n\005image\030\333\322\352/ \001(\tB\003\340A\002\022!\n\007project\030" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_http_" + + "proxy\030\345\276\322b \001(\tB\003\340A\002B\r\n\013_request_id\"\221\001\n\035D" + + "eleteTargetHttpsProxyRequest\022!\n\007project\030" + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\277\002\n\021Deprecati" - + "onStatus\022\030\n\007deleted\030\231\340\250\343\001 \001(\tH\000\210\001\001\022\033\n\nde" - + "precated\030\263\313\321\365\001 \001(\tH\001\210\001\001\022\031\n\010obsolete\030\231\213\305\252" - + "\001 \001(\tH\002\210\001\001\022\034\n\013replacement\030\222\234\275\315\001 \001(\tH\003\210\001\001" - + "\022\025\n\005state\030\221\211\2534 \001(\tH\004\210\001\001\"a\n\005State\022\023\n\017UNDE" - + "FINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\007DELETED" - + "\020\371\367\3269\022\022\n\nDEPRECATED\020\263\243\371\334\001\022\017\n\010OBSOLETE\020\231\353" - + "\334\037B\n\n\010_deletedB\r\n\013_deprecatedB\013\n\t_obsole" - + "teB\016\n\014_replacementB\010\n\006_state\"\275\001\n\031DetachD" - + "iskInstanceRequest\022\033\n\013device_name\030\324\265\232 \001" - + "(\tB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G" - + "\004zoneB\r\n\013_request_id\"\317\002\n7DetachNetworkEn" - + "dpointsGlobalNetworkEndpointGroupRequest" - + "\022\234\001\n@global_network_endpoint_groups_deta" - + "ch_endpoints_request_resource\030\335\215\237\004 \001(\0132J" - + ".google.cloud.compute.v1.GlobalNetworkEn" - + "dpointGroupsDetachEndpointsRequestB\003\340A\002\022" - + "\'\n\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\332" - + "\002\n1DetachNetworkEndpointsNetworkEndpoint" - + "GroupRequest\022\'\n\026network_endpoint_group\030\206" - + "\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n9network_endpoint_group" - + "s_detach_endpoints_request_resource\030\371\240\356\365" - + "\001 \001(\0132D.google.cloud.compute.v1.NetworkE" - + "ndpointGroupsDetachEndpointsRequestB\003\340A\002" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\t" - + "B\n\340A\002\362G\004zoneB\r\n\013_request_id\"\361\002\n7DetachNe" - + "tworkEndpointsRegionNetworkEndpointGroup" - + "Request\022\'\n\026network_endpoint_group\030\206\313\363\316\001 " - + "\001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_network_endpoint_groups_detach_e" - + "ndpoints_request_resource\030\356\345\253\225\001 \001(\0132J.go" - + "ogle.cloud.compute.v1.RegionNetworkEndpo" - + "intGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "l\n\034DisableXpnHostProjectRequest\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\354\001\n Disabl" - + "eXpnResourceProjectRequest\022!\n\007project\030\231\226" - + "\301l \001(\tB\r\340A\002\362G\007project\022z\n.projects_disabl" - + "e_xpn_resource_request_resource\030\252\324\334c \001(\013" - + "2:.google.cloud.compute.v1.ProjectsDisab" - + "leXpnResourceRequestB\003\340A\002\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\317\032\n\004Disk\022\033\n" - + "\013access_mode\030\236\367\317\023 \001(\tH\000\210\001\001\022\035\n\014architectu" - + "re\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n\022async_primary_disk\030" - + "\235\365\211V \001(\0132-.google.cloud.compute.v1.DiskA" - + "syncReplicationH\002\210\001\001\022Y\n\025async_secondary_" - + "disks\030\250\350\375\231\001 \003(\01326.google.cloud.compute.v" - + "1.Disk.AsyncSecondaryDisksEntry\022\"\n\022creat" - + "ion_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n\013descripti" - + "on\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n\023disk_encryption_key" - + "\030\205\355\304\201\001 \001(\0132..google.cloud.compute.v1.Cus" - + "tomerEncryptionKeyH\005\210\001\001\022+\n\033enable_confid" - + "ential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n\021guest_os" - + "_features\030\321\340\347% \003(\0132\'.google.cloud.comput" - + "e.v1.GuestOsFeature\022\020\n\002id\030\233\032 \001(\004H\007\210\001\001\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022!\n\021label_fingerprint" - + "\030\231\360\367T \001(\tH\t\210\001\001\022=\n\006labels\030\377\277\301\356\001 \003(\0132).goo" - + "gle.cloud.compute.v1.Disk.LabelsEntry\022%\n" - + "\025last_attach_timestamp\030\245\234\215\024 \001(\tH\n\210\001\001\022%\n\025" - + "last_detach_timestamp\030\363\333\366\032 \001(\tH\013\210\001\001\022\030\n\rl" - + "icense_codes\030\250\205\330\025 \003(\003\022\024\n\010licenses\030\322\210\200\241\001 " - + "\003(\t\022\036\n\rlocation_hint\030\321\201\222\247\001 \001(\tH\014\210\001\001\022\024\n\004n" - + "ame\030\213\365\315\001 \001(\tH\r\210\001\001\022\030\n\007options\030\236\215\232\254\001 \001(\tH\016" - + "\210\001\001\022;\n\006params\030\206\363\253% \001(\0132#.google.cloud.co" - + "mpute.v1.DiskParamsH\017\210\001\001\022*\n\031physical_blo" - + "ck_size_bytes\030\207\240\243\310\001 \001(\003H\020\210\001\001\022 \n\020provisio" - + "ned_iops\030\324\275\207Y \001(\003H\021\210\001\001\022\'\n\026provisioned_th" - + "roughput\030\225\276\210\373\001 \001(\003H\022\210\001\001\022\026\n\006region\030\364\315\240B \001" - + "(\tH\023\210\001\001\022\030\n\rreplica_zones\030\200\270\214\027 \003(\t\022\034\n\021res" - + "ource_policies\030\341\234\314\n \003(\t\022L\n\017resource_stat" - + "us\030\303\372\367v \001(\0132+.google.cloud.compute.v1.Di" - + "skResourceStatusH\024\210\001\001\022\036\n\rsatisfies_pzi\030\241" - + "\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010" - + "H\026\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\027\210\001\001\022\030\n\007siz" - + "e_gb\030\331\213\200\354\001 \001(\003H\030\210\001\001\022/\n\037source_consistenc" - + "y_group_policy\030\335\242\255\t \001(\tH\031\210\001\001\0222\n\"source_c" - + "onsistency_group_policy_id\030\275\216\313\177 \001(\tH\032\210\001\001" - + "\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\033\210\001\001\022\037\n\016source" - + "_disk_id\030\331\315\311\330\001 \001(\tH\034\210\001\001\022\034\n\014source_image\030" - + "\267\350\206\030 \001(\tH\035\210\001\001\022\\\n\033source_image_encryption" - + "_key\030\253\221\365\265\001 \001(\0132..google.cloud.compute.v1" - + ".CustomerEncryptionKeyH\036\210\001\001\022\037\n\017source_im" - + "age_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n\027source_instant_s" - + "napshot\030\206\204\303h \001(\tH \210\001\001\022+\n\032source_instant_" - + "snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n\017source_sna" - + "pshot\030\350\232\216< \001(\tH\"\210\001\001\022_\n\036source_snapshot_e" - + "ncryption_key\030\332\216\347\220\001 \001(\0132..google.cloud.c" - + "ompute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n\022" - + "source_snapshot_id\030\322\226\230/ \001(\tH$\210\001\001\022%\n\025sour" - + "ce_storage_object\030\247\264\220o \001(\tH%\210\001\001\022\026\n\006statu" - + "s\030\362\237\267V \001(\tH&\210\001\001\022\035\n\014storage_pool\030\340\306\361\253\001 \001(" - + "\tH\'\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH(\210\001\001\022\020\n\005users\030\210\234" - + "\2325 \003(\t\022\024\n\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032m\n\030AsyncSec" - + "ondaryDisksEntry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002" - + " \001(\01321.google.cloud.compute.v1.DiskAsync" - + "ReplicationList:\0028\001\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\nAccessMode" - + "\022\031\n\025UNDEFINED_ACCESS_MODE\020\000\022\025\n\016READ_ONLY" - + "_MANY\020\251\247\241\036\022\027\n\017READ_WRITE_MANY\020\250\302\206\351\001\022\030\n\021R" - + "EAD_WRITE_SINGLE\020\321\231\256/\"j\n\014Architecture\022\032\n" - + "\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030ARCHITECTUR" - + "E_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86" - + "_64\020\307\244\346\312\001\"\210\001\n\006Status\022\024\n\020UNDEFINED_STATUS" - + "\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016" - + "\n\006FAILED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%\022\021\n\tRESTORIN" - + "G\020\253\247\342\300\001\022\023\n\013UNAVAILABLE\020\260\330\245\305\001B\016\n\014_access_" - + "modeB\017\n\r_architectureB\025\n\023_async_primary_" - + "diskB\025\n\023_creation_timestampB\016\n\014_descript" - + "ionB\026\n\024_disk_encryption_keyB\036\n\034_enable_c" - + "onfidential_computeB\005\n\003_idB\007\n\005_kindB\024\n\022_" - + "label_fingerprintB\030\n\026_last_attach_timest" - + "ampB\030\n\026_last_detach_timestampB\020\n\016_locati" - + "on_hintB\007\n\005_nameB\n\n\010_optionsB\t\n\007_paramsB" - + "\034\n\032_physical_block_size_bytesB\023\n\021_provis" - + "ioned_iopsB\031\n\027_provisioned_throughputB\t\n" - + "\007_regionB\022\n\020_resource_statusB\020\n\016_satisfi" - + "es_pziB\020\n\016_satisfies_pzsB\014\n\n_self_linkB\n" - + "\n\010_size_gbB\"\n _source_consistency_group_" - + "policyB%\n#_source_consistency_group_poli" - + "cy_idB\016\n\014_source_diskB\021\n\017_source_disk_id" - + "B\017\n\r_source_imageB\036\n\034_source_image_encry" - + "ption_keyB\022\n\020_source_image_idB\032\n\030_source" - + "_instant_snapshotB\035\n\033_source_instant_sna" - + "pshot_idB\022\n\020_source_snapshotB!\n\037_source_" - + "snapshot_encryption_keyB\025\n\023_source_snaps" - + "hot_idB\030\n\026_source_storage_objectB\t\n\007_sta" - + "tusB\017\n\r_storage_poolB\007\n\005_typeB\007\n\005_zone\"\255" - + "\003\n\022DiskAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" - + "H\n\005items\030\300\317\367/ \003(\01326.google.cloud.compute" - + ".v1.DiskAggregatedList.ItemsEntry\022\024\n\004kin" - + "d\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& " - + "\001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014" - + "unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(" - + "\0132 .google.cloud.compute.v1.WarningH\004\210\001\001" - + "\032V\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001" - + "(\0132(.google.cloud.compute.v1.DisksScoped" - + "List:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_t" - + "okenB\014\n\n_self_linkB\n\n\010_warning\"\355\001\n\024DiskA" - + "syncReplication\022\'\n\030consistency_group_pol" - + "icy\030\271\303y \001(\tH\000\210\001\001\022+\n\033consistency_group_po" - + "licy_id\030\341\222\276| \001(\tH\001\210\001\001\022\024\n\004disk\030\235\233\274\001 \001(\tH\002" - + "\210\001\001\022\027\n\007disk_id\030\375\305\212\035 \001(\tH\003\210\001\001B\033\n\031_consist" - + "ency_group_policyB\036\n\034_consistency_group_" - + "policy_idB\007\n\005_diskB\n\n\010_disk_id\"\214\001\n\030DiskA" - + "syncReplicationList\022U\n\026async_replication" - + "_disk\030\223\313\303n \001(\0132-.google.cloud.compute.v1" - + ".DiskAsyncReplicationH\000\210\001\001B\031\n\027_async_rep" - + "lication_disk\"\244\003\n\027DiskInstantiationConfi" - + "g\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\034\n\014custo" - + "m_image\030\215\376\345W \001(\tH\001\210\001\001\022\033\n\013device_name\030\324\265\232" - + " \001(\tH\002\210\001\001\022!\n\020instantiate_from\030\337\237\312\273\001 \001(\t" - + "H\003\210\001\001\"\306\001\n\017InstantiateFrom\022\036\n\032UNDEFINED_I" - + "NSTANTIATE_FROM\020\000\022\030\n\020ATTACH_READ_ONLY\020\273\256" - + "\376\364\001\022\014\n\005BLANK\020\264\262\226\036\022\023\n\014CUSTOM_IMAGE\020\355\365\315]\022\016" - + "\n\007DEFAULT\020\241\304\3756\022\025\n\016DO_NOT_INCLUDE\020\310\202\3311\022\023\n" - + "\014SOURCE_IMAGE\020\227\340\356\035\022\032\n\023SOURCE_IMAGE_FAMIL" - + "Y\020\214\311\322$B\016\n\014_auto_deleteB\017\n\r_custom_imageB" - + "\016\n\014_device_nameB\023\n\021_instantiate_from\"\231\002\n" - + "\010DiskList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022/\n\005items\030\300\317\367" - + "/ \003(\0132\035.google.cloud.compute.v1.Disk\022\024\n\004" - + "kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272" - + "\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022" - + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" - + "te.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_n" - + "ext_page_tokenB\014\n\n_self_linkB\n\n\010_warning" - + "\"u\n\017DiskMoveRequest\022 \n\020destination_zone\030" - + "\275\342\357> \001(\tH\000\210\001\001\022\033\n\013target_disk\030\213\317\342\035 \001(\tH\001\210" - + "\001\001B\023\n\021_destination_zoneB\016\n\014_target_disk\"" - + "\251\001\n\nDiskParams\022_\n\025resource_manager_tags\030" - + "\374\233\213\264\001 \003(\0132<.google.cloud.compute.v1.Disk" - + "Params.ResourceManagerTagsEntry\032:\n\030Resou" - + "rceManagerTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\372\002\n\022DiskResourceStatus\022e\n\022as" - + "ync_primary_disk\030\235\365\211V \001(\0132A.google.cloud" - + ".compute.v1.DiskResourceStatusAsyncRepli" - + "cationStatusH\000\210\001\001\022g\n\025async_secondary_dis" - + "ks\030\250\350\375\231\001 \003(\0132D.google.cloud.compute.v1.D" - + "iskResourceStatus.AsyncSecondaryDisksEnt" - + "ry\032}\n\030AsyncSecondaryDisksEntry\022\013\n\003key\030\001 " - + "\001(\t\022P\n\005value\030\002 \001(\0132A.google.cloud.comput" - + "e.v1.DiskResourceStatusAsyncReplicationS" - + "tatus:\0028\001B\025\n\023_async_primary_disk\"\332\001\n(Dis" - + "kResourceStatusAsyncReplicationStatus\022\025\n" - + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n\005State\022\023\n\017UNDEFI" - + "NED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\007CREATED\020\310" - + "\225\350@\022\020\n\010STARTING\020\300\240\213\351\001\022\031\n\021STATE_UNSPECIFI" - + "ED\020\311\320\274\340\001\022\017\n\007STOPPED\020\255\273\354\323\001\022\020\n\010STOPPING\020\364\320" - + "\242\247\001B\010\n\006_state\"\204\004\n\010DiskType\022\"\n\022creation_t" - + "imestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022%\n\024default_disk_s" - + "ize_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001\022G\n\ndeprecated\030\263\313\321\365" - + "\001 \001(\0132*.google.cloud.compute.v1.Deprecat" - + "ionStatusH\002\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH" - + "\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240" - + "B \001(\tH\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022 " - + "\n\017valid_disk_size\030\340\211\305\353\001 \001(\tH\t\210\001\001\022\024\n\004zone" - + "\030\254\307\344\001 \001(\tH\n\210\001\001B\025\n\023_creation_timestampB\027\n" - + "\025_default_disk_size_gbB\r\n\013_deprecatedB\016\n" - + "\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t" - + "\n\007_regionB\014\n\n_self_linkB\022\n\020_valid_disk_s" - + "izeB\007\n\005_zone\"\271\003\n\026DiskTypeAggregatedList\022" - + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022L\n\005items\030\300\317\367/ \003(\0132:.go" - + "ogle.cloud.compute.v1.DiskTypeAggregated" - + "List.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https_proxy\030\354\260\372\030 \001" + + "(\tB\003\340A\002B\r\n\013_request_id\"\252\001\n\033DeleteTargetI" + + "nstanceRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + + "\017target_instance\030\203\217\226\212\001 \001(\tB\003\340A\002\022\033\n\004zone\030" + + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\245\001\n\027" + + "DeleteTargetPoolRequest\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340" + + "A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" + + "\033\n\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n\013_request" + + "_id\"\216\001\n\033DeleteTargetSslProxyRequest\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\020target_ssl_proxy\030\315" + + "\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\216\001\n\033DeleteT" + + "argetTcpProxyRequest\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022!\n\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r" + + "\n\013_request_id\"\263\001\n\035DeleteTargetVpnGateway" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n\022target_vpn_ga" + + "teway\030\313\200\366\375\001 \001(\tB\003\340A\002B\r\n\013_request_id\"}\n\023D" + + "eleteUrlMapRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_request_" + + "id\"\246\001\n\027DeleteVpnGatewayRequest\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002B\r\n\013" + + "_request_id\"\243\001\n\026DeleteVpnTunnelRequest\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" + + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n\nvpn_tunnel\030\223\224\312D \001(\tB\003\340" + + "A\002B\r\n\013_request_id\"f\n\032DeleteZoneOperation" + + "Request\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A" + + "\002\"\035\n\033DeleteZoneOperationResponse\"J\n\006Deni" + + "ed\022\035\n\014I_p_protocol\030\275\366\336\350\001 \001(\tH\000\210\001\001\022\020\n\005por" + + "ts\030\222\360\3712 \003(\tB\017\n\r_I_p_protocol\"\326\001\n\025Depreca" + + "teImageRequest\022X\n\033deprecation_status_res" + + "ource\030\360\211\345\236\001 \001(\0132*.google.cloud.compute.v" + + "1.DeprecationStatusB\003\340A\002\022\025\n\005image\030\333\322\352/ \001" + + "(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" + + "st_id\"\277\002\n\021DeprecationStatus\022\030\n\007deleted\030\231" + + "\340\250\343\001 \001(\tH\000\210\001\001\022\033\n\ndeprecated\030\263\313\321\365\001 \001(\tH\001\210" + + "\001\001\022\031\n\010obsolete\030\231\213\305\252\001 \001(\tH\002\210\001\001\022\034\n\013replace" + + "ment\030\222\234\275\315\001 \001(\tH\003\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\004\210" + + "\001\001\"a\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTI" + + "VE\020\206\346\211\226\001\022\016\n\007DELETED\020\371\367\3269\022\022\n\nDEPRECATED\020\263" + + "\243\371\334\001\022\017\n\010OBSOLETE\020\231\353\334\037B\n\n\010_deletedB\r\n\013_de" + + "precatedB\013\n\t_obsoleteB\016\n\014_replacementB\010\n" + + "\006_state\"\275\001\n\031DetachDiskInstanceRequest\022\033\n" + + "\013device_name\030\324\265\232 \001(\tB\003\340A\002\022\030\n\010instance\030\225" + + "\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"" + + "\317\002\n7DetachNetworkEndpointsGlobalNetworkE" + + "ndpointGroupRequest\022\234\001\n@global_network_e" + + "ndpoint_groups_detach_endpoints_request_" + + "resource\030\335\215\237\004 \001(\0132J.google.cloud.compute" + + ".v1.GlobalNetworkEndpointGroupsDetachEnd" + + "pointsRequestB\003\340A\002\022\'\n\026network_endpoint_g" + + "roup\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001B\r\n\013_request_id\"\332\002\n1DetachNetworkEndpo" + + "intsNetworkEndpointGroupRequest\022\'\n\026netwo" + + "rk_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n9net" + + "work_endpoint_groups_detach_endpoints_re" + + "quest_resource\030\371\240\356\365\001 \001(\0132D.google.cloud." + + "compute.v1.NetworkEndpointGroupsDetachEn" + + "dpointsRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_requ" + + "est_id\"\361\002\n7DetachNetworkEndpointsRegionN" + + "etworkEndpointGroupRequest\022\'\n\026network_en" + + "dpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" + + "\tB\014\340A\002\362G\006region\022\235\001\n@region_network_endpo" + + "int_groups_detach_endpoints_request_reso" + + "urce\030\356\345\253\225\001 \001(\0132J.google.cloud.compute.v1" + + ".RegionNetworkEndpointGroupsDetachEndpoi" + + "ntsRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001B\r\n\013_request_id\"l\n\034DisableXpnHostProj" + + "ectRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_re" + + "quest_id\"\354\001\n DisableXpnResourceProjectRe" + + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022z\n.projects_disable_xpn_resource_reques" + + "t_resource\030\252\324\334c \001(\0132:.google.cloud.compu" + + "te.v1.ProjectsDisableXpnResourceRequestB" + + "\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" + + "uest_id\"\317\032\n\004Disk\022\033\n\013access_mode\030\236\367\317\023 \001(\t" + + "H\000\210\001\001\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n\022" + + "async_primary_disk\030\235\365\211V \001(\0132-.google.clo" + + "ud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022" + + "Y\n\025async_secondary_disks\030\250\350\375\231\001 \003(\01326.goo" + + "gle.cloud.compute.v1.Disk.AsyncSecondary" + + "DisksEntry\022\"\n\022creation_timestamp\030\266\217\307\016 \001(" + + "\tH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n\023" + + "disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.c" + + "loud.compute.v1.CustomerEncryptionKeyH\005\210" + + "\001\001\022+\n\033enable_confidential_compute\030\274\353\3310 \001" + + "(\010H\006\210\001\001\022E\n\021guest_os_features\030\321\340\347% \003(\0132\'." + + "google.cloud.compute.v1.GuestOsFeature\022\020" + + "\n\002id\030\233\032 \001(\004H\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022!" + + "\n\021label_fingerprint\030\231\360\367T \001(\tH\t\210\001\001\022=\n\006lab" + + "els\030\377\277\301\356\001 \003(\0132).google.cloud.compute.v1." + + "Disk.LabelsEntry\022%\n\025last_attach_timestam" + + "p\030\245\234\215\024 \001(\tH\n\210\001\001\022%\n\025last_detach_timestamp" + + "\030\363\333\366\032 \001(\tH\013\210\001\001\022\030\n\rlicense_codes\030\250\205\330\025 \003(\003" + + "\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\rlocation_hint\030" + + "\321\201\222\247\001 \001(\tH\014\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\r\210\001\001\022\030\n\007" + + "options\030\236\215\232\254\001 \001(\tH\016\210\001\001\022;\n\006params\030\206\363\253% \001(" + + "\0132#.google.cloud.compute.v1.DiskParamsH\017" + + "\210\001\001\022*\n\031physical_block_size_bytes\030\207\240\243\310\001 \001" + + "(\003H\020\210\001\001\022 \n\020provisioned_iops\030\324\275\207Y \001(\003H\021\210\001" + + "\001\022\'\n\026provisioned_throughput\030\225\276\210\373\001 \001(\003H\022\210" + + "\001\001\022\026\n\006region\030\364\315\240B \001(\tH\023\210\001\001\022\030\n\rreplica_zo" + + "nes\030\200\270\214\027 \003(\t\022\034\n\021resource_policies\030\341\234\314\n \003" + + "(\t\022L\n\017resource_status\030\303\372\367v \001(\0132+.google." + + "cloud.compute.v1.DiskResourceStatusH\024\210\001\001" + + "\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\rsati" + + "sfies_pzs\030\253\335\253\345\001 \001(\010H\026\210\001\001\022\032\n\tself_link\030\215\222" + + "\305\331\001 \001(\tH\027\210\001\001\022\030\n\007size_gb\030\331\213\200\354\001 \001(\003H\030\210\001\001\022/" + + "\n\037source_consistency_group_policy\030\335\242\255\t \001" + + "(\tH\031\210\001\001\0222\n\"source_consistency_group_poli" + + "cy_id\030\275\216\313\177 \001(\tH\032\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001" + + " \001(\tH\033\210\001\001\022\037\n\016source_disk_id\030\331\315\311\330\001 \001(\tH\034\210" + + "\001\001\022\034\n\014source_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n\033sour" + + "ce_image_encryption_key\030\253\221\365\265\001 \001(\0132..goog" + + "le.cloud.compute.v1.CustomerEncryptionKe" + + "yH\036\210\001\001\022\037\n\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022" + + "\'\n\027source_instant_snapshot\030\206\204\303h \001(\tH \210\001\001" + + "\022+\n\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\t" + + "H!\210\001\001\022\037\n\017source_snapshot\030\350\232\216< \001(\tH\"\210\001\001\022_" + + "\n\036source_snapshot_encryption_key\030\332\216\347\220\001 \001" + + "(\0132..google.cloud.compute.v1.CustomerEnc" + + "ryptionKeyH#\210\001\001\022\"\n\022source_snapshot_id\030\322\226" + + "\230/ \001(\tH$\210\001\001\022%\n\025source_storage_object\030\247\264\220" + + "o \001(\tH%\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH&\210\001\001\022\035\n\014st" + + "orage_pool\030\340\306\361\253\001 \001(\tH\'\210\001\001\022\024\n\004type\030\272\236\332\001 \001" + + "(\tH(\210\001\001\022\020\n\005users\030\210\234\2325 \003(\t\022\024\n\004zone\030\254\307\344\001 \001" + + "(\tH)\210\001\001\032m\n\030AsyncSecondaryDisksEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.cloud.c" + + "ompute.v1.DiskAsyncReplicationList:\0028\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"q\n\nAccessMode\022\031\n\025UNDEFINED_ACCESS_" + + "MODE\020\000\022\025\n\016READ_ONLY_MANY\020\251\247\241\036\022\027\n\017READ_WR" + + "ITE_MANY\020\250\302\206\351\001\022\030\n\021READ_WRITE_SINGLE\020\321\231\256/" + + "\"j\n\014Architecture\022\032\n\026UNDEFINED_ARCHITECTU" + + "RE\020\000\022 \n\030ARCHITECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014" + + "\n\005ARM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"\210\001\n\006Status\022" + + "\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022" + + "\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005REA" + + "DY\020\203\303\217%\022\021\n\tRESTORING\020\253\247\342\300\001\022\023\n\013UNAVAILABL" + + "E\020\260\330\245\305\001B\016\n\014_access_modeB\017\n\r_architecture" + + "B\025\n\023_async_primary_diskB\025\n\023_creation_tim" + + "estampB\016\n\014_descriptionB\026\n\024_disk_encrypti" + + "on_keyB\036\n\034_enable_confidential_computeB\005" + + "\n\003_idB\007\n\005_kindB\024\n\022_label_fingerprintB\030\n\026" + + "_last_attach_timestampB\030\n\026_last_detach_t" + + "imestampB\020\n\016_location_hintB\007\n\005_nameB\n\n\010_" + + "optionsB\t\n\007_paramsB\034\n\032_physical_block_si" + + "ze_bytesB\023\n\021_provisioned_iopsB\031\n\027_provis" + + "ioned_throughputB\t\n\007_regionB\022\n\020_resource" + + "_statusB\020\n\016_satisfies_pziB\020\n\016_satisfies_" + + "pzsB\014\n\n_self_linkB\n\n\010_size_gbB\"\n _source" + + "_consistency_group_policyB%\n#_source_con" + + "sistency_group_policy_idB\016\n\014_source_disk" + + "B\021\n\017_source_disk_idB\017\n\r_source_imageB\036\n\034" + + "_source_image_encryption_keyB\022\n\020_source_" + + "image_idB\032\n\030_source_instant_snapshotB\035\n\033" + + "_source_instant_snapshot_idB\022\n\020_source_s" + + "napshotB!\n\037_source_snapshot_encryption_k" + + "eyB\025\n\023_source_snapshot_idB\030\n\026_source_sto" + + "rage_objectB\t\n\007_statusB\017\n\r_storage_poolB" + + "\007\n\005_typeB\007\n\005_zone\"\255\003\n\022DiskAggregatedList" + + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022H\n\005items\030\300\317\367/ \003(\01326.g" + + "oogle.cloud.compute.v1.DiskAggregatedLis" + + "t.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + + "xt_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\004\210\001\001\032V\n\nItemsEntry\022\013\n\003key" + + "\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.google.cloud.com" + + "pute.v1.DisksScopedList:\0028\001B\005\n\003_idB\007\n\005_k" + + "indB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n" + + "\010_warning\"\355\001\n\024DiskAsyncReplication\022\'\n\030co" + + "nsistency_group_policy\030\271\303y \001(\tH\000\210\001\001\022+\n\033c" + + "onsistency_group_policy_id\030\341\222\276| \001(\tH\001\210\001\001" + + "\022\024\n\004disk\030\235\233\274\001 \001(\tH\002\210\001\001\022\027\n\007disk_id\030\375\305\212\035 \001" + + "(\tH\003\210\001\001B\033\n\031_consistency_group_policyB\036\n\034" + + "_consistency_group_policy_idB\007\n\005_diskB\n\n" + + "\010_disk_id\"\214\001\n\030DiskAsyncReplicationList\022U" + + "\n\026async_replication_disk\030\223\313\303n \001(\0132-.goog" + + "le.cloud.compute.v1.DiskAsyncReplication" + + "H\000\210\001\001B\031\n\027_async_replication_disk\"\244\003\n\027Dis" + + "kInstantiationConfig\022\034\n\013auto_delete\030\273\344\316\335" + + "\001 \001(\010H\000\210\001\001\022\034\n\014custom_image\030\215\376\345W \001(\tH\001\210\001\001" + + "\022\033\n\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022!\n\020instant" + + "iate_from\030\337\237\312\273\001 \001(\tH\003\210\001\001\"\306\001\n\017Instantiate" + + "From\022\036\n\032UNDEFINED_INSTANTIATE_FROM\020\000\022\030\n\020" + + "ATTACH_READ_ONLY\020\273\256\376\364\001\022\014\n\005BLANK\020\264\262\226\036\022\023\n\014" + + "CUSTOM_IMAGE\020\355\365\315]\022\016\n\007DEFAULT\020\241\304\3756\022\025\n\016DO_" + + "NOT_INCLUDE\020\310\202\3311\022\023\n\014SOURCE_IMAGE\020\227\340\356\035\022\032\n" + + "\023SOURCE_IMAGE_FAMILY\020\214\311\322$B\016\n\014_auto_delet" + + "eB\017\n\r_custom_imageB\016\n\014_device_nameB\023\n\021_i" + + "nstantiate_from\"\231\002\n\010DiskList\022\020\n\002id\030\233\032 \001(" + + "\tH\000\210\001\001\022/\n\005items\030\300\317\367/ \003(\0132\035.google.cloud." + + "compute.v1.Disk\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_l" - + "ink\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t " - + "\003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\004\210\001\001\032Z\n\nItemsEntry\022\013\n\003" - + "key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud." - + "compute.v1.DiskTypesScopedList:\0028\001B\005\n\003_i" - + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" - + "linkB\n\n\010_warning\"\241\002\n\014DiskTypeList\022\020\n\002id\030" - + "\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132!.google.c" - + "loud.compute.v1.DiskType\022\024\n\004kind\030\224\367\310\001 \001(" + + "ink\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 " + + ".google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_se" + + "lf_linkB\n\n\010_warning\"u\n\017DiskMoveRequest\022 " + + "\n\020destination_zone\030\275\342\357> \001(\tH\000\210\001\001\022\033\n\013targ" + + "et_disk\030\213\317\342\035 \001(\tH\001\210\001\001B\023\n\021_destination_zo" + + "neB\016\n\014_target_disk\"\251\001\n\nDiskParams\022_\n\025res" + + "ource_manager_tags\030\374\233\213\264\001 \003(\0132<.google.cl" + + "oud.compute.v1.DiskParams.ResourceManage" + + "rTagsEntry\032:\n\030ResourceManagerTagsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\372\002\n\022DiskR" + + "esourceStatus\022e\n\022async_primary_disk\030\235\365\211V" + + " \001(\0132A.google.cloud.compute.v1.DiskResou" + + "rceStatusAsyncReplicationStatusH\000\210\001\001\022g\n\025" + + "async_secondary_disks\030\250\350\375\231\001 \003(\0132D.google" + + ".cloud.compute.v1.DiskResourceStatus.Asy" + + "ncSecondaryDisksEntry\032}\n\030AsyncSecondaryD" + + "isksEntry\022\013\n\003key\030\001 \001(\t\022P\n\005value\030\002 \001(\0132A." + + "google.cloud.compute.v1.DiskResourceStat" + + "usAsyncReplicationStatus:\0028\001B\025\n\023_async_p" + + "rimary_disk\"\332\001\n(DiskResourceStatusAsyncR" + + "eplicationStatus\022\025\n\005state\030\221\211\2534 \001(\tH\000\210\001\001\"" + + "\214\001\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE" + + "\020\206\346\211\226\001\022\016\n\007CREATED\020\310\225\350@\022\020\n\010STARTING\020\300\240\213\351\001" + + "\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022\017\n\007STOPPED\020\255" + + "\273\354\323\001\022\020\n\010STOPPING\020\364\320\242\247\001B\010\n\006_state\"\204\004\n\010Dis" + + "kType\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001" + + "\001\022%\n\024default_disk_size_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001" + + "\022G\n\ndeprecated\030\263\313\321\365\001 \001(\0132*.google.cloud." + + "compute.v1.DeprecationStatusH\002\210\001\001\022\034\n\013des" + + "cription\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001" + + "\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\t" + + "H\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\010\210\001\001\022 \n\017valid_disk_size\030\340\211\305" + + "\353\001 \001(\tH\t\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\n\210\001\001B\025\n\023_cr" + + "eation_timestampB\027\n\025_default_disk_size_g" + + "bB\r\n\013_deprecatedB\016\n\014_descriptionB\005\n\003_idB" + + "\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_li" + + "nkB\022\n\020_valid_disk_sizeB\007\n\005_zone\"\271\003\n\026Disk" + + "TypeAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022L\n\005" + + "items\030\300\317\367/ \003(\0132:.google.cloud.compute.v1" + + ".DiskTypeAggregatedList.ItemsEntry\022\024\n\004ki" + + "nd\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206&" + + " \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + + "\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001" + + "\001\032Z\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 " + + "\001(\0132,.google.cloud.compute.v1.DiskTypesS" + + "copedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_p" + + "age_tokenB\014\n\n_self_linkB\n\n\010_warning\"\241\002\n\014" + + "DiskTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030" + + "\300\317\367/ \003(\0132!.google.cloud.compute.v1.DiskT" + + "ype\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" + + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"\226\001\n\023DiskTypesScopedList\0228\n\ndisk_" + + "types\030\327\276\355^ \003(\0132!.google.cloud.compute.v1" + + ".DiskType\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning" + + "\"?\n\037DisksAddResourcePoliciesRequest\022\034\n\021r" + + "esource_policies\030\341\234\314\n \003(\t\"B\n\"DisksRemove" + + "ResourcePoliciesRequest\022\034\n\021resource_poli" + + "cies\030\341\234\314\n \003(\t\":\n\022DisksResizeRequest\022\030\n\007s" + + "ize_gb\030\331\213\200\354\001 \001(\003H\000\210\001\001B\n\n\010_size_gb\"\211\001\n\017Di" + + "sksScopedList\022/\n\005disks\030\366\314\312- \003(\0132\035.google" + + ".cloud.compute.v1.Disk\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" + + "\001B\n\n\010_warning\"b\n!DisksStartAsyncReplicat" + + "ionRequest\022$\n\024async_secondary_disk\030\253\203\343> " + + "\001(\tH\000\210\001\001B\027\n\025_async_secondary_disk\"]\n&Dis" + + "ksStopGroupAsyncReplicationResource\022\037\n\017r" + + "esource_policy\030\203\245\367K \001(\tH\000\210\001\001B\022\n\020_resourc" + + "e_policy\"B\n\rDisplayDevice\022\036\n\016enable_disp" + + "lay\030\206\344\346\006 \001(\010H\000\210\001\001B\021\n\017_enable_display\"\201\002\n" + + "\022DistributionPolicy\022\035\n\014target_shape\030\363\346\273\241" + + "\001 \001(\tH\000\210\001\001\022N\n\005zones\030\307\244\2557 \003(\0132<.google.cl" + + "oud.compute.v1.DistributionPolicyZoneCon" + + "figuration\"k\n\013TargetShape\022\032\n\026UNDEFINED_T" + + "ARGET_SHAPE\020\000\022\t\n\003ANY\020\314\373\003\022\026\n\017ANY_SINGLE_Z" + + "ONE\020\320\246\221\035\022\020\n\010BALANCED\020\210\272\255\337\001\022\013\n\004EVEN\020\232\322\202\001B" + + "\017\n\r_target_shape\"D\n#DistributionPolicyZo" + + "neConfiguration\022\024\n\004zone\030\254\307\344\001 \001(\tH\000\210\001\001B\007\n" + + "\005_zone\"Q\n\010Duration\022\025\n\005nanos\030\277\270\3571 \001(\005H\000\210\001" + + "\001\022\030\n\007seconds\030\377\224\265\253\001 \001(\003H\001\210\001\001B\010\n\006_nanosB\n\n" + + "\010_seconds\"k\n\033EnableXpnHostProjectRequest" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\352" + + "\001\n\037EnableXpnResourceProjectRequest\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022y\n-project" + + "s_enable_xpn_resource_request_resource\030\257" + + "\320\233\311\001 \001(\01329.google.cloud.compute.v1.Proje" + + "ctsEnableXpnResourceRequestB\003\340A\002\022\032\n\nrequ", + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"<\n\005E" + + "rror\0223\n\006errors\030\353\336\325\226\001 \003(\0132\037.google.cloud." + + "compute.v1.Errors\"\327\002\n\014ErrorDetails\022>\n\ner" + + "ror_info\030\205\241\205\014 \001(\0132\".google.cloud.compute" + + ".v1.ErrorInfoH\000\210\001\001\0223\n\004help\030\301\236\303\001 \001(\0132\035.go" + + "ogle.cloud.compute.v1.HelpH\001\210\001\001\022M\n\021local" + + "ized_message\030\303\376\362\300\001 \001(\0132).google.cloud.co" + + "mpute.v1.LocalizedMessageH\002\210\001\001\022F\n\nquota_" + + "info\030\225\324\344, \001(\0132*.google.cloud.compute.v1." + + "QuotaExceededInfoH\003\210\001\001B\r\n\013_error_infoB\007\n" + + "\005_helpB\024\n\022_localized_messageB\r\n\013_quota_i" + + "nfo\"\315\001\n\tErrorInfo\022\027\n\006domain\030\304\251\317\207\001 \001(\tH\000\210" + + "\001\001\022G\n\tmetadatas\030\244\326\207\004 \003(\01321.google.cloud." + + "compute.v1.ErrorInfo.MetadatasEntry\022\026\n\006r" + + "eason\030\304\244\226B \001(\tH\001\210\001\001\0320\n\016MetadatasEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_domain" + + "B\t\n\007_reason\"\267\001\n\006Errors\022\024\n\004code\030\355\333\272\001 \001(\tH" + + "\000\210\001\001\022@\n\rerror_details\030\213\306\373\202\001 \003(\0132%.google" + + ".cloud.compute.v1.ErrorDetails\022\031\n\010locati" + + "on\030\265\277\276\212\001 \001(\tH\001\210\001\001\022\030\n\007message\030\207\200\254\307\001 \001(\tH\002" + + "\210\001\001B\007\n\005_codeB\013\n\t_locationB\n\n\010_message\"\335\002" + + "\n\025ExchangedPeeringRoute\022\033\n\ndest_range\030\340\262" + + "\352\265\001 \001(\tH\000\210\001\001\022\030\n\010imported\030\204\326\3146 \001(\010H\001\210\001\001\022\037" + + "\n\017next_hop_region\030\366\300\271: \001(\tH\002\210\001\001\022\031\n\010prior" + + "ity\030\244\363\241\324\001 \001(\rH\003\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\004\210\001\001" + + "\"u\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\035\n\025DYNAMIC_" + + "PEERING_ROUTE\020\252\200\202\340\001\022\034\n\024STATIC_PEERING_RO" + + "UTE\020\271\300\336\341\001\022\034\n\024SUBNET_PEERING_ROUTE\020\350\215\215\336\001B" + + "\r\n\013_dest_rangeB\013\n\t_importedB\022\n\020_next_hop" + + "_regionB\013\n\t_priorityB\007\n\005_type\"\274\002\n\032Exchan" + + "gedPeeringRoutesList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022@" + + "\n\005items\030\300\317\367/ \003(\0132..google.cloud.compute." + + "v1.ExchangedPeeringRoute\022\024\n\004kind\030\224\367\310\001 \001(" + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\226\001\n\023DiskTyp" - + "esScopedList\0228\n\ndisk_types\030\327\276\355^ \003(\0132!.go" - + "ogle.cloud.compute.v1.DiskType\0229\n\007warnin" - + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" - + "ningH\000\210\001\001B\n\n\010_warning\"?\n\037DisksAddResourc" - + "ePoliciesRequest\022\034\n\021resource_policies\030\341\234" - + "\314\n \003(\t\"B\n\"DisksRemoveResourcePoliciesReq" - + "uest\022\034\n\021resource_policies\030\341\234\314\n \003(\t\":\n\022Di" - + "sksResizeRequest\022\030\n\007size_gb\030\331\213\200\354\001 \001(\003H\000\210" - + "\001\001B\n\n\010_size_gb\"\211\001\n\017DisksScopedList\022/\n\005di" - + "sks\030\366\314\312- \003(\0132\035.google.cloud.compute.v1.D" - + "isk\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\000\210\001\001B\n\n\010_warning\"b\n!Di" - + "sksStartAsyncReplicationRequest\022$\n\024async" - + "_secondary_disk\030\253\203\343> \001(\tH\000\210\001\001B\027\n\025_async_" - + "secondary_disk\"]\n&DisksStopGroupAsyncRep" - + "licationResource\022\037\n\017resource_policy\030\203\245\367K" - + " \001(\tH\000\210\001\001B\022\n\020_resource_policy\"B\n\rDisplay" - + "Device\022\036\n\016enable_display\030\206\344\346\006 \001(\010H\000\210\001\001B\021" - + "\n\017_enable_display\"\201\002\n\022DistributionPolicy" - + "\022\035\n\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n\005zones" - + "\030\307\244\2557 \003(\0132<.google.cloud.compute.v1.Dist" - + "ributionPolicyZoneConfiguration\"k\n\013Targe" - + "tShape\022\032\n\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n\003AN" - + "Y\020\314\373\003\022\026\n\017ANY_SINGLE_ZONE\020\320\246\221\035\022\020\n\010BALANCE" - + "D\020\210\272\255\337\001\022\013\n\004EVEN\020\232\322\202\001B\017\n\r_target_shape\"D\n" - + "#DistributionPolicyZoneConfiguration\022\024\n\004" - + "zone\030\254\307\344\001 \001(\tH\000\210\001\001B\007\n\005_zone\"Q\n\010Duration\022" - + "\025\n\005nanos\030\277\270\3571 \001(\005H\000\210\001\001\022\030\n\007seconds\030\377\224\265\253\001 " - + "\001(\003H\001\210\001\001B\010\n\006_nanosB\n\n\010_seconds\"k\n\033Enable" - + "XpnHostProjectRequest\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001B\r\n\013_request_id\"\352\001\n\037EnableXpnResourc" - + "eProjectRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022y\n-projects_enable_xpn_resour" - + "ce_request_resource\030\257\320\233\311\001 \001(\01329.google.c" - + "loud.compute.v1.ProjectsEnableXpnResourc" - + "eRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001B\r\n\013_request_id\"<\n\005Error\0223\n\006errors\030\353\336\325\226" - + "\001 \003(\0132\037.google.cloud.compute.v1.Errors\"\327", - "\002\n\014ErrorDetails\022>\n\nerror_info\030\205\241\205\014 \001(\0132\"" - + ".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\022" - + "3\n\004help\030\301\236\303\001 \001(\0132\035.google.cloud.compute." - + "v1.HelpH\001\210\001\001\022M\n\021localized_message\030\303\376\362\300\001 " - + "\001(\0132).google.cloud.compute.v1.LocalizedM" - + "essageH\002\210\001\001\022F\n\nquota_info\030\225\324\344, \001(\0132*.goo" - + "gle.cloud.compute.v1.QuotaExceededInfoH\003" - + "\210\001\001B\r\n\013_error_infoB\007\n\005_helpB\024\n\022_localize" - + "d_messageB\r\n\013_quota_info\"\315\001\n\tErrorInfo\022\027" - + "\n\006domain\030\304\251\317\207\001 \001(\tH\000\210\001\001\022G\n\tmetadatas\030\244\326\207" - + "\004 \003(\01321.google.cloud.compute.v1.ErrorInf" - + "o.MetadatasEntry\022\026\n\006reason\030\304\244\226B \001(\tH\001\210\001\001" - + "\0320\n\016MetadatasEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001B\t\n\007_domainB\t\n\007_reason\"\267\001\n\006Err" - + "ors\022\024\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022@\n\rerror_detai" - + "ls\030\213\306\373\202\001 \003(\0132%.google.cloud.compute.v1.E" - + "rrorDetails\022\031\n\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022\030" - + "\n\007message\030\207\200\254\307\001 \001(\tH\002\210\001\001B\007\n\005_codeB\013\n\t_lo" - + "cationB\n\n\010_message\"\335\002\n\025ExchangedPeeringR" - + "oute\022\033\n\ndest_range\030\340\262\352\265\001 \001(\tH\000\210\001\001\022\030\n\010imp" - + "orted\030\204\326\3146 \001(\010H\001\210\001\001\022\037\n\017next_hop_region\030\366" - + "\300\271: \001(\tH\002\210\001\001\022\031\n\010priority\030\244\363\241\324\001 \001(\rH\003\210\001\001\022" - + "\024\n\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"u\n\004Type\022\022\n\016UNDEFIN" - + "ED_TYPE\020\000\022\035\n\025DYNAMIC_PEERING_ROUTE\020\252\200\202\340\001" - + "\022\034\n\024STATIC_PEERING_ROUTE\020\271\300\336\341\001\022\034\n\024SUBNET" - + "_PEERING_ROUTE\020\350\215\215\336\001B\r\n\013_dest_rangeB\013\n\t_" - + "importedB\022\n\020_next_hop_regionB\013\n\t_priorit" - + "yB\007\n\005_type\"\274\002\n\032ExchangedPeeringRoutesLis" - + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022@\n\005items\030\300\317\367/ \003(\0132.." - + "google.cloud.compute.v1.ExchangedPeering" - + "Route\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" - + "oud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_k" - + "indB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n" - + "\010_warning\"\263\002\n\"ExpandIpCidrRangeSubnetwor" - + "kRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nsubnetwork\030\356" - + "\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n1subnetworks_expand_ip_" - + "cidr_range_request_resource\030\336\320\272\343\001 \001(\0132<." - + "google.cloud.compute.v1.SubnetworksExpan" - + "dIpCidrRangeRequestB\003\340A\002B\r\n\013_request_id\"" - + "\251\001\n\004Expr\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033" - + "\n\nexpression\030\230\245\356\247\001 \001(\tH\001\210\001\001\022\031\n\010location\030" - + "\265\277\276\212\001 \001(\tH\002\210\001\001\022\025\n\005title\030\330\304\3204 \001(\tH\003\210\001\001B\016\n" - + "\014_descriptionB\r\n\013_expressionB\013\n\t_locatio" - + "nB\010\n\006_title\"\310\005\n\022ExternalVpnGateway\022\"\n\022cr" - + "eation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013descri" - + "ption\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022K" - + "\n\ninterfaces\030\332\364\340\005 \003(\01324.google.cloud.com" - + "pute.v1.ExternalVpnGatewayInterface\022\024\n\004k" - + "ind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n\021label_fingerprint\030\231" - + "\360\367T \001(\tH\004\210\001\001\022K\n\006labels\030\377\277\301\356\001 \003(\01327.googl" - + "e.cloud.compute.v1.ExternalVpnGateway.La" - + "belsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n\017redun" - + "dancy_type\030\234\316\267\201\001 \001(\tH\006\210\001\001\022\032\n\tself_link\030\215" - + "\222\305\331\001 \001(\tH\007\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\217\001\n\016RedundancyType\022" - + "\035\n\031UNDEFINED_REDUNDANCY_TYPE\020\000\022\033\n\023FOUR_I" - + "PS_REDUNDANCY\020\351\322\377\367\001\022%\n\036SINGLE_IP_INTERNA" - + "LLY_REDUNDANT\020\371\301\355?\022\032\n\022TWO_IPS_REDUNDANCY" - + "\020\243\367\202\257\001B\025\n\023_creation_timestampB\016\n\014_descri" - + "ptionB\005\n\003_idB\007\n\005_kindB\024\n\022_label_fingerpr" - + "intB\007\n\005_nameB\022\n\020_redundancy_typeB\014\n\n_sel" - + "f_link\"\222\001\n\033ExternalVpnGatewayInterface\022\020" - + "\n\002id\030\233\032 \001(\rH\000\210\001\001\022\033\n\nip_address\030\334\361\334\301\001 \001(\t" - + "H\001\210\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(\tH\002\210\001\001B\005\n\003" - + "_idB\r\n\013_ip_addressB\017\n\r_ipv6_address\"\324\002\n\026" - + "ExternalVpnGatewayList\022\024\n\004etag\030\225\322\276\001 \001(\tH" - + "\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022=\n\005items\030\300\317\367/ \003(\013" - + "2+.google.cloud.compute.v1.ExternalVpnGa" - + "teway\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\004\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" - + "oud.compute.v1.WarningH\005\210\001\001B\007\n\005_etagB\005\n\003" - + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" - + "f_linkB\n\n\010_warning\"\262\001\n\021FileContentBuffer" - + "\022\030\n\007content\030\371\350\334\305\001 \001(\tH\000\210\001\001\022\032\n\tfile_type\030" - + "\235\300\255\214\001 \001(\tH\001\210\001\001\"M\n\010FileType\022\027\n\023UNDEFINED_" - + "FILE_TYPE\020\000\022\t\n\003BIN\020\347\201\004\022\020\n\tUNDEFINED\020\260\342\335A" - + "\022\013\n\004X509\020\246\233\243\001B\n\n\010_contentB\014\n\n_file_type\"" - + "\320\006\n\010Firewall\0224\n\007allowed\030\250\203\270M \003(\0132 .googl" - + "e.cloud.compute.v1.Allowed\022\"\n\022creation_t" - + "imestamp\030\266\217\307\016 \001(\tH\000\210\001\001\0223\n\006denied\030\233\367\235\203\001 \003" - + "(\0132\037.google.cloud.compute.v1.Denied\022\034\n\013d" - + "escription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\036\n\022destination" - + "_ranges\030\247\270\342\221\001 \003(\t\022\031\n\tdirection\030\377\216\2005 \001(\tH" - + "\002\210\001\001\022\031\n\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\020\n\002id\030\233\032" - + " \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022G\n\nlog_c" - + "onfig\030\235\321\301\247\001 \001(\0132*.google.cloud.compute.v" - + "1.FirewallLogConfigH\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\007\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\010\210\001\001\022\031\n\010prior" - + "ity\030\244\363\241\324\001 \001(\005H\t\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" - + "\tH\n\210\001\001\022\030\n\rsource_ranges\030\372\376\264_ \003(\t\022\"\n\027sour" - + "ce_service_accounts\030\324\353\2162 \003(\t\022\027\n\013source_t" - + "ags\030\275\273\321\327\001 \003(\t\022#\n\027target_service_accounts" - + "\030\236\216\234\332\001 \003(\t\022\026\n\013target_tags\030\207\234\377\035 \003(\t\"E\n\tDi" - + "rection\022\027\n\023UNDEFINED_DIRECTION\020\000\022\016\n\006EGRE" - + "SS\020\365\366\264\316\001\022\017\n\007INGRESS\020\225\375\276\366\001B\025\n\023_creation_t" - + "imestampB\016\n\014_descriptionB\014\n\n_directionB\013" - + "\n\t_disabledB\005\n\003_idB\007\n\005_kindB\r\n\013_log_conf" - + "igB\007\n\005_nameB\n\n\010_networkB\013\n\t_priorityB\014\n\n" - + "_self_link\"\241\002\n\014FirewallList\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132!.google.cloud.c" - + "ompute.v1.Firewall\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001" - + "\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tsel" - + "f_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(" - + "\0132 .google.cloud.compute.v1.WarningH\004\210\001\001" - + "B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n\010_warning\"\275\001\n\021FirewallLogCo" - + "nfig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022\030\n\010metadat" - + "a\030\257\366\265) \001(\tH\001\210\001\001\"]\n\010Metadata\022\026\n\022UNDEFINED" - + "_METADATA\020\000\022\034\n\024EXCLUDE_ALL_METADATA\020\222\275\301\237" - + "\001\022\033\n\024INCLUDE_ALL_METADATA\020\204\315\277NB\t\n\007_enabl" - + "eB\013\n\t_metadata\"\227\001\n(FirewallPoliciesListA" - + "ssociationsResponse\022L\n\014associations\030\222\350\312\362" - + "\001 \003(\01322.google.cloud.compute.v1.Firewall" - + "PolicyAssociation\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B" - + "\007\n\005_kind\"\306\005\n\016FirewallPolicy\022L\n\014associati" - + "ons\030\222\350\312\362\001 \003(\01322.google.cloud.compute.v1." - + "FirewallPolicyAssociation\022\"\n\022creation_ti" - + "mestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326" - + "\311\001 \001(\tH\001\210\001\001\022\034\n\014display_name\030\350\207\221\002 \001(\tH\002\210\001" - + "\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 " - + "\001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213" - + "\365\315\001 \001(\tH\006\210\001\001\022\026\n\006parent\030\252\221\254% \001(\tH\007\210\001\001\022\026\n\006" - + "region\030\364\315\240B \001(\tH\010\210\001\001\022!\n\020rule_tuple_count" - + "\030\225\302\226\271\001 \001(\005H\t\210\001\001\022=\n\005rules\030\367\221\3653 \003(\0132+.goog" - + "le.cloud.compute.v1.FirewallPolicyRule\022\032" - + "\n\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022!\n\021self_link_" - + "with_id\030\202\254\235\025 \001(\tH\013\210\001\001\022\033\n\nshort_name\030\356\270\320\352" - + "\001 \001(\tH\014\210\001\001B\025\n\023_creation_timestampB\016\n\014_de" - + "scriptionB\017\n\r_display_nameB\016\n\014_fingerpri" - + "ntB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_parentB\t" - + "\n\007_regionB\023\n\021_rule_tuple_countB\014\n\n_self_" - + "linkB\024\n\022_self_link_with_idB\r\n\013_short_nam" - + "e\"\212\002\n\031FirewallPolicyAssociation\022!\n\021attac" - + "hment_target\030\255\260\350S \001(\tH\000\210\001\001\022\034\n\014display_na" - + "me\030\350\207\221\002 \001(\tH\001\210\001\001\022#\n\022firewall_policy_id\030\311" - + "\275\252\252\001 \001(\tH\002\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\003\210\001\001\022\033\n\ns" - + "hort_name\030\356\270\320\352\001 \001(\tH\004\210\001\001B\024\n\022_attachment_" - + "targetB\017\n\r_display_nameB\025\n\023_firewall_pol" - + "icy_idB\007\n\005_nameB\r\n\013_short_name\"\203\002\n\022Firew" - + "allPolicyList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items" - + "\030\300\317\367/ \003(\0132\'.google.cloud.compute.v1.Fire" - + "wallPolicy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next" - + "_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n\007warning\030\234\337\226" - + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" - + "\003\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_token" - + "B\n\n\010_warning\"\267\006\n\022FirewallPolicyRule\022\026\n\006a" - + "ction\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001" - + " \001(\tH\001\210\001\001\022\031\n\tdirection\030\377\216\2005 \001(\tH\002\210\001\001\022\031\n\010" - + "disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\037\n\016enable_loggin" - + "g\030\243\311\355\214\001 \001(\010H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022I" - + "\n\005match\030\305\263\2671 \001(\01322.google.cloud.compute." - + "v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n\010pri" - + "ority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022\031\n\trule_name\030\356\263\256\032 \001" - + "(\tH\010\210\001\001\022!\n\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210" - + "\001\001\022&\n\026security_profile_group\030\252\263\363b \001(\tH\n\210" - + "\001\001\022\034\n\020target_resources\030\367\321\360\373\001 \003(\t\022T\n\022targ" - + "et_secure_tags\030\263\304\234\337\001 \003(\01324.google.cloud." - + "compute.v1.FirewallPolicyRuleSecureTag\022#" - + "\n\027target_service_accounts\030\236\216\234\332\001 \003(\t\022\033\n\013t" - + "ls_inspect\030\320\275\332\024 \001(\010H\013\210\001\001\"E\n\tDirection\022\027\n" - + "\023UNDEFINED_DIRECTION\020\000\022\016\n\006EGRESS\020\365\366\264\316\001\022\017" - + "\n\007INGRESS\020\225\375\276\366\001B\t\n\007_actionB\016\n\014_descripti" - + "onB\014\n\n_directionB\013\n\t_disabledB\021\n\017_enable" - + "_loggingB\007\n\005_kindB\010\n\006_matchB\013\n\t_priority" - + "B\014\n\n_rule_nameB\023\n\021_rule_tuple_countB\031\n\027_" - + "security_profile_groupB\016\n\014_tls_inspect\"\370" - + "\003\n\031FirewallPolicyRuleMatcher\022\037\n\023dest_add" - + "ress_groups\030\274\357\302\337\001 \003(\t\022\026\n\ndest_fqdns\030\241\301\342\260" - + "\001 \003(\t\022\032\n\016dest_ip_ranges\030\221\327\356\240\001 \003(\t\022\034\n\021des" - + "t_region_codes\030\230\253\371^ \003(\t\022$\n\031dest_threat_i" - + "ntelligences\030\254\363\2259 \003(\t\022Z\n\016layer4_configs\030" - + "\265\334\216\262\001 \003(\0132>.google.cloud.compute.v1.Fire" - + "wallPolicyRuleMatcherLayer4Config\022\036\n\022src" - + "_address_groups\030\272\230\215\320\001 \003(\t\022\025\n\tsrc_fqdns\030\343" - + "\314\355\317\001 \003(\t\022\031\n\rsrc_ip_ranges\030\323\200\207\316\001 \003(\t\022\033\n\020s" - + "rc_region_codes\030\226\343\237/ \003(\t\022Q\n\017src_secure_t" - + "ags\030\206\224\316\362\001 \003(\01324.google.cloud.compute.v1." - + "FirewallPolicyRuleSecureTag\022$\n\030src_threa" - + "t_intelligences\030\252\357\250\232\001 \003(\t\"g\n%FirewallPol" - + "icyRuleMatcherLayer4Config\022\034\n\013ip_protoco" - + "l\030\260\235\372\342\001 \001(\tH\000\210\001\001\022\020\n\005ports\030\222\360\3712 \003(\tB\016\n\014_i" - + "p_protocol\"\242\001\n\033FirewallPolicyRuleSecureT" - + "ag\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n\005state\030\221\211\2534 \001" - + "(\tH\001\210\001\001\"C\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\020\n" - + "\tEFFECTIVE\020\207\363\270t\022\023\n\013INEFFECTIVE\020\202\324\226\221\001B\007\n\005" - + "_nameB\010\n\006_state\"\203\001\n\016FixedOrPercent\022\033\n\nca" - + "lculated\030\276\323\215\341\001 \001(\005H\000\210\001\001\022\025\n\005fixed\030\364\316\273. \001(" - + "\005H\001\210\001\001\022\030\n\007percent\030\305\310\241\274\001 \001(\005H\002\210\001\001B\r\n\013_cal" - + "culatedB\010\n\006_fixedB\n\n\010_percent\"\236\024\n\016Forwar" - + "dingRule\022\033\n\013I_p_address\030\257\215\277\024 \001(\tH\000\210\001\001\022\035\n" - + "\014I_p_protocol\030\275\366\336\350\001 \001(\tH\001\210\001\001\022\032\n\tall_port" - + "s\030\364\257\243\324\001 \001(\010H\002\210\001\001\022$\n\023allow_global_access\030" - + "\212\306\221\356\001 \001(\010H\003\210\001\001\022\'\n\027allow_psc_global_acces" - + "s\030\313\205\321} \001(\010H\004\210\001\001\022 \n\017backend_service\030\212\300\256\222\001" - + " \001(\tH\005\210\001\001\022%\n\024base_forwarding_rule\030\220\333\243\372\001 " - + "\001(\tH\006\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH" - + "\007\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\010\210\001\001\022\033\n\013fi" - + "ngerprint\030\344\321\363o \001(\tH\t\210\001\001\022\020\n\002id\030\233\032 \001(\004H\n\210\001" - + "\001\022\035\n\rip_collection\030\266\221\250T \001(\tH\013\210\001\001\022\033\n\nip_v" - + "ersion\030\300\363\322\214\001 \001(\tH\014\210\001\001\022&\n\026is_mirroring_co" - + "llector\030\374\340\3568 \001(\010H\r\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\016" - + "\210\001\001\022!\n\021label_fingerprint\030\231\360\367T \001(\tH\017\210\001\001\022G" - + "\n\006labels\030\377\277\301\356\001 \003(\01323.google.cloud.comput" - + "e.v1.ForwardingRule.LabelsEntry\022&\n\025load_" - + "balancing_scheme\030\304\214\302\255\001 \001(\tH\020\210\001\001\022E\n\020metad" - + "ata_filters\030\353\315\314\335\001 \003(\0132\'.google.cloud.com" - + "pute.v1.MetadataFilter\022\024\n\004name\030\213\365\315\001 \001(\tH" - + "\021\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\022\210\001\001\022\035\n\014network" - + "_tier\030\323\272\333\366\001 \001(\tH\023\210\001\001\022$\n\024no_automate_dns_" - + "zone\030\257\321\343\036 \001(\010H\024\210\001\001\022\032\n\nport_range\030\377\237\334g \001(" - + "\tH\025\210\001\001\022\020\n\005ports\030\222\360\3712 \003(\t\022\"\n\021psc_connecti" - + "on_id\030\335\245\243\213\001 \001(\004H\026\210\001\001\022%\n\025psc_connection_s" - + "tatus\030\264\311\347W \001(\tH\027\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\030" - + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\031\210\001\001\022o\n\037servi" - + "ce_directory_registrations\030\376\261\314j \003(\0132C.go" - + "ogle.cloud.compute.v1.ForwardingRuleServ" - + "iceDirectoryRegistration\022\036\n\rservice_labe" - + "l\030\352\231\354\306\001 \001(\tH\032\210\001\001\022\035\n\014service_name\030\325\253\315\253\001 \001" - + "(\tH\033\210\001\001\022\033\n\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" - + "subnetwork\030\356\247\344\222\001 \001(\tH\034\210\001\001\022\026\n\006target\030\221\343\371[" - + " \001(\tH\035\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\210\001\n\016IPProtocolEnum\022\037\n\033U" - + "NDEFINED_I_P_PROTOCOL_ENUM\020\000\022\007\n\002AH\020\247\020\022\t\n" - + "\003ESP\020\342\232\004\022\013\n\004ICMP\020\275\350\210\001\022\021\n\nL3_DEFAULT\020\311\366\372\026" - + "\022\013\n\004SCTP\020\314\201\233\001\022\t\n\003TCP\020\301\207\005\022\t\n\003UDP\020\241\217\005\"[\n\tI" - + "pVersion\022\030\n\024UNDEFINED_IP_VERSION\020\000\022\013\n\004IP" - + "V4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\022\032\n\023UNSPECIFIED_VERS" - + "ION\020\220\317\265\n\"\277\001\n\023LoadBalancingScheme\022#\n\037UNDE" - + "FINED_LOAD_BALANCING_SCHEME\020\000\022\017\n\010EXTERNA" - + "L\020\313\247\375\020\022\030\n\020EXTERNAL_MANAGED\020\213\266\222\364\001\022\020\n\010INTE" - + "RNAL\020\275\355\226\205\001\022\027\n\020INTERNAL_MANAGED\020\375\327\347\021\022\034\n\025I" - + "NTERNAL_SELF_MANAGED\020\316\227\321p\022\017\n\007INVALID\020\327\373\355" - + "\374\001\"\217\001\n\013NetworkTier\022\032\n\026UNDEFINED_NETWORK_" - + "TIER\020\000\022\026\n\016FIXED_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIU" - + "M\020\267\264\301\276\001\022\020\n\010STANDARD\020\275\235\214\347\001\022)\n!STANDARD_OV" - + "ERRIDES_FIXED_STANDARD\020\302\207\221\336\001\"\260\001\n\023PscConn" - + "ectionStatus\022#\n\037UNDEFINED_PSC_CONNECTION" - + "_STATUS\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243" - + "\265\001\022\027\n\017NEEDS_ATTENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367" - + "\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022\031\n\022STATUS_UNSPECIFI" - + "ED\020\312\314\213\024B\016\n\014_I_p_addressB\017\n\r_I_p_protocol" - + "B\014\n\n_all_portsB\026\n\024_allow_global_accessB\032" - + "\n\030_allow_psc_global_accessB\022\n\020_backend_s" - + "erviceB\027\n\025_base_forwarding_ruleB\025\n\023_crea" - + "tion_timestampB\016\n\014_descriptionB\016\n\014_finge" - + "rprintB\005\n\003_idB\020\n\016_ip_collectionB\r\n\013_ip_v" - + "ersionB\031\n\027_is_mirroring_collectorB\007\n\005_ki" - + "ndB\024\n\022_label_fingerprintB\030\n\026_load_balanc" - + "ing_schemeB\007\n\005_nameB\n\n\010_networkB\017\n\r_netw" - + "ork_tierB\027\n\025_no_automate_dns_zoneB\r\n\013_po" - + "rt_rangeB\024\n\022_psc_connection_idB\030\n\026_psc_c" - + "onnection_statusB\t\n\007_regionB\014\n\n_self_lin" - + "kB\020\n\016_service_labelB\017\n\r_service_nameB\r\n\013" - + "_subnetworkB\t\n\007_target\"\313\003\n\034ForwardingRul" - + "eAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005ite" - + "ms\030\300\317\367/ \003(\0132@.google.cloud.compute.v1.Fo" - + "rwardingRuleAggregatedList.ItemsEntry\022\024\n" + + "enB\014\n\n_self_linkB\n\n\010_warning\"\263\002\n\"ExpandI" + + "pCidrRangeSubnetworkRequest\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" + + "\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n1sub" + + "networks_expand_ip_cidr_range_request_re" + + "source\030\336\320\272\343\001 \001(\0132<.google.cloud.compute." + + "v1.SubnetworksExpandIpCidrRangeRequestB\003" + + "\340A\002B\r\n\013_request_id\"\251\001\n\004Expr\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n\nexpression\030\230\245\356\247\001 \001(" + + "\tH\001\210\001\001\022\031\n\010location\030\265\277\276\212\001 \001(\tH\002\210\001\001\022\025\n\005tit" + + "le\030\330\304\3204 \001(\tH\003\210\001\001B\016\n\014_descriptionB\r\n\013_exp" + + "ressionB\013\n\t_locationB\010\n\006_title\"\310\005\n\022Exter" + + "nalVpnGateway\022\"\n\022creation_timestamp\030\266\217\307\016" + + " \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022" + + "\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022K\n\ninterfaces\030\332\364\340\005 \003(\013" + + "24.google.cloud.compute.v1.ExternalVpnGa" + + "tewayInterface\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n\021" + + "label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n\006label" + + "s\030\377\277\301\356\001 \003(\01327.google.cloud.compute.v1.Ex" + + "ternalVpnGateway.LabelsEntry\022\024\n\004name\030\213\365\315" + + "\001 \001(\tH\005\210\001\001\022 \n\017redundancy_type\030\234\316\267\201\001 \001(\tH" + + "\006\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\217\001\n\016RedundancyType\022\035\n\031UNDEFINED_REDUNDAN" + + "CY_TYPE\020\000\022\033\n\023FOUR_IPS_REDUNDANCY\020\351\322\377\367\001\022%" + + "\n\036SINGLE_IP_INTERNALLY_REDUNDANT\020\371\301\355?\022\032\n" + + "\022TWO_IPS_REDUNDANCY\020\243\367\202\257\001B\025\n\023_creation_t" + + "imestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kind" + + "B\024\n\022_label_fingerprintB\007\n\005_nameB\022\n\020_redu" + + "ndancy_typeB\014\n\n_self_link\"\222\001\n\033ExternalVp" + + "nGatewayInterface\022\020\n\002id\030\233\032 \001(\rH\000\210\001\001\022\033\n\ni" + + "p_address\030\334\361\334\301\001 \001(\tH\001\210\001\001\022\035\n\014ipv6_address" + + "\030\234\263\357\242\001 \001(\tH\002\210\001\001B\005\n\003_idB\r\n\013_ip_addressB\017\n" + + "\r_ipv6_address\"\324\002\n\026ExternalVpnGatewayLis" + + "t\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001" + + "\001\022=\n\005items\030\300\317\367/ \003(\0132+.google.cloud.compu" + + "te.v1.ExternalVpnGateway\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n\007warning\030\234" + + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" + + "gH\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_next" + + "_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\262\001" + + "\n\021FileContentBuffer\022\030\n\007content\030\371\350\334\305\001 \001(\t" + + "H\000\210\001\001\022\032\n\tfile_type\030\235\300\255\214\001 \001(\tH\001\210\001\001\"M\n\010Fil" + + "eType\022\027\n\023UNDEFINED_FILE_TYPE\020\000\022\t\n\003BIN\020\347\201" + + "\004\022\020\n\tUNDEFINED\020\260\342\335A\022\013\n\004X509\020\246\233\243\001B\n\n\010_con" + + "tentB\014\n\n_file_type\"\320\006\n\010Firewall\0224\n\007allow" + + "ed\030\250\203\270M \003(\0132 .google.cloud.compute.v1.Al" + + "lowed\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001" + + "\001\0223\n\006denied\030\233\367\235\203\001 \003(\0132\037.google.cloud.com" + + "pute.v1.Denied\022\034\n\013description\030\374\207\326\311\001 \001(\tH" + + "\001\210\001\001\022\036\n\022destination_ranges\030\247\270\342\221\001 \003(\t\022\031\n\t" + + "direction\030\377\216\2005 \001(\tH\002\210\001\001\022\031\n\010disabled\030\374\364\230\201" + + "\001 \001(\010H\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\005\210\001\001\022G\n\nlog_config\030\235\321\301\247\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.FirewallLogConfigH\006" + + "\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n\007network\030\256\264\205" + + "o \001(\tH\010\210\001\001\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\t\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022\030\n\rsource_rang" + + "es\030\372\376\264_ \003(\t\022\"\n\027source_service_accounts\030\324" + + "\353\2162 \003(\t\022\027\n\013source_tags\030\275\273\321\327\001 \003(\t\022#\n\027targ" + + "et_service_accounts\030\236\216\234\332\001 \003(\t\022\026\n\013target_" + + "tags\030\207\234\377\035 \003(\t\"E\n\tDirection\022\027\n\023UNDEFINED_" + + "DIRECTION\020\000\022\016\n\006EGRESS\020\365\366\264\316\001\022\017\n\007INGRESS\020\225" + + "\375\276\366\001B\025\n\023_creation_timestampB\016\n\014_descript" + + "ionB\014\n\n_directionB\013\n\t_disabledB\005\n\003_idB\007\n" + + "\005_kindB\r\n\013_log_configB\007\n\005_nameB\n\n\010_netwo" + + "rkB\013\n\t_priorityB\014\n\n_self_link\"\241\002\n\014Firewa" + + "llList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003" + + "(\0132!.google.cloud.compute.v1.Firewall\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225" + "\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001" - + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" - + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" - + "\004\210\001\001\032`\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value" - + "\030\002 \001(\01322.google.cloud.compute.v1.Forward" - + "ingRulesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022" - + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" - + "ning\"\255\002\n\022ForwardingRuleList\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.c" - + "ompute.v1.ForwardingRule\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"O\n\027Forwardi" - + "ngRuleReference\022 \n\017forwarding_rule\030\376\245\335\200\001" - + " \001(\tH\000\210\001\001B\022\n\020_forwarding_rule\"\302\001\n*Forwar" - + "dingRuleServiceDirectoryRegistration\022\031\n\t" - + "namespace\030\333\252\215U \001(\tH\000\210\001\001\022\030\n\007service\030\265\215\217\262\001" - + " \001(\tH\001\210\001\001\022(\n\030service_directory_region\030\320\272" - + "\246# \001(\tH\002\210\001\001B\014\n\n_namespaceB\n\n\010_serviceB\033\n" - + "\031_service_directory_region\"\251\001\n\031Forwardin" - + "gRulesScopedList\022E\n\020forwarding_rules\030\265\232\314" - + "\226\001 \003(\0132\'.google.cloud.compute.v1.Forward" - + "ingRule\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" - + "ud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\315" - + "\002\n\017GRPCHealthCheck\022!\n\021grpc_service_name\030" - + "\326\250\215A \001(\tH\000\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tp" - + "ort_name\030\211\207\347\023 \001(\tH\002\210\001\001\022\"\n\022port_specifica" - + "tion\030\305\353\314\030 \001(\tH\003\210\001\001\"~\n\021PortSpecification\022" - + " \n\034UNDEFINED_PORT_SPECIFICATION\020\000\022\025\n\016USE" - + "_FIXED_PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001" - + "\022\030\n\020USE_SERVING_PORT\020\314\321\365\254\001B\024\n\022_grpc_serv" - + "ice_nameB\007\n\005_portB\014\n\n_port_nameB\025\n\023_port" - + "_specification\"l\n\031GetAcceleratorTypeRequ" - + "est\022 \n\020accelerator_type\030\216\341\350A \001(\tB\003\340A\002\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB" - + "\003\340A\002\"^\n\021GetAddressRequest\022\030\n\007address\030\364\267\336" - + "\334\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" - + "region\030\364\315\240B \001(\tB\003\340A\002\"f\n#GetAssociationFi" - + "rewallPolicyRequest\022 \n\017firewall_policy\030\321" - + "\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n\005_" - + "name\"\206\001\n*GetAssociationNetworkFirewallPo" - + "licyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\t" - + "B\003\340A\002\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002B\007\n\005_name\"\244\001\n0GetAssociation" - + "RegionNetworkFirewallPolicyRequest\022 \n\017fi" - + "rewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" - + "egion\030\364\315\240B \001(\tB\003\340A\002B\007\n\005_name\"b\n\024GetAutos" - + "calerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tB\003\340A" - + "\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 " - + "\001(\tB\003\340A\002\"R\n\027GetBackendBucketRequest\022\036\n\016b" - + "ackend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\"U\n\030GetBackendServiceRequest" - + "\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\"Z\n!GetDiagnosticsInt" - + "erconnectRequest\022\034\n\014interconnect\030\216\311\214k \001(" - + "\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"U\n\016GetDi" - + "skRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"^" - + "\n\022GetDiskTypeRequest\022\031\n\tdisk_type\030\234\351\254, \001" - + "(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone" - + "\030\254\307\344\001 \001(\tB\003\340A\002\"\223\001\n$GetEffectiveFirewalls" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_" + + "next_page_tokenB\014\n\n_self_linkB\n\n\010_warnin" + + "g\"\275\001\n\021FirewallLogConfig\022\027\n\006enable\030\203\313\324\224\001 " + + "\001(\010H\000\210\001\001\022\030\n\010metadata\030\257\366\265) \001(\tH\001\210\001\001\"]\n\010Me" + + "tadata\022\026\n\022UNDEFINED_METADATA\020\000\022\034\n\024EXCLUD" + + "E_ALL_METADATA\020\222\275\301\237\001\022\033\n\024INCLUDE_ALL_META" + + "DATA\020\204\315\277NB\t\n\007_enableB\013\n\t_metadata\"\227\001\n(Fi" + + "rewallPoliciesListAssociationsResponse\022L" + + "\n\014associations\030\222\350\312\362\001 \003(\01322.google.cloud." + + "compute.v1.FirewallPolicyAssociation\022\024\n\004" + + "kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n\005_kind\"\306\005\n\016Firewall" + + "Policy\022L\n\014associations\030\222\350\312\362\001 \003(\01322.googl" + + "e.cloud.compute.v1.FirewallPolicyAssocia" + + "tion\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001" + + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\014displa" + + "y_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n\013fingerprint\030\344\321\363o" + + " \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001" + + " \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\026\n\006paren" + + "t\030\252\221\254% \001(\tH\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022" + + "!\n\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022=\n\005ru" + + "les\030\367\221\3653 \003(\0132+.google.cloud.compute.v1.F" + + "irewallPolicyRule\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" + + "H\n\210\001\001\022!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\013\210\001\001" + + "\022\033\n\nshort_name\030\356\270\320\352\001 \001(\tH\014\210\001\001B\025\n\023_creati" + + "on_timestampB\016\n\014_descriptionB\017\n\r_display" + + "_nameB\016\n\014_fingerprintB\005\n\003_idB\007\n\005_kindB\007\n" + + "\005_nameB\t\n\007_parentB\t\n\007_regionB\023\n\021_rule_tu" + + "ple_countB\014\n\n_self_linkB\024\n\022_self_link_wi" + + "th_idB\r\n\013_short_name\"\212\002\n\031FirewallPolicyA" + + "ssociation\022!\n\021attachment_target\030\255\260\350S \001(\t" + + "H\000\210\001\001\022\034\n\014display_name\030\350\207\221\002 \001(\tH\001\210\001\001\022#\n\022f" + + "irewall_policy_id\030\311\275\252\252\001 \001(\tH\002\210\001\001\022\024\n\004name" + + "\030\213\365\315\001 \001(\tH\003\210\001\001\022\033\n\nshort_name\030\356\270\320\352\001 \001(\tH\004" + + "\210\001\001B\024\n\022_attachment_targetB\017\n\r_display_na" + + "meB\025\n\023_firewall_policy_idB\007\n\005_nameB\r\n\013_s" + + "hort_name\"\203\002\n\022FirewallPolicyList\022\020\n\002id\030\233" + + "\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.cl" + + "oud.compute.v1.FirewallPolicy\022\024\n\004kind\030\224\367" + + "\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" + + "\002\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\003\210\001\001B\005\n\003_idB\007\n\005_kindB" + + "\022\n\020_next_page_tokenB\n\n\010_warning\"\267\006\n\022Fire" + + "wallPolicyRule\022\026\n\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034" + + "\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\031\n\tdirectio" + + "n\030\377\216\2005 \001(\tH\002\210\001\001\022\031\n\010disabled\030\374\364\230\201\001 \001(\010H\003\210" + + "\001\001\022\037\n\016enable_logging\030\243\311\355\214\001 \001(\010H\004\210\001\001\022\024\n\004k" + + "ind\030\224\367\310\001 \001(\tH\005\210\001\001\022I\n\005match\030\305\263\2671 \001(\01322.go" + + "ogle.cloud.compute.v1.FirewallPolicyRule" + + "MatcherH\006\210\001\001\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022" + + "\031\n\trule_name\030\356\263\256\032 \001(\tH\010\210\001\001\022!\n\020rule_tuple" + + "_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022&\n\026security_profil" + + "e_group\030\252\263\363b \001(\tH\n\210\001\001\022\034\n\020target_resource" + + "s\030\367\321\360\373\001 \003(\t\022T\n\022target_secure_tags\030\263\304\234\337\001 " + + "\003(\01324.google.cloud.compute.v1.FirewallPo" + + "licyRuleSecureTag\022#\n\027target_service_acco" + + "unts\030\236\216\234\332\001 \003(\t\022\033\n\013tls_inspect\030\320\275\332\024 \001(\010H\013" + + "\210\001\001\"E\n\tDirection\022\027\n\023UNDEFINED_DIRECTION\020" + + "\000\022\016\n\006EGRESS\020\365\366\264\316\001\022\017\n\007INGRESS\020\225\375\276\366\001B\t\n\007_a" + + "ctionB\016\n\014_descriptionB\014\n\n_directionB\013\n\t_" + + "disabledB\021\n\017_enable_loggingB\007\n\005_kindB\010\n\006" + + "_matchB\013\n\t_priorityB\014\n\n_rule_nameB\023\n\021_ru" + + "le_tuple_countB\031\n\027_security_profile_grou" + + "pB\016\n\014_tls_inspect\"\370\003\n\031FirewallPolicyRule" + + "Matcher\022\037\n\023dest_address_groups\030\274\357\302\337\001 \003(\t" + + "\022\026\n\ndest_fqdns\030\241\301\342\260\001 \003(\t\022\032\n\016dest_ip_rang" + + "es\030\221\327\356\240\001 \003(\t\022\034\n\021dest_region_codes\030\230\253\371^ \003" + + "(\t\022$\n\031dest_threat_intelligences\030\254\363\2259 \003(\t" + + "\022Z\n\016layer4_configs\030\265\334\216\262\001 \003(\0132>.google.cl" + + "oud.compute.v1.FirewallPolicyRuleMatcher" + + "Layer4Config\022\036\n\022src_address_groups\030\272\230\215\320\001" + + " \003(\t\022\025\n\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\rsrc_ip_ra" + + "nges\030\323\200\207\316\001 \003(\t\022\033\n\020src_region_codes\030\226\343\237/ " + + "\003(\t\022Q\n\017src_secure_tags\030\206\224\316\362\001 \003(\01324.googl" + + "e.cloud.compute.v1.FirewallPolicyRuleSec" + + "ureTag\022$\n\030src_threat_intelligences\030\252\357\250\232\001" + + " \003(\t\"g\n%FirewallPolicyRuleMatcherLayer4C" + + "onfig\022\034\n\013ip_protocol\030\260\235\372\342\001 \001(\tH\000\210\001\001\022\020\n\005p" + + "orts\030\222\360\3712 \003(\tB\016\n\014_ip_protocol\"\242\001\n\033Firewa" + + "llPolicyRuleSecureTag\022\024\n\004name\030\213\365\315\001 \001(\tH\000" + + "\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\001\210\001\001\"C\n\005State\022\023\n\017U" + + "NDEFINED_STATE\020\000\022\020\n\tEFFECTIVE\020\207\363\270t\022\023\n\013IN" + + "EFFECTIVE\020\202\324\226\221\001B\007\n\005_nameB\010\n\006_state\"\203\001\n\016F" + + "ixedOrPercent\022\033\n\ncalculated\030\276\323\215\341\001 \001(\005H\000\210" + + "\001\001\022\025\n\005fixed\030\364\316\273. \001(\005H\001\210\001\001\022\030\n\007percent\030\305\310\241" + + "\274\001 \001(\005H\002\210\001\001B\r\n\013_calculatedB\010\n\006_fixedB\n\n\010" + + "_percent\"\236\024\n\016ForwardingRule\022\033\n\013I_p_addre" + + "ss\030\257\215\277\024 \001(\tH\000\210\001\001\022\035\n\014I_p_protocol\030\275\366\336\350\001 \001" + + "(\tH\001\210\001\001\022\032\n\tall_ports\030\364\257\243\324\001 \001(\010H\002\210\001\001\022$\n\023a" + + "llow_global_access\030\212\306\221\356\001 \001(\010H\003\210\001\001\022\'\n\027all" + + "ow_psc_global_access\030\313\205\321} \001(\010H\004\210\001\001\022 \n\017ba" + + "ckend_service\030\212\300\256\222\001 \001(\tH\005\210\001\001\022%\n\024base_for" + + "warding_rule\030\220\333\243\372\001 \001(\tH\006\210\001\001\022\"\n\022creation_" + + "timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022\034\n\013description\030\374" + + "\207\326\311\001 \001(\tH\010\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\t\210" + + "\001\001\022\020\n\002id\030\233\032 \001(\004H\n\210\001\001\022\035\n\rip_collection\030\266\221" + + "\250T \001(\tH\013\210\001\001\022\033\n\nip_version\030\300\363\322\214\001 \001(\tH\014\210\001\001" + + "\022&\n\026is_mirroring_collector\030\374\340\3568 \001(\010H\r\210\001\001" + + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\016\210\001\001\022!\n\021label_fingerpr" + + "int\030\231\360\367T \001(\tH\017\210\001\001\022G\n\006labels\030\377\277\301\356\001 \003(\01323." + + "google.cloud.compute.v1.ForwardingRule.L" + + "abelsEntry\022&\n\025load_balancing_scheme\030\304\214\302\255" + + "\001 \001(\tH\020\210\001\001\022E\n\020metadata_filters\030\353\315\314\335\001 \003(\013" + + "2\'.google.cloud.compute.v1.MetadataFilte" + + "r\022\024\n\004name\030\213\365\315\001 \001(\tH\021\210\001\001\022\027\n\007network\030\256\264\205o " + + "\001(\tH\022\210\001\001\022\035\n\014network_tier\030\323\272\333\366\001 \001(\tH\023\210\001\001\022" + + "$\n\024no_automate_dns_zone\030\257\321\343\036 \001(\010H\024\210\001\001\022\032\n" + + "\nport_range\030\377\237\334g \001(\tH\025\210\001\001\022\020\n\005ports\030\222\360\3712 " + + "\003(\t\022\"\n\021psc_connection_id\030\335\245\243\213\001 \001(\004H\026\210\001\001\022" + + "%\n\025psc_connection_status\030\264\311\347W \001(\tH\027\210\001\001\022\026" + + "\n\006region\030\364\315\240B \001(\tH\030\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\031\210\001\001\022o\n\037service_directory_registra" + + "tions\030\376\261\314j \003(\0132C.google.cloud.compute.v1" + + ".ForwardingRuleServiceDirectoryRegistrat" + + "ion\022\036\n\rservice_label\030\352\231\354\306\001 \001(\tH\032\210\001\001\022\035\n\014s" + + "ervice_name\030\325\253\315\253\001 \001(\tH\033\210\001\001\022\033\n\020source_ip_" + + "ranges\030\312\243\2315 \003(\t\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH" + + "\034\210\001\001\022\026\n\006target\030\221\343\371[ \001(\tH\035\210\001\001\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\210\001\n\016" + + "IPProtocolEnum\022\037\n\033UNDEFINED_I_P_PROTOCOL" + + "_ENUM\020\000\022\007\n\002AH\020\247\020\022\t\n\003ESP\020\342\232\004\022\013\n\004ICMP\020\275\350\210\001" + + "\022\021\n\nL3_DEFAULT\020\311\366\372\026\022\013\n\004SCTP\020\314\201\233\001\022\t\n\003TCP\020" + + "\301\207\005\022\t\n\003UDP\020\241\217\005\"[\n\tIpVersion\022\030\n\024UNDEFINED" + + "_IP_VERSION\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\022" + + "\032\n\023UNSPECIFIED_VERSION\020\220\317\265\n\"\277\001\n\023LoadBala" + + "ncingScheme\022#\n\037UNDEFINED_LOAD_BALANCING_" + + "SCHEME\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\030\n\020EXTERNAL_MA" + + "NAGED\020\213\266\222\364\001\022\020\n\010INTERNAL\020\275\355\226\205\001\022\027\n\020INTERNA" + + "L_MANAGED\020\375\327\347\021\022\034\n\025INTERNAL_SELF_MANAGED\020" + + "\316\227\321p\022\017\n\007INVALID\020\327\373\355\374\001\"\217\001\n\013NetworkTier\022\032\n" + + "\026UNDEFINED_NETWORK_TIER\020\000\022\026\n\016FIXED_STAND" + + "ARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STANDARD\020\275" + + "\235\214\347\001\022)\n!STANDARD_OVERRIDES_FIXED_STANDAR" + + "D\020\302\207\221\336\001\"\260\001\n\023PscConnectionStatus\022#\n\037UNDEF" + + "INED_PSC_CONNECTION_STATUS\020\000\022\017\n\010ACCEPTED" + + "\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_ATTENTION" + + "\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022" + + "\031\n\022STATUS_UNSPECIFIED\020\312\314\213\024B\016\n\014_I_p_addre" + + "ssB\017\n\r_I_p_protocolB\014\n\n_all_portsB\026\n\024_al" + + "low_global_accessB\032\n\030_allow_psc_global_a" + + "ccessB\022\n\020_backend_serviceB\027\n\025_base_forwa" + + "rding_ruleB\025\n\023_creation_timestampB\016\n\014_de" + + "scriptionB\016\n\014_fingerprintB\005\n\003_idB\020\n\016_ip_" + + "collectionB\r\n\013_ip_versionB\031\n\027_is_mirrori" + + "ng_collectorB\007\n\005_kindB\024\n\022_label_fingerpr" + + "intB\030\n\026_load_balancing_schemeB\007\n\005_nameB\n" + + "\n\010_networkB\017\n\r_network_tierB\027\n\025_no_autom" + + "ate_dns_zoneB\r\n\013_port_rangeB\024\n\022_psc_conn" + + "ection_idB\030\n\026_psc_connection_statusB\t\n\007_" + + "regionB\014\n\n_self_linkB\020\n\016_service_labelB\017" + + "\n\r_service_nameB\r\n\013_subnetworkB\t\n\007_targe" + + "t\"\313\003\n\034ForwardingRuleAggregatedList\022\020\n\002id" + + "\030\233\032 \001(\tH\000\210\001\001\022R\n\005items\030\300\317\367/ \003(\0132@.google." + + "cloud.compute.v1.ForwardingRuleAggregate" + + "dList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037" + + "\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_" + + "link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t" + + " \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\004\210\001\001\032`\n\nItemsEntry\022\013\n" + + "\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud" + + ".compute.v1.ForwardingRulesScopedList:\0028" + + "\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" + + "\n_self_linkB\n\n\010_warning\"\255\002\n\022ForwardingRu" + + "leList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003" + + "(\0132\'.google.cloud.compute.v1.ForwardingR" + + "ule\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" + + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"O\n\027ForwardingRuleReference\022 \n\017fo" + + "rwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001B\022\n\020_forward" + + "ing_rule\"\302\001\n*ForwardingRuleServiceDirect" + + "oryRegistration\022\031\n\tnamespace\030\333\252\215U \001(\tH\000\210" + + "\001\001\022\030\n\007service\030\265\215\217\262\001 \001(\tH\001\210\001\001\022(\n\030service_" + + "directory_region\030\320\272\246# \001(\tH\002\210\001\001B\014\n\n_names" + + "paceB\n\n\010_serviceB\033\n\031_service_directory_r" + + "egion\"\251\001\n\031ForwardingRulesScopedList\022E\n\020f" + + "orwarding_rules\030\265\232\314\226\001 \003(\0132\'.google.cloud" + + ".compute.v1.ForwardingRule\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\000\210\001\001B\n\n\010_warning\"\315\002\n\017GRPCHealthCheck\022!\n" + + "\021grpc_service_name\030\326\250\215A \001(\tH\000\210\001\001\022\024\n\004port" + + "\030\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\002\210\001" + + "\001\022\"\n\022port_specification\030\305\353\314\030 \001(\tH\003\210\001\001\"~\n" + + "\021PortSpecification\022 \n\034UNDEFINED_PORT_SPE" + + "CIFICATION\020\000\022\025\n\016USE_FIXED_PORT\020\344\210\333Z\022\026\n\016U" + + "SE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_SERVING_PORT\020" + + "\314\321\365\254\001B\024\n\022_grpc_service_nameB\007\n\005_portB\014\n\n" + + "_port_nameB\025\n\023_port_specification\"l\n\031Get" + + "AcceleratorTypeRequest\022 \n\020accelerator_ty" + + "pe\030\216\341\350A \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"^\n\021GetAddressReq" + + "uest\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"" + + "f\n#GetAssociationFirewallPolicyRequest\022 " + + "\n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004name" + + "\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n\005_name\"\206\001\n*GetAssociati" + + "onNetworkFirewallPolicyRequest\022 \n\017firewa" + + "ll_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004name\030\213\365\315\001 \001(" + + "\tH\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002B\007\n\005_name" + + "\"\244\001\n0GetAssociationRegionNetworkFirewall" + + "PolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001" + + "(\tB\003\340A\002\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002B\007" + + "\n\005_name\"b\n\024GetAutoscalerRequest\022\033\n\nautos" + + "caler\030\327\375\322\366\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"R\n\027GetBacken" + + "dBucketRequest\022\036\n\016backend_bucket\030\365\343\335+ \001(" + + "\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"U\n\030GetBa" + + "ckendServiceRequest\022 \n\017backend_service\030\212" + + "\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"Z" + + "\n!GetDiagnosticsInterconnectRequest\022\034\n\014i" + + "nterconnect\030\216\311\214k \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\"U\n\016GetDiskRequest\022\024\n\004disk\030\235\233\274" + + "\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004z" + + "one\030\254\307\344\001 \001(\tB\003\340A\002\"^\n\022GetDiskTypeRequest\022" + + "\031\n\tdisk_type\030\234\351\254, \001(\tB\003\340A\002\022\027\n\007project\030\231\226" + + "\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\223\001\n$Ge" + + "tEffectiveFirewallsInstanceRequest\022\030\n\010in" + + "stance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n\021network_interfac" + + "e\030\350\300\235\256\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"W\n#GetEffectiveF" + + "irewallsNetworkRequest\022\027\n\007network\030\256\264\205o \001" + + "(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"\203\001\n7Get" + + "EffectiveFirewallsRegionNetworkFirewallP" + + "olicyRequest\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" + + "\tB\003\340A\002\"]\n\034GetExternalVpnGatewayRequest\022$" + + "\n\024external_vpn_gateway\030\205\327\2634 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"<\n\030GetFirewallPoli" + + "cyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003" + + "\340A\002\"H\n\022GetFirewallRequest\022\031\n\010firewall\030\200\372" + + "\325\363\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"m\n" + + "\030GetForwardingRuleRequest\022 \n\017forwarding_" + + "rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"M\n\031GetFromF" + + "amilyImageRequest\022\027\n\006family\030\344\266\341\234\001 \001(\tB\003\340" + + "A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"L\n\027GetGlobal" + + "AddressRequest\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"[\n\036GetGlobalFo" + + "rwardingRuleRequest\022 \n\017forwarding_rule\030\376" + + "\245\335\200\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"h" + + "\n$GetGlobalNetworkEndpointGroupRequest\022\'" + + "\n\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"V\n\031GetGlobalOpe" + + "rationRequest\022 \n\toperation\030\347\252\353\030 \001(\tB\n\340A\002" + + "\372G\004name\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"s\n%GetG" + + "lobalOrganizationOperationRequest\022 \n\tope" + + "ration\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\022\032\n\tparent_id" + + "\030\320\341\232\333\001 \001(\tH\000\210\001\001B\014\n\n_parent_id\"j\n&GetGlob" + + "alPublicDelegatedPrefixeRequest\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\'\n\027public_delegated_pre" + + "fix\030\350\334\261a \001(\tB\003\340A\002\"\307\001\n!GetGuestAttributes" + "InstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A" - + "\002\022\"\n\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB" - + "\003\340A\002\"W\n#GetEffectiveFirewallsNetworkRequ" - + "est\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\"\203\001\n7GetEffectiveFirewallsR" - + "egionNetworkFirewallPolicyRequest\022\027\n\007net" - + "work\030\256\264\205o \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" - + "\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"]\n\034GetExtern" - + "alVpnGatewayRequest\022$\n\024external_vpn_gate" - + "way\030\205\327\2634 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\"<\n\030GetFirewallPolicyRequest\022 \n\017firewa" - + "ll_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\"H\n\022GetFirewallR" - + "equest\022\031\n\010firewall\030\200\372\325\363\001 \001(\tB\003\340A\002\022\027\n\007pro" - + "ject\030\231\226\301l \001(\tB\003\340A\002\"m\n\030GetForwardingRuleR" - + "equest\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002" - + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" - + " \001(\tB\003\340A\002\"M\n\031GetFromFamilyImageRequest\022\027" - + "\n\006family\030\344\266\341\234\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\"L\n\027GetGlobalAddressRequest\022\030\n\007a" - + "ddress\030\364\267\336\334\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(" - + "\tB\003\340A\002\"[\n\036GetGlobalForwardingRuleRequest" - + "\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\"h\n$GetGlobalNetworkE" - + "ndpointGroupRequest\022\'\n\026network_endpoint_" - + "group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" - + "B\003\340A\002\"V\n\031GetGlobalOperationRequest\022 \n\top" - + "eration\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\"s\n%GetGlobalOrganizationOp" - + "erationRequest\022 \n\toperation\030\347\252\353\030 \001(\tB\n\340A" - + "\002\372G\004name\022\032\n\tparent_id\030\320\341\232\333\001 \001(\tH\000\210\001\001B\014\n\n" - + "_parent_id\"j\n&GetGlobalPublicDelegatedPr" - + "efixeRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" - + "\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\"\307" - + "\001\n!GetGuestAttributesInstanceRequest\022\030\n\010" - + "instance\030\225\251\332\010 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\033\n\nquery_path\030\274\202\341\257\001 \001(\tH\000\210\001\001\022\034\n\014" - + "variable_key\030\234\204\260N \001(\tH\001\210\001\001\022\024\n\004zone\030\254\307\344\001 " - + "\001(\tB\003\340A\002B\r\n\013_query_pathB\017\n\r_variable_key" - + "\"\277\001\n\036GetHealthBackendServiceRequest\022 \n\017b" - + "ackend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022b\n!resource_group_referen" - + "ce_resource\030\323\376\3555 \001(\0132/.google.cloud.comp" - + "ute.v1.ResourceGroupReferenceB\003\340A\002\"O\n\025Ge" - + "tHealthCheckRequest\022\035\n\014health_check\030\345\252\244\223" - + "\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n$" - + "GetHealthRegionBackendServiceRequest\022 \n\017" - + "backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022" - + "b\n!resource_group_reference_resource\030\323\376\355" - + "5 \001(\0132/.google.cloud.compute.v1.Resource" - + "GroupReferenceB\003\340A\002\"\304\001\n\032GetHealthTargetP" - + "oolRequest\022X\n\033instance_reference_resourc" - + "e\030\354\344\326\213\001 \001(\0132*.google.cloud.compute.v1.In" - + "stanceReferenceB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" - + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n\013target_" - + "pool\030\212\344\370\035 \001(\tB\003\340A\002\"\255\001\n GetIamPolicyBacke" - + "ndBucketRequest\0221\n options_requested_pol" - + "icy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" - + "!_options_requested_policy_version\"\256\001\n!G" - + "etIamPolicyBackendServiceRequest\0221\n opti" - + "ons_requested_policy_version\030\275\374\205\356\001 \001(\005H\000" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource" - + "\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requested_pol" - + "icy_version\"\272\001\n\027GetIamPolicyDiskRequest\022" - + "1\n options_requested_policy_version\030\275\374\205\356" - + "\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010r" - + "esource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003" - + "\340A\002B#\n!_options_requested_policy_version" - + "\"\225\001\n!GetIamPolicyFirewallPolicyRequest\0221" - + "\n options_requested_policy_version\030\275\374\205\356\001" - + " \001(\005H\000\210\001\001\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_", - "options_requested_policy_version\"\245\001\n\030Get" - + "IamPolicyImageRequest\0221\n options_request" - + "ed_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003" - + "\340A\002B#\n!_options_requested_policy_version" - + "\"\276\001\n\033GetIamPolicyInstanceRequest\0221\n opti" - + "ons_requested_policy_version\030\275\374\205\356\001 \001(\005H\000" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource" - + "\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!" - + "_options_requested_policy_version\"\260\001\n#Ge" - + "tIamPolicyInstanceTemplateRequest\0221\n opt" - + "ions_requested_policy_version\030\275\374\205\356\001 \001(\005H" - + "\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resourc" - + "e\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requested_po" - + "licy_version\"\305\001\n\"GetIamPolicyInstantSnap" - + "shotRequest\0221\n options_requested_policy_" + + "\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n\nquery_path" + + "\030\274\202\341\257\001 \001(\tH\000\210\001\001\022\034\n\014variable_key\030\234\204\260N \001(\t" + + "H\001\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\r\n\013_query_pa" + + "thB\017\n\r_variable_key\"\277\001\n\036GetHealthBackend" + + "ServiceRequest\022 \n\017backend_service\030\212\300\256\222\001 " + + "\001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022b\n!res" + + "ource_group_reference_resource\030\323\376\3555 \001(\0132" + + "/.google.cloud.compute.v1.ResourceGroupR" + + "eferenceB\003\340A\002\"O\n\025GetHealthCheckRequest\022\035" + + "\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n$GetHealthRegionBacken" + + "dServiceRequest\022 \n\017backend_service\030\212\300\256\222\001" + + " \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" + + "gion\030\364\315\240B \001(\tB\003\340A\002\022b\n!resource_group_ref" + + "erence_resource\030\323\376\3555 \001(\0132/.google.cloud." + + "compute.v1.ResourceGroupReferenceB\003\340A\002\"\304" + + "\001\n\032GetHealthTargetPoolRequest\022X\n\033instanc" + + "e_reference_resource\030\354\344\326\213\001 \001(\0132*.google." + + "cloud.compute.v1.InstanceReferenceB\003\340A\002\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " + + "\001(\tB\003\340A\002\022\033\n\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\"\255\001" + + "\n GetIamPolicyBackendBucketRequest\0221\n op" + + "tions_requested_policy_version\030\275\374\205\356\001 \001(\005" + + "H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resour" + + "ce\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requested_p" + + "olicy_version\"\256\001\n!GetIamPolicyBackendSer" + + "viceRequest\0221\n options_requested_policy_" + "version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zon" - + "e\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_options_requested_po" - + "licy_version\"\247\001\n\032GetIamPolicyLicenseRequ" - + "est\0221\n options_requested_policy_version\030" - + "\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_re" - + "quested_policy_version\"\254\001\n\037GetIamPolicyM" - + "achineImageRequest\0221\n options_requested_" - + "policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002" - + "B#\n!_options_requested_policy_version\"\311\001" - + "\n$GetIamPolicyNetworkAttachmentRequest\0221" - + "\n options_requested_policy_version\030\275\374\205\356\001" - + " \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" - + "gion\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" - + "\003\340A\002B#\n!_options_requested_policy_versio" - + "n\"\265\001\n(GetIamPolicyNetworkFirewallPolicyR" - + "equest\0221\n options_requested_policy_versi" - + "on\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options" - + "_requested_policy_version\"\277\001\n\034GetIamPoli" - + "cyNodeGroupRequest\0221\n options_requested_" + + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_op" + + "tions_requested_policy_version\"\272\001\n\027GetIa" + + "mPolicyDiskRequest\0221\n options_requested_" + "policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project" + "\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002" + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_options_reque" - + "sted_policy_version\"\304\001\n\037GetIamPolicyNode" - + "TemplateRequest\0221\n options_requested_pol" - + "icy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010r" - + "esource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_reques" - + "ted_policy_version\"\314\001\n\'GetIamPolicyRegio" - + "nBackendServiceRequest\0221\n options_reques" + + "sted_policy_version\"\225\001\n!GetIamPolicyFire", + "wallPolicyRequest\0221\n options_requested_p" + + "olicy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\030\n\010resource" + + "\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requested_pol" + + "icy_version\"\245\001\n\030GetIamPolicyImageRequest" + + "\0221\n options_requested_policy_version\030\275\374\205" + + "\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010" + + "resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_reque" + + "sted_policy_version\"\276\001\n\033GetIamPolicyInst" + + "anceRequest\0221\n options_requested_policy_" + + "version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zon" + + "e\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_options_requested_po" + + "licy_version\"\260\001\n#GetIamPolicyInstanceTem" + + "plateRequest\0221\n options_requested_policy" + + "_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_o" + + "ptions_requested_policy_version\"\305\001\n\"GetI" + + "amPolicyInstantSnapshotRequest\0221\n option" + + "s_requested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001" + + "\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" + + "\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_o" + + "ptions_requested_policy_version\"\247\001\n\032GetI" + + "amPolicyLicenseRequest\0221\n options_reques" + "ted_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007pro" - + "ject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340" - + "A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options" - + "_requested_policy_version\"\302\001\n\035GetIamPoli" - + "cyRegionDiskRequest\0221\n options_requested" - + "_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022" - + "\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_re" - + "quested_policy_version\"\315\001\n(GetIamPolicyR" - + "egionInstantSnapshotRequest\0221\n options_r" - + "equested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027" - + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001" - + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_op" - + "tions_requested_policy_version\"\323\001\n.GetIa" - + "mPolicyRegionNetworkFirewallPolicyReques" + + "ject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" + + "\003\340A\002B#\n!_options_requested_policy_versio" + + "n\"\254\001\n\037GetIamPolicyMachineImageRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001 " + + "\001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" + + "ource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requeste" + + "d_policy_version\"\311\001\n$GetIamPolicyNetwork" + + "AttachmentRequest\0221\n options_requested_p" + + "olicy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requ" + + "ested_policy_version\"\265\001\n(GetIamPolicyNet" + + "workFirewallPolicyRequest\0221\n options_req" + + "uested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001" + + "(\tB\003\340A\002B#\n!_options_requested_policy_ver" + + "sion\"\277\001\n\034GetIamPolicyNodeGroupRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001 " + + "\001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" + + "ource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A" + + "\002B#\n!_options_requested_policy_version\"\304" + + "\001\n\037GetIamPolicyNodeTemplateRequest\0221\n op" + + "tions_requested_policy_version\030\275\374\205\356\001 \001(\005" + + "H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region" + + "\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002" + + "B#\n!_options_requested_policy_version\"\314\001" + + "\n\'GetIamPolicyRegionBackendServiceReques" + "t\0221\n options_requested_policy_version\030\275\374" + "\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001" + "(\tB\003\340A\002B#\n!_options_requested_policy_ver" - + "sion\"\301\001\n\036GetIamPolicyReservationRequest\022" - + "1\n options_requested_policy_version\030\275\374\205\356" - + "\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010r" - + "esource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003" - + "\340A\002B#\n!_options_requested_policy_version" - + "\"\306\001\n!GetIamPolicyResourcePolicyRequest\0221" + + "sion\"\302\001\n\035GetIamPolicyRegionDiskRequest\0221" + "\n options_requested_policy_version\030\275\374\205\356\001" + " \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" + "gion\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" + "\003\340A\002B#\n!_options_requested_policy_versio" - + "n\"\311\001\n$GetIamPolicyServiceAttachmentReque" - + "st\0221\n options_requested_policy_version\030\275" - + "\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026" - + "\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] " - + "\001(\tB\003\340A\002B#\n!_options_requested_policy_ve" - + "rsion\"\250\001\n\033GetIamPolicySnapshotRequest\0221\n" - + " options_requested_policy_version\030\275\374\205\356\001 " - + "\001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" - + "ource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requeste" - + "d_policy_version\"\301\001\n\036GetIamPolicyStorage" - + "PoolRequest\0221\n options_requested_policy_" - + "version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zon" - + "e\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_options_requested_po" - + "licy_version\"\302\001\n\035GetIamPolicySubnetworkR" + + "n\"\315\001\n(GetIamPolicyRegionInstantSnapshotR" + "equest\0221\n options_requested_policy_versi" + "on\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + "A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216" + "\210\257] \001(\tB\003\340A\002B#\n!_options_requested_polic" - + "y_version\"c\n\031GetImageFamilyViewRequest\022\027" - + "\n\006family\030\344\266\341\234\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"A\n\017GetIma" - + "geRequest\022\025\n\005image\030\333\322\352/ \001(\tB\003\340A\002\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\"w\n\036GetInstanceGroupMan" - + "agerRequest\022&\n\026instance_group_manager\030\303\367" - + "\363v \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004" - + "zone\030\254\307\344\001 \001(\tB\003\340A\002\"\244\001\n+GetInstanceGroupM" - + "anagerResizeRequestRequest\022&\n\026instance_g" - + "roup_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\036\n\016resize_request\030\204\204\271g \001(\tB\003" - + "\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"h\n\027GetInstance" - + "GroupRequest\022\036\n\016instance_group\030\325\324\325& \001(\tB" - + "\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307" - + "\344\001 \001(\tB\003\340A\002\"]\n\022GetInstanceRequest\022\030\n\010ins" - + "tance\030\225\251\332\010 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"J\n\031GetInstanc" - + "eSettingRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"Y\n\032GetInstanceTem" - + "plateRequest\022\"\n\021instance_template\030\344\201\273\223\001 " - + "\001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"m\n\031Get" - + "InstantSnapshotRequest\022!\n\020instant_snapsh" - + "ot\030\342\334\337\272\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"}\n GetInterconn" - + "ectAttachmentRequest\022(\n\027interconnect_att" - + "achment\030\364\212\367\222\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"a\n\036GetIn" - + "terconnectLocationRequest\022&\n\025interconnec" - + "t_location\030\306\330\333\352\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\"n\n$GetInterconnectRemoteLocat" - + "ionRequest\022-\n\034interconnect_remote_locati" - + "on\030\335\313\255\212\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\"O\n\026GetInterconnectRequest\022\034\n\014intercon" - + "nect\030\216\311\214k \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" - + "\340A\002\"M\n\025GetLicenseCodeRequest\022\033\n\014license_" - + "code\030\253\306Y \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\"E\n\021GetLicenseRequest\022\027\n\007license\030\301\210\302O " - + "\001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"P\n\026Get" - + "MachineImageRequest\022\035\n\rmachine_image\030\343\376\376" - + " \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"d\n\025G" - + "etMachineTypeRequest\022\034\n\014machine_type\030\262\260\312" - + "l \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004z" - + "one\030\254\307\344\001 \001(\tB\003\340A\002\"[\n\"GetMacsecConfigInte" - + "rconnectRequest\022\034\n\014interconnect\030\216\311\214k \001(\t" - + "B\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"\214\001\n\031GetNa" - + "tIpInfoRouterRequest\022\031\n\010nat_name\030\351\255\370\312\001 \001" - + "(\tH\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regi" - + "on\030\364\315\240B \001(\tB\003\340A\002\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002" - + "B\013\n\t_nat_name\"\371\002\n\037GetNatMappingInfoRoute" - + "rsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\031\n\010nat_name\030\351\255\370\312" - + "\001 \001(\tH\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" - + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" - + "urn_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\026\n\006ro" - + "uter\030\311\256\356F \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_re" - + "sultsB\013\n\t_nat_nameB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"r\n\033Get" - + "NetworkAttachmentRequest\022\"\n\022network_atta" - + "chment\030\324\227\217k \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" - + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"\206\001\n$GetNet" - + "workEdgeSecurityServiceRequest\022-\n\035networ" - + "k_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\"x\n\036GetNetworkEndpointGroupRequest" - + "\022\'\n\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A" - + "\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 " - + "\001(\tB\003\340A\002\"\\\n\037GetNetworkFirewallPolicyRequ" - + "est\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\"E\n\021GetNetworkRequ" - + "est\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\"a\n\023GetNodeGroupRequest\022\033\n\n" - + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"i\n\026GetN" - + "odeTemplateRequest\022\036\n\rnode_template\030\227\344\213\232" - + "\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" - + "egion\030\364\315\240B \001(\tB\003\340A\002\"_\n\022GetNodeTypeReques" - + "t\022\032\n\tnode_type\030\327\226\220\336\001 \001(\tB\003\340A\002\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"n\n\031" - + "GetPacketMirroringRequest\022 \n\020packet_mirr" - + "oring\030\314\271\321\n \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\",\n\021GetProje" - + "ctRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"f\n!Ge" - + "tPublicAdvertisedPrefixeRequest\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022(\n\030public_advertised_pr" - + "efix\030\236\367\3110 \001(\tB\003\340A\002\"|\n GetPublicDelegated" - + "PrefixeRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\'\n\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"j\n\032GetRegionAut" - + "oscalerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tB\003" + + "y_version\"\323\001\n.GetIamPolicyRegionNetworkF" + + "irewallPolicyRequest\0221\n options_requeste" + + "d_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002" + + "\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_r" + + "equested_policy_version\"\301\001\n\036GetIamPolicy" + + "ReservationRequest\0221\n options_requested_" + + "policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002" + + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_options_reque" + + "sted_policy_version\"\306\001\n!GetIamPolicyReso" + + "urcePolicyRequest\0221\n options_requested_p" + + "olicy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requ" + + "ested_policy_version\"\311\001\n$GetIamPolicySer" + + "viceAttachmentRequest\0221\n options_request" + + "ed_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" + + "\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_" + + "requested_policy_version\"\250\001\n\033GetIamPolic" + + "ySnapshotRequest\0221\n options_requested_po" + + "licy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#" + + "\n!_options_requested_policy_version\"\301\001\n\036" + + "GetIamPolicyStoragePoolRequest\0221\n option" + + "s_requested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001" + + "\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" + + "\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_o" + + "ptions_requested_policy_version\"\302\001\n\035GetI" + + "amPolicySubnetworkRequest\0221\n options_req" + + "uested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" + + "B\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_opti" + + "ons_requested_policy_version\"c\n\031GetImage" + + "FamilyViewRequest\022\027\n\006family\030\344\266\341\234\001 \001(\tB\003\340" + + "A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001" + + " \001(\tB\003\340A\002\"A\n\017GetImageRequest\022\025\n\005image\030\333\322" + + "\352/ \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"w\n\036" + + "GetInstanceGroupManagerRequest\022&\n\026instan" + + "ce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\244\001" + + "\n+GetInstanceGroupManagerResizeRequestRe" + + "quest\022&\n\026instance_group_manager\030\303\367\363v \001(\t" + + "B\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\036\n\016resize" + + "_request\030\204\204\271g \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB" + + "\003\340A\002\"h\n\027GetInstanceGroupRequest\022\036\n\016insta" + + "nce_group\030\325\324\325& \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"]\n\022GetIns" + + "tanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\027" + + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\t" + + "B\003\340A\002\"J\n\031GetInstanceSettingRequest\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A" + + "\002\"Y\n\032GetInstanceTemplateRequest\022\"\n\021insta" + + "nce_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\"m\n\031GetInstantSnapshotReques" + + "t\022!\n\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003" + + "\340A\002\"}\n GetInterconnectAttachmentRequest\022" + + "(\n\027interconnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A" + + "\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240" + + "B \001(\tB\003\340A\002\"a\n\036GetInterconnectLocationReq" + + "uest\022&\n\025interconnect_location\030\306\330\333\352\001 \001(\tB" + + "\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"n\n$GetInte" + + "rconnectRemoteLocationRequest\022-\n\034interco" + + "nnect_remote_location\030\335\313\255\212\001 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"O\n\026GetInterconnect" + + "Request\022\034\n\014interconnect\030\216\311\214k \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\"M\n\025GetLicenseCode" + + "Request\022\033\n\014license_code\030\253\306Y \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"E\n\021GetLicenseReque" + + "st\022\027\n\007license\030\301\210\302O \001(\tB\003\340A\002\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\"P\n\026GetMachineImageRequest\022\035" + + "\n\rmachine_image\030\343\376\376 \001(\tB\003\340A\002\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\"d\n\025GetMachineTypeRequest\022" + + "\034\n\014machine_type\030\262\260\312l \001(\tB\003\340A\002\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"[\n\"" + + "GetMacsecConfigInterconnectRequest\022\034\n\014in" + + "terconnect\030\216\311\214k \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l" + + " \001(\tB\003\340A\002\"\214\001\n\031GetNatIpInfoRouterRequest\022" + + "\031\n\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001\022\027\n\007project\030\231\226" + + "\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\026\n\006r" + + "outer\030\311\256\356F \001(\tB\003\340A\002B\013\n\t_nat_name\"\371\002\n\037Get" + + "NatMappingInfoRoutersRequest\022\027\n\006filter\030\370" + + "\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210" + + "\001\001\022\031\n\010nat_name\030\351\255\370\312\001 \001(\tH\002\210\001\001\022\030\n\010order_b" + + "y\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\004" + + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" + + "\244\317\366\001 \001(\010H\005\210\001\001\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002B\t\n" + + "\007_filterB\016\n\014_max_resultsB\013\n\t_nat_nameB\013\n" + + "\t_order_byB\r\n\013_page_tokenB\031\n\027_return_par" + + "tial_success\"r\n\033GetNetworkAttachmentRequ" + + "est\022\"\n\022network_attachment\030\324\227\217k \001(\tB\003\340A\002\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " + + "\001(\tB\003\340A\002\"\206\001\n$GetNetworkEdgeSecurityServi" + + "ceRequest\022-\n\035network_edge_security_servi" + + "ce\030\247\237\357J \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"x\n\036GetNetworkE" + + "ndpointGroupRequest\022\'\n\026network_endpoint_" + + "group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\\\n\037GetNetwor" + + "kFirewallPolicyRequest\022 \n\017firewall_polic" + + "y\030\321\212\306\355\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\"T\n\030GetNetworkProfileRequest\022\037\n\017network" + + "_profile\030\230\371\305R \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\"E\n\021GetNetworkRequest\022\027\n\007network\030" + + "\256\264\205o \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"a" + + "\n\023GetNodeGroupRequest\022\033\n\nnode_group\030\202\374\213\340" + + "\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004z" + + "one\030\254\307\344\001 \001(\tB\003\340A\002\"i\n\026GetNodeTemplateRequ" + + "est\022\036\n\rnode_template\030\227\344\213\232\001 \001(\tB\003\340A\002\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" + + "\003\340A\002\"_\n\022GetNodeTypeRequest\022\032\n\tnode_type\030" + + "\327\226\220\336\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"n\n\031GetPacketMirror" + + "ingRequest\022 \n\020packet_mirroring\030\314\271\321\n \001(\tB" + + "\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030" + + "\364\315\240B \001(\tB\003\340A\002\",\n\021GetProjectRequest\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\"f\n!GetPublicAdvertis" + + "edPrefixeRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022(\n\030public_advertised_prefix\030\236\367\3110 \001(\tB\003" + + "\340A\002\"|\n GetPublicDelegatedPrefixeRequest\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\027public_deleg" + + "ated_prefix\030\350\334\261a \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" + + " \001(\tB\003\340A\002\"j\n\032GetRegionAutoscalerRequest\022" + + "\033\n\nautoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"s\n" + + "\036GetRegionBackendServiceRequest\022 \n\017backe" + + "nd_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"j\n\032Ge" + + "tRegionCommitmentRequest\022\033\n\ncommitment\030\225" + + "\226\363\345\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026" + + "\n\006region\030\364\315\240B \001(\tB\003\340A\002\"]\n\024GetRegionDiskR" + + "equest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"f\n" + + "\030GetRegionDiskTypeRequest\022\031\n\tdisk_type\030\234" + + "\351\254, \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"m\n\033GetRegionHealth" + + "CheckRequest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003" + "\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\"s\n\036GetRegionBackendServiceR" - + "equest\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002" + + "\315\240B \001(\tB\003\340A\002\"|\n\"GetRegionHealthCheckServ" + + "iceRequest\022%\n\024health_check_service\030\333\233\335\302\001" + + " \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" + + "gion\030\364\315\240B \001(\tB\003\340A\002\"\177\n$GetRegionInstanceG" + + "roupManagerRequest\022&\n\026instance_group_man" + + "ager\030\303\367\363v \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"p\n\035GetRegion" + + "InstanceGroupRequest\022\036\n\016instance_group\030\325" + + "\324\325& \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"w\n GetRegionInstan" + + "ceTemplateRequest\022\"\n\021instance_template\030\344" + + "\201\273\223\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026" + + "\n\006region\030\364\315\240B \001(\tB\003\340A\002\"u\n\037GetRegionInsta" + + "ntSnapshotRequest\022!\n\020instant_snapshot\030\342\334" + + "\337\272\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"\200\001\n$GetRegionNetwo" + + "rkEndpointGroupRequest\022\'\n\026network_endpoi" + + "nt_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"z\n%GetR" + + "egionNetworkFirewallPolicyRequest\022 \n\017fir" + + "ewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"\177\n$" + + "GetRegionNotificationEndpointRequest\022&\n\025" + + "notification_endpoint\030\351\274\326\263\001 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" + + "B\003\340A\002\"n\n\031GetRegionOperationRequest\022 \n\top" + + "eration\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"C\n" + + "\020GetRegionRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + + "A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"r\n\036GetRegionS" + + "ecurityPolicyRequest\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n\017securit" + + "y_policy\030\221\206\312Q \001(\tB\003\340A\002\"r\n\036GetRegionSslCe" + + "rtificateRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n\017ssl_certifi" + + "cate\030\344\327\222\026 \001(\tB\003\340A\002\"i\n\031GetRegionSslPolicy" + + "Request\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regi" + + "on\030\364\315\240B \001(\tB\003\340A\002\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\t" + + "B\003\340A\002\"u\n\037GetRegionTargetHttpProxyRequest" + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" - + " \001(\tB\003\340A\002\"j\n\032GetRegionCommitmentRequest\022" - + "\033\n\ncommitment\030\225\226\363\345\001 \001(\tB\003\340A\002\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"]\n" - + "\024GetRegionDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003" - + "\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\"f\n\030GetRegionDiskTypeRequest" - + "\022\031\n\tdisk_type\030\234\351\254, \001(\tB\003\340A\002\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"m\n\033" - + "GetRegionHealthCheckRequest\022\035\n\014health_ch" - + "eck\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" - + "\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"|\n\"GetRegion" - + "HealthCheckServiceRequest\022%\n\024health_chec" - + "k_service\030\333\233\335\302\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"\177\n$Get" - + "RegionInstanceGroupManagerRequest\022&\n\026ins" - + "tance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n\007pro" + + " \001(\tB\003\340A\002\022!\n\021target_http_proxy\030\345\276\322b \001(\tB" + + "\003\340A\002\"w\n GetRegionTargetHttpsProxyRequest" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" + + " \001(\tB\003\340A\002\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\t" + + "B\003\340A\002\"t\n\036GetRegionTargetTcpProxyRequest\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " + + "\001(\tB\003\340A\002\022!\n\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003" + + "\340A\002\"c\n\026GetRegionUrlMapRequest\022\027\n\007project" + + "\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030" + + "\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"c\n\025GetReservati" + + "onRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n\013re" + + "servation\030\314\207\325\026 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\t" + + "B\003\340A\002\"l\n\030GetResourcePolicyRequest\022\027\n\007pro" + "ject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340" - + "A\002\"p\n\035GetRegionInstanceGroupRequest\022\036\n\016i" - + "nstance_group\030\325\324\325& \001(\tB\003\340A\002\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"w\n " - + "GetRegionInstanceTemplateRequest\022\"\n\021inst" - + "ance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"u\n" - + "\037GetRegionInstantSnapshotRequest\022!\n\020inst" - + "ant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\"\200\001\n" - + "$GetRegionNetworkEndpointGroupRequest\022\'\n" - + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\027" - + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001" - + "(\tB\003\340A\002\"z\n%GetRegionNetworkFirewallPolic" - + "yRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340" - + "A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315" - + "\240B \001(\tB\003\340A\002\"\177\n$GetRegionNotificationEndp" - + "ointRequest\022&\n\025notification_endpoint\030\351\274\326" - + "\263\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" - + "region\030\364\315\240B \001(\tB\003\340A\002\"n\n\031GetRegionOperati" - + "onRequest\022 \n\toperation\030\347\252\353\030 \001(\tB\n\340A\002\372G\004n" - + "ame\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\"C\n\020GetRegionRequest\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" - + "\002\"r\n\036GetRegionSecurityPolicyRequest\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\"r\n" - + "\036GetRegionSslCertificateRequest\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002" - + "\022\037\n\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002\"i\n\031Get" - + "RegionSslPolicyRequest\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n\nssl_p" - + "olicy\030\305\375\340\214\001 \001(\tB\003\340A\002\"u\n\037GetRegionTargetH" - + "ttpProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022!\n\021target_http_" - + "proxy\030\345\276\322b \001(\tB\003\340A\002\"w\n GetRegionTargetHt" - + "tpsProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\"\n\022target_https" - + "_proxy\030\354\260\372\030 \001(\tB\003\340A\002\"t\n\036GetRegionTargetT" - + "cpProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022!\n\020target_tcp_pr" - + "oxy\030\342\326\360\357\001 \001(\tB\003\340A\002\"c\n\026GetRegionUrlMapReq" - + "uest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030" - + "\364\315\240B \001(\tB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"" - + "c\n\025GetReservationRequest\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\033\n\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\024" - + "\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"l\n\030GetResourcePolic" - + "yRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" - + "ion\030\364\315\240B \001(\tB\003\340A\002\022\037\n\017resource_policy\030\203\245\367" - + "K \001(\tB\003\340A\002\"A\n\017GetRouteRequest\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\025\n\005route\030\311\344\3523 \001(\tB\003\340A\002\"[\n" - + "\020GetRouterRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\026\n\006router\030\311\256\356" - + "F \001(\tB\003\340A\002\"g\n\034GetRouterStatusRouterReque" + + "A\002\022\037\n\017resource_policy\030\203\245\367K \001(\tB\003\340A\002\"A\n\017G" + + "etRouteRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\025\n\005route\030\311\344\3523 \001(\tB\003\340A\002\"[\n\020GetRouterReque" + "st\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315" - + "\240B \001(\tB\003\340A\002\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\"h\n\034G" - + "etRuleFirewallPolicyRequest\022 \n\017firewall_" - + "policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 " - + "\001(\005H\000\210\001\001B\013\n\t_priority\"\210\001\n#GetRuleNetwork" - + "FirewallPolicyRequest\022 \n\017firewall_policy" - + "\030\321\212\306\355\001 \001(\tB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210" - + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002B\013\n\t_priority" - + "\"\246\001\n)GetRuleRegionNetworkFirewallPolicyR" + + "\240B \001(\tB\003\340A\002\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\"g\n\034G" + + "etRouterStatusRouterRequest\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\026\n\006" + + "router\030\311\256\356F \001(\tB\003\340A\002\"h\n\034GetRuleFirewallP" + + "olicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(" + + "\tB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001B\013\n\t_pr" + + "iority\"\210\001\n#GetRuleNetworkFirewallPolicyR" + "equest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002" + "\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002B\013\n\t" - + "_priority\"\236\001\n\"GetRuleRegionSecurityPolic" - + "yRequest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\013\n" - + "\t_priority\"\200\001\n\034GetRuleSecurityPolicyRequ" - + "est\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\037\n\017security_policy\030\221\206\312Q " - + "\001(\tB\003\340A\002B\013\n\t_priority\"g\n\034GetScreenshotIn" - + "stanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022" - + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(" - + "\tB\003\340A\002\"T\n\030GetSecurityPolicyRequest\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\037\n\017security_policy\030\221" - + "\206\312Q \001(\tB\003\340A\002\"\255\001\n\"GetSerialPortOutputInst" - + "anceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\024\n" - + "\004port\030\201\261\322\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\025\n\005start\030\342\210\2534 \001(\003H\001\210\001\001\022\024\n\004zone\030\254\307\344\001" - + " \001(\tB\003\340A\002B\007\n\005_portB\010\n\006_start\"s\n\033GetServi" - + "ceAttachmentRequest\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022#\n\022service_" - + "attachment\030\355\251\320\241\001 \001(\tB\003\340A\002\"u\n*GetShielded" - + "InstanceIdentityInstanceRequest\022\030\n\010insta" - + "nce\030\225\251\332\010 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"H\n\022GetSnapshotR" - + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\031\n\010snaps" - + "hot\030\304\253\353\207\001 \001(\tB\003\340A\002\"4\n\031GetSnapshotSetting" - + "Request\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"T\n\030GetS" - + "slCertificateRequest\022\027\n\007project\030\231\226\301l \001(\t" - + "B\003\340A\002\022\037\n\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002\"K" - + "\n\023GetSslPolicyRequest\022\027\n\007project\030\231\226\301l \001(" - + "\tB\003\340A\002\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\"k\n\032G" - + "etStatusVpnGatewayRequest\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\034\n\013vp" - + "n_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002\"e\n\025GetStoragePo" - + "olRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\035\n\014st" - + "orage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tB\003\340A\002\"n\n\031GetStoragePoolTypeRequest\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\"\n\021storage_pool_ty" - + "pe\030\271\201\260\210\001 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"" - + "d\n\024GetSubnetworkRequest\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n\nsubn" - + "etwork\030\356\247\344\222\001 \001(\tB\003\340A\002\"W\n\031GetTargetGrpcPr" - + "oxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\021t" - + "arget_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002\"W\n\031GetTar" - + "getHttpProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022!\n\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\"" - + "Y\n\032GetTargetHttpsProxyRequest\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\"\n\022target_https_proxy\030\354\260\372" - + "\030 \001(\tB\003\340A\002\"k\n\030GetTargetInstanceRequest\022\027" - + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022 \n\017target_instan" - + "ce\030\203\217\226\212\001 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"" - + "d\n\024GetTargetPoolRequest\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n\013targ" - + "et_pool\030\212\344\370\035 \001(\tB\003\340A\002\"V\n\030GetTargetSslPro" - + "xyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\020ta" - + "rget_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002\"V\n\030GetTarg" - + "etTcpProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022!\n\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002\"r\n" - + "\032GetTargetVpnGatewayRequest\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022#\n\022" - + "target_vpn_gateway\030\313\200\366\375\001 \001(\tB\003\340A\002\"E\n\020Get" - + "UrlMapRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" - + "\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"e\n\024GetVpnGatewa" - + "yRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" - + "ion\030\364\315\240B \001(\tB\003\340A\002\022\034\n\013vpn_gateway\030\371\203\366\301\001 \001" - + "(\tB\003\340A\002\"b\n\023GetVpnTunnelRequest\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022" - + "\032\n\nvpn_tunnel\030\223\224\312D \001(\tB\003\340A\002\"3\n\030GetXpnHos" - + "tProjectRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\"\240\002\n\036GetXpnResourcesProjectsRequest\022\027\n\006f" - + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" - + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" - + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" - + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" - + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"j\n\027GetZoneOperationRequest\022 " - + "\n\toperation\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"" - + "?\n\016GetZoneRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\210\001\n\032GlobalAddre" - + "ssesMoveRequest\022\034\n\013description\030\374\207\326\311\001 \001(\t" - + "H\000\210\001\001\022$\n\023destination_address\030\303\261\236\261\001 \001(\tH\001" - + "\210\001\001B\016\n\014_descriptionB\026\n\024_destination_addr" - + "ess\"{\n1GlobalNetworkEndpointGroupsAttach" - + "EndpointsRequest\022F\n\021network_endpoints\030\255\221" - + "\272G \003(\0132(.google.cloud.compute.v1.Network" - + "Endpoint\"{\n1GlobalNetworkEndpointGroupsD" - + "etachEndpointsRequest\022F\n\021network_endpoin" - + "ts\030\255\221\272G \003(\0132(.google.cloud.compute.v1.Ne" - + "tworkEndpoint\"\277\001\n\"GlobalOrganizationSetP" - + "olicyRequest\0226\n\010bindings\030\216\305\244\300\001 \003(\0132 .goo" - + "gle.cloud.compute.v1.Binding\022\024\n\004etag\030\225\322\276" - + "\001 \001(\tH\000\210\001\001\0227\n\006policy\030\262\312\266+ \001(\0132\037.google.c" - + "loud.compute.v1.PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007" - + "_policy\"\321\001\n\026GlobalSetLabelsRequest\022!\n\021la" - + "bel_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n\006labels\030" - + "\377\277\301\356\001 \003(\0132;.google.cloud.compute.v1.Glob" - + "alSetLabelsRequest.LabelsEntry\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\024\n" - + "\022_label_fingerprint\"\263\001\n\026GlobalSetPolicyR" - + "equest\0226\n\010bindings\030\216\305\244\300\001 \003(\0132 .google.cl" - + "oud.compute.v1.Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH" - + "\000\210\001\001\0227\n\006policy\030\262\312\266+ \001(\0132\037.google.cloud.c" - + "ompute.v1.PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007_polic" - + "y\"\304\002\n\017GuestAttributes\022\024\n\004kind\030\224\367\310\001 \001(\tH\000" - + "\210\001\001\022\033\n\nquery_path\030\274\202\341\257\001 \001(\tH\001\210\001\001\022J\n\013quer" - + "y_value\030\272\256\221K \001(\0132-.google.cloud.compute." - + "v1.GuestAttributesValueH\002\210\001\001\022\032\n\tself_lin" - + "k\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\034\n\014variable_key\030\234\204\260N \001(" - + "\tH\004\210\001\001\022\036\n\016variable_value\030\356\363\263; \001(\tH\005\210\001\001B\007" - + "\n\005_kindB\r\n\013_query_pathB\016\n\014_query_valueB\014" - + "\n\n_self_linkB\017\n\r_variable_keyB\021\n\017_variab" - + "le_value\"|\n\024GuestAttributesEntry\022\022\n\003key\030" - + "\337\274\006 \001(\tH\000\210\001\001\022\031\n\tnamespace\030\333\252\215U \001(\tH\001\210\001\001\022" - + "\025\n\005value\030\361\242\2625 \001(\tH\002\210\001\001B\006\n\004_keyB\014\n\n_names" - + "paceB\010\n\006_value\"W\n\024GuestAttributesValue\022?" - + "\n\005items\030\300\317\367/ \003(\0132-.google.cloud.compute." - + "v1.GuestAttributesEntry\"\371\002\n\016GuestOsFeatu" - + "re\022\024\n\004type\030\272\236\332\001 \001(\tH\000\210\001\001\"\307\002\n\004Type\022\022\n\016UND" - + "EFINED_TYPE\020\000\022 \n\030FEATURE_TYPE_UNSPECIFIE" - + "D\020\333\277\310\375\001\022\014\n\005GVNIC\020\231\225\303 \022\013\n\004IDPF\020\321\360\210\001\022\026\n\017MU" - + "LTI_IP_SUBNET\020\317\333\257H\022\023\n\013SECURE_BOOT\020\272\335\326\263\001\022" - + "\022\n\013SEV_CAPABLE\020\221\226\303)\022\033\n\023SEV_LIVE_MIGRATAB" - + "LE\020\214\233\370\272\001\022\035\n\026SEV_LIVE_MIGRATABLE_V2\020\257\314\257P\022" - + "\025\n\017SEV_SNP_CAPABLE\020\247\207\032\022\022\n\013TDX_CAPABLE\020\265\325" - + "\323r\022\026\n\017UEFI_COMPATIBLE\020\300\326\262]\022\035\n\026VIRTIO_SCS" - + "I_MULTIQUEUE\020\215\301\220`\022\017\n\007WINDOWS\020\343\334\354\331\001B\007\n\005_t", - "ype\"\203\004\n\020HTTP2HealthCheck\022\024\n\004host\030\250\353\303\001 \001(" - + "\tH\000\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tport_nam" - + "e\030\211\207\347\023 \001(\tH\002\210\001\001\022\"\n\022port_specification\030\305\353" - + "\314\030 \001(\tH\003\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\004\210\001" - + "\001\022\034\n\014request_path\030\325\327\261m \001(\tH\005\210\001\001\022\030\n\010respo" - + "nse\030\301\250\334] \001(\tH\006\210\001\001\"~\n\021PortSpecification\022 " - + "\n\034UNDEFINED_PORT_SPECIFICATION\020\000\022\025\n\016USE_" - + "FIXED_PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022" - + "\030\n\020USE_SERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader" - + "\022\032\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222" - + "\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\007\n\005_hostB\007\n\005_portB\014\n" - + "\n_port_nameB\025\n\023_port_specificationB\017\n\r_p" - + "roxy_headerB\017\n\r_request_pathB\013\n\t_respons" - + "e\"\202\004\n\017HTTPHealthCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000" - + "\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tport_name\030\211" - + "\207\347\023 \001(\tH\002\210\001\001\022\"\n\022port_specification\030\305\353\314\030 " - + "\001(\tH\003\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\004\210\001\001\022\034" - + "\n\014request_path\030\325\327\261m \001(\tH\005\210\001\001\022\030\n\010response" - + "\030\301\250\334] \001(\tH\006\210\001\001\"~\n\021PortSpecification\022 \n\034U" - + "NDEFINED_PORT_SPECIFICATION\020\000\022\025\n\016USE_FIX" - + "ED_PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020" - + "USE_SERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n" - + "\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020" - + "\n\010PROXY_V1\020\254\244\267\237\001B\007\n\005_hostB\007\n\005_portB\014\n\n_p" - + "ort_nameB\025\n\023_port_specificationB\017\n\r_prox" - + "y_headerB\017\n\r_request_pathB\013\n\t_response\"\203" - + "\004\n\020HTTPSHealthCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001" - + "\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tport_name\030\211\207\347" - + "\023 \001(\tH\002\210\001\001\022\"\n\022port_specification\030\305\353\314\030 \001(" - + "\tH\003\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\004\210\001\001\022\034\n\014" - + "request_path\030\325\327\261m \001(\tH\005\210\001\001\022\030\n\010response\030\301" - + "\250\334] \001(\tH\006\210\001\001\"~\n\021PortSpecification\022 \n\034UND" - + "EFINED_PORT_SPECIFICATION\020\000\022\025\n\016USE_FIXED" - + "_PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020US" - + "E_SERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026U" - + "NDEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010" - + "PROXY_V1\020\254\244\267\237\001B\007\n\005_hostB\007\n\005_portB\014\n\n_por" - + "t_nameB\025\n\023_port_specificationB\017\n\r_proxy_" - + "headerB\017\n\r_request_pathB\013\n\t_response\"\337\n\n" - + "\013HealthCheck\022#\n\022check_interval_sec\030\256\257\343\244\001" - + " \001(\005H\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" - + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022K\n\021g" - + "rpc_health_check\030\346\247\344( \001(\0132(.google.cloud" - + ".compute.v1.GRPCHealthCheckH\003\210\001\001\022\"\n\021heal" - + "thy_threshold\030\311\220\242\300\001 \001(\005H\004\210\001\001\022M\n\022http2_he" - + "alth_check\030\332\265\265\005 \001(\0132).google.cloud.compu" - + "te.v1.HTTP2HealthCheckH\005\210\001\001\022L\n\021http_heal" - + "th_check\030\274\247\336\304\001 \001(\0132(.google.cloud.comput" - + "e.v1.HTTPHealthCheckH\006\210\001\001\022N\n\022https_healt" - + "h_check\030\271\230\366\317\001 \001(\0132).google.cloud.compute" - + ".v1.HTTPSHealthCheckH\007\210\001\001\022\020\n\002id\030\233\032 \001(\004H\010" - + "\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\t\210\001\001\022J\n\nlog_config\030" - + "\235\321\301\247\001 \001(\0132-.google.cloud.compute.v1.Heal" - + "thCheckLogConfigH\n\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\013" - + "\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n\tself_link" - + "\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\032\n\016source_regions\030\333\367\261\301\001 " - + "\003(\t\022J\n\020ssl_health_check\030\270\351\303\205\001 \001(\0132\'.goog" - + "le.cloud.compute.v1.SSLHealthCheckH\016\210\001\001\022" - + "J\n\020tcp_health_check\030\203\252\215\340\001 \001(\0132\'.google.c" - + "loud.compute.v1.TCPHealthCheckH\017\210\001\001\022\033\n\013t" - + "imeout_sec\030\363\300\222& \001(\005H\020\210\001\001\022\024\n\004type\030\272\236\332\001 \001(" - + "\tH\021\210\001\001\022#\n\023unhealthy_threshold\030\320\275\331l \001(\005H\022" - + "\210\001\001\"w\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\013\n\004GRPC\020" - + "\236\210\206\001\022\013\n\004HTTP\020\210\201\210\001\022\014\n\005HTTP2\020\252\241\370 \022\014\n\005HTTPS" - + "\020\313\241\370 \022\017\n\007INVALID\020\327\373\355\374\001\022\t\n\003SSL\020\354\203\005\022\t\n\003TCP" - + "\020\301\207\005B\025\n\023_check_interval_secB\025\n\023_creation" - + "_timestampB\016\n\014_descriptionB\024\n\022_grpc_heal" - + "th_checkB\024\n\022_healthy_thresholdB\025\n\023_http2" - + "_health_checkB\024\n\022_http_health_checkB\025\n\023_" - + "https_health_checkB\005\n\003_idB\007\n\005_kindB\r\n\013_l" - + "og_configB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_l" - + "inkB\023\n\021_ssl_health_checkB\023\n\021_tcp_health_" - + "checkB\016\n\014_timeout_secB\007\n\005_typeB\026\n\024_unhea" - + "lthy_threshold\"\247\002\n\017HealthCheckList\022\020\n\002id" - + "\030\233\032 \001(\tH\000\210\001\001\0226\n\005items\030\300\317\367/ \003(\0132$.google." - + "cloud.compute.v1.HealthCheck\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" - + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warni" - + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" - + "rningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" - + "_tokenB\014\n\n_self_linkB\n\n\010_warning\":\n\024Heal" - + "thCheckLogConfig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001" - + "\001B\t\n\007_enable\"F\n\024HealthCheckReference\022\035\n\014" - + "health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001B\017\n\r_health_c" - + "heck\"\374\004\n\022HealthCheckService\022\"\n\022creation_" - + "timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374" - + "\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210" - + "\001\001\022\031\n\rhealth_checks\030\256\257\346\325\001 \003(\t\0220\n health_" - + "status_aggregation_policy\030\371\354\333x \001(\tH\003\210\001\001\022" - + "\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022" - + "\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\"\n\027network_endpoin" - + "t_groups\030\255\227\377\r \003(\t\022\"\n\026notification_endpoi" - + "nts\030\252\336\370\301\001 \003(\t\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\"r\n\035HealthStatu" - + "sAggregationPolicy\022.\n*UNDEFINED_HEALTH_S" - + "TATUS_AGGREGATION_POLICY\020\000\022\t\n\003AND\020\267\373\003\022\026\n" - + "\016NO_AGGREGATION\020\304\222\254\313\001B\025\n\023_creation_times" - + "tampB\016\n\014_descriptionB\016\n\014_fingerprintB#\n!" - + "_health_status_aggregation_policyB\005\n\003_id" - + "B\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_l" - + "ink\"]\n\033HealthCheckServiceReference\022%\n\024he" - + "alth_check_service\030\333\233\335\302\001 \001(\tH\000\210\001\001B\027\n\025_he" - + "alth_check_service\"\266\002\n\027HealthCheckServic" - + "esList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022=\n\005items\030\300\317\367/ \003" - + "(\0132+.google.cloud.compute.v1.HealthCheck" - + "Service\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" + + "\226\301l \001(\tB\003\340A\002B\013\n\t_priority\"\246\001\n)GetRuleReg" + + "ionNetworkFirewallPolicyRequest\022 \n\017firew" + + "all_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\031\n\010priority\030\244\363" + + "\241\324\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002B\013\n\t_priority\"\236\001\n\"G" + + "etRuleRegionSecurityPolicyRequest\022\031\n\010pri" + + "ority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n\017securit" + + "y_policy\030\221\206\312Q \001(\tB\003\340A\002B\013\n\t_priority\"\200\001\n\034" + + "GetRuleSecurityPolicyRequest\022\031\n\010priority" + + "\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\013\n\t_pr" + + "iority\"g\n\034GetScreenshotInstanceRequest\022\030" + + "\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l" + + " \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"T\n\030GetSe" + + "curityPolicyRequest\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\"\255\001" + + "\n\"GetSerialPortOutputInstanceRequest\022\030\n\010" + + "instance\030\225\251\332\010 \001(\tB\003\340A\002\022\024\n\004port\030\201\261\322\001 \001(\005H" + + "\000\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\025\n\005start\030\342" + + "\210\2534 \001(\003H\001\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\007\n\005_p" + + "ortB\010\n\006_start\"s\n\033GetServiceAttachmentReq" + + "uest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030" + + "\364\315\240B \001(\tB\003\340A\002\022#\n\022service_attachment\030\355\251\320\241" + + "\001 \001(\tB\003\340A\002\"u\n*GetShieldedInstanceIdentit" + + "yInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340" + + "A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001" + + " \001(\tB\003\340A\002\"H\n\022GetSnapshotRequest\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\031\n\010snapshot\030\304\253\353\207\001 \001(\tB\003" + + "\340A\002\"4\n\031GetSnapshotSettingRequest\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\"T\n\030GetSslCertificateRe" + + "quest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\037\n\017ssl_ce" + + "rtificate\030\344\327\222\026 \001(\tB\003\340A\002\"K\n\023GetSslPolicyR" + + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\033\n\nssl_p" + + "olicy\030\305\375\340\214\001 \001(\tB\003\340A\002\"k\n\032GetStatusVpnGate" + + "wayRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" + + "egion\030\364\315\240B \001(\tB\003\340A\002\022\034\n\013vpn_gateway\030\371\203\366\301\001" + + " \001(\tB\003\340A\002\"e\n\025GetStoragePoolRequest\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\022\035\n\014storage_pool\030\340\306\361\253" + + "\001 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"n\n\031GetS" + + "toragePoolTypeRequest\022\027\n\007project\030\231\226\301l \001(" + + "\tB\003\340A\002\022\"\n\021storage_pool_type\030\271\201\260\210\001 \001(\tB\003\340" + + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"d\n\024GetSubnetwor" + + "kRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" + + "ion\030\364\315\240B \001(\tB\003\340A\002\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(" + + "\tB\003\340A\002\"W\n\031GetTargetGrpcProxyRequest\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022!\n\021target_grpc_prox" + + "y\030\373\264\262\002 \001(\tB\003\340A\002\"W\n\031GetTargetHttpProxyReq" + + "uest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\021target_" + + "http_proxy\030\345\276\322b \001(\tB\003\340A\002\"Y\n\032GetTargetHtt" + + "psProxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\"k\n\030G" + + "etTargetInstanceRequest\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022 \n\017target_instance\030\203\217\226\212\001 \001(\tB\003\340" + + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"d\n\024GetTargetPoo" + + "lRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" + + "ion\030\364\315\240B \001(\tB\003\340A\002\022\033\n\013target_pool\030\212\344\370\035 \001(" + + "\tB\003\340A\002\"V\n\030GetTargetSslProxyRequest\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\022!\n\020target_ssl_proxy\030" + + "\315\272\306\241\001 \001(\tB\003\340A\002\"V\n\030GetTargetTcpProxyReque" + + "st\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\020target_tc" + + "p_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002\"r\n\032GetTargetVpnGa" + + "tewayRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022#\n\022target_vpn_gate" + + "way\030\313\200\366\375\001 \001(\tB\003\340A\002\"E\n\020GetUrlMapRequest\022\027" + + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001" + + " \001(\tB\003\340A\002\"e\n\024GetVpnGatewayRequest\022\027\n\007pro" + + "ject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340" + + "A\002\022\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002\"b\n\023GetV" + + "pnTunnelRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\032\n\nvpn_tunnel\030\223" + + "\224\312D \001(\tB\003\340A\002\"3\n\030GetXpnHostProjectRequest" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"\240\002\n\036GetXpnReso" + + "urcesProjectsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t" + + "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + + "age_tokenB\031\n\027_return_partial_success\"j\n\027" + + "GetZoneOperationRequest\022 \n\toperation\030\347\252\353" + + "\030 \001(\tB\n\340A\002\372G\004name\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"?\n\016GetZoneReque" + + "st\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001" + + " \001(\tB\003\340A\002\"\210\001\n\032GlobalAddressesMoveRequest" + + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n\023destin" + + "ation_address\030\303\261\236\261\001 \001(\tH\001\210\001\001B\016\n\014_descrip" + + "tionB\026\n\024_destination_address\"{\n1GlobalNe" + + "tworkEndpointGroupsAttachEndpointsReques" + + "t\022F\n\021network_endpoints\030\255\221\272G \003(\0132(.google" + + ".cloud.compute.v1.NetworkEndpoint\"{\n1Glo" + + "balNetworkEndpointGroupsDetachEndpointsR" + + "equest\022F\n\021network_endpoints\030\255\221\272G \003(\0132(.g" + + "oogle.cloud.compute.v1.NetworkEndpoint\"\277" + + "\001\n\"GlobalOrganizationSetPolicyRequest\0226\n" + + "\010bindings\030\216\305\244\300\001 \003(\0132 .google.cloud.compu" + + "te.v1.Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n\006p" + + "olicy\030\262\312\266+ \001(\0132\037.google.cloud.compute.v1" + + ".PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007_policy\"\321\001\n\026Glo" + + "balSetLabelsRequest\022!\n\021label_fingerprint" + + "\030\231\360\367T \001(\tH\000\210\001\001\022O\n\006labels\030\377\277\301\356\001 \003(\0132;.goo" + + "gle.cloud.compute.v1.GlobalSetLabelsRequ" + + "est.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\024\n\022_label_fingerp" + + "rint\"\263\001\n\026GlobalSetPolicyRequest\0226\n\010bindi" + + "ngs\030\216\305\244\300\001 \003(\0132 .google.cloud.compute.v1." + + "Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n\006policy\030" + + "\262\312\266+ \001(\0132\037.google.cloud.compute.v1.Polic" + + "yH\001\210\001\001B\007\n\005_etagB\t\n\007_policy\"\304\002\n\017GuestAttr" + + "ibutes\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\033\n\nquery_pa" + + "th\030\274\202\341\257\001 \001(\tH\001\210\001\001\022J\n\013query_value\030\272\256\221K \001(" + + "\0132-.google.cloud.compute.v1.GuestAttribu" + + "tesValueH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001" + + "\001\022\034\n\014variable_key\030\234\204\260N \001(\tH\004\210\001\001\022\036\n\016varia" + + "ble_value\030\356\363\263; \001(\tH\005\210\001\001B\007\n\005_kindB\r\n\013_que" + + "ry_pathB\016\n\014_query_valueB\014\n\n_self_linkB\017\n" + + "\r_variable_keyB\021\n\017_variable_value\"|\n\024Gue" + + "stAttributesEntry\022\022\n\003key\030\337\274\006 \001(\tH\000\210\001\001\022\031\n" + + "\tnamespace\030\333\252\215U \001(\tH\001\210\001\001\022\025\n\005value\030\361\242\2625 \001" + + "(\tH\002\210\001\001B\006\n\004_keyB\014\n\n_namespaceB\010\n\006_value\"" + + "W\n\024GuestAttributesValue\022?\n\005items\030\300\317\367/ \003(" + + "\0132-.google.cloud.compute.v1.GuestAttribu" + + "tesEntry\"\371\002\n\016GuestOsFeature\022\024\n\004type\030\272\236\332\001" + + " \001(\tH\000\210\001\001\"\307\002\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022 " + + "\n\030FEATURE_TYPE_UNSPECIFIED\020\333\277\310\375\001\022\014\n\005GVNI" + + "C\020\231\225\303 \022\013\n\004IDPF\020\321\360\210\001\022\026\n\017MULTI_IP_SUBNET\020\317" + + "\333\257H\022\023\n\013SECURE_BOOT\020\272\335\326\263\001\022\022\n\013SEV_CAPABLE\020", + "\221\226\303)\022\033\n\023SEV_LIVE_MIGRATABLE\020\214\233\370\272\001\022\035\n\026SEV" + + "_LIVE_MIGRATABLE_V2\020\257\314\257P\022\025\n\017SEV_SNP_CAPA" + + "BLE\020\247\207\032\022\022\n\013TDX_CAPABLE\020\265\325\323r\022\026\n\017UEFI_COMP" + + "ATIBLE\020\300\326\262]\022\035\n\026VIRTIO_SCSI_MULTIQUEUE\020\215\301" + + "\220`\022\017\n\007WINDOWS\020\343\334\354\331\001B\007\n\005_type\"\203\004\n\020HTTP2He" + + "althCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004port\030" + + "\201\261\322\001 \001(\005H\001\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\002\210\001\001" + + "\022\"\n\022port_specification\030\305\353\314\030 \001(\tH\003\210\001\001\022\034\n\014" + + "proxy_header\030\376\272\274L \001(\tH\004\210\001\001\022\034\n\014request_pa" + + "th\030\325\327\261m \001(\tH\005\210\001\001\022\030\n\010response\030\301\250\334] \001(\tH\006\210" + + "\001\001\"~\n\021PortSpecification\022 \n\034UNDEFINED_POR" + + "T_SPECIFICATION\020\000\022\025\n\016USE_FIXED_PORT\020\344\210\333Z" + + "\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_SERVING_" + + "PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_P" + + "ROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254" + + "\244\267\237\001B\007\n\005_hostB\007\n\005_portB\014\n\n_port_nameB\025\n\023" + + "_port_specificationB\017\n\r_proxy_headerB\017\n\r" + + "_request_pathB\013\n\t_response\"\202\004\n\017HTTPHealt" + + "hCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004port\030\201\261\322" + + "\001 \001(\005H\001\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\002\210\001\001\022\"\n" + + "\022port_specification\030\305\353\314\030 \001(\tH\003\210\001\001\022\034\n\014pro" + + "xy_header\030\376\272\274L \001(\tH\004\210\001\001\022\034\n\014request_path\030" + + "\325\327\261m \001(\tH\005\210\001\001\022\030\n\010response\030\301\250\334] \001(\tH\006\210\001\001\"" + + "~\n\021PortSpecification\022 \n\034UNDEFINED_PORT_S" + + "PECIFICATION\020\000\022\025\n\016USE_FIXED_PORT\020\344\210\333Z\022\026\n" + + "\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_SERVING_POR" + + "T\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_PROX" + + "Y_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237" + + "\001B\007\n\005_hostB\007\n\005_portB\014\n\n_port_nameB\025\n\023_po" + + "rt_specificationB\017\n\r_proxy_headerB\017\n\r_re" + + "quest_pathB\013\n\t_response\"\203\004\n\020HTTPSHealthC" + + "heck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004port\030\201\261\322\001 " + + "\001(\005H\001\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\002\210\001\001\022\"\n\022p" + + "ort_specification\030\305\353\314\030 \001(\tH\003\210\001\001\022\034\n\014proxy" + + "_header\030\376\272\274L \001(\tH\004\210\001\001\022\034\n\014request_path\030\325\327" + + "\261m \001(\tH\005\210\001\001\022\030\n\010response\030\301\250\334] \001(\tH\006\210\001\001\"~\n" + + "\021PortSpecification\022 \n\034UNDEFINED_PORT_SPE" + + "CIFICATION\020\000\022\025\n\016USE_FIXED_PORT\020\344\210\333Z\022\026\n\016U" + + "SE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_SERVING_PORT\020" + + "\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_PROXY_" + + "HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B" + + "\007\n\005_hostB\007\n\005_portB\014\n\n_port_nameB\025\n\023_port" + + "_specificationB\017\n\r_proxy_headerB\017\n\r_requ" + + "est_pathB\013\n\t_response\"\337\n\n\013HealthCheck\022#\n" + + "\022check_interval_sec\030\256\257\343\244\001 \001(\005H\000\210\001\001\022\"\n\022cr" + + "eation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013descri" + + "ption\030\374\207\326\311\001 \001(\tH\002\210\001\001\022K\n\021grpc_health_chec" + + "k\030\346\247\344( \001(\0132(.google.cloud.compute.v1.GRP" + + "CHealthCheckH\003\210\001\001\022\"\n\021healthy_threshold\030\311" + + "\220\242\300\001 \001(\005H\004\210\001\001\022M\n\022http2_health_check\030\332\265\265\005" + + " \001(\0132).google.cloud.compute.v1.HTTP2Heal" + + "thCheckH\005\210\001\001\022L\n\021http_health_check\030\274\247\336\304\001 " + + "\001(\0132(.google.cloud.compute.v1.HTTPHealth" + + "CheckH\006\210\001\001\022N\n\022https_health_check\030\271\230\366\317\001 \001" + + "(\0132).google.cloud.compute.v1.HTTPSHealth" + + "CheckH\007\210\001\001\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\t\210\001\001\022J\n\nlog_config\030\235\321\301\247\001 \001(\0132-.goo" + + "gle.cloud.compute.v1.HealthCheckLogConfi" + + "gH\n\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\013\210\001\001\022\026\n\006region\030\364" + + "\315\240B \001(\tH\014\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001" + + "\022\032\n\016source_regions\030\333\367\261\301\001 \003(\t\022J\n\020ssl_heal" + + "th_check\030\270\351\303\205\001 \001(\0132\'.google.cloud.comput" + + "e.v1.SSLHealthCheckH\016\210\001\001\022J\n\020tcp_health_c" + + "heck\030\203\252\215\340\001 \001(\0132\'.google.cloud.compute.v1" + + ".TCPHealthCheckH\017\210\001\001\022\033\n\013timeout_sec\030\363\300\222&" + + " \001(\005H\020\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\021\210\001\001\022#\n\023unhea" + + "lthy_threshold\030\320\275\331l \001(\005H\022\210\001\001\"w\n\004Type\022\022\n\016" + + "UNDEFINED_TYPE\020\000\022\013\n\004GRPC\020\236\210\206\001\022\013\n\004HTTP\020\210\201" + + "\210\001\022\014\n\005HTTP2\020\252\241\370 \022\014\n\005HTTPS\020\313\241\370 \022\017\n\007INVALI" + + "D\020\327\373\355\374\001\022\t\n\003SSL\020\354\203\005\022\t\n\003TCP\020\301\207\005B\025\n\023_check_" + + "interval_secB\025\n\023_creation_timestampB\016\n\014_" + + "descriptionB\024\n\022_grpc_health_checkB\024\n\022_he" + + "althy_thresholdB\025\n\023_http2_health_checkB\024" + + "\n\022_http_health_checkB\025\n\023_https_health_ch" + + "eckB\005\n\003_idB\007\n\005_kindB\r\n\013_log_configB\007\n\005_n" + + "ameB\t\n\007_regionB\014\n\n_self_linkB\023\n\021_ssl_hea" + + "lth_checkB\023\n\021_tcp_health_checkB\016\n\014_timeo" + + "ut_secB\007\n\005_typeB\026\n\024_unhealthy_threshold\"" + + "\247\002\n\017HealthCheckList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0226\n" + + "\005items\030\300\317\367/ \003(\0132$.google.cloud.compute.v" + + "1.HealthCheck\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017n" + + "ext_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_lin" + + "k\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .g" + + "oogle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_" + + "idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self" + + "_linkB\n\n\010_warning\":\n\024HealthCheckLogConfi" + + "g\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001B\t\n\007_enable\"F\n" + + "\024HealthCheckReference\022\035\n\014health_check\030\345\252" + + "\244\223\001 \001(\tH\000\210\001\001B\017\n\r_health_check\"\374\004\n\022Health" + + "CheckService\022\"\n\022creation_timestamp\030\266\217\307\016 " + + "\001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033" + + "\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022\031\n\rhealth_ch" + + "ecks\030\256\257\346\325\001 \003(\t\0220\n health_status_aggregat" + + "ion_policy\030\371\354\333x \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210" + + "\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" + + "\tH\006\210\001\001\022\"\n\027network_endpoint_groups\030\255\227\377\r \003" + + "(\t\022\"\n\026notification_endpoints\030\252\336\370\301\001 \003(\t\022\026" + + "\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\010\210\001\001\"r\n\035HealthStatusAggregationPol" + + "icy\022.\n*UNDEFINED_HEALTH_STATUS_AGGREGATI" + + "ON_POLICY\020\000\022\t\n\003AND\020\267\373\003\022\026\n\016NO_AGGREGATION" + + "\020\304\222\254\313\001B\025\n\023_creation_timestampB\016\n\014_descri" + + "ptionB\016\n\014_fingerprintB#\n!_health_status_" + + "aggregation_policyB\005\n\003_idB\007\n\005_kindB\007\n\005_n" + + "ameB\t\n\007_regionB\014\n\n_self_link\"]\n\033HealthCh" + + "eckServiceReference\022%\n\024health_check_serv" + + "ice\030\333\233\335\302\001 \001(\tH\000\210\001\001B\027\n\025_health_check_serv" + + "ice\"\266\002\n\027HealthCheckServicesList\022\020\n\002id\030\233\032" + + " \001(\tH\000\210\001\001\022=\n\005items\030\300\317\367/ \003(\0132+.google.clo" + + "ud.compute.v1.HealthCheckService\022\024\n\004kind" + + "\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001" + + "(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" + + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\304\003\n" + + "\032HealthChecksAggregatedList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\022P\n\005items\030\300\317\367/ \003(\0132>.google.cloud.c" + + "ompute.v1.HealthChecksAggregatedList.Ite" + + "msEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" + "ge_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331" - + "\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005" + + "\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\004\210\001\001\032]\n\nItemsEntry\022\013\n\003key\030\001 \001(" + + "\t\022>\n\005value\030\002 \001(\0132/.google.cloud.compute." + + "v1.HealthChecksScopedList:\0028\001B\005\n\003_idB\007\n\005" + "_kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB" - + "\n\n\010_warning\"\304\003\n\032HealthChecksAggregatedLi" - + "st\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022P\n\005items\030\300\317\367/ \003(\0132>" - + ".google.cloud.compute.v1.HealthChecksAgg" - + "regatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachable" - + "s\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001\032]\n\nItemsEn" - + "try\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google" - + ".cloud.compute.v1.HealthChecksScopedList" - + ":\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_token" - + "B\014\n\n_self_linkB\n\n\010_warning\"\240\001\n\026HealthChe" - + "cksScopedList\022?\n\rhealth_checks\030\256\257\346\325\001 \003(\013" - + "2$.google.cloud.compute.v1.HealthCheck\0229" - + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" - + "e.v1.WarningH\000\210\001\001B\n\n\010_warning\"\362\006\n\014Health" - + "Status\022N\n\013annotations\030\244\366\2655 \003(\01326.google." - + "cloud.compute.v1.HealthStatus.Annotation" - + "sEntry\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001" - + "\022\"\n\022forwarding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n\014" - + "health_state\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n\010instance\030" - + "\225\251\332\010 \001(\tH\003\210\001\001\022\033\n\nip_address\030\334\361\334\301\001 \001(\tH\004\210" - + "\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(\tH\005\210\001\001\022!\n\021ipv" - + "6_health_state\030\306\200\340Z \001(\tH\006\210\001\001\022\024\n\004port\030\201\261\322" - + "\001 \001(\005H\007\210\001\001\022\027\n\006weight\030\370\204\305\206\001 \001(\tH\010\210\001\001\022\035\n\014w" - + "eight_error\030\201\373\222\371\001 \001(\tH\t\210\001\001\0322\n\020Annotation" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"M" - + "\n\013HealthState\022\032\n\026UNDEFINED_HEALTH_STATE\020" - + "\000\022\017\n\007HEALTHY\020\375\252\333\321\001\022\021\n\tUNHEALTHY\020\304\271\255\334\001\"2\n" - + "\017Ipv6HealthState\022\037\n\033UNDEFINED_IPV6_HEALT" - + "H_STATE\020\000\"\212\001\n\013WeightError\022\032\n\026UNDEFINED_W" - + "EIGHT_ERROR\020\000\022\026\n\016INVALID_WEIGHT\020\340\213\373\266\001\022\026\n" - + "\016MISSING_WEIGHT\020\221\227\217\267\001\022\032\n\022UNAVAILABLE_WEI" - + "GHT\020\347\342\306\321\001\022\023\n\013WEIGHT_NONE\020\237\351\311\357\001B\022\n\020_forwa" - + "rding_ruleB\025\n\023_forwarding_rule_ipB\017\n\r_he" - + "alth_stateB\013\n\t_instanceB\r\n\013_ip_addressB\017" - + "\n\r_ipv6_addressB\024\n\022_ipv6_health_stateB\007\n" - + "\005_portB\t\n\007_weightB\017\n\r_weight_error\"\324\005\n\036H" - + "ealthStatusForNetworkEndpoint\022R\n\017backend" - + "_service\030\212\300\256\222\001 \001(\01320.google.cloud.comput" - + "e.v1.BackendServiceReferenceH\000\210\001\001\022R\n\017for" - + "warding_rule\030\376\245\335\200\001 \001(\01320.google.cloud.co" - + "mpute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" - + "\014health_check\030\345\252\244\223\001 \001(\0132-.google.cloud.c" - + "ompute.v1.HealthCheckReferenceH\002\210\001\001\022[\n\024h" - + "ealth_check_service\030\333\233\335\302\001 \001(\01324.google.c" - + "loud.compute.v1.HealthCheckServiceRefere" - + "nceH\003\210\001\001\022\035\n\014health_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022" - + "!\n\021ipv6_health_state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n\013He" - + "althState\022\032\n\026UNDEFINED_HEALTH_STATE\020\000\022\020\n" - + "\010DRAINING\020\352\325\214\345\001\022\017\n\007HEALTHY\020\375\252\333\321\001\022\021\n\tUNHE" - + "ALTHY\020\304\271\255\334\001\022\017\n\007UNKNOWN\020\252\360\304\316\001\"2\n\017Ipv6Heal" - + "thState\022\037\n\033UNDEFINED_IPV6_HEALTH_STATE\020\000" - + "B\022\n\020_backend_serviceB\022\n\020_forwarding_rule" - + "B\017\n\r_health_checkB\027\n\025_health_check_servi" - + "ceB\017\n\r_health_stateB\024\n\022_ipv6_health_stat" - + "e\";\n\004Help\0223\n\005links\030\271\237\2151 \003(\0132!.google.clo" - + "ud.compute.v1.HelpLink\"T\n\010HelpLink\022\034\n\013de" - + "scription\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH" - + "\001\210\001\001B\016\n\014_descriptionB\006\n\004_url\"z\n\010HostRule" - + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\020\n\005hosts\030" - + "\313\377\266/ \003(\t\022\035\n\014path_matcher\030\230\276\212\241\001 \001(\tH\001\210\001\001B" - + "\016\n\014_descriptionB\017\n\r_path_matcher\"i\n\016Http" - + "FaultAbort\022\034\n\013http_status\030\211\267\316\337\001 \001(\rH\000\210\001\001" - + "\022\032\n\npercentage\030\232\345\267H \001(\001H\001\210\001\001B\016\n\014_http_st" - + "atusB\r\n\013_percentage\"\214\001\n\016HttpFaultDelay\022?" - + "\n\013fixed_delay\030\370\271\226\227\001 \001(\0132!.google.cloud.c" - + "ompute.v1.DurationH\000\210\001\001\022\032\n\npercentage\030\232\345" - + "\267H \001(\001H\001\210\001\001B\016\n\014_fixed_delayB\r\n\013_percenta" - + "ge\"\250\001\n\022HttpFaultInjection\022>\n\005abort\030\260\306\224, " - + "\001(\0132\'.google.cloud.compute.v1.HttpFaultA" - + "bortH\000\210\001\001\022>\n\005delay\030\203\363\302- \001(\0132\'.google.clo" - + "ud.compute.v1.HttpFaultDelayH\001\210\001\001B\010\n\006_ab" - + "ortB\010\n\006_delay\"\374\001\n\020HttpHeaderAction\022L\n\026re" - + "quest_headers_to_add\030\346\256\261\" \003(\0132).google.c" - + "loud.compute.v1.HttpHeaderOption\022$\n\031requ" - + "est_headers_to_remove\030\237\317\223h \003(\t\022M\n\027respon" - + "se_headers_to_add\030\364\266\251\017 \003(\0132).google.clou" - + "d.compute.v1.HttpHeaderOption\022%\n\032respons" - + "e_headers_to_remove\030\321\201\373# \003(\t\"\260\003\n\017HttpHea" - + "derMatch\022\034\n\013exact_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\033" - + "\n\013header_name\030\375\301\3074 \001(\tH\001\210\001\001\022\035\n\014invert_ma" - + "tch\030\234\310\372\356\001 \001(\010H\002\210\001\001\022\034\n\014prefix_match\030\330\363\374z " - + "\001(\tH\003\210\001\001\022\035\n\rpresent_match\030\301\372\223 \001(\010H\004\210\001\001\022" - + "E\n\013range_match\030\303\250\257. \001(\0132(.google.cloud.c" - + "ompute.v1.Int64RangeMatchH\005\210\001\001\022\033\n\013regex_" - + "match\030\315\267\2323 \001(\tH\006\210\001\001\022\035\n\014suffix_match\030\327\346\256\313" - + "\001 \001(\tH\007\210\001\001B\016\n\014_exact_matchB\016\n\014_header_na" - + "meB\017\n\r_invert_matchB\017\n\r_prefix_matchB\020\n\016" - + "_present_matchB\016\n\014_range_matchB\016\n\014_regex" - + "_matchB\017\n\r_suffix_match\"\223\001\n\020HttpHeaderOp" - + "tion\022\033\n\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n\014hea" - + "der_value\030\277\362\353` \001(\tH\001\210\001\001\022\027\n\007replace\030\264\345\362\t " - + "\001(\010H\002\210\001\001B\016\n\014_header_nameB\017\n\r_header_valu" - + "eB\n\n\010_replace\"\304\001\n\027HttpQueryParameterMatc" - + "h\022\034\n\013exact_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\024\n\004name\030" - + "\213\365\315\001 \001(\tH\001\210\001\001\022\035\n\rpresent_match\030\301\372\223 \001(\010H" - + "\002\210\001\001\022\033\n\013regex_match\030\315\267\2323 \001(\tH\003\210\001\001B\016\n\014_ex" - + "act_matchB\007\n\005_nameB\020\n\016_present_matchB\016\n\014" - + "_regex_match\"\214\004\n\022HttpRedirectAction\022\035\n\rh" - + "ost_redirect\030\223\241\2343 \001(\tH\000\210\001\001\022\036\n\016https_redi" - + "rect\030\260\361\227Q \001(\010H\001\210\001\001\022\036\n\rpath_redirect\030\266\275\356\201" - + "\001 \001(\tH\002\210\001\001\022 \n\017prefix_redirect\030\351\365\340\324\001 \001(\tH" - + "\003\210\001\001\022\'\n\026redirect_response_code\030\210\330\236\320\001 \001(\t" - + "H\004\210\001\001\022\033\n\013strip_query\030\341\231\367\030 \001(\010H\005\210\001\001\"\270\001\n\024R" - + "edirectResponseCode\022$\n UNDEFINED_REDIREC" - + "T_RESPONSE_CODE\020\000\022\014\n\005FOUND\020\342\276\376\037\022!\n\031MOVED" - + "_PERMANENTLY_DEFAULT\020\321\231\262\270\001\022\032\n\022PERMANENT_" - + "REDIRECT\020\355\350\223\266\001\022\021\n\tSEE_OTHER\020\344\357\257\324\001\022\032\n\022TEM" - + "PORARY_REDIRECT\020\252\344\267\351\001B\020\n\016_host_redirectB" - + "\021\n\017_https_redirectB\020\n\016_path_redirectB\022\n\020" - + "_prefix_redirectB\031\n\027_redirect_response_c" - + "odeB\016\n\014_strip_query\"\264\001\n\017HttpRetryPolicy\022" - + "\033\n\013num_retries\030\215\253\201x \001(\rH\000\210\001\001\022C\n\017per_try_" - + "timeout\030\273\255\304\205\001 \001(\0132!.google.cloud.compute" - + ".v1.DurationH\001\210\001\001\022\033\n\020retry_conditions\030\257\341" - + "\336\r \003(\tB\016\n\014_num_retriesB\022\n\020_per_try_timeo" - + "ut\"\361\005\n\017HttpRouteAction\022A\n\013cors_policy\030\204\314" - + "\235\276\001 \001(\0132#.google.cloud.compute.v1.CorsPo" - + "licyH\000\210\001\001\022T\n\026fault_injection_policy\030\227\224\352\304" - + "\001 \001(\0132+.google.cloud.compute.v1.HttpFaul" - + "tInjectionH\001\210\001\001\022F\n\023max_stream_duration\030\230" - + "\245\245\035 \001(\0132!.google.cloud.compute.v1.Durati" - + "onH\002\210\001\001\022S\n\025request_mirror_policy\030\202\340\377h \001(" - + "\0132,.google.cloud.compute.v1.RequestMirro" - + "rPolicyH\003\210\001\001\022F\n\014retry_policy\030\251\345\212\033 \001(\0132(." - + "google.cloud.compute.v1.HttpRetryPolicyH" - + "\004\210\001\001\022;\n\007timeout\030\341\232\275\215\001 \001(\0132!.google.cloud" - + ".compute.v1.DurationH\005\210\001\001\022A\n\013url_rewrite" - + "\030\274\375\252\202\001 \001(\0132#.google.cloud.compute.v1.Url" - + "RewriteH\006\210\001\001\022V\n\031weighted_backend_service" - + "s\030\321\307\332\240\001 \003(\0132/.google.cloud.compute.v1.We" - + "ightedBackendServiceB\016\n\014_cors_policyB\031\n\027" - + "_fault_injection_policyB\026\n\024_max_stream_d" - + "urationB\030\n\026_request_mirror_policyB\017\n\r_re" - + "try_policyB\n\n\010_timeoutB\016\n\014_url_rewrite\"\350" - + "\004\n\rHttpRouteRule\022`\n\034custom_error_respons" - + "e_policy\030\353\370\332` \001(\01322.google.cloud.compute" - + ".v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n\013de" - + "scription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\rheader_actio" - + "n\030\250\240\270\234\001 \001(\0132).google.cloud.compute.v1.Ht" - + "tpHeaderActionH\002\210\001\001\022D\n\013match_rules\030\375\273\261\263\001" - + " \003(\0132+.google.cloud.compute.v1.HttpRoute" - + "RuleMatch\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n\014" - + "route_action\030\354\251\271\312\001 \001(\0132(.google.cloud.co" - + "mpute.v1.HttpRouteActionH\004\210\001\001\022\030\n\007service" - + "\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n\014url_redirect\030\254\241\230\301\001 \001(" - + "\0132+.google.cloud.compute.v1.HttpRedirect" - + "ActionH\006\210\001\001B\037\n\035_custom_error_response_po" - + "licyB\016\n\014_descriptionB\020\n\016_header_actionB\013" - + "\n\t_priorityB\017\n\r_route_actionB\n\n\010_service" - + "B\017\n\r_url_redirect\"\365\003\n\022HttpRouteRuleMatch" - + "\022\037\n\017full_path_match\030\333\211\252f \001(\tH\000\210\001\001\022D\n\016hea" - + "der_matches\030\201\353\310\254\001 \003(\0132(.google.cloud.com" - + "pute.v1.HttpHeaderMatch\022\034\n\013ignore_case\030\375" - + "\222\264\335\001 \001(\010H\001\210\001\001\022E\n\020metadata_filters\030\353\315\314\335\001 " - + "\003(\0132\'.google.cloud.compute.v1.MetadataFi" - + "lter\022$\n\023path_template_match\030\232\302\263\213\001 \001(\tH\002\210" - + "\001\001\022\034\n\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022U\n\027quer" - + "y_parameter_matches\030\346\225\276\210\001 \003(\01320.google.c" - + "loud.compute.v1.HttpQueryParameterMatch\022" - + "\033\n\013regex_match\030\315\267\2323 \001(\tH\004\210\001\001B\022\n\020_full_pa" - + "th_matchB\016\n\014_ignore_caseB\026\n\024_path_templa" - + "te_matchB\017\n\r_prefix_matchB\016\n\014_regex_matc" - + "h\"\271\022\n\005Image\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210" - + "\001\001\022#\n\022archive_size_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022" - + "\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\nd" - + "eprecated\030\263\313\321\365\001 \001(\0132*.google.cloud.compu" - + "te.v1.DeprecationStatusH\003\210\001\001\022\034\n\013descript" - + "ion\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001" - + " \001(\003H\005\210\001\001\022+\n\033enable_confidential_compute" - + "\030\274\353\3310 \001(\010H\006\210\001\001\022\027\n\006family\030\344\266\341\234\001 \001(\tH\007\210\001\001\022" - + "E\n\021guest_os_features\030\321\340\347% \003(\0132\'.google.c" - + "loud.compute.v1.GuestOsFeature\022\020\n\002id\030\233\032 " - + "\001(\004H\010\210\001\001\022U\n\024image_encryption_key\030\207\316\373\264\001 \001" - + "(\0132..google.cloud.compute.v1.CustomerEnc" - + "ryptionKeyH\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022!\n" - + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n\006labe" - + "ls\030\377\277\301\356\001 \003(\0132*.google.cloud.compute.v1.I" - + "mage.LabelsEntry\022\030\n\rlicense_codes\030\250\205\330\025 \003" - + "(\003\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\014\210\001\001\022;\n\010raw_disk\030\324\316\363\357\001 \001(\0132 .google.cl" - + "oud.compute.v1.RawDiskH\r\210\001\001\022\036\n\rsatisfies" - + "_pzi\030\241\335\253\345\001 \001(\010H\016\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253" - + "\345\001 \001(\010H\017\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022" - + "\\\n\037shielded_instance_initial_state\030\203\304\334[ " - + "\001(\0132+.google.cloud.compute.v1.InitialSta" - + "teConfigH\021\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\022" - + "\210\001\001\022[\n\032source_disk_encryption_key\030\341\240\270\375\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEn" - + "cryptionKeyH\023\210\001\001\022\037\n\016source_disk_id\030\331\315\311\330\001" - + " \001(\tH\024\210\001\001\022\034\n\014source_image\030\267\350\206\030 \001(\tH\025\210\001\001\022" - + "\\\n\033source_image_encryption_key\030\253\221\365\265\001 \001(\013" - + "2..google.cloud.compute.v1.CustomerEncry" - + "ptionKeyH\026\210\001\001\022\037\n\017source_image_id\030\243\374\260\032 \001(" - + "\tH\027\210\001\001\022\037\n\017source_snapshot\030\350\232\216< \001(\tH\030\210\001\001\022" - + "_\n\036source_snapshot_encryption_key\030\332\216\347\220\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEn" - + "cryptionKeyH\031\210\001\001\022\"\n\022source_snapshot_id\030\322" - + "\226\230/ \001(\tH\032\210\001\001\022\034\n\013source_type\030\336\361\322\327\001 \001(\tH\033\210" - + "\001\001\022\026\n\006status\030\362\237\267V \001(\tH\034\210\001\001\022\035\n\021storage_lo" - + "cations\030\232\355\263\234\001 \003(\t\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\014Architecture" - + "\022\032\n\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030ARCHITEC" - + "TURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006" - + "X86_64\020\307\244\346\312\001\"2\n\nSourceType\022\031\n\025UNDEFINED_" - + "SOURCE_TYPE\020\000\022\t\n\003RAW\020\210\370\004\"^\n\006Status\022\024\n\020UN" - + "DEFINED_STATUS\020\000\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FA" - + "ILED\020\275\220\246\331\001\022\016\n\007PENDING\020\367\252\360\020\022\014\n\005READY\020\203\303\217%" - + "B\017\n\r_architectureB\025\n\023_archive_size_bytes" - + "B\025\n\023_creation_timestampB\r\n\013_deprecatedB\016" - + "\n\014_descriptionB\017\n\r_disk_size_gbB\036\n\034_enab" - + "le_confidential_computeB\t\n\007_familyB\005\n\003_i" - + "dB\027\n\025_image_encryption_keyB\007\n\005_kindB\024\n\022_" - + "label_fingerprintB\007\n\005_nameB\013\n\t_raw_diskB" - + "\020\n\016_satisfies_pziB\020\n\016_satisfies_pzsB\014\n\n_" - + "self_linkB\"\n _shielded_instance_initial_" - + "stateB\016\n\014_source_diskB\035\n\033_source_disk_en" - + "cryption_keyB\021\n\017_source_disk_idB\017\n\r_sour" - + "ce_imageB\036\n\034_source_image_encryption_key" - + "B\022\n\020_source_image_idB\022\n\020_source_snapshot" - + "B!\n\037_source_snapshot_encryption_keyB\025\n\023_" - + "source_snapshot_idB\016\n\014_source_typeB\t\n\007_s" - + "tatus\"R\n\017ImageFamilyView\0225\n\005image\030\333\322\352/ \001" - + "(\0132\036.google.cloud.compute.v1.ImageH\000\210\001\001B" - + "\010\n\006_image\"\233\002\n\tImageList\022\020\n\002id\030\233\032 \001(\tH\000\210\001" - + "\001\0220\n\005items\030\300\317\367/ \003(\0132\036.google.cloud.compu" - + "te.v1.Image\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017nex" - + "t_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030" - + "\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goo" - + "gle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_id" - + "B\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_l" - + "inkB\n\n\010_warning\"\216\002\n\022InitialStateConfig\0229" - + "\n\003dbs\030\265\207\006 \003(\0132*.google.cloud.compute.v1." - + "FileContentBuffer\022;\n\004dbxs\030\371\347\273\001 \003(\0132*.goo" - + "gle.cloud.compute.v1.FileContentBuffer\022;" - + "\n\004keks\030\302\330\310\001 \003(\0132*.google.cloud.compute.v" - + "1.FileContentBuffer\022<\n\002pk\030\373\033 \001(\0132*.googl" - + "e.cloud.compute.v1.FileContentBufferH\000\210\001" - + "\001B\005\n\003_pk\"\312\001\n\024InsertAddressRequest\022C\n\020add" - + "ress_resource\030\371\227\336\346\001 \001(\0132 .google.cloud.c" - + "ompute.v1.AddressB\003\340A\002\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" - + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n\013_request_id\"\316\001\n\027InsertAutoscalerReques" - + "t\022H\n\023autoscaler_resource\030\366\360\377b \001(\0132#.goog" - + "le.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002" - + "\362G\004zoneB\r\n\013_request_id\"\274\001\n\032InsertBackend" - + "BucketRequest\022P\n\027backend_bucket_resource" - + "\030\230\316\307\265\001 \001(\0132&.google.cloud.compute.v1.Bac" - + "kendBucketB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n\013_request_id\"\277\001\n\033InsertBackendServiceRe" - + "quest\022R\n\030backend_service_resource\030\243\201\337\245\001 " - + "\001(\0132\'.google.cloud.compute.v1.BackendSer" - + "viceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" - + "uest_id\"\353\001\n\021InsertDiskRequest\022<\n\rdisk_re" - + "source\030\360\320\253\014 \001(\0132\035.google.cloud.compute.v" - + "1.DiskB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\014so" - + "urce_image\030\267\350\206\030 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(" - + "\tB\n\340A\002\362G\004zoneB\r\n\013_request_idB\017\n\r_source_" - + "image\"\314\001\n\037InsertExternalVpnGatewayReques" - + "t\022[\n\035external_vpn_gateway_resource\030\210\337\220\350\001" - + " \001(\0132+.google.cloud.compute.v1.ExternalV" - + "pnGatewayB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\304\001\n\033InsertFirewallPolicyReq" - + "uest\022R\n\030firewall_policy_resource\030\274\266\207\354\001 \001" - + "(\0132\'.google.cloud.compute.v1.FirewallPol" - + "icyB\003\340A\002\022&\n\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tp" - + "arent_id\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" - + "_request_id\"\253\001\n\025InsertFirewallRequest\022D\n" - + "\021firewall_resource\030\355\260\340\023 \001(\0132!.google.clo" - + "ud.compute.v1.FirewallB\003\340A\002\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\340\001\n\033InsertForw" - + "ardingRuleRequest\022R\n\030forwarding_rule_res" - + "ource\030\257\300\320\217\001 \001(\0132\'.google.cloud.compute.v" - + "1.ForwardingRuleB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" - + "\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\257\001\n\032InsertGlobalAddressRequ" - + "est\022C\n\020address_resource\030\371\227\336\346\001 \001(\0132 .goog" - + "le.cloud.compute.v1.AddressB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\305\001\n!Inser", - "tGlobalForwardingRuleRequest\022R\n\030forwardi" - + "ng_rule_resource\030\257\300\320\217\001 \001(\0132\'.google.clou" - + "d.compute.v1.ForwardingRuleB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\330\001\n\'Inser" - + "tGlobalNetworkEndpointGroupRequest\022_\n\037ne" - + "twork_endpoint_group_resource\030\247\315\333\372\001 \001(\0132" - + "-.google.cloud.compute.v1.NetworkEndpoin" - + "tGroupB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" - + "equest_id\"\333\001\n)InsertGlobalPublicDelegate" - + "dPrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022`\n public_delegated_prefix_re" - + "source\030\205\370\330\026 \001(\0132..google.cloud.compute.v" - + "1.PublicDelegatedPrefixB\003\340A\002\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\265\001\n\030Inse" - + "rtHealthCheckRequest\022K\n\025health_check_res" - + "ource\030\250\303\244` \001(\0132$.google.cloud.compute.v1" - + ".HealthCheckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "\n\n\010_warning\"\240\001\n\026HealthChecksScopedList\022?" + + "\n\rhealth_checks\030\256\257\346\325\001 \003(\0132$.google.cloud" + + ".compute.v1.HealthCheck\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\000\210" + + "\001\001B\n\n\010_warning\"\362\006\n\014HealthStatus\022N\n\013annot" + + "ations\030\244\366\2655 \003(\01326.google.cloud.compute.v" + + "1.HealthStatus.AnnotationsEntry\022 \n\017forwa" + + "rding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n\022forwarding_" + + "rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n\014health_state\030\356\351" + + "\277\232\001 \001(\tH\002\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tH\003\210\001\001\022\033" + + "\n\nip_address\030\334\361\334\301\001 \001(\tH\004\210\001\001\022\035\n\014ipv6_addr" + + "ess\030\234\263\357\242\001 \001(\tH\005\210\001\001\022!\n\021ipv6_health_state\030" + + "\306\200\340Z \001(\tH\006\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\007\210\001\001\022\027\n\006w" + + "eight\030\370\204\305\206\001 \001(\tH\010\210\001\001\022\035\n\014weight_error\030\201\373\222" + + "\371\001 \001(\tH\t\210\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"M\n\013HealthState\022\032" + + "\n\026UNDEFINED_HEALTH_STATE\020\000\022\017\n\007HEALTHY\020\375\252" + + "\333\321\001\022\021\n\tUNHEALTHY\020\304\271\255\334\001\"2\n\017Ipv6HealthStat" + + "e\022\037\n\033UNDEFINED_IPV6_HEALTH_STATE\020\000\"\212\001\n\013W" + + "eightError\022\032\n\026UNDEFINED_WEIGHT_ERROR\020\000\022\026" + + "\n\016INVALID_WEIGHT\020\340\213\373\266\001\022\026\n\016MISSING_WEIGHT" + + "\020\221\227\217\267\001\022\032\n\022UNAVAILABLE_WEIGHT\020\347\342\306\321\001\022\023\n\013WE" + + "IGHT_NONE\020\237\351\311\357\001B\022\n\020_forwarding_ruleB\025\n\023_" + + "forwarding_rule_ipB\017\n\r_health_stateB\013\n\t_" + + "instanceB\r\n\013_ip_addressB\017\n\r_ipv6_address" + + "B\024\n\022_ipv6_health_stateB\007\n\005_portB\t\n\007_weig" + + "htB\017\n\r_weight_error\"\324\005\n\036HealthStatusForN" + + "etworkEndpoint\022R\n\017backend_service\030\212\300\256\222\001 " + + "\001(\01320.google.cloud.compute.v1.BackendSer" + + "viceReferenceH\000\210\001\001\022R\n\017forwarding_rule\030\376\245" + + "\335\200\001 \001(\01320.google.cloud.compute.v1.Forwar" + + "dingRuleReferenceH\001\210\001\001\022L\n\014health_check\030\345" + + "\252\244\223\001 \001(\0132-.google.cloud.compute.v1.Healt" + + "hCheckReferenceH\002\210\001\001\022[\n\024health_check_ser" + + "vice\030\333\233\335\302\001 \001(\01324.google.cloud.compute.v1" + + ".HealthCheckServiceReferenceH\003\210\001\001\022\035\n\014hea" + + "lth_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022!\n\021ipv6_health_" + + "state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n\013HealthState\022\032\n\026UN" + + "DEFINED_HEALTH_STATE\020\000\022\020\n\010DRAINING\020\352\325\214\345\001" + + "\022\017\n\007HEALTHY\020\375\252\333\321\001\022\021\n\tUNHEALTHY\020\304\271\255\334\001\022\017\n\007" + + "UNKNOWN\020\252\360\304\316\001\"2\n\017Ipv6HealthState\022\037\n\033UNDE" + + "FINED_IPV6_HEALTH_STATE\020\000B\022\n\020_backend_se" + + "rviceB\022\n\020_forwarding_ruleB\017\n\r_health_che" + + "ckB\027\n\025_health_check_serviceB\017\n\r_health_s" + + "tateB\024\n\022_ipv6_health_state\";\n\004Help\0223\n\005li" + + "nks\030\271\237\2151 \003(\0132!.google.cloud.compute.v1.H" + + "elpLink\"T\n\010HelpLink\022\034\n\013description\030\374\207\326\311\001" + + " \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001\001B\016\n\014_descri" + + "ptionB\006\n\004_url\"z\n\010HostRule\022\034\n\013description" + + "\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\020\n\005hosts\030\313\377\266/ \003(\t\022\035\n\014pat" + + "h_matcher\030\230\276\212\241\001 \001(\tH\001\210\001\001B\016\n\014_description" + + "B\017\n\r_path_matcher\"i\n\016HttpFaultAbort\022\034\n\013h" + + "ttp_status\030\211\267\316\337\001 \001(\rH\000\210\001\001\022\032\n\npercentage\030" + + "\232\345\267H \001(\001H\001\210\001\001B\016\n\014_http_statusB\r\n\013_percen" + + "tage\"\214\001\n\016HttpFaultDelay\022?\n\013fixed_delay\030\370" + + "\271\226\227\001 \001(\0132!.google.cloud.compute.v1.Durat" + + "ionH\000\210\001\001\022\032\n\npercentage\030\232\345\267H \001(\001H\001\210\001\001B\016\n\014" + + "_fixed_delayB\r\n\013_percentage\"\250\001\n\022HttpFaul" + + "tInjection\022>\n\005abort\030\260\306\224, \001(\0132\'.google.cl" + + "oud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n\005de" + + "lay\030\203\363\302- \001(\0132\'.google.cloud.compute.v1.H" + + "ttpFaultDelayH\001\210\001\001B\010\n\006_abortB\010\n\006_delay\"\374" + + "\001\n\020HttpHeaderAction\022L\n\026request_headers_t" + + "o_add\030\346\256\261\" \003(\0132).google.cloud.compute.v1" + + ".HttpHeaderOption\022$\n\031request_headers_to_" + + "remove\030\237\317\223h \003(\t\022M\n\027response_headers_to_a" + + "dd\030\364\266\251\017 \003(\0132).google.cloud.compute.v1.Ht" + + "tpHeaderOption\022%\n\032response_headers_to_re" + + "move\030\321\201\373# \003(\t\"\260\003\n\017HttpHeaderMatch\022\034\n\013exa" + + "ct_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\033\n\013header_name\030\375" + + "\301\3074 \001(\tH\001\210\001\001\022\035\n\014invert_match\030\234\310\372\356\001 \001(\010H\002" + + "\210\001\001\022\034\n\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022\035\n\rpre" + + "sent_match\030\301\372\223 \001(\010H\004\210\001\001\022E\n\013range_match\030" + + "\303\250\257. \001(\0132(.google.cloud.compute.v1.Int64" + + "RangeMatchH\005\210\001\001\022\033\n\013regex_match\030\315\267\2323 \001(\tH" + + "\006\210\001\001\022\035\n\014suffix_match\030\327\346\256\313\001 \001(\tH\007\210\001\001B\016\n\014_" + + "exact_matchB\016\n\014_header_nameB\017\n\r_invert_m" + + "atchB\017\n\r_prefix_matchB\020\n\016_present_matchB" + + "\016\n\014_range_matchB\016\n\014_regex_matchB\017\n\r_suff" + + "ix_match\"\223\001\n\020HttpHeaderOption\022\033\n\013header_" + + "name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n\014header_value\030\277\362\353` " + + "\001(\tH\001\210\001\001\022\027\n\007replace\030\264\345\362\t \001(\010H\002\210\001\001B\016\n\014_he" + + "ader_nameB\017\n\r_header_valueB\n\n\010_replace\"\304" + + "\001\n\027HttpQueryParameterMatch\022\034\n\013exact_matc" + + "h\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\035" + + "\n\rpresent_match\030\301\372\223 \001(\010H\002\210\001\001\022\033\n\013regex_m" + + "atch\030\315\267\2323 \001(\tH\003\210\001\001B\016\n\014_exact_matchB\007\n\005_n" + + "ameB\020\n\016_present_matchB\016\n\014_regex_match\"\214\004" + + "\n\022HttpRedirectAction\022\035\n\rhost_redirect\030\223\241" + + "\2343 \001(\tH\000\210\001\001\022\036\n\016https_redirect\030\260\361\227Q \001(\010H\001" + + "\210\001\001\022\036\n\rpath_redirect\030\266\275\356\201\001 \001(\tH\002\210\001\001\022 \n\017p" + + "refix_redirect\030\351\365\340\324\001 \001(\tH\003\210\001\001\022\'\n\026redirec" + + "t_response_code\030\210\330\236\320\001 \001(\tH\004\210\001\001\022\033\n\013strip_" + + "query\030\341\231\367\030 \001(\010H\005\210\001\001\"\270\001\n\024RedirectResponse" + + "Code\022$\n UNDEFINED_REDIRECT_RESPONSE_CODE" + + "\020\000\022\014\n\005FOUND\020\342\276\376\037\022!\n\031MOVED_PERMANENTLY_DE" + + "FAULT\020\321\231\262\270\001\022\032\n\022PERMANENT_REDIRECT\020\355\350\223\266\001\022" + + "\021\n\tSEE_OTHER\020\344\357\257\324\001\022\032\n\022TEMPORARY_REDIRECT" + + "\020\252\344\267\351\001B\020\n\016_host_redirectB\021\n\017_https_redir" + + "ectB\020\n\016_path_redirectB\022\n\020_prefix_redirec" + + "tB\031\n\027_redirect_response_codeB\016\n\014_strip_q" + + "uery\"\264\001\n\017HttpRetryPolicy\022\033\n\013num_retries\030" + + "\215\253\201x \001(\rH\000\210\001\001\022C\n\017per_try_timeout\030\273\255\304\205\001 \001" + + "(\0132!.google.cloud.compute.v1.DurationH\001\210" + + "\001\001\022\033\n\020retry_conditions\030\257\341\336\r \003(\tB\016\n\014_num_" + + "retriesB\022\n\020_per_try_timeout\"\361\005\n\017HttpRout" + + "eAction\022A\n\013cors_policy\030\204\314\235\276\001 \001(\0132#.googl" + + "e.cloud.compute.v1.CorsPolicyH\000\210\001\001\022T\n\026fa" + + "ult_injection_policy\030\227\224\352\304\001 \001(\0132+.google." + + "cloud.compute.v1.HttpFaultInjectionH\001\210\001\001" + + "\022F\n\023max_stream_duration\030\230\245\245\035 \001(\0132!.googl" + + "e.cloud.compute.v1.DurationH\002\210\001\001\022S\n\025requ" + + "est_mirror_policy\030\202\340\377h \001(\0132,.google.clou" + + "d.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + + "\014retry_policy\030\251\345\212\033 \001(\0132(.google.cloud.co" + + "mpute.v1.HttpRetryPolicyH\004\210\001\001\022;\n\007timeout" + + "\030\341\232\275\215\001 \001(\0132!.google.cloud.compute.v1.Dur" + + "ationH\005\210\001\001\022A\n\013url_rewrite\030\274\375\252\202\001 \001(\0132#.go" + + "ogle.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" + + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.g" + + "oogle.cloud.compute.v1.WeightedBackendSe" + + "rviceB\016\n\014_cors_policyB\031\n\027_fault_injectio" + + "n_policyB\026\n\024_max_stream_durationB\030\n\026_req" + + "uest_mirror_policyB\017\n\r_retry_policyB\n\n\010_" + + "timeoutB\016\n\014_url_rewrite\"\350\004\n\rHttpRouteRul" + + "e\022`\n\034custom_error_response_policy\030\353\370\332` \001" + + "(\01322.google.cloud.compute.v1.CustomError" + + "ResponsePolicyH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001" + + " \001(\tH\001\210\001\001\022I\n\rheader_action\030\250\240\270\234\001 \001(\0132).g" + + "oogle.cloud.compute.v1.HttpHeaderActionH" + + "\002\210\001\001\022D\n\013match_rules\030\375\273\261\263\001 \003(\0132+.google.c" + + "loud.compute.v1.HttpRouteRuleMatch\022\031\n\010pr" + + "iority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n\014route_action\030\354\251" + + "\271\312\001 \001(\0132(.google.cloud.compute.v1.HttpRo" + + "uteActionH\004\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001" + + "\022J\n\014url_redirect\030\254\241\230\301\001 \001(\0132+.google.clou" + + "d.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n\035" + + "_custom_error_response_policyB\016\n\014_descri" + + "ptionB\020\n\016_header_actionB\013\n\t_priorityB\017\n\r" + + "_route_actionB\n\n\010_serviceB\017\n\r_url_redire" + + "ct\"\365\003\n\022HttpRouteRuleMatch\022\037\n\017full_path_m" + + "atch\030\333\211\252f \001(\tH\000\210\001\001\022D\n\016header_matches\030\201\353\310" + + "\254\001 \003(\0132(.google.cloud.compute.v1.HttpHea" + + "derMatch\022\034\n\013ignore_case\030\375\222\264\335\001 \001(\010H\001\210\001\001\022E" + + "\n\020metadata_filters\030\353\315\314\335\001 \003(\0132\'.google.cl" + + "oud.compute.v1.MetadataFilter\022$\n\023path_te" + + "mplate_match\030\232\302\263\213\001 \001(\tH\002\210\001\001\022\034\n\014prefix_ma" + + "tch\030\330\363\374z \001(\tH\003\210\001\001\022U\n\027query_parameter_mat" + + "ches\030\346\225\276\210\001 \003(\01320.google.cloud.compute.v1" + + ".HttpQueryParameterMatch\022\033\n\013regex_match\030" + + "\315\267\2323 \001(\tH\004\210\001\001B\022\n\020_full_path_matchB\016\n\014_ig" + + "nore_caseB\026\n\024_path_template_matchB\017\n\r_pr" + + "efix_matchB\016\n\014_regex_match\"\271\022\n\005Image\022\035\n\014" + + "architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022#\n\022archive_s" + + "ize_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022\"\n\022creation_tim" + + "estamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.Deprecati" + + "onStatusH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\004" + + "\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022+\n\033en" + + "able_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022" + + "\027\n\006family\030\344\266\341\234\001 \001(\tH\007\210\001\001\022E\n\021guest_os_fea" + + "tures\030\321\340\347% \003(\0132\'.google.cloud.compute.v1" + + ".GuestOsFeature\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022U\n\024ima" + + "ge_encryption_key\030\207\316\373\264\001 \001(\0132..google.clo" + + "ud.compute.v1.CustomerEncryptionKeyH\t\210\001\001" + + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022!\n\021label_fingerpr" + + "int\030\231\360\367T \001(\tH\013\210\001\001\022>\n\006labels\030\377\277\301\356\001 \003(\0132*." + + "google.cloud.compute.v1.Image.LabelsEntr" + + "y\022\030\n\rlicense_codes\030\250\205\330\025 \003(\003\022\024\n\010licenses\030" + + "\322\210\200\241\001 \003(\t\022\024\n\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022;\n\010raw_d" + + "isk\030\324\316\363\357\001 \001(\0132 .google.cloud.compute.v1." + + "RawDiskH\r\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H" + + "\016\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\017\210\001\001\022\032\n\t" + + "self_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\\\n\037shielded_ins" + + "tance_initial_state\030\203\304\334[ \001(\0132+.google.cl" + + "oud.compute.v1.InitialStateConfigH\021\210\001\001\022\034" + + "\n\013source_disk\030\301\356\264\327\001 \001(\tH\022\210\001\001\022[\n\032source_d" + + "isk_encryption_key\030\341\240\270\375\001 \001(\0132..google.cl" + + "oud.compute.v1.CustomerEncryptionKeyH\023\210\001" + + "\001\022\037\n\016source_disk_id\030\331\315\311\330\001 \001(\tH\024\210\001\001\022\034\n\014so" + + "urce_image\030\267\350\206\030 \001(\tH\025\210\001\001\022\\\n\033source_image" + + "_encryption_key\030\253\221\365\265\001 \001(\0132..google.cloud" + + ".compute.v1.CustomerEncryptionKeyH\026\210\001\001\022\037" + + "\n\017source_image_id\030\243\374\260\032 \001(\tH\027\210\001\001\022\037\n\017sourc" + + "e_snapshot\030\350\232\216< \001(\tH\030\210\001\001\022_\n\036source_snaps" + + "hot_encryption_key\030\332\216\347\220\001 \001(\0132..google.cl" + + "oud.compute.v1.CustomerEncryptionKeyH\031\210\001" + + "\001\022\"\n\022source_snapshot_id\030\322\226\230/ \001(\tH\032\210\001\001\022\034\n" + + "\013source_type\030\336\361\322\327\001 \001(\tH\033\210\001\001\022\026\n\006status\030\362\237" + + "\267V \001(\tH\034\210\001\001\022\035\n\021storage_locations\030\232\355\263\234\001 \003" + + "(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"j\n\014Architecture\022\032\n\026UNDEFINED_A" + + "RCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNSPECIFIE" + + "D\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"2\n" + + "\nSourceType\022\031\n\025UNDEFINED_SOURCE_TYPE\020\000\022\t" + + "\n\003RAW\020\210\370\004\"^\n\006Status\022\024\n\020UNDEFINED_STATUS\020" + + "\000\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\016\n\007P" + + "ENDING\020\367\252\360\020\022\014\n\005READY\020\203\303\217%B\017\n\r_architectu" + + "reB\025\n\023_archive_size_bytesB\025\n\023_creation_t" + + "imestampB\r\n\013_deprecatedB\016\n\014_descriptionB" + + "\017\n\r_disk_size_gbB\036\n\034_enable_confidential" + + "_computeB\t\n\007_familyB\005\n\003_idB\027\n\025_image_enc" + + "ryption_keyB\007\n\005_kindB\024\n\022_label_fingerpri" + + "ntB\007\n\005_nameB\013\n\t_raw_diskB\020\n\016_satisfies_p" + + "ziB\020\n\016_satisfies_pzsB\014\n\n_self_linkB\"\n _s" + + "hielded_instance_initial_stateB\016\n\014_sourc" + + "e_diskB\035\n\033_source_disk_encryption_keyB\021\n" + + "\017_source_disk_idB\017\n\r_source_imageB\036\n\034_so" + + "urce_image_encryption_keyB\022\n\020_source_ima" + + "ge_idB\022\n\020_source_snapshotB!\n\037_source_sna" + + "pshot_encryption_keyB\025\n\023_source_snapshot" + + "_idB\016\n\014_source_typeB\t\n\007_status\"R\n\017ImageF" + + "amilyView\0225\n\005image\030\333\322\352/ \001(\0132\036.google.clo" + + "ud.compute.v1.ImageH\000\210\001\001B\010\n\006_image\"\233\002\n\tI" + + "mageList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0220\n\005items\030\300\317\367/" + + " \003(\0132\036.google.cloud.compute.v1.Image\022\024\n\004" + + "kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272" + + "\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022" + + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" + + "te.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_n" + + "ext_page_tokenB\014\n\n_self_linkB\n\n\010_warning" + + "\"\216\002\n\022InitialStateConfig\0229\n\003dbs\030\265\207\006 \003(\0132*" + + ".google.cloud.compute.v1.FileContentBuff" + + "er\022;\n\004dbxs\030\371\347\273\001 \003(\0132*.google.cloud.compu" + + "te.v1.FileContentBuffer\022;\n\004keks\030\302\330\310\001 \003(\013" + + "2*.google.cloud.compute.v1.FileContentBu" + + "ffer\022<\n\002pk\030\373\033 \001(\0132*.google.cloud.compute" + + ".v1.FileContentBufferH\000\210\001\001B\005\n\003_pk\"\312\001\n\024In" + + "sertAddressRequest\022C\n\020address_resource\030\371" + + "\227\336\346\001 \001(\0132 .google.cloud.compute.v1.Addre" + + "ssB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\316" + + "\001\n\027InsertAutoscalerRequest\022H\n\023autoscaler" + + "_resource\030\366\360\377b \001(\0132#.google.cloud.comput" + + "e.v1.AutoscalerB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_req" + + "uest_id\"\274\001\n\032InsertBackendBucketRequest\022P" + + "\n\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.go" + + "ogle.cloud.compute.v1.BackendBucketB\003\340A\002" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\277" + + "\001\n\033InsertBackendServiceRequest\022R\n\030backen" + + "d_service_resource\030\243\201\337\245\001 \001(\0132\'.google.cl" + + "oud.compute.v1.BackendServiceB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest" + + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\353\001\n\021Ins" + + "ertDiskRequest\022<\n\rdisk_resource\030\360\320\253\014 \001(\013" + + "2\035.google.cloud.compute.v1.DiskB\003\340A\002\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\014source_image\030\267\350\206\030" + + " \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r" + + "\n\013_request_idB\017\n\r_source_image\"\314\001\n\037Inser" + + "tExternalVpnGatewayRequest\022[\n\035external_v" + + "pn_gateway_resource\030\210\337\220\350\001 \001(\0132+.google.c" + + "loud.compute.v1.ExternalVpnGatewayB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" + + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\304\001" + + "\n\033InsertFirewallPolicyRequest\022R\n\030firewal" + + "l_policy_resource\030\274\266\207\354\001 \001(\0132\'.google.clo" + + "ud.compute.v1.FirewallPolicyB\003\340A\002\022&\n\tpar" + + "ent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tparent_id\022\032\n\nreq" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\253\001\n" + + "\025InsertFirewallRequest\022D\n\021firewall_resou" + + "rce\030\355\260\340\023 \001(\0132!.google.cloud.compute.v1.F" + + "irewallB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"\340\001\n\033InsertForwardingRuleReque" + + "st\022R\n\030forwarding_rule_resource\030\257\300\320\217\001 \001(\013" + + "2\'.google.cloud.compute.v1.ForwardingRul" + + "eB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nre" + + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\257\001", + "\n\032InsertGlobalAddressRequest\022C\n\020address_" + + "resource\030\371\227\336\346\001 \001(\0132 .google.cloud.comput" + + "e.v1.AddressB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "B\r\n\013_request_id\"\322\001\n\022InsertImageRequest\022\034" - + "\n\014force_create\030\320\211\244^ \001(\010H\000\210\001\001\022?\n\016image_re" - + "source\030\362\304\376\260\001 \001(\0132\036.google.cloud.compute." - + "v1.ImageB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n\r" - + "_force_createB\r\n\013_request_id\"\356\001\n!InsertI" - + "nstanceGroupManagerRequest\022^\n\037instance_g" - + "roup_manager_resource\030\212\212\276| \001(\0132-.google." - + "cloud.compute.v1.InstanceGroupManagerB\003\340" + + "B\r\n\013_request_id\"\305\001\n!InsertGlobalForwardi" + + "ngRuleRequest\022R\n\030forwarding_rule_resourc" + + "e\030\257\300\320\217\001 \001(\0132\'.google.cloud.compute.v1.Fo" + + "rwardingRuleB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "B\r\n\013_request_id\"\330\001\n\'InsertGlobalNetworkE" + + "ndpointGroupRequest\022_\n\037network_endpoint_" + + "group_resource\030\247\315\333\372\001 \001(\0132-.google.cloud." + + "compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\333\001\n)I" + + "nsertGlobalPublicDelegatedPrefixeRequest" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022`\n p" + + "ublic_delegated_prefix_resource\030\205\370\330\026 \001(\013" + + "2..google.cloud.compute.v1.PublicDelegat" + + "edPrefixB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001B\r\n\013_request_id\"\265\001\n\030InsertHealthCheckRe" + + "quest\022K\n\025health_check_resource\030\250\303\244` \001(\0132" + + "$.google.cloud.compute.v1.HealthCheckB\003\340" + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001" - + "(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\300\002\n.Insert" - + "InstanceGroupManagerResizeRequestRequest" - + "\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002" - + "\022{\n.instance_group_manager_resize_reques" - + "t_resource\030\355\276\265\337\001 \001(\0132:.google.cloud.comp" - + "ute.v1.InstanceGroupManagerResizeRequest" - + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" - + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344" - + "\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\331\001\n\032Ins" - + "ertInstanceGroupRequest\022P\n\027instance_grou" - + "p_resource\030\270\265\325\210\001 \001(\0132&.google.cloud.comp" - + "ute.v1.InstanceGroupB\003\340A\002\022!\n\007project\030\231\226\301" - + "l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 " - + "\001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n" - + "\013_request_id\"\317\002\n\025InsertInstanceRequest\022D" - + "\n\021instance_resource\030\370\360\376f \001(\0132!.google.cl" - + "oud.compute.v1.InstanceB\003\340A\002\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022)\n\030source_instance_template\030" - + "\300\303\301\236\001 \001(\tH\001\210\001\001\022$\n\024source_machine_image\030\277" - + "\334\260\n \001(\tH\002\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zon" - + "eB\r\n\013_request_idB\033\n\031_source_instance_tem" - + "plateB\027\n\025_source_machine_image\"\304\001\n\035Inser" - + "tInstanceTemplateRequest\022U\n\032instance_tem" - + "plate_resource\030\211\352\213\005 \001(\0132).google.cloud.c" - + "ompute.v1.InstanceTemplateB\003\340A\002\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\337\001\n\034Insert" - + "InstantSnapshotRequest\022T\n\031instant_snapsh" - + "ot_resource\030\313\252\210\267\001 \001(\0132(.google.cloud.com" - + "pute.v1.InstantSnapshotB\003\340A\002\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zone" - + "B\r\n\013_request_id\"\250\002\n#InsertInterconnectAt" - + "tachmentRequest\022a\n interconnect_attachme" - + "nt_resource\030\371\244\240e \001(\0132/.google.cloud.comp" - + "ute.v1.InterconnectAttachmentB\003\340A\002\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" - + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001\022\035\n\rvalidate_only\030\265\372\337s \001(\010H\001\210\001" - + "\001B\r\n\013_request_idB\020\n\016_validate_only\"\270\001\n\031I" - + "nsertInterconnectRequest\022M\n\025interconnect" - + "_resource\030\237\241\314\275\001 \001(\0132%.google.cloud.compu" - + "te.v1.InterconnectB\003\340A\002\022!\n\007project\030\231\226\301l " - + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001B\r\n\013_request_id\"\251\001\n\024InsertLicenseR" - + "equest\022C\n\020license_resource\030\314\324\352\320\001 \001(\0132 .g" - + "oogle.cloud.compute.v1.LicenseB\003\340A\002\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\356\001\n\031In" - + "sertMachineImageRequest\022M\n\026machine_image" - + "_resource\030\352\252\373\034 \001(\0132%.google.cloud.comput" - + "e.v1.MachineImageB\003\340A\002\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001\022 \n\017source_instance\030\271\230\375\274\001 \001(\tH\001\210\001\001B" - + "\r\n\013_request_idB\022\n\020_source_instance\"\350\001\n\036I" - + "nsertNetworkAttachmentRequest\022W\n\033network" - + "_attachment_resource\030\231\360\314d \001(\0132*.google.c" - + "loud.compute.v1.NetworkAttachmentB\003\340A\002\022!" - + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" - + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\267\002\n\'Insert" - + "NetworkEdgeSecurityServiceRequest\022l\n&net" - + "work_edge_security_service_resource\030\246\243\333\343" - + "\001 \001(\01323.google.cloud.compute.v1.NetworkE" - + "dgeSecurityServiceB\003\340A\002\022!\n\007project\030\231\226\301l " - + "\001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340" - + "A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" - + "\035\n\rvalidate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_reque" - + "st_idB\020\n\016_validate_only\"\357\001\n!InsertNetwor" - + "kEndpointGroupRequest\022_\n\037network_endpoin" - + "t_group_resource\030\247\315\333\372\001 \001(\0132-.google.clou" - + "d.compute.v1.NetworkEndpointGroupB\003\340A\002\022!" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" + + "\"\322\001\n\022InsertImageRequest\022\034\n\014force_create\030" + + "\320\211\244^ \001(\010H\000\210\001\001\022?\n\016image_resource\030\362\304\376\260\001 \001(" + + "\0132\036.google.cloud.compute.v1.ImageB\003\340A\002\022!" + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n\013_request_id\"\306\001\n\"InsertNetw" - + "orkFirewallPolicyRequest\022R\n\030firewall_pol" - + "icy_resource\030\274\266\207\354\001 \001(\0132\'.google.cloud.co" - + "mpute.v1.FirewallPolicyB\003\340A\002\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\250\001\n\024InsertNet" - + "workRequest\022B\n\020network_resource\030\377\335\234: \001(\013" - + "2 .google.cloud.compute.v1.NetworkB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\361\001" - + "\n\026InsertNodeGroupRequest\022\"\n\022initial_node" - + "_count\030\355\310\247\" \001(\005B\003\340A\002\022H\n\023node_group_resou" - + "rce\030\253\263\372\360\001 \001(\0132\".google.cloud.compute.v1." - + "NodeGroupB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "uest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n\r_force_createB\r" + + "\n\013_request_id\"\356\001\n!InsertInstanceGroupMan" + + "agerRequest\022^\n\037instance_group_manager_re" + + "source\030\212\212\276| \001(\0132-.google.cloud.compute.v" + + "1.InstanceGroupManagerB\003\340A\002\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB" + + "\r\n\013_request_id\"\300\002\n.InsertInstanceGroupMa" + + "nagerResizeRequestRequest\022&\n\026instance_gr" + + "oup_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n.instance_gr" + + "oup_manager_resize_request_resource\030\355\276\265\337" + + "\001 \001(\0132:.google.cloud.compute.v1.Instance" + + "GroupManagerResizeRequestB\003\340A\002\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "neB\r\n\013_request_id\"\331\001\n\032InsertInstanceGrou" + + "pRequest\022P\n\027instance_group_resource\030\270\265\325\210" + + "\001 \001(\0132&.google.cloud.compute.v1.Instance" + + "GroupB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zon" + + "e\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\317\002" + + "\n\025InsertInstanceRequest\022D\n\021instance_reso" + + "urce\030\370\360\376f \001(\0132!.google.cloud.compute.v1." + + "InstanceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n\030" + + "source_instance_template\030\300\303\301\236\001 \001(\tH\001\210\001\001\022" + + "$\n\024source_machine_image\030\277\334\260\n \001(\tH\002\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_i" - + "d\"\331\001\n\031InsertNodeTemplateRequest\022M\n\026node_" - + "template_resource\030\266\332\335< \001(\0132%.google.clou" - + "d.compute.v1.NodeTemplateB\003\340A\002\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" - + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001B\r\n\013_request_id\"\343\001\n\034InsertPacketMi" - + "rroringRequest\022T\n\031packet_mirroring_resou" - + "rce\030\241\374\250\353\001 \001(\0132(.google.cloud.compute.v1." - + "PacketMirroringB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" - + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" - + "_request_id\"\330\001\n$InsertPublicAdvertisedPr" - + "efixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022b\n!public_advertised_prefix_reso" - + "urce\030\217\327\262o \001(\0132/.google.cloud.compute.v1." - + "PublicAdvertisedPrefixB\003\340A\002\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\366\001\n#Inser" - + "tPublicDelegatedPrefixeRequest\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022`\n public_dele" - + "gated_prefix_resource\030\205\370\330\026 \001(\0132..google." - + "cloud.compute.v1.PublicDelegatedPrefixB\003" - + "\340A\002\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "\330\001\n\035InsertRegionAutoscalerRequest\022H\n\023aut" - + "oscaler_resource\030\366\360\377b \001(\0132#.google.cloud" - + ".compute.v1.AutoscalerB\003\340A\002\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" - + "\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" - + "\210\001\001B\r\n\013_request_id\"\346\001\n!InsertRegionBacke" - + "ndServiceRequest\022R\n\030backend_service_reso" - + "urce\030\243\201\337\245\001 \001(\0132\'.google.cloud.compute.v1" - + ".BackendServiceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" - + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" - + "_request_id\"\330\001\n\035InsertRegionCommitmentRe" - + "quest\022H\n\023commitment_resource\030\370\243\273t \001(\0132#." - + "google.cloud.compute.v1.CommitmentB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" - + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\365\001\n\027Inser" - + "tRegionDiskRequest\022<\n\rdisk_resource\030\360\320\253\014" - + " \001(\0132\035.google.cloud.compute.v1.DiskB\003\340A\002" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" - + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\014source_image\030\267\350\206\030 \001(" - + "\tH\001\210\001\001B\r\n\013_request_idB\017\n\r_source_image\"\334" - + "\001\n\036InsertRegionHealthCheckRequest\022K\n\025hea" - + "lth_check_resource\030\250\303\244` \001(\0132$.google.clo" - + "ud.compute.v1.HealthCheckB\003\340A\002\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" - + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001B\r\n\013_request_id\"\363\001\n%InsertRegionHe" - + "althCheckServiceRequest\022[\n\035health_check_" - + "service_resource\030\362\233\320\343\001 \001(\0132+.google.clou" - + "d.compute.v1.HealthCheckServiceB\003\340A\002\022!\n\007" - + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" - + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\370\001\n\'InsertRe" - + "gionInstanceGroupManagerRequest\022^\n\037insta" - + "nce_group_manager_resource\030\212\212\276| \001(\0132-.go" - + "ogle.cloud.compute.v1.InstanceGroupManag" - + "erB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\353" - + "\001\n#InsertRegionInstanceTemplateRequest\022U" - + "\n\032instance_template_resource\030\211\352\213\005 \001(\0132)." - + "google.cloud.compute.v1.InstanceTemplate" - + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" - + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\351\001\n" - + "\"InsertRegionInstantSnapshotRequest\022T\n\031i" - + "nstant_snapshot_resource\030\313\252\210\267\001 \001(\0132(.goo" - + "gle.cloud.compute.v1.InstantSnapshotB\003\340A" - + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006" - + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\371\001\n\'Ins" - + "ertRegionNetworkEndpointGroupRequest\022_\n\037" - + "network_endpoint_group_resource\030\247\315\333\372\001 \001(" - + "\0132-.google.cloud.compute.v1.NetworkEndpo" - + "intGroupB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regio" - + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" - + "t_id\"\355\001\n(InsertRegionNetworkFirewallPoli" + + "dB\033\n\031_source_instance_templateB\027\n\025_sourc" + + "e_machine_image\"\304\001\n\035InsertInstanceTempla" + + "teRequest\022U\n\032instance_template_resource\030" + + "\211\352\213\005 \001(\0132).google.cloud.compute.v1.Insta" + + "nceTemplateB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\337\001\n\034InsertInstantSnapshot" + + "Request\022T\n\031instant_snapshot_resource\030\313\252\210" + + "\267\001 \001(\0132(.google.cloud.compute.v1.Instant" + + "SnapshotB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" + + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" + + "\"\250\002\n#InsertInterconnectAttachmentRequest" + + "\022a\n interconnect_attachment_resource\030\371\244\240" + + "e \001(\0132/.google.cloud.compute.v1.Intercon" + + "nectAttachmentB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G" + + "\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\rv" + + "alidate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_request_i" + + "dB\020\n\016_validate_only\"\270\001\n\031InsertInterconne" + + "ctRequest\022M\n\025interconnect_resource\030\237\241\314\275\001" + + " \001(\0132%.google.cloud.compute.v1.Interconn" + + "ectB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" + + "est_id\"\251\001\n\024InsertLicenseRequest\022C\n\020licen" + + "se_resource\030\314\324\352\320\001 \001(\0132 .google.cloud.com" + + "pute.v1.LicenseB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001B\r\n\013_request_id\"\356\001\n\031InsertMachineImag" + + "eRequest\022M\n\026machine_image_resource\030\352\252\373\034 " + + "\001(\0132%.google.cloud.compute.v1.MachineIma" + + "geB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n\017source" + + "_instance\030\271\230\375\274\001 \001(\tH\001\210\001\001B\r\n\013_request_idB" + + "\022\n\020_source_instance\"\350\001\n\036InsertNetworkAtt" + + "achmentRequest\022W\n\033network_attachment_res" + + "ource\030\231\360\314d \001(\0132*.google.cloud.compute.v1" + + ".NetworkAttachmentB\003\340A\002\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340" + + "A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\267\002\n\'InsertNetworkEdgeSecu" + + "rityServiceRequest\022l\n&network_edge_secur" + + "ity_service_resource\030\246\243\333\343\001 \001(\01323.google." + + "cloud.compute.v1.NetworkEdgeSecurityServ" + + "iceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\rvalidate_onl" + + "y\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_request_idB\020\n\016_valid" + + "ate_only\"\357\001\n!InsertNetworkEndpointGroupR" + + "equest\022_\n\037network_endpoint_group_resourc" + + "e\030\247\315\333\372\001 \001(\0132-.google.cloud.compute.v1.Ne" + + "tworkEndpointGroupB\003\340A\002\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" + + "request_id\"\306\001\n\"InsertNetworkFirewallPoli" + "cyRequest\022R\n\030firewall_policy_resource\030\274\266" + "\207\354\001 \001(\0132\'.google.cloud.compute.v1.Firewa" + "llPolicyB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regio" - + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" - + "t_id\"\370\001\n\'InsertRegionNotificationEndpoin" - + "tRequest\022^\n\036notification_endpoint_resour" - + "ce\030\244\372\261\241\001 \001(\0132-.google.cloud.compute.v1.N" - + "otificationEndpointB\003\340A\002\022!\n\007project\030\231\226\301l" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" + + "_request_id\"\250\001\n\024InsertNetworkRequest\022B\n\020" + + "network_resource\030\377\335\234: \001(\0132 .google.cloud" + + ".compute.v1.NetworkB\003\340A\002\022!\n\007project\030\231\226\301l" + + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001B\r\n\013_request_id\"\361\001\n\026InsertNodeGro" + + "upRequest\022\"\n\022initial_node_count\030\355\310\247\" \001(\005" + + "B\003\340A\002\022H\n\023node_group_resource\030\253\263\372\360\001 \001(\0132\"" + + ".google.cloud.compute.v1.NodeGroupB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" + + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB" + + "\n\340A\002\362G\004zoneB\r\n\013_request_id\"\331\001\n\031InsertNod" + + "eTemplateRequest\022M\n\026node_template_resour" + + "ce\030\266\332\335< \001(\0132%.google.cloud.compute.v1.No" + + "deTemplateB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" + + "est_id\"\343\001\n\034InsertPacketMirroringRequest\022" + + "T\n\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(" + + ".google.cloud.compute.v1.PacketMirroring" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\330\001\n" + + "$InsertPublicAdvertisedPrefixeRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022b\n!publ" + + "ic_advertised_prefix_resource\030\217\327\262o \001(\0132/" + + ".google.cloud.compute.v1.PublicAdvertise" + + "dPrefixB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "B\r\n\013_request_id\"\366\001\n#InsertPublicDelegate" + + "dPrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022`\n public_delegated_prefix_re" + + "source\030\205\370\330\026 \001(\0132..google.cloud.compute.v" + + "1.PublicDelegatedPrefixB\003\340A\002\022\037\n\006region\030\364" + + "\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\000\210\001\001B\r\n\013_request_id\"\330\001\n\035InsertRegio" + + "nAutoscalerRequest\022H\n\023autoscaler_resourc" + + "e\030\366\360\377b \001(\0132#.google.cloud.compute.v1.Aut" + + "oscalerB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request" + + "_id\"\346\001\n!InsertRegionBackendServiceReques" + + "t\022R\n\030backend_service_resource\030\243\201\337\245\001 \001(\0132" + + "\'.google.cloud.compute.v1.BackendService" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\330\001\n" + + "\035InsertRegionCommitmentRequest\022H\n\023commit" + + "ment_resource\030\370\243\273t \001(\0132#.google.cloud.co" + + "mpute.v1.CommitmentB\003\340A\002\022!\n\007project\030\231\226\301l" + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "B\r\n\013_request_id\"\226\002\n!InsertRegionSecurity" - + "PolicyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regio" - + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030securit" - + "y_policy_resource\030\374\252\211g \001(\0132\'.google.clou" - + "d.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\rvali" - + "date_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_request_idB\020" - + "\n\016_validate_only\"\345\001\n!InsertRegionSslCert" - + "ificateRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" - + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030ssl_ce" - + "rtificate_resource\030\211\324\225V \001(\0132\'.google.clo" - + "ud.compute.v1.SslCertificateB\003\340A\002B\r\n\013_re" - + "quest_id\"\327\001\n\034InsertRegionSslPolicyReques" - + "t\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006" - + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n\023ssl_policy_resource" - + "\030\310\210\212\203\001 \001(\0132\".google.cloud.compute.v1.Ssl" - + "PolicyB\003\340A\002B\r\n\013_request_id\"\351\001\n\"InsertReg" - + "ionTargetHttpProxyRequest\022!\n\007project\030\231\226\301" + + "B\r\n\013_request_id\"\365\001\n\027InsertRegionDiskRequ" + + "est\022<\n\rdisk_resource\030\360\320\253\014 \001(\0132\035.google.c" + + "loud.compute.v1.DiskB\003\340A\002\022!\n\007project\030\231\226\301" + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001\022T\n\032target_http_proxy_resource\030\250\257\343\013 \001(\013" - + "2(.google.cloud.compute.v1.TargetHttpPro" - + "xyB\003\340A\002B\r\n\013_request_id\"\355\001\n#InsertRegionT" - + "argetHttpsProxyRequest\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" - + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W" - + "\n\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132" - + ").google.cloud.compute.v1.TargetHttpsPro" - + "xyB\003\340A\002B\r\n\013_request_id\"\346\001\n!InsertRegionT" - + "argetTcpProxyRequest\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" - + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n\031" - + "target_tcp_proxy_resource\030\313\360\311E \001(\0132\'.goo" - + "gle.cloud.compute.v1.TargetTcpProxyB\003\340A\002" - + "B\r\n\013_request_id\"\315\001\n\031InsertRegionUrlMapRe" + + "\001\022\034\n\014source_image\030\267\350\206\030 \001(\tH\001\210\001\001B\r\n\013_requ" + + "est_idB\017\n\r_source_image\"\334\001\n\036InsertRegion" + + "HealthCheckRequest\022K\n\025health_check_resou" + + "rce\030\250\303\244` \001(\0132$.google.cloud.compute.v1.H" + + "ealthCheckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" + + "est_id\"\363\001\n%InsertRegionHealthCheckServic" + + "eRequest\022[\n\035health_check_service_resourc" + + "e\030\362\233\320\343\001 \001(\0132+.google.cloud.compute.v1.He" + + "althCheckServiceB\003\340A\002\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" + + "\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\370\001\n\'InsertRegionInstanceGro" + + "upManagerRequest\022^\n\037instance_group_manag" + + "er_resource\030\212\212\276| \001(\0132-.google.cloud.comp" + + "ute.v1.InstanceGroupManagerB\003\340A\002\022!\n\007proj" + + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315" + + "\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 " + + "\001(\tH\000\210\001\001B\r\n\013_request_id\"\353\001\n#InsertRegion" + + "InstanceTemplateRequest\022U\n\032instance_temp" + + "late_resource\030\211\352\213\005 \001(\0132).google.cloud.co" + + "mpute.v1.InstanceTemplateB\003\340A\002\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001B\r\n\013_request_id\"\351\001\n\"InsertRegionIn" + + "stantSnapshotRequest\022T\n\031instant_snapshot" + + "_resource\030\313\252\210\267\001 \001(\0132(.google.cloud.compu" + + "te.v1.InstantSnapshotB\003\340A\002\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\t" + + "B\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001B\r\n\013_request_id\"\371\001\n\'InsertRegionNetwor" + + "kEndpointGroupRequest\022_\n\037network_endpoin" + + "t_group_resource\030\247\315\333\372\001 \001(\0132-.google.clou" + + "d.compute.v1.NetworkEndpointGroupB\003\340A\002\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" + + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\355\001\n(Insert" + + "RegionNetworkFirewallPolicyRequest\022R\n\030fi" + + "rewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.googl" + + "e.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" + + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\370\001\n\'Insert" + + "RegionNotificationEndpointRequest\022^\n\036not" + + "ification_endpoint_resource\030\244\372\261\241\001 \001(\0132-." + + "google.cloud.compute.v1.NotificationEndp" + + "ointB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" + + "\"\226\002\n!InsertRegionSecurityPolicyRequest\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006reg" + + "ion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030security_policy_resour" + + "ce\030\374\252\211g \001(\0132\'.google.cloud.compute.v1.Se" + + "curityPolicyB\003\340A\002\022\035\n\rvalidate_only\030\265\372\337s " + + "\001(\010H\001\210\001\001B\r\n\013_request_idB\020\n\016_validate_onl" + + "y\"\345\001\n!InsertRegionSslCertificateRequest\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030ssl_certificate_resou" + + "rce\030\211\324\225V \001(\0132\'.google.cloud.compute.v1.S" + + "slCertificateB\003\340A\002B\r\n\013_request_id\"\327\001\n\034In" + + "sertRegionSslPolicyRequest\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\t" + + "B\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001\022H\n\023ssl_policy_resource\030\310\210\212\203\001 \001(\0132\".go" + + "ogle.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n\013" + + "_request_id\"\351\001\n\"InsertRegionTargetHttpPr" + + "oxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032" + + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n\032target_htt" + + "p_proxy_resource\030\250\257\343\013 \001(\0132(.google.cloud" + + ".compute.v1.TargetHttpProxyB\003\340A\002B\r\n\013_req" + + "uest_id\"\355\001\n#InsertRegionTargetHttpsProxy" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n\033target_https_" + + "proxy_resource\030\201\255\344\316\001 \001(\0132).google.cloud." + + "compute.v1.TargetHttpsProxyB\003\340A\002B\r\n\013_req" + + "uest_id\"\346\001\n!InsertRegionTargetTcpProxyRe" + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022A\n\020url_map_resourc" - + "e\030\341\220\267P \001(\0132\037.google.cloud.compute.v1.Url" - + "MapB\003\340A\002B\r\n\013_request_id\"\322\001\n\030InsertReserv" - + "ationRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n\024r" - + "eservation_resource\030\241\356\364\207\001 \001(\0132$.google.c" - + "loud.compute.v1.ReservationB\003\340A\002\022\033\n\004zone" - + "\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\337\001\n" - + "\033InsertResourcePolicyRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001" - + "(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001\022Q\n\030resource_policy_resource\030\312\214\321$ \001(" - + "\0132\'.google.cloud.compute.v1.ResourcePoli" - + "cyB\003\340A\002B\r\n\013_request_id\"\242\001\n\022InsertRouteRe" - + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" - + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022>\n\016route_re" - + "source\030\304\212\277k \001(\0132\036.google.cloud.compute.v" - + "1.RouteB\003\340A\002B\r\n\013_request_id\"\306\001\n\023InsertRo" - + "uterRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022@\n\017router_re" - + "source\030\304\200\202J \001(\0132\037.google.cloud.compute.v" - + "1.RouterB\003\340A\002B\r\n\013_request_id\"\357\001\n\033InsertS" - + "ecurityPolicyRequest\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" - + "\210\001\001\022Q\n\030security_policy_resource\030\374\252\211g \001(\013" - + "2\'.google.cloud.compute.v1.SecurityPolic" - + "yB\003\340A\002\022\035\n\rvalidate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" - + "\013_request_idB\020\n\016_validate_only\"\351\001\n\036Inser" - + "tServiceAttachmentRequest\022!\n\007project\030\231\226\301" - + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" - + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001\022X\n\033service_attachment_resource\030\240\266\304\341\001 \001" - + "(\0132*.google.cloud.compute.v1.ServiceAtta" - + "chmentB\003\340A\002B\r\n\013_request_id\"\254\001\n\025InsertSna" - + "pshotRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n\021s" - + "napshot_resource\030\251\270\301\345\001 \001(\0132!.google.clou" - + "d.compute.v1.SnapshotB\003\340A\002B\r\n\013_request_i" - + "d\"\276\001\n\033InsertSslCertificateRequest\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030ssl_certificate_reso" - + "urce\030\211\324\225V \001(\0132\'.google.cloud.compute.v1." - + "SslCertificateB\003\340A\002B\r\n\013_request_id\"\260\001\n\026I" - + "nsertSslPolicyRequest\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001\022H\n\023ssl_policy_resource\030\310\210\212\203\001 \001(\0132\"." - + "google.cloud.compute.v1.SslPolicyB\003\340A\002B\r" - + "\n\013_request_id\"\322\001\n\030InsertStoragePoolReque" - + "st\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n\025storage_poo" - + "l_resource\030\215\274\371J \001(\0132$.google.cloud.compu" - + "te.v1.StoragePoolB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB" - + "\n\340A\002\362G\004zoneB\r\n\013_request_id\"\322\001\n\027InsertSub" - + "networkRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" - + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n\023subnet" - + "work_resource\030\277\332\221\024 \001(\0132#.google.cloud.co" - + "mpute.v1.SubnetworkB\003\340A\002B\r\n\013_request_id\"" - + "\303\001\n\034InsertTargetGrpcProxyRequest\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n\032target_grpc_proxy_res" - + "ource\030\322\352\353\234\001 \001(\0132(.google.cloud.compute.v" - + "1.TargetGrpcProxyB\003\340A\002B\r\n\013_request_id\"\302\001" - + "\n\034InsertTargetHttpProxyRequest\022!\n\007projec" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n\031target_tcp_prox" + + "y_resource\030\313\360\311E \001(\0132\'.google.cloud.compu" + + "te.v1.TargetTcpProxyB\003\340A\002B\r\n\013_request_id" + + "\"\315\001\n\031InsertRegionUrlMapRequest\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022A\n\020url_map_resource\030\341\220\267P \001(\0132\037.go" + + "ogle.cloud.compute.v1.UrlMapB\003\340A\002B\r\n\013_re" + + "quest_id\"\322\001\n\030InsertReservationRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n\024reservation_reso" + + "urce\030\241\356\364\207\001 \001(\0132$.google.cloud.compute.v1" + + ".ReservationB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362" + + "G\004zoneB\r\n\013_request_id\"\337\001\n\033InsertResource" + + "PolicyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regio" + + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030resourc" + + "e_policy_resource\030\312\214\321$ \001(\0132\'.google.clou" + + "d.compute.v1.ResourcePolicyB\003\340A\002B\r\n\013_req" + + "uest_id\"\242\001\n\022InsertRouteRequest\022!\n\007projec" + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001\022T\n\032target_http_proxy_resou" - + "rce\030\250\257\343\013 \001(\0132(.google.cloud.compute.v1.T" - + "argetHttpProxyB\003\340A\002B\r\n\013_request_id\"\306\001\n\035I" - + "nsertTargetHttpsProxyRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022W\n\033target_https_proxy_resour" - + "ce\030\201\255\344\316\001 \001(\0132).google.cloud.compute.v1.T" - + "argetHttpsProxyB\003\340A\002B\r\n\013_request_id\"\334\001\n\033" - + "InsertTargetInstanceRequest\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001\022R\n\030target_instance_resource\030\312" - + "\342\240\315\001 \001(\0132\'.google.cloud.compute.v1.Targe" - + "tInstanceB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" - + "oneB\r\n\013_request_id\"\323\001\n\027InsertTargetPoolR" - + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n\024target_pool_re" - + "source\030\243\335\2450 \001(\0132#.google.cloud.compute.v" - + "1.TargetPoolB\003\340A\002B\r\n\013_request_id\"\277\001\n\033Ins" - + "ertTargetSslProxyRequest\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" - + "(\tH\000\210\001\001\022R\n\031target_ssl_proxy_resource\030\300\375\333" - + "C \001(\0132\'.google.cloud.compute.v1.TargetSs" - + "lProxyB\003\340A\002B\r\n\013_request_id\"\277\001\n\033InsertTar" - + "getTcpProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\313\201\331\021 \001(\tH\000\210\001\001\022>\n\016route_resource\030\304\212\277k \001(\013" + + "2\036.google.cloud.compute.v1.RouteB\003\340A\002B\r\n" + + "\013_request_id\"\306\001\n\023InsertRouterRequest\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" + + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" + + "\201\331\021 \001(\tH\000\210\001\001\022@\n\017router_resource\030\304\200\202J \001(\013" + + "2\037.google.cloud.compute.v1.RouterB\003\340A\002B\r" + + "\n\013_request_id\"\357\001\n\033InsertSecurityPolicyRe" + + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n\030security" + + "_policy_resource\030\374\252\211g \001(\0132\'.google.cloud" + + ".compute.v1.SecurityPolicyB\003\340A\002\022\035\n\rvalid" + + "ate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_request_idB\020\n" + + "\016_validate_only\"\351\001\n\036InsertServiceAttachm" + + "entRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032" + + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022X\n\033service_at" + + "tachment_resource\030\240\266\304\341\001 \001(\0132*.google.clo" + + "ud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n\013" + + "_request_id\"\254\001\n\025InsertSnapshotRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n\021snapshot_resourc" + + "e\030\251\270\301\345\001 \001(\0132!.google.cloud.compute.v1.Sn" + + "apshotB\003\340A\002B\r\n\013_request_id\"\276\001\n\033InsertSsl" + + "CertificateRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001\022R\n\031target_tcp_proxy_resource\030\313\360\311E \001(\0132" - + "\'.google.cloud.compute.v1.TargetTcpProxy" - + "B\003\340A\002B\r\n\013_request_id\"\345\001\n\035InsertTargetVpn" - + "GatewayRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" - + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n\033target" - + "_vpn_gateway_resource\030\202\263\036 \001(\0132).google.c" - + "loud.compute.v1.TargetVpnGatewayB\003\340A\002B\r\n" - + "\013_request_id\"\246\001\n\023InsertUrlMapRequest\022!\n\007" - + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" - + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022A\n\020url_map_resource\030" - + "\341\220\267P \001(\0132\037.google.cloud.compute.v1.UrlMa" - + "pB\003\340A\002B\r\n\013_request_id\"\323\001\n\027InsertVpnGatew" - + "ayRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n\024vpn_gateway" - + "_resource\030\224\267\216W \001(\0132#.google.cloud.comput" - + "e.v1.VpnGatewayB\003\340A\002B\r\n\013_request_id\"\320\001\n\026" - + "InsertVpnTunnelRequest\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" - + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022G" - + "\n\023vpn_tunnel_resource\030\272\241\264) \001(\0132\".google." - + "cloud.compute.v1.VpnTunnelB\003\340A\002B\r\n\013_requ" - + "est_id\"\347\035\n\010Instance\022\\\n\031advanced_machine_" - + "features\030\262\347\252\303\001 \001(\01320.google.cloud.comput" - + "e.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n\016can" - + "_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n\034confidenti" - + "al_instance_config\030\365\222\372\351\001 \001(\01323.google.cl" - + "oud.compute.v1.ConfidentialInstanceConfi" - + "gH\002\210\001\001\022\035\n\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n" - + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n\023del" - + "etion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n\013descr" - + "iption\030\374\207\326\311\001 \001(\tH\006\210\001\001\0227\n\005disks\030\366\314\312- \003(\0132" - + "%.google.cloud.compute.v1.AttachedDisk\022F" - + "\n\016display_device\030\363\210\274{ \001(\0132&.google.cloud" - + ".compute.v1.DisplayDeviceH\007\210\001\001\022\033\n\013finger" - + "print\030\344\321\363o \001(\tH\010\210\001\001\022J\n\022guest_accelerator" - + "s\030\357\314\207\335\001 \003(\0132*.google.cloud.compute.v1.Ac" - + "celeratorConfig\022\030\n\010hostname\030\263\270\205q \001(\tH\t\210\001" - + "\001\022\020\n\002id\030\233\032 \001(\004H\n\210\001\001\022W\n\027instance_encrypti" - + "on_key\030\215\301\357\036 \001(\0132..google.cloud.compute.v" - + "1.CustomerEncryptionKeyH\013\210\001\001\022*\n\032key_revo" - + "cation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n\004kind" - + "\030\224\367\310\001 \001(\tH\r\210\001\001\022!\n\021label_fingerprint\030\231\360\367T" - + " \001(\tH\016\210\001\001\022A\n\006labels\030\377\277\301\356\001 \003(\0132-.google.c" - + "loud.compute.v1.Instance.LabelsEntry\022%\n\024" - + "last_start_timestamp\030\320\243\321\323\001 \001(\tH\017\210\001\001\022$\n\023l" - + "ast_stop_timestamp\030\342\333\354\304\001 \001(\tH\020\210\001\001\022)\n\030las" - + "t_suspended_timestamp\030\211\251\361\251\001 \001(\tH\021\210\001\001\022\034\n\014" - + "machine_type\030\262\260\312l \001(\tH\022\210\001\001\022;\n\010metadata\030\257" - + "\366\265) \001(\0132!.google.cloud.compute.v1.Metada" - + "taH\023\210\001\001\022 \n\020min_cpu_platform\030\367\233\352s \001(\tH\024\210\001" - + "\001\022\024\n\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022H\n\022network_inter", - "faces\030\213\332\222\031 \003(\0132).google.cloud.compute.v1" - + ".NetworkInterface\022^\n\032network_performance" - + "_config\030\342\227\370\275\001 \001(\01321.google.cloud.compute" - + ".v1.NetworkPerformanceConfigH\026\210\001\001\022?\n\006par" - + "ams\030\206\363\253% \001(\0132\'.google.cloud.compute.v1.I" - + "nstanceParamsH\027\210\001\001\022*\n\032private_ipv6_googl" - + "e_access\030\216\314\202\027 \001(\tH\030\210\001\001\022R\n\024reservation_af" - + "finity\030\273\270\242K \001(\0132,.google.cloud.compute.v" - + "1.ReservationAffinityH\031\210\001\001\022\034\n\021resource_p" - + "olicies\030\341\234\314\n \003(\t\022H\n\017resource_status\030\303\372\367v" - + " \001(\0132\'.google.cloud.compute.v1.ResourceS" - + "tatusH\032\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210" - + "\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\034\210\001\001\022@\n\nsc" - + "heduling\030\224\313\261\270\001 \001(\0132#.google.cloud.comput" - + "e.v1.SchedulingH\035\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\036\210\001\001\022E\n\020service_accounts\030\260\304\253\204\001 \003(\0132\'" - + ".google.cloud.compute.v1.ServiceAccount\022" - + "Y\n\030shielded_instance_config\030\265\213\221\006 \001(\0132/.g" - + "oogle.cloud.compute.v1.ShieldedInstanceC" - + "onfigH\037\210\001\001\022l\n\"shielded_instance_integrit" - + "y_policy\030\227\242\207N \001(\01328.google.cloud.compute" - + ".v1.ShieldedInstanceIntegrityPolicyH \210\001\001" - + "\022$\n\024source_machine_image\030\277\334\260\n \001(\tH!\210\001\001\022c" - + "\n#source_machine_image_encryption_key\030\243\373" - + "\371[ \001(\0132..google.cloud.compute.v1.Custome" - + "rEncryptionKeyH\"\210\001\001\022 \n\020start_restricted\030" - + "\330\320\375: \001(\010H#\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH$\210\001\001\022\037\n" - + "\016status_message\030\272\311\351\215\001 \001(\tH%\210\001\001\0223\n\004tags\030\231" - + "\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH&" - + "\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\'\210\001\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\215\001\n\027Key" - + "RevocationActionType\022(\n$UNDEFINED_KEY_RE" - + "VOCATION_ACTION_TYPE\020\000\022.\n&KEY_REVOCATION" - + "_ACTION_TYPE_UNSPECIFIED\020\332\221\336\336\001\022\013\n\004NONE\020\270" - + "\316\222\001\022\013\n\004STOP\020\202\200\234\001\"\300\001\n\027PrivateIpv6GoogleAc" - + "cess\022(\n$UNDEFINED_PRIVATE_IPV6_GOOGLE_AC" - + "CESS\020\000\022-\n%ENABLE_BIDIRECTIONAL_ACCESS_TO" - + "_GOOGLE\020\272\312\211\314\001\022+\n#ENABLE_OUTBOUND_VM_ACCE" - + "SS_TO_GOOGLE\020\327\372\266\211\001\022\037\n\027INHERIT_FROM_SUBNE" - + "TWORK\020\277\250\354\374\001\"\334\001\n\006Status\022\024\n\020UNDEFINED_STAT" - + "US\020\000\022\026\n\016DEPROVISIONING\020\356\223\304\314\001\022\024\n\014PROVISIO" - + "NING\020\355\365\332\212\001\022\021\n\tREPAIRING\020\225\202\225\305\001\022\016\n\007RUNNING" - + "\020\237\303\3529\022\017\n\007STAGING\020\233\310\306\315\001\022\017\n\007STOPPED\020\255\273\354\323\001\022" - + "\020\n\010STOPPING\020\364\320\242\247\001\022\020\n\tSUSPENDED\020\273\273\266\030\022\022\n\nS" - + "USPENDING\020\246\324\230\365\001\022\021\n\nTERMINATED\020\243\364\233wB\034\n\032_a" - + "dvanced_machine_featuresB\021\n\017_can_ip_forw" - + "ardB\037\n\035_confidential_instance_configB\017\n\r" - + "_cpu_platformB\025\n\023_creation_timestampB\026\n\024" - + "_deletion_protectionB\016\n\014_descriptionB\021\n\017" - + "_display_deviceB\016\n\014_fingerprintB\013\n\t_host" - + "nameB\005\n\003_idB\032\n\030_instance_encryption_keyB" - + "\035\n\033_key_revocation_action_typeB\007\n\005_kindB" - + "\024\n\022_label_fingerprintB\027\n\025_last_start_tim" - + "estampB\026\n\024_last_stop_timestampB\033\n\031_last_" - + "suspended_timestampB\017\n\r_machine_typeB\013\n\t" - + "_metadataB\023\n\021_min_cpu_platformB\007\n\005_nameB" - + "\035\n\033_network_performance_configB\t\n\007_param" - + "sB\035\n\033_private_ipv6_google_accessB\027\n\025_res" - + "ervation_affinityB\022\n\020_resource_statusB\020\n" - + "\016_satisfies_pziB\020\n\016_satisfies_pzsB\r\n\013_sc" - + "hedulingB\014\n\n_self_linkB\033\n\031_shielded_inst" - + "ance_configB%\n#_shielded_instance_integr" - + "ity_policyB\027\n\025_source_machine_imageB&\n$_" - + "source_machine_image_encryption_keyB\023\n\021_" - + "start_restrictedB\t\n\007_statusB\021\n\017_status_m" - + "essageB\007\n\005_tagsB\007\n\005_zone\"\271\003\n\026InstanceAgg" - + "regatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022L\n\005items\030\300" - + "\317\367/ \003(\0132:.google.cloud.compute.v1.Instan" - + "ceAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001" - + " \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210" - + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreac" - + "hables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" - + "ogle.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\nIt" - + "emsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.g" - + "oogle.cloud.compute.v1.InstancesScopedLi" - + "st:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\251\001\n\027Instanc" - + "eConsumptionData\022R\n\020consumption_info\030\322\345\344" - + "E \001(\01320.google.cloud.compute.v1.Instance" - + "ConsumptionInfoH\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(" - + "\tH\001\210\001\001B\023\n\021_consumption_infoB\013\n\t_instance" - + "\"\320\001\n\027InstanceConsumptionInfo\022\033\n\nguest_cp" - + "us\030\322\313\310\273\001 \001(\005H\000\210\001\001\022\035\n\014local_ssd_gb\030\312\210\377\234\001 " - + "\001(\005H\001\210\001\001\022\031\n\tmemory_mb\030\223\223\2507 \001(\005H\002\210\001\001\022\036\n\rm" - + "in_node_cpus\030\273\244\242\227\001 \001(\005H\003\210\001\001B\r\n\013_guest_cp" - + "usB\017\n\r_local_ssd_gbB\014\n\n_memory_mbB\020\n\016_mi" - + "n_node_cpus\"\225\004\n\rInstanceGroup\022\"\n\022creatio" - + "n_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description" - + "\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH" - + "\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022;\n\013named_port" - + "s\030\214\307\362\313\001 \003(\0132\".google.cloud.compute.v1.Na" - + "medPort\022\027\n\007network\030\256\264\205o \001(\tH\006\210\001\001\022\026\n\006regi" - + "on\030\364\315\240B \001(\tH\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" - + "\010\210\001\001\022\024\n\004size\030\201\300\327\001 \001(\005H\t\210\001\001\022\033\n\nsubnetwork" - + "\030\356\247\344\222\001 \001(\tH\n\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001\001B\025\n" - + "\023_creation_timestampB\016\n\014_descriptionB\016\n\014" - + "_fingerprintB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n\n" - + "\010_networkB\t\n\007_regionB\014\n\n_self_linkB\007\n\005_s" - + "izeB\r\n\013_subnetworkB\007\n\005_zone\"\310\003\n\033Instance" - + "GroupAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/ \003(\0132?.google.cloud.compute.v" - + "1.InstanceGroupAggregatedList.ItemsEntry" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030" - + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" - + "ngH\004\210\001\001\032_\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022@\n\005va" - + "lue\030\002 \001(\01321.google.cloud.compute.v1.Inst" - + "anceGroupsScopedList:\0028\001B\005\n\003_idB\007\n\005_kind" - + "B\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_w" - + "arning\"\253\002\n\021InstanceGroupList\022\020\n\002id\030\233\032 \001(" - + "\tH\000\210\001\001\0228\n\005items\030\300\317\367/ \003(\0132&.google.cloud." - + "compute.v1.InstanceGroup\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\226\020\n\024Instanc" - + "eGroupManager\022e\n\024all_instances_config\030\201\256" - + "\3305 \001(\0132?.google.cloud.compute.v1.Instanc" - + "eGroupManagerAllInstancesConfigH\000\210\001\001\022a\n\025" - + "auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google" - + ".cloud.compute.v1.InstanceGroupManagerAu" - + "toHealingPolicy\022#\n\022base_instance_name\030\207\226" - + "\305\271\001 \001(\tH\001\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 " - + "\001(\tH\002\210\001\001\022\\\n\017current_actions\030\267\310\234N \001(\0132;.g" - + "oogle.cloud.compute.v1.InstanceGroupMana" - + "gerActionsSummaryH\003\210\001\001\022\034\n\013description\030\374\207" - + "\326\311\001 \001(\tH\004\210\001\001\022Q\n\023distribution_policy\030\315\356\362\376" - + "\001 \001(\0132+.google.cloud.compute.v1.Distribu" - + "tionPolicyH\005\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH" - + "\006\210\001\001\022\020\n\002id\030\233\032 \001(\004H\007\210\001\001\022s\n\033instance_flexi" - + "bility_policy\030\202\216\354\014 \001(\0132F.google.cloud.co" - + "mpute.v1.InstanceGroupManagerInstanceFle" - + "xibilityPolicyH\010\210\001\001\022\036\n\016instance_group\030\325\324" - + "\325& \001(\tH\t\210\001\001\022p\n\031instance_lifecycle_policy" - + "\030\221\264\315\325\001 \001(\0132D.google.cloud.compute.v1.Ins" - + "tanceGroupManagerInstanceLifecyclePolicy" - + "H\n\210\001\001\022\"\n\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001" - + "\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n\036list_managed_" - + "instances_results\030\264\244\225\215\001 \001(\tH\r\210\001\001\022\024\n\004name" - + "\030\213\365\315\001 \001(\tH\016\210\001\001\022;\n\013named_ports\030\214\307\362\313\001 \003(\0132" - + "\".google.cloud.compute.v1.NamedPort\022\026\n\006r" - + "egion\030\364\315\240B \001(\tH\017\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253" - + "\345\001 \001(\010H\020\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\021" - + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022H\n\017state" - + "ful_policy\030\205\303\325\026 \001(\0132\'.google.cloud.compu" - + "te.v1.StatefulPolicyH\023\210\001\001\022K\n\006status\030\362\237\267V" - + " \001(\01323.google.cloud.compute.v1.InstanceG" - + "roupManagerStatusH\024\210\001\001\022\030\n\014target_pools\030\251" - + "\237\240\240\001 \003(\t\022\033\n\013target_size\030\357\363\375\035 \001(\005H\025\210\001\001\022X\n" - + "\rupdate_policy\030\350\312\352S \001(\01329.google.cloud.c" - + "ompute.v1.InstanceGroupManagerUpdatePoli" - + "cyH\026\210\001\001\022I\n\010versions\030\233\375\271M \003(\01324.google.cl" - + "oud.compute.v1.InstanceGroupManagerVersi" - + "on\022\024\n\004zone\030\254\307\344\001 \001(\tH\027\210\001\001\"n\n\033ListManagedI" - + "nstancesResults\022,\n(UNDEFINED_LIST_MANAGE" - + "D_INSTANCES_RESULTS\020\000\022\017\n\010PAGELESS\020\250\251\254\017\022\020" - + "\n\tPAGINATED\020\255\205\225\023B\027\n\025_all_instances_confi" - + "gB\025\n\023_base_instance_nameB\025\n\023_creation_ti" - + "mestampB\022\n\020_current_actionsB\016\n\014_descript" - + "ionB\026\n\024_distribution_policyB\016\n\014_fingerpr" - + "intB\005\n\003_idB\036\n\034_instance_flexibility_poli" - + "cyB\021\n\017_instance_groupB\034\n\032_instance_lifec" - + "ycle_policyB\024\n\022_instance_templateB\007\n\005_ki" - + "ndB!\n\037_list_managed_instances_resultsB\007\n" - + "\005_nameB\t\n\007_regionB\020\n\016_satisfies_pziB\020\n\016_" - + "satisfies_pzsB\014\n\n_self_linkB\022\n\020_stateful" - + "_policyB\t\n\007_statusB\016\n\014_target_sizeB\020\n\016_u" - + "pdate_policyB\007\n\005_zone\"\323\004\n\"InstanceGroupM" - + "anagerActionsSummary\022\033\n\nabandoning\030\315\362\350\321\001" - + " \001(\005H\000\210\001\001\022\030\n\010creating\030\271\335\205d \001(\005H\001\210\001\001\022)\n\030c" - + "reating_without_retries\030\311\366\261\260\001 \001(\005H\002\210\001\001\022\031" - + "\n\010deleting\030\250\307\357\206\001 \001(\005H\003\210\001\001\022\024\n\004none\030\270\336\316\001 \001" - + "(\005H\004\210\001\001\022\033\n\nrecreating\030\354\263\326\241\001 \001(\005H\005\210\001\001\022\032\n\n" - + "refreshing\030\247\246\305f \001(\005H\006\210\001\001\022\033\n\nrestarting\030\363" - + "\226\304\261\001 \001(\005H\007\210\001\001\022\030\n\010resuming\030\252\233\362_ \001(\005H\010\210\001\001\022" - + "\030\n\010starting\030\300\300\363s \001(\005H\t\210\001\001\022\030\n\010stopping\030\364\360" - + "\2122 \001(\005H\n\210\001\001\022\032\n\nsuspending\030\246\374\360\r \001(\005H\013\210\001\001\022" - + "\032\n\tverifying\030\311\241\254\327\001 \001(\005H\014\210\001\001B\r\n\013_abandoni" - + "ngB\013\n\t_creatingB\033\n\031_creating_without_ret" - + "riesB\013\n\t_deletingB\007\n\005_noneB\r\n\013_recreatin" - + "gB\r\n\013_refreshingB\r\n\013_restartingB\013\n\t_resu" - + "mingB\013\n\t_startingB\013\n\t_stoppingB\r\n\013_suspe" - + "ndingB\014\n\n_verifying\"\335\003\n\"InstanceGroupMan" - + "agerAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022X\n\005" - + "items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1" - + ".InstanceGroupManagerAggregatedList.Item" - + "sEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" - + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" - + " \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\004\210\001\001\032f\n\nItemsEntry\022\013\n\003key\030\001 \001(\t" - + "\022G\n\005value\030\002 \001(\01328.google.cloud.compute.v" - + "1.InstanceGroupManagersScopedList:\0028\001B\005\n" - + "\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_se" - + "lf_linkB\n\n\010_warning\"\205\001\n&InstanceGroupMan" - + "agerAllInstancesConfig\022L\n\nproperties\030\263\232\266" - + "F \001(\01320.google.cloud.compute.v1.Instance" - + "PropertiesPatchH\000\210\001\001B\r\n\013_properties\"\220\001\n%" - + "InstanceGroupManagerAutoHealingPolicy\022\035\n" - + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n\021initial_" - + "delay_sec\030\332\360\300} \001(\005H\001\210\001\001B\017\n\r_health_check" - + "B\024\n\022_initial_delay_sec\"\304\002\n-InstanceGroup" - + "ManagerInstanceFlexibilityPolicy\022~\n\023inst" - + "ance_selections\030\321\204\371\n \003(\0132^.google.cloud." - + "compute.v1.InstanceGroupManagerInstanceF" - + "lexibilityPolicy.InstanceSelectionsEntry" - + "\032\222\001\n\027InstanceSelectionsEntry\022\013\n\003key\030\001 \001(" - + "\t\022f\n\005value\030\002 \001(\0132W.google.cloud.compute." - + "v1.InstanceGroupManagerInstanceFlexibili" - + "tyPolicyInstanceSelection:\0028\001\"y\n>Instanc" - + "eGroupManagerInstanceFlexibilityPolicyIn" - + "stanceSelection\022\030\n\rmachine_types\030\201\335\201& \003(" - + "\t\022\024\n\004rank\030\254\230\325\001 \001(\005H\000\210\001\001B\007\n\005_rank\"\361\002\n+Ins" - + "tanceGroupManagerInstanceLifecyclePolicy" - + "\022)\n\031default_action_on_failure\030\325\304\242\035 \001(\tH\000" - + "\210\001\001\022\'\n\026force_update_on_repair\030\313\371\362\251\001 \001(\tH" - + "\001\210\001\001\"d\n\026DefaultActionOnFailure\022\'\n#UNDEFI" - + "NED_DEFAULT_ACTION_ON_FAILURE\020\000\022\022\n\nDO_NO" - + "THING\020\371\317\231\327\001\022\r\n\006REPAIR\020\215\247\374~\"O\n\023ForceUpdat" - + "eOnRepair\022$\n UNDEFINED_FORCE_UPDATE_ON_R" - + "EPAIR\020\000\022\007\n\002NO\020\301\023\022\t\n\003YES\020\307\255\005B\034\n\032_default_" - + "action_on_failureB\031\n\027_force_update_on_re" - + "pair\"\271\002\n\030InstanceGroupManagerList\022\020\n\002id\030" - + "\233\032 \001(\tH\000\210\001\001\022?\n\005items\030\300\317\367/ \003(\0132-.google.c" - + "loud.compute.v1.InstanceGroupManager\022\024\n\004" - + "kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272" - + "\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022" - + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" - + "te.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_n" - + "ext_page_tokenB\014\n\n_self_linkB\n\n\010_warning" - + "\"\215\006\n!InstanceGroupManagerResizeRequest\022\"" - + "\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013de" - + "scription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210" - + "\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\004\210\001\001\022I\n\026requested_run_duration\030\371\213\331n \001(" - + "\0132!.google.cloud.compute.v1.DurationH\005\210\001" - + "\001\022\032\n\tresize_by\030\302\317\300\376\001 \001(\005H\006\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n\021self_link_with_id\030\202" - + "\254\235\025 \001(\tH\010\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n\006s" - + "tatus\030\362\237\267V \001(\0132@.google.cloud.compute.v1" - + ".InstanceGroupManagerResizeRequestStatus" - + "H\n\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\217\001\n\005State\022\023\n" - + "\017UNDEFINED_STATE\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\020\n\tC" - + "ANCELLED\020\261\362\200\024\022\020\n\010CREATING\020\271\275\235\331\001\022\016\n\006FAILE" - + "D\020\275\220\246\331\001\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022\021\n\tSU" - + "CCEEDED\020\301\244\333\363\001B\025\n\023_creation_timestampB\016\n\014" - + "_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\031\n" - + "\027_requested_run_durationB\014\n\n_resize_byB\014" - + "\n\n_self_linkB\024\n\022_self_link_with_idB\010\n\006_s" - + "tateB\t\n\007_statusB\007\n\005_zone\"\347\001\n\'InstanceGro" - + "upManagerResizeRequestStatus\0225\n\005error\030\210\244" - + "\223. \001(\0132\036.google.cloud.compute.v1.ErrorH\000" - + "\210\001\001\022j\n\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.c" - + "loud.compute.v1.InstanceGroupManagerResi" - + "zeRequestStatusLastAttemptH\001\210\001\001B\010\n\006_erro" - + "rB\017\n\r_last_attempt\"u\n2InstanceGroupManag" - + "erResizeRequestStatusLastAttempt\0225\n\005erro" - + "r\030\210\244\223. \001(\0132\036.google.cloud.compute.v1.Err" - + "orH\000\210\001\001B\010\n\006_error\"\334\002\n.InstanceGroupManag" - + "erResizeRequestsListResponse\022\020\n\002id\030\233\032 \001(" - + "\tH\000\210\001\001\022L\n\005items\030\300\317\367/ \003(\0132:.google.cloud." - + "compute.v1.InstanceGroupManagerResizeReq" - + "uest\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_" - + "token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001" - + "(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" - + "ud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_ki" - + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" - + "_warning\"\321\003\n\032InstanceGroupManagerStatus\022" - + "k\n\024all_instances_config\030\201\256\3305 \001(\0132E.googl" - + "e.cloud.compute.v1.InstanceGroupManagerS" - + "tatusAllInstancesConfigH\000\210\001\001\022\033\n\nautoscal" - + "er\030\327\375\322\366\001 \001(\tH\001\210\001\001\022\031\n\tis_stable\030\360\357\3303 \001(\010H" - + "\002\210\001\001\022U\n\010stateful\030\314\346\310t \001(\0132;.google.cloud" - + ".compute.v1.InstanceGroupManagerStatusSt" - + "atefulH\003\210\001\001\022a\n\016version_target\030\330\335\376\211\001 \001(\0132" - + "@.google.cloud.compute.v1.InstanceGroupM" - + "anagerStatusVersionTargetH\004\210\001\001B\027\n\025_all_i" - + "nstances_configB\r\n\013_autoscalerB\014\n\n_is_st" - + "ableB\013\n\t_statefulB\021\n\017_version_target\"\216\001\n" - + ",InstanceGroupManagerStatusAllInstancesC" - + "onfig\022 \n\020current_revision\030\341\207\245\022 \001(\tH\000\210\001\001\022" - + "\031\n\teffective\030\247\323\330C \001(\010H\001\210\001\001B\023\n\021_current_r" - + "evisionB\014\n\n_effective\"\360\001\n\"InstanceGroupM" - + "anagerStatusStateful\022#\n\023has_stateful_con" - + "fig\030\360\347\3264 \001(\010H\000\210\001\001\022t\n\024per_instance_config" - + "s\030\251\325\370\372\001 \001(\0132M.google.cloud.compute.v1.In" - + "stanceGroupManagerStatusStatefulPerInsta" - + "nceConfigsH\001\210\001\001B\026\n\024_has_stateful_configB" - + "\027\n\025_per_instance_configs\"h\n4InstanceGrou" - + "pManagerStatusStatefulPerInstanceConfigs" - + "\022\036\n\rall_effective\030\211\221\247\366\001 \001(\010H\000\210\001\001B\020\n\016_all" - + "_effective\"U\n\'InstanceGroupManagerStatus" - + "VersionTarget\022\033\n\nis_reached\030\275\376\310\316\001 \001(\010H\000\210" - + "\001\001B\r\n\013_is_reached\"\334\006\n InstanceGroupManag" - + "erUpdatePolicy\022-\n\034instance_redistributio" - + "n_type\030\230\337\304\213\001 \001(\tH\000\210\001\001\022C\n\tmax_surge\030\223\311\243\220\001" - + " \001(\0132\'.google.cloud.compute.v1.FixedOrPe" - + "rcentH\001\210\001\001\022I\n\017max_unavailable\030\365\313\213\301\001 \001(\0132" - + "\'.google.cloud.compute.v1.FixedOrPercent" - + "H\002\210\001\001\022\037\n\016minimal_action\030\224\215\202\201\001 \001(\tH\003\210\001\001\022." - + "\n\036most_disruptive_allowed_action\030\215\316\302\037 \001(" - + "\tH\004\210\001\001\022#\n\022replacement_method\030\256\317\237\361\001 \001(\tH\005" - + "\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\006\210\001\001\"H\n\032InstanceRed" - + "istributionType\022*\n&UNDEFINED_INSTANCE_RE" - + "DISTRIBUTION_TYPE\020\000\"-\n\rMinimalAction\022\034\n\030" - + "UNDEFINED_MINIMAL_ACTION\020\000\"K\n\033MostDisrup" - + "tiveAllowedAction\022,\n(UNDEFINED_MOST_DISR" - + "UPTIVE_ALLOWED_ACTION\020\000\"[\n\021ReplacementMe" - + "thod\022 \n\034UNDEFINED_REPLACEMENT_METHOD\020\000\022\020" - + "\n\010RECREATE\020\357\331\233\371\001\022\022\n\nSUBSTITUTE\020\232\241\372\205\001\"1\n\004" - + "Type\022\022\n\016UNDEFINED_TYPE\020\000\022\025\n\rOPPORTUNISTI" - + "C\020\351\267\350\314\001B\037\n\035_instance_redistribution_type" - + "B\014\n\n_max_surgeB\022\n\020_max_unavailableB\021\n\017_m" - + "inimal_actionB!\n\037_most_disruptive_allowe" - + "d_actionB\025\n\023_replacement_methodB\007\n\005_type" - + "\"\314\001\n\033InstanceGroupManagerVersion\022\"\n\021inst" - + "ance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\001\210\001\001\022D\n\013target_size\030\357\363\375\035 \001(\0132\'.goo" - + "gle.cloud.compute.v1.FixedOrPercentH\002\210\001\001" - + "B\024\n\022_instance_templateB\007\n\005_nameB\016\n\014_targ" - + "et_size\"D\n,InstanceGroupManagersAbandonI" - + "nstancesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"\365\002" - + "\n(InstanceGroupManagersApplyUpdatesReque" - + "st\022\036\n\rall_instances\030\340\272\276\300\001 \001(\010H\000\210\001\001\022\024\n\tin" - + "stances\030\376\374\357\r \003(\t\022\037\n\016minimal_action\030\224\215\202\201\001" - + " \001(\tH\001\210\001\001\022.\n\036most_disruptive_allowed_act" - + "ion\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n\rMinimalAction\022\034\n\030UN" - + "DEFINED_MINIMAL_ACTION\020\000\"K\n\033MostDisrupti" - + "veAllowedAction\022,\n(UNDEFINED_MOST_DISRUP" - + "TIVE_ALLOWED_ACTION\020\000B\020\n\016_all_instancesB" - + "\021\n\017_minimal_actionB!\n\037_most_disruptive_a" - + "llowed_action\"o\n+InstanceGroupManagersCr" - + "eateInstancesRequest\022@\n\tinstances\030\376\374\357\r \003" - + "(\0132*.google.cloud.compute.v1.PerInstance" - + "Config\"\236\001\n+InstanceGroupManagersDeleteIn" - + "stancesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\0222\n\"" - + "skip_instances_on_validation_error\030\241\366\257\023 " - + "\001(\010H\000\210\001\001B%\n#_skip_instances_on_validatio" - + "n_error\"D\n0InstanceGroupManagersDeletePe" - + "rInstanceConfigsReq\022\020\n\005names\030\310\256\3571 \003(\t\"\244\001" - + "\n\'InstanceGroupManagersListErrorsRespons" - + "e\022D\n\005items\030\300\317\367/ \003(\01322.google.cloud.compu" - + "te.v1.InstanceManagedByIgmError\022\037\n\017next_" - + "page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page_t" - + "oken\"\261\001\n1InstanceGroupManagersListManage" - + "dInstancesResponse\022G\n\021managed_instances\030" - + "\336\233\251\240\001 \003(\0132(.google.cloud.compute.v1.Mana" - + "gedInstance\022\037\n\017next_page_token\030\225\272\206& \001(\tH" - + "\000\210\001\001B\022\n\020_next_page_token\"\353\001\n/InstanceGro" - + "upManagersListPerInstanceConfigsResp\022<\n\005" - + "items\030\300\317\367/ \003(\0132*.google.cloud.compute.v1" - + ".PerInstanceConfig\022\037\n\017next_page_token\030\225\272" - + "\206& \001(\tH\000\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" - + ".cloud.compute.v1.WarningH\001\210\001\001B\022\n\020_next_" - + "page_tokenB\n\n\010_warning\"\177\n/InstanceGroupM" - + "anagersPatchPerInstanceConfigsReq\022L\n\024per" - + "_instance_configs\030\251\325\370\372\001 \003(\0132*.google.clo" - + "ud.compute.v1.PerInstanceConfig\"E\n-Insta" - + "nceGroupManagersRecreateInstancesRequest" - + "\022\024\n\tinstances\030\376\374\357\r \003(\t\"\273\001\n\037InstanceGroup" - + "ManagersScopedList\022Q\n\027instance_group_man" - + "agers\030\220\372\211f \003(\0132-.google.cloud.compute.v1" - + ".InstanceGroupManager\0229\n\007warning\030\234\337\226\030 \001(" - + "\0132 .google.cloud.compute.v1.WarningH\000\210\001\001" - + "B\n\n\010_warning\"k\n/InstanceGroupManagersSet" - + "InstanceTemplateRequest\022\"\n\021instance_temp" - + "late\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_instance_templat" - + "e\"s\n*InstanceGroupManagersSetTargetPools" - + "Request\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\030\n\014" - + "target_pools\030\251\237\240\240\001 \003(\tB\016\n\014_fingerprint\"\200" - + "\001\n0InstanceGroupManagersUpdatePerInstanc" - + "eConfigsReq\022L\n\024per_instance_configs\030\251\325\370\372" - + "\001 \003(\0132*.google.cloud.compute.v1.PerInsta" - + "nceConfig\"e\n!InstanceGroupsAddInstancesR" - + "equest\022@\n\tinstances\030\376\374\357\r \003(\0132*.google.cl" - + "oud.compute.v1.InstanceReference\"\276\002\n\033Ins" - + "tanceGroupsListInstances\022\020\n\002id\030\233\032 \001(\tH\000\210" - + "\001\001\022A\n\005items\030\300\317\367/ \003(\0132/.google.cloud.comp" - + "ute.v1.InstanceWithNamedPorts\022\024\n\004kind\030\224\367" - + "\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" - + "\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warn" - + "ing\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.W" - + "arningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pag" - + "e_tokenB\014\n\n_self_linkB\n\n\010_warning\"\241\001\n\"In" - + "stanceGroupsListInstancesRequest\022\036\n\016inst" - + "ance_state\030\347\360\374+ \001(\tH\000\210\001\001\"H\n\rInstanceStat" - + "e\022\034\n\030UNDEFINED_INSTANCE_STATE\020\000\022\t\n\003ALL\020\201" - + "\373\003\022\016\n\007RUNNING\020\237\303\3529B\021\n\017_instance_state\"h\n" - + "$InstanceGroupsRemoveInstancesRequest\022@\n" - + "\tinstances\030\376\374\357\r \003(\0132*.google.cloud.compu" - + "te.v1.InstanceReference\"\246\001\n\030InstanceGrou" - + "psScopedList\022C\n\017instance_groups\030\276\301\337\256\001 \003(" - + "\0132&.google.cloud.compute.v1.InstanceGrou" - + "p\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\216\001\n\"Ins" - + "tanceGroupsSetNamedPortsRequest\022\033\n\013finge" - + "rprint\030\344\321\363o \001(\tH\000\210\001\001\022;\n\013named_ports\030\214\307\362\313", - "\001 \003(\0132\".google.cloud.compute.v1.NamedPor" - + "tB\016\n\014_fingerprint\"\241\002\n\014InstanceList\022\020\n\002id" - + "\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132!.google." - + "cloud.compute.v1.Instance\022\024\n\004kind\030\224\367\310\001 \001" + + "\001\022Q\n\030ssl_certificate_resource\030\211\324\225V \001(\0132\'" + + ".google.cloud.compute.v1.SslCertificateB" + + "\003\340A\002B\r\n\013_request_id\"\260\001\n\026InsertSslPolicyR" + + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n\023ssl_pol" + + "icy_resource\030\310\210\212\203\001 \001(\0132\".google.cloud.co" + + "mpute.v1.SslPolicyB\003\340A\002B\r\n\013_request_id\"\322" + + "\001\n\030InsertStoragePoolRequest\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001\022K\n\025storage_pool_resource\030\215\274\371J" + + " \001(\0132$.google.cloud.compute.v1.StoragePo" + + "olB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013" + + "_request_id\"\322\001\n\027InsertSubnetworkRequest\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n\023subnetwork_resource\030\277" + + "\332\221\024 \001(\0132#.google.cloud.compute.v1.Subnet" + + "workB\003\340A\002B\r\n\013_request_id\"\303\001\n\034InsertTarge" + + "tGrpcProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "\022U\n\032target_grpc_proxy_resource\030\322\352\353\234\001 \001(\013" + + "2(.google.cloud.compute.v1.TargetGrpcPro" + + "xyB\003\340A\002B\r\n\013_request_id\"\302\001\n\034InsertTargetH" + + "ttpProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T" + + "\n\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(." + + "google.cloud.compute.v1.TargetHttpProxyB" + + "\003\340A\002B\r\n\013_request_id\"\306\001\n\035InsertTargetHttp" + + "sProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n\033" + + "target_https_proxy_resource\030\201\255\344\316\001 \001(\0132)." + + "google.cloud.compute.v1.TargetHttpsProxy" + + "B\003\340A\002B\r\n\013_request_id\"\334\001\n\033InsertTargetIns" + + "tanceRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n\030t" + + "arget_instance_resource\030\312\342\240\315\001 \001(\0132\'.goog" + + "le.cloud.compute.v1.TargetInstanceB\003\340A\002\022" + + "\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request" + + "_id\"\323\001\n\027InsertTargetPoolRequest\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240" + + "B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001\022I\n\024target_pool_resource\030\243\335\2450 \001(\013" + + "2#.google.cloud.compute.v1.TargetPoolB\003\340" + + "A\002B\r\n\013_request_id\"\277\001\n\033InsertTargetSslPro" + + "xyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n\031targ" + + "et_ssl_proxy_resource\030\300\375\333C \001(\0132\'.google." + + "cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n\013" + + "_request_id\"\277\001\n\033InsertTargetTcpProxyRequ" + + "est\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" + + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n\031target_tcp" + + "_proxy_resource\030\313\360\311E \001(\0132\'.google.cloud." + + "compute.v1.TargetTcpProxyB\003\340A\002B\r\n\013_reque" + + "st_id\"\345\001\n\035InsertTargetVpnGatewayRequest\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_i" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n\033target_vpn_gateway_re" + + "source\030\202\263\036 \001(\0132).google.cloud.compute.v1" + + ".TargetVpnGatewayB\003\340A\002B\r\n\013_request_id\"\246\001" + + "\n\023InsertUrlMapRequest\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001\022A\n\020url_map_resource\030\341\220\267P \001(\0132\037.goog" + + "le.cloud.compute.v1.UrlMapB\003\340A\002B\r\n\013_requ" + + "est_id\"\323\001\n\027InsertVpnGatewayRequest\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" + + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001\022I\n\024vpn_gateway_resource\030\224\267\216W " + + "\001(\0132#.google.cloud.compute.v1.VpnGateway" + + "B\003\340A\002B\r\n\013_request_id\"\320\001\n\026InsertVpnTunnel" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022G\n\023vpn_tunnel_re" + + "source\030\272\241\264) \001(\0132\".google.cloud.compute.v" + + "1.VpnTunnelB\003\340A\002B\r\n\013_request_id\"\347\035\n\010Inst" + + "ance\022\\\n\031advanced_machine_features\030\262\347\252\303\001 " + + "\001(\01320.google.cloud.compute.v1.AdvancedMa" + + "chineFeaturesH\000\210\001\001\022\037\n\016can_ip_forward\030\374\206\204" + + "\337\001 \001(\010H\001\210\001\001\022b\n\034confidential_instance_con" + + "fig\030\365\222\372\351\001 \001(\01323.google.cloud.compute.v1." + + "ConfidentialInstanceConfigH\002\210\001\001\022\035\n\014cpu_p" + + "latform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n\022creation_times" + + "tamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n\023deletion_protectio" + + "n\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(" + + "\tH\006\210\001\001\0227\n\005disks\030\366\314\312- \003(\0132%.google.cloud." + + "compute.v1.AttachedDisk\022F\n\016display_devic" + + "e\030\363\210\274{ \001(\0132&.google.cloud.compute.v1.Dis" + + "playDeviceH\007\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH" + + "\010\210\001\001\022J\n\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.g" + + "oogle.cloud.compute.v1.AcceleratorConfig" + + "\022\030\n\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n\002id\030\233\032 \001(\004H" + + "\n\210\001\001\022W\n\027instance_encryption_key\030\215\301\357\036 \001(\013" + + "2..google.cloud.compute.v1.CustomerEncry" + + "ptionKeyH\013\210\001\001\022*\n\032key_revocation_action_t" + + "ype\030\342\334\300p \001(\tH\014\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\r\210\001\001\022" + + "!\n\021label_fingerprint\030\231\360\367T \001(\tH\016\210\001\001\022A\n\006la" + + "bels\030\377\277\301\356\001 \003(\0132-.google.cloud.compute.v1" + + ".Instance.LabelsEntry\022%\n\024last_start_time" + + "stamp\030\320\243\321\323\001 \001(\tH\017\210\001\001\022$\n\023last_stop_timest" + + "amp\030\342\333\354\304\001 \001(\tH\020\210\001\001\022)\n\030last_suspended_tim", + "estamp\030\211\251\361\251\001 \001(\tH\021\210\001\001\022\034\n\014machine_type\030\262\260" + + "\312l \001(\tH\022\210\001\001\022;\n\010metadata\030\257\366\265) \001(\0132!.googl" + + "e.cloud.compute.v1.MetadataH\023\210\001\001\022 \n\020min_" + + "cpu_platform\030\367\233\352s \001(\tH\024\210\001\001\022\024\n\004name\030\213\365\315\001 " + + "\001(\tH\025\210\001\001\022H\n\022network_interfaces\030\213\332\222\031 \003(\0132" + + ").google.cloud.compute.v1.NetworkInterfa" + + "ce\022^\n\032network_performance_config\030\342\227\370\275\001 \001" + + "(\01321.google.cloud.compute.v1.NetworkPerf" + + "ormanceConfigH\026\210\001\001\022?\n\006params\030\206\363\253% \001(\0132\'." + + "google.cloud.compute.v1.InstanceParamsH\027" + + "\210\001\001\022*\n\032private_ipv6_google_access\030\216\314\202\027 \001" + + "(\tH\030\210\001\001\022R\n\024reservation_affinity\030\273\270\242K \001(\013" + + "2,.google.cloud.compute.v1.ReservationAf" + + "finityH\031\210\001\001\022\034\n\021resource_policies\030\341\234\314\n \003(" + + "\t\022H\n\017resource_status\030\303\372\367v \001(\0132\'.google.c" + + "loud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\rs" + + "atisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210\001\001\022\036\n\rsatisfies" + + "_pzs\030\253\335\253\345\001 \001(\010H\034\210\001\001\022@\n\nscheduling\030\224\313\261\270\001 " + + "\001(\0132#.google.cloud.compute.v1.Scheduling" + + "H\035\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022E\n\020ser" + + "vice_accounts\030\260\304\253\204\001 \003(\0132\'.google.cloud.c" + + "ompute.v1.ServiceAccount\022Y\n\030shielded_ins" + + "tance_config\030\265\213\221\006 \001(\0132/.google.cloud.com" + + "pute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n\"s" + + "hielded_instance_integrity_policy\030\227\242\207N \001" + + "(\01328.google.cloud.compute.v1.ShieldedIns" + + "tanceIntegrityPolicyH \210\001\001\022$\n\024source_mach" + + "ine_image\030\277\334\260\n \001(\tH!\210\001\001\022c\n#source_machin" + + "e_image_encryption_key\030\243\373\371[ \001(\0132..google" + + ".cloud.compute.v1.CustomerEncryptionKeyH" + + "\"\210\001\001\022 \n\020start_restricted\030\330\320\375: \001(\010H#\210\001\001\022\026" + + "\n\006status\030\362\237\267V \001(\tH$\210\001\001\022\037\n\016status_message" + + "\030\272\311\351\215\001 \001(\tH%\210\001\001\0223\n\004tags\030\231\350\330\001 \001(\0132\035.googl" + + "e.cloud.compute.v1.TagsH&\210\001\001\022\024\n\004zone\030\254\307\344" + + "\001 \001(\tH\'\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\215\001\n\027KeyRevocationActio" + + "nType\022(\n$UNDEFINED_KEY_REVOCATION_ACTION" + + "_TYPE\020\000\022.\n&KEY_REVOCATION_ACTION_TYPE_UN" + + "SPECIFIED\020\332\221\336\336\001\022\013\n\004NONE\020\270\316\222\001\022\013\n\004STOP\020\202\200\234" + + "\001\"\300\001\n\027PrivateIpv6GoogleAccess\022(\n$UNDEFIN" + + "ED_PRIVATE_IPV6_GOOGLE_ACCESS\020\000\022-\n%ENABL" + + "E_BIDIRECTIONAL_ACCESS_TO_GOOGLE\020\272\312\211\314\001\022+" + + "\n#ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE\020\327\372" + + "\266\211\001\022\037\n\027INHERIT_FROM_SUBNETWORK\020\277\250\354\374\001\"\334\001\n" + + "\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\026\n\016DEPROVI" + + "SIONING\020\356\223\304\314\001\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\021\n\tR" + + "EPAIRING\020\225\202\225\305\001\022\016\n\007RUNNING\020\237\303\3529\022\017\n\007STAGIN" + + "G\020\233\310\306\315\001\022\017\n\007STOPPED\020\255\273\354\323\001\022\020\n\010STOPPING\020\364\320\242" + + "\247\001\022\020\n\tSUSPENDED\020\273\273\266\030\022\022\n\nSUSPENDING\020\246\324\230\365\001" + + "\022\021\n\nTERMINATED\020\243\364\233wB\034\n\032_advanced_machine" + + "_featuresB\021\n\017_can_ip_forwardB\037\n\035_confide" + + "ntial_instance_configB\017\n\r_cpu_platformB\025" + + "\n\023_creation_timestampB\026\n\024_deletion_prote" + + "ctionB\016\n\014_descriptionB\021\n\017_display_device" + + "B\016\n\014_fingerprintB\013\n\t_hostnameB\005\n\003_idB\032\n\030" + + "_instance_encryption_keyB\035\n\033_key_revocat" + + "ion_action_typeB\007\n\005_kindB\024\n\022_label_finge" + + "rprintB\027\n\025_last_start_timestampB\026\n\024_last" + + "_stop_timestampB\033\n\031_last_suspended_times" + + "tampB\017\n\r_machine_typeB\013\n\t_metadataB\023\n\021_m" + + "in_cpu_platformB\007\n\005_nameB\035\n\033_network_per" + + "formance_configB\t\n\007_paramsB\035\n\033_private_i" + + "pv6_google_accessB\027\n\025_reservation_affini" + + "tyB\022\n\020_resource_statusB\020\n\016_satisfies_pzi" + + "B\020\n\016_satisfies_pzsB\r\n\013_schedulingB\014\n\n_se" + + "lf_linkB\033\n\031_shielded_instance_configB%\n#" + + "_shielded_instance_integrity_policyB\027\n\025_" + + "source_machine_imageB&\n$_source_machine_" + + "image_encryption_keyB\023\n\021_start_restricte" + + "dB\t\n\007_statusB\021\n\017_status_messageB\007\n\005_tags" + + "B\007\n\005_zone\"\271\003\n\026InstanceAggregatedList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\022L\n\005items\030\300\317\367/ \003(\0132:.googl" + + "e.cloud.compute.v1.InstanceAggregatedLis" + + "t.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + + "xt_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\004\210\001\001\032Z\n\nItemsEntry\022\013\n\003key" + + "\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.com" + + "pute.v1.InstancesScopedList:\0028\001B\005\n\003_idB\007" + + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" + + "kB\n\n\010_warning\"\251\001\n\027InstanceConsumptionDat" + + "a\022R\n\020consumption_info\030\322\345\344E \001(\01320.google." + + "cloud.compute.v1.InstanceConsumptionInfo" + + "H\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n\021_cons" + + "umption_infoB\013\n\t_instance\"\320\001\n\027InstanceCo" + + "nsumptionInfo\022\033\n\nguest_cpus\030\322\313\310\273\001 \001(\005H\000\210" + + "\001\001\022\035\n\014local_ssd_gb\030\312\210\377\234\001 \001(\005H\001\210\001\001\022\031\n\tmem" + + "ory_mb\030\223\223\2507 \001(\005H\002\210\001\001\022\036\n\rmin_node_cpus\030\273\244" + + "\242\227\001 \001(\005H\003\210\001\001B\r\n\013_guest_cpusB\017\n\r_local_ss" + + "d_gbB\014\n\n_memory_mbB\020\n\016_min_node_cpus\"\225\004\n" + + "\rInstanceGroup\022\"\n\022creation_timestamp\030\266\217\307" + + "\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001" + + "\022\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001" + + "(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365" + + "\315\001 \001(\tH\005\210\001\001\022;\n\013named_ports\030\214\307\362\313\001 \003(\0132\".g" + + "oogle.cloud.compute.v1.NamedPort\022\027\n\007netw" + + "ork\030\256\264\205o \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001" + + "\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\024\n\004size\030\201\300" + + "\327\001 \001(\005H\t\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH\n\210\001\001" + + "\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001\001B\025\n\023_creation_time" + + "stampB\016\n\014_descriptionB\016\n\014_fingerprintB\005\n" + + "\003_idB\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\t\n\007_r" + + "egionB\014\n\n_self_linkB\007\n\005_sizeB\r\n\013_subnetw" + + "orkB\007\n\005_zone\"\310\003\n\033InstanceGroupAggregated" + + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n\005items\030\300\317\367/ \003(\013" + + "2?.google.cloud.compute.v1.InstanceGroup" + + "AggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001" + "(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001" - + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030" - + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" - + "ngH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_to" - + "kenB\014\n\n_self_linkB\n\n\010_warning\"\253\002\n\025Instan" - + "ceListReferrers\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0224\n\005ite" - + "ms\030\300\317\367/ \003(\0132\".google.cloud.compute.v1.Re" - + "ference\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" - + "ge_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331" - + "\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005" - + "_kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB" - + "\n\n\010_warning\"\274\002\n\031InstanceManagedByIgmErro" - + "r\022]\n\005error\030\210\244\223. \001(\0132F.google.cloud.compu" - + "te.v1.InstanceManagedByIgmErrorManagedIn" - + "stanceErrorH\000\210\001\001\022q\n\027instance_action_deta" - + "ils\030\243\374\253\213\001 \001(\0132G.google.cloud.compute.v1." - + "InstanceManagedByIgmErrorInstanceActionD" - + "etailsH\001\210\001\001\022\031\n\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010" - + "\n\006_errorB\032\n\030_instance_action_detailsB\014\n\n" - + "_timestamp\"\360\003\n.InstanceManagedByIgmError" - + "InstanceActionDetails\022\026\n\006action\030\266\374\275Y \001(\t" - + "H\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n\007versi" - + "on\030\330\271\324\247\001 \001(\0132/.google.cloud.compute.v1.M" - + "anagedInstanceVersionH\002\210\001\001\"\234\002\n\006Action\022\024\n" - + "\020UNDEFINED_ACTION\020\000\022\022\n\nABANDONING\020\315\312\220\271\001\022" - + "\020\n\010CREATING\020\271\275\235\331\001\022 \n\030CREATING_WITHOUT_RE" - + "TRIES\020\211\306\276\314\001\022\020\n\010DELETING\020\250\247\207\374\001\022\013\n\004NONE\020\270\316" - + "\222\001\022\022\n\nRECREATING\020\354\213\376\210\001\022\021\n\nREFRESHING\020\247\376\354" - + "M\022\022\n\nRESTARTING\020\363\356\353\230\001\022\020\n\010RESUMING\020\252\373\211\325\001\022" - + "\020\n\010STARTING\020\300\240\213\351\001\022\020\n\010STOPPING\020\364\320\242\247\001\022\022\n\nS" - + "USPENDING\020\246\324\230\365\001\022\020\n\tVERIFYING\020\251\301\214\010B\t\n\007_ac" - + "tionB\013\n\t_instanceB\n\n\010_version\"t\n-Instanc" - + "eManagedByIgmErrorManagedInstanceError\022\024" - + "\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022\030\n\007message\030\207\200\254\307\001 \001(" - + "\tH\001\210\001\001B\007\n\005_codeB\n\n\010_message\"\202\001\n\023Instance" - + "MoveRequest\022 \n\020destination_zone\030\275\342\357> \001(\t" - + "H\000\210\001\001\022 \n\017target_instance\030\203\217\226\212\001 \001(\tH\001\210\001\001B" - + "\023\n\021_destination_zoneB\022\n\020_target_instance" - + "\"\261\001\n\016InstanceParams\022c\n\025resource_manager_" - + "tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compute.v1" - + ".InstanceParams.ResourceManagerTagsEntry" - + "\032:\n\030ResourceManagerTagsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\020\n\022InstancePropert" - + "ies\022\\\n\031advanced_machine_features\030\262\347\252\303\001 \001" - + "(\01320.google.cloud.compute.v1.AdvancedMac" - + "hineFeaturesH\000\210\001\001\022\037\n\016can_ip_forward\030\374\206\204\337" - + "\001 \001(\010H\001\210\001\001\022b\n\034confidential_instance_conf" - + "ig\030\365\222\372\351\001 \001(\01323.google.cloud.compute.v1.C" - + "onfidentialInstanceConfigH\002\210\001\001\022\034\n\013descri" - + "ption\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n\005disks\030\366\314\312- \003(\0132%" - + ".google.cloud.compute.v1.AttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.google.c" - + "loud.compute.v1.AcceleratorConfig\022*\n\032key" - + "_revocation_action_type\030\342\334\300p \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud.compute" - + ".v1.InstanceProperties.LabelsEntry\022\034\n\014ma" - + "chine_type\030\262\260\312l \001(\tH\005\210\001\001\022;\n\010metadata\030\257\366\265" - + ") \001(\0132!.google.cloud.compute.v1.Metadata" - + "H\006\210\001\001\022 \n\020min_cpu_platform\030\367\233\352s \001(\tH\007\210\001\001\022" - + "H\n\022network_interfaces\030\213\332\222\031 \003(\0132).google." - + "cloud.compute.v1.NetworkInterface\022^\n\032net" - + "work_performance_config\030\342\227\370\275\001 \001(\01321.goog" - + "le.cloud.compute.v1.NetworkPerformanceCo" - + "nfigH\010\210\001\001\022*\n\032private_ipv6_google_access\030" - + "\216\314\202\027 \001(\tH\t\210\001\001\022R\n\024reservation_affinity\030\273\270" - + "\242K \001(\0132,.google.cloud.compute.v1.Reserva" - + "tionAffinityH\n\210\001\001\022g\n\025resource_manager_ta" - + "gs\030\374\233\213\264\001 \003(\0132D.google.cloud.compute.v1.I" - + "nstanceProperties.ResourceManagerTagsEnt" - + "ry\022\034\n\021resource_policies\030\341\234\314\n \003(\t\022@\n\nsche" - + "duling\030\224\313\261\270\001 \001(\0132#.google.cloud.compute." - + "v1.SchedulingH\013\210\001\001\022E\n\020service_accounts\030\260" - + "\304\253\204\001 \003(\0132\'.google.cloud.compute.v1.Servi" - + "ceAccount\022Y\n\030shielded_instance_config\030\265\213" - + "\221\006 \001(\0132/.google.cloud.compute.v1.Shielde" - + "dInstanceConfigH\014\210\001\001\0223\n\004tags\030\231\350\330\001 \001(\0132\035." - + "google.cloud.compute.v1.TagsH\r\210\001\001\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\032:\n\030ResourceManagerTagsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\215\001\n\027KeyRevocationAc" - + "tionType\022(\n$UNDEFINED_KEY_REVOCATION_ACT" - + "ION_TYPE\020\000\022.\n&KEY_REVOCATION_ACTION_TYPE" - + "_UNSPECIFIED\020\332\221\336\336\001\022\013\n\004NONE\020\270\316\222\001\022\013\n\004STOP\020" - + "\202\200\234\001\"\300\001\n\027PrivateIpv6GoogleAccess\022(\n$UNDE" - + "FINED_PRIVATE_IPV6_GOOGLE_ACCESS\020\000\022-\n%EN" - + "ABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE\020\272\312\211\314" - + "\001\022+\n#ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - + "\020\327\372\266\211\001\022\037\n\027INHERIT_FROM_SUBNETWORK\020\277\250\354\374\001B" - + "\034\n\032_advanced_machine_featuresB\021\n\017_can_ip" - + "_forwardB\037\n\035_confidential_instance_confi" - + "gB\016\n\014_descriptionB\035\n\033_key_revocation_act" - + "ion_typeB\017\n\r_machine_typeB\013\n\t_metadataB\023" - + "\n\021_min_cpu_platformB\035\n\033_network_performa" - + "nce_configB\035\n\033_private_ipv6_google_acces" - + "sB\027\n\025_reservation_affinityB\r\n\013_schedulin" - + "gB\033\n\031_shielded_instance_configB\007\n\005_tags\"" - + "\240\002\n\027InstancePropertiesPatch\022P\n\006labels\030\377\277" - + "\301\356\001 \003(\0132<.google.cloud.compute.v1.Instan" - + "cePropertiesPatch.LabelsEntry\022S\n\010metadat" - + "a\030\257\366\265) \003(\0132>.google.cloud.compute.v1.Ins" - + "tancePropertiesPatch.MetadataEntry\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\":\n\021InstanceReference\022\030\n\010insta" - + "nce\030\225\251\332\010 \001(\tH\000\210\001\001B\013\n\t_instance\"\327\001\n\020Insta" - + "nceSettings\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022K\n\010metadata\030\257\366\265) " - + "\001(\01321.google.cloud.compute.v1.InstanceSe" - + "ttingsMetadataH\002\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\003\210\001" - + "\001B\016\n\014_fingerprintB\007\n\005_kindB\013\n\t_metadataB" - + "\007\n\005_zone\"\267\001\n\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.compute.v" - + "1.InstanceSettingsMetadata.ItemsEntry\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\nItemsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\007\n\005_kind\"\237\004\n\020I" - + "nstanceTemplate\022\"\n\022creation_timestamp\030\266\217" - + "\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001" - + "\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001" - + "\001\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022G\n\nproperties\030\263\232" - + "\266F \001(\0132+.google.cloud.compute.v1.Instanc" - + "ePropertiesH\005\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001" - + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022 \n\017source_i" - + "nstance\030\271\230\375\274\001 \001(\tH\010\210\001\001\022U\n\026source_instanc" - + "e_params\030\314\320\304@ \001(\0132-.google.cloud.compute" - + ".v1.SourceInstanceParamsH\t\210\001\001B\025\n\023_creati" - + "on_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_" - + "kindB\007\n\005_nameB\r\n\013_propertiesB\t\n\007_regionB" - + "\014\n\n_self_linkB\022\n\020_source_instanceB\031\n\027_so" - + "urce_instance_params\"\270\003\n\036InstanceTemplat" - + "eAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022T\n\005ite" - + "ms\030\300\317\367/ \003(\0132B.google.cloud.compute.v1.In" - + "stanceTemplateAggregatedList.ItemsEntry\022" - + "\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token" - + "\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210" - + "\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" - + "mpute.v1.WarningH\004\210\001\001\032b\n\nItemsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.google.cloud.c" - + "ompute.v1.InstanceTemplatesScopedList:\0028" - + "\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" - + "\n_self_linkB\n\n\010_warning\"\261\002\n\024InstanceTemp" - + "lateList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.InstanceT" - + "emplate\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" - + "ge_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331" - + "\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005" - + "_kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB" - + "\n\n\010_warning\"\257\001\n\033InstanceTemplatesScopedL" - + "ist\022I\n\022instance_templates\030\217\270\245\333\001 \003(\0132).go" - + "ogle.cloud.compute.v1.InstanceTemplate\0229" - + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" - + "e.v1.WarningH\000\210\001\001B\n\n\010_warning\"\376\002\n\026Instan" - + "ceWithNamedPorts\022\030\n\010instance\030\225\251\332\010 \001(\tH\000\210" - + "\001\001\022;\n\013named_ports\030\214\307\362\313\001 \003(\0132\".google.clo" - + "ud.compute.v1.NamedPort\022\026\n\006status\030\362\237\267V \001" - + "(\tH\001\210\001\001\"\334\001\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000" - + "\022\026\n\016DEPROVISIONING\020\356\223\304\314\001\022\024\n\014PROVISIONING" - + "\020\355\365\332\212\001\022\021\n\tREPAIRING\020\225\202\225\305\001\022\016\n\007RUNNING\020\237\303\352" - + "9\022\017\n\007STAGING\020\233\310\306\315\001\022\017\n\007STOPPED\020\255\273\354\323\001\022\020\n\010S" - + "TOPPING\020\364\320\242\247\001\022\020\n\tSUSPENDED\020\273\273\266\030\022\022\n\nSUSPE" - + "NDING\020\246\324\230\365\001\022\021\n\nTERMINATED\020\243\364\233wB\013\n\t_insta" - + "nceB\t\n\007_status\"C\n#InstancesAddResourcePo" - + "liciesRequest\022\034\n\021resource_policies\030\341\234\314\n " - + "\003(\t\"\212\002\n$InstancesBulkInsertOperationMeta" - + "data\022t\n\023per_location_status\030\232\351\204P \003(\0132T.g" - + "oogle.cloud.compute.v1.InstancesBulkInse" - + "rtOperationMetadata.PerLocationStatusEnt" - + "ry\032l\n\026PerLocationStatusEntry\022\013\n\003key\030\001 \001(" - + "\t\022A\n\005value\030\002 \001(\01322.google.cloud.compute." - + "v1.BulkInsertOperationStatus:\0028\001\"\330\001\n&Ins" - + "tancesGetEffectiveFirewallsResponse\022t\n\020f" - + "irewall_policys\030\302\312\374\303\001 \003(\0132V.google.cloud" - + ".compute.v1.InstancesGetEffectiveFirewal" - + "lsResponseEffectiveFirewallPolicy\0228\n\tfir" - + "ewalls\030\363\306\350\201\001 \003(\0132!.google.cloud.compute." - + "v1.Firewall\"\333\003\n=InstancesGetEffectiveFir" - + "ewallsResponseEffectiveFirewallPolicy\022\034\n" - + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001" - + " \001(\tH\001\210\001\001\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n\005" - + "rules\030\367\221\3653 \003(\0132+.google.cloud.compute.v1" - + ".FirewallPolicyRule\022\033\n\nshort_name\030\356\270\320\352\001 " - + "\001(\tH\003\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"\231\001\n\004Type\022" - + "\022\n\016UNDEFINED_TYPE\020\000\022\020\n\tHIERARCHY\020\225\304\252!\022\017\n" - + "\007NETWORK\020\216\314\263\305\001\022\027\n\020NETWORK_REGIONAL\020\260\342\375Z\022" - + "\024\n\rSYSTEM_GLOBAL\020\263\227\324\034\022\026\n\017SYSTEM_REGIONAL" - + "\020\257\214\222M\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B\017\n\r_display_n" - + "ameB\007\n\005_nameB\013\n\t_priorityB\r\n\013_short_name" - + "B\007\n\005_type\"F\n&InstancesRemoveResourcePoli" - + "ciesRequest\022\034\n\021resource_policies\030\341\234\314\n \003(" - + "\t\"\225\001\n\023InstancesScopedList\0227\n\tinstances\030\376" - + "\374\357\r \003(\0132!.google.cloud.compute.v1.Instan" - + "ce\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" - + "mpute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\327\001\n\031In" - + "stancesSetLabelsRequest\022!\n\021label_fingerp" - + "rint\030\231\360\367T \001(\tH\000\210\001\001\022R\n\006labels\030\377\277\301\356\001 \003(\0132>" - + ".google.cloud.compute.v1.InstancesSetLab" - + "elsRequest.LabelsEntry\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\024\n\022_label_" - + "fingerprint\"q\n#InstancesSetMachineResour" - + "cesRequest\022J\n\022guest_accelerators\030\357\314\207\335\001 \003" - + "(\0132*.google.cloud.compute.v1.Accelerator" - + "Config\"O\n\036InstancesSetMachineTypeRequest" - + "\022\034\n\014machine_type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r_machi" - + "ne_type\"Z\n!InstancesSetMinCpuPlatformReq" - + "uest\022 \n\020min_cpu_platform\030\367\233\352s \001(\tH\000\210\001\001B\023" - + "\n\021_min_cpu_platform\"h\n\027InstancesSetNameR" - + "equest\022\035\n\014current_name\030\221\363\253\274\001 \001(\tH\000\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\017\n\r_current_nameB\007\n\005" - + "_name\"w\n!InstancesSetSecurityPolicyReque" - + "st\022\035\n\022network_interfaces\030\213\332\222\031 \003(\t\022\037\n\017sec" - + "urity_policy\030\221\206\312Q \001(\tH\000\210\001\001B\022\n\020_security_" - + "policy\"W\n!InstancesSetServiceAccountRequ" - + "est\022\025\n\005email\030\234\227\211. \001(\tH\000\210\001\001\022\021\n\006scopes\030\237\231\222" - + "O \003(\tB\010\n\006_email\"w\n&InstancesStartWithEnc" - + "ryptionKeyRequest\022M\n\005disks\030\366\314\312- \003(\0132;.go" - + "ogle.cloud.compute.v1.CustomerEncryption" - + "KeyProtectedDisk\"\301\t\n\017InstantSnapshot\022\035\n\014" - + "architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n\022creation_" - + "timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374" - + "\207\326\311\001 \001(\tH\002\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H" - + "\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\005\210\001\001\022!\n\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022" - + "H\n\006labels\030\377\277\301\356\001 \003(\01324.google.cloud.compu" - + "te.v1.InstantSnapshot.LabelsEntry\022\024\n\004nam" - + "e\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022" - + "W\n\017resource_status\030\303\372\367v \001(\01326.google.clo" - + "ud.compute.v1.InstantSnapshotResourceSta" - + "tusH\t\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\n\210\001\001" - + "\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\013\210\001\001\022\032\n\tself" - + "_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022!\n\021self_link_with_i" - + "d\030\202\254\235\025 \001(\tH\r\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\t" - + "H\016\210\001\001\022\037\n\016source_disk_id\030\331\315\311\330\001 \001(\tH\017\210\001\001\022\026" - + "\n\006status\030\362\237\267V \001(\tH\020\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH" - + "\021\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"j\n\014Architecture\022\032\n\026UNDEFINED" - + "_ARCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNSPECIF" - + "IED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"" - + "u\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREAT" - + "ING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220" - + "\246\331\001\022\014\n\005READY\020\203\303\217%\022\023\n\013UNAVAILABLE\020\260\330\245\305\001B\017" - + "\n\r_architectureB\025\n\023_creation_timestampB\016" - + "\n\014_descriptionB\017\n\r_disk_size_gbB\005\n\003_idB\007" - + "\n\005_kindB\024\n\022_label_fingerprintB\007\n\005_nameB\t" - + "\n\007_regionB\022\n\020_resource_statusB\020\n\016_satisf" - + "ies_pziB\020\n\016_satisfies_pzsB\014\n\n_self_linkB" - + "\024\n\022_self_link_with_idB\016\n\014_source_diskB\021\n" - + "\017_source_disk_idB\t\n\007_statusB\007\n\005_zone\"\316\003\n" - + "\035InstantSnapshotAggregatedList\022\020\n\002id\030\233\032 " - + "\001(\tH\000\210\001\001\022S\n\005items\030\300\317\367/ \003(\0132A.google.clou" - + "d.compute.v1.InstantSnapshotAggregatedLi" - + "st.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017n" - + "ext_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_lin" - + "k\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(" - + "\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\004\210\001\001\032a\n\nItemsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.cloud.co" - + "mpute.v1.InstantSnapshotsScopedList:\0028\001B" - + "\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_" - + "self_linkB\n\n\010_warning\"\257\002\n\023InstantSnapsho" - + "tList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022:\n\005items\030\300\317\367/ \003(" - + "\0132(.google.cloud.compute.v1.InstantSnaps" - + "hot\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" - + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" - + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" - + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" - + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" - + "warning\"[\n\035InstantSnapshotResourceStatus" - + "\022#\n\022storage_size_bytes\030\361\215\346\270\001 \001(\003H\000\210\001\001B\025\n" - + "\023_storage_size_bytes\"\254\001\n\032InstantSnapshot" - + "sScopedList\022G\n\021instant_snapshots\030\321\274\227\235\001 \003" - + "(\0132(.google.cloud.compute.v1.InstantSnap" - + "shot\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"h\n\017I" - + "nt64RangeMatch\022\032\n\trange_end\030\331\225\340\231\001 \001(\003H\000\210" - + "\001\001\022\033\n\013range_start\030\340\375\2421 \001(\003H\001\210\001\001B\014\n\n_rang" - + "e_endB\016\n\014_range_start\"\273\020\n\014Interconnect\022\036" - + "\n\radmin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\036\n\022availa" - + "ble_features\030\363\271\326\354\001 \003(\t\022J\n\rcircuit_infos\030" - + "\257\203\315N \003(\01320.google.cloud.compute.v1.Inter" - + "connectCircuitInfo\022\"\n\022creation_timestamp" - + "\030\266\217\307\016 \001(\tH\001\210\001\001\022\035\n\rcustomer_name\030\314\334\337\001 \001(\t" - + "H\002\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022T\n\020e" - + "xpected_outages\030\233\352\216~ \003(\01327.google.cloud." - + "compute.v1.InterconnectOutageNotificatio" - + "n\022\"\n\021google_ip_address\030\242\205\245\323\001 \001(\tH\004\210\001\001\022$\n" - + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\005\210\001\001\022\020\n\002i" - + "d\030\233\032 \001(\004H\006\210\001\001\022$\n\030interconnect_attachment" - + "s\030\377\322\353\312\001 \003(\t\022\"\n\021interconnect_type\030\313\230\323\365\001 \001" - + "(\tH\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022!\n\021label_f" - + "ingerprint\030\231\360\367T \001(\tH\t\210\001\001\022E\n\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.Interconn" - + "ect.LabelsEntry\022\032\n\tlink_type\030\337\210\276\371\001 \001(\tH\n" - + "\210\001\001\022\031\n\010location\030\265\277\276\212\001 \001(\tH\013\210\001\001\022D\n\006macsec" - + "\030\242\301\227\374\001 \001(\0132+.google.cloud.compute.v1.Int" - + "erconnectMacsecH\014\210\001\001\022\036\n\016macsec_enabled\030\244" - + "\241\315\\ \001(\010H\r\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022!\n\021no" - + "c_contact_email\030\200\370\332\006 \001(\tH\017\210\001\001\022\"\n\022operati" - + "onal_status\030\377\261\360_ \001(\tH\020\210\001\001\022\037\n\017peer_ip_add" - + "ress\030\331\227\207c \001(\tH\021\210\001\001\022\'\n\026provisioned_link_c" - + "ount\030\365\322\366\303\001 \001(\005H\022\210\001\001\022 \n\017remote_location\030\216" - + "\217\327\232\001 \001(\tH\023\210\001\001\022\036\n\022requested_features\030\356\363\367\333" - + "\001 \003(\t\022$\n\024requested_link_count\030\373\333\275\025 \001(\005H\024" - + "\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\025\210\001\001\022\032\n\ts" - + "elf_link\030\215\222\305\331\001 \001(\tH\026\210\001\001\022\025\n\005state\030\221\211\2534 \001(" - + "\tH\027\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"5\n\021AvailableFeatures\022 \n\034UN" - + "DEFINED_AVAILABLE_FEATURES\020\000\"j\n\020Intercon" - + "nectType\022\037\n\033UNDEFINED_INTERCONNECT_TYPE\020" - + "\000\022\020\n\tDEDICATED\020\317\233\234{\022\022\n\nIT_PRIVATE\020\317\214\210\240\001\022" - + "\017\n\007PARTNER\020\250\321\241\334\001\"i\n\010LinkType\022\027\n\023UNDEFINE" - + "D_LINK_TYPE\020\000\022\"\n\032LINK_TYPE_ETHERNET_100G" - + "_LR\020\347\362\201\241\001\022 \n\031LINK_TYPE_ETHERNET_10G_LR\020\245" - + "\271\361p\"`\n\021OperationalStatus\022 \n\034UNDEFINED_OP" - + "ERATIONAL_STATUS\020\000\022\020\n\tOS_ACTIVE\020\301\373\310\032\022\027\n\020" - + "OS_UNPROVISIONED\020\300\301\252r\"5\n\021RequestedFeatur" - + "es\022 \n\034UNDEFINED_REQUESTED_FEATURES\020\000\"C\n\005" - + "State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211" - + "\226\001\022\025\n\rUNPROVISIONED\020\333\307\327\366\001B\020\n\016_admin_enab" - + "ledB\025\n\023_creation_timestampB\020\n\016_customer_" - + "nameB\016\n\014_descriptionB\024\n\022_google_ip_addre" - + "ssB\026\n\024_google_reference_idB\005\n\003_idB\024\n\022_in" - + "terconnect_typeB\007\n\005_kindB\024\n\022_label_finge" - + "rprintB\014\n\n_link_typeB\013\n\t_locationB\t\n\007_ma" - + "csecB\021\n\017_macsec_enabledB\007\n\005_nameB\024\n\022_noc" - + "_contact_emailB\025\n\023_operational_statusB\022\n" - + "\020_peer_ip_addressB\031\n\027_provisioned_link_c" - + "ountB\022\n\020_remote_locationB\027\n\025_requested_l" - + "ink_countB\020\n\016_satisfies_pzsB\014\n\n_self_lin" - + "kB\010\n\006_state\"\313\031\n\026InterconnectAttachment\022\036" - + "\n\radmin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\031\n\tbandwi" - + "dth\030\261\201\323V \001(\tH\001\210\001\001\022!\n\026candidate_ipv6_subn" - + "ets\030\232\217\332! \003(\t\022\034\n\021candidate_subnets\030\372\343\264q \003" - + "(\t\022(\n\027cloud_router_ip_address\030\210\210\205\211\001 \001(\tH" - + "\002\210\001\001\022*\n\031cloud_router_ipv6_address\030\310\223\277\327\001 " - + "\001(\tH\003\210\001\001\022/\n\036cloud_router_ipv6_interface_" - + "id\030\215\311\310\370\001 \001(\tH\004\210\001\001\022r\n\031configuration_const" - + "raints\030\355\360\326U \001(\0132G.google.cloud.compute.v" - + "1.InterconnectAttachmentConfigurationCon" - + "straintsH\005\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016" - + " \001(\tH\006\210\001\001\022+\n\032customer_router_ip_address\030" - + "\361\332\304\236\001 \001(\tH\007\210\001\001\022-\n\034customer_router_ipv6_a" - + "ddress\030\361\371\253\212\001 \001(\tH\010\210\001\001\0222\n!customer_router" - + "_ipv6_interface_id\030\204\206\326\265\001 \001(\tH\t\210\001\001\022!\n\021dat" - + "aplane_version\030\213\255\323\020 \001(\005H\n\210\001\001\022\034\n\013descript" - + "ion\030\374\207\326\311\001 \001(\tH\013\210\001\001\022(\n\030edge_availability_" - + "domain\030\246\225\377! \001(\tH\014\210\001\001\022\032\n\nencryption\030\203\237\334. " - + "\001(\tH\r\210\001\001\022$\n\023google_reference_id\030\325\265\212\377\001 \001(" - + "\tH\016\210\001\001\022\020\n\002id\030\233\032 \001(\004H\017\210\001\001\022\034\n\014interconnect" - + "\030\216\311\214k \001(\tH\020\210\001\001\022$\n\030ipsec_internal_address" - + "es\030\265\362\260\302\001 \003(\t\022\024\n\004kind\030\224\367\310\001 \001(\tH\021\210\001\001\022!\n\021la" - + "bel_fingerprint\030\231\360\367T \001(\tH\022\210\001\001\022O\n\006labels\030" - + "\377\277\301\356\001 \003(\0132;.google.cloud.compute.v1.Inte" - + "rconnectAttachment.LabelsEntry\022\022\n\003mtu\030\256\317" - + "\006 \001(\005H\023\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\024\210\001\001\022\"\n\022oper" - + "ational_status\030\377\261\360_ \001(\tH\025\210\001\001\022\034\n\013pairing_" - + "key\030\350\360\324\321\001 \001(\tH\026\210\001\001\022\034\n\013partner_asn\030\205\305\367\320\001 " - + "\001(\003H\027\210\001\001\022`\n\020partner_metadata\030\306\341\266\037 \001(\0132>." - + "google.cloud.compute.v1.InterconnectAtta" - + "chmentPartnerMetadataH\030\210\001\001\022e\n\031private_in" - + "terconnect_info\030\203\354\221q \001(\0132:.google.cloud." - + "compute.v1.InterconnectAttachmentPrivate" - + "InfoH\031\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\032\210\001\001\022\037\n\016rem" - + "ote_service\030\274\377\362\272\001 \001(\tH\033\210\001\001\022\026\n\006router\030\311\256\356" - + "F \001(\tH\034\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\035\210" - + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022\033\n\nstack_" - + "type\030\221\265\213\313\001 \001(\tH\037\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH \210" - + "\001\001\022\036\n\rsubnet_length\030\210\304\267\205\001 \001(\005H!\210\001\001\022\024\n\004ty" - + "pe\030\272\236\332\001 \001(\tH\"\210\001\001\022\035\n\rvlan_tag8021q\030\234\350\2279 \001" - + "(\005H#\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\355\001\n\tBandwidth\022\027\n\023UNDEFINE" - + "D_BANDWIDTH\020\000\022\017\n\010BPS_100M\020\266\225\320\027\022\017\n\007BPS_10" - + "G\020\216\211\362\204\001\022\016\n\006BPS_1G\020\360\255\271\251\001\022\017\n\010BPS_200M\020\225\376\321\027" - + "\022\017\n\007BPS_20G\020\317\220\362\204\001\022\016\n\006BPS_2G\020\217\256\271\251\001\022\017\n\010BPS" - + "_300M\020\364\346\323\027\022\017\n\010BPS_400M\020\323\317\325\027\022\017\n\010BPS_500M\020" - + "\262\270\327\027\022\017\n\007BPS_50G\020\222\247\362\204\001\022\017\n\007BPS_50M\020\230\247\362\204\001\022\016" - + "\n\006BPS_5G\020\354\256\271\251\001\"\237\001\n\026EdgeAvailabilityDomai" - + "n\022&\n\"UNDEFINED_EDGE_AVAILABILITY_DOMAIN\020" - + "\000\022\035\n\025AVAILABILITY_DOMAIN_1\020\332\373\326\246\001\022\035\n\025AVAI" - + "LABILITY_DOMAIN_2\020\333\373\326\246\001\022\037\n\027AVAILABILITY_" - + "DOMAIN_ANY\020\265\352\367\262\001\"A\n\nEncryption\022\030\n\024UNDEFI" - + "NED_ENCRYPTION\020\000\022\014\n\005IPSEC\020\252\243\251!\022\013\n\004NONE\020\270" - + "\316\222\001\"`\n\021OperationalStatus\022 \n\034UNDEFINED_OP" - + "ERATIONAL_STATUS\020\000\022\020\n\tOS_ACTIVE\020\301\373\310\032\022\027\n\020" - + "OS_UNPROVISIONED\020\300\301\252r\"I\n\tStackType\022\030\n\024UN" - + "DEFINED_STACK_TYPE\020\000\022\020\n\tIPV4_IPV6\020\201\350\312\n\022\020" - + "\n\tIPV4_ONLY\020\246\313\325\n\"\302\001\n\005State\022\023\n\017UNDEFINED_" - + "STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\007DEFUNCT\020\257\274\2417\022" - + " \n\030PARTNER_REQUEST_RECEIVED\020\350\360\362\364\001\022\027\n\020PEN" - + "DING_CUSTOMER\020\246\203\357O\022\027\n\017PENDING_PARTNER\020\340\373" - + "\372\270\001\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022\025\n\rUNPROV" - + "ISIONED\020\333\307\327\366\001\"W\n\004Type\022\022\n\016UNDEFINED_TYPE\020" - + "\000\022\020\n\tDEDICATED\020\317\233\234{\022\017\n\007PARTNER\020\250\321\241\334\001\022\030\n\020" - + "PARTNER_PROVIDER\020\250\367\267\346\001B\020\n\016_admin_enabled" - + "B\014\n\n_bandwidthB\032\n\030_cloud_router_ip_addre" - + "ssB\034\n\032_cloud_router_ipv6_addressB!\n\037_clo", - "ud_router_ipv6_interface_idB\034\n\032_configur" - + "ation_constraintsB\025\n\023_creation_timestamp" - + "B\035\n\033_customer_router_ip_addressB\037\n\035_cust" - + "omer_router_ipv6_addressB$\n\"_customer_ro" - + "uter_ipv6_interface_idB\024\n\022_dataplane_ver" - + "sionB\016\n\014_descriptionB\033\n\031_edge_availabili" - + "ty_domainB\r\n\013_encryptionB\026\n\024_google_refe" - + "rence_idB\005\n\003_idB\017\n\r_interconnectB\007\n\005_kin" - + "dB\024\n\022_label_fingerprintB\006\n\004_mtuB\007\n\005_name" - + "B\025\n\023_operational_statusB\016\n\014_pairing_keyB" - + "\016\n\014_partner_asnB\023\n\021_partner_metadataB\034\n\032" - + "_private_interconnect_infoB\t\n\007_regionB\021\n" - + "\017_remote_serviceB\t\n\007_routerB\020\n\016_satisfie" - + "s_pzsB\014\n\n_self_linkB\r\n\013_stack_typeB\010\n\006_s" - + "tateB\020\n\016_subnet_lengthB\007\n\005_typeB\020\n\016_vlan" - + "_tag8021q\"\343\003\n$InterconnectAttachmentAggr" - + "egatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n\005items\030\300\317" - + "\367/ \003(\0132H.google.cloud.compute.v1.Interco" - + "nnectAttachmentAggregatedList.ItemsEntry" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030" - + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" - + "ngH\004\210\001\001\032h\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022I\n\005va" - + "lue\030\002 \001(\0132:.google.cloud.compute.v1.Inte" - + "rconnectAttachmentsScopedList:\0028\001B\005\n\003_id" - + "B\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_l" - + "inkB\n\n\010_warning\"\263\002\n.InterconnectAttachme" - + "ntConfigurationConstraints\022\030\n\007bgp_md5\030\212\350" - + "\363\261\001 \001(\tH\000\210\001\001\022w\n\023bgp_peer_asn_ranges\030\202\273\371\342" - + "\001 \003(\0132V.google.cloud.compute.v1.Intercon" - + "nectAttachmentConfigurationConstraintsBg" - + "pPeerASNRange\"b\n\006BgpMd5\022\025\n\021UNDEFINED_BGP" - + "_MD5\020\000\022\024\n\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n\014MD5_REQU" - + "IRED\020\300\342\373g\022\026\n\017MD5_UNSUPPORTED\020\324\341\273)B\n\n\010_bg" - + "p_md5\"w\n=InterconnectAttachmentConfigura" - + "tionConstraintsBgpPeerASNRange\022\022\n\003max\030\344\312" - + "\006 \001(\rH\000\210\001\001\022\022\n\003min\030\322\314\006 \001(\rH\001\210\001\001B\006\n\004_maxB\006" - + "\n\004_min\"\275\002\n\032InterconnectAttachmentList\022\020\n" - + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(\0132/.goog" - + "le.cloud.compute.v1.InterconnectAttachme" - + "nt\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_to" - + "ken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" - + ".compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kind" - + "B\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_w" - + "arning\"\274\001\n%InterconnectAttachmentPartner" - + "Metadata\022\"\n\021interconnect_name\030\234\357\306\365\001 \001(\tH" - + "\000\210\001\001\022\034\n\014partner_name\030\242\247\220M \001(\tH\001\210\001\001\022\033\n\npo" - + "rtal_url\030\234\316\255\200\001 \001(\tH\002\210\001\001B\024\n\022_interconnect" - + "_nameB\017\n\r_partner_nameB\r\n\013_portal_url\"K\n" - + "!InterconnectAttachmentPrivateInfo\022\031\n\010ta" - + "g8021q\030\300\321\316\201\001 \001(\rH\000\210\001\001B\013\n\t_tag8021q\"\301\001\n!I" - + "nterconnectAttachmentsScopedList\022U\n\030inte" - + "rconnect_attachments\030\377\322\353\312\001 \003(\0132/.google." - + "cloud.compute.v1.InterconnectAttachment\022" - + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" - + "te.v1.WarningH\000\210\001\001B\n\n\010_warning\"\305\001\n\027Inter" - + "connectCircuitInfo\022\"\n\022customer_demarc_id" - + "\030\223\214\334\r \001(\tH\000\210\001\001\022!\n\021google_circuit_id\030\367\215\370|" - + " \001(\tH\001\210\001\001\022!\n\020google_demarc_id\030\256\335\333\325\001 \001(\tH" - + "\002\210\001\001B\025\n\023_customer_demarc_idB\024\n\022_google_c" - + "ircuit_idB\023\n\021_google_demarc_id\"\225\005\n\027Inter" - + "connectDiagnostics\022P\n\narp_caches\030\221\326\330\305\001 \003" - + "(\01328.google.cloud.compute.v1.Interconnec" - + "tDiagnosticsARPEntry\022(\n\027bundle_aggregati" - + "on_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n\031bundle_operati" - + "onal_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n\005links\030\271\237\2151 " - + "\003(\0132:.google.cloud.compute.v1.Interconne" - + "ctDiagnosticsLinkStatus\022\034\n\013mac_address\030\204" - + "\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n\025BundleAggregationType\022" - + "%\n!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#" - + "\n\034BUNDLE_AGGREGATION_TYPE_LACP\020\315\242\236\r\022%\n\036B" - + "UNDLE_AGGREGATION_TYPE_STATIC\020\331\230\225\030\"\217\001\n\027B" - + "undleOperationalStatus\022\'\n#UNDEFINED_BUND" - + "LE_OPERATIONAL_STATUS\020\000\022&\n\036BUNDLE_OPERAT" - + "IONAL_STATUS_DOWN\020\205\256\264\330\001\022#\n\034BUNDLE_OPERAT" - + "IONAL_STATUS_UP\020\276\203\371LB\032\n\030_bundle_aggregat" - + "ion_typeB\034\n\032_bundle_operational_statusB\016" - + "\n\014_mac_address\"{\n\037InterconnectDiagnostic" - + "sARPEntry\022\033\n\nip_address\030\334\361\334\301\001 \001(\tH\000\210\001\001\022\034" - + "\n\013mac_address\030\204\322\310\236\001 \001(\tH\001\210\001\001B\r\n\013_ip_addr" - + "essB\016\n\014_mac_address\"\372\001\n%InterconnectDiag" - + "nosticsLinkLACPStatus\022 \n\020google_system_i" - + "d\030\245\205\277+ \001(\tH\000\210\001\001\022#\n\022neighbor_system_id\030\236\230" - + "\371\243\001 \001(\tH\001\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\002\210\001\001\"=\n\005S" - + "tate\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226" - + "\001\022\017\n\010DETACHED\020\362\366\241gB\023\n\021_google_system_idB" - + "\025\n\023_neighbor_system_idB\010\n\006_state\"\343\001\n\'Int" - + "erconnectDiagnosticsLinkOpticalPower\022\025\n\005" - + "state\030\221\211\2534 \001(\tH\000\210\001\001\022\025\n\005value\030\361\242\2625 \001(\002H\001\210" - + "\001\001\"v\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\022\n\nHIGH" - + "_ALARM\020\324\362\315\221\001\022\023\n\014HIGH_WARNING\020\337\353\257i\022\021\n\tLOW" - + "_ALARM\020\346\252\377\226\001\022\023\n\013LOW_WARNING\020\361\252\306\241\001\022\007\n\002OK\020" - + "\334\023B\010\n\006_stateB\010\n\006_value\"\361\006\n!InterconnectD" - + "iagnosticsLinkStatus\022P\n\narp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.Interconn" - + "ectDiagnosticsARPEntry\022\032\n\ncircuit_id\030\261\372\257" - + "k \001(\tH\000\210\001\001\022\034\n\rgoogle_demarc\030\214\217\003 \001(\tH\001\210\001\001" - + "\022\\\n\013lacp_status\030\257\304\236\254\001 \001(\0132>.google.cloud" - + ".compute.v1.InterconnectDiagnosticsLinkL" - + "ACPStatusH\002\210\001\001\022U\n\006macsec\030\242\301\227\374\001 \001(\0132<.goo" - + "gle.cloud.compute.v1.InterconnectDiagnos" - + "ticsMacsecStatusH\003\210\001\001\022\"\n\022operational_sta" - + "tus\030\377\261\360_ \001(\tH\004\210\001\001\022i\n\027receiving_optical_p" - + "ower\030\337\255\330t \001(\0132@.google.cloud.compute.v1." - + "InterconnectDiagnosticsLinkOpticalPowerH" - + "\005\210\001\001\022m\n\032transmitting_optical_power\030\235\272\211\333\001" - + " \001(\0132@.google.cloud.compute.v1.Interconn" - + "ectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n\021O" - + "perationalStatus\022 \n\034UNDEFINED_OPERATIONA" - + "L_STATUS\020\000\022$\n\034LINK_OPERATIONAL_STATUS_DO" - + "WN\020\375\344\246\206\001\022\"\n\032LINK_OPERATIONAL_STATUS_UP\020\266" - + "\266\355\221\001B\r\n\013_circuit_idB\020\n\016_google_demarcB\016\n" - + "\014_lacp_statusB\t\n\007_macsecB\025\n\023_operational" - + "_statusB\032\n\030_receiving_optical_powerB\035\n\033_" - + "transmitting_optical_power\"n\n#Interconne" - + "ctDiagnosticsMacsecStatus\022\022\n\003ckn\030\206\202\006 \001(\t" - + "H\000\210\001\001\022\033\n\013operational\030\322\307\354= \001(\010H\001\210\001\001B\006\n\004_c" - + "knB\016\n\014_operational\"\251\002\n\020InterconnectList\022" - + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227\n\005items\030\300\317\367/ \003(\0132%.go" - + "ogle.cloud.compute.v1.Interconnect\022\024\n\004ki" + + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreacha" + + "bles\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" + + "le.cloud.compute.v1.WarningH\004\210\001\001\032_\n\nItem" + + "sEntry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goo" + + "gle.cloud.compute.v1.InstanceGroupsScope" + + "dList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_" + + "tokenB\014\n\n_self_linkB\n\n\010_warning\"\253\002\n\021Inst" + + "anceGroupList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0228\n\005items" + + "\030\300\317\367/ \003(\0132&.google.cloud.compute.v1.Inst" + + "anceGroup\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_" + + "page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222" + + "\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .googl" + + "e.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007" + + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" + + "kB\n\n\010_warning\"\205\022\n\024InstanceGroupManager\022e" + + "\n\024all_instances_config\030\201\256\3305 \001(\0132?.google" + + ".cloud.compute.v1.InstanceGroupManagerAl" + + "lInstancesConfigH\000\210\001\001\022a\n\025auto_healing_po" + + "licies\030\205\347\350\331\001 \003(\0132>.google.cloud.compute." + + "v1.InstanceGroupManagerAutoHealingPolicy" + + "\022#\n\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n\017cur" + + "rent_actions\030\267\310\234N \001(\0132;.google.cloud.com" + + "pute.v1.InstanceGroupManagerActionsSumma" + + "ryH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" + + "\023distribution_policy\030\315\356\362\376\001 \001(\0132+.google." + + "cloud.compute.v1.DistributionPolicyH\005\210\001\001" + + "\022\033\n\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n\002id\030\233\032 \001" + + "(\004H\007\210\001\001\022s\n\033instance_flexibility_policy\030\202" + + "\216\354\014 \001(\0132F.google.cloud.compute.v1.Instan" + + "ceGroupManagerInstanceFlexibilityPolicyH" + + "\010\210\001\001\022\036\n\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n\031" + + "instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.go" + + "ogle.cloud.compute.v1.InstanceGroupManag" + + "erInstanceLifecyclePolicyH\n\210\001\001\022\"\n\021instan" + + "ce_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n\004kind\030\224\367\310\001 " + + "\001(\tH\014\210\001\001\022/\n\036list_managed_instances_resul" + + "ts\030\264\244\225\215\001 \001(\tH\r\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022" + + ";\n\013named_ports\030\214\307\362\313\001 \003(\0132\".google.cloud." + + "compute.v1.NamedPort\022\026\n\006region\030\364\315\240B \001(\tH" + + "\017\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\020\210\001\001\022\036\n\r" + + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\021\210\001\001\022\032\n\tself_lin" + + "k\030\215\222\305\331\001 \001(\tH\022\210\001\001\022[\n\016standby_policy\030\204\206\216\356\001" + + " \001(\0132:.google.cloud.compute.v1.InstanceG" + + "roupManagerStandbyPolicyH\023\210\001\001\022H\n\017statefu" + + "l_policy\030\205\303\325\026 \001(\0132\'.google.cloud.compute" + + ".v1.StatefulPolicyH\024\210\001\001\022K\n\006status\030\362\237\267V \001" + + "(\01323.google.cloud.compute.v1.InstanceGro" + + "upManagerStatusH\025\210\001\001\022\030\n\014target_pools\030\251\237\240" + + "\240\001 \003(\t\022\033\n\013target_size\030\357\363\375\035 \001(\005H\026\210\001\001\022#\n\023t" + + "arget_stopped_size\030\241\326\223\001 \001(\005H\027\210\001\001\022&\n\025targ" + + "et_suspended_size\030\323\210\364\222\001 \001(\005H\030\210\001\001\022X\n\rupda" + + "te_policy\030\350\312\352S \001(\01329.google.cloud.comput" + + "e.v1.InstanceGroupManagerUpdatePolicyH\031\210" + + "\001\001\022I\n\010versions\030\233\375\271M \003(\01324.google.cloud.c" + + "ompute.v1.InstanceGroupManagerVersion\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\032\210\001\001\"n\n\033ListManagedInstan" + + "cesResults\022,\n(UNDEFINED_LIST_MANAGED_INS" + + "TANCES_RESULTS\020\000\022\017\n\010PAGELESS\020\250\251\254\017\022\020\n\tPAG" + + "INATED\020\255\205\225\023B\027\n\025_all_instances_configB\025\n\023" + + "_base_instance_nameB\025\n\023_creation_timesta" + + "mpB\022\n\020_current_actionsB\016\n\014_descriptionB\026" + + "\n\024_distribution_policyB\016\n\014_fingerprintB\005" + + "\n\003_idB\036\n\034_instance_flexibility_policyB\021\n" + + "\017_instance_groupB\034\n\032_instance_lifecycle_" + + "policyB\024\n\022_instance_templateB\007\n\005_kindB!\n" + + "\037_list_managed_instances_resultsB\007\n\005_nam" + + "eB\t\n\007_regionB\020\n\016_satisfies_pziB\020\n\016_satis" + + "fies_pzsB\014\n\n_self_linkB\021\n\017_standby_polic" + + "yB\022\n\020_stateful_policyB\t\n\007_statusB\016\n\014_tar" + + "get_sizeB\026\n\024_target_stopped_sizeB\030\n\026_tar" + + "get_suspended_sizeB\020\n\016_update_policyB\007\n\005" + + "_zone\"\323\004\n\"InstanceGroupManagerActionsSum" + + "mary\022\033\n\nabandoning\030\315\362\350\321\001 \001(\005H\000\210\001\001\022\030\n\010cre" + + "ating\030\271\335\205d \001(\005H\001\210\001\001\022)\n\030creating_without_" + + "retries\030\311\366\261\260\001 \001(\005H\002\210\001\001\022\031\n\010deleting\030\250\307\357\206\001" + + " \001(\005H\003\210\001\001\022\024\n\004none\030\270\336\316\001 \001(\005H\004\210\001\001\022\033\n\nrecre" + + "ating\030\354\263\326\241\001 \001(\005H\005\210\001\001\022\032\n\nrefreshing\030\247\246\305f " + + "\001(\005H\006\210\001\001\022\033\n\nrestarting\030\363\226\304\261\001 \001(\005H\007\210\001\001\022\030\n" + + "\010resuming\030\252\233\362_ \001(\005H\010\210\001\001\022\030\n\010starting\030\300\300\363s" + + " \001(\005H\t\210\001\001\022\030\n\010stopping\030\364\360\2122 \001(\005H\n\210\001\001\022\032\n\ns" + + "uspending\030\246\374\360\r \001(\005H\013\210\001\001\022\032\n\tverifying\030\311\241\254" + + "\327\001 \001(\005H\014\210\001\001B\r\n\013_abandoningB\013\n\t_creatingB" + + "\033\n\031_creating_without_retriesB\013\n\t_deletin" + + "gB\007\n\005_noneB\r\n\013_recreatingB\r\n\013_refreshing" + + "B\r\n\013_restartingB\013\n\t_resumingB\013\n\t_startin" + + "gB\013\n\t_stoppingB\r\n\013_suspendingB\014\n\n_verify" + + "ing\"\335\003\n\"InstanceGroupManagerAggregatedLi" + + "st\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022X\n\005items\030\300\317\367/ \003(\0132F" + + ".google.cloud.compute.v1.InstanceGroupMa" + + "nagerAggregatedList.ItemsEntry\022\024\n\004kind\030\224" + + "\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\t" + + "H\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unr" + + "eachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 " + + ".google.cloud.compute.v1.WarningH\004\210\001\001\032f\n" + + "\nItemsEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\0132" + + "8.google.cloud.compute.v1.InstanceGroupM" + + "anagersScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_warn" + + "ing\"\205\001\n&InstanceGroupManagerAllInstances" + + "Config\022L\n\nproperties\030\263\232\266F \001(\01320.google.c" + + "loud.compute.v1.InstancePropertiesPatchH" + + "\000\210\001\001B\r\n\013_properties\"\220\001\n%InstanceGroupMan" + + "agerAutoHealingPolicy\022\035\n\014health_check\030\345\252" + + "\244\223\001 \001(\tH\000\210\001\001\022!\n\021initial_delay_sec\030\332\360\300} \001" + + "(\005H\001\210\001\001B\017\n\r_health_checkB\024\n\022_initial_del" + + "ay_sec\"\304\002\n-InstanceGroupManagerInstanceF" + + "lexibilityPolicy\022~\n\023instance_selections\030" + + "\321\204\371\n \003(\0132^.google.cloud.compute.v1.Insta" + + "nceGroupManagerInstanceFlexibilityPolicy" + + ".InstanceSelectionsEntry\032\222\001\n\027InstanceSel" + + "ectionsEntry\022\013\n\003key\030\001 \001(\t\022f\n\005value\030\002 \001(\013" + + "2W.google.cloud.compute.v1.InstanceGroup" + + "ManagerInstanceFlexibilityPolicyInstance" + + "Selection:\0028\001\"y\n>InstanceGroupManagerIns" + + "tanceFlexibilityPolicyInstanceSelection\022" + + "\030\n\rmachine_types\030\201\335\201& \003(\t\022\024\n\004rank\030\254\230\325\001 \001" + + "(\005H\000\210\001\001B\007\n\005_rank\"\361\002\n+InstanceGroupManage" + + "rInstanceLifecyclePolicy\022)\n\031default_acti" + + "on_on_failure\030\325\304\242\035 \001(\tH\000\210\001\001\022\'\n\026force_upd" + + "ate_on_repair\030\313\371\362\251\001 \001(\tH\001\210\001\001\"d\n\026DefaultA" + + "ctionOnFailure\022\'\n#UNDEFINED_DEFAULT_ACTI" + + "ON_ON_FAILURE\020\000\022\022\n\nDO_NOTHING\020\371\317\231\327\001\022\r\n\006R" + + "EPAIR\020\215\247\374~\"O\n\023ForceUpdateOnRepair\022$\n UND" + + "EFINED_FORCE_UPDATE_ON_REPAIR\020\000\022\007\n\002NO\020\301\023" + + "\022\t\n\003YES\020\307\255\005B\034\n\032_default_action_on_failur" + + "eB\031\n\027_force_update_on_repair\"\271\002\n\030Instanc" + + "eGroupManagerList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022?\n\005i" + + "tems\030\300\317\367/ \003(\0132-.google.cloud.compute.v1." + + "InstanceGroupManager\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" + + "\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" + + "\n\n_self_linkB\n\n\010_warning\"\215\006\n!InstanceGro" + + "upManagerResizeRequest\022\"\n\022creation_times" + + "tamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 " + + "\001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004kind\030\224\367\310\001 " + + "\001(\tH\003\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022I\n\026reques" + + "ted_run_duration\030\371\213\331n \001(\0132!.google.cloud" + + ".compute.v1.DurationH\005\210\001\001\022\032\n\tresize_by\030\302" + + "\317\300\376\001 \001(\005H\006\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001" + + "\001\022!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\025\n\005" + + "state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n\006status\030\362\237\267V \001(\0132@" + + ".google.cloud.compute.v1.InstanceGroupMa" + + "nagerResizeRequestStatusH\n\210\001\001\022\024\n\004zone\030\254\307" + + "\344\001 \001(\tH\013\210\001\001\"\217\001\n\005State\022\023\n\017UNDEFINED_STATE" + + "\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\020\n\tCANCELLED\020\261\362\200\024\022\020\n" + + "\010CREATING\020\271\275\235\331\001\022\016\n\006FAILED\020\275\220\246\331\001\022\031\n\021STATE" + + "_UNSPECIFIED\020\311\320\274\340\001\022\021\n\tSUCCEEDED\020\301\244\333\363\001B\025\n" + + "\023_creation_timestampB\016\n\014_descriptionB\005\n\003" + + "_idB\007\n\005_kindB\007\n\005_nameB\031\n\027_requested_run_" + + "durationB\014\n\n_resize_byB\014\n\n_self_linkB\024\n\022" + + "_self_link_with_idB\010\n\006_stateB\t\n\007_statusB" + + "\007\n\005_zone\"\347\001\n\'InstanceGroupManagerResizeR" + + "equestStatus\0225\n\005error\030\210\244\223. \001(\0132\036.google." + + "cloud.compute.v1.ErrorH\000\210\001\001\022j\n\014last_atte" + + "mpt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1." + + "InstanceGroupManagerResizeRequestStatusL" + + "astAttemptH\001\210\001\001B\010\n\006_errorB\017\n\r_last_attem" + + "pt\"u\n2InstanceGroupManagerResizeRequestS" + + "tatusLastAttempt\0225\n\005error\030\210\244\223. \001(\0132\036.goo" + + "gle.cloud.compute.v1.ErrorH\000\210\001\001B\010\n\006_erro" + + "r\"\334\002\n.InstanceGroupManagerResizeRequests" + + "ListResponse\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022L\n\005items\030" + + "\300\317\367/ \003(\0132:.google.cloud.compute.v1.Insta" + + "nceGroupManagerResizeRequest\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" + + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" + + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\274\001\n!Ins" + + "tanceGroupManagerStandbyPolicy\022!\n\021initia" + + "l_delay_sec\030\332\360\300} \001(\005H\000\210\001\001\022\024\n\004mode\030\243\363\314\001 \001" + + "(\tH\001\210\001\001\"?\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\r\n\006M" + + "ANUAL\020\306\267\3678\022\024\n\016SCALE_OUT_POOL\020\202\344&B\024\n\022_ini" + + "tial_delay_secB\007\n\005_mode\"\321\003\n\032InstanceGrou" + + "pManagerStatus\022k\n\024all_instances_config\030\201" + + "\256\3305 \001(\0132E.google.cloud.compute.v1.Instan" + + "ceGroupManagerStatusAllInstancesConfigH\000" + + "\210\001\001\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022\031\n\tis_s" + + "table\030\360\357\3303 \001(\010H\002\210\001\001\022U\n\010stateful\030\314\346\310t \001(\013" + + "2;.google.cloud.compute.v1.InstanceGroup" + + "ManagerStatusStatefulH\003\210\001\001\022a\n\016version_ta" + + "rget\030\330\335\376\211\001 \001(\0132@.google.cloud.compute.v1" + + ".InstanceGroupManagerStatusVersionTarget" + + "H\004\210\001\001B\027\n\025_all_instances_configB\r\n\013_autos" + + "calerB\014\n\n_is_stableB\013\n\t_statefulB\021\n\017_ver" + + "sion_target\"\216\001\n,InstanceGroupManagerStat" + + "usAllInstancesConfig\022 \n\020current_revision" + + "\030\341\207\245\022 \001(\tH\000\210\001\001\022\031\n\teffective\030\247\323\330C \001(\010H\001\210\001" + + "\001B\023\n\021_current_revisionB\014\n\n_effective\"\360\001\n" + + "\"InstanceGroupManagerStatusStateful\022#\n\023h" + + "as_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n\024per_" + + "instance_configs\030\251\325\370\372\001 \001(\0132M.google.clou" + + "d.compute.v1.InstanceGroupManagerStatusS" + + "tatefulPerInstanceConfigsH\001\210\001\001B\026\n\024_has_s" + + "tateful_configB\027\n\025_per_instance_configs\"" + + "h\n4InstanceGroupManagerStatusStatefulPer" + + "InstanceConfigs\022\036\n\rall_effective\030\211\221\247\366\001 \001" + + "(\010H\000\210\001\001B\020\n\016_all_effective\"U\n\'InstanceGro" + + "upManagerStatusVersionTarget\022\033\n\nis_reach" + + "ed\030\275\376\310\316\001 \001(\010H\000\210\001\001B\r\n\013_is_reached\"\334\006\n Ins" + + "tanceGroupManagerUpdatePolicy\022-\n\034instanc" + + "e_redistribution_type\030\230\337\304\213\001 \001(\tH\000\210\001\001\022C\n\t" + + "max_surge\030\223\311\243\220\001 \001(\0132\'.google.cloud.compu" + + "te.v1.FixedOrPercentH\001\210\001\001\022I\n\017max_unavail" + + "able\030\365\313\213\301\001 \001(\0132\'.google.cloud.compute.v1" + + ".FixedOrPercentH\002\210\001\001\022\037\n\016minimal_action\030\224" + + "\215\202\201\001 \001(\tH\003\210\001\001\022.\n\036most_disruptive_allowed" + + "_action\030\215\316\302\037 \001(\tH\004\210\001\001\022#\n\022replacement_met" + + "hod\030\256\317\237\361\001 \001(\tH\005\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\006\210\001\001" + + "\"H\n\032InstanceRedistributionType\022*\n&UNDEFI" + + "NED_INSTANCE_REDISTRIBUTION_TYPE\020\000\"-\n\rMi" + + "nimalAction\022\034\n\030UNDEFINED_MINIMAL_ACTION\020" + + "\000\"K\n\033MostDisruptiveAllowedAction\022,\n(UNDE" + + "FINED_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000\"[" + + "\n\021ReplacementMethod\022 \n\034UNDEFINED_REPLACE" + + "MENT_METHOD\020\000\022\020\n\010RECREATE\020\357\331\233\371\001\022\022\n\nSUBST" + + "ITUTE\020\232\241\372\205\001\"1\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022" + + "\025\n\rOPPORTUNISTIC\020\351\267\350\314\001B\037\n\035_instance_redi" + + "stribution_typeB\014\n\n_max_surgeB\022\n\020_max_un" + + "availableB\021\n\017_minimal_actionB!\n\037_most_di" + + "sruptive_allowed_actionB\025\n\023_replacement_" + + "methodB\007\n\005_type\"\314\001\n\033InstanceGroupManager" + + "Version\022\"\n\021instance_template\030\344\201\273\223\001 \001(\tH\000" + + "\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022D\n\013target_size" + + "\030\357\363\375\035 \001(\0132\'.google.cloud.compute.v1.Fixe" + + "dOrPercentH\002\210\001\001B\024\n\022_instance_templateB\007\n" + + "\005_nameB\016\n\014_target_size\"D\n,InstanceGroupM" + + "anagersAbandonInstancesRequest\022\024\n\tinstan" + + "ces\030\376\374\357\r \003(\t\"\365\002\n(InstanceGroupManagersAp" + + "plyUpdatesRequest\022\036\n\rall_instances\030\340\272\276\300\001" + + " \001(\010H\000\210\001\001\022\024\n\tinstances\030\376\374\357\r \003(\t\022\037\n\016minim" + + "al_action\030\224\215\202\201\001 \001(\tH\001\210\001\001\022.\n\036most_disrupt" + + "ive_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n\rMini" + + "malAction\022\034\n\030UNDEFINED_MINIMAL_ACTION\020\000\"" + + "K\n\033MostDisruptiveAllowedAction\022,\n(UNDEFI" + + "NED_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000B\020\n\016" + + "_all_instancesB\021\n\017_minimal_actionB!\n\037_mo" + + "st_disruptive_allowed_action\"o\n+Instance" + + "GroupManagersCreateInstancesRequest\022@\n\ti" + + "nstances\030\376\374\357\r \003(\0132*.google.cloud.compute" + + ".v1.PerInstanceConfig\"\236\001\n+InstanceGroupM" + + "anagersDeleteInstancesRequest\022\024\n\tinstanc" + + "es\030\376\374\357\r \003(\t\0222\n\"skip_instances_on_validat" + + "ion_error\030\241\366\257\023 \001(\010H\000\210\001\001B%\n#_skip_instanc" + + "es_on_validation_error\"D\n0InstanceGroupM" + + "anagersDeletePerInstanceConfigsReq\022\020\n\005na" + + "mes\030\310\256\3571 \003(\t\"\244\001\n\'InstanceGroupManagersLi" + + "stErrorsResponse\022D\n\005items\030\300\317\367/ \003(\01322.goo" + + "gle.cloud.compute.v1.InstanceManagedByIg" + + "mError\022\037\n\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B" + + "\022\n\020_next_page_token\"\261\001\n1InstanceGroupMan" + + "agersListManagedInstancesResponse\022G\n\021man" + + "aged_instances\030\336\233\251\240\001 \003(\0132(.google.cloud." + + "compute.v1.ManagedInstance\022\037\n\017next_page_" + + "token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page_token\"" + + "\353\001\n/InstanceGroupManagersListPerInstance" + + "ConfigsResp\022<\n\005items\030\300\317\367/ \003(\0132*.google.c" + + "loud.compute.v1.PerInstanceConfig\022\037\n\017nex" + + "t_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\001\210\001\001B\022\n\020_next_page_tokenB\n\n\010_warning\"\177\n" + + "/InstanceGroupManagersPatchPerInstanceCo" + + "nfigsReq\022L\n\024per_instance_configs\030\251\325\370\372\001 \003" + + "(\0132*.google.cloud.compute.v1.PerInstance" + + "Config\"E\n-InstanceGroupManagersRecreateI" + + "nstancesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"C\n" + + "+InstanceGroupManagersResumeInstancesReq" + + "uest\022\024\n\tinstances\030\376\374\357\r \003(\t\"\273\001\n\037InstanceG" + + "roupManagersScopedList\022Q\n\027instance_group" + + "_managers\030\220\372\211f \003(\0132-.google.cloud.comput" + + "e.v1.InstanceGroupManager\0229\n\007warning\030\234\337\226" + + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" + + "\000\210\001\001B\n\n\010_warning\"k\n/InstanceGroupManager" + + "sSetInstanceTemplateRequest\022\"\n\021instance_" + + "template\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_instance_tem" + + "plate\"s\n*InstanceGroupManagersSetTargetP" + + "oolsRequest\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001" + + "\022\030\n\014target_pools\030\251\237\240\240\001 \003(\tB\016\n\014_fingerpri" + + "nt\"B\n*InstanceGroupManagersStartInstance" + + "sRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"l\n)Instan" + + "ceGroupManagersStopInstancesRequest\022\032\n\nf" + + "orce_stop\030\326\241\241@ \001(\010H\000\210\001\001\022\024\n\tinstances\030\376\374\357" + + "\r \003(\tB\r\n\013_force_stop\"u\n,InstanceGroupMan" + + "agersSuspendInstancesRequest\022\035\n\rforce_su" + + "spend\030\350\355\226\r \001(\010H\000\210\001\001\022\024\n\tinstances\030\376\374\357\r \003(" + + "\tB\020\n\016_force_suspend\"\200\001\n0InstanceGroupMan" + + "agersUpdatePerInstanceConfigsReq\022L\n\024per_" + + "instance_configs\030\251\325\370\372\001 \003(\0132*.google.clou", + "d.compute.v1.PerInstanceConfig\"e\n!Instan" + + "ceGroupsAddInstancesRequest\022@\n\tinstances" + + "\030\376\374\357\r \003(\0132*.google.cloud.compute.v1.Inst" + + "anceReference\"\276\002\n\033InstanceGroupsListInst" + + "ances\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(" + + "\0132/.google.cloud.compute.v1.InstanceWith" + + "NamedPorts\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" + + "le.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB" + + "\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_li" + + "nkB\n\n\010_warning\"\241\001\n\"InstanceGroupsListIns" + + "tancesRequest\022\036\n\016instance_state\030\347\360\374+ \001(\t" + + "H\000\210\001\001\"H\n\rInstanceState\022\034\n\030UNDEFINED_INST" + + "ANCE_STATE\020\000\022\t\n\003ALL\020\201\373\003\022\016\n\007RUNNING\020\237\303\3529B" + + "\021\n\017_instance_state\"h\n$InstanceGroupsRemo" + + "veInstancesRequest\022@\n\tinstances\030\376\374\357\r \003(\013" + + "2*.google.cloud.compute.v1.InstanceRefer" + + "ence\"\246\001\n\030InstanceGroupsScopedList\022C\n\017ins" + + "tance_groups\030\276\301\337\256\001 \003(\0132&.google.cloud.co" + + "mpute.v1.InstanceGroup\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" + + "\001B\n\n\010_warning\"\216\001\n\"InstanceGroupsSetNamed" + + "PortsRequest\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001" + + "\001\022;\n\013named_ports\030\214\307\362\313\001 \003(\0132\".google.clou" + + "d.compute.v1.NamedPortB\016\n\014_fingerprint\"\241" + + "\002\n\014InstanceList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005ite" + + "ms\030\300\317\367/ \003(\0132!.google.cloud.compute.v1.In" + + "stance\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" + + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" + + " \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_" + + "kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n" + + "\n\010_warning\"\253\002\n\025InstanceListReferrers\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\0224\n\005items\030\300\317\367/ \003(\0132\".googl" + + "e.cloud.compute.v1.Reference\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" + + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" + + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\274\002\n\031Ins" + + "tanceManagedByIgmError\022]\n\005error\030\210\244\223. \001(\013" + + "2F.google.cloud.compute.v1.InstanceManag" + + "edByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.goo" + + "gle.cloud.compute.v1.InstanceManagedByIg" + + "mErrorInstanceActionDetailsH\001\210\001\001\022\031\n\ttime" + + "stamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n\006_errorB\032\n\030_instan" + + "ce_action_detailsB\014\n\n_timestamp\"\360\003\n.Inst" + + "anceManagedByIgmErrorInstanceActionDetai" + + "ls\022\026\n\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n\010instance\030\225" + + "\251\332\010 \001(\tH\001\210\001\001\022I\n\007version\030\330\271\324\247\001 \001(\0132/.goog" + + "le.cloud.compute.v1.ManagedInstanceVersi" + + "onH\002\210\001\001\"\234\002\n\006Action\022\024\n\020UNDEFINED_ACTION\020\000" + + "\022\022\n\nABANDONING\020\315\312\220\271\001\022\020\n\010CREATING\020\271\275\235\331\001\022 " + + "\n\030CREATING_WITHOUT_RETRIES\020\211\306\276\314\001\022\020\n\010DELE" + + "TING\020\250\247\207\374\001\022\013\n\004NONE\020\270\316\222\001\022\022\n\nRECREATING\020\354\213" + + "\376\210\001\022\021\n\nREFRESHING\020\247\376\354M\022\022\n\nRESTARTING\020\363\356\353" + + "\230\001\022\020\n\010RESUMING\020\252\373\211\325\001\022\020\n\010STARTING\020\300\240\213\351\001\022\020" + + "\n\010STOPPING\020\364\320\242\247\001\022\022\n\nSUSPENDING\020\246\324\230\365\001\022\020\n\t" + + "VERIFYING\020\251\301\214\010B\t\n\007_actionB\013\n\t_instanceB\n" + + "\n\010_version\"t\n-InstanceManagedByIgmErrorM" + + "anagedInstanceError\022\024\n\004code\030\355\333\272\001 \001(\tH\000\210\001" + + "\001\022\030\n\007message\030\207\200\254\307\001 \001(\tH\001\210\001\001B\007\n\005_codeB\n\n\010" + + "_message\"\202\001\n\023InstanceMoveRequest\022 \n\020dest" + + "ination_zone\030\275\342\357> \001(\tH\000\210\001\001\022 \n\017target_ins" + + "tance\030\203\217\226\212\001 \001(\tH\001\210\001\001B\023\n\021_destination_zon" + + "eB\022\n\020_target_instance\"\261\001\n\016InstanceParams" + + "\022c\n\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.go" + + "ogle.cloud.compute.v1.InstanceParams.Res" + + "ourceManagerTagsEntry\032:\n\030ResourceManager" + + "TagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\330\020\n\022InstanceProperties\022\\\n\031advanced_mac" + + "hine_features\030\262\347\252\303\001 \001(\01320.google.cloud.c" + + "ompute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037" + + "\n\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n\034confi" + + "dential_instance_config\030\365\222\372\351\001 \001(\01323.goog" + + "le.cloud.compute.v1.ConfidentialInstance" + + "ConfigH\002\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\003\210\001" + + "\001\0227\n\005disks\030\366\314\312- \003(\0132%.google.cloud.compu" + + "te.v1.AttachedDisk\022J\n\022guest_accelerators" + + "\030\357\314\207\335\001 \003(\0132*.google.cloud.compute.v1.Acc" + + "eleratorConfig\022*\n\032key_revocation_action_" + + "type\030\342\334\300p \001(\tH\004\210\001\001\022K\n\006labels\030\377\277\301\356\001 \003(\01327" + + ".google.cloud.compute.v1.InstancePropert" + + "ies.LabelsEntry\022\034\n\014machine_type\030\262\260\312l \001(\t" + + "H\005\210\001\001\022;\n\010metadata\030\257\366\265) \001(\0132!.google.clou" + + "d.compute.v1.MetadataH\006\210\001\001\022 \n\020min_cpu_pl" + + "atform\030\367\233\352s \001(\tH\007\210\001\001\022H\n\022network_interfac" + + "es\030\213\332\222\031 \003(\0132).google.cloud.compute.v1.Ne" + + "tworkInterface\022^\n\032network_performance_co" + + "nfig\030\342\227\370\275\001 \001(\01321.google.cloud.compute.v1" + + ".NetworkPerformanceConfigH\010\210\001\001\022*\n\032privat" + + "e_ipv6_google_access\030\216\314\202\027 \001(\tH\t\210\001\001\022R\n\024re" + + "servation_affinity\030\273\270\242K \001(\0132,.google.clo" + + "ud.compute.v1.ReservationAffinityH\n\210\001\001\022g" + + "\n\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.goog" + + "le.cloud.compute.v1.InstanceProperties.R" + + "esourceManagerTagsEntry\022\034\n\021resource_poli" + + "cies\030\341\234\314\n \003(\t\022@\n\nscheduling\030\224\313\261\270\001 \001(\0132#." + + "google.cloud.compute.v1.SchedulingH\013\210\001\001\022" + + "E\n\020service_accounts\030\260\304\253\204\001 \003(\0132\'.google.c" + + "loud.compute.v1.ServiceAccount\022Y\n\030shield" + + "ed_instance_config\030\265\213\221\006 \001(\0132/.google.clo" + + "ud.compute.v1.ShieldedInstanceConfigH\014\210\001" + + "\001\0223\n\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.comput" + + "e.v1.TagsH\r\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032:\n\030ResourceManager" + + "TagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\215\001\n\027KeyRevocationActionType\022(\n$UNDEFIN" + + "ED_KEY_REVOCATION_ACTION_TYPE\020\000\022.\n&KEY_R" + + "EVOCATION_ACTION_TYPE_UNSPECIFIED\020\332\221\336\336\001\022" + + "\013\n\004NONE\020\270\316\222\001\022\013\n\004STOP\020\202\200\234\001\"\300\001\n\027PrivateIpv" + + "6GoogleAccess\022(\n$UNDEFINED_PRIVATE_IPV6_" + + "GOOGLE_ACCESS\020\000\022-\n%ENABLE_BIDIRECTIONAL_" + + "ACCESS_TO_GOOGLE\020\272\312\211\314\001\022+\n#ENABLE_OUTBOUN" + + "D_VM_ACCESS_TO_GOOGLE\020\327\372\266\211\001\022\037\n\027INHERIT_F" + + "ROM_SUBNETWORK\020\277\250\354\374\001B\034\n\032_advanced_machin" + + "e_featuresB\021\n\017_can_ip_forwardB\037\n\035_confid" + + "ential_instance_configB\016\n\014_descriptionB\035" + + "\n\033_key_revocation_action_typeB\017\n\r_machin" + + "e_typeB\013\n\t_metadataB\023\n\021_min_cpu_platform" + + "B\035\n\033_network_performance_configB\035\n\033_priv" + + "ate_ipv6_google_accessB\027\n\025_reservation_a" + + "ffinityB\r\n\013_schedulingB\033\n\031_shielded_inst" + + "ance_configB\007\n\005_tags\"\240\002\n\027InstancePropert" + + "iesPatch\022P\n\006labels\030\377\277\301\356\001 \003(\0132<.google.cl" + + "oud.compute.v1.InstancePropertiesPatch.L" + + "abelsEntry\022S\n\010metadata\030\257\366\265) \003(\0132>.google" + + ".cloud.compute.v1.InstancePropertiesPatc" + + "h.MetadataEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\021Insta" + + "nceReference\022\030\n\010instance\030\225\251\332\010 \001(\tH\000\210\001\001B\013" + + "\n\t_instance\"\327\001\n\020InstanceSettings\022\033\n\013fing" + + "erprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" + + "\210\001\001\022K\n\010metadata\030\257\366\265) \001(\01321.google.cloud." + + "compute.v1.InstanceSettingsMetadataH\002\210\001\001" + + "\022\024\n\004zone\030\254\307\344\001 \001(\tH\003\210\001\001B\016\n\014_fingerprintB\007" + + "\n\005_kindB\013\n\t_metadataB\007\n\005_zone\"\267\001\n\030Instan" + + "ceSettingsMetadata\022N\n\005items\030\300\317\367/ \003(\0132<.g" + + "oogle.cloud.compute.v1.InstanceSettingsM" + + "etadata.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001" + + "\032,\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001B\007\n\005_kind\"\237\004\n\020InstanceTemplate\022\"\n\022" + + "creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013desc" + + "ription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001" + + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH" + + "\004\210\001\001\022G\n\nproperties\030\263\232\266F \001(\0132+.google.clo" + + "ud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" + + " \001(\tH\007\210\001\001\022 \n\017source_instance\030\271\230\375\274\001 \001(\tH\010" + + "\210\001\001\022U\n\026source_instance_params\030\314\320\304@ \001(\0132-" + + ".google.cloud.compute.v1.SourceInstanceP" + + "aramsH\t\210\001\001B\025\n\023_creation_timestampB\016\n\014_de" + + "scriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\r\n\013_p" + + "ropertiesB\t\n\007_regionB\014\n\n_self_linkB\022\n\020_s" + + "ource_instanceB\031\n\027_source_instance_param" + + "s\"\270\003\n\036InstanceTemplateAggregatedList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\022T\n\005items\030\300\317\367/ \003(\0132B.googl" + + "e.cloud.compute.v1.InstanceTemplateAggre" + + "gatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" + + "\001\001\032b\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002" + + " \001(\01324.google.cloud.compute.v1.InstanceT" + + "emplatesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022" + + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" + + "ning\"\261\002\n\024InstanceTemplateList\022\020\n\002id\030\233\032 \001" + + "(\tH\000\210\001\001\022;\n\005items\030\300\317\367/ \003(\0132).google.cloud" + + ".compute.v1.InstanceTemplate\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" + + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" + + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\257\001\n\033Ins" + + "tanceTemplatesScopedList\022I\n\022instance_tem" + + "plates\030\217\270\245\333\001 \003(\0132).google.cloud.compute." + + "v1.InstanceTemplate\0229\n\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n\010_warning\"\376\002\n\026InstanceWithNamedPorts\022\030\n" + + "\010instance\030\225\251\332\010 \001(\tH\000\210\001\001\022;\n\013named_ports\030\214" + + "\307\362\313\001 \003(\0132\".google.cloud.compute.v1.Named" + + "Port\022\026\n\006status\030\362\237\267V \001(\tH\001\210\001\001\"\334\001\n\006Status\022" + + "\024\n\020UNDEFINED_STATUS\020\000\022\026\n\016DEPROVISIONING\020" + + "\356\223\304\314\001\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\021\n\tREPAIRING" + + "\020\225\202\225\305\001\022\016\n\007RUNNING\020\237\303\3529\022\017\n\007STAGING\020\233\310\306\315\001\022" + + "\017\n\007STOPPED\020\255\273\354\323\001\022\020\n\010STOPPING\020\364\320\242\247\001\022\020\n\tSU" + + "SPENDED\020\273\273\266\030\022\022\n\nSUSPENDING\020\246\324\230\365\001\022\021\n\nTERM" + + "INATED\020\243\364\233wB\013\n\t_instanceB\t\n\007_status\"C\n#I" + + "nstancesAddResourcePoliciesRequest\022\034\n\021re" + + "source_policies\030\341\234\314\n \003(\t\"\212\002\n$InstancesBu" + + "lkInsertOperationMetadata\022t\n\023per_locatio" + + "n_status\030\232\351\204P \003(\0132T.google.cloud.compute" + + ".v1.InstancesBulkInsertOperationMetadata" + + ".PerLocationStatusEntry\032l\n\026PerLocationSt" + + "atusEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322." + + "google.cloud.compute.v1.BulkInsertOperat" + + "ionStatus:\0028\001\"\330\001\n&InstancesGetEffectiveF" + + "irewallsResponse\022t\n\020firewall_policys\030\302\312\374" + + "\303\001 \003(\0132V.google.cloud.compute.v1.Instanc" + + "esGetEffectiveFirewallsResponseEffective" + + "FirewallPolicy\0228\n\tfirewalls\030\363\306\350\201\001 \003(\0132!." + + "google.cloud.compute.v1.Firewall\"\333\003\n=Ins" + + "tancesGetEffectiveFirewallsResponseEffec" + + "tiveFirewallPolicy\022\034\n\014display_name\030\350\207\221\002 " + + "\001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\031\n\010priori" + + "ty\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n\005rules\030\367\221\3653 \003(\0132+.go" + + "ogle.cloud.compute.v1.FirewallPolicyRule" + + "\022\033\n\nshort_name\030\356\270\320\352\001 \001(\tH\003\210\001\001\022\024\n\004type\030\272\236" + + "\332\001 \001(\tH\004\210\001\001\"\231\001\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000" + + "\022\020\n\tHIERARCHY\020\225\304\252!\022\017\n\007NETWORK\020\216\314\263\305\001\022\027\n\020N" + + "ETWORK_REGIONAL\020\260\342\375Z\022\024\n\rSYSTEM_GLOBAL\020\263\227" + + "\324\034\022\026\n\017SYSTEM_REGIONAL\020\257\214\222M\022\023\n\013UNSPECIFIE" + + "D\020\227\276\230\373\001B\017\n\r_display_nameB\007\n\005_nameB\013\n\t_pr" + + "iorityB\r\n\013_short_nameB\007\n\005_type\"F\n&Instan" + + "cesRemoveResourcePoliciesRequest\022\034\n\021reso" + + "urce_policies\030\341\234\314\n \003(\t\"\225\001\n\023InstancesScop" + + "edList\0227\n\tinstances\030\376\374\357\r \003(\0132!.google.cl" + + "oud.compute.v1.Instance\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\000\210" + + "\001\001B\n\n\010_warning\"\327\001\n\031InstancesSetLabelsReq" + + "uest\022!\n\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022" + + "R\n\006labels\030\377\277\301\356\001 \003(\0132>.google.cloud.compu" + + "te.v1.InstancesSetLabelsRequest.LabelsEn" + + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001B\024\n\022_label_fingerprint\"q\n#Inst" + + "ancesSetMachineResourcesRequest\022J\n\022guest" + + "_accelerators\030\357\314\207\335\001 \003(\0132*.google.cloud.c" + + "ompute.v1.AcceleratorConfig\"O\n\036Instances" + + "SetMachineTypeRequest\022\034\n\014machine_type\030\262\260" + + "\312l \001(\tH\000\210\001\001B\017\n\r_machine_type\"Z\n!Instance" + + "sSetMinCpuPlatformRequest\022 \n\020min_cpu_pla" + + "tform\030\367\233\352s \001(\tH\000\210\001\001B\023\n\021_min_cpu_platform" + + "\"h\n\027InstancesSetNameRequest\022\035\n\014current_n" + + "ame\030\221\363\253\274\001 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001" + + "B\017\n\r_current_nameB\007\n\005_name\"w\n!InstancesS" + + "etSecurityPolicyRequest\022\035\n\022network_inter" + + "faces\030\213\332\222\031 \003(\t\022\037\n\017security_policy\030\221\206\312Q \001" + + "(\tH\000\210\001\001B\022\n\020_security_policy\"W\n!Instances" + + "SetServiceAccountRequest\022\025\n\005email\030\234\227\211. \001" + + "(\tH\000\210\001\001\022\021\n\006scopes\030\237\231\222O \003(\tB\010\n\006_email\"w\n&" + + "InstancesStartWithEncryptionKeyRequest\022M" + + "\n\005disks\030\366\314\312- \003(\0132;.google.cloud.compute." + + "v1.CustomerEncryptionKeyProtectedDisk\"\301\t" + + "\n\017InstantSnapshot\022\035\n\014architecture\030\323\322\261\220\001 " + + "\001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH" + + "\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\035\n\014di" + + "sk_size_gb\030\267\232\347\226\001 \001(\003H\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004" + + "\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n\021label_finge" + + "rprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n\006labels\030\377\277\301\356\001 \003(\013" + + "24.google.cloud.compute.v1.InstantSnapsh" + + "ot.LabelsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n\006" + + "region\030\364\315\240B \001(\tH\010\210\001\001\022W\n\017resource_status\030" + + "\303\372\367v \001(\01326.google.cloud.compute.v1.Insta" + + "ntSnapshotResourceStatusH\t\210\001\001\022\036\n\rsatisfi" + + "es_pzi\030\241\335\253\345\001 \001(\010H\n\210\001\001\022\036\n\rsatisfies_pzs\030\253" + + "\335\253\345\001 \001(\010H\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001" + + "\001\022!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\r\210\001\001\022\034\n\013" + + "source_disk\030\301\356\264\327\001 \001(\tH\016\210\001\001\022\037\n\016source_dis" + + "k_id\030\331\315\311\330\001 \001(\tH\017\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\020" + + "\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\021\210\001\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\014Arch" + + "itecture\022\032\n\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030" + + "ARCHITECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020" + + "\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"u\n\006Status\022\024\n\020UNDEFI" + + "NED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETI" + + "NG\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%\022\023" + + "\n\013UNAVAILABLE\020\260\330\245\305\001B\017\n\r_architectureB\025\n\023" + + "_creation_timestampB\016\n\014_descriptionB\017\n\r_" + + "disk_size_gbB\005\n\003_idB\007\n\005_kindB\024\n\022_label_f" + + "ingerprintB\007\n\005_nameB\t\n\007_regionB\022\n\020_resou" + + "rce_statusB\020\n\016_satisfies_pziB\020\n\016_satisfi" + + "es_pzsB\014\n\n_self_linkB\024\n\022_self_link_with_" + + "idB\016\n\014_source_diskB\021\n\017_source_disk_idB\t\n" + + "\007_statusB\007\n\005_zone\"\316\003\n\035InstantSnapshotAgg" + + "regatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022S\n\005items\030\300" + + "\317\367/ \003(\0132A.google.cloud.compute.v1.Instan" + + "tSnapshotAggregatedList.ItemsEntry\022\024\n\004ki" + "nd\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206&" - + " \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute" - + ".v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_nex" - + "t_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\325" - + "\n\n\024InterconnectLocation\022\030\n\007address\030\364\267\336\334\001" - + " \001(\tH\000\210\001\001\022!\n\021availability_zone\030\220\320\307K \001(\tH" - + "\001\210\001\001\022\036\n\022available_features\030\363\271\326\354\001 \003(\t\022 \n\024" - + "available_link_types\030\252\326\371\362\001 \003(\t\022\024\n\004city\030\353" - + "\262\272\001 \001(\tH\002\210\001\001\022\031\n\tcontinent\030\264\333\320? \001(\tH\003\210\001\001\022" - + "\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022\034\n\013d" - + "escription\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\"\n\021facility_pr" - + "ovider\030\215\240\246\376\001 \001(\tH\006\210\001\001\022-\n\035facility_provid" - + "er_facility_id\030\205\276\316) \001(\tH\007\210\001\001\022\020\n\002id\030\233\032 \001(" - + "\004H\010\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\t\210\001\001\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\n\210\001\001\022&\n\025peeringdb_facility_id\030\266\272\355\377" - + "\001 \001(\tH\013\210\001\001\022Q\n\014region_infos\030\372\350\356\224\001 \003(\01327.g" - + "oogle.cloud.compute.v1.InterconnectLocat" - + "ionRegionInfo\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001" - + "\001\022\026\n\006status\030\362\237\267V \001(\tH\r\210\001\001\022\034\n\014supports_pz" - + "s\030\356\366\205( \001(\010H\016\210\001\001\"H\n\021AvailableFeatures\022 \n\034" - + "UNDEFINED_AVAILABLE_FEATURES\020\000\022\021\n\tIF_MAC" - + "SEC\020\204\374\372\274\001\"~\n\022AvailableLinkTypes\022\"\n\036UNDEF" - + "INED_AVAILABLE_LINK_TYPES\020\000\022\"\n\032LINK_TYPE" - + "_ETHERNET_100G_LR\020\347\362\201\241\001\022 \n\031LINK_TYPE_ETH" - + "ERNET_10G_LR\020\245\271\361p\"\352\001\n\tContinent\022\027\n\023UNDEF" - + "INED_CONTINENT\020\000\022\016\n\006AFRICA\020\372\234\257\227\001\022\017\n\010ASIA" - + "_PAC\020\375\366\2169\022\017\n\010C_AFRICA\020\366\223\252\"\022\022\n\nC_ASIA_PAC" - + "\020\371\217\206\336\001\022\017\n\010C_EUROPE\020\236\312\305_\022\027\n\017C_NORTH_AMERI" - + "CA\020\230\233\273\203\001\022\027\n\017C_SOUTH_AMERICA\020\340\214\260\275\001\022\016\n\006EUR" - + "OPE\020\242\323\312\324\001\022\025\n\rNORTH_AMERICA\020\224\331\320\325\001\022\024\n\rSOUT" - + "H_AMERICA\020\334\312\305\017\"A\n\006Status\022\024\n\020UNDEFINED_ST" - + "ATUS\020\000\022\021\n\tAVAILABLE\020\251\265\346\322\001\022\016\n\006CLOSED\020\354\252\243\265" - + "\001B\n\n\010_addressB\024\n\022_availability_zoneB\007\n\005_" - + "cityB\014\n\n_continentB\025\n\023_creation_timestam" - + "pB\016\n\014_descriptionB\024\n\022_facility_providerB" - + " \n\036_facility_provider_facility_idB\005\n\003_id" - + "B\007\n\005_kindB\007\n\005_nameB\030\n\026_peeringdb_facilit" - + "y_idB\014\n\n_self_linkB\t\n\007_statusB\017\n\r_suppor" - + "ts_pzs\"\271\002\n\030InterconnectLocationList\022\020\n\002i" - + "d\030\233\032 \001(\tH\000\210\001\001\022?\n\005items\030\300\317\367/ \003(\0132-.google" - + ".cloud.compute.v1.InterconnectLocation\022\024" - + "\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030" - + "\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001" - + "\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020" + + " \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + + "\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001" + + "\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 " + + "\001(\01323.google.cloud.compute.v1.InstantSna" + + "pshotsScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020" + "_next_page_tokenB\014\n\n_self_linkB\n\n\010_warni" - + "ng\"\272\002\n\036InterconnectLocationRegionInfo\022 \n" - + "\017expected_rtt_ms\030\372\203\276\311\001 \001(\003H\000\210\001\001\022!\n\021locat" - + "ion_presence\030\305\224\2640 \001(\tH\001\210\001\001\022\026\n\006region\030\364\315\240" - + "B \001(\tH\002\210\001\001\"\205\001\n\020LocationPresence\022\037\n\033UNDEF" - + "INED_LOCATION_PRESENCE\020\000\022\016\n\006GLOBAL\020\243\357\357\353\001" - + "\022\024\n\014LOCAL_REGION\020\350\354\265\300\001\022\021\n\tLP_GLOBAL\020\276\335\353\314" - + "\001\022\027\n\017LP_LOCAL_REGION\020\303\332\375\350\001B\022\n\020_expected_" - + "rtt_msB\024\n\022_location_presenceB\t\n\007_region\"" - + "\224\001\n\022InterconnectMacsec\022\032\n\tfail_open\030\313\225\373\375" - + "\001 \001(\010H\000\210\001\001\022T\n\017pre_shared_keys\030\362\313\265\310\001 \003(\0132" - + "7.google.cloud.compute.v1.InterconnectMa" - + "csecPreSharedKeyB\014\n\n_fail_open\"v\n\030Interc" - + "onnectMacsecConfig\022Z\n\017pre_shared_keys\030\362\313" - + "\265\310\001 \003(\0132=.google.cloud.compute.v1.Interc" - + "onnectMacsecConfigPreSharedKey\"\250\001\n$Inter" - + "connectMacsecConfigPreSharedKey\022\022\n\003cak\030\315" - + "\377\005 \001(\tH\000\210\001\001\022\022\n\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n\004name\030" - + "\213\365\315\001 \001(\tH\002\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\003\210\001" - + "\001B\006\n\004_cakB\006\n\004_cknB\007\n\005_nameB\r\n\013_start_tim" - + "e\"j\n\036InterconnectMacsecPreSharedKey\022\024\n\004n" - + "ame\030\213\365\315\001 \001(\tH\000\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\t" - + "H\001\210\001\001B\007\n\005_nameB\r\n\013_start_time\"\205\005\n\036Interc" - + "onnectOutageNotification\022\034\n\021affected_cir" - + "cuits\030\225\376\336T \003(\t\022\034\n\013description\030\374\207\326\311\001 \001(\tH" - + "\000\210\001\001\022\030\n\010end_time\030\261\247\3476 \001(\003H\001\210\001\001\022\033\n\nissue_" - + "type\030\340\375\240\260\001 \001(\tH\002\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\003\210\001" - + "\001\022\026\n\006source\030\233\320\301T \001(\tH\004\210\001\001\022\032\n\nstart_time\030" - + "\212\351\356\021 \001(\003H\005\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\006\210\001\001\"w\n\t" - + "IssueType\022\030\n\024UNDEFINED_ISSUE_TYPE\020\000\022\020\n\tI" - + "T_OUTAGE\020\205\341\350S\022\030\n\021IT_PARTIAL_OUTAGE\020\243\312\365+\022" - + "\r\n\006OUTAGE\020\361\245\217]\022\025\n\016PARTIAL_OUTAGE\020\217\267\217F\"C\n" - + "\006Source\022\024\n\020UNDEFINED_SOURCE\020\000\022\016\n\006GOOGLE\020" - + "\271\244\231\355\001\022\023\n\013NSRC_GOOGLE\020\342\377\272\363\001\"x\n\005State\022\023\n\017U" - + "NDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\tCANC" - + "ELLED\020\261\362\200\024\022\021\n\tCOMPLETED\020\253\214\344\223\001\022\020\n\tNS_ACTI" - + "VE\020\300\235\267x\022\023\n\013NS_CANCELED\020\323\223\307\361\001B\016\n\014_descrip" - + "tionB\013\n\t_end_timeB\r\n\013_issue_typeB\007\n\005_nam" - + "eB\t\n\007_sourceB\r\n\013_start_timeB\010\n\006_state\"\313\013" - + "\n\032InterconnectRemoteLocation\022\030\n\007address\030" - + "\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n$attachment_configurati" - + "on_constraints\030\321\350\353\233\001 \001(\0132G.google.cloud." - + "compute.v1.InterconnectAttachmentConfigu" - + "rationConstraintsH\001\210\001\001\022\024\n\004city\030\353\262\272\001 \001(\tH" - + "\002\210\001\001\022[\n\013constraints\030\266\314\356\001 \001(\0132>.google.cl" - + "oud.compute.v1.InterconnectRemoteLocatio" - + "nConstraintsH\003\210\001\001\022\031\n\tcontinent\030\264\333\320? \001(\tH" - + "\004\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001" - + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n\021facili" - + "ty_provider\030\215\240\246\376\001 \001(\tH\007\210\001\001\022-\n\035facility_p" - + "rovider_facility_id\030\205\276\316) \001(\tH\010\210\001\001\022\020\n\002id\030" - + "\233\032 \001(\004H\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022\024\n\004lac" - + "p\030\242\241\312\001 \001(\tH\013\210\001\001\022$\n\024max_lag_size100_gbps\030" - + "\265\377\366t \001(\005H\014\210\001\001\022$\n\023max_lag_size10_gbps\030\225\346\230" - + "\214\001 \001(\005H\r\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022&\n\025pee" - + "ringdb_facility_id\030\266\272\355\377\001 \001(\tH\017\210\001\001\022j\n\025per" - + "mitted_connections\030\256\263\345\322\001 \003(\0132G.google.cl" - + "oud.compute.v1.InterconnectRemoteLocatio" - + "nPermittedConnections\022\037\n\016remote_service\030" - + "\274\377\362\272\001 \001(\tH\020\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\021\210" - + "\001\001\022\026\n\006status\030\362\237\267V \001(\tH\022\210\001\001\"\202\001\n\tContinent" - + "\022\027\n\023UNDEFINED_CONTINENT\020\000\022\016\n\006AFRICA\020\372\234\257\227" - + "\001\022\017\n\010ASIA_PAC\020\375\366\2169\022\016\n\006EUROPE\020\242\323\312\324\001\022\025\n\rNO" - + "RTH_AMERICA\020\224\331\320\325\001\022\024\n\rSOUTH_AMERICA\020\334\312\305\017\"" - + "K\n\004Lacp\022\022\n\016UNDEFINED_LACP\020\000\022\026\n\016LACP_SUPP" - + "ORTED\020\261\212\366\241\001\022\027\n\020LACP_UNSUPPORTED\020\370\363\236a\"A\n\006" - + "Status\022\024\n\020UNDEFINED_STATUS\020\000\022\021\n\tAVAILABL" - + "E\020\251\265\346\322\001\022\016\n\006CLOSED\020\354\252\243\265\001B\n\n\010_addressB\'\n%_" - + "attachment_configuration_constraintsB\007\n\005" - + "_cityB\016\n\014_constraintsB\014\n\n_continentB\025\n\023_" - + "creation_timestampB\016\n\014_descriptionB\024\n\022_f" - + "acility_providerB \n\036_facility_provider_f" - + "acility_idB\005\n\003_idB\007\n\005_kindB\007\n\005_lacpB\027\n\025_" - + "max_lag_size100_gbpsB\026\n\024_max_lag_size10_" - + "gbpsB\007\n\005_nameB\030\n\026_peeringdb_facility_idB" - + "\021\n\017_remote_serviceB\014\n\n_self_linkB\t\n\007_sta" - + "tus\"\305\004\n%InterconnectRemoteLocationConstr" - + "aints\022*\n\031port_pair_remote_location\030\247\262\274\354\001" - + " \001(\tH\000\210\001\001\022\037\n\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210" - + "\001\001\022t\n\023subnet_length_range\030\306\260\373W \001(\0132O.goo" - + "gle.cloud.compute.v1.InterconnectRemoteL" - + "ocationConstraintsSubnetLengthRangeH\002\210\001\001" - + "\"\234\001\n\026PortPairRemoteLocation\022\'\n#UNDEFINED" - + "_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n\"PORT_PAI" - + "R_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n\'PORT_" - + "PAIR_UNCONSTRAINED_REMOTE_LOCATION\020\245\252\363\034\"" - + "q\n\014PortPairVlan\022\034\n\030UNDEFINED_PORT_PAIR_V" - + "LAN\020\000\022\036\n\027PORT_PAIR_MATCHING_VLAN\020\276\350\254w\022#\n" - + "\034PORT_PAIR_UNCONSTRAINED_VLAN\020\254\210\307SB\034\n\032_p" - + "ort_pair_remote_locationB\021\n\017_port_pair_v" - + "lanB\026\n\024_subnet_length_range\"p\n6Interconn" - + "ectRemoteLocationConstraintsSubnetLength" - + "Range\022\022\n\003max\030\344\312\006 \001(\005H\000\210\001\001\022\022\n\003min\030\322\314\006 \001(\005" - + "H\001\210\001\001B\006\n\004_maxB\006\n\004_min\"\305\002\n\036InterconnectRe" - + "moteLocationList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022E\n\005it" - + "ems\030\300\317\367/ \003(\01323.google.cloud.compute.v1.I" - + "nterconnectRemoteLocation\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001" - + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030" - + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" - + "ngH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_to" - + "kenB\014\n\n_self_linkB\n\n\010_warning\"r\n.Interco" - + "nnectRemoteLocationPermittedConnections\022" - + "&\n\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B" - + "\030\n\026_interconnect_location\"z\n#Interconnec" - + "tsGetDiagnosticsResponse\022H\n\006result\030\235\220\267B " - + "\001(\01320.google.cloud.compute.v1.Interconne" - + "ctDiagnosticsH\000\210\001\001B\t\n\007_result\"\233\001\n$Interc" - + "onnectsGetMacsecConfigResponse\022\024\n\004etag\030\225" - + "\322\276\001 \001(\tH\000\210\001\001\022I\n\006result\030\235\220\267B \001(\01321.google" - + ".cloud.compute.v1.InterconnectMacsecConf" - + "igH\001\210\001\001B\007\n\005_etagB\t\n\007_result\"\351\001\n\034Invalida" - + "teCacheUrlMapRequest\022a\n cache_invalidati" - + "on_rule_resource\030\255\303\223\225\001 \001(\0132..google.clou" - + "d.compute.v1.CacheInvalidationRuleB\003\340A\002\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 " - + "\001(\tB\003\340A\002B\r\n\013_request_id\"D\n\005Items\022\022\n\003key\030" - + "\337\274\006 \001(\tH\000\210\001\001\022\025\n\005value\030\361\242\2625 \001(\tH\001\210\001\001B\006\n\004_" - + "keyB\010\n\006_value\"\375\003\n\007License\022 \n\017charges_use" - + "_fee\030\316\241\312\261\001 \001(\010H\000\210\001\001\022\"\n\022creation_timestam" - + "p\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\t" - + "H\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" - + "H\004\210\001\001\022\033\n\014license_code\030\253\306Y \001(\004H\005\210\001\001\022\024\n\004na" - + "me\030\213\365\315\001 \001(\tH\006\210\001\001\022[\n\025resource_requirement" - + "s\030\241\262\227f \001(\01324.google.cloud.compute.v1.Lic" - + "enseResourceRequirementsH\007\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\034\n\014transferable\030\305\277\211\002 \001" - + "(\010H\t\210\001\001B\022\n\020_charges_use_feeB\025\n\023_creation" - + "_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_ki" - + "ndB\017\n\r_license_codeB\007\n\005_nameB\030\n\026_resourc" - + "e_requirementsB\014\n\n_self_linkB\017\n\r_transfe" - + "rable\"\224\004\n\013LicenseCode\022\"\n\022creation_timest" - + "amp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001" - + "(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\003\210\001\001\022J\n\rlicense_alias\030\322\221\342\024 \003(\01320.goog" - + "le.cloud.compute.v1.LicenseCodeLicenseAl" - + "ias\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\032\n\tself_link\030\215" - + "\222\305\331\001 \001(\tH\005\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\006\210\001\001\022\034\n\014" - + "transferable\030\305\277\211\002 \001(\010H\007\210\001\001\"\177\n\005State\022\023\n\017U" - + "NDEFINED_STATE\020\000\022\020\n\010DISABLED\020\374\324\260\366\001\022\016\n\007EN" - + "ABLED\020\241\256\354V\022\021\n\nRESTRICTED\020\333\350\333|\022\031\n\021STATE_U" - + "NSPECIFIED\020\311\320\274\340\001\022\021\n\nTERMINATED\020\243\364\233wB\025\n\023_" - + "creation_timestampB\016\n\014_descriptionB\005\n\003_i" - + "dB\007\n\005_kindB\007\n\005_nameB\014\n\n_self_linkB\010\n\006_st" - + "ateB\017\n\r_transferable\"q\n\027LicenseCodeLicen" - + "seAlias\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\001\210\001\001B\016\n\014_descriptio" - + "nB\014\n\n_self_link\"\234\001\n\031LicenseResourceCommi" - + "tment\022\026\n\006amount\030\330\240\351] \001(\003H\000\210\001\001\022!\n\021cores_p" - + "er_license\030\224\310\276\017 \001(\tH\001\210\001\001\022\027\n\007license\030\301\210\302O" - + " \001(\tH\002\210\001\001B\t\n\007_amountB\024\n\022_cores_per_licen" - + "seB\n\n\010_license\"\215\001\n\033LicenseResourceRequir" - + "ements\022$\n\023min_guest_cpu_count\030\244\324\364\343\001 \001(\005H" - + "\000\210\001\001\022\036\n\rmin_memory_mb\030\346\327\331\360\001 \001(\005H\001\210\001\001B\026\n\024" - + "_min_guest_cpu_countB\020\n\016_min_memory_mb\"\211" - + "\002\n\024LicensesListResponse\022\020\n\002id\030\233\032 \001(\tH\000\210\001" - + "\001\0222\n\005items\030\300\317\367/ \003(\0132 .google.cloud.compu" - + "te.v1.License\022\037\n\017next_page_token\030\225\272\206& \001(" - + "\tH\001\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\002\210\001\001\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\003\210\001\001B\005\n\003_idB\022\n\020_next_page_token" - + "B\014\n\n_self_linkB\n\n\010_warning\"\263\002\n\033ListAccel" - + "eratorTypesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" - + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010orde" - + "r_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(" - + "\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retur" - + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone" - + "\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_result" - + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" - + "_partial_success\"\256\002\n\024ListAddressesReques" - + "t\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_result" - + "s\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001" - + "\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'" - + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B" - + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" - + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" - + "s\"]\n%ListAssociationsFirewallPolicyReque" - + "st\022 \n\017target_resource\030\374\355\352\336\001 \001(\tH\000\210\001\001B\022\n\020" - + "_target_resource\"\256\002\n\026ListAutoscalersRequ" - + "est\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resu" - + "lts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002" - + "\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succe" - + "ss\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B" - + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" - + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" - + "s\"\307\002\n-ListAvailableFeaturesRegionSslPoli" - + "ciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" - + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" - + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" - + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " - + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" - + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" - + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"\251\002\n\'ListAvailableFeaturesSsl" - + "PoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" - + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" - + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_p" - + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" - + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" - + "okenB\031\n\027_return_partial_success\"\233\002\n\031List" - + "BackendBucketsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" - + "\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010o" - + "rder_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t" - + " \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026re" - + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "ng\"\257\002\n\023InstantSnapshotList\022\020\n\002id\030\233\032 \001(\tH" + + "\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.google.cloud.co" + + "mpute.v1.InstantSnapshot\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" + + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" + + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" + + "enB\014\n\n_self_linkB\n\n\010_warning\"[\n\035InstantS" + + "napshotResourceStatus\022#\n\022storage_size_by" + + "tes\030\361\215\346\270\001 \001(\003H\000\210\001\001B\025\n\023_storage_size_byte" + + "s\"\254\001\n\032InstantSnapshotsScopedList\022G\n\021inst" + + "ant_snapshots\030\321\274\227\235\001 \003(\0132(.google.cloud.c" + + "ompute.v1.InstantSnapshot\0229\n\007warning\030\234\337\226" + + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" + + "\000\210\001\001B\n\n\010_warning\"h\n\017Int64RangeMatch\022\032\n\tr" + + "ange_end\030\331\225\340\231\001 \001(\003H\000\210\001\001\022\033\n\013range_start\030\340" + + "\375\2421 \001(\003H\001\210\001\001B\014\n\n_range_endB\016\n\014_range_sta" + + "rt\"\273\020\n\014Interconnect\022\036\n\radmin_enabled\030\321\354\301" + + "\324\001 \001(\010H\000\210\001\001\022\036\n\022available_features\030\363\271\326\354\001 " + + "\003(\t\022J\n\rcircuit_infos\030\257\203\315N \003(\01320.google.c" + + "loud.compute.v1.InterconnectCircuitInfo\022" + + "\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\035\n\rc" + + "ustomer_name\030\314\334\337\001 \001(\tH\002\210\001\001\022\034\n\013descriptio" + + "n\030\374\207\326\311\001 \001(\tH\003\210\001\001\022T\n\020expected_outages\030\233\352\216" + + "~ \003(\01327.google.cloud.compute.v1.Intercon" + + "nectOutageNotification\022\"\n\021google_ip_addr" + + "ess\030\242\205\245\323\001 \001(\tH\004\210\001\001\022$\n\023google_reference_i" + + "d\030\325\265\212\377\001 \001(\tH\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022$\n\030in" + + "terconnect_attachments\030\377\322\353\312\001 \003(\t\022\"\n\021inte" + + "rconnect_type\030\313\230\323\365\001 \001(\tH\007\210\001\001\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\010\210\001\001\022!\n\021label_fingerprint\030\231\360\367T \001(\t" + + "H\t\210\001\001\022E\n\006labels\030\377\277\301\356\001 \003(\01321.google.cloud" + + ".compute.v1.Interconnect.LabelsEntry\022\032\n\t" + + "link_type\030\337\210\276\371\001 \001(\tH\n\210\001\001\022\031\n\010location\030\265\277\276" + + "\212\001 \001(\tH\013\210\001\001\022D\n\006macsec\030\242\301\227\374\001 \001(\0132+.google" + + ".cloud.compute.v1.InterconnectMacsecH\014\210\001" + + "\001\022\036\n\016macsec_enabled\030\244\241\315\\ \001(\010H\r\210\001\001\022\024\n\004nam" + + "e\030\213\365\315\001 \001(\tH\016\210\001\001\022!\n\021noc_contact_email\030\200\370\332" + + "\006 \001(\tH\017\210\001\001\022\"\n\022operational_status\030\377\261\360_ \001(" + + "\tH\020\210\001\001\022\037\n\017peer_ip_address\030\331\227\207c \001(\tH\021\210\001\001\022" + + "\'\n\026provisioned_link_count\030\365\322\366\303\001 \001(\005H\022\210\001\001" + + "\022 \n\017remote_location\030\216\217\327\232\001 \001(\tH\023\210\001\001\022\036\n\022re" + + "quested_features\030\356\363\367\333\001 \003(\t\022$\n\024requested_" + + "link_count\030\373\333\275\025 \001(\005H\024\210\001\001\022\036\n\rsatisfies_pz" + + "s\030\253\335\253\345\001 \001(\010H\025\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" + + "\026\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\027\210\001\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\021Av" + + "ailableFeatures\022 \n\034UNDEFINED_AVAILABLE_F" + + "EATURES\020\000\"j\n\020InterconnectType\022\037\n\033UNDEFIN" + + "ED_INTERCONNECT_TYPE\020\000\022\020\n\tDEDICATED\020\317\233\234{" + + "\022\022\n\nIT_PRIVATE\020\317\214\210\240\001\022\017\n\007PARTNER\020\250\321\241\334\001\"i\n" + + "\010LinkType\022\027\n\023UNDEFINED_LINK_TYPE\020\000\022\"\n\032LI" + + "NK_TYPE_ETHERNET_100G_LR\020\347\362\201\241\001\022 \n\031LINK_T" + + "YPE_ETHERNET_10G_LR\020\245\271\361p\"`\n\021OperationalS" + + "tatus\022 \n\034UNDEFINED_OPERATIONAL_STATUS\020\000\022" + + "\020\n\tOS_ACTIVE\020\301\373\310\032\022\027\n\020OS_UNPROVISIONED\020\300\301" + + "\252r\"5\n\021RequestedFeatures\022 \n\034UNDEFINED_REQ" + + "UESTED_FEATURES\020\000\"C\n\005State\022\023\n\017UNDEFINED_" + + "STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\025\n\rUNPROVISIONED" + + "\020\333\307\327\366\001B\020\n\016_admin_enabledB\025\n\023_creation_ti" + + "mestampB\020\n\016_customer_nameB\016\n\014_descriptio" + + "nB\024\n\022_google_ip_addressB\026\n\024_google_refer" + + "ence_idB\005\n\003_idB\024\n\022_interconnect_typeB\007\n\005" + + "_kindB\024\n\022_label_fingerprintB\014\n\n_link_typ" + + "eB\013\n\t_locationB\t\n\007_macsecB\021\n\017_macsec_ena" + + "bledB\007\n\005_nameB\024\n\022_noc_contact_emailB\025\n\023_" + + "operational_statusB\022\n\020_peer_ip_addressB\031" + + "\n\027_provisioned_link_countB\022\n\020_remote_loc" + + "ationB\027\n\025_requested_link_countB\020\n\016_satis" + + "fies_pzsB\014\n\n_self_linkB\010\n\006_state\"\313\031\n\026Int" + + "erconnectAttachment\022\036\n\radmin_enabled\030\321\354\301" + + "\324\001 \001(\010H\000\210\001\001\022\031\n\tbandwidth\030\261\201\323V \001(\tH\001\210\001\001\022!" + + "\n\026candidate_ipv6_subnets\030\232\217\332! \003(\t\022\034\n\021can" + + "didate_subnets\030\372\343\264q \003(\t\022(\n\027cloud_router_" + + "ip_address\030\210\210\205\211\001 \001(\tH\002\210\001\001\022*\n\031cloud_route" + + "r_ipv6_address\030\310\223\277\327\001 \001(\tH\003\210\001\001\022/\n\036cloud_r" + + "outer_ipv6_interface_id\030\215\311\310\370\001 \001(\tH\004\210\001\001\022r" + + "\n\031configuration_constraints\030\355\360\326U \001(\0132G.g" + + "oogle.cloud.compute.v1.InterconnectAttac" + + "hmentConfigurationConstraintsH\005\210\001\001\022\"\n\022cr" + + "eation_timestamp\030\266\217\307\016 \001(\tH\006\210\001\001\022+\n\032custom" + + "er_router_ip_address\030\361\332\304\236\001 \001(\tH\007\210\001\001\022-\n\034c" + + "ustomer_router_ipv6_address\030\361\371\253\212\001 \001(\tH\010\210" + + "\001\001\0222\n!customer_router_ipv6_interface_id\030" + + "\204\206\326\265\001 \001(\tH\t\210\001\001\022!\n\021dataplane_version\030\213\255\323\020" + + " \001(\005H\n\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\013\210\001\001\022" + + "(\n\030edge_availability_domain\030\246\225\377! \001(\tH\014\210\001" + + "\001\022\032\n\nencryption\030\203\237\334. \001(\tH\r\210\001\001\022$\n\023google_" + + "reference_id\030\325\265\212\377\001 \001(\tH\016\210\001\001\022\020\n\002id\030\233\032 \001(\004" + + "H\017\210\001\001\022\034\n\014interconnect\030\216\311\214k \001(\tH\020\210\001\001\022$\n\030i" + + "psec_internal_addresses\030\265\362\260\302\001 \003(\t\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\021\210\001\001\022!\n\021label_fingerprint\030\231\360\367" + + "T \001(\tH\022\210\001\001\022O\n\006labels\030\377\277\301\356\001 \003(\0132;.google." + + "cloud.compute.v1.InterconnectAttachment." + + "LabelsEntry\022\022\n\003mtu\030\256\317\006 \001(\005H\023\210\001\001\022\024\n\004name\030" + + "\213\365\315\001 \001(\tH\024\210\001\001\022\"\n\022operational_status\030\377\261\360_" + + " \001(\tH\025\210\001\001\022\034\n\013pairing_key\030\350\360\324\321\001 \001(\tH\026\210\001\001\022" + + "\034\n\013partner_asn\030\205\305\367\320\001 \001(\003H\027\210\001\001\022`\n\020partner" + + "_metadata\030\306\341\266\037 \001(\0132>.google.cloud.comput" + + "e.v1.InterconnectAttachmentPartnerMetada" + + "taH\030\210\001\001\022e\n\031private_interconnect_info\030\203\354\221" + + "q \001(\0132:.google.cloud.compute.v1.Intercon" + + "nectAttachmentPrivateInfoH\031\210\001\001\022\026\n\006region" + + "\030\364\315\240B \001(\tH\032\210\001\001\022\037\n\016remote_service\030\274\377\362\272\001 \001" + + "(\tH\033\210\001\001\022\026\n\006router\030\311\256\356F \001(\tH\034\210\001\001\022\036\n\rsatis" + + "fies_pzs\030\253\335\253\345\001 \001(\010H\035\210\001\001\022\032\n\tself_link\030\215\222\305" + + "\331\001 \001(\tH\036\210\001\001\022\033\n\nstack_type\030\221\265\213\313\001 \001(\tH\037\210\001\001" + + "\022\025\n\005state\030\221\211\2534 \001(\tH \210\001\001\022\036\n\rsubnet_length" + + "\030\210\304\267\205\001 \001(\005H!\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\"\210\001\001\022\035\n" + + "\rvlan_tag8021q\030\234\350\2279 \001(\005H#\210\001\001\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\355\001\n\t" + + "Bandwidth\022\027\n\023UNDEFINED_BANDWIDTH\020\000\022\017\n\010BP", + "S_100M\020\266\225\320\027\022\017\n\007BPS_10G\020\216\211\362\204\001\022\016\n\006BPS_1G\020\360" + + "\255\271\251\001\022\017\n\010BPS_200M\020\225\376\321\027\022\017\n\007BPS_20G\020\317\220\362\204\001\022\016" + + "\n\006BPS_2G\020\217\256\271\251\001\022\017\n\010BPS_300M\020\364\346\323\027\022\017\n\010BPS_4" + + "00M\020\323\317\325\027\022\017\n\010BPS_500M\020\262\270\327\027\022\017\n\007BPS_50G\020\222\247\362" + + "\204\001\022\017\n\007BPS_50M\020\230\247\362\204\001\022\016\n\006BPS_5G\020\354\256\271\251\001\"\237\001\n\026" + + "EdgeAvailabilityDomain\022&\n\"UNDEFINED_EDGE" + + "_AVAILABILITY_DOMAIN\020\000\022\035\n\025AVAILABILITY_D" + + "OMAIN_1\020\332\373\326\246\001\022\035\n\025AVAILABILITY_DOMAIN_2\020\333" + + "\373\326\246\001\022\037\n\027AVAILABILITY_DOMAIN_ANY\020\265\352\367\262\001\"A\n" + + "\nEncryption\022\030\n\024UNDEFINED_ENCRYPTION\020\000\022\014\n" + + "\005IPSEC\020\252\243\251!\022\013\n\004NONE\020\270\316\222\001\"`\n\021OperationalS" + + "tatus\022 \n\034UNDEFINED_OPERATIONAL_STATUS\020\000\022" + + "\020\n\tOS_ACTIVE\020\301\373\310\032\022\027\n\020OS_UNPROVISIONED\020\300\301" + + "\252r\"I\n\tStackType\022\030\n\024UNDEFINED_STACK_TYPE\020" + + "\000\022\020\n\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\"\302\001" + + "\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206" + + "\346\211\226\001\022\016\n\007DEFUNCT\020\257\274\2417\022 \n\030PARTNER_REQUEST_" + + "RECEIVED\020\350\360\362\364\001\022\027\n\020PENDING_CUSTOMER\020\246\203\357O\022" + + "\027\n\017PENDING_PARTNER\020\340\373\372\270\001\022\031\n\021STATE_UNSPEC" + + "IFIED\020\311\320\274\340\001\022\025\n\rUNPROVISIONED\020\333\307\327\366\001\"W\n\004Ty" + + "pe\022\022\n\016UNDEFINED_TYPE\020\000\022\020\n\tDEDICATED\020\317\233\234{" + + "\022\017\n\007PARTNER\020\250\321\241\334\001\022\030\n\020PARTNER_PROVIDER\020\250\367" + + "\267\346\001B\020\n\016_admin_enabledB\014\n\n_bandwidthB\032\n\030_" + + "cloud_router_ip_addressB\034\n\032_cloud_router" + + "_ipv6_addressB!\n\037_cloud_router_ipv6_inte" + + "rface_idB\034\n\032_configuration_constraintsB\025" + + "\n\023_creation_timestampB\035\n\033_customer_route" + + "r_ip_addressB\037\n\035_customer_router_ipv6_ad" + + "dressB$\n\"_customer_router_ipv6_interface" + + "_idB\024\n\022_dataplane_versionB\016\n\014_descriptio" + + "nB\033\n\031_edge_availability_domainB\r\n\013_encry" + + "ptionB\026\n\024_google_reference_idB\005\n\003_idB\017\n\r" + + "_interconnectB\007\n\005_kindB\024\n\022_label_fingerp" + + "rintB\006\n\004_mtuB\007\n\005_nameB\025\n\023_operational_st" + + "atusB\016\n\014_pairing_keyB\016\n\014_partner_asnB\023\n\021" + + "_partner_metadataB\034\n\032_private_interconne" + + "ct_infoB\t\n\007_regionB\021\n\017_remote_serviceB\t\n" + + "\007_routerB\020\n\016_satisfies_pzsB\014\n\n_self_link" + + "B\r\n\013_stack_typeB\010\n\006_stateB\020\n\016_subnet_len" + + "gthB\007\n\005_typeB\020\n\016_vlan_tag8021q\"\343\003\n$Inter" + + "connectAttachmentAggregatedList\022\020\n\002id\030\233\032" + + " \001(\tH\000\210\001\001\022Z\n\005items\030\300\317\367/ \003(\0132H.google.clo" + + "ud.compute.v1.InterconnectAttachmentAggr" + + "egatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" + + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\t" + + "self_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables" + + "\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\004\210\001\001\032h\n\nItemsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022I\n\005value\030\002 \001(\0132:.google." + + "cloud.compute.v1.InterconnectAttachments" + + "ScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" + + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\263\002\n" + + ".InterconnectAttachmentConfigurationCons" + + "traints\022\030\n\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n\023bgp" + + "_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google.clou" + + "d.compute.v1.InterconnectAttachmentConfi" + + "gurationConstraintsBgpPeerASNRange\"b\n\006Bg" + + "pMd5\022\025\n\021UNDEFINED_BGP_MD5\020\000\022\024\n\014MD5_OPTIO" + + "NAL\020\201\242\340\375\001\022\023\n\014MD5_REQUIRED\020\300\342\373g\022\026\n\017MD5_UN" + + "SUPPORTED\020\324\341\273)B\n\n\010_bgp_md5\"w\n=Interconne" + + "ctAttachmentConfigurationConstraintsBgpP" + + "eerASNRange\022\022\n\003max\030\344\312\006 \001(\rH\000\210\001\001\022\022\n\003min\030\322" + + "\314\006 \001(\rH\001\210\001\001B\006\n\004_maxB\006\n\004_min\"\275\002\n\032Intercon" + + "nectAttachmentList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005" + + "items\030\300\317\367/ \003(\0132/.google.cloud.compute.v1" + + ".InterconnectAttachment\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_toke" + + "nB\014\n\n_self_linkB\n\n\010_warning\"\274\001\n%Intercon" + + "nectAttachmentPartnerMetadata\022\"\n\021interco" + + "nnect_name\030\234\357\306\365\001 \001(\tH\000\210\001\001\022\034\n\014partner_nam" + + "e\030\242\247\220M \001(\tH\001\210\001\001\022\033\n\nportal_url\030\234\316\255\200\001 \001(\tH" + + "\002\210\001\001B\024\n\022_interconnect_nameB\017\n\r_partner_n" + + "ameB\r\n\013_portal_url\"K\n!InterconnectAttach" + + "mentPrivateInfo\022\031\n\010tag8021q\030\300\321\316\201\001 \001(\rH\000\210" + + "\001\001B\013\n\t_tag8021q\"\301\001\n!InterconnectAttachme" + + "ntsScopedList\022U\n\030interconnect_attachment" + + "s\030\377\322\353\312\001 \003(\0132/.google.cloud.compute.v1.In" + + "terconnectAttachment\0229\n\007warning\030\234\337\226\030 \001(\013" + + "2 .google.cloud.compute.v1.WarningH\000\210\001\001B" + + "\n\n\010_warning\"\305\001\n\027InterconnectCircuitInfo\022" + + "\"\n\022customer_demarc_id\030\223\214\334\r \001(\tH\000\210\001\001\022!\n\021g" + + "oogle_circuit_id\030\367\215\370| \001(\tH\001\210\001\001\022!\n\020google" + + "_demarc_id\030\256\335\333\325\001 \001(\tH\002\210\001\001B\025\n\023_customer_d" + + "emarc_idB\024\n\022_google_circuit_idB\023\n\021_googl" + + "e_demarc_id\"\225\005\n\027InterconnectDiagnostics\022" + + "P\n\narp_caches\030\221\326\330\305\001 \003(\01328.google.cloud.c" + + "ompute.v1.InterconnectDiagnosticsARPEntr" + + "y\022(\n\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000" + + "\210\001\001\022)\n\031bundle_operational_status\030\334\227\3402 \001(" + + "\tH\001\210\001\001\022L\n\005links\030\271\237\2151 \003(\0132:.google.cloud." + + "compute.v1.InterconnectDiagnosticsLinkSt" + + "atus\022\034\n\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n\025B" + + "undleAggregationType\022%\n!UNDEFINED_BUNDLE" + + "_AGGREGATION_TYPE\020\000\022#\n\034BUNDLE_AGGREGATIO" + + "N_TYPE_LACP\020\315\242\236\r\022%\n\036BUNDLE_AGGREGATION_T" + + "YPE_STATIC\020\331\230\225\030\"\217\001\n\027BundleOperationalSta" + + "tus\022\'\n#UNDEFINED_BUNDLE_OPERATIONAL_STAT" + + "US\020\000\022&\n\036BUNDLE_OPERATIONAL_STATUS_DOWN\020\205" + + "\256\264\330\001\022#\n\034BUNDLE_OPERATIONAL_STATUS_UP\020\276\203\371" + + "LB\032\n\030_bundle_aggregation_typeB\034\n\032_bundle" + + "_operational_statusB\016\n\014_mac_address\"{\n\037I" + + "nterconnectDiagnosticsARPEntry\022\033\n\nip_add" + + "ress\030\334\361\334\301\001 \001(\tH\000\210\001\001\022\034\n\013mac_address\030\204\322\310\236\001" + + " \001(\tH\001\210\001\001B\r\n\013_ip_addressB\016\n\014_mac_address" + + "\"\372\001\n%InterconnectDiagnosticsLinkLACPStat" + + "us\022 \n\020google_system_id\030\245\205\277+ \001(\tH\000\210\001\001\022#\n\022" + + "neighbor_system_id\030\236\230\371\243\001 \001(\tH\001\210\001\001\022\025\n\005sta" + + "te\030\221\211\2534 \001(\tH\002\210\001\001\"=\n\005State\022\023\n\017UNDEFINED_S" + + "TATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\017\n\010DETACHED\020\362\366\241gB" + + "\023\n\021_google_system_idB\025\n\023_neighbor_system" + + "_idB\010\n\006_state\"\343\001\n\'InterconnectDiagnostic" + + "sLinkOpticalPower\022\025\n\005state\030\221\211\2534 \001(\tH\000\210\001\001" + + "\022\025\n\005value\030\361\242\2625 \001(\002H\001\210\001\001\"v\n\005State\022\023\n\017UNDE" + + "FINED_STATE\020\000\022\022\n\nHIGH_ALARM\020\324\362\315\221\001\022\023\n\014HIG" + + "H_WARNING\020\337\353\257i\022\021\n\tLOW_ALARM\020\346\252\377\226\001\022\023\n\013LOW" + + "_WARNING\020\361\252\306\241\001\022\007\n\002OK\020\334\023B\010\n\006_stateB\010\n\006_va" + + "lue\"\361\006\n!InterconnectDiagnosticsLinkStatu" + + "s\022P\n\narp_caches\030\221\326\330\305\001 \003(\01328.google.cloud" + + ".compute.v1.InterconnectDiagnosticsARPEn" + + "try\022\032\n\ncircuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\rgoogl" + + "e_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n\013lacp_status\030\257\304\236" + + "\254\001 \001(\0132>.google.cloud.compute.v1.Interco" + + "nnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n\006m" + + "acsec\030\242\301\227\374\001 \001(\0132<.google.cloud.compute.v" + + "1.InterconnectDiagnosticsMacsecStatusH\003\210" + + "\001\001\022\"\n\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i" + + "\n\027receiving_optical_power\030\337\255\330t \001(\0132@.goo" + + "gle.cloud.compute.v1.InterconnectDiagnos" + + "ticsLinkOpticalPowerH\005\210\001\001\022m\n\032transmittin" + + "g_optical_power\030\235\272\211\333\001 \001(\0132@.google.cloud" + + ".compute.v1.InterconnectDiagnosticsLinkO" + + "pticalPowerH\006\210\001\001\"\177\n\021OperationalStatus\022 \n" + + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n\034LINK_" + + "OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n\032LINK_OP" + + "ERATIONAL_STATUS_UP\020\266\266\355\221\001B\r\n\013_circuit_id" + + "B\020\n\016_google_demarcB\016\n\014_lacp_statusB\t\n\007_m" + + "acsecB\025\n\023_operational_statusB\032\n\030_receivi" + + "ng_optical_powerB\035\n\033_transmitting_optica" + + "l_power\"n\n#InterconnectDiagnosticsMacsec" + + "Status\022\022\n\003ckn\030\206\202\006 \001(\tH\000\210\001\001\022\033\n\013operationa" + + "l\030\322\307\354= \001(\010H\001\210\001\001B\006\n\004_cknB\016\n\014_operational\"" + + "\251\002\n\020InterconnectList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227" + + "\n\005items\030\300\317\367/ \003(\0132%.google.cloud.compute." + + "v1.Interconnect\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_l" + + "ink\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 " + + ".google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_se" + + "lf_linkB\n\n\010_warning\"\325\n\n\024InterconnectLoca" + + "tion\022\030\n\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022!\n\021availa" + + "bility_zone\030\220\320\307K \001(\tH\001\210\001\001\022\036\n\022available_f" + + "eatures\030\363\271\326\354\001 \003(\t\022 \n\024available_link_type" + + "s\030\252\326\371\362\001 \003(\t\022\024\n\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022\031\n\tcon" + + "tinent\030\264\333\320? \001(\tH\003\210\001\001\022\"\n\022creation_timesta" + + "mp\030\266\217\307\016 \001(\tH\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(" + + "\tH\005\210\001\001\022\"\n\021facility_provider\030\215\240\246\376\001 \001(\tH\006\210" + + "\001\001\022-\n\035facility_provider_facility_id\030\205\276\316)" + + " \001(\tH\007\210\001\001\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n\004kind\030\224\367\310\001" + + " \001(\tH\t\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\n\210\001\001\022&\n\025peeri" + + "ngdb_facility_id\030\266\272\355\377\001 \001(\tH\013\210\001\001\022Q\n\014regio" + + "n_infos\030\372\350\356\224\001 \003(\01327.google.cloud.compute" + + ".v1.InterconnectLocationRegionInfo\022\032\n\tse" + + "lf_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\026\n\006status\030\362\237\267V \001(" + + "\tH\r\210\001\001\022\034\n\014supports_pzs\030\356\366\205( \001(\010H\016\210\001\001\"H\n\021" + + "AvailableFeatures\022 \n\034UNDEFINED_AVAILABLE" + + "_FEATURES\020\000\022\021\n\tIF_MACSEC\020\204\374\372\274\001\"~\n\022Availa" + + "bleLinkTypes\022\"\n\036UNDEFINED_AVAILABLE_LINK" + + "_TYPES\020\000\022\"\n\032LINK_TYPE_ETHERNET_100G_LR\020\347" + + "\362\201\241\001\022 \n\031LINK_TYPE_ETHERNET_10G_LR\020\245\271\361p\"\352" + + "\001\n\tContinent\022\027\n\023UNDEFINED_CONTINENT\020\000\022\016\n" + + "\006AFRICA\020\372\234\257\227\001\022\017\n\010ASIA_PAC\020\375\366\2169\022\017\n\010C_AFRI" + + "CA\020\366\223\252\"\022\022\n\nC_ASIA_PAC\020\371\217\206\336\001\022\017\n\010C_EUROPE\020" + + "\236\312\305_\022\027\n\017C_NORTH_AMERICA\020\230\233\273\203\001\022\027\n\017C_SOUTH" + + "_AMERICA\020\340\214\260\275\001\022\016\n\006EUROPE\020\242\323\312\324\001\022\025\n\rNORTH_" + + "AMERICA\020\224\331\320\325\001\022\024\n\rSOUTH_AMERICA\020\334\312\305\017\"A\n\006S" + + "tatus\022\024\n\020UNDEFINED_STATUS\020\000\022\021\n\tAVAILABLE" + + "\020\251\265\346\322\001\022\016\n\006CLOSED\020\354\252\243\265\001B\n\n\010_addressB\024\n\022_a" + + "vailability_zoneB\007\n\005_cityB\014\n\n_continentB" + + "\025\n\023_creation_timestampB\016\n\014_descriptionB\024" + + "\n\022_facility_providerB \n\036_facility_provid" + + "er_facility_idB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB" + + "\030\n\026_peeringdb_facility_idB\014\n\n_self_linkB" + + "\t\n\007_statusB\017\n\r_supports_pzs\"\271\002\n\030Intercon" + + "nectLocationList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022?\n\005it" + + "ems\030\300\317\367/ \003(\0132-.google.cloud.compute.v1.I" + + "nterconnectLocation\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001" + + "\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tse" + + "lf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001" + + "\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" + + "\n_self_linkB\n\n\010_warning\"\272\002\n\036Interconnect" + + "LocationRegionInfo\022 \n\017expected_rtt_ms\030\372\203" + + "\276\311\001 \001(\003H\000\210\001\001\022!\n\021location_presence\030\305\224\2640 \001" + + "(\tH\001\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\002\210\001\001\"\205\001\n\020Loca" + + "tionPresence\022\037\n\033UNDEFINED_LOCATION_PRESE" + + "NCE\020\000\022\016\n\006GLOBAL\020\243\357\357\353\001\022\024\n\014LOCAL_REGION\020\350\354" + + "\265\300\001\022\021\n\tLP_GLOBAL\020\276\335\353\314\001\022\027\n\017LP_LOCAL_REGIO" + + "N\020\303\332\375\350\001B\022\n\020_expected_rtt_msB\024\n\022_location" + + "_presenceB\t\n\007_region\"\224\001\n\022InterconnectMac" + + "sec\022\032\n\tfail_open\030\313\225\373\375\001 \001(\010H\000\210\001\001\022T\n\017pre_s" + + "hared_keys\030\362\313\265\310\001 \003(\01327.google.cloud.comp" + + "ute.v1.InterconnectMacsecPreSharedKeyB\014\n" + + "\n_fail_open\"v\n\030InterconnectMacsecConfig\022" + + "Z\n\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.google.cl" + + "oud.compute.v1.InterconnectMacsecConfigP" + + "reSharedKey\"\250\001\n$InterconnectMacsecConfig" + + "PreSharedKey\022\022\n\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n\003ckn\030" + + "\206\202\006 \001(\tH\001\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022\032\n\nst" + + "art_time\030\212\351\356\021 \001(\tH\003\210\001\001B\006\n\004_cakB\006\n\004_cknB\007" + + "\n\005_nameB\r\n\013_start_time\"j\n\036InterconnectMa" + + "csecPreSharedKey\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\032" + + "\n\nstart_time\030\212\351\356\021 \001(\tH\001\210\001\001B\007\n\005_nameB\r\n\013_" + + "start_time\"\205\005\n\036InterconnectOutageNotific" + + "ation\022\034\n\021affected_circuits\030\225\376\336T \003(\t\022\034\n\013d" + + "escription\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\030\n\010end_time\030\261\247" + + "\3476 \001(\003H\001\210\001\001\022\033\n\nissue_type\030\340\375\240\260\001 \001(\tH\002\210\001\001" + + "\022\024\n\004name\030\213\365\315\001 \001(\tH\003\210\001\001\022\026\n\006source\030\233\320\301T \001(" + + "\tH\004\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\003H\005\210\001\001\022\025\n\005st" + + "ate\030\221\211\2534 \001(\tH\006\210\001\001\"w\n\tIssueType\022\030\n\024UNDEFI" + + "NED_ISSUE_TYPE\020\000\022\020\n\tIT_OUTAGE\020\205\341\350S\022\030\n\021IT" + + "_PARTIAL_OUTAGE\020\243\312\365+\022\r\n\006OUTAGE\020\361\245\217]\022\025\n\016P" + + "ARTIAL_OUTAGE\020\217\267\217F\"C\n\006Source\022\024\n\020UNDEFINE" + + "D_SOURCE\020\000\022\016\n\006GOOGLE\020\271\244\231\355\001\022\023\n\013NSRC_GOOGL" + + "E\020\342\377\272\363\001\"x\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n" + + "\006ACTIVE\020\206\346\211\226\001\022\020\n\tCANCELLED\020\261\362\200\024\022\021\n\tCOMPL" + + "ETED\020\253\214\344\223\001\022\020\n\tNS_ACTIVE\020\300\235\267x\022\023\n\013NS_CANCE" + + "LED\020\323\223\307\361\001B\016\n\014_descriptionB\013\n\t_end_timeB\r" + + "\n\013_issue_typeB\007\n\005_nameB\t\n\007_sourceB\r\n\013_st" + + "art_timeB\010\n\006_state\"\313\013\n\032InterconnectRemot" + + "eLocation\022\030\n\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n$a" + + "ttachment_configuration_constraints\030\321\350\353\233" + + "\001 \001(\0132G.google.cloud.compute.v1.Intercon" + + "nectAttachmentConfigurationConstraintsH\001" + + "\210\001\001\022\024\n\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n\013constraints" + + "\030\266\314\356\001 \001(\0132>.google.cloud.compute.v1.Inte" + + "rconnectRemoteLocationConstraintsH\003\210\001\001\022\031" + + "\n\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n\022creation_ti" + + "mestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n\013description\030\374\207\326" + + "\311\001 \001(\tH\006\210\001\001\022\"\n\021facility_provider\030\215\240\246\376\001 \001" + + "(\tH\007\210\001\001\022-\n\035facility_provider_facility_id" + + "\030\205\276\316) \001(\tH\010\210\001\001\022\020\n\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n\004kind" + + "\030\224\367\310\001 \001(\tH\n\210\001\001\022\024\n\004lacp\030\242\241\312\001 \001(\tH\013\210\001\001\022$\n\024" + + "max_lag_size100_gbps\030\265\377\366t \001(\005H\014\210\001\001\022$\n\023ma" + + "x_lag_size10_gbps\030\225\346\230\214\001 \001(\005H\r\210\001\001\022\024\n\004name" + + "\030\213\365\315\001 \001(\tH\016\210\001\001\022&\n\025peeringdb_facility_id\030" + + "\266\272\355\377\001 \001(\tH\017\210\001\001\022j\n\025permitted_connections\030" + + "\256\263\345\322\001 \003(\0132G.google.cloud.compute.v1.Inte" + + "rconnectRemoteLocationPermittedConnectio" + + "ns\022\037\n\016remote_service\030\274\377\362\272\001 \001(\tH\020\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022\026\n\006status\030\362\237\267V \001" + + "(\tH\022\210\001\001\"\202\001\n\tContinent\022\027\n\023UNDEFINED_CONTI" + + "NENT\020\000\022\016\n\006AFRICA\020\372\234\257\227\001\022\017\n\010ASIA_PAC\020\375\366\2169\022" + + "\016\n\006EUROPE\020\242\323\312\324\001\022\025\n\rNORTH_AMERICA\020\224\331\320\325\001\022\024" + + "\n\rSOUTH_AMERICA\020\334\312\305\017\"K\n\004Lacp\022\022\n\016UNDEFINE" + + "D_LACP\020\000\022\026\n\016LACP_SUPPORTED\020\261\212\366\241\001\022\027\n\020LACP" + + "_UNSUPPORTED\020\370\363\236a\"A\n\006Status\022\024\n\020UNDEFINED" + + "_STATUS\020\000\022\021\n\tAVAILABLE\020\251\265\346\322\001\022\016\n\006CLOSED\020\354" + + "\252\243\265\001B\n\n\010_addressB\'\n%_attachment_configur" + + "ation_constraintsB\007\n\005_cityB\016\n\014_constrain" + + "tsB\014\n\n_continentB\025\n\023_creation_timestampB" + + "\016\n\014_descriptionB\024\n\022_facility_providerB \n" + + "\036_facility_provider_facility_idB\005\n\003_idB\007" + + "\n\005_kindB\007\n\005_lacpB\027\n\025_max_lag_size100_gbp" + + "sB\026\n\024_max_lag_size10_gbpsB\007\n\005_nameB\030\n\026_p" + + "eeringdb_facility_idB\021\n\017_remote_serviceB" + + "\014\n\n_self_linkB\t\n\007_status\"\305\004\n%Interconnec" + + "tRemoteLocationConstraints\022*\n\031port_pair_" + + "remote_location\030\247\262\274\354\001 \001(\tH\000\210\001\001\022\037\n\016port_p" + + "air_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n\023subnet_length" + + "_range\030\306\260\373W \001(\0132O.google.cloud.compute.v" + + "1.InterconnectRemoteLocationConstraintsS" + + "ubnetLengthRangeH\002\210\001\001\"\234\001\n\026PortPairRemote" + + "Location\022\'\n#UNDEFINED_PORT_PAIR_REMOTE_L" + + "OCATION\020\000\022)\n\"PORT_PAIR_MATCHING_REMOTE_L" + + "OCATION\020\323\213\354b\022.\n\'PORT_PAIR_UNCONSTRAINED_" + + "REMOTE_LOCATION\020\245\252\363\034\"q\n\014PortPairVlan\022\034\n\030" + + "UNDEFINED_PORT_PAIR_VLAN\020\000\022\036\n\027PORT_PAIR_" + + "MATCHING_VLAN\020\276\350\254w\022#\n\034PORT_PAIR_UNCONSTR" + + "AINED_VLAN\020\254\210\307SB\034\n\032_port_pair_remote_loc" + + "ationB\021\n\017_port_pair_vlanB\026\n\024_subnet_leng" + + "th_range\"p\n6InterconnectRemoteLocationCo" + + "nstraintsSubnetLengthRange\022\022\n\003max\030\344\312\006 \001(" + + "\005H\000\210\001\001\022\022\n\003min\030\322\314\006 \001(\005H\001\210\001\001B\006\n\004_maxB\006\n\004_m" + + "in\"\305\002\n\036InterconnectRemoteLocationList\022\020\n" + + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n\005items\030\300\317\367/ \003(\01323.goog" + + "le.cloud.compute.v1.InterconnectRemoteLo" + + "cation\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" + + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" + + " \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_" + + "kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n" + + "\n\010_warning\"r\n.InterconnectRemoteLocation" + + "PermittedConnections\022&\n\025interconnect_loc" + + "ation\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n\026_interconnect_lo" + + "cation\"z\n#InterconnectsGetDiagnosticsRes" + + "ponse\022H\n\006result\030\235\220\267B \001(\01320.google.cloud." + + "compute.v1.InterconnectDiagnosticsH\000\210\001\001B" + + "\t\n\007_result\"\233\001\n$InterconnectsGetMacsecCon" + + "figResponse\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n\006res" + + "ult\030\235\220\267B \001(\01321.google.cloud.compute.v1.I" + + "nterconnectMacsecConfigH\001\210\001\001B\007\n\005_etagB\t\n" + + "\007_result\"\351\001\n\034InvalidateCacheUrlMapReques" + + "t\022a\n cache_invalidation_rule_resource\030\255\303" + + "\223\225\001 \001(\0132..google.cloud.compute.v1.CacheI" + + "nvalidationRuleB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_reques" + + "t_id\"D\n\005Items\022\022\n\003key\030\337\274\006 \001(\tH\000\210\001\001\022\025\n\005val" + + "ue\030\361\242\2625 \001(\tH\001\210\001\001B\006\n\004_keyB\010\n\006_value\"\375\003\n\007L" + + "icense\022 \n\017charges_use_fee\030\316\241\312\261\001 \001(\010H\000\210\001\001" + + "\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H" + + "\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\033\n\014license_co" + + "de\030\253\306Y \001(\004H\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022[\n" + + "\025resource_requirements\030\241\262\227f \001(\01324.google" + + ".cloud.compute.v1.LicenseResourceRequire" + + "mentsH\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\034" + + "\n\014transferable\030\305\277\211\002 \001(\010H\t\210\001\001B\022\n\020_charges" + + "_use_feeB\025\n\023_creation_timestampB\016\n\014_desc" + + "riptionB\005\n\003_idB\007\n\005_kindB\017\n\r_license_code" + + "B\007\n\005_nameB\030\n\026_resource_requirementsB\014\n\n_" + + "self_linkB\017\n\r_transferable\"\224\004\n\013LicenseCo" + + "de\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034" + + "\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(" + + "\004H\002\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022J\n\rlicense_" + + "alias\030\322\221\342\024 \003(\01320.google.cloud.compute.v1" + + ".LicenseCodeLicenseAlias\022\024\n\004name\030\213\365\315\001 \001(" + + "\tH\004\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022\025\n\005st" + + "ate\030\221\211\2534 \001(\tH\006\210\001\001\022\034\n\014transferable\030\305\277\211\002 \001" + + "(\010H\007\210\001\001\"\177\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\020\n" + + "\010DISABLED\020\374\324\260\366\001\022\016\n\007ENABLED\020\241\256\354V\022\021\n\nRESTR" + + "ICTED\020\333\350\333|\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022\021\n" + + "\nTERMINATED\020\243\364\233wB\025\n\023_creation_timestampB" + + "\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_name" + + "B\014\n\n_self_linkB\010\n\006_stateB\017\n\r_transferabl" + + "e\"q\n\027LicenseCodeLicenseAlias\022\034\n\013descript" + + "ion\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\001\210\001\001B\016\n\014_descriptionB\014\n\n_self_link\"\234\001\n" + + "\031LicenseResourceCommitment\022\026\n\006amount\030\330\240\351" + + "] \001(\003H\000\210\001\001\022!\n\021cores_per_license\030\224\310\276\017 \001(\t" + + "H\001\210\001\001\022\027\n\007license\030\301\210\302O \001(\tH\002\210\001\001B\t\n\007_amoun" + + "tB\024\n\022_cores_per_licenseB\n\n\010_license\"\215\001\n\033" + + "LicenseResourceRequirements\022$\n\023min_guest" + + "_cpu_count\030\244\324\364\343\001 \001(\005H\000\210\001\001\022\036\n\rmin_memory_" + + "mb\030\346\327\331\360\001 \001(\005H\001\210\001\001B\026\n\024_min_guest_cpu_coun" + + "tB\020\n\016_min_memory_mb\"\211\002\n\024LicensesListResp" + + "onse\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0222\n\005items\030\300\317\367/ \003(\013" + + "2 .google.cloud.compute.v1.License\022\037\n\017ne" + + "xt_page_token\030\225\272\206& \001(\tH\001\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\002\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" + + "ogle.cloud.compute.v1.WarningH\003\210\001\001B\005\n\003_i" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"\263\002\n\033ListAcceleratorTypesRequest\022" + + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030" + + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" + + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" + + "\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_" + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" - + "page_tokenB\031\n\027_return_partial_success\"\234\002" - + "\n\032ListBackendServicesRequest\022\027\n\006filter\030\370" - + "\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210" - + "\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_tok" - + "en\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" - + "\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210" - + "\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cess\"\254\002\n\024ListDiskTypesRequest\022\027\n\006filter\030" + + "page_tokenB\031\n\027_return_partial_success\"\256\002" + + "\n\024ListAddressesRequest\022\027\n\006filter\030\370\226\243\240\001 \001" + + "(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010" + + "order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304" + + "\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" + + "egion\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_su" + + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_" + + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" + + "return_partial_success\"]\n%ListAssociatio" + + "nsFirewallPolicyRequest\022 \n\017target_resour" + + "ce\030\374\355\352\336\001 \001(\tH\000\210\001\001B\022\n\020_target_resource\"\256\002" + + "\n\026ListAutoscalersRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024" + + "\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_" + + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" + + "return_partial_success\"\307\002\n-ListAvailable" + + "FeaturesRegionSslPoliciesRequest\022\027\n\006filt" + + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" + + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_" + + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filte" + + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" + + "tokenB\031\n\027_return_partial_success\"\251\002\n\'Lis" + + "tAvailableFeaturesSslPoliciesRequest\022\027\n\006" + + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" + + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" + + " \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366" + + "\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n" + + "\t_order_byB\r\n\013_page_tokenB\031\n\027_return_par" + + "tial_success\"\233\002\n\031ListBackendBucketsReque" + + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" + + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" + + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec", + "t\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succes" + + "s\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_success\"\234\002\n\032ListBackendServic" + + "esRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" + + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" + + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial" + + "_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_m" + + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" + + "\n\027_return_partial_success\"\254\002\n\024ListDiskTy" + + "pesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013m" + + "ax_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307" + + "L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027" + + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partia" + + "l_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(" + + "\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" + + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" + + "_success\"\250\002\n\020ListDisksRequest\022\027\n\006filter\030" + "\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001" + "\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_to" + "ken\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + "A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004" + "\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014" + "_max_resultsB\013\n\t_order_byB\r\n\013_page_token" - + "B\031\n\027_return_partial_success\"\250\002\n\020ListDisk" - + "sRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max" - + "_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L " - + "\001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_" - + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB" - + "\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_orde", - "r_byB\r\n\013_page_tokenB\031\n\027_return_partial_s" - + "uccess\"\323\002\n\034ListDisksStoragePoolsRequest\022" - + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030" - + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" - + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001\022\035\n\014storage_pool\030\340\306\361\253\001 \001(\tB" - + "\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n" - + "\014_max_resultsB\013\n\t_order_byB\r\n\013_page_toke" - + "nB\031\n\027_return_partial_success\"\346\002\n&ListErr" - + "orsInstanceGroupManagersRequest\022\027\n\006filte" - + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instance_group_manag" - + "er\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\r" - + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" - + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" + + "B\031\n\027_return_partial_success\"\323\002\n\034ListDisk" + + "sStoragePoolsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t" + + "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\035\n\014st" + + "orage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001" + + "(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" + + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" + + "l_success\"\346\002\n&ListErrorsInstanceGroupMan" + + "agersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350" + + "\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_part" + + "ial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 " + + "\001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_" + + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" + + "al_success\"\356\002\n,ListErrorsRegionInstanceG" + + "roupManagersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + + "\000\210\001\001\022&\n\026instance_group_manager\030\303\367\363v \001(\tB" + + "\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" + + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" + + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regi" + + "on\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_succe" + + "ss\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_res" + + "ultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_ret" + + "urn_partial_success\"\240\002\n\036ListExternalVpnG" + + "atewaysRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" + + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" + + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" + + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_pa" + + "rtial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB" + + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" + + "kenB\031\n\027_return_partial_success\"\256\002\n\033ListF" + + "irewallPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001" + + "(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010" + + "order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304" + + "\t \001(\tH\003\210\001\001\022\032\n\tparent_id\030\320\341\232\333\001 \001(\tH\004\210\001\001\022\'" + + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001B" + + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" + + "\r\n\013_page_tokenB\014\n\n_parent_idB\031\n\027_return_" + + "partial_success\"\226\002\n\024ListFirewallsRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results" + + "\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001" + + "\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" + + "\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_result" + + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" + + "_partial_success\"\264\002\n\032ListForwardingRules" + + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" + + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" + + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" + "\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" - + "H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016" - + "\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_tok" - + "enB\031\n\027_return_partial_success\"\356\002\n,ListEr" - + "rorsRegionInstanceGroupManagersRequest\022\027" - + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instance_grou" - + "p_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_results\030\233" + + "H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" + + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" + + "success\"\234\002\n\032ListGlobalAddressesRequest\022\027" + + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233" + "\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032" + "\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026r" - + "eturn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007" - + "_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013" - + "_page_tokenB\031\n\027_return_partial_success\"\240" - + "\002\n\036ListExternalVpnGatewaysRequest\022\027\n\006fil" - + "ter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001" - + "(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npag" - + "e_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(" - + "\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001" - + "(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\256\002\n\033ListFirewallPoliciesReques" - + "t\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_result" - + "s\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001" - + "\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\032\n\tparent_" - + "id\030\320\341\232\333\001 \001(\tH\004\210\001\001\022\'\n\026return_partial_succ" - + "ess\030\266\244\317\366\001 \001(\010H\005\210\001\001B\t\n\007_filterB\016\n\014_max_re" - + "sultsB\013\n\t_order_byB\r\n\013_page_tokenB\014\n\n_pa" - + "rent_idB\031\n\027_return_partial_success\"\226\002\n\024L" - + "istFirewallsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" - + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" - + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" - + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\264\002\n\032" - + "ListForwardingRulesRequest\022\027\n\006filter\030\370\226\243" - + "\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001" - + "\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token" - + "\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partia" - + "l_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_" - + "max_resultsB\013\n\t_order_byB\r\n\013_page_tokenB" - + "\031\n\027_return_partial_success\"\234\002\n\032ListGloba" - + "lAddressesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210" - + "\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order" - + "_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\t" - + "H\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return" - + "_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filt" - + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"\242\002\n Li" - + "stGlobalForwardingRulesRequest\022\027\n\006filter" + + "\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244" + + "\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB" + + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" + + "artial_success\"\242\002\n ListGlobalForwardingR" + + "ulesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" + + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" + + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_parti" + + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014" + + "_max_resultsB\013\n\t_order_byB\r\n\013_page_token" + + "B\031\n\027_return_partial_success\"\250\002\n&ListGlob" + + "alNetworkEndpointGroupsRequest\022\027\n\006filter" + "\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH" + "\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_t" + "oken\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003" + "\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" + "\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_orde" + "r_byB\r\n\013_page_tokenB\031\n\027_return_partial_s" - + "uccess\"\250\002\n&ListGlobalNetworkEndpointGrou" - + "psRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" - + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial" - + "_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_m" - + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" - + "\n\027_return_partial_success\"\235\002\n\033ListGlobal" - + "OperationsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210" - + "\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order" - + "_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\t" - + "H\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return" - + "_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filt" - + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"\272\002\n\'Li" - + "stGlobalOrganizationOperationsRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" - + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\032\n\tparent_id\030\320" - + "\341\232\333\001 \001(\tH\004\210\001\001\022\'\n\026return_partial_success\030" - + "\266\244\317\366\001 \001(\010H\005\210\001\001B\t\n\007_filterB\016\n\014_max_result" - + "sB\013\n\t_order_byB\r\n\013_page_tokenB\014\n\n_parent" - + "_idB\031\n\027_return_partial_success\"\252\002\n(ListG" - + "lobalPublicDelegatedPrefixesRequest\022\027\n\006f" - + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" - + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" - + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" - + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" - + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"\231\002\n\027ListHealthChecksRequest\022" + + "uccess\"\235\002\n\033ListGlobalOperationsRequest\022\027" + + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233" + + "\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032" + + "\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226" + + "\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244" + + "\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB" + + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" + + "artial_success\"\272\002\n\'ListGlobalOrganizatio" + + "nOperationsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010orde" + + "r_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(" + + "\tH\003\210\001\001\022\032\n\tparent_id\030\320\341\232\333\001 \001(\tH\004\210\001\001\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\014\n\n_parent_idB\031\n\027_return_part" + + "ial_success\"\252\002\n(ListGlobalPublicDelegate" + + "dPrefixesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" + + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" + + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" + + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_" + + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filte" + + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" + + "tokenB\031\n\027_return_partial_success\"\231\002\n\027Lis" + + "tHealthChecksRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t" + + "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + + "age_tokenB\031\n\027_return_partial_success\"\223\002\n" + + "\021ListImagesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010orde" + + "r_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(" + + "\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fil" + + "terB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" + + "e_tokenB\031\n\027_return_partial_success\"\355\002\n-L" + + "istInstanceGroupManagerResizeRequestsReq" + + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instanc" + + "e_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_res" + + "ults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH" + + "\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succ" + + "ess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002" + + "B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_by" + + "B\r\n\013_page_tokenB\031\n\027_return_partial_succe" + + "ss\"\270\002\n ListInstanceGroupManagersRequest\022" + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030" + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" + "\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" - + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" - + "partial_success\"\223\002\n\021ListImagesRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" - + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" - + "\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013" - + "\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_pa" - + "rtial_success\"\355\002\n-ListInstanceGroupManag" - + "erResizeRequestsRequest\022\027\n\006filter\030\370\226\243\240\001 " - + "\001(\tH\000\210\001\001\022&\n\026instance_group_manager\030\303\367\363v " - + "\001(\tB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260" - + "\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026" - + "return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_r" - + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" - + "eturn_partial_success\"\270\002\n ListInstanceGr" - + "oupManagersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + + "\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\261\002" + + "\n\031ListInstanceGroupsRequest\022\027\n\006filter\030\370\226" + + "\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001" + + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_toke" + + "n\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001" + + "\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_m" + + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" + + "\n\027_return_partial_success\"\236\002\n\034ListInstan" + + "ceTemplatesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010orde" + "r_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(" + "\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retur" - + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone" - + "\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_result" - + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" - + "_partial_success\"\261\002\n\031ListInstanceGroupsR" - + "equest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_r" - + "esults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(" - + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_su" - + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340" - + "A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cess\"\236\002\n\034ListInstanceTemplatesRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" - + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" - + "\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013" - + "\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_pa" - + "rtial_success\"\331\003\n\"ListInstancesInstanceG" - + "roupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n" - + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022}\n/instanc" - + "e_groups_list_instances_request_resource" - + "\030\237\250\214\343\001 \001(\0132;.google.cloud.compute.v1.Ins" - + "tanceGroupsListInstancesRequestB\003\340A\002\022\033\n\013" - + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" - + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" - + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_parti" - + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\356\003\n(ListInstancesRegionInstanc" - + "eGroupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\036\n\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\033\n\013max_r" - + "esults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(" - + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003" - + "\340A\002\022\211\001\n6region_instance_groups_list_inst" - + "ances_request_resource\030\324\251\200\027 \001(\0132A.google" - + ".cloud.compute.v1.RegionInstanceGroupsLi" - + "stInstancesRequestB\003\340A\002\022\'\n\026return_partia" - + "l_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_" - + "max_resultsB\013\n\t_order_byB\r\n\013_page_tokenB" - + "\031\n\027_return_partial_success\"\254\002\n\024ListInsta" - + "ncesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" - + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" - + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" - + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_parti" - + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\263\002\n\033ListInstantSnapshotsReques" - + "t\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_result" - + "s\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001" - + "\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success" - + "\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" - + "\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n" - + "\013_page_tokenB\031\n\027_return_partial_success\"" - + "\274\002\n\"ListInterconnectAttachmentsRequest\022\027" - + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233" - + "\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032" - + "\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026r" - + "eturn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007" - + "_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013" - + "_page_tokenB\031\n\027_return_partial_success\"\242" - + "\002\n ListInterconnectLocationsRequest\022\027\n\006f" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fil" + + "terB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" + + "e_tokenB\031\n\027_return_partial_success\"\331\003\n\"L" + + "istInstancesInstanceGroupsRequest\022\027\n\006fil" + + "ter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n\016instance_group\030\325\324\325" + + "& \001(\tB\003\340A\002\022}\n/instance_groups_list_insta" + + "nces_request_resource\030\237\250\214\343\001 \001(\0132;.google" + + ".cloud.compute.v1.InstanceGroupsListInst" + + "ancesRequestB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(" + + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" + + "\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB" + + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" + + "kenB\031\n\027_return_partial_success\"\356\003\n(ListI" + + "nstancesRegionInstanceGroupsRequest\022\027\n\006f" + + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n\016instance_group\030\325" + + "\324\325& \001(\tB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001" + + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_toke" + + "n\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\211\001\n6region_inst" + + "ance_groups_list_instances_request_resou" + + "rce\030\324\251\200\027 \001(\0132A.google.cloud.compute.v1.R" + + "egionInstanceGroupsListInstancesRequestB" + + "\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" + + "H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" + + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" + + "success\"\254\002\n\024ListInstancesRequest\022\027\n\006filt" + + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" + + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" + + "\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB" + + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" + + "kenB\031\n\027_return_partial_success\"\263\002\n\033ListI" + + "nstantSnapshotsRequest\022\027\n\006filter\030\370\226\243\240\001 \001" + + "(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010" + + "order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304" + + "\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026r" + + "eturn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004" + + "zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_re" + + "sultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_re" + + "turn_partial_success\"\274\002\n\"ListInterconnec" + + "tAttachmentsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" + + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" + + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regi" + + "on\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_succe" + + "ss\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_res" + + "ultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_ret" + + "urn_partial_success\"\242\002\n ListInterconnect" + + "LocationsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" + + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" + + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" + + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_" + + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filte" + + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" + + "tokenB\031\n\027_return_partial_success\"\250\002\n&Lis" + + "tInterconnectRemoteLocationsRequest\022\027\n\006f" + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"\250\002\n&ListInterconnectRemoteLo" - + "cationsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" - + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" - + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_pa" - + "rtial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB" - + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" - + "kenB\031\n\027_return_partial_success\"\232\002\n\030ListI" - + "nterconnectsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" - + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" - + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" - + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\225\002\n\023" - + "ListLicensesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" - + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" - + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" - + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\232\002\n\030" - + "ListMachineImagesRequest\022\027\n\006filter\030\370\226\243\240\001" - + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" - + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" - + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" - + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t" - + "\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r" - + "\n\013_page_tokenB\031\n\027_return_partial_success" - + "\"\257\002\n\027ListMachineTypesRequest\022\027\n\006filter\030\370" - + "\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210" - + "\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_tok" - + "en\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" - + "\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210" - + "\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_" - + "max_resultsB\013\n\t_order_byB\r\n\013_page_tokenB" - + "\031\n\027_return_partial_success\"\360\002\n0ListManag" - + "edInstancesInstanceGroupManagersRequest\022" - + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instance_gro" - + "up_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_results\030" - + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" - + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_" - + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" - + "page_tokenB\031\n\027_return_partial_success\"\370\002" - + "\n6ListManagedInstancesRegionInstanceGrou" - + "pManagersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" - + "\001\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A" - + "\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" - + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" - + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030" - + "\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" + + "ial_success\"\232\002\n\030ListInterconnectsRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results" + + "\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001" + + "\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" + "\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_result" + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" - + "_partial_success\"\267\002\n\035ListNetworkAttachme" - + "ntsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013m" - + "ax_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307" - + "L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027" - + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001" - + "(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 " - + "\001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_" - + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" - + "al_success\"\270\002\n ListNetworkEndpointGroups" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" - + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" - + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_s" - + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003" - + "\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order" - + "_byB\r\n\013_page_tokenB\031\n\027_return_partial_su" - + "ccess\"\341\002\n6ListNetworkEndpointsGlobalNetw" - + "orkEndpointGroupsRequest\022\027\n\006filter\030\370\226\243\240\001" - + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\'" - + "\n\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022" - + "\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030" - + "\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'" - + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B" - + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" - + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" - + "s\"\377\003\n0ListNetworkEndpointsNetworkEndpoin" - + "tGroupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\'\n\026network_" - + "endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n7networ" - + "k_endpoint_groups_list_endpoints_request" - + "_resource\030\216\230\257\034 \001(\0132B.google.cloud.comput" - + "e.v1.NetworkEndpointGroupsListEndpointsR" - + "equestB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "_partial_success\"\225\002\n\023ListLicensesRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results" + + "\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001" + + "\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" + + "\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_result" + + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" + + "_partial_success\"\232\002\n\030ListMachineImagesRe" + + "quest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_re" + + "sults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\t" + + "H\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pro" + + "ject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_suc" + + "cess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_r" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" + + "eturn_partial_success\"\257\002\n\027ListMachineTyp" + + "esRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" + + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" + + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial" + + "_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\t" + + "B\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" + + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" + + "success\"\360\002\n0ListManagedInstancesInstance" + + "GroupManagersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t" + + "H\000\210\001\001\022&\n\026instance_group_manager\030\303\367\363v \001(\t" + + "B\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_success\"\370\002\n6ListManagedInstan" + + "cesRegionInstanceGroupManagersRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instance_group" + + "_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" - + "\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\371\002\n6" - + "ListNetworkEndpointsRegionNetworkEndpoin" - + "tGroupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\'\n\026network_" - + "endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\030\n\010order_b" - + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" - + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" - + "partial_success\"\244\002\n\"ListNetworkFirewallP" - + "oliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" - + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" - + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_pa" - + "rtial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB" - + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" - + "kenB\031\n\027_return_partial_success\"\225\002\n\023ListN" - + "etworksRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" - + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" - + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_pa" - + "rtial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB" - + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" - + "kenB\031\n\027_return_partial_success\"\255\002\n\025ListN" - + "odeGroupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" - + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" - + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" - + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_" - + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254" - + "\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB" - + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" - + "artial_success\"\262\002\n\030ListNodeTemplatesRequ" - + "est\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resu" - + "lts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002" - + "\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002" - + "\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001" - + "\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_b" - + "yB\r\n\013_page_tokenB\031\n\027_return_partial_succ" - + "ess\"\254\002\n\024ListNodeTypesRequest\022\027\n\006filter\030\370" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\267\002" + + "\n\035ListNetworkAttachmentsRequest\022\027\n\006filte" + + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" + + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_p" + + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_success\"\270\002\n List" + + "NetworkEndpointGroupsRequest\022\027\n\006filter\030\370" + "\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210" + "\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_tok" + "en\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + "\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210" + "\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_" + "max_resultsB\013\n\t_order_byB\r\n\013_page_tokenB" - + "\031\n\027_return_partial_success\"\317\002\n\032ListNodes" - + "NodeGroupsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210" - + "\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\033\n\nnode_" - + "group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(" + + "\031\n\027_return_partial_success\"\341\002\n6ListNetwo" + + "rkEndpointsGlobalNetworkEndpointGroupsRe" + + "quest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_re" + + "sults\030\233\310\213\032 \001(\rH\001\210\001\001\022\'\n\026network_endpoint_" + + "group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(" + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" + "oject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_su" - + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340" - + "A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cess\"\265\002\n\033ListPacketMirroringsRequest\022\027\n\006" - + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" - + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_" + + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" + + "return_partial_success\"\377\003\n0ListNetworkEn" + + "dpointsNetworkEndpointGroupsRequest\022\027\n\006f" + + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + + " \001(\rH\001\210\001\001\022\'\n\026network_endpoint_group\030\206\313\363\316" + + "\001 \001(\tB\003\340A\002\022\213\001\n7network_endpoint_groups_l" + + "ist_endpoints_request_resource\030\216\230\257\034 \001(\0132" + + "B.google.cloud.compute.v1.NetworkEndpoin" + + "tGroupsListEndpointsRequestB\003\340A\002\022\030\n\010orde" + + "r_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(" + + "\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone" + + "\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_result" + + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" + + "_partial_success\"\371\002\n6ListNetworkEndpoint" + + "sRegionNetworkEndpointGroupsRequest\022\027\n\006f" + + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + + " \001(\rH\001\210\001\001\022\'\n\026network_endpoint_group\030\206\313\363\316" + + "\001 \001(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_success\"\200\004\n" - + " ListPeeringRoutesNetworksRequest\022\031\n\tdir" - + "ection\030\377\216\2005 \001(\tH\000\210\001\001\022\027\n\006filter\030\370\226\243\240\001 \001(\t" - + "H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\027\n\007ne" - + "twork\030\256\264\205o \001(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(\t" - + "H\003\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\004\210\001\001\022\034\n\014pee" - + "ring_name\030\252\320\200w \001(\tH\005\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\007\210\001\001\"H\n\tDir" - + "ection\022\027\n\023UNDEFINED_DIRECTION\020\000\022\020\n\010INCOM" - + "ING\020\246\320\267\241\001\022\020\n\010OUTGOING\020\354\306\314\222\001B\014\n\n_directio" - + "nB\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_b" - + "yB\r\n\013_page_tokenB\017\n\r_peering_nameB\t\n\007_re" - + "gionB\031\n\027_return_partial_success\"\362\002\n2List" - + "PerInstanceConfigsInstanceGroupManagersR" - + "equest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026insta" - + "nce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_r" - + "esults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(" - + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_su" - + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340" - + "A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cess\"\372\002\n8ListPerInstanceConfigsRegionIns" - + "tanceGroupManagersRequest\022\027\n\006filter\030\370\226\243\240" - + "\001 \001(\tH\000\210\001\001\022&\n\026instance_group_manager\030\303\367\363" - + "v \001(\tB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022" - + "\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030" - + "\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026" - + "\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial" - + "_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_m" - + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" - + "\n\027_return_partial_success\"\270\002\n6ListPrecon" - + "figuredExpressionSetsSecurityPoliciesReq" - + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_res" - + "ults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH" - + "\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succ" - + "ess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_re" - + "sultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_re" - + "turn_partial_success\"\245\002\n#ListPublicAdver" - + "tisedPrefixesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t", - "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" - + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " - + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" - + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" - + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_success\"\274\002\n" - + "\"ListPublicDelegatedPrefixesRequest\022\027\n\006f" + + "age_tokenB\031\n\027_return_partial_success\"\244\002\n" + + "\"ListNetworkFirewallPoliciesRequest\022\027\n\006f" + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\317\002\n\035" - + "ListReferrersInstancesRequest\022\027\n\006filter\030" - + "\370\226\243\240\001 \001(\tH\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002" - + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" - + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_p" - + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307" - + "\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013" - + "\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_pa" - + "rtial_success\"\266\002\n\034ListRegionAutoscalersR" - + "equest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_r" - + "esults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(" - + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003" - + "\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" - + "\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_orde" - + "r_byB\r\n\013_page_tokenB\031\n\027_return_partial_s" - + "uccess\"\272\002\n ListRegionBackendServicesRequ" - + "est\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resu" - + "lts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002" - + "\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proje" - + "ct\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002" - + "\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001" - + "\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_b" - + "yB\r\n\013_page_tokenB\031\n\027_return_partial_succ" - + "ess\"\266\002\n\034ListRegionCommitmentsRequest\022\027\n\006" - + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" - + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" - + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" - + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" - + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_success\"\264\002\n" - + "\032ListRegionDiskTypesRequest\022\027\n\006filter\030\370\226" - + "\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001" - + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_toke" - + "n\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_parti" - + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014" - + "_max_resultsB\013\n\t_order_byB\r\n\013_page_token" - + "B\031\n\027_return_partial_success\"\260\002\n\026ListRegi" - + "onDisksRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" - + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" - + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" - + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315" - + "\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244" - + "\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB" + + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" + + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" + + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" + + "ial_success\"\234\002\n\032ListNetworkProfilesReque" + + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" + + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" + + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succes" + + "s\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_success\"\225\002\n\023ListNetworksReque" + + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" + + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" + + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succes" + + "s\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_success\"\255\002\n\025ListNodeGroupsReq" + + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_res" + + "ults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH" + + "\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succ" + + "ess\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002" + + "B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_by" + + "B\r\n\013_page_tokenB\031\n\027_return_partial_succe" + + "ss\"\262\002\n\030ListNodeTemplatesRequest\022\027\n\006filte" + + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" + + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_p" + + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_success\"\254\002\n\024List" + + "NodeTypesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" + + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" + + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" + + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_" + + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254" + + "\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB" + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" - + "artial_success\"\276\002\n$ListRegionHealthCheck" - + "ServicesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" - + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" - + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" - + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" - + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" - + "partial_success\"\267\002\n\035ListRegionHealthChec" - + "ksRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" - + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001" - + "(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\300\002\n&ListRegionInstanceGroupMan" - + "agersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350" - + "\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001" - + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" - + " \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366" - + "\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n" - + "\t_order_byB\r\n\013_page_tokenB\031\n\027_return_par" - + "tial_success\"\271\002\n\037ListRegionInstanceGroup" - + "sRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max" - + "_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L " - + "\001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" - + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" - + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" - + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" - + "_success\"\274\002\n\"ListRegionInstanceTemplates" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" - + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" - + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" - + "H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" - + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" - + "success\"\273\002\n!ListRegionInstantSnapshotsRe" + + "artial_success\"\317\002\n\032ListNodesNodeGroupsRe" + "quest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_re" - + "sults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\t" - + "H\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pro" - + "ject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340" - + "A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004" - + "\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order" - + "_byB\r\n\013_page_tokenB\031\n\027_return_partial_su" - + "ccess\"\300\002\n&ListRegionNetworkEndpointGroup" - + "sRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max" - + "_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L " - + "\001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" - + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" - + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" - + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" - + "_success\"\302\002\n(ListRegionNetworkFirewallPo" - + "liciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033" + + "sults\030\233\310\213\032 \001(\rH\001\210\001\001\022\033\n\nnode_group\030\202\374\213\340\001 " + + "\001(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npa" + + "ge_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 " + + "\001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filte" + + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" + + "tokenB\031\n\027_return_partial_success\"\265\002\n\033Lis" + + "tPacketMirroringsRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\200\004\n ListPeering" + + "RoutesNetworksRequest\022\031\n\tdirection\030\377\216\2005 " + + "\001(\tH\000\210\001\001\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\001\210\001\001\022\033\n\013max" + + "_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\027\n\007network\030\256\264\205o \001" + + "(\tB\003\340A\002\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npag" + + "e_token\030\311\260\304\t \001(\tH\004\210\001\001\022\034\n\014peering_name\030\252\320" + + "\200w \001(\tH\005\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + + "region\030\364\315\240B \001(\tH\006\210\001\001\022\'\n\026return_partial_s" + + "uccess\030\266\244\317\366\001 \001(\010H\007\210\001\001\"H\n\tDirection\022\027\n\023UN" + + "DEFINED_DIRECTION\020\000\022\020\n\010INCOMING\020\246\320\267\241\001\022\020\n", + "\010OUTGOING\020\354\306\314\222\001B\014\n\n_directionB\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\017\n\r_peering_nameB\t\n\007_regionB\031\n\027_ret" + + "urn_partial_success\"\362\002\n2ListPerInstanceC" + + "onfigsInstanceGroupManagersRequest\022\027\n\006fi" + + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n\026instance_group_ma" + + "nager\030\303\367\363v \001(\tB\003\340A\002\022\033\n\013max_results\030\233\310\213\032 " + + "\001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npa" + + "ge_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 " + + "\001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filte" + + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" + + "tokenB\031\n\027_return_partial_success\"\372\002\n8Lis" + + "tPerInstanceConfigsRegionInstanceGroupMa" + + "nagersRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&" + + "\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033" + "\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030" + "\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001" + "\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240" + "B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" + "\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013" + "\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_pa" - + "rtial_success\"\300\002\n&ListRegionNotification" - + "EndpointsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" - + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" - + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" - + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030" - + "\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" - + "\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_result" - + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" - + "_partial_success\"\265\002\n\033ListRegionOperation" - + "sRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max" - + "_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L " - + "\001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" + + "rtial_success\"\270\002\n6ListPreconfiguredExpre" + + "ssionSetsSecurityPoliciesRequest\022\027\n\006filt" + + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" + + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" - + "_success\"\273\002\n!ListRegionSecurityPoliciesR" - + "equest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_r" - + "esults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(" - + "\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003" - + "\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" - + "\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_orde" - + "r_byB\r\n\013_page_tokenB\031\n\027_return_partial_s" - + "uccess\"\272\002\n ListRegionSslCertificatesRequ" + + "_success\"\245\002\n#ListPublicAdvertisedPrefixe" + + "sRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max" + + "_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L " + + "\001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\274\002\n\"ListPublicD" + + "elegatedPrefixesRequest\022\027\n\006filter\030\370\226\243\240\001 " + + "\001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260" + + "\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + + "region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_s" + + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max" + + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" + + "_return_partial_success\"\317\002\n\035ListReferrer" + + "sInstancesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210" + + "\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\033\n\013max_resu" + + "lts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002" + + "\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succe" + + "ss\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B" + + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" + + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" + + "s\"\266\002\n\034ListRegionAutoscalersRequest\022\027\n\006fi" + + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 " + + "\001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npa" + + "ge_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fil" + + "terB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" + + "e_tokenB\031\n\027_return_partial_success\"\272\002\n L" + + "istRegionBackendServicesRequest\022\027\n\006filte" + + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" + + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_p" + + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_success\"\266\002\n\034List" + + "RegionCommitmentsRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\264\002\n\032ListRegionD" + + "iskTypesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" + + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" + + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" + + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" + + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" + + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" + + "partial_success\"\260\002\n\026ListRegionDisksReque" + + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" + + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" + + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022" + + "\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001" + + "B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_by" + + "B\r\n\013_page_tokenB\031\n\027_return_partial_succe" + + "ss\"\276\002\n$ListRegionHealthCheckServicesRequ" + "est\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resu" + "lts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002" + "\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proje" @@ -12198,7 +12238,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001" + "\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_b" + "yB\r\n\013_page_tokenB\031\n\027_return_partial_succ" - + "ess\"\266\002\n\034ListRegionSslPoliciesRequest\022\027\n\006" + + "ess\"\267\002\n\035ListRegionHealthChecksRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\300\002" + + "\n&ListRegionInstanceGroupManagersRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results" + + "\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001" + + "\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t" + + "\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r" + + "\n\013_page_tokenB\031\n\027_return_partial_success" + + "\"\271\002\n\037ListRegionInstanceGroupsRequest\022\027\n\006" + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" @@ -12206,15 +12262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + "age_tokenB\031\n\027_return_partial_success\"\274\002\n" - + "\"ListRegionTargetHttpProxiesRequest\022\027\n\006f" - + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" - + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" - + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\275\002\n#" - + "ListRegionTargetHttpsProxiesRequest\022\027\n\006f" + + "\"ListRegionInstanceTemplatesRequest\022\027\n\006f" + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " @@ -12222,2085 +12270,2316 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" + "ge_tokenB\031\n\027_return_partial_success\"\273\002\n!" - + "ListRegionTargetTcpProxiesRequest\022\027\n\006fil" + + "ListRegionInstantSnapshotsRequest\022\027\n\006fil" + "ter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001" + "(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npag" + "e_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(" + "\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return" + "_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filt" + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"\262\002\n\030Li" - + "stRegionUrlMapsRequest\022\027\n\006filter\030\370\226\243\240\001 \001" - + "(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010" - + "order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304" - + "\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" - + "egion\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_su" - + "ccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_" - + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" - + "return_partial_success\"\260\002\n\026ListRegionZon" - + "esRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" - + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001" - + "(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\224\002\n\022ListRegionsRequest\022\027\n\006filt" - + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" - + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" - + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" - + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" - + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" - + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" - + "_success\"\257\002\n\027ListReservationsRequest\022\027\n\006" + + "_tokenB\031\n\027_return_partial_success\"\300\002\n&Li" + + "stRegionNetworkEndpointGroupsRequest\022\027\n\006" + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366" - + "\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_fil" - + "terB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" - + "e_tokenB\031\n\027_return_partial_success\"\265\002\n\033L" - + "istResourcePoliciesRequest\022\027\n\006filter\030\370\226\243" - + "\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001" - + "\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token" - + "\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partia" - + "l_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_" - + "max_resultsB\013\n\t_order_byB\r\n\013_page_tokenB" - + "\031\n\027_return_partial_success\"\254\002\n\022ListRoute" - + "rsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" - + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001" - + "(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\223\002\n\021ListRoutesRequest\022\027\n\006filte" - + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" - + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" - + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" - + "H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" - + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" - + "success\"\235\002\n\033ListSecurityPoliciesRequest\022" - + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030" - + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" - + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" - + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" - + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" - + "partial_success\"\267\002\n\035ListServiceAttachmen" - + "tsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L" - + " \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001" - + "(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_success\"\226\002\n\024ListSnapshotsRequest\022\027\n\006fi" - + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 " - + "\001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npa" - + "ge_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001" - + "(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 " - + "\001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_" - + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" - + "al_success\"\234\002\n\032ListSslCertificatesReques" + + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + + "age_tokenB\031\n\027_return_partial_success\"\302\002\n" + + "(ListRegionNetworkFirewallPoliciesReques" + "t\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_result" + "s\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001" + "\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project" - + "\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success" - + "\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resul" - + "tsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retur" - + "n_partial_success\"\230\002\n\026ListSslPoliciesReq" + + "\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'" + + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B" + + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" + + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" + + "s\"\300\002\n&ListRegionNotificationEndpointsReq" + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_res" + "ults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH" + "\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succ" - + "ess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_re" - + "sultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_re" - + "turn_partial_success\"\263\002\n\033ListStoragePool" - + "TypesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350" - + "\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001" - + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_part" - + "ial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 " - + "\001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_" - + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" - + "al_success\"\257\002\n\027ListStoragePoolsRequest\022\027" - + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233" - + "\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032" - + "\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244" - + "\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_f" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" + + "\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210" + + "\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_" + + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" + + "cess\"\265\002\n\033ListRegionOperationsRequest\022\027\n\006" + + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" + + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" + + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_success\"\260\002\n" - + "\026ListSubnetworksRequest\022\027\n\006filter\030\370\226\243\240\001 " + + "age_tokenB\031\n\027_return_partial_success\"\273\002\n" + + "!ListRegionSecurityPoliciesRequest\022\027\n\006fi" + + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 " + + "\001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npa" + + "ge_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fil" + + "terB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" + + "e_tokenB\031\n\027_return_partial_success\"\272\002\n L" + + "istRegionSslCertificatesRequest\022\027\n\006filte" + + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_" + + "token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB" + + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_p" + + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_success\"\266\002\n\034List" + + "RegionSslPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\274\002\n\"ListRegionT" + + "argetHttpProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 " + "\001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260" + "\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + "region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_s" + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max" + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" - + "_return_partial_success\"\236\002\n\034ListTargetGr" - + "pcProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001" - + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_" - + "by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" - + "\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_" - + "partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filte" - + "rB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" - + "tokenB\031\n\027_return_partial_success\"\236\002\n\034Lis" - + "tTargetHttpProxiesRequest\022\027\n\006filter\030\370\226\243\240" - + "\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022" - + "\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030" - + "\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'" - + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B" - + "\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB" - + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" - + "s\"\237\002\n\035ListTargetHttpsProxiesRequest\022\027\n\006f" - + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" - + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" - + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" - + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" - + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"\262\002\n\032ListTargetInstancesReque" - + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" - + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" - + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succes" - + "s\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t" - + "\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r" - + "\n\013_page_tokenB\031\n\027_return_partial_success" - + "\"\260\002\n\026ListTargetPoolsRequest\022\027\n\006filter\030\370\226" - + "\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001" - + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_toke" - + "n\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_parti" - + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014" - + "_max_resultsB\013\n\t_order_byB\r\n\013_page_token" - + "B\031\n\027_return_partial_success\"\235\002\n\033ListTarg" - + "etSslProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + + "_return_partial_success\"\275\002\n#ListRegionTa" + + "rgetHttpsProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 " + + "\001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260" + + "\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + + "region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_s" + + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max" + + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" + + "_return_partial_success\"\273\002\n!ListRegionTa" + + "rgetTcpProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" + + "\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010o" + + "rder_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t" + + " \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" + + "gion\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_suc" + + "cess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_r" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" + + "eturn_partial_success\"\262\002\n\030ListRegionUrlM" + + "apsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013m" + + "ax_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307" + + "L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027" + + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001" + + "(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 " + + "\001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_" + + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" + + "al_success\"\260\002\n\026ListRegionZonesRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\224\002" + + "\n\022ListRegionsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t" + + "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + + "age_tokenB\031\n\027_return_partial_success\"\257\002\n" + + "\027ListReservationsRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024" + + "\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_" + + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" + + "return_partial_success\"\265\002\n\033ListResourceP" + + "oliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" + + "\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by" + + "\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210" + + "\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315" + + "\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244" + + "\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB" + + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" + + "artial_success\"\254\002\n\022ListRoutersRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\223\002" + + "\n\021ListRoutesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retu" + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" + "ge_tokenB\031\n\027_return_partial_success\"\235\002\n\033" - + "ListTargetTcpProxiesRequest\022\027\n\006filter\030\370\226" + + "ListSecurityPoliciesRequest\022\027\n\006filter\030\370\226" + "\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001" + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_toke" + "n\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + "\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001" + "\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order_b" + "yB\r\n\013_page_tokenB\031\n\027_return_partial_succ" - + "ess\"\266\002\n\034ListTargetVpnGatewaysRequest\022\027\n\006" - + "filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213" - + "\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" - + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026ret" - + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" - + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_success\"\224\002\n" - + "\022ListUrlMapsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" - + "\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010ord" - + "er_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001" - + "(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" - + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_success\"\242\002\n " - + "ListUsableBackendServicesRequest\022\027\n\006filt" + + "ess\"\267\002\n\035ListServiceAttachmentsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301" + + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026re" + + "turn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_" + + "filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_success\"\226\002" + + "\n\024ListSnapshotsRequest\022\027\n\006filter\030\370\226\243\240\001 \001" + + "(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010" + + "order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304" + + "\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026r" + + "eturn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007" + + "_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013" + + "_page_tokenB\031\n\027_return_partial_success\"\234" + + "\002\n\032ListSslCertificatesRequest\022\027\n\006filter\030" + + "\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001" + + "\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_to" + + "ken\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + + "A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004" + + "\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_order" + + "_byB\r\n\013_page_tokenB\031\n\027_return_partial_su" + + "ccess\"\230\002\n\026ListSslPoliciesRequest\022\027\n\006filt" + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" - + "_success\"\300\002\n&ListUsableRegionBackendServ" - + "icesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" + + "_success\"\263\002\n\033ListStoragePoolTypesRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results" + + "\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001" + + "\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030" + + "\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007" + + "_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013" + + "_page_tokenB\031\n\027_return_partial_success\"\257" + + "\002\n\027ListStoragePoolsRequest\022\027\n\006filter\030\370\226\243" + + "\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001" + + "\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token" + + "\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001" + + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\260\002\n\026ListSubnetw" + + "orksRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " + "\001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001" + " \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t" + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_success\"\236\002\n\034ListUsableSubnetworksReq" + + "ial_success\"\236\002\n\034ListTargetGrpcProxiesReq" + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_res" + "ults\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH" + "\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007proj" + "ect\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succ" + "ess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_re" + "sultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_re" - + "turn_partial_success\"\260\002\n\026ListVpnGateways" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" - + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" - + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" - + "H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_ord" - + "er_byB\r\n\013_page_tokenB\031\n\027_return_partial_" - + "success\"\257\002\n\025ListVpnTunnelsRequest\022\027\n\006fil" - + "ter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001" - + "(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npag", - "e_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(" - + "\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return" - + "_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filt" - + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"\215\003\n\033Li" - + "stXpnHostsProjectsRequest\022\027\n\006filter\030\370\226\243\240" - + "\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022" - + "\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030" - + "\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022n" - + "\n(projects_list_xpn_hosts_request_resour" - + "ce\030\227\320\316q \001(\01324.google.cloud.compute.v1.Pr" - + "ojectsListXpnHostsRequestB\003\340A\002\022\'\n\026return" - + "_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filt" - + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" - + "_tokenB\031\n\027_return_partial_success\"\261\002\n\031Li" - + "stZoneOperationsRequest\022\027\n\006filter\030\370\226\243\240\001 " + + "turn_partial_success\"\236\002\n\034ListTargetHttpP" + + "roxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033" + + "\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030" + + "\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001" + + "\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_par" + + "tial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016" + + "\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_tok" + + "enB\031\n\027_return_partial_success\"\237\002\n\035ListTa" + + "rgetHttpsProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 " + "\001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260" + "\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026" - + "return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_r" + + "return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n" + + "\013_page_tokenB\031\n\027_return_partial_success\"" + + "\262\002\n\032ListTargetInstancesRequest\022\027\n\006filter" + + "\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH" + + "\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_t" + + "oken\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" + + "\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n\007_filterB\016\n" + + "\014_max_resultsB\013\n\t_order_byB\r\n\013_page_toke" + + "nB\031\n\027_return_partial_success\"\260\002\n\026ListTar" + + "getPoolsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" + + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" + + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" + + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266" + + "\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_results" + + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" + + "partial_success\"\235\002\n\033ListTargetSslProxies" + + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" + + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" + + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_s" + + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max" + + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" + + "_return_partial_success\"\235\002\n\033ListTargetTc" + + "pProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" + + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_b" + + "y\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003" + + "\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_p" + + "artial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filter" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_success\"\266\002\n\034List" + + "TargetVpnGatewaysRequest\022\027\n\006filter\030\370\226\243\240\001" + + " \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030" + + "\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311" + + "\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_success\"\224\002\n\022ListUrlMaps" + + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_" + + "results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001" + + "(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_s" + + "uccess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max" + + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" + + "_return_partial_success\"\242\002\n ListUsableBa" + + "ckendServicesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\t", + "H\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010or" + + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t " + + "\001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026ret" + + "urn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_f" + + "ilterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" + + "age_tokenB\031\n\027_return_partial_success\"\300\002\n" + + "&ListUsableRegionBackendServicesRequest\022" + + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030" + + "\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022" + + "\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" + + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026" + + "return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n" + + "\013_page_tokenB\031\n\027_return_partial_success\"" + + "\236\002\n\034ListUsableSubnetworksRequest\022\027\n\006filt" + + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" + + "\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage" + + "_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" + + "\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_or" + + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" + + "_success\"\260\002\n\026ListVpnGatewaysRequest\022\027\n\006f" + + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032" + + " \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\np" + + "age_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026retu" + + "rn_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_fi" + + "lterB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" + + "ge_tokenB\031\n\027_return_partial_success\"\257\002\n\025" + + "ListVpnTunnelsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" + + "\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010o" + + "rder_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t" + + " \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006re" + + "gion\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_partial_suc" + + "cess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_r" + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" - + "eturn_partial_success\"\222\002\n\020ListZonesReque" - + "st\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_resul" - + "ts\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210" - + "\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007projec" - + "t\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_succes" - + "s\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_resu" - + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" - + "rn_partial_success\"\217\001\n\tLocalDisk\022\032\n\ndisk" - + "_count\030\355\257\235W \001(\005H\000\210\001\001\022\035\n\014disk_size_gb\030\267\232\347" - + "\226\001 \001(\005H\001\210\001\001\022\031\n\tdisk_type\030\234\351\254, \001(\tH\002\210\001\001B\r" - + "\n\013_disk_countB\017\n\r_disk_size_gbB\014\n\n_disk_" - + "type\"\\\n\020LocalizedMessage\022\027\n\006locale\030\332\234\330\364\001" - + " \001(\tH\000\210\001\001\022\030\n\007message\030\207\200\254\307\001 \001(\tH\001\210\001\001B\t\n\007_" - + "localeB\n\n\010_message\"\322\002\n\016LocationPolicy\022M\n" - + "\tlocations\030\336\256\221\305\001 \003(\01326.google.cloud.comp" - + "ute.v1.LocationPolicy.LocationsEntry\022\035\n\014" - + "target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\032a\n\016Locations" - + "Entry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.goog" - + "le.cloud.compute.v1.LocationPolicyLocati" - + "on:\0028\001\"^\n\013TargetShape\022\032\n\026UNDEFINED_TARGE" - + "T_SHAPE\020\000\022\t\n\003ANY\020\314\373\003\022\026\n\017ANY_SINGLE_ZONE\020" - + "\320\246\221\035\022\020\n\010BALANCED\020\210\272\255\337\001B\017\n\r_target_shape\"" - + "\216\002\n\026LocationPolicyLocation\022W\n\013constraint" - + "s\030\266\314\356\001 \001(\0132:.google.cloud.compute.v1.Loc" - + "ationPolicyLocationConstraintsH\000\210\001\001\022\032\n\np" - + "reference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\nPreference\022\030\n" - + "\024UNDEFINED_PREFERENCE\020\000\022\014\n\005ALLOW\020\251\326\336\035\022\n\n" - + "\004DENY\020\214\354\177\022\036\n\026PREFERENCE_UNSPECIFIED\020\263\353\316\354" - + "\001B\016\n\014_constraintsB\r\n\013_preference\"M\n!Loca" - + "tionPolicyLocationConstraints\022\032\n\tmax_cou" - + "nt\030\364\374\222\211\001 \001(\005H\000\210\001\001B\014\n\n_max_count\"\265\t\n\014Mach" - + "ineImage\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH" - + "\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\013gu" - + "est_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210" - + "\001\001\022P\n\023instance_properties\030\235\236\330f \001(\0132+.goo" - + "gle.cloud.compute.v1.InstancePropertiesH" - + "\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022]\n\034machine_im" - + "age_encryption_key\030\377\377\347\373\001 \001(\0132..google.cl" - + "oud.compute.v1.CustomerEncryptionKeyH\006\210\001" - + "\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\036\n\rsatisfies_pzi" - + "\030\241\335\253\345\001 \001(\010H\010\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001" - + "(\010H\t\210\001\001\022;\n\013saved_disks\030\276\355\300\275\001 \003(\0132\".googl" - + "e.cloud.compute.v1.SavedDisk\022\032\n\tself_lin" - + "k\030\215\222\305\331\001 \001(\tH\n\210\001\001\022Y\n\033source_disk_encrypti" - + "on_keys\030\262\370\317\260\001 \003(\01320.google.cloud.compute" - + ".v1.SourceDiskEncryptionKey\022 \n\017source_in" - + "stance\030\271\230\375\274\001 \001(\tH\013\210\001\001\022^\n\032source_instance" - + "_properties\030\371\321\313\342\001 \001(\01321.google.cloud.com" - + "pute.v1.SourceInstancePropertiesH\014\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\r\210\001\001\022\035\n\021storage_locatio" - + "ns\030\232\355\263\234\001 \003(\t\022#\n\023total_storage_bytes\030\354\207\204\'" - + " \001(\003H\016\210\001\001\"s\n\006Status\022\024\n\020UNDEFINED_STATUS\020" - + "\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\017\n" - + "\007INVALID\020\327\373\355\374\001\022\014\n\005READY\020\203\303\217%\022\020\n\tUPLOADIN" - + "G\020\241\234\315\177B\025\n\023_creation_timestampB\016\n\014_descri" - + "ptionB\016\n\014_guest_flushB\005\n\003_idB\026\n\024_instanc" - + "e_propertiesB\007\n\005_kindB\037\n\035_machine_image_" - + "encryption_keyB\007\n\005_nameB\020\n\016_satisfies_pz" - + "iB\020\n\016_satisfies_pzsB\014\n\n_self_linkB\022\n\020_so" - + "urce_instanceB\035\n\033_source_instance_proper" - + "tiesB\t\n\007_statusB\026\n\024_total_storage_bytes\"" - + "\251\002\n\020MachineImageList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227" - + "\n\005items\030\300\317\367/ \003(\0132%.google.cloud.compute." - + "v1.MachineImage\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "eturn_partial_success\"\215\003\n\033ListXpnHostsPr" + + "ojectsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033" + + "\n\013max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030" + + "\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001" + + "\001\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022n\n(projects_l" + + "ist_xpn_hosts_request_resource\030\227\320\316q \001(\0132" + + "4.google.cloud.compute.v1.ProjectsListXp" + + "nHostsRequestB\003\340A\002\022\'\n\026return_partial_suc" + + "cess\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n\007_filterB\016\n\014_max_r" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" + + "eturn_partial_success\"\261\002\n\031ListZoneOperat" + + "ionsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013" + + "max_results\030\233\310\213\032 \001(\rH\001\210\001\001\022\030\n\010order_by\030\350\375" + + "\307L \001(\tH\002\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH\003\210\001\001\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_parti" + + "al_success\030\266\244\317\366\001 \001(\010H\004\210\001\001\022\024\n\004zone\030\254\307\344\001 \001" + + "(\tB\003\340A\002B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_o" + + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" + + "l_success\"\222\002\n\020ListZonesRequest\022\027\n\006filter" + + "\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH" + + "\001\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\npage_t" + + "oken\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" + + "\004\210\001\001B\t\n\007_filterB\016\n\014_max_resultsB\013\n\t_orde" + + "r_byB\r\n\013_page_tokenB\031\n\027_return_partial_s" + + "uccess\"\217\001\n\tLocalDisk\022\032\n\ndisk_count\030\355\257\235W " + + "\001(\005H\000\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\005H\001\210\001\001\022" + + "\031\n\tdisk_type\030\234\351\254, \001(\tH\002\210\001\001B\r\n\013_disk_coun" + + "tB\017\n\r_disk_size_gbB\014\n\n_disk_type\"\\\n\020Loca" + + "lizedMessage\022\027\n\006locale\030\332\234\330\364\001 \001(\tH\000\210\001\001\022\030\n" + + "\007message\030\207\200\254\307\001 \001(\tH\001\210\001\001B\t\n\007_localeB\n\n\010_m" + + "essage\"\322\002\n\016LocationPolicy\022M\n\tlocations\030\336" + + "\256\221\305\001 \003(\01326.google.cloud.compute.v1.Locat" + + "ionPolicy.LocationsEntry\022\035\n\014target_shape" + + "\030\363\346\273\241\001 \001(\tH\000\210\001\001\032a\n\016LocationsEntry\022\013\n\003key" + + "\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud.com" + + "pute.v1.LocationPolicyLocation:\0028\001\"^\n\013Ta" + + "rgetShape\022\032\n\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + + "\003ANY\020\314\373\003\022\026\n\017ANY_SINGLE_ZONE\020\320\246\221\035\022\020\n\010BALA" + + "NCED\020\210\272\255\337\001B\017\n\r_target_shape\"\216\002\n\026Location" + + "PolicyLocation\022W\n\013constraints\030\266\314\356\001 \001(\0132:" + + ".google.cloud.compute.v1.LocationPolicyL" + + "ocationConstraintsH\000\210\001\001\022\032\n\npreference\030\333\371" + + "\362G \001(\tH\001\210\001\001\"`\n\nPreference\022\030\n\024UNDEFINED_P" + + "REFERENCE\020\000\022\014\n\005ALLOW\020\251\326\336\035\022\n\n\004DENY\020\214\354\177\022\036\n" + + "\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001B\016\n\014_constr" + + "aintsB\r\n\013_preference\"M\n!LocationPolicyLo" + + "cationConstraints\022\032\n\tmax_count\030\364\374\222\211\001 \001(\005" + + "H\000\210\001\001B\014\n\n_max_count\"\265\t\n\014MachineImage\022\"\n\022" + + "creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013desc" + + "ription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\013guest_flush\030\335\223" + + "\354\267\001 \001(\010H\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022P\n\023instan" + + "ce_properties\030\235\236\330f \001(\0132+.google.cloud.co" + + "mpute.v1.InstancePropertiesH\004\210\001\001\022\024\n\004kind" + + "\030\224\367\310\001 \001(\tH\005\210\001\001\022]\n\034machine_image_encrypti" + + "on_key\030\377\377\347\373\001 \001(\0132..google.cloud.compute." + + "v1.CustomerEncryptionKeyH\006\210\001\001\022\024\n\004name\030\213\365" + + "\315\001 \001(\tH\007\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\010" + + "\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\t\210\001\001\022;\n\013s" + + "aved_disks\030\276\355\300\275\001 \003(\0132\".google.cloud.comp" + + "ute.v1.SavedDisk\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" + + "\n\210\001\001\022Y\n\033source_disk_encryption_keys\030\262\370\317\260" + + "\001 \003(\01320.google.cloud.compute.v1.SourceDi" + + "skEncryptionKey\022 \n\017source_instance\030\271\230\375\274\001" + + " \001(\tH\013\210\001\001\022^\n\032source_instance_properties\030" + + "\371\321\313\342\001 \001(\01321.google.cloud.compute.v1.Sour" + + "ceInstancePropertiesH\014\210\001\001\022\026\n\006status\030\362\237\267V" + + " \001(\tH\r\210\001\001\022\035\n\021storage_locations\030\232\355\263\234\001 \003(\t" + + "\022#\n\023total_storage_bytes\030\354\207\204\' \001(\003H\016\210\001\001\"s\n" + + "\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREATIN" + + "G\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\017\n\007INVALID\020\327\373\355" + + "\374\001\022\014\n\005READY\020\203\303\217%\022\020\n\tUPLOADING\020\241\234\315\177B\025\n\023_c" + + "reation_timestampB\016\n\014_descriptionB\016\n\014_gu" + + "est_flushB\005\n\003_idB\026\n\024_instance_properties" + + "B\007\n\005_kindB\037\n\035_machine_image_encryption_k" + + "eyB\007\n\005_nameB\020\n\016_satisfies_pziB\020\n\016_satisf" + + "ies_pzsB\014\n\n_self_linkB\022\n\020_source_instanc" + + "eB\035\n\033_source_instance_propertiesB\t\n\007_sta" + + "tusB\026\n\024_total_storage_bytes\"\251\002\n\020MachineI" + + "mageList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227\n\005items\030\300\317\367/" + + " \003(\0132%.google.cloud.compute.v1.MachineIm" + + "age\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" + + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"\346\007\n\013MachineType\022?\n\014accelerators\030" + + "\350\326\305\200\001 \003(\0132%.google.cloud.compute.v1.Acce" + + "lerators\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022" + + "\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\nd" + + "eprecated\030\263\313\321\365\001 \001(\0132*.google.cloud.compu" + + "te.v1.DeprecationStatusH\002\210\001\001\022\034\n\013descript" + + "ion\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\nguest_cpus\030\322\313\310\273\001 \001" + + "(\005H\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\036\n\016image_space" + + "_gb\030\230\362\365# \001(\005H\006\210\001\001\022\036\n\ris_shared_cpu\030\203\332\317\370\001" + + " \001(\010H\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022)\n\030maxim" + + "um_persistent_disks\030\215\366\316\354\001 \001(\005H\t\210\001\001\0220\n ma" + + "ximum_persistent_disks_size_gb\030\247\225\310I \001(\003H" + + "\n\210\001\001\022\031\n\tmemory_mb\030\223\223\2507 \001(\005H\013\210\001\001\022\024\n\004name\030" + + "\213\365\315\001 \001(\tH\014\210\001\001\022@\n\rscratch_disks\030\361\261\240\345\001 \003(\013" + + "2%.google.cloud.compute.v1.ScratchDisks\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\024\n\004zone\030\254\307\344\001" + + " \001(\tH\016\210\001\001\"j\n\014Architecture\022\032\n\026UNDEFINED_A" + + "RCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNSPECIFIE" + + "D\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001B\017\n" + + "\r_architectureB\025\n\023_creation_timestampB\r\n" + + "\013_deprecatedB\016\n\014_descriptionB\r\n\013_guest_c" + + "pusB\005\n\003_idB\021\n\017_image_space_gbB\020\n\016_is_sha" + + "red_cpuB\007\n\005_kindB\033\n\031_maximum_persistent_" + + "disksB#\n!_maximum_persistent_disks_size_" + + "gbB\014\n\n_memory_mbB\007\n\005_nameB\014\n\n_self_linkB" + + "\007\n\005_zone\"\302\003\n\031MachineTypeAggregatedList\022\020" + + "\n\002id\030\233\032 \001(\tH\000\210\001\001\022O\n\005items\030\300\317\367/ \003(\0132=.goo" + + "gle.cloud.compute.v1.MachineTypeAggregat" + + "edList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022" + + "\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself" + + "_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206" + + "t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" + + ".compute.v1.WarningH\004\210\001\001\032]\n\nItemsEntry\022\013" + + "\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.clou" + + "d.compute.v1.MachineTypesScopedList:\0028\001B" + + "\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_" + + "self_linkB\n\n\010_warning\"\247\002\n\017MachineTypeLis" + + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0226\n\005items\030\300\317\367/ \003(\0132$." + + "google.cloud.compute.v1.MachineType\022\024\n\004k" + + "ind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206" + + "& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229" + + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" + + "e.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_ne" + + "xt_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"" + + "\237\001\n\026MachineTypesScopedList\022>\n\rmachine_ty" + + "pes\030\201\335\201& \003(\0132$.google.cloud.compute.v1.M" + + "achineType\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." + + "cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warnin" + + "g\"\362\n\n\017ManagedInstance\022\036\n\016current_action\030" + + "\274\247\215U \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\004H\001\210\001\001\022\030\n\010insta" + + "nce\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n\017instance_health\030\306\222\274" + + "\266\001 \003(\01326.google.cloud.compute.v1.Managed" + + "InstanceInstanceHealth\022\037\n\017instance_statu" + + "s\030\334\255\237S \001(\tH\003\210\001\001\022R\n\014last_attempt\030\244\254\250\317\001 \001(" + + "\01323.google.cloud.compute.v1.ManagedInsta" + + "nceLastAttemptH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001" + + "\001\022T\n\033preserved_state_from_config\030\342\353\205/ \001(" + + "\0132\'.google.cloud.compute.v1.PreservedSta" + + "teH\006\210\001\001\022U\n\033preserved_state_from_policy\030\322" + + "\257\276\340\001 \001(\0132\'.google.cloud.compute.v1.Prese" + + "rvedStateH\007\210\001\001\022{\n\"properties_from_flexib" + + "ility_policy\030\301\305\224J \001(\0132G.google.cloud.com" + + "pute.v1.ManagedInstancePropertiesFromFle" + + "xibilityPolicyH\010\210\001\001\022I\n\007version\030\330\271\324\247\001 \001(\013" + + "2/.google.cloud.compute.v1.ManagedInstan" + + "ceVersionH\t\210\001\001\"\205\002\n\rCurrentAction\022\034\n\030UNDE" + + "FINED_CURRENT_ACTION\020\000\022\022\n\nABANDONING\020\315\312\220" + + "\271\001\022\020\n\010CREATING\020\271\275\235\331\001\022 \n\030CREATING_WITHOUT" + + "_RETRIES\020\211\306\276\314\001\022\020\n\010DELETING\020\250\247\207\374\001\022\013\n\004NONE" + + "\020\270\316\222\001\022\022\n\nRECREATING\020\354\213\376\210\001\022\021\n\nREFRESHING\020" + + "\247\376\354M\022\022\n\nRESTARTING\020\363\356\353\230\001\022\020\n\010RESUMING\020\252\373\211" + + "\325\001\022\020\n\010STARTING\020\300\240\213\351\001\022\020\n\tVERIFYING\020\251\301\214\010\"\355" + + "\001\n\016InstanceStatus\022\035\n\031UNDEFINED_INSTANCE_" + + "STATUS\020\000\022\026\n\016DEPROVISIONING\020\356\223\304\314\001\022\024\n\014PROV" + + "ISIONING\020\355\365\332\212\001\022\021\n\tREPAIRING\020\225\202\225\305\001\022\016\n\007RUN" + + "NING\020\237\303\3529\022\017\n\007STAGING\020\233\310\306\315\001\022\017\n\007STOPPED\020\255\273" + + "\354\323\001\022\020\n\010STOPPING\020\364\320\242\247\001\022\020\n\tSUSPENDED\020\273\273\266\030\022" + + "\022\n\nSUSPENDING\020\246\324\230\365\001\022\021\n\nTERMINATED\020\243\364\233wB\021" + + "\n\017_current_actionB\005\n\003_idB\013\n\t_instanceB\022\n" + + "\020_instance_statusB\017\n\r_last_attemptB\007\n\005_n" + + "ameB\036\n\034_preserved_state_from_configB\036\n\034_" + + "preserved_state_from_policyB%\n#_properti" + + "es_from_flexibility_policyB\n\n\010_version\"\246" + + "\002\n\035ManagedInstanceInstanceHealth\022&\n\025deta" + + "iled_health_state\030\235\320\264\363\001 \001(\tH\000\210\001\001\022\035\n\014heal" + + "th_check\030\345\252\244\223\001 \001(\tH\001\210\001\001\"\222\001\n\023DetailedHeal" + + "thState\022#\n\037UNDEFINED_DETAILED_HEALTH_STA" + + "TE\020\000\022\020\n\010DRAINING\020\352\325\214\345\001\022\017\n\007HEALTHY\020\375\252\333\321\001\022" + + "\017\n\007TIMEOUT\020\301\262\353\343\001\022\021\n\tUNHEALTHY\020\304\271\255\334\001\022\017\n\007U" + + "NKNOWN\020\252\360\304\316\001B\030\n\026_detailed_health_stateB\017" + + "\n\r_health_check\"a\n\032ManagedInstanceLastAt" + + "tempt\0228\n\006errors\030\353\336\325\226\001 \001(\0132\037.google.cloud" + + ".compute.v1.ErrorsH\000\210\001\001B\t\n\007_errors\"_\n.Ma" + + "nagedInstancePropertiesFromFlexibilityPo" + + "licy\022\034\n\014machine_type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r_m" + + "achine_type\"q\n\026ManagedInstanceVersion\022\"\n" + + "\021instance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001\022\024\n\004nam" + + "e\030\213\365\315\001 \001(\tH\001\210\001\001B\024\n\022_instance_templateB\007\n" + + "\005_name\"\210\001\n\010Metadata\022\033\n\013fingerprint\030\344\321\363o " + + "\001(\tH\000\210\001\001\0220\n\005items\030\300\317\367/ \003(\0132\036.google.clou" + + "d.compute.v1.Items\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001" + + "B\016\n\014_fingerprintB\007\n\005_kind\"\217\002\n\016MetadataFi" + + "lter\022L\n\rfilter_labels\030\246\365\350\222\001 \003(\01321.google" + + ".cloud.compute.v1.MetadataFilterLabelMat" + + "ch\022%\n\025filter_match_criteria\030\300\320\266r \001(\tH\000\210\001" + + "\001\"n\n\023FilterMatchCriteria\022#\n\037UNDEFINED_FI" + + "LTER_MATCH_CRITERIA\020\000\022\020\n\tMATCH_ALL\020\347\347\222V\022" + + "\020\n\tMATCH_ANY\020\262\350\222V\022\016\n\007NOT_SET\020\266\231\204NB\030\n\026_fi" + + "lter_match_criteria\"Z\n\030MetadataFilterLab" + + "elMatch\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n\005value\030\361" + + "\242\2625 \001(\tH\001\210\001\001B\007\n\005_nameB\010\n\006_value\"\213\002\n\022Move" + + "AddressRequest\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" + + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022l\n®ion_a" + + "ddresses_move_request_resource\030\304\260\210\303\001 \001(\013" + + "23.google.cloud.compute.v1.RegionAddress" + + "esMoveRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001B\r\n\013_request_id\"\275\001\n\026MoveDiskProjec" + + "tRequest\022U\n\032disk_move_request_resource\030\312" + + "\302\240\225\001 \001(\0132(.google.cloud.compute.v1.DiskM" + + "oveRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n\013_request_id\"\220\001\n\031MoveFirewallPolicyRequ" + + "est\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022&\n" + + "\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tparent_id\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" + + "\"\360\001\n\030MoveGlobalAddressRequest\022\030\n\007address" + + "\030\364\267\336\334\001 \001(\tB\003\340A\002\022l\n&global_addresses_move" + + "_request_resource\030\363\361\261\220\001 \001(\01323.google.clo" + + "ud.compute.v1.GlobalAddressesMoveRequest" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request" + + "_id\"\311\001\n\032MoveInstanceProjectRequest\022]\n\036in" + + "stance_move_request_resource\030\302\274\316\224\001 \001(\0132," + + ".google.cloud.compute.v1.InstanceMoveReq" + + "uestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" + + "uest_id\"I\n\tNamedPort\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210" + + "\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001B\007\n\005_nameB\007\n\005_po" + + "rt\"\210\001\n\tNatIpInfo\022S\n\024nat_ip_info_mappings" + + "\030\234\200\216s \003(\01322.google.cloud.compute.v1.NatI" + + "pInfoNatIpInfoMapping\022\031\n\010nat_name\030\351\255\370\312\001 " + + "\001(\tH\000\210\001\001B\013\n\t_nat_name\"\362\001\n\031NatIpInfoNatIp" + + "InfoMapping\022\024\n\004mode\030\243\363\314\001 \001(\tH\000\210\001\001\022\026\n\006nat" + + "_ip\030\205\322\210\n \001(\tH\001\210\001\001\022\025\n\005usage\030\241\373\2315 \001(\tH\002\210\001\001" + + "\"5\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\n\n\004AUTO\020\257\253{" + + "\022\r\n\006MANUAL\020\306\267\3678\";\n\005Usage\022\023\n\017UNDEFINED_US" + + "AGE\020\000\022\r\n\006IN_USE\020\315\316\245\010\022\016\n\006UNUSED\020\326\363\373\253\001B\007\n\005" + + "_modeB\t\n\007_nat_ipB\010\n\006_usage\"J\n\021NatIpInfoR" + + "esponse\0225\n\006result\030\235\220\267B \003(\0132\".google.clou" + + "d.compute.v1.NatIpInfo\"\242\t\n\007Network\022\033\n\013I_" + + "pv4_range\030\266\260\237\034 \001(\tH\000\210\001\001\022\'\n\027auto_create_s" + + "ubnetworks\030\222\310\222z \001(\010H\001\210\001\001\022\"\n\022creation_tim" + + "estamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013description\030\374\207\326\311" + + "\001 \001(\tH\003\210\001\001\022)\n\030enable_ula_internal_ipv6\030\230" + + "\217\210\312\001 \001(\010H\004\210\001\001\022 \n\017firewall_policy\030\321\212\306\355\001 \001" + + "(\tH\005\210\001\001\022\035\n\rgateway_i_pv4\030\335\330\231U \001(\tH\006\210\001\001\022\020" + + "\n\002id\030\233\032 \001(\004H\007\210\001\001\022$\n\023internal_ipv6_range\030" + + "\247\317\246\204\001 \001(\tH\010\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\t\210\001\001\022\022\n\003" + + "mtu\030\256\317\006 \001(\005H\n\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\013\210\001\001\0229" + + "\n)network_firewall_policy_enforcement_or" + + "der\030\320\202\215\003 \001(\tH\014\210\001\001\022\037\n\017network_profile\030\230\371\305" + + "R \001(\tH\r\210\001\001\022<\n\010peerings\030\263\252\251! \003(\0132\'.google" + + ".cloud.compute.v1.NetworkPeering\022N\n\016rout" + + "ing_config\030\333\251\323\371\001 \001(\0132-.google.cloud.comp" + + "ute.v1.NetworkRoutingConfigH\016\210\001\001\022\032\n\tself" + + "_link\030\215\222\305\331\001 \001(\tH\017\210\001\001\022!\n\021self_link_with_i" + + "d\030\202\254\235\025 \001(\tH\020\210\001\001\022\027\n\013subnetworks\030\305\324\245\306\001 \003(\t" + + "\"\240\001\n%NetworkFirewallPolicyEnforcementOrd" + + "er\0227\n3UNDEFINED_NETWORK_FIREWALL_POLICY_" + + "ENFORCEMENT_ORDER\020\000\022\035\n\026AFTER_CLASSIC_FIR" + + "EWALL\020\320\374\332I\022\037\n\027BEFORE_CLASSIC_FIREWALL\020\355\355" + + "\261\241\001B\016\n\014_I_pv4_rangeB\032\n\030_auto_create_subn" + + "etworksB\025\n\023_creation_timestampB\016\n\014_descr" + + "iptionB\033\n\031_enable_ula_internal_ipv6B\022\n\020_" + + "firewall_policyB\020\n\016_gateway_i_pv4B\005\n\003_id" + + "B\026\n\024_internal_ipv6_rangeB\007\n\005_kindB\006\n\004_mt" + + "uB\007\n\005_nameB,\n*_network_firewall_policy_e" + + "nforcement_orderB\022\n\020_network_profileB\021\n\017" + + "_routing_configB\014\n\n_self_linkB\024\n\022_self_l" + + "ink_with_id\"\247\006\n\021NetworkAttachment\022]\n\024con" + + "nection_endpoints\030\335\242\276\233\001 \003(\0132;.google.clo" + + "ud.compute.v1.NetworkAttachmentConnected" + + "Endpoint\022&\n\025connection_preference\030\334\371\244\210\001 " + + "\001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH" + + "\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\033\n\013fi" + + "ngerprint\030\344\321\363o \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001" + + "\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\t" + + "H\006\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022 \n\025produc" + + "er_accept_lists\030\253\232\332` \003(\t\022 \n\025producer_rej" + + "ect_lists\030\202\375\372\001 \003(\t\022\026\n\006region\030\364\315\240B \001(\tH\010\210" + + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n\021self_l" + + "ink_with_id\030\202\254\235\025 \001(\tH\n\210\001\001\022\027\n\013subnetworks" + + "\030\305\324\245\306\001 \003(\t\"|\n\024ConnectionPreference\022#\n\037UN" + + "DEFINED_CONNECTION_PREFERENCE\020\000\022\027\n\020ACCEP" + + "T_AUTOMATIC\020\224\367\360#\022\025\n\rACCEPT_MANUAL\020\335\355\361\261\001\022" + + "\017\n\007INVALID\020\327\373\355\374\001B\030\n\026_connection_preferen" + + "ceB\025\n\023_creation_timestampB\016\n\014_descriptio" + + "nB\016\n\014_fingerprintB\005\n\003_idB\007\n\005_kindB\007\n\005_na" + + "meB\n\n\010_networkB\t\n\007_regionB\014\n\n_self_linkB" + + "\024\n\022_self_link_with_id\"\273\003\n\037NetworkAttachm" + + "entAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022U\n\005i" + + "tems\030\300\317\367/ \003(\0132C.google.cloud.compute.v1." + + "NetworkAttachmentAggregatedList.ItemsEnt" + + "ry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_to" + + "ken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" + + "H\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" + + ".compute.v1.WarningH\004\210\001\001\032c\n\nItemsEntry\022\013" + + "\n\003key\030\001 \001(\t\022D\n\005value\030\002 \001(\01325.google.clou" + + "d.compute.v1.NetworkAttachmentsScopedLis" + + "t:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_toke" + + "nB\014\n\n_self_linkB\n\n\010_warning\"\207\004\n\"NetworkA" + + "ttachmentConnectedEndpoint\022\033\n\nip_address" + + "\030\334\361\334\301\001 \001(\tH\000\210\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(" + + "\tH\001\210\001\001\022\"\n\021project_id_or_num\030\250\212\345\246\001 \001(\tH\002\210" + + "\001\001\022#\n\030secondary_ip_cidr_ranges\030\224\262\3607 \003(\t\022" + + "\026\n\006status\030\362\237\267V \001(\tH\003\210\001\001\022\033\n\nsubnetwork\030\356\247" + + "\344\222\001 \001(\tH\004\210\001\001\022&\n\025subnetwork_cidr_range\030\243\333" + + "\337\266\001 \001(\tH\005\210\001\001\"\224\001\n\006Status\022\024\n\020UNDEFINED_STA" + + "TUS\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027" + + "\n\017NEEDS_ATTENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022" + + "\017\n\010REJECTED\020\376\210\204S\022\031\n\022STATUS_UNSPECIFIED\020\312" + + "\314\213\024B\r\n\013_ip_addressB\017\n\r_ipv6_addressB\024\n\022_" + + "project_id_or_numB\t\n\007_statusB\r\n\013_subnetw" + + "orkB\030\n\026_subnetwork_cidr_range\"\263\002\n\025Networ" + + "kAttachmentList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022<\n\005ite" + + "ms\030\300\317\367/ \003(\0132*.google.cloud.compute.v1.Ne" + + "tworkAttachment\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_l" + "ink\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 " + ".google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_se" - + "lf_linkB\n\n\010_warning\"\346\007\n\013MachineType\022?\n\014a" - + "ccelerators\030\350\326\305\200\001 \003(\0132%.google.cloud.com" - + "pute.v1.Accelerators\022\035\n\014architecture\030\323\322\261" - + "\220\001 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001" - + "(\tH\001\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001 \001(\0132*.google" - + ".cloud.compute.v1.DeprecationStatusH\002\210\001\001" - + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\nguest_" - + "cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\036\n" - + "\016image_space_gb\030\230\362\365# \001(\005H\006\210\001\001\022\036\n\ris_shar" - + "ed_cpu\030\203\332\317\370\001 \001(\010H\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\010" - + "\210\001\001\022)\n\030maximum_persistent_disks\030\215\366\316\354\001 \001(" - + "\005H\t\210\001\001\0220\n maximum_persistent_disks_size_" - + "gb\030\247\225\310I \001(\003H\n\210\001\001\022\031\n\tmemory_mb\030\223\223\2507 \001(\005H\013" - + "\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022@\n\rscratch_dis" - + "ks\030\361\261\240\345\001 \003(\0132%.google.cloud.compute.v1.S" - + "cratchDisks\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022" - + "\024\n\004zone\030\254\307\344\001 \001(\tH\016\210\001\001\"j\n\014Architecture\022\032\n" - + "\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030ARCHITECTUR" - + "E_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86" - + "_64\020\307\244\346\312\001B\017\n\r_architectureB\025\n\023_creation_" - + "timestampB\r\n\013_deprecatedB\016\n\014_description" - + "B\r\n\013_guest_cpusB\005\n\003_idB\021\n\017_image_space_g" - + "bB\020\n\016_is_shared_cpuB\007\n\005_kindB\033\n\031_maximum" - + "_persistent_disksB#\n!_maximum_persistent" - + "_disks_size_gbB\014\n\n_memory_mbB\007\n\005_nameB\014\n" - + "\n_self_linkB\007\n\005_zone\"\302\003\n\031MachineTypeAggr" - + "egatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022O\n\005items\030\300\317" - + "\367/ \003(\0132=.google.cloud.compute.v1.Machine" - + "TypeAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367" - + "\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" - + "\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unre" - + "achables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" - + "ItemsEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/" - + ".google.cloud.compute.v1.MachineTypesSco" - + "pedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pag" - + "e_tokenB\014\n\n_self_linkB\n\n\010_warning\"\247\002\n\017Ma" - + "chineTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0226\n\005items" - + "\030\300\317\367/ \003(\0132$.google.cloud.compute.v1.Mach" - + "ineType\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" - + "ge_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331" - + "\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005" - + "_kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB" - + "\n\n\010_warning\"\237\001\n\026MachineTypesScopedList\022>" - + "\n\rmachine_types\030\201\335\201& \003(\0132$.google.cloud." - + "compute.v1.MachineType\0229\n\007warning\030\234\337\226\030 \001" - + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" - + "\001B\n\n\010_warning\"\362\n\n\017ManagedInstance\022\036\n\016cur" - + "rent_action\030\274\247\215U \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\004H\001" - + "\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n\017instanc" - + "e_health\030\306\222\274\266\001 \003(\01326.google.cloud.comput" - + "e.v1.ManagedInstanceInstanceHealth\022\037\n\017in" - + "stance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n\014last_atte" - + "mpt\030\244\254\250\317\001 \001(\01323.google.cloud.compute.v1." - + "ManagedInstanceLastAttemptH\004\210\001\001\022\024\n\004name\030" - + "\213\365\315\001 \001(\tH\005\210\001\001\022T\n\033preserved_state_from_co" - + "nfig\030\342\353\205/ \001(\0132\'.google.cloud.compute.v1." - + "PreservedStateH\006\210\001\001\022U\n\033preserved_state_f" - + "rom_policy\030\322\257\276\340\001 \001(\0132\'.google.cloud.comp" - + "ute.v1.PreservedStateH\007\210\001\001\022{\n\"properties" - + "_from_flexibility_policy\030\301\305\224J \001(\0132G.goog" - + "le.cloud.compute.v1.ManagedInstancePrope" - + "rtiesFromFlexibilityPolicyH\010\210\001\001\022I\n\007versi" - + "on\030\330\271\324\247\001 \001(\0132/.google.cloud.compute.v1.M" - + "anagedInstanceVersionH\t\210\001\001\"\205\002\n\rCurrentAc" - + "tion\022\034\n\030UNDEFINED_CURRENT_ACTION\020\000\022\022\n\nAB" - + "ANDONING\020\315\312\220\271\001\022\020\n\010CREATING\020\271\275\235\331\001\022 \n\030CREA" - + "TING_WITHOUT_RETRIES\020\211\306\276\314\001\022\020\n\010DELETING\020\250" - + "\247\207\374\001\022\013\n\004NONE\020\270\316\222\001\022\022\n\nRECREATING\020\354\213\376\210\001\022\021\n" - + "\nREFRESHING\020\247\376\354M\022\022\n\nRESTARTING\020\363\356\353\230\001\022\020\n\010" - + "RESUMING\020\252\373\211\325\001\022\020\n\010STARTING\020\300\240\213\351\001\022\020\n\tVERI" - + "FYING\020\251\301\214\010\"\355\001\n\016InstanceStatus\022\035\n\031UNDEFIN" - + "ED_INSTANCE_STATUS\020\000\022\026\n\016DEPROVISIONING\020\356" - + "\223\304\314\001\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\021\n\tREPAIRING\020" - + "\225\202\225\305\001\022\016\n\007RUNNING\020\237\303\3529\022\017\n\007STAGING\020\233\310\306\315\001\022\017" - + "\n\007STOPPED\020\255\273\354\323\001\022\020\n\010STOPPING\020\364\320\242\247\001\022\020\n\tSUS" - + "PENDED\020\273\273\266\030\022\022\n\nSUSPENDING\020\246\324\230\365\001\022\021\n\nTERMI" - + "NATED\020\243\364\233wB\021\n\017_current_actionB\005\n\003_idB\013\n\t" - + "_instanceB\022\n\020_instance_statusB\017\n\r_last_a" - + "ttemptB\007\n\005_nameB\036\n\034_preserved_state_from" - + "_configB\036\n\034_preserved_state_from_policyB" - + "%\n#_properties_from_flexibility_policyB\n" - + "\n\010_version\"\246\002\n\035ManagedInstanceInstanceHe" - + "alth\022&\n\025detailed_health_state\030\235\320\264\363\001 \001(\tH" - + "\000\210\001\001\022\035\n\014health_check\030\345\252\244\223\001 \001(\tH\001\210\001\001\"\222\001\n\023" - + "DetailedHealthState\022#\n\037UNDEFINED_DETAILE" - + "D_HEALTH_STATE\020\000\022\020\n\010DRAINING\020\352\325\214\345\001\022\017\n\007HE" - + "ALTHY\020\375\252\333\321\001\022\017\n\007TIMEOUT\020\301\262\353\343\001\022\021\n\tUNHEALTH" - + "Y\020\304\271\255\334\001\022\017\n\007UNKNOWN\020\252\360\304\316\001B\030\n\026_detailed_he" - + "alth_stateB\017\n\r_health_check\"a\n\032ManagedIn" - + "stanceLastAttempt\0228\n\006errors\030\353\336\325\226\001 \001(\0132\037." - + "google.cloud.compute.v1.ErrorsH\000\210\001\001B\t\n\007_" - + "errors\"_\n.ManagedInstancePropertiesFromF" - + "lexibilityPolicy\022\034\n\014machine_type\030\262\260\312l \001(" - + "\tH\000\210\001\001B\017\n\r_machine_type\"q\n\026ManagedInstan" - + "ceVersion\022\"\n\021instance_template\030\344\201\273\223\001 \001(\t" - + "H\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\024\n\022_instance" - + "_templateB\007\n\005_name\"\210\001\n\010Metadata\022\033\n\013finge" - + "rprint\030\344\321\363o \001(\tH\000\210\001\001\0220\n\005items\030\300\317\367/ \003(\0132\036" - + ".google.cloud.compute.v1.Items\022\024\n\004kind\030\224" - + "\367\310\001 \001(\tH\001\210\001\001B\016\n\014_fingerprintB\007\n\005_kind\"\217\002" - + "\n\016MetadataFilter\022L\n\rfilter_labels\030\246\365\350\222\001 " - + "\003(\01321.google.cloud.compute.v1.MetadataFi" - + "lterLabelMatch\022%\n\025filter_match_criteria\030" - + "\300\320\266r \001(\tH\000\210\001\001\"n\n\023FilterMatchCriteria\022#\n\037" - + "UNDEFINED_FILTER_MATCH_CRITERIA\020\000\022\020\n\tMAT" - + "CH_ALL\020\347\347\222V\022\020\n\tMATCH_ANY\020\262\350\222V\022\016\n\007NOT_SET" - + "\020\266\231\204NB\030\n\026_filter_match_criteria\"Z\n\030Metad" - + "ataFilterLabelMatch\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001" - + "\001\022\025\n\005value\030\361\242\2625 \001(\tH\001\210\001\001B\007\n\005_nameB\010\n\006_va" - + "lue\"\213\002\n\022MoveAddressRequest\022\030\n\007address\030\364\267" - + "\336\334\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region" - + "\022l\n®ion_addresses_move_request_resour" - + "ce\030\304\260\210\303\001 \001(\01323.google.cloud.compute.v1.R" - + "egionAddressesMoveRequestB\003\340A\002\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\275\001\n\026Mo" - + "veDiskProjectRequest\022U\n\032disk_move_reques" - + "t_resource\030\312\302\240\225\001 \001(\0132(.google.cloud.comp" - + "ute.v1.DiskMoveRequestB\003\340A\002\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\220\001\n\031MoveFirewa" - + "llPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001" - + " \001(\tB\003\340A\002\022&\n\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\t" - + "parent_id\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\360\001\n\030MoveGlobalAddressReques" - + "t\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022l\n&global_ad" - + "dresses_move_request_resource\030\363\361\261\220\001 \001(\0132" - + "3.google.cloud.compute.v1.GlobalAddresse" - + "sMoveRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" - + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "B\r\n\013_request_id\"\311\001\n\032MoveInstanceProjectR" - + "equest\022]\n\036instance_move_request_resource" - + "\030\302\274\316\224\001 \001(\0132,.google.cloud.compute.v1.Ins" - + "tanceMoveRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001B\r\n\013_request_id\"I\n\tNamedPort\022\024\n\004name" - + "\030\213\365\315\001 \001(\tH\000\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\001\210\001\001B\007\n\005" - + "_nameB\007\n\005_port\"\210\001\n\tNatIpInfo\022S\n\024nat_ip_i" - + "nfo_mappings\030\234\200\216s \003(\01322.google.cloud.com" - + "pute.v1.NatIpInfoNatIpInfoMapping\022\031\n\010nat" - + "_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n\t_nat_name\"\362\001\n\031Na" - + "tIpInfoNatIpInfoMapping\022\024\n\004mode\030\243\363\314\001 \001(\t" - + "H\000\210\001\001\022\026\n\006nat_ip\030\205\322\210\n \001(\tH\001\210\001\001\022\025\n\005usage\030\241" - + "\373\2315 \001(\tH\002\210\001\001\"5\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000" - + "\022\n\n\004AUTO\020\257\253{\022\r\n\006MANUAL\020\306\267\3678\";\n\005Usage\022\023\n\017" - + "UNDEFINED_USAGE\020\000\022\r\n\006IN_USE\020\315\316\245\010\022\016\n\006UNUS" - + "ED\020\326\363\373\253\001B\007\n\005_modeB\t\n\007_nat_ipB\010\n\006_usage\"J" - + "\n\021NatIpInfoResponse\0225\n\006result\030\235\220\267B \003(\0132\"" - + ".google.cloud.compute.v1.NatIpInfo\"\355\010\n\007N" - + "etwork\022\033\n\013I_pv4_range\030\266\260\237\034 \001(\tH\000\210\001\001\022\'\n\027a" - + "uto_create_subnetworks\030\222\310\222z \001(\010H\001\210\001\001\022\"\n\022" - + "creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013desc" - + "ription\030\374\207\326\311\001 \001(\tH\003\210\001\001\022)\n\030enable_ula_int" - + "ernal_ipv6\030\230\217\210\312\001 \001(\010H\004\210\001\001\022 \n\017firewall_po" - + "licy\030\321\212\306\355\001 \001(\tH\005\210\001\001\022\035\n\rgateway_i_pv4\030\335\330\231" - + "U \001(\tH\006\210\001\001\022\020\n\002id\030\233\032 \001(\004H\007\210\001\001\022$\n\023internal" - + "_ipv6_range\030\247\317\246\204\001 \001(\tH\010\210\001\001\022\024\n\004kind\030\224\367\310\001 " - + "\001(\tH\t\210\001\001\022\022\n\003mtu\030\256\317\006 \001(\005H\n\210\001\001\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\013\210\001\001\0229\n)network_firewall_policy_en" - + "forcement_order\030\320\202\215\003 \001(\tH\014\210\001\001\022<\n\010peering" - + "s\030\263\252\251! \003(\0132\'.google.cloud.compute.v1.Net" - + "workPeering\022N\n\016routing_config\030\333\251\323\371\001 \001(\0132" - + "-.google.cloud.compute.v1.NetworkRouting" - + "ConfigH\r\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022" - + "!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022\027\n\013su" - + "bnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n%NetworkFirewallP" - + "olicyEnforcementOrder\0227\n3UNDEFINED_NETWO" - + "RK_FIREWALL_POLICY_ENFORCEMENT_ORDER\020\000\022\035" - + "\n\026AFTER_CLASSIC_FIREWALL\020\320\374\332I\022\037\n\027BEFORE_" - + "CLASSIC_FIREWALL\020\355\355\261\241\001B\016\n\014_I_pv4_rangeB\032" - + "\n\030_auto_create_subnetworksB\025\n\023_creation_" - + "timestampB\016\n\014_descriptionB\033\n\031_enable_ula" - + "_internal_ipv6B\022\n\020_firewall_policyB\020\n\016_g" - + "ateway_i_pv4B\005\n\003_idB\026\n\024_internal_ipv6_ra" - + "ngeB\007\n\005_kindB\006\n\004_mtuB\007\n\005_nameB,\n*_networ" - + "k_firewall_policy_enforcement_orderB\021\n\017_" - + "routing_configB\014\n\n_self_linkB\024\n\022_self_li" - + "nk_with_id\"\247\006\n\021NetworkAttachment\022]\n\024conn" - + "ection_endpoints\030\335\242\276\233\001 \003(\0132;.google.clou" - + "d.compute.v1.NetworkAttachmentConnectedE" - + "ndpoint\022&\n\025connection_preference\030\334\371\244\210\001 \001" - + "(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001" - + "\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\033\n\013fin" - + "gerprint\030\344\321\363o \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH" - + "\006\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022 \n\025produce" - + "r_accept_lists\030\253\232\332` \003(\t\022 \n\025producer_reje" - + "ct_lists\030\202\375\372\001 \003(\t\022\026\n\006region\030\364\315\240B \001(\tH\010\210\001" - + "\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n\021self_li" - + "nk_with_id\030\202\254\235\025 \001(\tH\n\210\001\001\022\027\n\013subnetworks\030" - + "\305\324\245\306\001 \003(\t\"|\n\024ConnectionPreference\022#\n\037UND" - + "EFINED_CONNECTION_PREFERENCE\020\000\022\027\n\020ACCEPT" - + "_AUTOMATIC\020\224\367\360#\022\025\n\rACCEPT_MANUAL\020\335\355\361\261\001\022\017" - + "\n\007INVALID\020\327\373\355\374\001B\030\n\026_connection_preferenc" - + "eB\025\n\023_creation_timestampB\016\n\014_description" - + "B\016\n\014_fingerprintB\005\n\003_idB\007\n\005_kindB\007\n\005_nam" - + "eB\n\n\010_networkB\t\n\007_regionB\014\n\n_self_linkB\024" - + "\n\022_self_link_with_id\"\273\003\n\037NetworkAttachme" - + "ntAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022U\n\005it" - + "ems\030\300\317\367/ \003(\0132C.google.cloud.compute.v1.N" - + "etworkAttachmentAggregatedList.ItemsEntr" - + "y\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_tok" - + "en\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" - + "\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\004\210\001\001\032c\n\nItemsEntry\022\013\n" - + "\003key\030\001 \001(\t\022D\n\005value\030\002 \001(\01325.google.cloud" - + ".compute.v1.NetworkAttachmentsScopedList" - + ":\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_token" - + "B\014\n\n_self_linkB\n\n\010_warning\"\207\004\n\"NetworkAt" - + "tachmentConnectedEndpoint\022\033\n\nip_address\030" - + "\334\361\334\301\001 \001(\tH\000\210\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(\t" - + "H\001\210\001\001\022\"\n\021project_id_or_num\030\250\212\345\246\001 \001(\tH\002\210\001" - + "\001\022#\n\030secondary_ip_cidr_ranges\030\224\262\3607 \003(\t\022\026" - + "\n\006status\030\362\237\267V \001(\tH\003\210\001\001\022\033\n\nsubnetwork\030\356\247\344" - + "\222\001 \001(\tH\004\210\001\001\022&\n\025subnetwork_cidr_range\030\243\333\337" - + "\266\001 \001(\tH\005\210\001\001\"\224\001\n\006Status\022\024\n\020UNDEFINED_STAT" - + "US\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n" - + "\017NEEDS_ATTENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017" - + "\n\010REJECTED\020\376\210\204S\022\031\n\022STATUS_UNSPECIFIED\020\312\314" - + "\213\024B\r\n\013_ip_addressB\017\n\r_ipv6_addressB\024\n\022_p" - + "roject_id_or_numB\t\n\007_statusB\r\n\013_subnetwo" - + "rkB\030\n\026_subnetwork_cidr_range\"\263\002\n\025Network" - + "AttachmentList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022<\n\005item" - + "s\030\300\317\367/ \003(\0132*.google.cloud.compute.v1.Net" - + "workAttachment\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" - + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003" - + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" - + "f_linkB\n\n\010_warning\"\262\001\n\034NetworkAttachment" - + "sScopedList\022K\n\023network_attachments\030\237\336\326\370\001" - + " \003(\0132*.google.cloud.compute.v1.NetworkAt" - + "tachment\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" - + "oud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"" - + "\304\003\n\032NetworkEdgeSecurityService\022\"\n\022creati" - + "on_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013descriptio" - + "n\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\t" - + "H\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" - + "H\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n\006region\030\364\315" - + "\240B \001(\tH\006\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tH" - + "\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n\021self" - + "_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001B\025\n\023_creation" - + "_timestampB\016\n\014_descriptionB\016\n\014_fingerpri" - + "ntB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\022" - + "\n\020_security_policyB\014\n\n_self_linkB\024\n\022_sel" - + "f_link_with_id\"\216\004\n(NetworkEdgeSecuritySe" - + "rviceAggregatedList\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001" - + "\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022^\n\005items\030\300\317\367/ \003(\0132L." - + "google.cloud.compute.v1.NetworkEdgeSecur" - + "ityServiceAggregatedList.ItemsEntry\022\024\n\004k" - + "ind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272\206" - + "& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027" - + "\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 " - + "\001(\0132 .google.cloud.compute.v1.WarningH\005\210" - + "\001\001\032l\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002" - + " \001(\0132>.google.cloud.compute.v1.NetworkEd" - + "geSecurityServicesScopedList:\0028\001B\007\n\005_eta" - + "gB\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" - + "\n_self_linkB\n\n\010_warning\"\316\001\n%NetworkEdgeS" - + "ecurityServicesScopedList\022^\n\036network_edg" - + "e_security_services\030\254\313\370\020 \003(\01323.google.cl" - + "oud.compute.v1.NetworkEdgeSecurityServic" - + "e\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\236\003\n\017Net" - + "workEndpoint\022Q\n\013annotations\030\244\366\2655 \003(\01329.g" - + "oogle.cloud.compute.v1.NetworkEndpoint.A" - + "nnotationsEntry\022\'\n\027client_destination_po" - + "rt\030\206\210\202; \001(\005H\000\210\001\001\022\024\n\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030" - + "\n\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\nip_address\030\334" - + "\361\334\301\001 \001(\tH\003\210\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(\tH" - + "\004\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\005\210\001\001\0322\n\020Annotation" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\032" - + "\n\030_client_destination_portB\007\n\005_fqdnB\013\n\t_" - + "instanceB\r\n\013_ip_addressB\017\n\r_ipv6_address" - + "B\007\n\005_port\"\211\013\n\024NetworkEndpointGroup\022V\n\013an" - + "notations\030\244\366\2655 \003(\0132>.google.cloud.comput" - + "e.v1.NetworkEndpointGroup.AnnotationsEnt" - + "ry\022S\n\napp_engine\030\240\214\300\242\001 \001(\01326.google.clou" - + "d.compute.v1.NetworkEndpointGroupAppEngi" - + "neH\000\210\001\001\022[\n\016cloud_function\030\242\345\363\367\001 \001(\0132:.go" - + "ogle.cloud.compute.v1.NetworkEndpointGro" - + "upCloudFunctionH\001\210\001\001\022P\n\tcloud_run\030\201\313\3724 \001" - + "(\01325.google.cloud.compute.v1.NetworkEndp" - + "ointGroupCloudRunH\002\210\001\001\022\"\n\022creation_times" - + "tamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n\014default_port\030\277\367\360\311\001" - + " \001(\005H\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022" - + "\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022" - + "\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\027\n\007network\030\256\264\205o \001(" - + "\tH\t\210\001\001\022%\n\025network_endpoint_type\030\323\306\2648 \001(\t" - + "H\n\210\001\001\022N\n\010psc_data\030\311\333\246\" \001(\01324.google.clou" - + "d.compute.v1.NetworkEndpointGroupPscData" - + "H\013\210\001\001\022#\n\022psc_target_service\030\346\302\252\200\001 \001(\tH\014\210" - + "\001\001\022\026\n\006region\030\364\315\240B \001(\tH\r\210\001\001\022\032\n\tself_link\030" - + "\215\222\305\331\001 \001(\tH\016\210\001\001\022\024\n\004size\030\201\300\327\001 \001(\005H\017\210\001\001\022\033\n\n" - + "subnetwork\030\356\247\344\222\001 \001(\tH\020\210\001\001\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tH\021\210\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\002\n\023NetworkEndpointT" - + "ype\022#\n\037UNDEFINED_NETWORK_ENDPOINT_TYPE\020\000" - + "\022\021\n\tGCE_VM_IP\020\331\355\320\277\001\022\026\n\016GCE_VM_IP_PORT\020\247\344" - + "\245\357\001\022\030\n\021GCE_VM_IP_PORTMAP\020\265\343\360\n\022\032\n\022INTERNE" - + "T_FQDN_PORT\020\355\320\333\300\001\022\030\n\020INTERNET_IP_PORT\020\233\333" - + "\345\343\001\022\037\n\027NON_GCP_PRIVATE_IP_PORT\020\340\223\267\240\001\022\036\n\027" - + "PRIVATE_SERVICE_CONNECT\020\304\364\371\026\022\022\n\nSERVERLE" - + "SS\020\334\306\375\200\001B\r\n\013_app_engineB\021\n\017_cloud_functi" - + "onB\014\n\n_cloud_runB\025\n\023_creation_timestampB" - + "\017\n\r_default_portB\016\n\014_descriptionB\005\n\003_idB" - + "\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\030\n\026_networ" - + "k_endpoint_typeB\013\n\t_psc_dataB\025\n\023_psc_tar", - "get_serviceB\t\n\007_regionB\014\n\n_self_linkB\007\n\005" - + "_sizeB\r\n\013_subnetworkB\007\n\005_zone\"\335\003\n\"Networ" - + "kEndpointGroupAggregatedList\022\020\n\002id\030\233\032 \001(" - + "\tH\000\210\001\001\022X\n\005items\030\300\317\367/ \003(\0132F.google.cloud." - + "compute.v1.NetworkEndpointGroupAggregate" - + "dList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037" - + "\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_" - + "link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t" - + " \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\004\210\001\001\032f\n\nItemsEntry\022\013\n" - + "\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.cloud" - + ".compute.v1.NetworkEndpointGroupsScopedL" - + "ist:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_to" - + "kenB\014\n\n_self_linkB\n\n\010_warning\"\222\001\n\035Networ" - + "kEndpointGroupAppEngine\022\030\n\007service\030\265\215\217\262\001" - + " \001(\tH\000\210\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\001\210\001\001\022\030\n\007v" - + "ersion\030\330\271\324\247\001 \001(\tH\002\210\001\001B\n\n\010_serviceB\013\n\t_ur" - + "l_maskB\n\n\010_version\"r\n!NetworkEndpointGro" - + "upCloudFunction\022\031\n\010function\030\330\347\275\222\001 \001(\tH\000\210" - + "\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\001\210\001\001B\013\n\t_functio" - + "nB\013\n\t_url_mask\"\207\001\n\034NetworkEndpointGroupC" - + "loudRun\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001\022\022\n\003tag" - + "\030\232\377\006 \001(\tH\001\210\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\002\210\001\001B" - + "\n\n\010_serviceB\006\n\004_tagB\013\n\t_url_mask\"\271\002\n\030Net" - + "workEndpointGroupList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" - + "?\n\005items\030\300\317\367/ \003(\0132-.google.cloud.compute" - + ".v1.NetworkEndpointGroup\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\275\003\n\033Network" - + "EndpointGroupPscData\022%\n\024consumer_psc_add" - + "ress\030\254\255\353\327\001 \001(\tH\000\210\001\001\022\036\n\rproducer_port\030\216\332\301" - + "\303\001 \001(\005H\001\210\001\001\022\"\n\021psc_connection_id\030\335\245\243\213\001 \001" - + "(\004H\002\210\001\001\022%\n\025psc_connection_status\030\264\311\347W \001(" - + "\tH\003\210\001\001\"\260\001\n\023PscConnectionStatus\022#\n\037UNDEFI" - + "NED_PSC_CONNECTION_STATUS\020\000\022\017\n\010ACCEPTED\020" - + "\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_ATTENTION\020" - + "\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022\031" - + "\n\022STATUS_UNSPECIFIED\020\312\314\213\024B\027\n\025_consumer_p" - + "sc_addressB\020\n\016_producer_portB\024\n\022_psc_con" - + "nection_idB\030\n\026_psc_connection_status\"u\n+" - + "NetworkEndpointGroupsAttachEndpointsRequ" + + "lf_linkB\n\n\010_warning\"\262\001\n\034NetworkAttachmen" + + "tsScopedList\022K\n\023network_attachments\030\237\336\326\370" + + "\001 \003(\0132*.google.cloud.compute.v1.NetworkA" + + "ttachment\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning" + + "\"\304\003\n\032NetworkEdgeSecurityService\022\"\n\022creat" + + "ion_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(" + + "\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n\006region\030\364" + + "\315\240B \001(\tH\006\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\t" + + "H\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n\021sel" + + "f_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001B\025\n\023_creatio" + + "n_timestampB\016\n\014_descriptionB\016\n\014_fingerpr" + + "intB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB" + + "\022\n\020_security_policyB\014\n\n_self_linkB\024\n\022_se" + + "lf_link_with_id\"\216\004\n(NetworkEdgeSecurityS" + + "erviceAggregatedList\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210" + + "\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022^\n\005items\030\300\317\367/ \003(\0132L" + + ".google.cloud.compute.v1.NetworkEdgeSecu" + + "rityServiceAggregatedList.ItemsEntry\022\024\n\004" + + "kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272" + + "\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022" + + "\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030" + + " \001(\0132 .google.cloud.compute.v1.WarningH\005" + + "\210\001\001\032l\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030" + + "\002 \001(\0132>.google.cloud.compute.v1.NetworkE" + + "dgeSecurityServicesScopedList:\0028\001B\007\n\005_et" + + "agB\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" + + "\n\n_self_linkB\n\n\010_warning\"\316\001\n%NetworkEdge" + + "SecurityServicesScopedList\022^\n\036network_ed" + + "ge_security_services\030\254\313\370\020 \003(\01323.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServi" + + "ce\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\236\003\n\017Ne" + + "tworkEndpoint\022Q\n\013annotations\030\244\366\2655 \003(\01329." + + "google.cloud.compute.v1.NetworkEndpoint." + + "AnnotationsEntry\022\'\n\027client_destination_p" + + "ort\030\206\210\202; \001(\005H\000\210\001\001\022\024\n\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022" + + "\030\n\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\nip_address\030" + + "\334\361\334\301\001 \001(\tH\003\210\001\001\022\035\n\014ipv6_address\030\234\263\357\242\001 \001(\t" + + "H\004\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\005\210\001\001\0322\n\020Annotatio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B" + + "\032\n\030_client_destination_portB\007\n\005_fqdnB\013\n\t" + + "_instanceB\r\n\013_ip_addressB\017\n\r_ipv6_addres" + + "sB\007\n\005_port\"\211\013\n\024NetworkEndpointGroup\022V\n\013a", + "nnotations\030\244\366\2655 \003(\0132>.google.cloud.compu" + + "te.v1.NetworkEndpointGroup.AnnotationsEn" + + "try\022S\n\napp_engine\030\240\214\300\242\001 \001(\01326.google.clo" + + "ud.compute.v1.NetworkEndpointGroupAppEng" + + "ineH\000\210\001\001\022[\n\016cloud_function\030\242\345\363\367\001 \001(\0132:.g" + + "oogle.cloud.compute.v1.NetworkEndpointGr" + + "oupCloudFunctionH\001\210\001\001\022P\n\tcloud_run\030\201\313\3724 " + + "\001(\01325.google.cloud.compute.v1.NetworkEnd" + + "pointGroupCloudRunH\002\210\001\001\022\"\n\022creation_time" + + "stamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n\014default_port\030\277\367\360\311" + + "\001 \001(\005H\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001" + + "\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210\001\001" + + "\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\027\n\007network\030\256\264\205o \001" + + "(\tH\t\210\001\001\022%\n\025network_endpoint_type\030\323\306\2648 \001(" + + "\tH\n\210\001\001\022N\n\010psc_data\030\311\333\246\" \001(\01324.google.clo" + + "ud.compute.v1.NetworkEndpointGroupPscDat" + + "aH\013\210\001\001\022#\n\022psc_target_service\030\346\302\252\200\001 \001(\tH\014" + + "\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\r\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\016\210\001\001\022\024\n\004size\030\201\300\327\001 \001(\005H\017\210\001\001\022\033\n" + + "\nsubnetwork\030\356\247\344\222\001 \001(\tH\020\210\001\001\022\024\n\004zone\030\254\307\344\001 " + + "\001(\tH\021\210\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\002\n\023NetworkEndpoint" + + "Type\022#\n\037UNDEFINED_NETWORK_ENDPOINT_TYPE\020" + + "\000\022\021\n\tGCE_VM_IP\020\331\355\320\277\001\022\026\n\016GCE_VM_IP_PORT\020\247" + + "\344\245\357\001\022\030\n\021GCE_VM_IP_PORTMAP\020\265\343\360\n\022\032\n\022INTERN" + + "ET_FQDN_PORT\020\355\320\333\300\001\022\030\n\020INTERNET_IP_PORT\020\233" + + "\333\345\343\001\022\037\n\027NON_GCP_PRIVATE_IP_PORT\020\340\223\267\240\001\022\036\n" + + "\027PRIVATE_SERVICE_CONNECT\020\304\364\371\026\022\022\n\nSERVERL" + + "ESS\020\334\306\375\200\001B\r\n\013_app_engineB\021\n\017_cloud_funct" + + "ionB\014\n\n_cloud_runB\025\n\023_creation_timestamp" + + "B\017\n\r_default_portB\016\n\014_descriptionB\005\n\003_id" + + "B\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\030\n\026_netwo" + + "rk_endpoint_typeB\013\n\t_psc_dataB\025\n\023_psc_ta" + + "rget_serviceB\t\n\007_regionB\014\n\n_self_linkB\007\n" + + "\005_sizeB\r\n\013_subnetworkB\007\n\005_zone\"\335\003\n\"Netwo" + + "rkEndpointGroupAggregatedList\022\020\n\002id\030\233\032 \001" + + "(\tH\000\210\001\001\022X\n\005items\030\300\317\367/ \003(\0132F.google.cloud" + + ".compute.v1.NetworkEndpointGroupAggregat" + + "edList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022" + + "\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself" + + "_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206" + + "t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" + + ".compute.v1.WarningH\004\210\001\001\032f\n\nItemsEntry\022\013" + + "\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.google.clou" + + "d.compute.v1.NetworkEndpointGroupsScoped" + + "List:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_t" + + "okenB\014\n\n_self_linkB\n\n\010_warning\"\222\001\n\035Netwo" + + "rkEndpointGroupAppEngine\022\030\n\007service\030\265\215\217\262" + + "\001 \001(\tH\000\210\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\001\210\001\001\022\030\n\007" + + "version\030\330\271\324\247\001 \001(\tH\002\210\001\001B\n\n\010_serviceB\013\n\t_u" + + "rl_maskB\n\n\010_version\"r\n!NetworkEndpointGr" + + "oupCloudFunction\022\031\n\010function\030\330\347\275\222\001 \001(\tH\000" + + "\210\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\001\210\001\001B\013\n\t_functi" + + "onB\013\n\t_url_mask\"\207\001\n\034NetworkEndpointGroup" + + "CloudRun\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001\022\022\n\003ta" + + "g\030\232\377\006 \001(\tH\001\210\001\001\022\030\n\010url_mask\030\274\217\2441 \001(\tH\002\210\001\001" + + "B\n\n\010_serviceB\006\n\004_tagB\013\n\t_url_mask\"\271\002\n\030Ne" + + "tworkEndpointGroupList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001" + + "\022?\n\005items\030\300\317\367/ \003(\0132-.google.cloud.comput" + + "e.v1.NetworkEndpointGroup\022\024\n\004kind\030\224\367\310\001 \001" + + "(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001" + + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030" + + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" + + "ngH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_to" + + "kenB\014\n\n_self_linkB\n\n\010_warning\"\275\003\n\033Networ" + + "kEndpointGroupPscData\022%\n\024consumer_psc_ad" + + "dress\030\254\255\353\327\001 \001(\tH\000\210\001\001\022\036\n\rproducer_port\030\216\332" + + "\301\303\001 \001(\005H\001\210\001\001\022\"\n\021psc_connection_id\030\335\245\243\213\001 " + + "\001(\004H\002\210\001\001\022%\n\025psc_connection_status\030\264\311\347W \001" + + "(\tH\003\210\001\001\"\260\001\n\023PscConnectionStatus\022#\n\037UNDEF" + + "INED_PSC_CONNECTION_STATUS\020\000\022\017\n\010ACCEPTED" + + "\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_ATTENTION" + + "\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022" + + "\031\n\022STATUS_UNSPECIFIED\020\312\314\213\024B\027\n\025_consumer_" + + "psc_addressB\020\n\016_producer_portB\024\n\022_psc_co" + + "nnection_idB\030\n\026_psc_connection_status\"u\n" + + "+NetworkEndpointGroupsAttachEndpointsReq" + + "uest\022F\n\021network_endpoints\030\255\221\272G \003(\0132(.goo" + + "gle.cloud.compute.v1.NetworkEndpoint\"u\n+" + + "NetworkEndpointGroupsDetachEndpointsRequ" + "est\022F\n\021network_endpoints\030\255\221\272G \003(\0132(.goog" - + "le.cloud.compute.v1.NetworkEndpoint\"u\n+N" - + "etworkEndpointGroupsDetachEndpointsReque" - + "st\022F\n\021network_endpoints\030\255\221\272G \003(\0132(.googl" - + "e.cloud.compute.v1.NetworkEndpoint\"\244\001\n)N" - + "etworkEndpointGroupsListEndpointsRequest" - + "\022\036\n\rhealth_status\030\265\326\272\265\001 \001(\tH\000\210\001\001\"E\n\014Heal" - + "thStatus\022\033\n\027UNDEFINED_HEALTH_STATUS\020\000\022\013\n" - + "\004SHOW\020\375\245\233\001\022\013\n\004SKIP\020\377\272\233\001B\020\n\016_health_statu" - + "s\"\253\002\n)NetworkEndpointGroupsListNetworkEn" - + "dpoints\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022J\n\005items\030\300\317\367/ " - + "\003(\01328.google.cloud.compute.v1.NetworkEnd" - + "pointWithHealthStatus\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" - + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n\007" - + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." - + "v1.WarningH\003\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next" - + "_page_tokenB\n\n\010_warning\"\273\001\n\037NetworkEndpo" - + "intGroupsScopedList\022Q\n\027network_endpoint_" - + "groups\030\255\227\377\r \003(\0132-.google.cloud.compute.v" - + "1.NetworkEndpointGroup\0229\n\007warning\030\234\337\226\030 \001" - + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" - + "\001B\n\n\010_warning\"\317\001\n\037NetworkEndpointWithHea" - + "lthStatus\022K\n\007healths\030\227\223\255{ \003(\01327.google.c" - + "loud.compute.v1.HealthStatusForNetworkEn" - + "dpoint\022J\n\020network_endpoint\030\206\221\212\033 \001(\0132(.go" - + "ogle.cloud.compute.v1.NetworkEndpointH\000\210" - + "\001\001B\023\n\021_network_endpoint\"\240\t\n\020NetworkInter" - + "face\022@\n\016access_configs\030\226\273\3724 \003(\0132%.google" - + ".cloud.compute.v1.AccessConfig\022A\n\017alias_" - + "ip_ranges\030\277\203\334N \003(\0132%.google.cloud.comput" - + "e.v1.AliasIpRange\022\033\n\013fingerprint\030\344\321\363o \001(" - + "\tH\000\210\001\001\022+\n\033internal_ipv6_prefix_length\030\235\203" - + "\231a \001(\005H\001\210\001\001\022F\n\023ipv6_access_configs\030\356\345\304\346\001" - + " \003(\0132%.google.cloud.compute.v1.AccessCon" - + "fig\022!\n\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\002\210\001\001\022\035" - + "\n\014ipv6_address\030\234\263\357\242\001 \001(\tH\003\210\001\001\022\024\n\004kind\030\224\367" - + "\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n\007net" - + "work\030\256\264\205o \001(\tH\006\210\001\001\022\"\n\022network_attachment" - + "\030\324\227\217k \001(\tH\007\210\001\001\022\033\n\013network_i_p\030\211\261\345b \001(\tH\010" - + "\210\001\001\022\030\n\010nic_type\030\221\306\302\034 \001(\tH\t\210\001\001\022\034\n\013queue_c" - + "ount\030\341\370\227\360\001 \001(\005H\n\210\001\001\022\033\n\nstack_type\030\221\265\213\313\001 " - + "\001(\tH\013\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH\014\210\001\001\"y\n" - + "\016Ipv6AccessType\022\036\n\032UNDEFINED_IPV6_ACCESS" - + "_TYPE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010INTERNAL\020\275\355\226" - + "\205\001\022$\n\034UNSPECIFIED_IPV6_ACCESS_TYPE\020\245\366\244\225\001" - + "\"m\n\007NicType\022\026\n\022UNDEFINED_NIC_TYPE\020\000\022\014\n\005G" - + "VNIC\020\231\225\303 \022\013\n\004IDPF\020\321\360\210\001\022\033\n\024UNSPECIFIED_NI" - + "C_TYPE\020\331\276\222 \022\022\n\nVIRTIO_NET\020\331\266\313\327\001\"{\n\tStack" - + "Type\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020\n\tIPV4_I" - + "PV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\tIPV6_ONLY\020" - + "\344\255\374%\022\036\n\026UNSPECIFIED_STACK_TYPE\020\331\321\221\216\001B\016\n\014" - + "_fingerprintB\036\n\034_internal_ipv6_prefix_le" - + "ngthB\023\n\021_ipv6_access_typeB\017\n\r_ipv6_addre" - + "ssB\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\025\n\023_net" - + "work_attachmentB\016\n\014_network_i_pB\013\n\t_nic_" - + "typeB\016\n\014_queue_countB\r\n\013_stack_typeB\r\n\013_" - + "subnetwork\"\237\002\n\013NetworkList\022\020\n\002id\030\233\032 \001(\tH" - + "\000\210\001\001\0222\n\005items\030\300\317\367/ \003(\0132 .google.cloud.co" - + "mpute.v1.Network\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037" - + "\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_" - + "link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005" - + "\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_s" - + "elf_linkB\n\n\010_warning\"\272\006\n\016NetworkPeering\022" - + "\"\n\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022&\n\026e" - + "xchange_subnet_routes\030\320\312\306\014 \001(\010H\001\210\001\001\022$\n\024e" - + "xport_custom_routes\030\215\245\337\034 \001(\010H\002\210\001\001\0223\n#exp" - + "ort_subnet_routes_with_public_ip\030\342\352\331. \001(" - + "\010H\003\210\001\001\022$\n\024import_custom_routes\030\276\361\263^ \001(\010H" - + "\004\210\001\001\0223\n#import_subnet_routes_with_public" - + "_ip\030\221\216\360\006 \001(\010H\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022" - + "\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\030\n\010peer_mtu\030\321\216\227" - + "! \001(\005H\010\210\001\001\022\033\n\nstack_type\030\221\265\213\313\001 \001(\tH\t\210\001\001\022" - + "\025\n\005state\030\221\211\2534 \001(\tH\n\210\001\001\022\035\n\rstate_details\030" - + "\224\371\310- \001(\tH\013\210\001\001\"I\n\tStackType\022\030\n\024UNDEFINED_" - + "STACK_TYPE\020\000\022\020\n\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_O" - + "NLY\020\246\313\325\n\">\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016" - + "\n\006ACTIVE\020\206\346\211\226\001\022\020\n\010INACTIVE\020\353\230\371\200\001B\025\n\023_aut" - + "o_create_routesB\031\n\027_exchange_subnet_rout" - + "esB\027\n\025_export_custom_routesB&\n$_export_s" - + "ubnet_routes_with_public_ipB\027\n\025_import_c" - + "ustom_routesB&\n$_import_subnet_routes_wi" - + "th_public_ipB\007\n\005_nameB\n\n\010_networkB\013\n\t_pe" - + "er_mtuB\r\n\013_stack_typeB\010\n\006_stateB\020\n\016_stat" - + "e_details\"\316\001\n\030NetworkPerformanceConfig\022+" - + "\n\033total_egress_bandwidth_tier\030\377\237\205> \001(\tH\000" - + "\210\001\001\"e\n\030TotalEgressBandwidthTier\022)\n%UNDEF" - + "INED_TOTAL_EGRESS_BANDWIDTH_TIER\020\000\022\016\n\007DE" - + "FAULT\020\241\304\3756\022\016\n\006TIER_1\020\224\312\361\233\001B\036\n\034_total_egr" - + "ess_bandwidth_tier\"\222\001\n\024NetworkRoutingCon" - + "fig\022\035\n\014routing_mode\030\374\272\310\342\001 \001(\tH\000\210\001\001\"J\n\013Ro" - + "utingMode\022\032\n\026UNDEFINED_ROUTING_MODE\020\000\022\016\n" - + "\006GLOBAL\020\243\357\357\353\001\022\017\n\010REGIONAL\020\237\354\200,B\017\n\r_routi" - + "ng_mode\"\204\002\n\031NetworksAddPeeringRequest\022\"\n" - + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n\004nam" - + "e\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n\017network_peering\030\257\214\354\234\001" - + " \001(\0132\'.google.cloud.compute.v1.NetworkPe" - + "eringH\002\210\001\001\022\035\n\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001" - + "\001B\025\n\023_auto_create_routesB\007\n\005_nameB\022\n\020_ne" - + "twork_peeringB\017\n\r_peer_network\"\326\001\n%Netwo" - + "rksGetEffectiveFirewallsResponse\022s\n\020fire" - + "wall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.co" - + "mpute.v1.NetworksGetEffectiveFirewallsRe" - + "sponseEffectiveFirewallPolicy\0228\n\tfirewal" - + "ls\030\363\306\350\201\001 \003(\0132!.google.cloud.compute.v1.F" - + "irewall\"\242\003\n" + + "\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206" + + "\346\211\226\001\022\020\n\010INACTIVE\020\353\230\371\200\001B\025\n\023_auto_create_r" + + "outesB\031\n\027_exchange_subnet_routesB\027\n\025_exp" + + "ort_custom_routesB&\n$_export_subnet_rout" + + "es_with_public_ipB\027\n\025_import_custom_rout" + + "esB&\n$_import_subnet_routes_with_public_" + + "ipB\007\n\005_nameB\n\n\010_networkB\013\n\t_peer_mtuB\r\n\013" + + "_stack_typeB\010\n\006_stateB\020\n\016_state_details\"" + + "\316\001\n\030NetworkPerformanceConfig\022+\n\033total_eg" + + "ress_bandwidth_tier\030\377\237\205> \001(\tH\000\210\001\001\"e\n\030Tot" + + "alEgressBandwidthTier\022)\n%UNDEFINED_TOTAL" + + "_EGRESS_BANDWIDTH_TIER\020\000\022\016\n\007DEFAULT\020\241\304\3756" + + "\022\016\n\006TIER_1\020\224\312\361\233\001B\036\n\034_total_egress_bandwi" + + "dth_tier\"\212\004\n\016NetworkProfile\022\"\n\022creation_" + + "timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374" + + "\207\326\311\001 \001(\tH\001\210\001\001\022P\n\010features\030\275\310\263u \001(\01326.goo" + + "gle.cloud.compute.v1.NetworkProfileNetwo" + + "rkFeaturesH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n\010location\030\265\277\276\212\001 \001(\0132/." + + "google.cloud.compute.v1.NetworkProfileLo" + + "cationH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\032\n\tsel" + + "f_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n\021self_link_with_" + + "id\030\202\254\235\025 \001(\tH\010\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\t\210\001\001B\025" + + "\n\023_creation_timestampB\016\n\014_descriptionB\013\n" + + "\t_featuresB\005\n\003_idB\007\n\005_kindB\013\n\t_locationB" + + "\007\n\005_nameB\014\n\n_self_linkB\024\n\022_self_link_wit" + + "h_idB\007\n\005_zone\"\222\001\n\026NetworkProfileLocation" + + "\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n\005scope\030\324\374\2144 \001(\t" + + "H\001\210\001\001\"8\n\005Scope\022\023\n\017UNDEFINED_SCOPE\020\000\022\r\n\006R" + + "EGION\020\364\265\354~\022\013\n\004ZONE\020\254\267\250\001B\007\n\005_nameB\010\n\006_sco" + + "pe\"\364\037\n\035NetworkProfileNetworkFeatures\022\034\n\020" + + "address_purposes\030\200\336\275\316\001 \003(\t\022&\n\025allow_alia" + + "s_ip_ranges\030\311\221\261\332\001 \001(\tH\000\210\001\001\022&\n\026allow_auto" + + "_mode_subnet\030\237\202\311H \001(\tH\001\210\001\001\022\'\n\027allow_clas" + + "s_d_firewalls\030\233\343\340> \001(\tH\002\210\001\001\022\037\n\017allow_clo" + + "ud_nat\030\241\325\301y \001(\tH\003\210\001\001\022#\n\022allow_cloud_rout" + + "er\030\311\313\215\327\001 \001(\tH\004\210\001\001\022(\n\030allow_external_ip_a" + + "ccess\030\276\271\334> \001(\tH\005\210\001\001\022#\n\022allow_interconnec" + + "t\030\304\223\341\205\001 \001(\tH\006\210\001\001\022$\n\024allow_load_balancing" + + "\030\266\230\301j \001(\tH\007\210\001\001\022/\n\037allow_multi_nic_in_sam" + + "e_network\030\374\264\212* \001(\tH\010\210\001\001\022\'\n\026allow_packet_" + + "mirroring\030\202\356\237\364\001 \001(\tH\t\210\001\001\022,\n\033allow_privat" + + "e_google_access\030\370\377\325\262\001 \001(\tH\n\210\001\001\022\032\n\tallow_" + + "psc\030\312\361\306\261\001 \001(\tH\013\210\001\001\022*\n\032allow_same_network" + + "_unicast\030\373\250\361O \001(\tH\014\210\001\001\022#\n\023allow_static_r" + + "outes\030\305\237\253X \001(\tH\r\210\001\001\022$\n\024allow_sub_interfa" + + "ces\030\357\262\360u \001(\tH\016\210\001\001\022!\n\021allow_vpc_peering\030\364" + + "\313\2037 \001(\tH\017\210\001\001\022\032\n\tallow_vpn\030\376\235\307\261\001 \001(\tH\020\210\001\001" + + "\022\032\n\017interface_types\030\363\263\252K \003(\t\022\033\n\017subnet_p" + + "urposes\030\267\233\330\217\001 \003(\t\022\036\n\022subnet_stack_types\030" + + "\240\354\267\370\001 \003(\t\022\027\n\007unicast\030\257\220\221w \001(\tH\021\210\001\001\"\363\001\n\017A" + + "ddressPurposes\022\036\n\032UNDEFINED_ADDRESS_PURP" + + "OSES\020\000\022\024\n\014DNS_RESOLVER\020\374\334\203\343\001\022\023\n\014GCE_ENDP" + + "OINT\020\253\304\365m\022\032\n\022IPSEC_INTERCONNECT\020\203\322\252\242\001\022\017\n" + + "\010NAT_AUTO\020\255\264\205N\022\036\n\027PRIVATE_SERVICE_CONNEC" + + "T\020\304\364\371\026\022\022\n\nSERVERLESS\020\334\306\375\200\001\022\037\n\027SHARED_LOA" + + "DBALANCER_VIP\020\324\323\263\214\001\022\023\n\013VPC_PEERING\020\252\363\216\277\001" + + "\"{\n\022AllowAliasIpRanges\022#\n\037UNDEFINED_ALLO" + + "W_ALIAS_IP_RANGES\020\000\022\037\n\027ALIAS_IP_RANGES_A" + + "LLOWED\020\350\235\325\335\001\022\037\n\027ALIAS_IP_RANGES_BLOCKED\020" + + "\254\336\200\206\001\"~\n\023AllowAutoModeSubnet\022$\n UNDEFINE" + + "D_ALLOW_AUTO_MODE_SUBNET\020\000\022 \n\030AUTO_MODE_" + + "SUBNET_ALLOWED\020\262\254\273\272\001\022\037\n\030AUTO_MODE_SUBNET" + + "_BLOCKED\020\366\354\346b\"\202\001\n\024AllowClassDFirewalls\022%" + + "\n!UNDEFINED_ALLOW_CLASS_D_FIREWALLS\020\000\022!\n" + + "\031CLASS_D_FIREWALLS_ALLOWED\020\372\317\205\246\001\022 \n\031CLAS" + + "S_D_FIREWALLS_BLOCKED\020\276\220\261N\"b\n\rAllowCloud" + + "Nat\022\035\n\031UNDEFINED_ALLOW_CLOUD_NAT\020\000\022\030\n\021CL" + + "OUD_NAT_ALLOWED\020\240\272\242u\022\030\n\021CLOUD_NAT_BLOCKE" + + "D\020\344\372\315\035\"o\n\020AllowCloudRouter\022 \n\034UNDEFINED_" + + "ALLOW_CLOUD_ROUTER\020\000\022\034\n\024CLOUD_ROUTER_ALL" + + "OWED\020\374\303\235\256\001\022\033\n\024CLOUD_ROUTER_BLOCKED\020\300\204\311V\"" + + "\206\001\n\025AllowExternalIpAccess\022&\n\"UNDEFINED_A" + + "LLOW_EXTERNAL_IP_ACCESS\020\000\022!\n\032EXTERNAL_IP" + + "_ACCESS_ALLOWED\020\321\230\2354\022\"\n\032EXTERNAL_IP_ACCE" + + "SS_BLOCKED\020\225\331\310\334\001\"p\n\021AllowInterconnect\022 \n" + + "\034UNDEFINED_ALLOW_INTERCONNECT\020\000\022\033\n\024INTER" + + "CONNECT_ALLOWED\020\327\245\323M\022\034\n\024INTERCONNECT_BLO" + + "CKED\020\233\346\376\365\001\"w\n\022AllowLoadBalancing\022\"\n\036UNDE" + + "FINED_ALLOW_LOAD_BALANCING\020\000\022\035\n\026LOAD_BAL" + + "ANCING_ALLOWED\020\251\361\305\r\022\036\n\026LOAD_BALANCING_BL" + + "OCKED\020\355\261\361\265\001\"\241\001\n\032AllowMultiNicInSameNetwo" + + "rk\022-\n)UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_" + + "NETWORK\020\000\022)\n!MULTI_NIC_IN_SAME_NETWORK_A" + + "LLOWED\020\333\373\226\332\001\022)\n!MULTI_NIC_IN_SAME_NETWOR" + + "K_BLOCKED\020\237\274\302\202\001\"\177\n\024AllowPacketMirroring\022" + + "$\n UNDEFINED_ALLOW_PACKET_MIRRORING\020\000\022\037\n" + + "\030PACKET_MIRRORING_ALLOWED\020\365\321\210,\022 \n\030PACKET" + + "_MIRRORING_BLOCKED\020\271\222\264\324\001\"\221\001\n\030AllowPrivat" + + "eGoogleAccess\022)\n%UNDEFINED_ALLOW_PRIVATE" + + "_GOOGLE_ACCESS\020\000\022$\n\035PRIVATE_GOOGLE_ACCES" + + "S_ALLOWED\020\227\345\243i\022$\n\035PRIVATE_GOOGLE_ACCESS_" + + "BLOCKED\020\333\245\317\021\"L\n\010AllowPsc\022\027\n\023UNDEFINED_AL" + + "LOW_PSC\020\000\022\022\n\013PSC_ALLOWED\020\351\225\347Q\022\023\n\013PSC_BLO" + + "CKED\020\255\326\222\372\001\"\216\001\n\027AllowSameNetworkUnicast\022(" + + "\n$UNDEFINED_ALLOW_SAME_NETWORK_UNICAST\020\000" + + "\022#\n\034SAME_NETWORK_UNICAST_ALLOWED\020\316\250\225L\022$\n" + + "\034SAME_NETWORK_UNICAST_BLOCKED\020\222\351\300\364\001\"s\n\021A" + + "llowStaticRoutes\022!\n\035UNDEFINED_ALLOW_STAT" + + "IC_ROUTES\020\000\022\035\n\025STATIC_ROUTES_ALLOWED\020\204\257\206" + + "\303\001\022\034\n\025STATIC_ROUTES_BLOCKED\020\310\357\261k\"u\n\022Allo" + + "wSubInterfaces\022\"\n\036UNDEFINED_ALLOW_SUB_IN" + + "TERFACES\020\000\022\034\n\025SUBINTERFACES_ALLOWED\020\303\265\325K" + + "\022\035\n\025SUBINTERFACES_BLOCKED\020\207\366\200\364\001\"j\n\017Allow" + + "VpcPeering\022\037\n\033UNDEFINED_ALLOW_VPC_PEERIN" + + "G\020\000\022\032\n\023VPC_PEERING_ALLOWED\020\363\307\326|\022\032\n\023VPC_P" + + "EERING_BLOCKED\020\267\210\202%\"L\n\010AllowVpn\022\027\n\023UNDEF" + + "INED_ALLOW_VPN\020\000\022\022\n\013VPN_ALLOWED\020\235\332\251M\022\023\n\013" + + "VPN_BLOCKED\020\341\232\325\365\001\"\227\001\n\016InterfaceTypes\022\035\n\031" + + "UNDEFINED_INTERFACE_TYPES\020\000\022\014\n\005GVNIC\020\231\225\303" + + " \022\013\n\004IDPF\020\321\360\210\001\022\014\n\005IRDMA\020\217\206\254!\022\014\n\005MRDMA\020\223\302" + + "\215#\022\033\n\024UNSPECIFIED_NIC_TYPE\020\331\276\222 \022\022\n\nVIRTI" + + "O_NET\020\331\266\313\327\001\"w\n\016SubnetPurposes\022\035\n\031UNDEFIN" + + "ED_SUBNET_PURPOSES\020\000\022&\n\036SUBNET_PURPOSE_C" + + "USTOM_HARDWARE\020\323\335\202\207\001\022\036\n\026SUBNET_PURPOSE_P" + + "RIVATE\020\300\354\350\300\001\"\240\001\n\020SubnetStackTypes\022 \n\034UND" + + "EFINED_SUBNET_STACK_TYPES\020\000\022\"\n\033SUBNET_ST" + + "ACK_TYPE_IPV4_IPV6\020\225\227\342\023\022\"\n\033SUBNET_STACK_" + + "TYPE_IPV4_ONLY\020\272\372\354\023\022\"\n\033SUBNET_STACK_TYPE" + + "_IPV6_ONLY\020\370\334\223/\"J\n\007Unicast\022\025\n\021UNDEFINED_" + + "UNICAST\020\000\022\023\n\013UNICAST_SDN\020\355\307\226\265\001\022\023\n\013UNICAS" + + "T_ULL\020\345\330\226\265\001B\030\n\026_allow_alias_ip_rangesB\031\n" + + "\027_allow_auto_mode_subnetB\032\n\030_allow_class" + + "_d_firewallsB\022\n\020_allow_cloud_natB\025\n\023_all" + + "ow_cloud_routerB\033\n\031_allow_external_ip_ac" + + "cessB\025\n\023_allow_interconnectB\027\n\025_allow_lo" + + "ad_balancingB\"\n _allow_multi_nic_in_same" + + "_networkB\031\n\027_allow_packet_mirroringB\036\n\034_" + + "allow_private_google_accessB\014\n\n_allow_ps" + + "cB\035\n\033_allow_same_network_unicastB\026\n\024_all" + + "ow_static_routesB\027\n\025_allow_sub_interface" + + "sB\024\n\022_allow_vpc_peeringB\014\n\n_allow_vpnB\n\n" + + "\010_unicast\"\356\002\n\033NetworkProfilesListRespons" + + "e\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001" + + "\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.compu" + + "te.v1.NetworkProfile\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unreachables\030" + + "\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" + + "oud.compute.v1.WarningH\005\210\001\001B\007\n\005_etagB\005\n\003" + + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" + + "f_linkB\n\n\010_warning\"\264\004\n\024NetworkRoutingCon" + + "fig\022&\n\026bgp_always_compare_med\030\266\342\316e \001(\010H\000" + + "\210\001\001\022-\n\034bgp_best_path_selection_mode\030\351\373\305\227" + + "\001 \001(\tH\001\210\001\001\022&\n\025bgp_inter_region_cost\030\341\371\256\334" + + "\001 \001(\tH\002\210\001\001\022\035\n\014routing_mode\030\374\272\310\342\001 \001(\tH\003\210\001" + + "\001\"g\n\030BgpBestPathSelectionMode\022*\n&UNDEFIN" + + "ED_BGP_BEST_PATH_SELECTION_MODE\020\000\022\r\n\006LEG" + + "ACY\020\311\317\367,\022\020\n\010STANDARD\020\275\235\214\347\001\"b\n\022BgpInterRe" + + "gionCost\022#\n\037UNDEFINED_BGP_INTER_REGION_C" + + "OST\020\000\022\027\n\017ADD_COST_TO_MED\020\334\347\366\351\001\022\016\n\007DEFAUL" + + "T\020\241\304\3756\"J\n\013RoutingMode\022\032\n\026UNDEFINED_ROUTI" + + "NG_MODE\020\000\022\016\n\006GLOBAL\020\243\357\357\353\001\022\017\n\010REGIONAL\020\237\354" + + "\200,B\031\n\027_bgp_always_compare_medB\037\n\035_bgp_be" + + "st_path_selection_modeB\030\n\026_bgp_inter_reg" + + "ion_costB\017\n\r_routing_mode\"\204\002\n\031NetworksAd" + + "dPeeringRequest\022\"\n\022auto_create_routes\030\335\342" + + "\262\033 \001(\010H\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n\017net" + + "work_peering\030\257\214\354\234\001 \001(\0132\'.google.cloud.co" + + "mpute.v1.NetworkPeeringH\002\210\001\001\022\035\n\014peer_net" + + "work\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n\023_auto_create_rout" + + "esB\007\n\005_nameB\022\n\020_network_peeringB\017\n\r_peer" + + "_network\"\326\001\n%NetworksGetEffectiveFirewal" + + "lsResponse\022s\n\020firewall_policys\030\302\312\374\303\001 \003(\013" + + "2U.google.cloud.compute.v1.NetworksGetEf" + + "fectiveFirewallsResponseEffectiveFirewal" + + "lPolicy\0228\n\tfirewalls\030\363\306\350\201\001 \003(\0132!.google." + + "cloud.compute.v1.Firewall\"\242\003\n.google.cloud.compute.v1." + + "NodeTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225" + "\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001" + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" - + "\004\210\001\001\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value" - + "\030\002 \001(\0132-.google.cloud.compute.v1.NodeGro" - + "upsScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_ne" - + "xt_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"" - + "\360\001\n\032NodeGroupAutoscalingPolicy\022\032\n\tmax_no" - + "des\030\226\200\376\215\001 \001(\005H\000\210\001\001\022\032\n\tmin_nodes\030\204\255\252\376\001 \001(" - + "\005H\001\210\001\001\022\024\n\004mode\030\243\363\314\001 \001(\tH\002\210\001\001\"_\n\004Mode\022\022\n\016" - + "UNDEFINED_MODE\020\000\022\030\n\020MODE_UNSPECIFIED\020\373\244\211" - + "\261\001\022\t\n\003OFF\020\317\342\004\022\007\n\002ON\020\337\023\022\025\n\016ONLY_SCALE_OUT" - + "\020\306\363\350HB\014\n\n_max_nodesB\014\n\n_min_nodesB\007\n\005_mo" - + "de\"\243\002\n\rNodeGroupList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0224" - + "\n\005items\030\300\317\367/ \003(\0132\".google.cloud.compute." - + "v1.NodeGroup\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + + "\004\210\001\001\032^\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value" + + "\030\002 \001(\01320.google.cloud.compute.v1.NodeTem" + + "platesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020" + + "_next_page_tokenB\014\n\n_self_linkB\n\n\010_warni" + + "ng\"\251\002\n\020NodeTemplateList\022\020\n\002id\030\233\032 \001(\tH\000\210\001" + + "\001\0227\n\005items\030\300\317\367/ \003(\0132%.google.cloud.compu" + + "te.v1.NodeTemplate\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001" + + "\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tsel" + + "f_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(" + + "\0132 .google.cloud.compute.v1.WarningH\004\210\001\001" + + "B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n\010_warning\"\216\001\n\037NodeTemplateN" + + "odeTypeFlexibility\022\024\n\004cpus\030\313\347\272\001 \001(\tH\000\210\001\001" + + "\022\032\n\tlocal_ssd\030\260\276\274\301\001 \001(\tH\001\210\001\001\022\027\n\006memory\030\201" + + "\372\212\376\001 \001(\tH\002\210\001\001B\007\n\005_cpusB\014\n\n_local_ssdB\t\n\007" + + "_memory\"\243\001\n\027NodeTemplatesScopedList\022A\n\016n" + + "ode_templates\030\274\242\355\250\001 \003(\0132%.google.cloud.c" + + "ompute.v1.NodeTemplate\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" + + "\001B\n\n\010_warning\"\240\004\n\010NodeType\022\035\n\014cpu_platfo" + + "rm\030\252\352\321\303\001 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030" + + "\266\217\307\016 \001(\tH\001\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001 \001(\0132*." + + "google.cloud.compute.v1.DeprecationStatu" + + "sH\002\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\n" + + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005" + + "\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\035\n\014local_ssd_g" + + "b\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\031\n\tmemory_mb\030\223\223\2507 \001(\005H\010" + + "\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\n\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001\001B\017\n\r_" + + "cpu_platformB\025\n\023_creation_timestampB\r\n\013_" + + "deprecatedB\016\n\014_descriptionB\r\n\013_guest_cpu" + + "sB\005\n\003_idB\007\n\005_kindB\017\n\r_local_ssd_gbB\014\n\n_m" + + "emory_mbB\007\n\005_nameB\014\n\n_self_linkB\007\n\005_zone" + + "\"\271\003\n\026NodeTypeAggregatedList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\022L\n\005items\030\300\317\367/ \003(\0132:.google.cloud.c" + + "ompute.v1.NodeTypeAggregatedList.ItemsEn" + + "try\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\004\210\001\001\032Z\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022;\n" + + "\005value\030\002 \001(\0132,.google.cloud.compute.v1.N" + + "odeTypesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022" + + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" + + "ning\"\241\002\n\014NodeTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" + + "3\n\005items\030\300\317\367/ \003(\0132!.google.cloud.compute" + + ".v1.NodeType\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + "xt_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link" + "\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" + "ogle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_i" + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" - + "linkB\n\n\010_warning\"\252\001\n\032NodeGroupMaintenanc" - + "eWindow\022H\n\024maintenance_duration\030\300\242\275\372\001 \001(" - + "\0132!.google.cloud.compute.v1.DurationH\000\210\001" - + "\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\001\210\001\001B\027\n\025_mainte" - + "nance_durationB\r\n\013_start_time\"\217\t\n\rNodeGr" - + "oupNode\022D\n\014accelerators\030\350\326\305\200\001 \003(\0132*.goog" - + "le.cloud.compute.v1.AcceleratorConfig\022U\n" - + "\022consumed_resources\030\216\365\301\237\001 \001(\01320.google.c" - + "loud.compute.v1.InstanceConsumptionInfoH" - + "\000\210\001\001\022#\n\023cpu_overcommit_type\030\327\216\220v \001(\tH\001\210\001" - + "\001\0224\n\005disks\030\366\314\312- \003(\0132\".google.cloud.compu" - + "te.v1.LocalDisk\022V\n\031instance_consumption_" - + "data\030\270\320\262( \003(\01320.google.cloud.compute.v1." - + "InstanceConsumptionData\022\024\n\tinstances\030\376\374\357" - + "\r \003(\t\022\024\n\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022\032\n\tnode_type" - + "\030\327\226\220\336\001 \001(\tH\003\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001" - + "(\010H\004\210\001\001\022F\n\016server_binding\030\211\243\242c \001(\0132&.goo" - + "gle.cloud.compute.v1.ServerBindingH\005\210\001\001\022" - + "\032\n\tserver_id\030\227\257\355\241\001 \001(\tH\006\210\001\001\022\026\n\006status\030\362\237" - + "\267V \001(\tH\007\210\001\001\022Q\n\017total_resources\030\352\235\271. \001(\0132" - + "0.google.cloud.compute.v1.InstanceConsum" - + "ptionInfoH\010\210\001\001\022R\n\024upcoming_maintenance\030\360" - + "\240\264l \001(\0132,.google.cloud.compute.v1.Upcomi" - + "ngMaintenanceH\t\210\001\001\"|\n\021CpuOvercommitType\022" - + "!\n\035UNDEFINED_CPU_OVERCOMMIT_TYPE\020\000\022\'\n\037CP" - + "U_OVERCOMMIT_TYPE_UNSPECIFIED\020\217\364\242\370\001\022\016\n\007E" - + "NABLED\020\241\256\354V\022\013\n\004NONE\020\270\316\222\001\"t\n\006Status\022\024\n\020UN" - + "DEFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DE" - + "LETING\020\250\247\207\374\001\022\017\n\007INVALID\020\327\373\355\374\001\022\014\n\005READY\020\203" - + "\303\217%\022\021\n\tREPAIRING\020\225\202\225\305\001B\025\n\023_consumed_reso" - + "urcesB\026\n\024_cpu_overcommit_typeB\007\n\005_nameB\014" - + "\n\n_node_typeB\020\n\016_satisfies_pzsB\021\n\017_serve" - + "r_bindingB\014\n\n_server_idB\t\n\007_statusB\022\n\020_t" - + "otal_resourcesB\027\n\025_upcoming_maintenance\"" - + "\\\n\031NodeGroupsAddNodesRequest\022%\n\025addition" - + "al_node_count\030\252\317\257@ \001(\005H\000\210\001\001B\030\n\026_addition" - + "al_node_count\"0\n\034NodeGroupsDeleteNodesRe" - + "quest\022\020\n\005nodes\030\261\245\2102 \003(\t\"\255\002\n\023NodeGroupsLi" - + "stNodes\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0228\n\005items\030\300\317\367/ " - + "\003(\0132&.google.cloud.compute.v1.NodeGroupN" - + "ode\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" - + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" - + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" - + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" - + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" - + "warning\"b\n#NodeGroupsPerformMaintenanceR" - + "equest\022\020\n\005nodes\030\261\245\2102 \003(\t\022\032\n\nstart_time\030\212" - + "\351\356\021 \001(\tH\000\210\001\001B\r\n\013_start_time\"\231\001\n\024NodeGrou" - + "psScopedList\022:\n\013node_groups\030\261\205\363\" \003(\0132\".g" - + "oogle.cloud.compute.v1.NodeGroup\0229\n\007warn" - + "ing\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.W" - + "arningH\000\210\001\001B\n\n\010_warning\"T\n NodeGroupsSet" - + "NodeTemplateRequest\022\036\n\rnode_template\030\227\344\213" - + "\232\001 \001(\tH\000\210\001\001B\020\n\016_node_template\"=\n)NodeGro" - + "upsSimulateMaintenanceEventRequest\022\020\n\005no" - + "des\030\261\245\2102 \003(\t\"\251\t\n\014NodeTemplate\022D\n\014acceler" - + "ators\030\350\326\305\200\001 \003(\0132*.google.cloud.compute.v" - + "1.AcceleratorConfig\022#\n\023cpu_overcommit_ty" - + "pe\030\327\216\220v \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266" - + "\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210" - + "\001\001\0224\n\005disks\030\366\314\312- \003(\0132\".google.cloud.comp" - + "ute.v1.LocalDisk\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004ki" - + "nd\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022_" - + "\n\024node_affinity_labels\030\271\255\323\241\001 \003(\0132=.googl" - + "e.cloud.compute.v1.NodeTemplate.NodeAffi" - + "nityLabelsEntry\022\032\n\tnode_type\030\327\226\220\336\001 \001(\tH\006" - + "\210\001\001\022`\n\025node_type_flexibility\030\261\350\251\226\001 \001(\01328" - + ".google.cloud.compute.v1.NodeTemplateNod" - + "eTypeFlexibilityH\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\t" - + "H\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022F\n\016ser" - + "ver_binding\030\211\243\242c \001(\0132&.google.cloud.comp" - + "ute.v1.ServerBindingH\n\210\001\001\022\026\n\006status\030\362\237\267V" - + " \001(\tH\013\210\001\001\022\037\n\016status_message\030\272\311\351\215\001 \001(\tH\014\210" - + "\001\001\0329\n\027NodeAffinityLabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\021CpuOvercommitTy" - + "pe\022!\n\035UNDEFINED_CPU_OVERCOMMIT_TYPE\020\000\022\'\n" - + "\037CPU_OVERCOMMIT_TYPE_UNSPECIFIED\020\217\364\242\370\001\022\016" - + "\n\007ENABLED\020\241\256\354V\022\013\n\004NONE\020\270\316\222\001\"a\n\006Status\022\024\n" - + "\020UNDEFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n" - + "\010DELETING\020\250\247\207\374\001\022\017\n\007INVALID\020\327\373\355\374\001\022\014\n\005READ" - + "Y\020\203\303\217%B\026\n\024_cpu_overcommit_typeB\025\n\023_creat" - + "ion_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005" - + "_kindB\007\n\005_nameB\014\n\n_node_typeB\030\n\026_node_ty" - + "pe_flexibilityB\t\n\007_regionB\014\n\n_self_linkB" - + "\021\n\017_server_bindingB\t\n\007_statusB\021\n\017_status" - + "_message\"\305\003\n\032NodeTemplateAggregatedList\022" - + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022P\n\005items\030\300\317\367/ \003(\0132>.go" - + "ogle.cloud.compute.v1.NodeTemplateAggreg" - + "atedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001" - + "\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tse" - + "lf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237" - + "\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" - + "ud.compute.v1.WarningH\004\210\001\001\032^\n\nItemsEntry" - + "\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.cl" - + "oud.compute.v1.NodeTemplatesScopedList:\002" - + "8\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" - + "\n\n_self_linkB\n\n\010_warning\"\251\002\n\020NodeTemplat" - + "eList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227\n\005items\030\300\317\367/ \003(" - + "\0132%.google.cloud.compute.v1.NodeTemplate" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022" - + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" - + "ning\"\216\001\n\037NodeTemplateNodeTypeFlexibility" - + "\022\024\n\004cpus\030\313\347\272\001 \001(\tH\000\210\001\001\022\032\n\tlocal_ssd\030\260\276\274\301" - + "\001 \001(\tH\001\210\001\001\022\027\n\006memory\030\201\372\212\376\001 \001(\tH\002\210\001\001B\007\n\005_" - + "cpusB\014\n\n_local_ssdB\t\n\007_memory\"\243\001\n\027NodeTe" - + "mplatesScopedList\022A\n\016node_templates\030\274\242\355\250" - + "\001 \003(\0132%.google.cloud.compute.v1.NodeTemp" - + "late\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\240\004\n\010" - + "NodeType\022\035\n\014cpu_platform\030\252\352\321\303\001 \001(\tH\000\210\001\001\022" - + "\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\nd" - + "eprecated\030\263\313\321\365\001 \001(\0132*.google.cloud.compu" - + "te.v1.DeprecationStatusH\002\210\001\001\022\034\n\013descript" - + "ion\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\nguest_cpus\030\322\313\310\273\001 \001" - + "(\005H\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\006\210\001\001\022\035\n\014local_ssd_gb\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\031" - + "\n\tmemory_mb\030\223\223\2507 \001(\005H\010\210\001\001\022\024\n\004name\030\213\365\315\001 \001" - + "(\tH\t\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022\024\n\004z" - + "one\030\254\307\344\001 \001(\tH\013\210\001\001B\017\n\r_cpu_platformB\025\n\023_c" - + "reation_timestampB\r\n\013_deprecatedB\016\n\014_des" - + "criptionB\r\n\013_guest_cpusB\005\n\003_idB\007\n\005_kindB" - + "\017\n\r_local_ssd_gbB\014\n\n_memory_mbB\007\n\005_nameB" - + "\014\n\n_self_linkB\007\n\005_zone\"\271\003\n\026NodeTypeAggre" - + "gatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022L\n\005items\030\300\317\367" - + "/ \003(\0132:.google.cloud.compute.v1.NodeType" - + "AggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001" - + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreacha" - + "bles\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" - + "le.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\nItem" - + "sEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.goo" - + "gle.cloud.compute.v1.NodeTypesScopedList" - + ":\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_token" - + "B\014\n\n_self_linkB\n\n\010_warning\"\241\002\n\014NodeTypeL" - + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132" - + "!.google.cloud.compute.v1.NodeType\022\024\n\004ki" - + "nd\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206&" - + " \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute" - + ".v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_nex" - + "t_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\227" - + "\001\n\023NodeTypesScopedList\0229\n\nnode_types\030\374\277\365" - + "\345\001 \003(\0132!.google.cloud.compute.v1.NodeTyp" - + "e\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\220\003\n\024Not" - + "ificationEndpoint\022\"\n\022creation_timestamp\030" - + "\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001" - + "\210\001\001\022Y\n\rgrpc_settings\030\244\306\300\331\001 \001(\01329.google." - + "cloud.compute.v1.NotificationEndpointGrp" - + "cSettingsH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind" - + "\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n\006" - + "region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\007\210\001\001B\025\n\023_creation_timestampB\016\n\014_desc" - + "riptionB\020\n\016_grpc_settingsB\005\n\003_idB\007\n\005_kin" - + "dB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_link\"\267\002\n " - + "NotificationEndpointGrpcSettings\022\032\n\tauth" - + "ority\030\303\216\320\277\001 \001(\tH\000\210\001\001\022\030\n\010endpoint\030\225\273\234> \001(" - + "\tH\001\210\001\001\022\035\n\014payload_name\030\234\265\234\217\001 \001(\tH\002\210\001\001\022C\n" - + "\017resend_interval\030\311\270\210\344\001 \001(\0132!.google.clou" - + "d.compute.v1.DurationH\003\210\001\001\022\"\n\022retry_dura" - + "tion_sec\030\335\316\2247 \001(\rH\004\210\001\001B\014\n\n_authorityB\013\n\t" - + "_endpointB\017\n\r_payload_nameB\022\n\020_resend_in" - + "tervalB\025\n\023_retry_duration_sec\"\271\002\n\030Notifi" - + "cationEndpointList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022?\n\005" - + "items\030\300\317\367/ \003(\0132-.google.cloud.compute.v1" - + ".NotificationEndpoint\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" - + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\t" - + "self_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030" - + " \001(\0132 .google.cloud.compute.v1.WarningH\004" - + "\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB" - + "\014\n\n_self_linkB\n\n\010_warning\"\275\014\n\tOperation\022" - + "$\n\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\"\n" - + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013des" - + "cription\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\030\n\010end_time\030\261\247\3476" - + " \001(\tH\003\210\001\001\0225\n\005error\030\210\244\223. \001(\0132\036.google.clo" - + "ud.compute.v1.ErrorH\004\210\001\001\022\'\n\022http_error_m", - "essage\030\331\372\310` \001(\tB\003\350G\004H\005\210\001\001\022,\n\026http_error_" - + "status_code\030\354\204\370\224\001 \001(\005B\003\350G\003H\006\210\001\001\022\020\n\002id\030\233\032" - + " \001(\004H\007\210\001\001\022\034\n\013insert_time\030\223\251\350\316\001 \001(\tH\010\210\001\001\022" - + "w\n(instances_bulk_insert_operation_metad" - + "ata\030\301\206\301* \001(\0132=.google.cloud.compute.v1.I" - + "nstancesBulkInsertOperationMetadataH\t\210\001\001" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022\031\n\004name\030\213\365\315\001 \001(\tB" - + "\003\350G\001H\013\210\001\001\022\"\n\022operation_group_id\030\263\355\223\023 \001(\t" - + "H\014\210\001\001\022\036\n\016operation_type\030\222\366\332T \001(\tH\r\210\001\001\022\030\n" - + "\010progress\030\255\204\323\" \001(\005H\016\210\001\001\022\026\n\006region\030\364\315\240B \001" - + "(\tH\017\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\205\001\n/" - + "set_common_instance_metadata_operation_m" - + "etadata\030\344\255\352\351\001 \001(\0132C.google.cloud.compute" - + ".v1.SetCommonInstanceMetadataOperationMe" - + "tadataH\021\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\022\210\001\001\022" - + "F\n\006status\030\362\237\267V \001(\0162).google.cloud.comput" - + "e.v1.Operation.StatusB\003\350G\002H\023\210\001\001\022\037\n\016statu" - + "s_message\030\272\311\351\215\001 \001(\tH\024\210\001\001\022\031\n\ttarget_id\030\211\225" - + "\215{ \001(\004H\025\210\001\001\022\033\n\013target_link\030\350\223\361\035 \001(\tH\026\210\001\001" - + "\022\024\n\004user\030\313\327\333\001 \001(\tH\027\210\001\001\0227\n\010warnings\030\327\210\301\355\001" - + " \003(\0132!.google.cloud.compute.v1.Warnings\022" - + "\024\n\004zone\030\254\307\344\001 \001(\tH\030\210\001\001\"K\n\006Status\022\024\n\020UNDEF" - + "INED_STATUS\020\000\022\013\n\004DONE\020\202\267\200\001\022\016\n\007PENDING\020\367\252" - + "\360\020\022\016\n\007RUNNING\020\237\303\3529B\026\n\024_client_operation_" - + "idB\025\n\023_creation_timestampB\016\n\014_descriptio" - + "nB\013\n\t_end_timeB\010\n\006_errorB\025\n\023_http_error_" - + "messageB\031\n\027_http_error_status_codeB\005\n\003_i" - + "dB\016\n\014_insert_timeB+\n)_instances_bulk_ins" - + "ert_operation_metadataB\007\n\005_kindB\007\n\005_name" - + "B\025\n\023_operation_group_idB\021\n\017_operation_ty" - + "peB\013\n\t_progressB\t\n\007_regionB\014\n\n_self_link" - + "B2\n0_set_common_instance_metadata_operat" - + "ion_metadataB\r\n\013_start_timeB\t\n\007_statusB\021" - + "\n\017_status_messageB\014\n\n_target_idB\016\n\014_targ" - + "et_linkB\007\n\005_userB\007\n\005_zone\"\274\003\n\027OperationA" - + "ggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022M\n\005items" - + "\030\300\317\367/ \003(\0132;.google.cloud.compute.v1.Oper" - + "ationAggregatedList.ItemsEntry\022\024\n\004kind\030\224" - + "\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\t" - + "H\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unr" - + "eachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 " - + ".google.cloud.compute.v1.WarningH\004\210\001\001\032[\n" - + "\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132" - + "-.google.cloud.compute.v1.OperationsScop" - + "edList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" - + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\243\002\n\rOpe" - + "rationList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0224\n\005items\030\300\317" - + "\367/ \003(\0132\".google.cloud.compute.v1.Operati" - + "on\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_to" - + "ken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" - + ".compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kind" - + "B\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_w" - + "arning\"\230\001\n\024OperationsScopedList\0229\n\nopera" - + "tions\030\354\257\377\001 \003(\0132\".google.cloud.compute.v1" - + ".Operation\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warnin" - + "g\"\332\006\n\020OutlierDetection\022E\n\022base_ejection_" - + "time\030\207\327\317& \001(\0132!.google.cloud.compute.v1." - + "DurationH\000\210\001\001\022#\n\022consecutive_errors\030\240\263\320\270" - + "\001 \001(\005H\001\210\001\001\022,\n\033consecutive_gateway_failur" - + "e\030\372\267\212\307\001 \001(\005H\002\210\001\001\022,\n\034enforcing_consecutiv" - + "e_errors\030\300\323\320e \001(\005H\003\210\001\001\0226\n%enforcing_cons" - + "ecutive_gateway_failure\030\332\337\212\274\001 \001(\005H\004\210\001\001\022&" - + "\n\026enforcing_success_rate\030\274\357\337\\ \001(\005H\005\210\001\001\022;" - + "\n\010interval\030\305\311\377\017 \001(\0132!.google.cloud.compu" - + "te.v1.DurationH\006\210\001\001\022$\n\024max_ejection_perc" - + "ent\030\230\246\345\010 \001(\005H\007\210\001\001\022+\n\032success_rate_minimu" - + "m_hosts\030\367\241\332\372\001 \001(\005H\010\210\001\001\022,\n\033success_rate_r" - + "equest_volume\030\315\353\230\206\001 \001(\005H\t\210\001\001\022)\n\031success_" - + "rate_stdev_factor\030\235\203\251S \001(\005H\n\210\001\001B\025\n\023_base" - + "_ejection_timeB\025\n\023_consecutive_errorsB\036\n" - + "\034_consecutive_gateway_failureB\037\n\035_enforc" - + "ing_consecutive_errorsB(\n&_enforcing_con" - + "secutive_gateway_failureB\031\n\027_enforcing_s" - + "uccess_rateB\013\n\t_intervalB\027\n\025_max_ejectio" - + "n_percentB\035\n\033_success_rate_minimum_hosts" - + "B\036\n\034_success_rate_request_volumeB\034\n\032_suc" - + "cess_rate_stdev_factor\"\306\003\n\017PacketInterva" - + "ls\022\026\n\006avg_ms\030\263\334\324a \001(\003H\000\210\001\001\022\030\n\010duration\030\224" - + "\233\221J \001(\tH\001\210\001\001\022\027\n\006max_ms\030\341\304\274\374\001 \001(\003H\002\210\001\001\022\027\n" - + "\006min_ms\030\263\245\355\377\001 \001(\003H\003\210\001\001\022\035\n\rnum_intervals\030" - + "\325\325\354X \001(\003H\004\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\005\210\001\001\"g\n\010D" - + "uration\022\026\n\022UNDEFINED_DURATION\020\000\022\034\n\024DURAT" - + "ION_UNSPECIFIED\020\354\371\243\374\001\022\013\n\004HOUR\020\344\333\207\001\022\t\n\003MA" - + "X\020\304\322\004\022\r\n\006MINUTE\020\224\264\272<\"h\n\004Type\022\022\n\016UNDEFINE" - + "D_TYPE\020\000\022\020\n\010LOOPBACK\020\213\223\353\251\001\022\016\n\007RECEIVE\020\303\375" - + "\267Z\022\020\n\010TRANSMIT\020\260\205\373\327\001\022\030\n\020TYPE_UNSPECIFIED" - + "\020\222\373\333\320\001B\t\n\007_avg_msB\013\n\t_durationB\t\n\007_max_m" - + "sB\t\n\007_min_msB\020\n\016_num_intervalsB\007\n\005_type\"" - + "\272\006\n\017PacketMirroring\022Z\n\rcollector_ilb\030\355\211\266" - + "\313\001 \001(\0132:.google.cloud.compute.v1.PacketM" - + "irroringForwardingRuleInfoH\000\210\001\001\022\"\n\022creat" - + "ion_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013descripti" - + "on\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n\006enable\030\203\313\324\224\001 \001(\tH\003\210" - + "\001\001\022G\n\006filter\030\370\226\243\240\001 \001(\0132..google.cloud.co" - + "mpute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n\002i" - + "d\030\233\032 \001(\004H\005\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n\022m" - + "irrored_resources\030\304\237\302; \001(\0132<.google.clou" - + "d.compute.v1.PacketMirroringMirroredReso" - + "urceInfoH\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n\007n" - + "etwork\030\256\264\205o \001(\01323.google.cloud.compute.v" - + "1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n\010pri" - + "ority\030\244\363\241\324\001 \001(\rH\n\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH" - + "\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\"9\n\006Enab" - + "le\022\024\n\020UNDEFINED_ENABLE\020\000\022\014\n\005FALSE\020\203\302\344\037\022\013" - + "\n\004TRUE\020\216\333\235\001B\020\n\016_collector_ilbB\025\n\023_creati" - + "on_timestampB\016\n\014_descriptionB\t\n\007_enableB" - + "\t\n\007_filterB\005\n\003_idB\007\n\005_kindB\025\n\023_mirrored_" - + "resourcesB\007\n\005_nameB\n\n\010_networkB\013\n\t_prior" - + "ityB\t\n\007_regionB\014\n\n_self_link\"\316\003\n\035PacketM" - + "irroringAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001" - + "\022S\n\005items\030\300\317\367/ \003(\0132A.google.cloud.comput" - + "e.v1.PacketMirroringAggregatedList.Items" - + "Entry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007war" - + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." - + "WarningH\004\210\001\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" - + "B\n\005value\030\002 \001(\01323.google.cloud.compute.v1" - + ".PacketMirroringsScopedList:\0028\001B\005\n\003_idB\007" + + "linkB\n\n\010_warning\"\227\001\n\023NodeTypesScopedList" + + "\0229\n\nnode_types\030\374\277\365\345\001 \003(\0132!.google.cloud." + + "compute.v1.NodeType\0229\n\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n\010_warning\"\220\003\n\024NotificationEndpoint\022\"\n\022c" + + "reation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013descr" + + "iption\030\374\207\326\311\001 \001(\tH\001\210\001\001\022Y\n\rgrpc_settings\030\244" + + "\306\300\331\001 \001(\01329.google.cloud.compute.v1.Notif" + + "icationEndpointGrpcSettingsH\002\210\001\001\022\020\n\002id\030\233" + + "\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name" + + "\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001B\025\n\023_creation_" + + "timestampB\016\n\014_descriptionB\020\n\016_grpc_setti" + + "ngsB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB" + + "\014\n\n_self_link\"\267\002\n NotificationEndpointGr" + + "pcSettings\022\032\n\tauthority\030\303\216\320\277\001 \001(\tH\000\210\001\001\022\030" + + "\n\010endpoint\030\225\273\234> \001(\tH\001\210\001\001\022\035\n\014payload_name" + + "\030\234\265\234\217\001 \001(\tH\002\210\001\001\022C\n\017resend_interval\030\311\270\210\344\001" + + " \001(\0132!.google.cloud.compute.v1.DurationH" + + "\003\210\001\001\022\"\n\022retry_duration_sec\030\335\316\2247 \001(\rH\004\210\001\001" + + "B\014\n\n_authorityB\013\n\t_endpointB\017\n\r_payload_" + + "nameB\022\n\020_resend_intervalB\025\n\023_retry_durat" + + "ion_sec\"\271\002\n\030NotificationEndpointList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\022?\n\005items\030\300\317\367/ \003(\0132-.googl" + + "e.cloud.compute.v1.NotificationEndpoint\022" + + "\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token" + + "\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210" + + "\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_warn" + + "ing\"\275\014\n\tOperation\022$\n\023client_operation_id" + + "\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217" + + "\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001" + + "\001\022\030\n\010end_time\030\261\247\3476 \001(\tH\003\210\001\001\0225\n\005error\030\210\244\223" + + ". \001(\0132\036.google.cloud.compute.v1.ErrorH\004\210" + + "\001\001\022\'\n\022http_error_message\030\331\372\310` \001(\tB\003\350G\004H\005" + + "\210\001\001\022,\n\026http_error_status_code\030\354\204\370\224\001 \001(\005B" + + "\003\350G\003H\006\210\001\001\022\020\n\002id\030\233\032 \001(\004H\007\210\001\001\022\034\n\013insert_ti" + + "me\030\223\251\350\316\001 \001(\tH\010\210\001\001\022w\n(instances_bulk_inse" + + "rt_operation_metadata\030\301\206\301* \001(\0132=.google." + + "cloud.compute.v1.InstancesBulkInsertOper" + + "ationMetadataH\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001" + + "\022\031\n\004name\030\213\365\315\001 \001(\tB\003\350G\001H\013\210\001\001\022\"\n\022operation" + + "_group_id\030\263\355\223\023 \001(\tH\014\210\001\001\022\036\n\016operation_typ" + + "e\030\222\366\332T \001(\tH\r\210\001\001\022\030\n\010progress\030\255\204\323\" \001(\005H\016\210\001" + + "\001\022\026\n\006region\030\364\315\240B \001(\tH\017\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\020\210\001\001\022\205\001\n/set_common_instance_me" + + "tadata_operation_metadata\030\344\255\352\351\001 \001(\0132C.go" + + "ogle.cloud.compute.v1.SetCommonInstanceM" + + "etadataOperationMetadataH\021\210\001\001\022\032\n\nstart_t" + + "ime\030\212\351\356\021 \001(\tH\022\210\001\001\022F\n\006status\030\362\237\267V \001(\0162).g" + + "oogle.cloud.compute.v1.Operation.StatusB" + + "\003\350G\002H\023\210\001\001\022\037\n\016status_message\030\272\311\351\215\001 \001(\tH\024\210" + + "\001\001\022\031\n\ttarget_id\030\211\225\215{ \001(\004H\025\210\001\001\022\033\n\013target_" + + "link\030\350\223\361\035 \001(\tH\026\210\001\001\022\024\n\004user\030\313\327\333\001 \001(\tH\027\210\001\001" + + "\0227\n\010warnings\030\327\210\301\355\001 \003(\0132!.google.cloud.co" + + "mpute.v1.Warnings\022\024\n\004zone\030\254\307\344\001 \001(\tH\030\210\001\001\"" + + "K\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\013\n\004DONE\020" + + "\202\267\200\001\022\016\n\007PENDING\020\367\252\360\020\022\016\n\007RUNNING\020\237\303\3529B\026\n\024" + + "_client_operation_idB\025\n\023_creation_timest" + + "ampB\016\n\014_descriptionB\013\n\t_end_timeB\010\n\006_err" + + "orB\025\n\023_http_error_messageB\031\n\027_http_error" + + "_status_codeB\005\n\003_idB\016\n\014_insert_timeB+\n)_" + + "instances_bulk_insert_operation_metadata" + + "B\007\n\005_kindB\007\n\005_nameB\025\n\023_operation_group_i" + + "dB\021\n\017_operation_typeB\013\n\t_progressB\t\n\007_re" + + "gionB\014\n\n_self_linkB2\n0_set_common_instan" + + "ce_metadata_operation_metadataB\r\n\013_start" + + "_timeB\t\n\007_statusB\021\n\017_status_messageB\014\n\n_" + + "target_idB\016\n\014_target_linkB\007\n\005_userB\007\n\005_z" + + "one\"\274\003\n\027OperationAggregatedList\022\020\n\002id\030\233\032" + + " \001(\tH\000\210\001\001\022M\n\005items\030\300\317\367/ \003(\0132;.google.clo" + + "ud.compute.v1.OperationAggregatedList.It" + + "emsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_p" + + "age_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305" + + "\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007" + + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." + + "v1.WarningH\004\210\001\001\032[\n\nItemsEntry\022\013\n\003key\030\001 \001" + + "(\t\022<\n\005value\030\002 \001(\0132-.google.cloud.compute" + + ".v1.OperationsScopedList:\0028\001B\005\n\003_idB\007\n\005_" + + "kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n" + + "\n\010_warning\"\243\002\n\rOperationList\022\020\n\002id\030\233\032 \001(" + + "\tH\000\210\001\001\0224\n\005items\030\300\317\367/ \003(\0132\".google.cloud." + + "compute.v1.Operation\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" + + "\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" + + "\n\n_self_linkB\n\n\010_warning\"\230\001\n\024OperationsS" + + "copedList\0229\n\noperations\030\354\257\377\001 \003(\0132\".googl" + + "e.cloud.compute.v1.Operation\0229\n\007warning\030" + + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" + + "ngH\000\210\001\001B\n\n\010_warning\"\332\006\n\020OutlierDetection" + + "\022E\n\022base_ejection_time\030\207\327\317& \001(\0132!.google" + + ".cloud.compute.v1.DurationH\000\210\001\001\022#\n\022conse" + + "cutive_errors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n\033consecut" + + "ive_gateway_failure\030\372\267\212\307\001 \001(\005H\002\210\001\001\022,\n\034en" + + "forcing_consecutive_errors\030\300\323\320e \001(\005H\003\210\001\001" + + "\0226\n%enforcing_consecutive_gateway_failur" + + "e\030\332\337\212\274\001 \001(\005H\004\210\001\001\022&\n\026enforcing_success_ra" + + "te\030\274\357\337\\ \001(\005H\005\210\001\001\022;\n\010interval\030\305\311\377\017 \001(\0132!." + + "google.cloud.compute.v1.DurationH\006\210\001\001\022$\n" + + "\024max_ejection_percent\030\230\246\345\010 \001(\005H\007\210\001\001\022+\n\032s" + + "uccess_rate_minimum_hosts\030\367\241\332\372\001 \001(\005H\010\210\001\001" + + "\022,\n\033success_rate_request_volume\030\315\353\230\206\001 \001(" + + "\005H\t\210\001\001\022)\n\031success_rate_stdev_factor\030\235\203\251S" + + " \001(\005H\n\210\001\001B\025\n\023_base_ejection_timeB\025\n\023_con" + + "secutive_errorsB\036\n\034_consecutive_gateway_" + + "failureB\037\n\035_enforcing_consecutive_errors" + + "B(\n&_enforcing_consecutive_gateway_failu" + + "reB\031\n\027_enforcing_success_rateB\013\n\t_interv" + + "alB\027\n\025_max_ejection_percentB\035\n\033_success_" + + "rate_minimum_hostsB\036\n\034_success_rate_requ" + + "est_volumeB\034\n\032_success_rate_stdev_factor" + + "\"\306\003\n\017PacketIntervals\022\026\n\006avg_ms\030\263\334\324a \001(\003H" + + "\000\210\001\001\022\030\n\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\027\n\006max_ms" + + "\030\341\304\274\374\001 \001(\003H\002\210\001\001\022\027\n\006min_ms\030\263\245\355\377\001 \001(\003H\003\210\001\001" + + "\022\035\n\rnum_intervals\030\325\325\354X \001(\003H\004\210\001\001\022\024\n\004type\030" + + "\272\236\332\001 \001(\tH\005\210\001\001\"g\n\010Duration\022\026\n\022UNDEFINED_D" + + "URATION\020\000\022\034\n\024DURATION_UNSPECIFIED\020\354\371\243\374\001\022" + + "\013\n\004HOUR\020\344\333\207\001\022\t\n\003MAX\020\304\322\004\022\r\n\006MINUTE\020\224\264\272<\"h" + + "\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\020\n\010LOOPBACK\020\213" + + "\223\353\251\001\022\016\n\007RECEIVE\020\303\375\267Z\022\020\n\010TRANSMIT\020\260\205\373\327\001\022\030" + + "\n\020TYPE_UNSPECIFIED\020\222\373\333\320\001B\t\n\007_avg_msB\013\n\t_" + + "durationB\t\n\007_max_msB\t\n\007_min_msB\020\n\016_num_i" + + "ntervalsB\007\n\005_type\"\272\006\n\017PacketMirroring\022Z\n" + + "\rcollector_ilb\030\355\211\266\313\001 \001(\0132:.google.cloud." + + "compute.v1.PacketMirroringForwardingRule" + + "InfoH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" + + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n\006e" + + "nable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n\006filter\030\370\226\243\240\001 \001(\013" + + "2..google.cloud.compute.v1.PacketMirrori" + + "ngFilterH\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n\004kind\030" + + "\224\367\310\001 \001(\tH\006\210\001\001\022`\n\022mirrored_resources\030\304\237\302;" + + " \001(\0132<.google.cloud.compute.v1.PacketMir" + + "roringMirroredResourceInfoH\007\210\001\001\022\024\n\004name\030" + + "\213\365\315\001 \001(\tH\010\210\001\001\022L\n\007network\030\256\264\205o \001(\01323.goog" + + "le.cloud.compute.v1.PacketMirroringNetwo" + + "rkInfoH\t\210\001\001\022\031\n\010priority\030\244\363\241\324\001 \001(\rH\n\210\001\001\022\026" + + "\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\014\210\001\001\"9\n\006Enable\022\024\n\020UNDEFINED_ENABLE" + + "\020\000\022\014\n\005FALSE\020\203\302\344\037\022\013\n\004TRUE\020\216\333\235\001B\020\n\016_collec" + + "tor_ilbB\025\n\023_creation_timestampB\016\n\014_descr" + + "iptionB\t\n\007_enableB\t\n\007_filterB\005\n\003_idB\007\n\005_" + + "kindB\025\n\023_mirrored_resourcesB\007\n\005_nameB\n\n\010" + + "_networkB\013\n\t_priorityB\t\n\007_regionB\014\n\n_sel" + + "f_link\"\316\003\n\035PacketMirroringAggregatedList" + + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022S\n\005items\030\300\317\367/ \003(\0132A.g" + + "oogle.cloud.compute.v1.PacketMirroringAg" + + "gregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachabl" + + "es\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" + + ".cloud.compute.v1.WarningH\004\210\001\001\032a\n\nItemsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.googl" + + "e.cloud.compute.v1.PacketMirroringsScope" + + "dList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_" + + "tokenB\014\n\n_self_linkB\n\n\010_warning\"\306\001\n\025Pack" + + "etMirroringFilter\022\030\n\rI_p_protocols\030\326\331\376. " + + "\003(\t\022\027\n\013cidr_ranges\030\201\224\323\350\001 \003(\t\022\031\n\tdirectio" + + "n\030\377\216\2005 \001(\tH\000\210\001\001\"Q\n\tDirection\022\027\n\023UNDEFINE" + + "D_DIRECTION\020\000\022\n\n\004BOTH\020\201\347|\022\016\n\006EGRESS\020\365\366\264\316" + + "\001\022\017\n\007INGRESS\020\225\375\276\366\001B\014\n\n_direction\"q\n!Pack" + + "etMirroringForwardingRuleInfo\022\036\n\rcanonic" + + "al_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001" + + "\001B\020\n\016_canonical_urlB\006\n\004_url\"\257\002\n\023PacketMi" + + "rroringList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022:\n\005items\030\300" + + "\317\367/ \003(\0132(.google.cloud.compute.v1.Packet" + + "Mirroring\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_" + + "page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222" + + "\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .googl" + + "e.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007" + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" - + "kB\n\n\010_warning\"\306\001\n\025PacketMirroringFilter\022" - + "\030\n\rI_p_protocols\030\326\331\376. \003(\t\022\027\n\013cidr_ranges" - + "\030\201\224\323\350\001 \003(\t\022\031\n\tdirection\030\377\216\2005 \001(\tH\000\210\001\001\"Q\n" - + "\tDirection\022\027\n\023UNDEFINED_DIRECTION\020\000\022\n\n\004B" - + "OTH\020\201\347|\022\016\n\006EGRESS\020\365\366\264\316\001\022\017\n\007INGRESS\020\225\375\276\366\001" - + "B\014\n\n_direction\"q\n!PacketMirroringForward" - + "ingRuleInfo\022\036\n\rcanonical_url\030\244\377\243\364\001 \001(\tH\000" - + "\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n\016_canonical_ur" - + "lB\006\n\004_url\"\257\002\n\023PacketMirroringList\022\020\n\002id\030" - + "\233\032 \001(\tH\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.google.c" - + "loud.compute.v1.PacketMirroring\022\024\n\004kind\030" - + "\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(" - + "\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_p" - + "age_tokenB\014\n\n_self_linkB\n\n\010_warning\"\367\001\n#" - + "PacketMirroringMirroredResourceInfo\022^\n\ti" - + "nstances\030\376\374\357\r \003(\0132H.google.cloud.compute" - + ".v1.PacketMirroringMirroredResourceInfoI" - + "nstanceInfo\022_\n\013subnetworks\030\305\324\245\306\001 \003(\0132F.g" - + "oogle.cloud.compute.v1.PacketMirroringMi" - + "rroredResourceInfoSubnetInfo\022\017\n\004tags\030\231\350\330" - + "\001 \003(\t\"\177\n/PacketMirroringMirroredResource" - + "InfoInstanceInfo\022\036\n\rcanonical_url\030\244\377\243\364\001 " - + "\001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n\016_canonic" - + "al_urlB\006\n\004_url\"}\n-PacketMirroringMirrore" - + "dResourceInfoSubnetInfo\022\036\n\rcanonical_url" - + "\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n\016_" - + "canonical_urlB\006\n\004_url\"j\n\032PacketMirroring" - + "NetworkInfo\022\036\n\rcanonical_url\030\244\377\243\364\001 \001(\tH\000" - + "\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n\016_canonical_ur" - + "lB\006\n\004_url\"\253\001\n\032PacketMirroringsScopedList" - + "\022F\n\021packet_mirrorings\030\247\372\334I \003(\0132(.google." - + "cloud.compute.v1.PacketMirroring\0229\n\007warn" - + "ing\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.W" - + "arningH\000\210\001\001B\n\n\010_warning\"\371\001\n\026PatchAutosca" - + "lerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022" - + "H\n\023autoscaler_resource\030\366\360\377b \001(\0132#.google" - + ".cloud.compute.v1.AutoscalerB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G" - + "\004zoneB\r\n\013_autoscalerB\r\n\013_request_id\"\333\001\n\031" - + "PatchBackendBucketRequest\022\036\n\016backend_buc" - + "ket\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027backend_bucket_reso" - + "urce\030\230\316\307\265\001 \001(\0132&.google.cloud.compute.v1" - + ".BackendBucketB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" - + "\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" - + "\001\001B\r\n\013_request_id\"\340\001\n\032PatchBackendServic" - + "eRequest\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340" - + "A\002\022R\n\030backend_service_resource\030\243\201\337\245\001 \001(\013" - + "2\'.google.cloud.compute.v1.BackendServic" - + "eB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" - + "t_id\"\275\001\n\032PatchFirewallPolicyRequest\022 \n\017f" - + "irewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n\030firewal" - + "l_policy_resource\030\274\266\207\354\001 \001(\0132\'.google.clo" - + "ud.compute.v1.FirewallPolicyB\003\340A\002\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\305\001\n" - + "\024PatchFirewallRequest\022\031\n\010firewall\030\200\372\325\363\001 " - + "\001(\tB\003\340A\002\022D\n\021firewall_resource\030\355\260\340\023 \001(\0132!" - + ".google.cloud.compute.v1.FirewallB\003\340A\002\022!" - + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\201\002\n" - + "\032PatchForwardingRuleRequest\022 \n\017forwardin" - + "g_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n\030forwarding_rule" - + "_resource\030\257\300\320\217\001 \001(\0132\'.google.cloud.compu" - + "te.v1.ForwardingRuleB\003\340A\002\022!\n\007project\030\231\226\301" - + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" - + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001B\r\n\013_request_id\"\346\001\n PatchGlobalForwardi" - + "ngRuleRequest\022 \n\017forwarding_rule\030\376\245\335\200\001 \001" - + "(\tB\003\340A\002\022R\n\030forwarding_rule_resource\030\257\300\320\217" - + "\001 \001(\0132\'.google.cloud.compute.v1.Forwardi" - + "ngRuleB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" - + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" - + "equest_id\"\203\002\n(PatchGlobalPublicDelegated" - + "PrefixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\'\n\027public_delegated_prefix\030\350\334\261" - + "a \001(\tB\003\340A\002\022`\n public_delegated_prefix_re" - + "source\030\205\370\330\026 \001(\0132..google.cloud.compute.v" - + "1.PublicDelegatedPrefixB\003\340A\002\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\323\001\n\027Patc" - + "hHealthCheckRequest\022\035\n\014health_check\030\345\252\244\223" - + "\001 \001(\tB\003\340A\002\022K\n\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthChe" - + "ckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" - + "st_id\"\271\001\n\021PatchImageRequest\022\025\n\005image\030\333\322\352" - + "/ \001(\tB\003\340A\002\022?\n\016image_resource\030\362\304\376\260\001 \001(\0132\036" - + ".google.cloud.compute.v1.ImageB\003\340A\002\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\225\002\n Pa" - + "tchInstanceGroupManagerRequest\022&\n\026instan" - + "ce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n\037instan" - + "ce_group_manager_resource\030\212\212\276| \001(\0132-.goo" - + "gle.cloud.compute.v1.InstanceGroupManage" - + "rB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307" - + "\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\216\002\n\033Pa" - + "tchInstanceSettingRequest\022V\n\032instance_se" - + "ttings_resource\030\200\247\316\212\001 \001(\0132).google.cloud" - + ".compute.v1.InstanceSettingsB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\013update_mask\030\242\271\272\356\001 \001(" - + "\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" - + "request_idB\016\n\014_update_mask\"\240\002\n\"PatchInte" - + "rconnectAttachmentRequest\022(\n\027interconnec" - + "t_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022a\n interconn" - + "ect_attachment_resource\030\371\244\240e \001(\0132/.googl" - + "e.cloud.compute.v1.InterconnectAttachmen" - + "tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\325\001" - + "\n\030PatchInterconnectRequest\022\034\n\014interconne" - + "ct\030\216\311\214k \001(\tB\003\340A\002\022M\n\025interconnect_resourc" - + "e\030\237\241\314\275\001 \001(\0132%.google.cloud.compute.v1.In" - + "terconnectB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n\013_request_id\"\213\002\n\035PatchNetworkAttachment" - + "Request\022\"\n\022network_attachment\030\324\227\217k \001(\tB\003" - + "\340A\002\022W\n\033network_attachment_resource\030\231\360\314d " - + "\001(\0132*.google.cloud.compute.v1.NetworkAtt" - + "achmentB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region" - + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request" - + "_id\"\203\003\n&PatchNetworkEdgeSecurityServiceR" - + "equest\022-\n\035network_edge_security_service\030" - + "\247\237\357J \001(\tB\003\340A\002\022l\n&network_edge_security_s" - + "ervice_resource\030\246\243\333\343\001 \001(\01323.google.cloud" - + ".compute.v1.NetworkEdgeSecurityServiceB\003" - + "\340A\002\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007project\030\231\226" - + "\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\t" - + "B\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210" - + "\001\001\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B\010\n\006_pat" - + "hsB\r\n\013_request_idB\016\n\014_update_mask\"\347\001\n!Pa" - + "tchNetworkFirewallPolicyRequest\022 \n\017firew" - + "all_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n\030firewall_po" - + "licy_resource\030\274\266\207\354\001 \001(\0132\'.google.cloud.c" - + "ompute.v1.FirewallPolicyB\003\340A\002\022!\n\007project" - + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\300\001\n\023PatchNet" - + "workRequest\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022B\n\020" - + "network_resource\030\377\335\234: \001(\0132 .google.cloud" - + ".compute.v1.NetworkB\003\340A\002\022!\n\007project\030\231\226\301l" + + "kB\n\n\010_warning\"\367\001\n#PacketMirroringMirrore" + + "dResourceInfo\022^\n\tinstances\030\376\374\357\r \003(\0132H.go" + + "ogle.cloud.compute.v1.PacketMirroringMir" + + "roredResourceInfoInstanceInfo\022_\n\013subnetw" + + "orks\030\305\324\245\306\001 \003(\0132F.google.cloud.compute.v1" + + ".PacketMirroringMirroredResourceInfoSubn" + + "etInfo\022\017\n\004tags\030\231\350\330\001 \003(\t\"\177\n/PacketMirrori" + + "ngMirroredResourceInfoInstanceInfo\022\036\n\rca" + + "nonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(" + + "\tH\001\210\001\001B\020\n\016_canonical_urlB\006\n\004_url\"}\n-Pack" + + "etMirroringMirroredResourceInfoSubnetInf" + + "o\022\036\n\rcanonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n\003url" + + "\030\357\212\007 \001(\tH\001\210\001\001B\020\n\016_canonical_urlB\006\n\004_url\"" + + "j\n\032PacketMirroringNetworkInfo\022\036\n\rcanonic" + + "al_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n\003url\030\357\212\007 \001(\tH\001\210\001" + + "\001B\020\n\016_canonical_urlB\006\n\004_url\"\253\001\n\032PacketMi" + + "rroringsScopedList\022F\n\021packet_mirrorings\030" + + "\247\372\334I \003(\0132(.google.cloud.compute.v1.Packe" + + "tMirroring\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." + + "cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warnin" + + "g\"\371\001\n\026PatchAutoscalerRequest\022\033\n\nautoscal" + + "er\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n\023autoscaler_resource" + + "\030\366\360\377b \001(\0132#.google.cloud.compute.v1.Auto" + + "scalerB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_autoscalerB\r" + + "\n\013_request_id\"\333\001\n\031PatchBackendBucketRequ" + + "est\022\036\n\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027b" + + "ackend_bucket_resource\030\230\316\307\265\001 \001(\0132&.googl" + + "e.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\340\001\n\032" + + "PatchBackendServiceRequest\022 \n\017backend_se" + + "rvice\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n\030backend_service_" + + "resource\030\243\201\337\245\001 \001(\0132\'.google.cloud.comput" + + "e.v1.BackendServiceB\003\340A\002\022!\n\007project\030\231\226\301l" + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" - + "(\tH\000\210\001\001B\r\n\013_request_id\"\351\001\n\025PatchNodeGrou" - + "pRequest\022\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022H\n" - + "\023node_group_resource\030\253\263\372\360\001 \001(\0132\".google." - + "cloud.compute.v1.NodeGroupB\003\340A\002\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" - + "oneB\r\n\013_request_id\"\204\002\n\033PatchPacketMirror" - + "ingRequest\022 \n\020packet_mirroring\030\314\271\321\n \001(\tB" - + "\003\340A\002\022T\n\031packet_mirroring_resource\030\241\374\250\353\001 " - + "\001(\0132(.google.cloud.compute.v1.PacketMirr" - + "oringB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_i" - + "d\"\344\002\n2PatchPerInstanceConfigsInstanceGro" - + "upManagerRequest\022&\n\026instance_group_manag" - + "er\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n?instance_group_mana" - + "gers_patch_per_instance_configs_req_reso" - + "urce\030\377\233\210\252\001 \001(\0132H.google.cloud.compute.v1" - + ".InstanceGroupManagersPatchPerInstanceCo" - + "nfigsReqB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" - + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" - + "\"\357\002\n8PatchPerInstanceConfigsRegionInstan" - + "ceGroupManagerRequest\022&\n\026instance_group_" - + "manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" - + "\362G\006region\022\233\001\n@region_instance_group_mana" - + "ger_patch_instance_config_req_resource\030\312" - + "\315\241^ \001(\0132I.google.cloud.compute.v1.Region" - + "InstanceGroupManagerPatchInstanceConfigR" - + "eqB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" - + "request_id\"\201\002\n#PatchPublicAdvertisedPref" - + "ixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022(\n\030public_advertised_prefix\030\236\367\3110 \001" - + "(\tB\003\340A\002\022b\n!public_advertised_prefix_reso" - + "urce\030\217\327\262o \001(\0132/.google.cloud.compute.v1." - + "PublicAdvertisedPrefixB\003\340A\002\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\236\002\n\"Patch" - + "PublicDelegatedPrefixeRequest\022!\n\007project" - + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027public_deleg" - + "ated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n public_dele" - + "gated_prefix_resource\030\205\370\330\026 \001(\0132..google." - + "cloud.compute.v1.PublicDelegatedPrefixB\003" - + "\340A\002\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "\203\002\n\034PatchRegionAutoscalerRequest\022\033\n\nauto" - + "scaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n\023autoscaler_reso" - + "urce\030\366\360\377b \001(\0132#.google.cloud.compute.v1." - + "AutoscalerB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" - + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\r\n\013_auto" - + "scalerB\r\n\013_request_id\"\207\002\n PatchRegionBac" - + "kendServiceRequest\022 \n\017backend_service\030\212\300" - + "\256\222\001 \001(\tB\003\340A\002\022R\n\030backend_service_resource" - + "\030\243\201\337\245\001 \001(\0132\'.google.cloud.compute.v1.Bac" - + "kendServiceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" - + "\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006re" - + "gion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" - + "uest_id\"\372\001\n\035PatchRegionHealthCheckReques" - + "t\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n\025heal" - + "th_check_resource\030\250\303\244` \001(\0132$.google.clou" - + "d.compute.v1.HealthCheckB\003\340A\002\022!\n\007project" - + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B " - + "\001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001B\r\n\013_request_id\"\231\002\n$PatchRegionHeal" - + "thCheckServiceRequest\022%\n\024health_check_se" - + "rvice\030\333\233\335\302\001 \001(\tB\003\340A\002\022[\n\035health_check_ser" - + "vice_resource\030\362\233\320\343\001 \001(\0132+.google.cloud.c" - + "ompute.v1.HealthCheckServiceB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364" - + "\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021" - + " \001(\tH\000\210\001\001B\r\n\013_request_id\"\237\002\n&PatchRegion" - + "InstanceGroupManagerRequest\022&\n\026instance_" - + "group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n\037instance_" - + "group_manager_resource\030\212\212\276| \001(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManagerB\003" + + "(\tH\000\210\001\001B\r\n\013_request_id\"\275\001\n\032PatchFirewall" + + "PolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001" + + "(\tB\003\340A\002\022R\n\030firewall_policy_resource\030\274\266\207\354" + + "\001 \001(\0132\'.google.cloud.compute.v1.Firewall" + + "PolicyB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\305\001\n\024PatchFirewallRequest\022" + + "\031\n\010firewall\030\200\372\325\363\001 \001(\tB\003\340A\002\022D\n\021firewall_r" + + "esource\030\355\260\340\023 \001(\0132!.google.cloud.compute." + + "v1.FirewallB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\201\002\n\032PatchForwardingRuleRe" + + "quest\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022" + + "R\n\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'." + + "google.cloud.compute.v1.ForwardingRuleB\003" + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037" + "\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreque" - + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\216\002\n\'P" - + "atchRegionNetworkFirewallPolicyRequest\022 " - + "\n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n\030fire" - + "wall_policy_resource\030\274\266\207\354\001 \001(\0132\'.google." - + "cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n\007" - + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" - + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\263\002\n PatchReg" - + "ionSecurityPolicyRequest\022!\n\007project\030\231\226\301l" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\346\001\n P" + + "atchGlobalForwardingRuleRequest\022 \n\017forwa" + + "rding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n\030forwarding_" + + "rule_resource\030\257\300\320\217\001 \001(\0132\'.google.cloud.c" + + "ompute.v1.ForwardingRuleB\003\340A\002\022!\n\007project" + + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313" + + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\203\002\n(PatchGlo" + + "balPublicDelegatedPrefixeRequest\022!\n\007proj" + + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027public_de" + + "legated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n public_d" + + "elegated_prefix_resource\030\205\370\330\026 \001(\0132..goog" + + "le.cloud.compute.v1.PublicDelegatedPrefi" + + "xB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" + + "equest_id\"\323\001\n\027PatchHealthCheckRequest\022\035\n" + + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n\025health_c" + + "heck_resource\030\250\303\244` \001(\0132$.google.cloud.co" + + "mpute.v1.HealthCheckB\003\340A\002\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 " + + "\001(\tH\000\210\001\001B\r\n\013_request_id\"\271\001\n\021PatchImageRe" + + "quest\022\025\n\005image\030\333\322\352/ \001(\tB\003\340A\002\022?\n\016image_re" + + "source\030\362\304\376\260\001 \001(\0132\036.google.cloud.compute." + + "v1.ImageB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" + + "_request_id\"\225\002\n PatchInstanceGroupManage" + + "rRequest\022&\n\026instance_group_manager\030\303\367\363v " + + "\001(\tB\003\340A\002\022^\n\037instance_group_manager_resou" + + "rce\030\212\212\276| \001(\0132-.google.cloud.compute.v1.I" + + "nstanceGroupManagerB\003\340A\002\022!\n\007project\030\231\226\301l" + + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013" + + "_request_id\"\216\002\n\033PatchInstanceSettingRequ" + + "est\022V\n\032instance_settings_resource\030\200\247\316\212\001 " + + "\001(\0132).google.cloud.compute.v1.InstanceSe" + + "ttingsB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\013up" + + "date_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(" + + "\tB\n\340A\002\362G\004zoneB\r\n\013_request_idB\016\n\014_update_", + "mask\"\240\002\n\"PatchInterconnectAttachmentRequ" + + "est\022(\n\027interconnect_attachment\030\364\212\367\222\001 \001(\t" + + "B\003\340A\002\022a\n interconnect_attachment_resourc" + + "e\030\371\244\240e \001(\0132/.google.cloud.compute.v1.Int" + + "erconnectAttachmentB\003\340A\002\022!\n\007project\030\231\226\301l" + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n\030sec" - + "urity_policy_resource\030\374\252\211g \001(\0132\'.google." - + "cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n\013" - + "update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_request_i" - + "dB\016\n\014_update_mask\"\363\001\n\033PatchRegionSslPoli" - + "cyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nssl_policy\030" - + "\305\375\340\214\001 \001(\tB\003\340A\002\022H\n\023ssl_policy_resource\030\310\210" - + "\212\203\001 \001(\0132\".google.cloud.compute.v1.SslPol" - + "icyB\003\340A\002B\r\n\013_request_id\"\220\002\n\"PatchRegionT" - + "argetHttpsProxyRequest\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" - + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"" - + "\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n\033ta" - + "rget_https_proxy_resource\030\201\255\344\316\001 \001(\0132).go" - + "ogle.cloud.compute.v1.TargetHttpsProxyB\003" - + "\340A\002B\r\n\013_request_id\"\346\001\n\030PatchRegionUrlMap" + + "B\r\n\013_request_id\"\325\001\n\030PatchInterconnectReq" + + "uest\022\034\n\014interconnect\030\216\311\214k \001(\tB\003\340A\002\022M\n\025in" + + "terconnect_resource\030\237\241\314\275\001 \001(\0132%.google.c" + + "loud.compute.v1.InterconnectB\003\340A\002\022!\n\007pro" + + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" + + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\213\002\n\035Patc" + + "hNetworkAttachmentRequest\022\"\n\022network_att" + + "achment\030\324\227\217k \001(\tB\003\340A\002\022W\n\033network_attachm" + + "ent_resource\030\231\360\314d \001(\0132*.google.cloud.com" + + "pute.v1.NetworkAttachmentB\003\340A\002\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" + + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001B\r\n\013_request_id\"\203\003\n&PatchNetworkEd" + + "geSecurityServiceRequest\022-\n\035network_edge" + + "_security_service\030\247\237\357J \001(\tB\003\340A\002\022l\n&netwo" + + "rk_edge_security_service_resource\030\246\243\333\343\001 " + + "\001(\01323.google.cloud.compute.v1.NetworkEdg" + + "eSecurityServiceB\003\340A\002\022\025\n\005paths\030\356\301\3402 \001(\tH" + + "\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\013update_mask\030\242\271\272\356" + + "\001 \001(\tH\002\210\001\001B\010\n\006_pathsB\r\n\013_request_idB\016\n\014_" + + "update_mask\"\347\001\n!PatchNetworkFirewallPoli" + + "cyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003" + + "\340A\002\022R\n\030firewall_policy_resource\030\274\266\207\354\001 \001(" + + "\0132\'.google.cloud.compute.v1.FirewallPoli" + + "cyB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" + + "st_id\"\300\001\n\023PatchNetworkRequest\022\027\n\007network" + + "\030\256\264\205o \001(\tB\003\340A\002\022B\n\020network_resource\030\377\335\234: " + + "\001(\0132 .google.cloud.compute.v1.NetworkB\003\340" + + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" + + "\"\351\001\n\025PatchNodeGroupRequest\022\033\n\nnode_group" + + "\030\202\374\213\340\001 \001(\tB\003\340A\002\022H\n\023node_group_resource\030\253" + + "\263\372\360\001 \001(\0132\".google.cloud.compute.v1.NodeG" + + "roupB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone" + + "\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\204\002\n" + + "\033PatchPacketMirroringRequest\022 \n\020packet_m" + + "irroring\030\314\271\321\n \001(\tB\003\340A\002\022T\n\031packet_mirrori" + + "ng_resource\030\241\374\250\353\001 \001(\0132(.google.cloud.com" + + "pute.v1.PacketMirroringB\003\340A\002\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001" + + "(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001B\r\n\013_request_id\"\344\002\n2PatchPerInstance" + + "ConfigsInstanceGroupManagerRequest\022&\n\026in" + + "stance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n?i" + + "nstance_group_managers_patch_per_instanc" + + "e_configs_req_resource\030\377\233\210\252\001 \001(\0132H.googl" + + "e.cloud.compute.v1.InstanceGroupManagers" + + "PatchPerInstanceConfigsReqB\003\340A\002\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" + + "oneB\r\n\013_request_id\"\357\002\n8PatchPerInstanceC" + + "onfigsRegionInstanceGroupManagerRequest\022" + + "&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006re" + + "gion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n@region_i" + + "nstance_group_manager_patch_instance_con" + + "fig_req_resource\030\312\315\241^ \001(\0132I.google.cloud" + + ".compute.v1.RegionInstanceGroupManagerPa" + + "tchInstanceConfigReqB\003\340A\002\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\201\002\n#PatchPu" + + "blicAdvertisedPrefixeRequest\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022(\n\030public_advert" + + "ised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022b\n!public_adve" + + "rtised_prefix_resource\030\217\327\262o \001(\0132/.google" + + ".cloud.compute.v1.PublicAdvertisedPrefix" + + "B\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_re" + + "quest_id\"\236\002\n\"PatchPublicDelegatedPrefixe" + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\'\n\027public_delegated_prefix\030\350\334\261a \001(\tB\003" + + "\340A\002\022`\n public_delegated_prefix_resource\030" + + "\205\370\330\026 \001(\0132..google.cloud.compute.v1.Publi" + + "cDelegatedPrefixB\003\340A\002\022\037\n\006region\030\364\315\240B \001(\t" + + "B\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001B\r\n\013_request_id\"\203\002\n\034PatchRegionAutosca" + + "lerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022" + + "H\n\023autoscaler_resource\030\366\360\377b \001(\0132#.google" + + ".cloud.compute.v1.AutoscalerB\003\340A\002\022!\n\007pro" + + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364" + + "\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\001\210\001\001B\r\n\013_autoscalerB\r\n\013_request_id\"" + + "\207\002\n PatchRegionBackendServiceRequest\022 \n\017" + + "backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n\030backen" + + "d_service_resource\030\243\201\337\245\001 \001(\0132\'.google.cl" + + "oud.compute.v1.BackendServiceB\003\340A\002\022!\n\007pr" + + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" + + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\372\001\n\035PatchRegio" + + "nHealthCheckRequest\022\035\n\014health_check\030\345\252\244\223" + + "\001 \001(\tB\003\340A\002\022K\n\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthChe" + + "ckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214\225\201\257\001" - + " \001(\tB\003\340A\002\022A\n\020url_map_resource\030\341\220\267P \001(\0132\037" - + ".google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n\013" - + "_request_id\"\255\002\n\032PatchResourcePolicyReque" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\231" + + "\002\n$PatchRegionHealthCheckServiceRequest\022" + + "%\n\024health_check_service\030\333\233\335\302\001 \001(\tB\003\340A\002\022[" + + "\n\035health_check_service_resource\030\362\233\320\343\001 \001(" + + "\0132+.google.cloud.compute.v1.HealthCheckS" + + "erviceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_" + + "id\"\237\002\n&PatchRegionInstanceGroupManagerRe" + + "quest\022&\n\026instance_group_manager\030\303\367\363v \001(\t" + + "B\003\340A\002\022^\n\037instance_group_manager_resource" + + "\030\212\212\276| \001(\0132-.google.cloud.compute.v1.Inst" + + "anceGroupManagerB\003\340A\002\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" + + "\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\216\002\n\'PatchRegionNetworkFirew" + + "allPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355" + + "\001 \001(\tB\003\340A\002\022R\n\030firewall_policy_resource\030\274" + + "\266\207\354\001 \001(\0132\'.google.cloud.compute.v1.Firew" + + "allPolicyB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" + + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" + + "st_id\"\263\002\n PatchRegionSecurityPolicyReque" + "st\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017resource_policy\030\203\245" - + "\367K \001(\tB\003\340A\002\022Q\n\030resource_policy_resource\030" - + "\312\214\321$ \001(\0132\'.google.cloud.compute.v1.Resou" - + "rcePolicyB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH" - + "\001\210\001\001B\r\n\013_request_idB\016\n\014_update_mask\"\335\001\n\022" - + "PatchRouterRequest\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" - + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n\006ro" - + "uter\030\311\256\356F \001(\tB\003\340A\002\022@\n\017router_resource\030\304\200" - + "\202J \001(\0132\037.google.cloud.compute.v1.RouterB" - + "\003\340A\002B\r\n\013_request_id\"\361\001\n\036PatchRuleFirewal" - + "lPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 " - + "\001(\tB\003\340A\002\022Z\n\035firewall_policy_rule_resourc" - + "e\030\203\337\272w \001(\0132+.google.cloud.compute.v1.Fir" - + "ewallPolicyRuleB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001" - + "(\005H\000\210\001\001\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_" - + "priorityB\r\n\013_request_id\"\233\002\n%PatchRuleNet" - + "workFirewallPolicyRequest\022 \n\017firewall_po", - "licy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n\035firewall_policy_r" - + "ule_resource\030\203\337\272w \001(\0132+.google.cloud.com" - + "pute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n\010prior" - + "ity\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001" - + "\001B\013\n\t_priorityB\r\n\013_request_id\"\302\002\n+PatchR" - + "uleRegionNetworkFirewallPolicyRequest\022 \n" - + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n\035firew" - + "all_policy_rule_resource\030\203\337\272w \001(\0132+.goog" - + "le.cloud.compute.v1.FirewallPolicyRuleB\003" - + "\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B" - + " \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_request_id\"\357\002\n$P" - + "atchRuleRegionSecurityPolicyRequest\022\031\n\010p" - + "riority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" - + "\002\362G\006region\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003" - + "\340A\002\022[\n\035security_policy_rule_resource\030\303\272\202" - + "\300\001 \001(\0132+.google.cloud.compute.v1.Securit" - + "yPolicyRuleB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(" - + "\tH\001\210\001\001\022\035\n\rvalidate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" - + "\t_priorityB\016\n\014_update_maskB\020\n\016_validate_" - + "only\"\310\002\n\036PatchRuleSecurityPolicyRequest\022" - + "\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007project\030\231\226" - + "\301l \001(\tB\r\340A\002\362G\007project\022\037\n\017security_policy" - + "\030\221\206\312Q \001(\tB\003\340A\002\022[\n\035security_policy_rule_r" - + "esource\030\303\272\202\300\001 \001(\0132+.google.cloud.compute" - + ".v1.SecurityPolicyRuleB\003\340A\002\022\034\n\013update_ma" - + "sk\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\rvalidate_only\030\265\372\337s " - + "\001(\010H\002\210\001\001B\013\n\t_priorityB\016\n\014_update_maskB\020\n" - + "\016_validate_only\"\214\002\n\032PatchSecurityPolicyR" - + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017securit" - + "y_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n\030security_polic" - + "y_resource\030\374\252\211g \001(\0132\'.google.cloud.compu" - + "te.v1.SecurityPolicyB\003\340A\002\022\034\n\013update_mask" - + "\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_request_idB\016\n\014_updat" - + "e_mask\"\215\002\n\035PatchServiceAttachmentRequest" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017security_policy\030\221\206" + + "\312Q \001(\tB\003\340A\002\022Q\n\030security_policy_resource\030" + + "\374\252\211g \001(\0132\'.google.cloud.compute.v1.Secur" + + "ityPolicyB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH" + + "\001\210\001\001B\r\n\013_request_idB\016\n\014_update_mask\"\363\001\n\033" + + "PatchRegionSslPolicyRequest\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" + + "\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n\023ssl_" + + "policy_resource\030\310\210\212\203\001 \001(\0132\".google.cloud" + + ".compute.v1.SslPolicyB\003\340A\002B\r\n\013_request_i" + + "d\"\220\002\n\"PatchRegionTargetHttpsProxyRequest" + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n\022service_attachment\030\355" - + "\251\320\241\001 \001(\tB\003\340A\002\022X\n\033service_attachment_reso" - + "urce\030\240\266\304\341\001 \001(\0132*.google.cloud.compute.v1" - + ".ServiceAttachmentB\003\340A\002B\r\n\013_request_id\"\361" - + "\001\n\033PatchSnapshotSettingRequest\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001\022V\n\032snapshot_settings_resou" - + "rce\030\357\215\306\252\001 \001(\0132).google.cloud.compute.v1." - + "SnapshotSettingsB\003\340A\002\022\034\n\013update_mask\030\242\271\272" - + "\356\001 \001(\tH\001\210\001\001B\r\n\013_request_idB\016\n\014_update_ma" - + "sk\"\314\001\n\025PatchSslPolicyRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002" - + "\022H\n\023ssl_policy_resource\030\310\210\212\203\001 \001(\0132\".goog" - + "le.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n\013_r" - + "equest_id\"\260\002\n\026PatchSubnetworkRequest\022&\n\025" - + "drain_timeout_seconds\030\332\332\310\252\001 \001(\005H\000\210\001\001\022!\n\007" + + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https_proxy\030\354" + + "\260\372\030 \001(\tB\003\340A\002\022W\n\033target_https_proxy_resou" + + "rce\030\201\255\344\316\001 \001(\0132).google.cloud.compute.v1." + + "TargetHttpsProxyB\003\340A\002B\r\n\013_request_id\"\346\001\n" + + "\030PatchRegionUrlMapRequest\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" + + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_r" + + "esource\030\341\220\267P \001(\0132\037.google.cloud.compute." + + "v1.UrlMapB\003\340A\002B\r\n\013_request_id\"\255\002\n\032PatchR" + + "esourcePolicyRequest\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" + + "G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n\017" + + "resource_policy\030\203\245\367K \001(\tB\003\340A\002\022Q\n\030resourc" + + "e_policy_resource\030\312\214\321$ \001(\0132\'.google.clou" + + "d.compute.v1.ResourcePolicyB\003\340A\002\022\034\n\013upda" + + "te_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_request_idB\016\n" + + "\014_update_mask\"\335\001\n\022PatchRouterRequest\022!\n\007" + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regio" + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\001\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tB\003\340A" - + "\002\022H\n\023subnetwork_resource\030\277\332\221\024 \001(\0132#.goog" - + "le.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n\026_" - + "drain_timeout_secondsB\r\n\013_request_id\"\345\001\n" - + "\033PatchTargetGrpcProxyRequest\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" - + "\331\021 \001(\tH\000\210\001\001\022!\n\021target_grpc_proxy\030\373\264\262\002 \001(" - + "\tB\003\340A\002\022U\n\032target_grpc_proxy_resource\030\322\352\353" - + "\234\001 \001(\0132(.google.cloud.compute.v1.TargetG" - + "rpcProxyB\003\340A\002B\r\n\013_request_id\"\344\001\n\033PatchTa" - + "rgetHttpProxyRequest\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" - + "\210\001\001\022!\n\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022T" - + "\n\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(." - + "google.cloud.compute.v1.TargetHttpProxyB" - + "\003\340A\002B\r\n\013_request_id\"\351\001\n\034PatchTargetHttps" - + "ProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022t" - + "arget_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n\033targe" - + "t_https_proxy_resource\030\201\255\344\316\001 \001(\0132).googl" - + "e.cloud.compute.v1.TargetHttpsProxyB\003\340A\002" - + "B\r\n\013_request_id\"\277\001\n\022PatchUrlMapRequest\022!" + + "\201\331\021 \001(\tH\000\210\001\001\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n\017" + + "router_resource\030\304\200\202J \001(\0132\037.google.cloud." + + "compute.v1.RouterB\003\340A\002B\r\n\013_request_id\"\361\001" + + "\n\036PatchRuleFirewallPolicyRequest\022 \n\017fire" + + "wall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n\035firewall_p" + + "olicy_rule_resource\030\203\337\272w \001(\0132+.google.cl" + + "oud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031" + + "\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_request_i" + + "d\"\233\002\n%PatchRuleNetworkFirewallPolicyRequ" + + "est\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132" + + "+.google.cloud.compute.v1.FirewallPolicy" + + "RuleB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_req" + + "uest_id\"\302\002\n+PatchRuleRegionNetworkFirewa" + + "llPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355\001" + + " \001(\tB\003\340A\002\022Z\n\035firewall_policy_rule_resour" + + "ce\030\203\337\272w \001(\0132+.google.cloud.compute.v1.Fi" + + "rewallPolicyRuleB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 " + + "\001(\005H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n" + + "\013_request_id\"\357\002\n$PatchRuleRegionSecurity" + + "PolicyRequest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" + + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\037\n\017security" + + "_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n\035security_policy" + + "_rule_resource\030\303\272\202\300\001 \001(\0132+.google.cloud." + + "compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n\013up" + + "date_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\rvalidate_onl" + + "y\030\265\372\337s \001(\010H\002\210\001\001B\013\n\t_priorityB\016\n\014_update_" + + "maskB\020\n\016_validate_only\"\310\002\n\036PatchRuleSecu" + + "rityPolicyRequest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H" + + "\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n\035secu" + + "rity_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.go" + + "ogle.cloud.compute.v1.SecurityPolicyRule" + + "B\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\rv" + + "alidate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n\t_priorityB" + + "\016\n\014_update_maskB\020\n\016_validate_only\"\214\002\n\032Pa" + + "tchSecurityPolicyRequest\022!\n\007project\030\231\226\301l" + + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002" + + "\022Q\n\030security_policy_resource\030\374\252\211g \001(\0132\'." + + "google.cloud.compute.v1.SecurityPolicyB\003" + + "\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_re" + + "quest_idB\016\n\014_update_mask\"\215\002\n\035PatchServic" + + "eAttachmentRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" + + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n\022se" + + "rvice_attachment\030\355\251\320\241\001 \001(\tB\003\340A\002\022X\n\033servi" + + "ce_attachment_resource\030\240\266\304\341\001 \001(\0132*.googl" + + "e.cloud.compute.v1.ServiceAttachmentB\003\340A" + + "\002B\r\n\013_request_id\"\361\001\n\033PatchSnapshotSettin" + + "gRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n\032snaps" + + "hot_settings_resource\030\357\215\306\252\001 \001(\0132).google" + + ".cloud.compute.v1.SnapshotSettingsB\003\340A\002\022" + + "\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_reques" + + "t_idB\016\n\014_update_mask\"\314\001\n\025PatchSslPolicyR" + + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nssl_pol" + + "icy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n\023ssl_policy_resourc" + + "e\030\310\210\212\203\001 \001(\0132\".google.cloud.compute.v1.Ss" + + "lPolicyB\003\340A\002B\r\n\013_request_id\"\260\002\n\026PatchSub" + + "networkRequest\022&\n\025drain_timeout_seconds\030" + + "\332\332\310\252\001 \001(\005H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regi" + + "on\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\nsubnet" + + "work\030\356\247\344\222\001 \001(\tB\003\340A\002\022H\n\023subnetwork_resour" + + "ce\030\277\332\221\024 \001(\0132#.google.cloud.compute.v1.Su" + + "bnetworkB\003\340A\002B\030\n\026_drain_timeout_secondsB" + + "\r\n\013_request_id\"\345\001\n\033PatchTargetGrpcProxyR" + + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_" + + "grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002\022U\n\032target_grpc_" + + "proxy_resource\030\322\352\353\234\001 \001(\0132(.google.cloud." + + "compute.v1.TargetGrpcProxyB\003\340A\002B\r\n\013_requ" + + "est_id\"\344\001\n\033PatchTargetHttpProxyRequest\022!" + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001" - + "(\tB\003\340A\002\022A\n\020url_map_resource\030\341\220\267P \001(\0132\037.g" - + "oogle.cloud.compute.v1.UrlMapB\003\340A\002B\r\n\013_r" - + "equest_id\"\322\005\n\013PathMatcher\022h\n$default_cus" - + "tom_error_response_policy\030\251\213\340& \001(\01322.goo" - + "gle.cloud.compute.v1.CustomErrorResponse" - + "PolicyH\000\210\001\001\022O\n\024default_route_action\030\252\264\327\264" - + "\001 \001(\0132(.google.cloud.compute.v1.HttpRout" - + "eActionH\001\210\001\001\022 \n\017default_service\030\267\345\305\260\001 \001(" - + "\tH\002\210\001\001\022R\n\024default_url_redirect\030\352\253\266\253\001 \001(\013" - + "2+.google.cloud.compute.v1.HttpRedirectA" - + "ctionH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001" - + "\022I\n\rheader_action\030\250\240\270\234\001 \001(\0132).google.clo" - + "ud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n\004n" - + "ame\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\npath_rules\030\335\300\3461 \003(\013" - + "2!.google.cloud.compute.v1.PathRule\022?\n\013r" - + "oute_rules\030\201\207\267\263\001 \003(\0132&.google.cloud.comp" - + "ute.v1.HttpRouteRuleB\'\n%_default_custom_" - + "error_response_policyB\027\n\025_default_route_" - + "actionB\022\n\020_default_serviceB\027\n\025_default_u" - + "rl_redirectB\016\n\014_descriptionB\020\n\016_header_a" - + "ctionB\007\n\005_name\"\374\002\n\010PathRule\022`\n\034custom_er" - + "ror_response_policy\030\353\370\332` \001(\01322.google.cl" - + "oud.compute.v1.CustomErrorResponsePolicy" - + "H\000\210\001\001\022\020\n\005paths\030\356\301\3402 \003(\t\022G\n\014route_action\030" - + "\354\251\271\312\001 \001(\0132(.google.cloud.compute.v1.Http" - + "RouteActionH\001\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(\tH\002\210" - + "\001\001\022J\n\014url_redirect\030\254\241\230\301\001 \001(\0132+.google.cl" - + "oud.compute.v1.HttpRedirectActionH\003\210\001\001B\037" - + "\n\035_custom_error_response_policyB\017\n\r_rout" - + "e_actionB\n\n\010_serviceB\017\n\r_url_redirect\"\363\002" - + "\n\021PerInstanceConfig\022\033\n\013fingerprint\030\344\321\363o " - + "\001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022H\n\017preser" - + "ved_state\030\252\342\240\001 \001(\0132\'.google.cloud.comput" - + "e.v1.PreservedStateH\002\210\001\001\022\026\n\006status\030\362\237\267V " - + "\001(\tH\003\210\001\001\"\220\001\n\006Status\022\024\n\020UNDEFINED_STATUS\020" - + "\000\022\020\n\010APPLYING\020\264\313\354\247\001\022\020\n\010DELETING\020\250\247\207\374\001\022\020\n" - + "\tEFFECTIVE\020\207\363\270t\022\013\n\004NONE\020\270\316\222\001\022\021\n\tUNAPPLIE" - + "D\020\244\207\341\346\001\022\032\n\022UNAPPLIED_DELETION\020\211\264\332\225\001B\016\n\014_" - + "fingerprintB\007\n\005_nameB\022\n\020_preserved_state" - + "B\t\n\007_status\"\250\001\n!PerformMaintenanceInstan" - + "ceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002" - + "\362G\004zoneB\r\n\013_request_id\"\254\002\n\"PerformMainte" - + "nanceNodeGroupRequest\022\033\n\nnode_group\030\202\374\213\340" - + "\001 \001(\tB\003\340A\002\022~\n0node_groups_perform_mainte" - + "nance_request_resource\030\326\270\256X \001(\0132<.google" - + ".cloud.compute.v1.NodeGroupsPerformMaint" - + "enanceRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reque" - + "st_id\"\360\001\n\006Policy\022?\n\raudit_configs\030\215\272\270\234\001 " - + "\003(\0132$.google.cloud.compute.v1.AuditConfi" - + "g\0226\n\010bindings\030\216\305\244\300\001 \003(\0132 .google.cloud.c" - + "ompute.v1.Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022" - + "\032\n\tiam_owned\030\273\260\354\326\001 \001(\010H\001\210\001\001\022\030\n\007version\030\330" - + "\271\324\247\001 \001(\005H\002\210\001\001B\007\n\005_etagB\014\n\n_iam_ownedB\n\n\010" - + "_version\"]\n\023PreconfiguredWafSet\022F\n\017expre" - + "ssion_sets\030\230\253\203\342\001 \003(\0132).google.cloud.comp" - + "ute.v1.WafExpressionSet\"\276\005\n\016PreservedSta" - + "te\022D\n\005disks\030\366\314\312- \003(\01322.google.cloud.comp" - + "ute.v1.PreservedState.DisksEntry\022S\n\rexte" - + "rnal_i_ps\030\215\323\200\376\001 \003(\01328.google.cloud.compu" - + "te.v1.PreservedState.ExternalIPsEntry\022R\n" - + "\rinternal_i_ps\030\333\233\357f \003(\01328.google.cloud.c" - + "ompute.v1.PreservedState.InternalIPsEntr" - + "y\022J\n\010metadata\030\257\366\265) \003(\01325.google.cloud.co" - + "mpute.v1.PreservedState.MetadataEntry\032b\n" - + "\nDisksEntry\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\0132" - + "4.google.cloud.compute.v1.PreservedState" - + "PreservedDisk:\0028\001\032m\n\020ExternalIPsEntry\022\013\n" - + "\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.google.cloud" - + ".compute.v1.PreservedStatePreservedNetwo" - + "rkIp:\0028\001\032m\n\020InternalIPsEntry\022\013\n\003key\030\001 \001(" - + "\t\022H\n\005value\030\002 \001(\01329.google.cloud.compute." - + "v1.PreservedStatePreservedNetworkIp:\0028\001\032" - + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\254\002\n\033PreservedStatePreservedDisk" - + "\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022\024\n\004mode\030\243" - + "\363\314\001 \001(\tH\001\210\001\001\022\026\n\006source\030\233\320\301T \001(\tH\002\210\001\001\"\\\n\n" - + "AutoDelete\022\031\n\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" - + "\005NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INSTANCE_DEL" - + "ETION\020\347\340\322-\"?\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\020" - + "\n\tREAD_ONLY\020\265\231\354+\022\021\n\nREAD_WRITE\020\326\227\344RB\016\n\014_" - + "auto_deleteB\007\n\005_modeB\t\n\007_source\"\236\002\n Pres" - + "ervedStatePreservedNetworkIp\022\034\n\013auto_del" - + "ete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\nip_address\030\334\361\334\301\001 \001" - + "(\0132B.google.cloud.compute.v1.PreservedSt" - + "atePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\nA" - + "utoDelete\022\031\n\025UNDEFINED_AUTO_DELETE\020\000\022\014\n\005" - + "NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INSTANCE_DELE" - + "TION\020\347\340\322-B\016\n\014_auto_deleteB\r\n\013_ip_address" - + "\"v\n)PreservedStatePreservedNetworkIpIpAd" - + "dress\022\030\n\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022\027\n\007liter" - + "al\030\257\301\200W \001(\tH\001\210\001\001B\n\n\010_addressB\n\n\010_literal" - + "\"\241\001\n\024PreviewRouterRequest\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\026\n\006ro" - + "uter\030\311\256\356F \001(\tB\003\340A\002\022@\n\017router_resource\030\304\200" - + "\202J \001(\0132\037.google.cloud.compute.v1.RouterB" - + "\003\340A\002\"\352\n\n\007Project\022 \n\020cloud_armor_tier\030\254\232\216" - + "\002 \001(\tH\000\210\001\001\022K\n\030common_instance_metadata\030\305" - + "\374\313X \001(\0132!.google.cloud.compute.v1.Metada" - + "taH\001\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\002" - + "\210\001\001\022%\n\024default_network_tier\030\221\305\371\340\001 \001(\tH\003\210" - + "\001\001\022(\n\027default_service_account\030\245\371\267\216\001 \001(\tH" - + "\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\034\n\020en" - + "abled_features\030\373\306\322\337\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\006\210" - + "\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\010\210\001\001\0221\n\006quotas\030\373\241\342; \003(\0132\036.google.cloud" - + ".compute.v1.Quota\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\t\210\001\001\022T\n\025usage_export_location\030\302\262\334\245\001 \001(\013" - + "2,.google.cloud.compute.v1.UsageExportLo" - + "cationH\n\210\001\001\022\036\n\016vm_dns_setting\030\262\247\210\034 \001(\tH\013" - + "\210\001\001\022\"\n\022xpn_project_status\030\301\315\365l \001(\tH\014\210\001\001\"" - + "~\n\016CloudArmorTier\022\036\n\032UNDEFINED_CLOUD_ARM" - + "OR_TIER\020\000\022\033\n\024CA_ENTERPRISE_ANNUAL\020\334\365\356h\022\033" - + "\n\023CA_ENTERPRISE_PAYGO\020\323\245\241\330\001\022\022\n\013CA_STANDA" - + "RD\020\376\202\243\006\"\236\001\n\022DefaultNetworkTier\022\"\n\036UNDEFI" - + "NED_DEFAULT_NETWORK_TIER\020\000\022\026\n\016FIXED_STAN" - + "DARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STANDARD\020" - + "\275\235\214\347\001\022)\n!STANDARD_OVERRIDES_FIXED_STANDA" - + "RD\020\302\207\221\336\001\"\222\001\n\014VmDnsSetting\022\034\n\030UNDEFINED_V" - + "M_DNS_SETTING\020\000\022\026\n\016GLOBAL_DEFAULT\020\205\333\332\244\001\022" - + "!\n\032UNSPECIFIED_VM_DNS_SETTING\020\232\273\202\021\022\025\n\rZO" - + "NAL_DEFAULT\020\206\375\331\257\001\022\022\n\nZONAL_ONLY\020\347\272\303\370\001\"i\n" - + "\020XpnProjectStatus\022 \n\034UNDEFINED_XPN_PROJE" - + "CT_STATUS\020\000\022\013\n\004HOST\020\250\333\207\001\022&\n\036UNSPECIFIED_" - + "XPN_PROJECT_STATUS\020\251\372\247\242\001B\023\n\021_cloud_armor" - + "_tierB\033\n\031_common_instance_metadataB\025\n\023_c" - + "reation_timestampB\027\n\025_default_network_ti" - + "erB\032\n\030_default_service_accountB\016\n\014_descr" - + "iptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\014\n\n_self" - + "_linkB\030\n\026_usage_export_locationB\021\n\017_vm_d" - + "ns_settingB\025\n\023_xpn_project_status\"z\n!Pro" - + "jectsDisableXpnResourceRequest\022D\n\014xpn_re" - + "source\030\267\223\315? \001(\0132&.google.cloud.compute.v" - + "1.XpnResourceIdH\000\210\001\001B\017\n\r_xpn_resource\"y\n" - + " ProjectsEnableXpnResourceRequest\022D\n\014xpn" - + "_resource\030\267\223\315? \001(\0132&.google.cloud.comput" - + "e.v1.XpnResourceIdH\000\210\001\001B\017\n\r_xpn_resource" - + "\"\253\001\n\027ProjectsGetXpnResources\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\000\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\001" - + "\210\001\001\022<\n\tresources\030\245\374\262N \003(\0132&.google.cloud" - + ".compute.v1.XpnResourceIdB\007\n\005_kindB\022\n\020_n" - + "ext_page_token\"L\n\033ProjectsListXpnHostsRe" - + "quest\022\034\n\014organization\030\263\332\2232 \001(\tH\000\210\001\001B\017\n\r_" - + "organization\"\331\001\n ProjectsSetCloudArmorTi" - + "erRequest\022 \n\020cloud_armor_tier\030\254\232\216\002 \001(\tH\000" - + "\210\001\001\"~\n\016CloudArmorTier\022\036\n\032UNDEFINED_CLOUD" - + "_ARMOR_TIER\020\000\022\033\n\024CA_ENTERPRISE_ANNUAL\020\334\365" - + "\356h\022\033\n\023CA_ENTERPRISE_PAYGO\020\323\245\241\330\001\022\022\n\013CA_ST" - + "ANDARD\020\376\202\243\006B\023\n\021_cloud_armor_tier\"\350\001\n$Pro" - + "jectsSetDefaultNetworkTierRequest\022\035\n\014net" - + "work_tier\030\323\272\333\366\001 \001(\tH\000\210\001\001\"\217\001\n\013NetworkTier" - + "\022\032\n\026UNDEFINED_NETWORK_TIER\020\000\022\026\n\016FIXED_ST" - + "ANDARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STANDAR" - + "D\020\275\235\214\347\001\022)\n!STANDARD_OVERRIDES_FIXED_STAN" - + "DARD\020\302\207\221\336\001B\017\n\r_network_tier\"\226\t\n\026PublicAd" - + "vertisedPrefix\022!\n\021byoip_api_version\030\223\263\311M" - + " \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" - + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022#\n\023d" - + "ns_verification_ip\030\265\225\366r \001(\tH\003\210\001\001\022\033\n\013fing" - + "erprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022" - + "\035\n\rip_cidr_range\030\312\315\344. \001(\tH\006\210\001\001\022\024\n\004kind\030\224" - + "\367\310\001 \001(\tH\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\032\n\tpd" - + "p_scope\030\321\312\376\371\001 \001(\tH\t\210\001\001\022j\n\030public_delegat" - + "ed_prefixs\030\213\276\205\313\001 \003(\0132D.google.cloud.comp" - + "ute.v1.PublicAdvertisedPrefixPublicDeleg" - + "atedPrefix\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022\036" - + "\n\rshared_secret\030\312\247\217\266\001 \001(\tH\013\210\001\001\022\026\n\006status" - + "\030\362\237\267V \001(\tH\014\210\001\001\"D\n\017ByoipApiVersion\022\037\n\033UND" - + "EFINED_BYOIP_API_VERSION\020\000\022\007\n\002V1\020\233\025\022\007\n\002V" - + "2\020\234\025\"a\n\010PdpScope\022\027\n\023UNDEFINED_PDP_SCOPE\020" - + "\000\022\016\n\006GLOBAL\020\243\357\357\353\001\022\033\n\023GLOBAL_AND_REGIONAL" - + "\020\303\265\324\227\001\022\017\n\010REGIONAL\020\237\354\200,\"\251\002\n\006Status\022\024\n\020UN" - + "DEFINED_STATUS\020\000\022\034\n\025ANNOUNCED_TO_INTERNE" - + "T\020\301\376\350T\022\017\n\007INITIAL\020\244\306\263\367\001\022%\n\035PREFIX_CONFIG" - + "URATION_COMPLETE\020\317\225\247\345\001\022(\n PREFIX_CONFIGU" - + "RATION_IN_PROGRESS\020\261\365\300\264\001\022\"\n\032PREFIX_REMOV" - + "AL_IN_PROGRESS\020\347\365\314\207\001\022\026\n\016PTR_CONFIGURED\020\317" - + "\260\355\364\001\022\030\n\021READY_TO_ANNOUNCE\020\361\261\351\036\022!\n\031REVERS" - + "E_DNS_LOOKUP_FAILED\020\257\273\203\215\001\022\020\n\tVALIDATED\020\356" - + "\263\310\037B\024\n\022_byoip_api_versionB\025\n\023_creation_t" - + "imestampB\016\n\014_descriptionB\026\n\024_dns_verific" - + "ation_ipB\016\n\014_fingerprintB\005\n\003_idB\020\n\016_ip_c" - + "idr_rangeB\007\n\005_kindB\007\n\005_nameB\014\n\n_pdp_scop" - + "eB\014\n\n_self_linkB\020\n\016_shared_secretB\t\n\007_st" - + "atus\"\275\002\n\032PublicAdvertisedPrefixList\022\020\n\002i" - + "d\030\233\032 \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(\0132/.google" - + ".cloud.compute.v1.PublicAdvertisedPrefix" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022" - + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" - + "ning\"\336\001\n+PublicAdvertisedPrefixPublicDel" - + "egatedPrefix\022\030\n\010ip_range\030\245\340\227E \001(\tH\000\210\001\001\022\024" - + "\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\027\n\007project\030\231\226\301l \001(\t" - + "H\002\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\003\210\001\001\022\026\n\006status\030" - + "\362\237\267V \001(\tH\004\210\001\001B\013\n\t_ip_rangeB\007\n\005_nameB\n\n\010_" - + "projectB\t\n\007_regionB\t\n\007_status\"\370\010\n\025Public" - + "DelegatedPrefix\022)\n\031allocatable_prefix_le" - + "ngth\030\266\266\251\022 \001(\005H\000\210\001\001\022!\n\021byoip_api_version\030" - + "\223\263\311M \001(\tH\001\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016" - + " \001(\tH\002\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022" - + "\033\n\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n\002id\030\233\032 \001(" - + "\004H\005\210\001\001\022\035\n\rip_cidr_range\030\312\315\344. \001(\tH\006\210\001\001\022\"\n" - + "\021is_live_migration\030\360\237\207\364\001 \001(\010H\007\210\001\001\022\024\n\004kin" - + "d\030\224\367\310\001 \001(\tH\010\210\001\001\022\024\n\004mode\030\243\363\314\001 \001(\tH\t\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\n\210\001\001\022\035\n\rparent_prefix\030\307\347\241" - + "\007 \001(\tH\013\210\001\001\022o\n\034public_delegated_sub_prefi" - + "xs\030\214\376\213Z \003(\0132F.google.cloud.compute.v1.Pu" - + "blicDelegatedPrefixPublicDelegatedSubPre" - + "fix\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n\tself_link" - + "\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\016\210\001\001\"" - + "D\n\017ByoipApiVersion\022\037\n\033UNDEFINED_BYOIP_AP" - + "I_VERSION\020\000\022\007\n\002V1\020\233\025\022\007\n\002V2\020\234\025\"]\n\004Mode\022\022\n" - + "\016UNDEFINED_MODE\020\000\022\021\n\nDELEGATION\020\250\262\372}\022.\n&" - + "EXTERNAL_IPV6_FORWARDING_RULE_CREATION\020\304" - + "\341\215\276\001\"\256\001\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\021\n" - + "\tANNOUNCED\020\373\221\214\256\001\022\033\n\023ANNOUNCED_TO_GOOGLE\020" - + "\271\264\363\330\001\022\034\n\025ANNOUNCED_TO_INTERNET\020\301\376\350T\022\020\n\010D" - + "ELETING\020\250\247\207\374\001\022\024\n\014INITIALIZING\020\315\330\230\222\001\022\030\n\021R" - + "EADY_TO_ANNOUNCE\020\361\261\351\036B\034\n\032_allocatable_pr" - + "efix_lengthB\024\n\022_byoip_api_versionB\025\n\023_cr" - + "eation_timestampB\016\n\014_descriptionB\016\n\014_fin" - + "gerprintB\005\n\003_idB\020\n\016_ip_cidr_rangeB\024\n\022_is" - + "_live_migrationB\007\n\005_kindB\007\n\005_modeB\007\n\005_na" - + "meB\020\n\016_parent_prefixB\t\n\007_regionB\014\n\n_self" - + "_linkB\t\n\007_status\"\341\003\n#PublicDelegatedPref" - + "ixAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n\005it" - + "ems\030\300\317\367/ \003(\0132G.google.cloud.compute.v1.P" - + "ublicDelegatedPrefixAggregatedList.Items" - + "Entry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007war" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_http_pro" + + "xy\030\345\276\322b \001(\tB\003\340A\002\022T\n\032target_http_proxy_re" + + "source\030\250\257\343\013 \001(\0132(.google.cloud.compute.v" + + "1.TargetHttpProxyB\003\340A\002B\r\n\013_request_id\"\351\001" + + "\n\034PatchTargetHttpsProxyRequest\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https_proxy\030\354\260\372\030" + + " \001(\tB\003\340A\002\022W\n\033target_https_proxy_resource" + + "\030\201\255\344\316\001 \001(\0132).google.cloud.compute.v1.Tar" + + "getHttpsProxyB\003\340A\002B\r\n\013_request_id\"\277\001\n\022Pa" + + "tchUrlMapRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" + + "\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_res" + + "ource\030\341\220\267P \001(\0132\037.google.cloud.compute.v1" + + ".UrlMapB\003\340A\002B\r\n\013_request_id\"\322\005\n\013PathMatc" + + "her\022h\n$default_custom_error_response_pol" + + "icy\030\251\213\340& \001(\01322.google.cloud.compute.v1.C" + + "ustomErrorResponsePolicyH\000\210\001\001\022O\n\024default" + + "_route_action\030\252\264\327\264\001 \001(\0132(.google.cloud.c" + + "ompute.v1.HttpRouteActionH\001\210\001\001\022 \n\017defaul" + + "t_service\030\267\345\305\260\001 \001(\tH\002\210\001\001\022R\n\024default_url_" + + "redirect\030\352\253\266\253\001 \001(\0132+.google.cloud.comput" + + "e.v1.HttpRedirectActionH\003\210\001\001\022\034\n\013descript" + + "ion\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\rheader_action\030\250\240\270\234" + + "\001 \001(\0132).google.cloud.compute.v1.HttpHead" + + "erActionH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\np" + + "ath_rules\030\335\300\3461 \003(\0132!.google.cloud.comput" + + "e.v1.PathRule\022?\n\013route_rules\030\201\207\267\263\001 \003(\0132&" + + ".google.cloud.compute.v1.HttpRouteRuleB\'" + + "\n%_default_custom_error_response_policyB" + + "\027\n\025_default_route_actionB\022\n\020_default_ser" + + "viceB\027\n\025_default_url_redirectB\016\n\014_descri" + + "ptionB\020\n\016_header_actionB\007\n\005_name\"\374\002\n\010Pat" + + "hRule\022`\n\034custom_error_response_policy\030\353\370" + + "\332` \001(\01322.google.cloud.compute.v1.CustomE" + + "rrorResponsePolicyH\000\210\001\001\022\020\n\005paths\030\356\301\3402 \003(" + + "\t\022G\n\014route_action\030\354\251\271\312\001 \001(\0132(.google.clo" + + "ud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n\007se" + + "rvice\030\265\215\217\262\001 \001(\tH\002\210\001\001\022J\n\014url_redirect\030\254\241\230" + + "\301\001 \001(\0132+.google.cloud.compute.v1.HttpRed" + + "irectActionH\003\210\001\001B\037\n\035_custom_error_respon" + + "se_policyB\017\n\r_route_actionB\n\n\010_serviceB\017" + + "\n\r_url_redirect\"\363\002\n\021PerInstanceConfig\022\033\n" + + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 " + + "\001(\tH\001\210\001\001\022H\n\017preserved_state\030\252\342\240\001 \001(\0132\'.g" + + "oogle.cloud.compute.v1.PreservedStateH\002\210" + + "\001\001\022\026\n\006status\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n\006Status\022\024\n" + + "\020UNDEFINED_STATUS\020\000\022\020\n\010APPLYING\020\264\313\354\247\001\022\020\n" + + "\010DELETING\020\250\247\207\374\001\022\020\n\tEFFECTIVE\020\207\363\270t\022\013\n\004NON" + + "E\020\270\316\222\001\022\021\n\tUNAPPLIED\020\244\207\341\346\001\022\032\n\022UNAPPLIED_D" + + "ELETION\020\211\264\332\225\001B\016\n\014_fingerprintB\007\n\005_nameB\022" + + "\n\020_preserved_stateB\t\n\007_status\"\250\001\n!Perfor" + + "mMaintenanceInstanceRequest\022\030\n\010instance\030" + + "\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" + + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" + + "\"\254\002\n\"PerformMaintenanceNodeGroupRequest\022" + + "\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022~\n0node_gro" + + "ups_perform_maintenance_request_resource" + + "\030\326\270\256X \001(\0132<.google.cloud.compute.v1.Node" + + "GroupsPerformMaintenanceRequestB\003\340A\002\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A" + + "\002\362G\004zoneB\r\n\013_request_id\"\360\001\n\006Policy\022?\n\rau" + + "dit_configs\030\215\272\270\234\001 \003(\0132$.google.cloud.com" + + "pute.v1.AuditConfig\0226\n\010bindings\030\216\305\244\300\001 \003(" + + "\0132 .google.cloud.compute.v1.Binding\022\024\n\004e" + + "tag\030\225\322\276\001 \001(\tH\000\210\001\001\022\032\n\tiam_owned\030\273\260\354\326\001 \001(\010" + + "H\001\210\001\001\022\030\n\007version\030\330\271\324\247\001 \001(\005H\002\210\001\001B\007\n\005_etag" + + "B\014\n\n_iam_ownedB\n\n\010_version\"]\n\023Preconfigu" + + "redWafSet\022F\n\017expression_sets\030\230\253\203\342\001 \003(\0132)" + + ".google.cloud.compute.v1.WafExpressionSe" + + "t\"\276\005\n\016PreservedState\022D\n\005disks\030\366\314\312- \003(\01322" + + ".google.cloud.compute.v1.PreservedState." + + "DisksEntry\022S\n\rexternal_i_ps\030\215\323\200\376\001 \003(\01328." + + "google.cloud.compute.v1.PreservedState.E" + + "xternalIPsEntry\022R\n\rinternal_i_ps\030\333\233\357f \003(" + + "\01328.google.cloud.compute.v1.PreservedSta" + + "te.InternalIPsEntry\022J\n\010metadata\030\257\366\265) \003(\013" + + "25.google.cloud.compute.v1.PreservedStat" + + "e.MetadataEntry\032b\n\nDisksEntry\022\013\n\003key\030\001 \001" + + "(\t\022C\n\005value\030\002 \001(\01324.google.cloud.compute" + + ".v1.PreservedStatePreservedDisk:\0028\001\032m\n\020E" + + "xternalIPsEntry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 " + + "\001(\01329.google.cloud.compute.v1.PreservedS" + + "tatePreservedNetworkIp:\0028\001\032m\n\020InternalIP" + + "sEntry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.goo" + + "gle.cloud.compute.v1.PreservedStatePrese" + + "rvedNetworkIp:\0028\001\032/\n\rMetadataEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\254\002\n\033Preserved" + + "StatePreservedDisk\022\034\n\013auto_delete\030\273\344\316\335\001 " + + "\001(\tH\000\210\001\001\022\024\n\004mode\030\243\363\314\001 \001(\tH\001\210\001\001\022\026\n\006source" + + "\030\233\320\301T \001(\tH\002\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINE" + + "D_AUTO_DELETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERM" + + "ANENT_INSTANCE_DELETION\020\347\340\322-\"?\n\004Mode\022\022\n\016" + + "UNDEFINED_MODE\020\000\022\020\n\tREAD_ONLY\020\265\231\354+\022\021\n\nRE" + + "AD_WRITE\020\326\227\344RB\016\n\014_auto_deleteB\007\n\005_modeB\t" + + "\n\007_source\"\236\002\n PreservedStatePreservedNet" + + "workIp\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" + + "ip_address\030\334\361\334\301\001 \001(\0132B.google.cloud.comp" + + "ute.v1.PreservedStatePreservedNetworkIpI" + + "pAddressH\001\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINED" + + "_AUTO_DELETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMA" + + "NENT_INSTANCE_DELETION\020\347\340\322-B\016\n\014_auto_del" + + "eteB\r\n\013_ip_address\"v\n)PreservedStatePres" + + "ervedNetworkIpIpAddress\022\030\n\007address\030\364\267\336\334\001" + + " \001(\tH\000\210\001\001\022\027\n\007literal\030\257\301\200W \001(\tH\001\210\001\001B\n\n\010_a" + + "ddressB\n\n\010_literal\"\241\001\n\024PreviewRouterRequ" + + "est\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n\017" + + "router_resource\030\304\200\202J \001(\0132\037.google.cloud." + + "compute.v1.RouterB\003\340A\002\"\352\n\n\007Project\022 \n\020cl" + + "oud_armor_tier\030\254\232\216\002 \001(\tH\000\210\001\001\022K\n\030common_i" + + "nstance_metadata\030\305\374\313X \001(\0132!.google.cloud" + + ".compute.v1.MetadataH\001\210\001\001\022\"\n\022creation_ti" + + "mestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022%\n\024default_network" + + "_tier\030\221\305\371\340\001 \001(\tH\003\210\001\001\022(\n\027default_service_" + + "account\030\245\371\267\216\001 \001(\tH\004\210\001\001\022\034\n\013description\030\374\207" + + "\326\311\001 \001(\tH\005\210\001\001\022\034\n\020enabled_features\030\373\306\322\337\001 \003" + + "(\t\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210" + + "\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n\006quotas\030\373\241\342; " + + "\003(\0132\036.google.cloud.compute.v1.Quota\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022T\n\025usage_export_" + + "location\030\302\262\334\245\001 \001(\0132,.google.cloud.comput" + + "e.v1.UsageExportLocationH\n\210\001\001\022\036\n\016vm_dns_" + + "setting\030\262\247\210\034 \001(\tH\013\210\001\001\022\"\n\022xpn_project_sta" + + "tus\030\301\315\365l \001(\tH\014\210\001\001\"~\n\016CloudArmorTier\022\036\n\032U" + + "NDEFINED_CLOUD_ARMOR_TIER\020\000\022\033\n\024CA_ENTERP" + + "RISE_ANNUAL\020\334\365\356h\022\033\n\023CA_ENTERPRISE_PAYGO\020" + + "\323\245\241\330\001\022\022\n\013CA_STANDARD\020\376\202\243\006\"\236\001\n\022DefaultNet" + + "workTier\022\"\n\036UNDEFINED_DEFAULT_NETWORK_TI" + + "ER\020\000\022\026\n\016FIXED_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020" + + "\267\264\301\276\001\022\020\n\010STANDARD\020\275\235\214\347\001\022)\n!STANDARD_OVER" + + "RIDES_FIXED_STANDARD\020\302\207\221\336\001\"\222\001\n\014VmDnsSett" + + "ing\022\034\n\030UNDEFINED_VM_DNS_SETTING\020\000\022\026\n\016GLO" + + "BAL_DEFAULT\020\205\333\332\244\001\022!\n\032UNSPECIFIED_VM_DNS_" + + "SETTING\020\232\273\202\021\022\025\n\rZONAL_DEFAULT\020\206\375\331\257\001\022\022\n\nZ" + + "ONAL_ONLY\020\347\272\303\370\001\"i\n\020XpnProjectStatus\022 \n\034U" + + "NDEFINED_XPN_PROJECT_STATUS\020\000\022\013\n\004HOST\020\250\333" + + "\207\001\022&\n\036UNSPECIFIED_XPN_PROJECT_STATUS\020\251\372\247" + + "\242\001B\023\n\021_cloud_armor_tierB\033\n\031_common_insta" + + "nce_metadataB\025\n\023_creation_timestampB\027\n\025_" + + "default_network_tierB\032\n\030_default_service" + + "_accountB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kind" + + "B\007\n\005_nameB\014\n\n_self_linkB\030\n\026_usage_export" + + "_locationB\021\n\017_vm_dns_settingB\025\n\023_xpn_pro" + + "ject_status\"z\n!ProjectsDisableXpnResourc" + + "eRequest\022D\n\014xpn_resource\030\267\223\315? \001(\0132&.goog" + + "le.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017" + + "\n\r_xpn_resource\"y\n ProjectsEnableXpnReso" + + "urceRequest\022D\n\014xpn_resource\030\267\223\315? \001(\0132&.g" + + "oogle.cloud.compute.v1.XpnResourceIdH\000\210\001" + + "\001B\017\n\r_xpn_resource\"\253\001\n\027ProjectsGetXpnRes" + + "ources\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n\017next_pag" + + "e_token\030\225\272\206& \001(\tH\001\210\001\001\022<\n\tresources\030\245\374\262N " + + "\003(\0132&.google.cloud.compute.v1.XpnResourc", + "eIdB\007\n\005_kindB\022\n\020_next_page_token\"L\n\033Proj" + + "ectsListXpnHostsRequest\022\034\n\014organization\030" + + "\263\332\2232 \001(\tH\000\210\001\001B\017\n\r_organization\"\331\001\n Proje" + + "ctsSetCloudArmorTierRequest\022 \n\020cloud_arm" + + "or_tier\030\254\232\216\002 \001(\tH\000\210\001\001\"~\n\016CloudArmorTier\022" + + "\036\n\032UNDEFINED_CLOUD_ARMOR_TIER\020\000\022\033\n\024CA_EN" + + "TERPRISE_ANNUAL\020\334\365\356h\022\033\n\023CA_ENTERPRISE_PA" + + "YGO\020\323\245\241\330\001\022\022\n\013CA_STANDARD\020\376\202\243\006B\023\n\021_cloud_" + + "armor_tier\"\350\001\n$ProjectsSetDefaultNetwork" + + "TierRequest\022\035\n\014network_tier\030\323\272\333\366\001 \001(\tH\000\210" + + "\001\001\"\217\001\n\013NetworkTier\022\032\n\026UNDEFINED_NETWORK_" + + "TIER\020\000\022\026\n\016FIXED_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIU" + + "M\020\267\264\301\276\001\022\020\n\010STANDARD\020\275\235\214\347\001\022)\n!STANDARD_OV" + + "ERRIDES_FIXED_STANDARD\020\302\207\221\336\001B\017\n\r_network" + + "_tier\"\226\t\n\026PublicAdvertisedPrefix\022!\n\021byoi" + + "p_api_version\030\223\263\311M \001(\tH\000\210\001\001\022\"\n\022creation_" + + "timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374" + + "\207\326\311\001 \001(\tH\002\210\001\001\022#\n\023dns_verification_ip\030\265\225\366" + + "r \001(\tH\003\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022" + + "\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\035\n\rip_cidr_range\030\312\315\344. " + + "\001(\tH\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n\004name\030\213" + + "\365\315\001 \001(\tH\010\210\001\001\022\032\n\tpdp_scope\030\321\312\376\371\001 \001(\tH\t\210\001\001" + + "\022j\n\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D" + + ".google.cloud.compute.v1.PublicAdvertise" + + "dPrefixPublicDelegatedPrefix\022\032\n\tself_lin" + + "k\030\215\222\305\331\001 \001(\tH\n\210\001\001\022\036\n\rshared_secret\030\312\247\217\266\001 " + + "\001(\tH\013\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\014\210\001\001\"D\n\017Byoi" + + "pApiVersion\022\037\n\033UNDEFINED_BYOIP_API_VERSI" + + "ON\020\000\022\007\n\002V1\020\233\025\022\007\n\002V2\020\234\025\"a\n\010PdpScope\022\027\n\023UN" + + "DEFINED_PDP_SCOPE\020\000\022\016\n\006GLOBAL\020\243\357\357\353\001\022\033\n\023G" + + "LOBAL_AND_REGIONAL\020\303\265\324\227\001\022\017\n\010REGIONAL\020\237\354\200" + + ",\"\251\002\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\034\n\025AN" + + "NOUNCED_TO_INTERNET\020\301\376\350T\022\017\n\007INITIAL\020\244\306\263\367" + + "\001\022%\n\035PREFIX_CONFIGURATION_COMPLETE\020\317\225\247\345\001" + + "\022(\n PREFIX_CONFIGURATION_IN_PROGRESS\020\261\365\300" + + "\264\001\022\"\n\032PREFIX_REMOVAL_IN_PROGRESS\020\347\365\314\207\001\022\026" + + "\n\016PTR_CONFIGURED\020\317\260\355\364\001\022\030\n\021READY_TO_ANNOU" + + "NCE\020\361\261\351\036\022!\n\031REVERSE_DNS_LOOKUP_FAILED\020\257\273" + + "\203\215\001\022\020\n\tVALIDATED\020\356\263\310\037B\024\n\022_byoip_api_vers" + + "ionB\025\n\023_creation_timestampB\016\n\014_descripti" + + "onB\026\n\024_dns_verification_ipB\016\n\014_fingerpri" + + "ntB\005\n\003_idB\020\n\016_ip_cidr_rangeB\007\n\005_kindB\007\n\005" + + "_nameB\014\n\n_pdp_scopeB\014\n\n_self_linkB\020\n\016_sh" + + "ared_secretB\t\n\007_status\"\275\002\n\032PublicAdverti" + + "sedPrefixList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005items" + + "\030\300\317\367/ \003(\0132/.google.cloud.compute.v1.Publ" + + "icAdvertisedPrefix\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001" + + "\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tsel" + + "f_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(" + + "\0132 .google.cloud.compute.v1.WarningH\004\210\001\001" + + "B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n\010_warning\"\336\001\n+PublicAdverti" + + "sedPrefixPublicDelegatedPrefix\022\030\n\010ip_ran" + + "ge\030\245\340\227E \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\027" + + "\n\007project\030\231\226\301l \001(\tH\002\210\001\001\022\026\n\006region\030\364\315\240B \001" + + "(\tH\003\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\004\210\001\001B\013\n\t_ip_r" + + "angeB\007\n\005_nameB\n\n\010_projectB\t\n\007_regionB\t\n\007" + + "_status\"\370\010\n\025PublicDelegatedPrefix\022)\n\031all" + + "ocatable_prefix_length\030\266\266\251\022 \001(\005H\000\210\001\001\022!\n\021" + + "byoip_api_version\030\223\263\311M \001(\tH\001\210\001\001\022\"\n\022creat" + + "ion_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(" + + "\tH\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\035\n\rip_cidr_rang" + + "e\030\312\315\344. \001(\tH\006\210\001\001\022\"\n\021is_live_migration\030\360\237\207" + + "\364\001 \001(\010H\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022\024\n\004mod" + + "e\030\243\363\314\001 \001(\tH\t\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\n\210\001\001\022\035\n" + + "\rparent_prefix\030\307\347\241\007 \001(\tH\013\210\001\001\022o\n\034public_d" + + "elegated_sub_prefixs\030\214\376\213Z \003(\0132F.google.c" + + "loud.compute.v1.PublicDelegatedPrefixPub" + + "licDelegatedSubPrefix\022\026\n\006region\030\364\315\240B \001(\t" + + "H\014\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\026\n\006sta" + + "tus\030\362\237\267V \001(\tH\016\210\001\001\"D\n\017ByoipApiVersion\022\037\n\033" + + "UNDEFINED_BYOIP_API_VERSION\020\000\022\007\n\002V1\020\233\025\022\007" + + "\n\002V2\020\234\025\"]\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\021\n\nD" + + "ELEGATION\020\250\262\372}\022.\n&EXTERNAL_IPV6_FORWARDI" + + "NG_RULE_CREATION\020\304\341\215\276\001\"\256\001\n\006Status\022\024\n\020UND" + + "EFINED_STATUS\020\000\022\021\n\tANNOUNCED\020\373\221\214\256\001\022\033\n\023AN" + + "NOUNCED_TO_GOOGLE\020\271\264\363\330\001\022\034\n\025ANNOUNCED_TO_" + + "INTERNET\020\301\376\350T\022\020\n\010DELETING\020\250\247\207\374\001\022\024\n\014INITI" + + "ALIZING\020\315\330\230\222\001\022\030\n\021READY_TO_ANNOUNCE\020\361\261\351\036B" + + "\034\n\032_allocatable_prefix_lengthB\024\n\022_byoip_" + + "api_versionB\025\n\023_creation_timestampB\016\n\014_d" + + "escriptionB\016\n\014_fingerprintB\005\n\003_idB\020\n\016_ip" + + "_cidr_rangeB\024\n\022_is_live_migrationB\007\n\005_ki" + + "ndB\007\n\005_modeB\007\n\005_nameB\020\n\016_parent_prefixB\t" + + "\n\007_regionB\014\n\n_self_linkB\t\n\007_status\"\341\003\n#P" + + "ublicDelegatedPrefixAggregatedList\022\020\n\002id" + + "\030\233\032 \001(\tH\000\210\001\001\022Y\n\005items\030\300\317\367/ \003(\0132G.google." + + "cloud.compute.v1.PublicDelegatedPrefixAg" + + "gregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachabl" + + "es\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" + + ".cloud.compute.v1.WarningH\004\210\001\001\032h\n\nItemsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022I\n\005value\030\002 \001(\0132:.googl" + + "e.cloud.compute.v1.PublicDelegatedPrefix" + + "esScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_nex" + + "t_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\273" + + "\002\n\031PublicDelegatedPrefixList\022\020\n\002id\030\233\032 \001(" + + "\tH\000\210\001\001\022@\n\005items\030\300\317\367/ \003(\0132..google.cloud." + + "compute.v1.PublicDelegatedPrefix\022\024\n\004kind" + + "\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001" + + "(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" + + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\342\004\n" + + "-PublicDelegatedPrefixPublicDelegatedSub" + + "Prefix\022)\n\031allocatable_prefix_length\030\266\266\251\022" + + " \001(\005H\000\210\001\001\022\"\n\021delegatee_project\030\332\212\351\305\001 \001(\t" + + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\035\n\ri" + + "p_cidr_range\030\312\315\344. \001(\tH\003\210\001\001\022\033\n\nis_address" + + "\030\337\213\222\250\001 \001(\010H\004\210\001\001\022\024\n\004mode\030\243\363\314\001 \001(\tH\005\210\001\001\022\024\n" + + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007" + + "\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\010\210\001\001\"]\n\004Mode\022\022\n\016U" + + "NDEFINED_MODE\020\000\022\021\n\nDELEGATION\020\250\262\372}\022.\n&EX" + + "TERNAL_IPV6_FORWARDING_RULE_CREATION\020\304\341\215" + + "\276\001\"@\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\016\n\006AC" + + "TIVE\020\206\346\211\226\001\022\020\n\010INACTIVE\020\353\230\371\200\001B\034\n\032_allocat" + + "able_prefix_lengthB\024\n\022_delegatee_project" + + "B\016\n\014_descriptionB\020\n\016_ip_cidr_rangeB\r\n\013_i" + + "s_addressB\007\n\005_modeB\007\n\005_nameB\t\n\007_regionB\t" + + "\n\007_status\"\301\001\n!PublicDelegatedPrefixesSco" + + "pedList\022U\n\031public_delegated_prefixes\030\226\202\252" + + "\226\001 \003(\0132..google.cloud.compute.v1.PublicD" + + "elegatedPrefix\0229\n\007warning\030\234\337\226\030 \001(\0132 .goo" + + "gle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_wa" + + "rning\"\346(\n\005Quota\022\025\n\005limit\030\273\227\2151 \001(\001H\000\210\001\001\022\027" + + "\n\006metric\030\260\353\227\376\001 \001(\tH\001\210\001\001\022\025\n\005owner\030\263\345\3172 \001(" + + "\tH\002\210\001\001\022\025\n\005usage\030\241\373\2315 \001(\001H\003\210\001\001\"\325\'\n\006Metric" + + "\022\024\n\020UNDEFINED_METRIC\020\000\022\016\n\007A2_CPUS\020\271\376\206I\022\026" + + "\n\017AFFINITY_GROUPS\020\313\251\3223\022\023\n\013AUTOSCALERS\020\334\340" + + "\332\340\001\022\026\n\017BACKEND_BUCKETS\020\336\211\320A\022\030\n\020BACKEND_S" + + "ERVICES\020\311\303\310\200\001\022\020\n\010C2D_CPUS\020\365\377\250\362\001\022\017\n\007C2_CP" + + "US\020\273\353\270\227\001\022\017\n\007C3_CPUS\020\332\234\214\245\001\022\023\n\013COMMITMENTS" + + "\020\336\327\300\331\001\022\030\n\021COMMITTED_A2_CPUS\020\326\242\245\034\022\032\n\022COMM" + + "ITTED_C2D_CPUS\020\370\342\323\206\001\022\030\n\021COMMITTED_C2_CPU" + + "S\020\330\217\327j\022\030\n\021COMMITTED_C3_CPUS\020\367\300\252x\022\026\n\016COMM" + + "ITTED_CPUS\020\316\255\266\213\001\022\031\n\021COMMITTED_E2_CPUS\020\332\374" + + "\210\271\001\022\032\n\022COMMITTED_LICENSES\020\325\313\302\252\001\022$\n\034COMMI" + + "TTED_LOCAL_SSD_TOTAL_GB\020\210\354\206\223\001\022\027\n\021COMMITT" + + "ED_M3_CPUS\020\201\342#\022\'\n\037COMMITTED_MEMORY_OPTIM" + + "IZED_CPUS\020\336\334\231\351\001\022\031\n\022COMMITTED_N2A_CPUS\020\260\252" + + "\215\023\022\031\n\022COMMITTED_N2D_CPUS\020\215\276\207<\022\031\n\021COMMITT" + + "ED_N2_CPUS\020\243\247\351\231\001\022\'\n\037COMMITTED_NVIDIA_A10" + + "0_80GB_GPUS\020\245\237\264\335\001\022\"\n\032COMMITTED_NVIDIA_A1" + + "00_GPUS\020\225\375\230\263\001\022!\n\032COMMITTED_NVIDIA_H100_G" + + "PUS\020\234\217\225\"\022 \n\031COMMITTED_NVIDIA_K80_GPUS\020\244\266" + + "\353\001\022\037\n\030COMMITTED_NVIDIA_L4_GPUS\020\375\323\221\t\022!\n\032C" + + "OMMITTED_NVIDIA_P100_GPUS\020\244\377\2423\022 \n\030COMMIT" + + "TED_NVIDIA_P4_GPUS\020\201\256\365\245\001\022\037\n\030COMMITTED_NV" + + "IDIA_T4_GPUS\020\205\210\331B\022 \n\032COMMITTED_NVIDIA_V1" + + "00_GPUS\020\252\263\r\022\032\n\022COMMITTED_T2A_CPUS\020\352\304\251\215\001\022" + + "\032\n\022COMMITTED_T2D_CPUS\020\307\330\243\266\001\022\030\n\021COMMITTED" + + "_Z3_CPUS\020\316\346\347}\022\n\n\004CPUS\020\313\327~\022\030\n\020CPUS_ALL_RE" + + "GIONS\020\255\221\306\340\001\022\026\n\016DISKS_TOTAL_GB\020\237\227\311\250\001\022\017\n\007E" + + "2_CPUS\020\275\330\352\345\001\022(\n!EXTERNAL_MANAGED_FORWARD" + + "ING_RULES\020\311\277\363G\022,\n$EXTERNAL_NETWORK_LB_FO" + + "RWARDING_RULES\020\231\255\275\262\001\022)\n\"EXTERNAL_PROTOCO" + + "L_FORWARDING_RULES\020\350\270\242\036\022\035\n\025EXTERNAL_VPN_" + + "GATEWAYS\020\256\273\365\201\001\022\021\n\tFIREWALLS\020\323\346\310\262\001\022\030\n\020FOR" + + "WARDING_RULES\020\225\202\250\316\001\022/\n(GLOBAL_EXTERNAL_M" + + "ANAGED_BACKEND_SERVICES\020\341\255\274N\0220\n(GLOBAL_E" + + "XTERNAL_MANAGED_FORWARDING_RULES\020\255\354\233\234\001\0221" + + "\n)GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVI" + + "CES\020\251\331\355\276\001\022 \n\031GLOBAL_INTERNAL_ADDRESSES\020\234" + + "\305\260\024\022/\n(GLOBAL_INTERNAL_MANAGED_BACKEND_S" + + "ERVICES\020\257\220\256z\0229\n1GLOBAL_INTERNAL_TRAFFIC_" + + "DIRECTOR_BACKEND_SERVICES\020\324\336\241\232\001\022\027\n\020GPUS_" + + "ALL_REGIONS\020\251\200\344\022\022\024\n\014HDB_TOTAL_GB\020\257\302\241\230\001\022\026" + + "\n\016HDB_TOTAL_IOPS\020\375\351\327\223\001\022\033\n\024HDB_TOTAL_THRO" + + "UGHPUT\020\376\314\200\n\022\025\n\rHEALTH_CHECKS\020\256\257\374\211\001\022\r\n\006IM" + + "AGES\020\370\354\265\007\022\020\n\tINSTANCES\020\336\234\320>\022\027\n\017INSTANCE_" + + "GROUPS\020\276\311\333\251\001\022\036\n\027INSTANCE_GROUP_MANAGERS\020" + + "\260\242\3050\022\031\n\022INSTANCE_TEMPLATES\020\357\267\355k\022\025\n\rINTER" + + "CONNECTS\020\205\213\376\305\001\022*\n#INTERCONNECT_ATTACHMEN" + + "TS_PER_REGION\020\326\326\243L\022+\n#INTERCONNECT_ATTAC" + + "HMENTS_TOTAL_MBPS\020\363\272\331\312\001\022\037\n\027INTERCONNECT_" + + "TOTAL_GBPS\020\252\361\207\210\001\022\031\n\022INTERNAL_ADDRESSES\020\200" + + "\351\256^\0221\n*INTERNAL_TRAFFIC_DIRECTOR_FORWARD" + + "ING_RULES\020\204\351\205\177\022\031\n\022IN_PLACE_SNAPSHOTS\020\235\235\226" + + "H\022\030\n\020IN_USE_ADDRESSES\020\220\342\337\277\001\022\036\n\027IN_USE_BA" + + "CKUP_SCHEDULES\020\221\222\321\017\022!\n\031IN_USE_SNAPSHOT_S" + + "CHEDULES\020\223\314\254\334\001\022\032\n\022LOCAL_SSD_TOTAL_GB\020\305\230\343" + + "\235\001\022\016\n\007M1_CPUS\020\246\333\336\021\022\016\n\007M2_CPUS\020\305\214\262\037\022\016\n\007M3" + + "_CPUS\020\344\275\205-\022\026\n\016MACHINE_IMAGES\020\220\363\221\325\001\022\017\n\010N2" + + "A_CPUS\020\255\307\342~\022\020\n\010N2D_CPUS\020\212\333\334\247\001\022\017\n\007N2_CPUS" + + "\020\206\203\313\306\001\022\020\n\010NETWORKS\020\205\270\277\347\001\022\032\n\023NETWORK_ATTA" + + "CHMENTS\020\337\375\207G\022\036\n\027NETWORK_ENDPOINT_GROUPS\020" + + "\215\267\3320\022 \n\031NETWORK_FIREWALL_POLICIES\020\276\333\2330\022*" + + "\n#NET_LB_SECURITY_POLICIES_PER_REGION\020\255\375" + + "\244K\022/\n\'NET_LB_SECURITY_POLICY_RULES_PER_R" + + "EGION\020\263\210\346\251\001\0229\n1NET_LB_SECURITY_POLICY_RU" + + "LE_ATTRIBUTES_PER_REGION\020\360\350\264\224\001\022\022\n\013NODE_G" + + "ROUPS\020\261\375\336\013\022\026\n\016NODE_TEMPLATES\020\234\262\271\342\001\022\035\n\025NV" + + "IDIA_A100_80GB_GPUS\020\310\350\307\210\001\022\030\n\020NVIDIA_A100" + + "_GPUS\020\222\200\337\360\001\022\026\n\017NVIDIA_K80_GPUS\020\207\354\222N\022\026\n\016N" + + "VIDIA_L4_GPUS\020\272\315\310\352\001\022\027\n\020NVIDIA_P100_GPUS\020" + + "\241\202\351p\022\033\n\024NVIDIA_P100_VWS_GPUS\020\216\335\203f\022\026\n\016NVI" + + "DIA_P4_GPUS\020\276\247\254\207\001\022\032\n\022NVIDIA_P4_VWS_GPUS\020" + + "\253\325\364\373\001\022\025\n\016NVIDIA_T4_GPUS\020\302\201\220$\022\032\n\022NVIDIA_T" + + "4_VWS_GPUS\020\257\353\277\230\001\022\027\n\020NVIDIA_V100_GPUS\020\247\266\323" + + "=\022\030\n\021PACKET_MIRRORINGS\020\247\352\266\007\022(\n!PD_EXTREM" + + "E_TOTAL_PROVISIONED_IOPS\020\355\326\227!\022\027\n\020PREEMPT" + + "IBLE_CPUS\020\311\215\343w\022\037\n\030PREEMPTIBLE_LOCAL_SSD_" + + "GB\020\210\223\257|\022(\n!PREEMPTIBLE_NVIDIA_A100_80GB_" + + "GPUS\020\212\352\271H\022#\n\034PREEMPTIBLE_NVIDIA_A100_GPU" + + "S\020\220\234\351 \022$\n\034PREEMPTIBLE_NVIDIA_H100_GPUS\020\227" + + "\256\345\217\001\022#\n\033PREEMPTIBLE_NVIDIA_K80_GPUS\020\311\340\345\262" + + "\001\022!\n\032PREEMPTIBLE_NVIDIA_L4_GPUS\020\270\270\360/\022$\n\034" + + "PREEMPTIBLE_NVIDIA_P100_GPUS\020\237\236\363\240\001\022(\n PR" + + "EEMPTIBLE_NVIDIA_P100_VWS_GPUS\020\214\233\301\225\001\022\"\n\032" + + "PREEMPTIBLE_NVIDIA_P4_GPUS\020\274\222\324\314\001\022%\n\036PREE" + + "MPTIBLE_NVIDIA_P4_VWS_GPUS\020\251\342\320x\022!\n\032PREEM" + + "PTIBLE_NVIDIA_T4_GPUS\020\300\354\267i\022%\n\036PREEMPTIBL" + + "E_NVIDIA_T4_VWS_GPUS\020\255\370\233\025\022#\n\034PREEMPTIBLE" + + "_NVIDIA_V100_GPUS\020\245\322\335m\022%\n\036PREEMPTIBLE_TP" + + "U_LITE_DEVICE_V5\020\373\221\214S\022\'\n PREEMPTIBLE_TPU" + + "_LITE_PODSLICE_V5\020\304\221\3055\022#\n\033PREEMPTIBLE_TP" + + "U_PODSLICE_V4\020\214\374\364\312\001\022=\n6PSC_ILB_CONSUMER_" + + "FORWARDING_RULES_PER_PRODUCER_NETWORK\020\203\223" + + "\235n\022\'\n PSC_INTERNAL_LB_FORWARDING_RULES\020\373" + + "\242\313P\022\"\n\032PUBLIC_ADVERTISED_PREFIXES\020\314\241\342\340\001\022" + + "!\n\031PUBLIC_DELEGATED_PREFIXES\020\266\222\363\375\001\022\033\n\024RE" + + "GIONAL_AUTOSCALERS\020\274\234\200\016\0221\n*REGIONAL_EXTE" + + "RNAL_MANAGED_BACKEND_SERVICES\020\335\354\202\002\0225\n-RE" + + "GIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVI" + + "CES\020\355\352\245\303\001\022\'\n REGIONAL_INSTANCE_GROUP_MAN" + + "AGERS\020\220\276\363\021\022,\n%REGIONAL_INTERNAL_LB_BACKE" + + "ND_SERVICES\020\220\356\345A\0221\n*REGIONAL_INTERNAL_MA" + + "NAGED_BACKEND_SERVICES\020\253\317\364-\022;\n3REGIONAL_" + + "INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVIC" + + "ES\020\330\366\261\346\001\022\023\n\014RESERVATIONS\020\247\274\310\017\022\030\n\021RESOURC" + + "E_POLICIES\020\341\234\204(\022\017\n\007ROUTERS\020\252\274\213\353\001\022\016\n\006ROUT" + + "ES\020\312\226\272\203\001\022\030\n\021SECURITY_POLICIES\020\357\246\257Z\022#\n\034SE" + + "CURITY_POLICIES_PER_REGION\020\306\246\340v\0221\n)SECUR" + + "ITY_POLICY_ADVANCED_RULES_PER_REGION\020\255\347\245" + + "\261\001\022#\n\033SECURITY_POLICY_CEVAL_RULES\020\311\247\300\340\001\022" + + "\034\n\025SECURITY_POLICY_RULES\020\251\324\207a\022\'\n SECURIT" + + "Y_POLICY_RULES_PER_REGION\020\314\310\251<\022\033\n\023SERVIC" + + "E_ATTACHMENTS\020\346\261\353\340\001\022\021\n\tSNAPSHOTS\020\217\346\337\243\001\022\023" + + "\n\014SSD_TOTAL_GB\020\321\257\217M\022\030\n\020SSL_CERTIFICATES\020" + + "\257\202\266\264\001\022\024\n\014SSL_POLICIES\020\303\364\300\371\001\022\027\n\020STATIC_AD" + + "DRESSES\020\361\255\322,\022\036\n\026STATIC_BYOIP_ADDRESSES\020\361" + + "\212\302\203\001\022+\n#STATIC_EXTERNAL_IPV6_ADDRESS_RAN" + + "GES\020\226\341\235\341\001\022\023\n\013SUBNETWORKS\020\245\374\363\310\001\022\020\n\010T2A_CP" + + "US\020\347\341\376\370\001\022\017\n\010T2D_CPUS\020\304\365\370!\022\033\n\024TARGET_HTTP" + + "S_PROXIES\020\312\313\326h\022\032\n\023TARGET_HTTP_PROXIES\020\243\365" + + "\240N\022\030\n\020TARGET_INSTANCES\020\260\332\325\207\001\022\024\n\014TARGET_P" + + "OOLS\020\211\227\210\246\001\022\031\n\022TARGET_SSL_PROXIES\020\353\344\365K\022\031\n" + + "\022TARGET_TCP_PROXIES\020\300\236\363V\022\032\n\023TARGET_VPN_G" + + "ATEWAYS\020\250\273\343#\022\032\n\022TPU_LITE_DEVICE_V5\020\375\204\260\326\001" + + "\022\033\n\024TPU_LITE_PODSLICE_V5\020\306\323\207\006\022\026\n\017TPU_POD" + + "SLICE_V4\020\312\207\242f\022\020\n\010URL_MAPS\020\207\317\307\264\001\022.\n\'VARIA" + + "BLE_IPV6_PUBLIC_DELEGATED_PREFIXES\020\241\366\234=\022" + + "\023\n\014VPN_GATEWAYS\020\272\213\376\020\022\022\n\013VPN_TUNNELS\020\200\321\3371" + + "\022\033\n\024XPN_SERVICE_PROJECTS\020\255\207\262-B\010\n\006_limitB" + + "\t\n\007_metricB\010\n\006_ownerB\010\n\006_usage\"\340\003\n\021Quota" + + "ExceededInfo\022R\n\ndimensions\030\315\377\310\305\001 \003(\0132:.g" + + "oogle.cloud.compute.v1.QuotaExceededInfo" + + ".DimensionsEntry\022\035\n\014future_limit\030\277\274\332\331\001 \001" + + "(\001H\000\210\001\001\022\025\n\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\nlimit_" + + "name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n\013metric_name\030\272\227\271\303\001" + + " \001(\tH\003\210\001\001\022\037\n\016rollout_status\030\300\344\226\343\001 \001(\tH\004\210" + + "\001\001\0321\n\017DimensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"e\n\rRolloutStatus\022\034\n\030UNDEFI" + + "NED_ROLLOUT_STATUS\020\000\022\023\n\013IN_PROGRESS\020\207\250\335\337" + + "\001\022!\n\032ROLLOUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n\r" + + "_future_limitB\010\n\006_limitB\r\n\013_limit_nameB\016" + + "\n\014_metric_nameB\021\n\017_rollout_status\"\210\t\n\022Qu" + + "otaStatusWarning\022\024\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022." + + "\n\004data\030\252\337\273\001 \003(\0132\035.google.cloud.compute.v" + + "1.Data\022\030\n\007message\030\207\200\254\307\001 \001(\tH\001\210\001\001\"\374\007\n\004Cod" + + "e\022\022\n\016UNDEFINED_CODE\020\000\022\025\n\016CLEANUP_FAILED\020" + + "\330\214\326G\022 \n\030DEPRECATED_RESOURCE_USED\020\302\337\353\272\001\022\034" + + "\n\024DEPRECATED_TYPE_USED\020\226\244\236\245\001\022(\n DISK_SIZ" + + "E_LARGER_THAN_IMAGE_SIZE\020\227\201\225\260\001\022\036\n\026EXPERI" + + "MENTAL_TYPE_USED\020\213\216\301\327\001\022\033\n\024EXTERNAL_API_W" + + "ARNING\020\303\277\332S\022\035\n\025FIELD_VALUE_OVERRIDEN\020\257\266\231" + + "\235\001\022#\n\033INJECTED_KERNELS_DEPRECATED\020\213\331\202\307\001\022" + + "4\n,INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEG" + + "HTED_LB\020\316\233\274\277\001\022 \n\030LARGE_DEPLOYMENT_WARNIN" + + "G\020\246\347\310\345\001\022!\n\032LIST_OVERHEAD_QUOTA_EXCEED\020\305\260" + + "\332\026\022\037\n\027MISSING_TYPE_DEPENDENCY\020\367\370\242\244\001\022%\n\035N" + + "EXT_HOP_ADDRESS_NOT_ASSIGNED\020\207\245\372\232\001\022\"\n\032NE" + + "XT_HOP_CANNOT_IP_FORWARD\020\347\352\347\266\001\022.\n\'NEXT_H" + + "OP_INSTANCE_HAS_NO_IPV6_INTERFACE\020\222\350\374E\022#" + + "\n\033NEXT_HOP_INSTANCE_NOT_FOUND\020\316\314\257\335\001\022\'\n N" + + "EXT_HOP_INSTANCE_NOT_ON_NETWORK\020\302\350\235t\022\034\n\024" + + "NEXT_HOP_NOT_RUNNING\020\261\317\360\306\001\022\031\n\022NOT_CRITIC" + + "AL_ERROR\020\324\250\2672\022\031\n\022NO_RESULTS_ON_PAGE\020\210\246\251\016" + + "\022\026\n\017PARTIAL_SUCCESS\020\205\256\207\023\022\036\n\026QUOTA_INFO_U" + + "NAVAILABLE\020\246\322\214\221\001\022\035\n\026REQUIRED_TOS_AGREEME" + + "NT\020\203\316\344\001\0221\n)RESOURCE_IN_USE_BY_OTHER_RESO" + + "URCE_WARNING\020\301\364\355\354\001\022\033\n\024RESOURCE_NOT_DELET" + + "ED\020\274\267\262P\022!\n\031SCHEMA_VALIDATION_IGNORED\020\312\324\237" + + "\203\001\022(\n!SINGLE_INSTANCE_PROPERTY_TEMPLATE\020" + + "\321\211\370\177\022\035\n\025UNDECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n\013U" + + "NREACHABLE\020\264\275\255\006B\007\n\005_codeB\n\n\010_message\"\314\001\n" + + "\007RawDisk\022\037\n\016container_type\030\270\310\202\230\001 \001(\tH\000\210\001" + + "\001\022\036\n\rsha1_checksum\030\275\224\370\225\001 \001(\tH\001\210\001\001\022\026\n\006sou" + + "rce\030\233\320\301T \001(\tH\002\210\001\001\"8\n\rContainerType\022\034\n\030UN" + + "DEFINED_CONTAINER_TYPE\020\000\022\t\n\003TAR\020\205\207\005B\021\n\017_" + + "container_typeB\020\n\016_sha1_checksumB\t\n\007_sou" + + "rce\"\327\002\n,RecreateInstancesInstanceGroupMa" + + "nagerRequest\022&\n\026instance_group_manager\030\303" + + "\367\363v \001(\tB\003\340A\002\022\223\001\n;instance_group_managers" + + "_recreate_instances_request_resource\030\200\302\232" + + "\n \001(\0132F.google.cloud.compute.v1.Instance" + + "GroupManagersRecreateInstancesRequestB\003\340" + + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001" + + "(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\333\002\n2Recrea" + + "teInstancesRegionInstanceGroupManagerReq" + + "uest\022&\n\026instance_group_manager\030\303\367\363v \001(\tB" + + "\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n8reg" + + "ion_instance_group_managers_recreate_req" + + "uest_resource\030\224\374\304Q \001(\0132C.google.cloud.co" + + "mpute.v1.RegionInstanceGroupManagersRecr" + + "eateRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001B\r\n\013_request_id\"\250\001\n\tReference\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\000\210\001\001\022\036\n\016reference_type\030\256\277\203v \001" + + "(\tH\001\210\001\001\022\031\n\010referrer\030\237\370\271\247\001 \001(\tH\002\210\001\001\022\026\n\006ta" + + "rget\030\221\343\371[ \001(\tH\003\210\001\001B\007\n\005_kindB\021\n\017_referenc" + + "e_typeB\013\n\t_referrerB\t\n\007_target\"\204\005\n\006Regio" + + "n\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n" + + "\ndeprecated\030\263\313\321\365\001 \001(\0132*.google.cloud.com" + + "pute.v1.DeprecationStatusH\001\210\001\001\022\034\n\013descri" + + "ption\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024" + + "\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210" + + "\001\001\022R\n\024quota_status_warning\030\366\211\272\220\001 \001(\0132+.g" + + "oogle.cloud.compute.v1.QuotaStatusWarnin" + + "gH\006\210\001\001\0221\n\006quotas\030\373\241\342; \003(\0132\036.google.cloud" + + ".compute.v1.Quota\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" + + "H\007\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\010\210\001\001\022\034\n\014support" + + "s_pzs\030\356\366\205( \001(\010H\t\210\001\001\022\020\n\005zones\030\307\244\2557 \003(\t\"4\n" + + "\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\013\n\004DOWN\020\242\271" + + "\200\001\022\007\n\002UP\020\233\025B\025\n\023_creation_timestampB\r\n\013_d" + + "eprecatedB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kin" + + "dB\007\n\005_nameB\027\n\025_quota_status_warningB\014\n\n_" + + "self_linkB\t\n\007_statusB\017\n\r_supports_pzs\"\210\001" + + "\n\032RegionAddressesMoveRequest\022\034\n\013descript" + + "ion\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n\023destination_addres" + + "s\030\303\261\236\261\001 \001(\tH\001\210\001\001B\016\n\014_descriptionB\026\n\024_des" + + "tination_address\"\253\002\n\024RegionAutoscalerLis" + + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#." + + "google.cloud.compute.v1.Autoscaler\022\024\n\004ki" + + "nd\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206&" + + " \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute" + + ".v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_nex" + + "t_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\247" + + "\002\n\022RegionDiskTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" + + "3\n\005items\030\300\317\367/ \003(\0132!.google.cloud.compute" + + ".v1.DiskType\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + + "xt_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" + + "ogle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_i" + + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" + + "linkB\n\n\010_warning\"E\n%RegionDisksAddResour" + + "cePoliciesRequest\022\034\n\021resource_policies\030\341" + + "\234\314\n \003(\t\"H\n(RegionDisksRemoveResourcePoli" + + "ciesRequest\022\034\n\021resource_policies\030\341\234\314\n \003(" + + "\t\"@\n\030RegionDisksResizeRequest\022\030\n\007size_gb" + + "\030\331\213\200\354\001 \001(\003H\000\210\001\001B\n\n\010_size_gb\"h\n\'RegionDis" + + "ksStartAsyncReplicationRequest\022$\n\024async_" + + "secondary_disk\030\253\203\343> \001(\tH\000\210\001\001B\027\n\025_async_s" + + "econdary_disk\"\261\002\n\027RegionInstanceGroupLis" + + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0228\n\005items\030\300\317\367/ \003(\0132&." + + "google.cloud.compute.v1.InstanceGroup\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225" + + "\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_" + + "next_page_tokenB\014\n\n_self_linkB\n\n\010_warnin" + + "g\"E\n1RegionInstanceGroupManagerDeleteIns" + + "tanceConfigReq\022\020\n\005names\030\310\256\3571 \003(\t\"\277\002\n\036Reg" + + "ionInstanceGroupManagerList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\022?\n\005items\030\300\317\367/ \003(\0132-.google.cloud.c" + + "ompute.v1.InstanceGroupManager\022\024\n\004kind\030\224" + + "\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\t" + + "H\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007war" + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." - + "WarningH\004\210\001\001\032h\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" - + "I\n\005value\030\002 \001(\0132:.google.cloud.compute.v1" - + ".PublicDelegatedPrefixesScopedList:\0028\001B\005" - + "\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_s" - + "elf_linkB\n\n\010_warning\"\273\002\n\031PublicDelegated" - + "PrefixList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022@\n\005items\030\300\317" - + "\367/ \003(\0132..google.cloud.compute.v1.PublicD" - + "elegatedPrefix\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" - + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003" - + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" - + "f_linkB\n\n\010_warning\"\342\004\n-PublicDelegatedPr" - + "efixPublicDelegatedSubPrefix\022)\n\031allocata" - + "ble_prefix_length\030\266\266\251\022 \001(\005H\000\210\001\001\022\"\n\021deleg" - + "atee_project\030\332\212\351\305\001 \001(\tH\001\210\001\001\022\034\n\013descripti" - + "on\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\035\n\rip_cidr_range\030\312\315\344. " - + "\001(\tH\003\210\001\001\022\033\n\nis_address\030\337\213\222\250\001 \001(\010H\004\210\001\001\022\024\n" - + "\004mode\030\243\363\314\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001" - + "\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\026\n\006status\030\362\237\267V" - + " \001(\tH\010\210\001\001\"]\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\021\n" - + "\nDELEGATION\020\250\262\372}\022.\n&EXTERNAL_IPV6_FORWAR" - + "DING_RULE_CREATION\020\304\341\215\276\001\"@\n\006Status\022\024\n\020UN" - + "DEFINED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\010INAC" - + "TIVE\020\353\230\371\200\001B\034\n\032_allocatable_prefix_length" - + "B\024\n\022_delegatee_projectB\016\n\014_descriptionB\020" - + "\n\016_ip_cidr_rangeB\r\n\013_is_addressB\007\n\005_mode" - + "B\007\n\005_nameB\t\n\007_regionB\t\n\007_status\"\301\001\n!Publ" - + "icDelegatedPrefixesScopedList\022U\n\031public_" - + "delegated_prefixes\030\226\202\252\226\001 \003(\0132..google.cl" - + "oud.compute.v1.PublicDelegatedPrefix\0229\n\007" - + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." - + "v1.WarningH\000\210\001\001B\n\n\010_warning\"\346(\n\005Quota\022\025\n" - + "\005limit\030\273\227\2151 \001(\001H\000\210\001\001\022\027\n\006metric\030\260\353\227\376\001 \001(\t" - + "H\001\210\001\001\022\025\n\005owner\030\263\345\3172 \001(\tH\002\210\001\001\022\025\n\005usage\030\241\373" - + "\2315 \001(\001H\003\210\001\001\"\325\'\n\006Metric\022\024\n\020UNDEFINED_METR" - + "IC\020\000\022\016\n\007A2_CPUS\020\271\376\206I\022\026\n\017AFFINITY_GROUPS\020" - + "\313\251\3223\022\023\n\013AUTOSCALERS\020\334\340\332\340\001\022\026\n\017BACKEND_BUC" - + "KETS\020\336\211\320A\022\030\n\020BACKEND_SERVICES\020\311\303\310\200\001\022\020\n\010C" - + "2D_CPUS\020\365\377\250\362\001\022\017\n\007C2_CPUS\020\273\353\270\227\001\022\017\n\007C3_CPU" - + "S\020\332\234\214\245\001\022\023\n\013COMMITMENTS\020\336\327\300\331\001\022\030\n\021COMMITTE" - + "D_A2_CPUS\020\326\242\245\034\022\032\n\022COMMITTED_C2D_CPUS\020\370\342\323" - + "\206\001\022\030\n\021COMMITTED_C2_CPUS\020\330\217\327j\022\030\n\021COMMITTE" - + "D_C3_CPUS\020\367\300\252x\022\026\n\016COMMITTED_CPUS\020\316\255\266\213\001\022\031" - + "\n\021COMMITTED_E2_CPUS\020\332\374\210\271\001\022\032\n\022COMMITTED_L" - + "ICENSES\020\325\313\302\252\001\022$\n\034COMMITTED_LOCAL_SSD_TOT" - + "AL_GB\020\210\354\206\223\001\022\027\n\021COMMITTED_M3_CPUS\020\201\342#\022\'\n\037" - + "COMMITTED_MEMORY_OPTIMIZED_CPUS\020\336\334\231\351\001\022\031\n" - + "\022COMMITTED_N2A_CPUS\020\260\252\215\023\022\031\n\022COMMITTED_N2" - + "D_CPUS\020\215\276\207<\022\031\n\021COMMITTED_N2_CPUS\020\243\247\351\231\001\022\'" - + "\n\037COMMITTED_NVIDIA_A100_80GB_GPUS\020\245\237\264\335\001\022" - + "\"\n\032COMMITTED_NVIDIA_A100_GPUS\020\225\375\230\263\001\022!\n\032C" - + "OMMITTED_NVIDIA_H100_GPUS\020\234\217\225\"\022 \n\031COMMIT" - + "TED_NVIDIA_K80_GPUS\020\244\266\353\001\022\037\n\030COMMITTED_NV" - + "IDIA_L4_GPUS\020\375\323\221\t\022!\n\032COMMITTED_NVIDIA_P1" - + "00_GPUS\020\244\377\2423\022 \n\030COMMITTED_NVIDIA_P4_GPUS" - + "\020\201\256\365\245\001\022\037\n\030COMMITTED_NVIDIA_T4_GPUS\020\205\210\331B\022" - + " \n\032COMMITTED_NVIDIA_V100_GPUS\020\252\263\r\022\032\n\022COM" - + "MITTED_T2A_CPUS\020\352\304\251\215\001\022\032\n\022COMMITTED_T2D_C" - + "PUS\020\307\330\243\266\001\022\030\n\021COMMITTED_Z3_CPUS\020\316\346\347}\022\n\n\004C" - + "PUS\020\313\327~\022\030\n\020CPUS_ALL_REGIONS\020\255\221\306\340\001\022\026\n\016DIS" - + "KS_TOTAL_GB\020\237\227\311\250\001\022\017\n\007E2_CPUS\020\275\330\352\345\001\022(\n!EX" - + "TERNAL_MANAGED_FORWARDING_RULES\020\311\277\363G\022,\n$" - + "EXTERNAL_NETWORK_LB_FORWARDING_RULES\020\231\255\275" - + "\262\001\022)\n\"EXTERNAL_PROTOCOL_FORWARDING_RULES" - + "\020\350\270\242\036\022\035\n\025EXTERNAL_VPN_GATEWAYS\020\256\273\365\201\001\022\021\n\t" - + "FIREWALLS\020\323\346\310\262\001\022\030\n\020FORWARDING_RULES\020\225\202\250\316" - + "\001\022/\n(GLOBAL_EXTERNAL_MANAGED_BACKEND_SER" - + "VICES\020\341\255\274N\0220\n(GLOBAL_EXTERNAL_MANAGED_FO" - + "RWARDING_RULES\020\255\354\233\234\001\0221\n)GLOBAL_EXTERNAL_" - + "PROXY_LB_BACKEND_SERVICES\020\251\331\355\276\001\022 \n\031GLOBA" - + "L_INTERNAL_ADDRESSES\020\234\305\260\024\022/\n(GLOBAL_INTE" - + "RNAL_MANAGED_BACKEND_SERVICES\020\257\220\256z\0229\n1GL" - + "OBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_S" - + "ERVICES\020\324\336\241\232\001\022\027\n\020GPUS_ALL_REGIONS\020\251\200\344\022\022\024" - + "\n\014HDB_TOTAL_GB\020\257\302\241\230\001\022\026\n\016HDB_TOTAL_IOPS\020\375" - + "\351\327\223\001\022\033\n\024HDB_TOTAL_THROUGHPUT\020\376\314\200\n\022\025\n\rHEA" - + "LTH_CHECKS\020\256\257\374\211\001\022\r\n\006IMAGES\020\370\354\265\007\022\020\n\tINSTA" - + "NCES\020\336\234\320>\022\027\n\017INSTANCE_GROUPS\020\276\311\333\251\001\022\036\n\027IN", - "STANCE_GROUP_MANAGERS\020\260\242\3050\022\031\n\022INSTANCE_T" - + "EMPLATES\020\357\267\355k\022\025\n\rINTERCONNECTS\020\205\213\376\305\001\022*\n#" - + "INTERCONNECT_ATTACHMENTS_PER_REGION\020\326\326\243L" - + "\022+\n#INTERCONNECT_ATTACHMENTS_TOTAL_MBPS\020" - + "\363\272\331\312\001\022\037\n\027INTERCONNECT_TOTAL_GBPS\020\252\361\207\210\001\022\031" - + "\n\022INTERNAL_ADDRESSES\020\200\351\256^\0221\n*INTERNAL_TR" - + "AFFIC_DIRECTOR_FORWARDING_RULES\020\204\351\205\177\022\031\n\022" - + "IN_PLACE_SNAPSHOTS\020\235\235\226H\022\030\n\020IN_USE_ADDRES" - + "SES\020\220\342\337\277\001\022\036\n\027IN_USE_BACKUP_SCHEDULES\020\221\222\321" - + "\017\022!\n\031IN_USE_SNAPSHOT_SCHEDULES\020\223\314\254\334\001\022\032\n\022" - + "LOCAL_SSD_TOTAL_GB\020\305\230\343\235\001\022\016\n\007M1_CPUS\020\246\333\336\021" - + "\022\016\n\007M2_CPUS\020\305\214\262\037\022\016\n\007M3_CPUS\020\344\275\205-\022\026\n\016MACH" - + "INE_IMAGES\020\220\363\221\325\001\022\017\n\010N2A_CPUS\020\255\307\342~\022\020\n\010N2D" - + "_CPUS\020\212\333\334\247\001\022\017\n\007N2_CPUS\020\206\203\313\306\001\022\020\n\010NETWORKS" - + "\020\205\270\277\347\001\022\032\n\023NETWORK_ATTACHMENTS\020\337\375\207G\022\036\n\027NE" - + "TWORK_ENDPOINT_GROUPS\020\215\267\3320\022 \n\031NETWORK_FI" - + "REWALL_POLICIES\020\276\333\2330\022*\n#NET_LB_SECURITY_" - + "POLICIES_PER_REGION\020\255\375\244K\022/\n\'NET_LB_SECUR" - + "ITY_POLICY_RULES_PER_REGION\020\263\210\346\251\001\0229\n1NET" - + "_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_" - + "REGION\020\360\350\264\224\001\022\022\n\013NODE_GROUPS\020\261\375\336\013\022\026\n\016NODE" - + "_TEMPLATES\020\234\262\271\342\001\022\035\n\025NVIDIA_A100_80GB_GPU" - + "S\020\310\350\307\210\001\022\030\n\020NVIDIA_A100_GPUS\020\222\200\337\360\001\022\026\n\017NVI" - + "DIA_K80_GPUS\020\207\354\222N\022\026\n\016NVIDIA_L4_GPUS\020\272\315\310\352" - + "\001\022\027\n\020NVIDIA_P100_GPUS\020\241\202\351p\022\033\n\024NVIDIA_P10" - + "0_VWS_GPUS\020\216\335\203f\022\026\n\016NVIDIA_P4_GPUS\020\276\247\254\207\001\022" - + "\032\n\022NVIDIA_P4_VWS_GPUS\020\253\325\364\373\001\022\025\n\016NVIDIA_T4" - + "_GPUS\020\302\201\220$\022\032\n\022NVIDIA_T4_VWS_GPUS\020\257\353\277\230\001\022\027" - + "\n\020NVIDIA_V100_GPUS\020\247\266\323=\022\030\n\021PACKET_MIRROR" - + "INGS\020\247\352\266\007\022(\n!PD_EXTREME_TOTAL_PROVISIONE" - + "D_IOPS\020\355\326\227!\022\027\n\020PREEMPTIBLE_CPUS\020\311\215\343w\022\037\n\030" - + "PREEMPTIBLE_LOCAL_SSD_GB\020\210\223\257|\022(\n!PREEMPT" - + "IBLE_NVIDIA_A100_80GB_GPUS\020\212\352\271H\022#\n\034PREEM" - + "PTIBLE_NVIDIA_A100_GPUS\020\220\234\351 \022$\n\034PREEMPTI" - + "BLE_NVIDIA_H100_GPUS\020\227\256\345\217\001\022#\n\033PREEMPTIBL" - + "E_NVIDIA_K80_GPUS\020\311\340\345\262\001\022!\n\032PREEMPTIBLE_N" - + "VIDIA_L4_GPUS\020\270\270\360/\022$\n\034PREEMPTIBLE_NVIDIA" - + "_P100_GPUS\020\237\236\363\240\001\022(\n PREEMPTIBLE_NVIDIA_P" - + "100_VWS_GPUS\020\214\233\301\225\001\022\"\n\032PREEMPTIBLE_NVIDIA" - + "_P4_GPUS\020\274\222\324\314\001\022%\n\036PREEMPTIBLE_NVIDIA_P4_" - + "VWS_GPUS\020\251\342\320x\022!\n\032PREEMPTIBLE_NVIDIA_T4_G" - + "PUS\020\300\354\267i\022%\n\036PREEMPTIBLE_NVIDIA_T4_VWS_GP" - + "US\020\255\370\233\025\022#\n\034PREEMPTIBLE_NVIDIA_V100_GPUS\020" - + "\245\322\335m\022%\n\036PREEMPTIBLE_TPU_LITE_DEVICE_V5\020\373" - + "\221\214S\022\'\n PREEMPTIBLE_TPU_LITE_PODSLICE_V5\020" - + "\304\221\3055\022#\n\033PREEMPTIBLE_TPU_PODSLICE_V4\020\214\374\364\312" - + "\001\022=\n6PSC_ILB_CONSUMER_FORWARDING_RULES_P" - + "ER_PRODUCER_NETWORK\020\203\223\235n\022\'\n PSC_INTERNAL" - + "_LB_FORWARDING_RULES\020\373\242\313P\022\"\n\032PUBLIC_ADVE" - + "RTISED_PREFIXES\020\314\241\342\340\001\022!\n\031PUBLIC_DELEGATE" - + "D_PREFIXES\020\266\222\363\375\001\022\033\n\024REGIONAL_AUTOSCALERS" - + "\020\274\234\200\016\0221\n*REGIONAL_EXTERNAL_MANAGED_BACKE" - + "ND_SERVICES\020\335\354\202\002\0225\n-REGIONAL_EXTERNAL_NE" - + "TWORK_LB_BACKEND_SERVICES\020\355\352\245\303\001\022\'\n REGIO" - + "NAL_INSTANCE_GROUP_MANAGERS\020\220\276\363\021\022,\n%REGI" - + "ONAL_INTERNAL_LB_BACKEND_SERVICES\020\220\356\345A\0221" - + "\n*REGIONAL_INTERNAL_MANAGED_BACKEND_SERV" - + "ICES\020\253\317\364-\022;\n3REGIONAL_INTERNAL_TRAFFIC_D" - + "IRECTOR_BACKEND_SERVICES\020\330\366\261\346\001\022\023\n\014RESERV" - + "ATIONS\020\247\274\310\017\022\030\n\021RESOURCE_POLICIES\020\341\234\204(\022\017\n" - + "\007ROUTERS\020\252\274\213\353\001\022\016\n\006ROUTES\020\312\226\272\203\001\022\030\n\021SECURI" - + "TY_POLICIES\020\357\246\257Z\022#\n\034SECURITY_POLICIES_PE" - + "R_REGION\020\306\246\340v\0221\n)SECURITY_POLICY_ADVANCE" - + "D_RULES_PER_REGION\020\255\347\245\261\001\022#\n\033SECURITY_POL" - + "ICY_CEVAL_RULES\020\311\247\300\340\001\022\034\n\025SECURITY_POLICY" - + "_RULES\020\251\324\207a\022\'\n SECURITY_POLICY_RULES_PER" - + "_REGION\020\314\310\251<\022\033\n\023SERVICE_ATTACHMENTS\020\346\261\353\340" - + "\001\022\021\n\tSNAPSHOTS\020\217\346\337\243\001\022\023\n\014SSD_TOTAL_GB\020\321\257\217" - + "M\022\030\n\020SSL_CERTIFICATES\020\257\202\266\264\001\022\024\n\014SSL_POLIC" - + "IES\020\303\364\300\371\001\022\027\n\020STATIC_ADDRESSES\020\361\255\322,\022\036\n\026ST" - + "ATIC_BYOIP_ADDRESSES\020\361\212\302\203\001\022+\n#STATIC_EXT" - + "ERNAL_IPV6_ADDRESS_RANGES\020\226\341\235\341\001\022\023\n\013SUBNE" - + "TWORKS\020\245\374\363\310\001\022\020\n\010T2A_CPUS\020\347\341\376\370\001\022\017\n\010T2D_CP" - + "US\020\304\365\370!\022\033\n\024TARGET_HTTPS_PROXIES\020\312\313\326h\022\032\n\023" - + "TARGET_HTTP_PROXIES\020\243\365\240N\022\030\n\020TARGET_INSTA" - + "NCES\020\260\332\325\207\001\022\024\n\014TARGET_POOLS\020\211\227\210\246\001\022\031\n\022TARG" - + "ET_SSL_PROXIES\020\353\344\365K\022\031\n\022TARGET_TCP_PROXIE" - + "S\020\300\236\363V\022\032\n\023TARGET_VPN_GATEWAYS\020\250\273\343#\022\032\n\022TP" - + "U_LITE_DEVICE_V5\020\375\204\260\326\001\022\033\n\024TPU_LITE_PODSL" - + "ICE_V5\020\306\323\207\006\022\026\n\017TPU_PODSLICE_V4\020\312\207\242f\022\020\n\010U" - + "RL_MAPS\020\207\317\307\264\001\022.\n\'VARIABLE_IPV6_PUBLIC_DE" - + "LEGATED_PREFIXES\020\241\366\234=\022\023\n\014VPN_GATEWAYS\020\272\213" - + "\376\020\022\022\n\013VPN_TUNNELS\020\200\321\3371\022\033\n\024XPN_SERVICE_PR" - + "OJECTS\020\255\207\262-B\010\n\006_limitB\t\n\007_metricB\010\n\006_own" - + "erB\010\n\006_usage\"\340\003\n\021QuotaExceededInfo\022R\n\ndi" - + "mensions\030\315\377\310\305\001 \003(\0132:.google.cloud.comput" - + "e.v1.QuotaExceededInfo.DimensionsEntry\022\035" - + "\n\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n\005limit\030\273" - + "\227\2151 \001(\001H\001\210\001\001\022\033\n\nlimit_name\030\217\211\360\275\001 \001(\tH\002\210\001" - + "\001\022\034\n\013metric_name\030\272\227\271\303\001 \001(\tH\003\210\001\001\022\037\n\016rollo" - + "ut_status\030\300\344\226\343\001 \001(\tH\004\210\001\001\0321\n\017DimensionsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\rR" - + "olloutStatus\022\034\n\030UNDEFINED_ROLLOUT_STATUS" - + "\020\000\022\023\n\013IN_PROGRESS\020\207\250\335\337\001\022!\n\032ROLLOUT_STATU" - + "S_UNSPECIFIED\020\270\327\347\014B\017\n\r_future_limitB\010\n\006_" - + "limitB\r\n\013_limit_nameB\016\n\014_metric_nameB\021\n\017" - + "_rollout_status\"\350\010\n\022QuotaStatusWarning\022\024" - + "\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022.\n\004data\030\252\337\273\001 \003(\0132\035." - + "google.cloud.compute.v1.Data\022\030\n\007message\030" - + "\207\200\254\307\001 \001(\tH\001\210\001\001\"\334\007\n\004Code\022\022\n\016UNDEFINED_COD" - + "E\020\000\022\025\n\016CLEANUP_FAILED\020\330\214\326G\022 \n\030DEPRECATED" - + "_RESOURCE_USED\020\302\337\353\272\001\022\034\n\024DEPRECATED_TYPE_" - + "USED\020\226\244\236\245\001\022(\n DISK_SIZE_LARGER_THAN_IMAG" - + "E_SIZE\020\227\201\225\260\001\022\036\n\026EXPERIMENTAL_TYPE_USED\020\213" - + "\216\301\327\001\022\033\n\024EXTERNAL_API_WARNING\020\303\277\332S\022\035\n\025FIE" - + "LD_VALUE_OVERRIDEN\020\257\266\231\235\001\022#\n\033INJECTED_KER" - + "NELS_DEPRECATED\020\213\331\202\307\001\0224\n,INVALID_HEALTH_" - + "CHECK_FOR_DYNAMIC_WIEGHTED_LB\020\316\233\274\277\001\022 \n\030L" - + "ARGE_DEPLOYMENT_WARNING\020\246\347\310\345\001\022!\n\032LIST_OV" - + "ERHEAD_QUOTA_EXCEED\020\305\260\332\026\022\037\n\027MISSING_TYPE" - + "_DEPENDENCY\020\367\370\242\244\001\022%\n\035NEXT_HOP_ADDRESS_NO" - + "T_ASSIGNED\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CANNOT_IP_F" - + "ORWARD\020\347\352\347\266\001\022.\n\'NEXT_HOP_INSTANCE_HAS_NO" - + "_IPV6_INTERFACE\020\222\350\374E\022#\n\033NEXT_HOP_INSTANC" - + "E_NOT_FOUND\020\316\314\257\335\001\022\'\n NEXT_HOP_INSTANCE_N" - + "OT_ON_NETWORK\020\302\350\235t\022\034\n\024NEXT_HOP_NOT_RUNNI" - + "NG\020\261\317\360\306\001\022\031\n\022NOT_CRITICAL_ERROR\020\324\250\2672\022\031\n\022N" - + "O_RESULTS_ON_PAGE\020\210\246\251\016\022\026\n\017PARTIAL_SUCCES" - + "S\020\205\256\207\023\022\035\n\026REQUIRED_TOS_AGREEMENT\020\203\316\344\001\0221\n" - + ")RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNI" - + "NG\020\301\364\355\354\001\022\033\n\024RESOURCE_NOT_DELETED\020\274\267\262P\022!\n" - + "\031SCHEMA_VALIDATION_IGNORED\020\312\324\237\203\001\022(\n!SING" - + "LE_INSTANCE_PROPERTY_TEMPLATE\020\321\211\370\177\022\035\n\025UN" - + "DECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n\013UNREACHABLE" - + "\020\264\275\255\006B\007\n\005_codeB\n\n\010_message\"\314\001\n\007RawDisk\022\037" - + "\n\016container_type\030\270\310\202\230\001 \001(\tH\000\210\001\001\022\036\n\rsha1_" - + "checksum\030\275\224\370\225\001 \001(\tH\001\210\001\001\022\026\n\006source\030\233\320\301T \001" - + "(\tH\002\210\001\001\"8\n\rContainerType\022\034\n\030UNDEFINED_CO" - + "NTAINER_TYPE\020\000\022\t\n\003TAR\020\205\207\005B\021\n\017_container_" - + "typeB\020\n\016_sha1_checksumB\t\n\007_source\"\327\002\n,Re" - + "createInstancesInstanceGroupManagerReque" - + "st\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340" - + "A\002\022\223\001\n;instance_group_managers_recreate_" - + "instances_request_resource\030\200\302\232\n \001(\0132F.go" - + "ogle.cloud.compute.v1.InstanceGroupManag" - + "ersRecreateInstancesRequestB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004" - + "zoneB\r\n\013_request_id\"\333\002\n2RecreateInstance" - + "sRegionInstanceGroupManagerRequest\022&\n\026in" - + "stance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" - + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n8region_instan" - + "ce_group_managers_recreate_request_resou" - + "rce\030\224\374\304Q \001(\0132C.google.cloud.compute.v1.R" - + "egionInstanceGroupManagersRecreateReques" - + "tB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" - + "equest_id\"\250\001\n\tReference\022\024\n\004kind\030\224\367\310\001 \001(\t" - + "H\000\210\001\001\022\036\n\016reference_type\030\256\277\203v \001(\tH\001\210\001\001\022\031\n" - + "\010referrer\030\237\370\271\247\001 \001(\tH\002\210\001\001\022\026\n\006target\030\221\343\371[ " - + "\001(\tH\003\210\001\001B\007\n\005_kindB\021\n\017_reference_typeB\013\n\t" - + "_referrerB\t\n\007_target\"\204\005\n\006Region\022\"\n\022creat" - + "ion_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\ndeprecate" - + "d\030\263\313\321\365\001 \001(\0132*.google.cloud.compute.v1.De" - + "precationStatusH\001\210\001\001\022\034\n\013description\030\374\207\326\311" - + "\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022R\n\024quot" - + "a_status_warning\030\366\211\272\220\001 \001(\0132+.google.clou" - + "d.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n\006" - + "quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v" - + "1.Quota\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\026\n\006s" - + "tatus\030\362\237\267V \001(\tH\010\210\001\001\022\034\n\014supports_pzs\030\356\366\205(" - + " \001(\010H\t\210\001\001\022\020\n\005zones\030\307\244\2557 \003(\t\"4\n\006Status\022\024\n" - + "\020UNDEFINED_STATUS\020\000\022\013\n\004DOWN\020\242\271\200\001\022\007\n\002UP\020\233" - + "\025B\025\n\023_creation_timestampB\r\n\013_deprecatedB" - + "\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_name" - + "B\027\n\025_quota_status_warningB\014\n\n_self_linkB" - + "\t\n\007_statusB\017\n\r_supports_pzs\"\210\001\n\032RegionAd" - + "dressesMoveRequest\022\034\n\013description\030\374\207\326\311\001 " - + "\001(\tH\000\210\001\001\022$\n\023destination_address\030\303\261\236\261\001 \001(" - + "\tH\001\210\001\001B\016\n\014_descriptionB\026\n\024_destination_a" - + "ddress\"\253\002\n\024RegionAutoscalerList\022\020\n\002id\030\233\032" - + " \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.google.clo" - + "ud.compute.v1.Autoscaler\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\247\002\n\022RegionD" - + "iskTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300" - + "\317\367/ \003(\0132!.google.cloud.compute.v1.DiskTy" - + "pe\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_to" - + "ken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" - + ".compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kind" - + "B\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_w" - + "arning\"E\n%RegionDisksAddResourcePolicies" - + "Request\022\034\n\021resource_policies\030\341\234\314\n \003(\t\"H\n" - + "(RegionDisksRemoveResourcePoliciesReques" - + "t\022\034\n\021resource_policies\030\341\234\314\n \003(\t\"@\n\030Regio" - + "nDisksResizeRequest\022\030\n\007size_gb\030\331\213\200\354\001 \001(\003" - + "H\000\210\001\001B\n\n\010_size_gb\"h\n\'RegionDisksStartAsy" - + "ncReplicationRequest\022$\n\024async_secondary_" - + "disk\030\253\203\343> \001(\tH\000\210\001\001B\027\n\025_async_secondary_d" - + "isk\"\261\002\n\027RegionInstanceGroupList\022\020\n\002id\030\233\032" - + " \001(\tH\000\210\001\001\0228\n\005items\030\300\317\367/ \003(\0132&.google.clo" - + "ud.compute.v1.InstanceGroup\022\024\n\004kind\030\224\367\310\001" - + " \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210" - + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warnin" - + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" - + "ningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_" - + "tokenB\014\n\n_self_linkB\n\n\010_warning\"E\n1Regio" - + "nInstanceGroupManagerDeleteInstanceConfi" - + "gReq\022\020\n\005names\030\310\256\3571 \003(\t\"\277\002\n\036RegionInstanc" - + "eGroupManagerList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022?\n\005i" - + "tems\030\300\317\367/ \003(\0132-.google.cloud.compute.v1." - + "InstanceGroupManager\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" - + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" - + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " - + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" - + "\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" - + "\n\n_self_linkB\n\n\010_warning\"\200\001\n0RegionInsta" - + "nceGroupManagerPatchInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.google" - + ".cloud.compute.v1.PerInstanceConfig\"\201\001\n1" - + "RegionInstanceGroupManagerUpdateInstance" - + "ConfigReq\022L\n\024per_instance_configs\030\251\325\370\372\001 " - + "\003(\0132*.google.cloud.compute.v1.PerInstanc" - + "eConfig\"J\n2RegionInstanceGroupManagersAb" - + "andonInstancesRequest\022\024\n\tinstances\030\376\374\357\r " - + "\003(\t\"\373\002\n.RegionInstanceGroupManagersApply" - + "UpdatesRequest\022\036\n\rall_instances\030\340\272\276\300\001 \001(" - + "\010H\000\210\001\001\022\024\n\tinstances\030\376\374\357\r \003(\t\022\037\n\016minimal_" - + "action\030\224\215\202\201\001 \001(\tH\001\210\001\001\022.\n\036most_disruptive" - + "_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n\rMinimal" - + "Action\022\034\n\030UNDEFINED_MINIMAL_ACTION\020\000\"K\n\033" - + "MostDisruptiveAllowedAction\022,\n(UNDEFINED" - + "_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000B\020\n\016_al" - + "l_instancesB\021\n\017_minimal_actionB!\n\037_most_" - + "disruptive_allowed_action\"u\n1RegionInsta" - + "nceGroupManagersCreateInstancesRequest\022@" - + "\n\tinstances\030\376\374\357\r \003(\0132*.google.cloud.comp" - + "ute.v1.PerInstanceConfig\"\244\001\n1RegionInsta" - + "nceGroupManagersDeleteInstancesRequest\022\024" - + "\n\tinstances\030\376\374\357\r \003(\t\0222\n\"skip_instances_o" - + "n_validation_error\030\241\366\257\023 \001(\010H\000\210\001\001B%\n#_ski" - + "p_instances_on_validation_error\"\252\001\n-Regi" - + "onInstanceGroupManagersListErrorsRespons" - + "e\022D\n\005items\030\300\317\367/ \003(\01322.google.cloud.compu" - + "te.v1.InstanceManagedByIgmError\022\037\n\017next_" - + "page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page_t" - + "oken\"\356\001\n2RegionInstanceGroupManagersList" - + "InstanceConfigsResp\022<\n\005items\030\300\317\367/ \003(\0132*." - + "google.cloud.compute.v1.PerInstanceConfi" - + "g\022\037\n\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\001\210\001\001B\022\n\020_next_page_tokenB\n\n\010_wa" - + "rning\"\260\001\n0RegionInstanceGroupManagersLis" - + "tInstancesResponse\022G\n\021managed_instances\030" - + "\336\233\251\240\001 \003(\0132(.google.cloud.compute.v1.Mana" - + "gedInstance\022\037\n\017next_page_token\030\225\272\206& \001(\tH" - + "\000\210\001\001B\022\n\020_next_page_token\"B\n*RegionInstan" - + "ceGroupManagersRecreateRequest\022\024\n\tinstan" - + "ces\030\376\374\357\r \003(\t\"y\n0RegionInstanceGroupManag" - + "ersSetTargetPoolsRequest\022\033\n\013fingerprint\030" - + "\344\321\363o \001(\tH\000\210\001\001\022\030\n\014target_pools\030\251\237\240\240\001 \003(\tB" - + "\016\n\014_fingerprint\"i\n-RegionInstanceGroupMa" - + "nagersSetTemplateRequest\022\"\n\021instance_tem" - + "plate\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_instance_templa" - + "te\"\304\002\n!RegionInstanceGroupsListInstances" + + "WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pa" + + "ge_tokenB\014\n\n_self_linkB\n\n\010_warning\"\200\001\n0R" + + "egionInstanceGroupManagerPatchInstanceCo" + + "nfigReq\022L\n\024per_instance_configs\030\251\325\370\372\001 \003(" + + "\0132*.google.cloud.compute.v1.PerInstanceC" + + "onfig\"\201\001\n1RegionInstanceGroupManagerUpda" + + "teInstanceConfigReq\022L\n\024per_instance_conf" + + "igs\030\251\325\370\372\001 \003(\0132*.google.cloud.compute.v1." + + "PerInstanceConfig\"J\n2RegionInstanceGroup" + + "ManagersAbandonInstancesRequest\022\024\n\tinsta" + + "nces\030\376\374\357\r \003(\t\"\373\002\n.RegionInstanceGroupMan" + + "agersApplyUpdatesRequest\022\036\n\rall_instance" + + "s\030\340\272\276\300\001 \001(\010H\000\210\001\001\022\024\n\tinstances\030\376\374\357\r \003(\t\022\037" + + "\n\016minimal_action\030\224\215\202\201\001 \001(\tH\001\210\001\001\022.\n\036most_" + + "disruptive_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"" + + "-\n\rMinimalAction\022\034\n\030UNDEFINED_MINIMAL_AC" + + "TION\020\000\"K\n\033MostDisruptiveAllowedAction\022,\n", + "(UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTIO" + + "N\020\000B\020\n\016_all_instancesB\021\n\017_minimal_action" + + "B!\n\037_most_disruptive_allowed_action\"u\n1R" + + "egionInstanceGroupManagersCreateInstance" + + "sRequest\022@\n\tinstances\030\376\374\357\r \003(\0132*.google." + + "cloud.compute.v1.PerInstanceConfig\"\244\001\n1R" + + "egionInstanceGroupManagersDeleteInstance" + + "sRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\0222\n\"skip_i" + + "nstances_on_validation_error\030\241\366\257\023 \001(\010H\000\210" + + "\001\001B%\n#_skip_instances_on_validation_erro" + + "r\"\252\001\n-RegionInstanceGroupManagersListErr" + + "orsResponse\022D\n\005items\030\300\317\367/ \003(\01322.google.c" + + "loud.compute.v1.InstanceManagedByIgmErro" + + "r\022\037\n\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_n" + + "ext_page_token\"\356\001\n2RegionInstanceGroupMa" + + "nagersListInstanceConfigsResp\022<\n\005items\030\300" + + "\317\367/ \003(\0132*.google.cloud.compute.v1.PerIns" + + "tanceConfig\022\037\n\017next_page_token\030\225\272\206& \001(\tH" + + "\000\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\001\210\001\001B\022\n\020_next_page_to" + + "kenB\n\n\010_warning\"\260\001\n0RegionInstanceGroupM" + + "anagersListInstancesResponse\022G\n\021managed_" + + "instances\030\336\233\251\240\001 \003(\0132(.google.cloud.compu" + + "te.v1.ManagedInstance\022\037\n\017next_page_token" + + "\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page_token\"B\n*Re" + + "gionInstanceGroupManagersRecreateRequest" + + "\022\024\n\tinstances\030\376\374\357\r \003(\t\"I\n1RegionInstance" + + "GroupManagersResumeInstancesRequest\022\024\n\ti" + + "nstances\030\376\374\357\r \003(\t\"y\n0RegionInstanceGroup" + + "ManagersSetTargetPoolsRequest\022\033\n\013fingerp" + + "rint\030\344\321\363o \001(\tH\000\210\001\001\022\030\n\014target_pools\030\251\237\240\240\001" + + " \003(\tB\016\n\014_fingerprint\"i\n-RegionInstanceGr" + + "oupManagersSetTemplateRequest\022\"\n\021instanc" + + "e_template\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_instance_t" + + "emplate\"H\n0RegionInstanceGroupManagersSt" + + "artInstancesRequest\022\024\n\tinstances\030\376\374\357\r \003(" + + "\t\"r\n/RegionInstanceGroupManagersStopInst" + + "ancesRequest\022\032\n\nforce_stop\030\326\241\241@ \001(\010H\000\210\001\001" + + "\022\024\n\tinstances\030\376\374\357\r \003(\tB\r\n\013_force_stop\"{\n" + + "2RegionInstanceGroupManagersSuspendInsta" + + "ncesRequest\022\035\n\rforce_suspend\030\350\355\226\r \001(\010H\000\210" + + "\001\001\022\024\n\tinstances\030\376\374\357\r \003(\tB\020\n\016_force_suspe" + + "nd\"\304\002\n!RegionInstanceGroupsListInstances" + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(\0132/.g" + "oogle.cloud.compute.v1.InstanceWithNamed" + "Ports\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" @@ -14440,8 +14719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rewallPolicyRequest\022 \n\017firewall_policy\030\321" + "\212\306\355\001 \001(\tB\003\340A\002\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001" + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" - + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_", - "id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_reques" + + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" + + "id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_reques" + "t_id\"\264\001\n%RemoveRuleRegionSecurityPolicyR" + "equest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007pro" + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364" @@ -14657,8 +14936,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "icyScheduleH\001\210\001\001\022t\n\023snapshot_properties\030" + "\216\225\262X \001(\0132O.google.cloud.compute.v1.Resou" + "rcePolicySnapshotSchedulePolicySnapshotP" - + "ropertiesH\002\210\001\001B\023\n\021_retention_policyB\013\n\t_" - + "scheduleB\026\n\024_snapshot_properties\"\325\002\n3Res" + + "ropertiesH\002\210\001\001B\023\n\021_retention_policyB\013\n\t_", + "scheduleB\026\n\024_snapshot_properties\"\325\002\n3Res" + "ourcePolicySnapshotSchedulePolicyRetenti" + "onPolicy\022#\n\022max_retention_days\030\223\302\321\232\001 \001(\005" + "H\000\210\001\001\022&\n\025on_source_disk_delete\030\311\315\302\231\001 \001(\t" @@ -14708,8474 +14987,8671 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "anceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340" - + "A\002\362G\004zoneB\r\n\013_request_id\"\305\t\n\005Route\0229\n\010as" - + "_paths\030\241\305\314A \003(\0132$.google.cloud.compute.v" - + "1.RouteAsPath\022\"\n\022creation_timestamp\030\266\217\307\016" - + " \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022" - + "\033\n\ndest_range\030\340\262\352\265\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(" - + "\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\005\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\006\210\001\001\022!\n\020n" - + "ext_hop_gateway\030\202\372\354\263\001 \001(\tH\007\210\001\001\022\034\n\014next_h" - + "op_hub\030\263\265\336^ \001(\tH\010\210\001\001\022\034\n\014next_hop_ilb\030\335\272\336" - + "^ \001(\tH\t\210\001\001\022\"\n\021next_hop_instance\030\227\353\321\273\001 \001(" - + "\tH\n\210\001\001\022\033\n\013next_hop_ip\030\251\257\3154 \001(\tH\013\210\001\001\022 \n\020n" - + "ext_hop_network\030\354\241\211} \001(\tH\014\210\001\001\022!\n\020next_ho" - + "p_peering\030\376\223\344\304\001 \001(\tH\r\210\001\001\022$\n\023next_hop_vpn" - + "_tunnel\030\225\345\360\367\001 \001(\tH\016\210\001\001\022\031\n\010priority\030\244\363\241\324\001" - + " \001(\rH\017\210\001\001\022\035\n\014route_status\030\250\315\262\307\001 \001(\tH\020\210\001\001" - + "\022\033\n\nroute_type\030\360\266\236\263\001 \001(\tH\021\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\017\n\004tags\030\231\350\330\001 \003(\t\0227\n\010wa" - + "rnings\030\327\210\301\355\001 \003(\0132!.google.cloud.compute." - + "v1.Warnings\"l\n\013RouteStatus\022\032\n\026UNDEFINED_" - + "ROUTE_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\017\n\007DROPPE" - + "D\020\240\347\317\354\001\022\020\n\010INACTIVE\020\353\230\371\200\001\022\016\n\007PENDING\020\367\252\360" - + "\020\"`\n\tRouteType\022\030\n\024UNDEFINED_ROUTE_TYPE\020\000" - + "\022\t\n\003BGP\020\253\201\004\022\016\n\006STATIC\020\356\204\203\223\001\022\016\n\006SUBNET\020\335\356" - + "\274\223\001\022\016\n\007TRANSIT\020\263\203\306YB\025\n\023_creation_timesta" - + "mpB\016\n\014_descriptionB\r\n\013_dest_rangeB\005\n\003_id" - + "B\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\023\n\021_next_" - + "hop_gatewayB\017\n\r_next_hop_hubB\017\n\r_next_ho" - + "p_ilbB\024\n\022_next_hop_instanceB\016\n\014_next_hop" - + "_ipB\023\n\021_next_hop_networkB\023\n\021_next_hop_pe" - + "eringB\026\n\024_next_hop_vpn_tunnelB\013\n\t_priori" - + "tyB\017\n\r_route_statusB\r\n\013_route_typeB\014\n\n_s" - + "elf_link\"\347\001\n\013RouteAsPath\022\023\n\010as_lists\030\310\312\371" - + "? \003(\r\022\"\n\021path_segment_type\030\240\265\353\364\001 \001(\tH\000\210\001" - + "\001\"\210\001\n\017PathSegmentType\022\037\n\033UNDEFINED_PATH_" - + "SEGMENT_TYPE\020\000\022\031\n\022AS_CONFED_SEQUENCE\020\260\217\367" - + "i\022\025\n\rAS_CONFED_SET\020\363\315\255\262\001\022\022\n\013AS_SEQUENCE\020" - + "\256\322\3622\022\016\n\006AS_SET\020\265\235\244\235\001B\024\n\022_path_segment_ty" - + "pe\"\233\002\n\tRouteList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0220\n\005it" - + "ems\030\300\317\367/ \003(\0132\036.google.cloud.compute.v1.R" - + "oute\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_" - + "token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001" - + "(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" - + "ud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_ki" - + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" - + "_warning\"\332\005\n\006Router\0226\n\003bgp\030\313\371\005 \001(\0132\".goo" - + "gle.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n\tb" - + "gp_peers\030\335\255\356\327\001 \003(\0132&.google.cloud.comput" - + "e.v1.RouterBgpPeer\022\"\n\022creation_timestamp" - + "\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH" - + "\002\210\001\001\022.\n\035encrypted_interconnect_router\030\237\242" - + "\214\216\001 \001(\010H\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022?\n\ninterf" - + "aces\030\332\364\340\005 \003(\0132(.google.cloud.compute.v1." - + "RouterInterface\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n" - + "\027md5_authentication_keys\030\232\256\361! \003(\01323.goog" - + "le.cloud.compute.v1.RouterMd5Authenticat" - + "ionKey\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n\004nats\030\362\366\315" - + "\001 \003(\0132\".google.cloud.compute.v1.RouterNa" - + "t\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n\006region\030\364\315\240" - + "B \001(\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001B\006" - + "\n\004_bgpB\025\n\023_creation_timestampB\016\n\014_descri" - + "ptionB \n\036_encrypted_interconnect_routerB" - + "\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n\n\010_networkB\t\n\007" - + "_regionB\014\n\n_self_link\"h\n\027RouterAdvertise" - + "dIpRange\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\025" - + "\n\005range\030\275\362\3203 \001(\tH\001\210\001\001B\016\n\014_descriptionB\010\n" - + "\006_range\"\263\003\n\024RouterAggregatedList\022\020\n\002id\030\233" - + "\032 \001(\tH\000\210\001\001\022J\n\005items\030\300\317\367/ \003(\01328.google.cl" - + "oud.compute.v1.RouterAggregatedList.Item" - + "sEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" - + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" - + " \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\004\210\001\001\032X\n\nItemsEntry\022\013\n\003key\030\001 \001(\t" - + "\0229\n\005value\030\002 \001(\0132*.google.cloud.compute.v" - + "1.RoutersScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB" - + "\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_wa" - + "rning\"\330\003\n\tRouterBgp\022\037\n\016advertise_mode\030\273\225" - + "\353\224\001 \001(\tH\000\210\001\001\022\034\n\021advertised_groups\030\266\336\205\n \003" - + "(\t\022Q\n\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.go" - + "ogle.cloud.compute.v1.RouterAdvertisedIp" - + "Range\022\022\n\003asn\030\374\364\005 \001(\rH\001\210\001\001\022!\n\020identifier_" - + "range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n\022keepalive_interv" - + "al\030\274\345\374\203\001 \001(\rH\003\210\001\001\"M\n\rAdvertiseMode\022\034\n\030UN" - + "DEFINED_ADVERTISE_MODE\020\000\022\016\n\006CUSTOM\020\361\376\245\271\001" - + "\022\016\n\007DEFAULT\020\241\304\3756\"G\n\020AdvertisedGroups\022\037\n\033" - + "UNDEFINED_ADVERTISED_GROUPS\020\000\022\022\n\013ALL_SUB" - + "NETS\020\330\217\335\001B\021\n\017_advertise_modeB\006\n\004_asnB\023\n\021" - + "_identifier_rangeB\025\n\023_keepalive_interval" - + "\"\245\r\n\rRouterBgpPeer\022\037\n\016advertise_mode\030\273\225\353" - + "\224\001 \001(\tH\000\210\001\001\022\034\n\021advertised_groups\030\266\336\205\n \003(" - + "\t\022Q\n\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.goo" - + "gle.cloud.compute.v1.RouterAdvertisedIpR" - + "ange\022)\n\031advertised_route_priority\030\274\234\366X \001" - + "(\rH\001\210\001\001\022=\n\003bfd\030\240\371\005 \001(\0132).google.cloud.co" - + "mpute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n\030custom" - + "_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.google.cl" - + "oud.compute.v1.RouterBgpPeerCustomLearne" - + "dIpRange\022.\n\035custom_learned_route_priorit" - + "y\030\304\342\306\235\001 \001(\005H\003\210\001\001\022\027\n\006enable\030\203\313\324\224\001 \001(\tH\004\210\001" - + "\001\022\033\n\013enable_ipv4\030\241\366\303V \001(\010H\005\210\001\001\022\033\n\013enable" - + "_ipv6\030\243\366\303V \001(\010H\006\210\001\001\022\032\n\017export_policies\030\373" - + "\362\367? \003(\t\022\033\n\017import_policies\030\252\361\217\327\001 \003(\t\022\037\n\016" - + "interface_name\030\321\303\344\320\001 \001(\tH\007\210\001\001\022\033\n\nip_addr" - + "ess\030\334\361\334\301\001 \001(\tH\010\210\001\001\022$\n\024ipv4_nexthop_addre" - + "ss\030\321\215\334\002 \001(\tH\t\210\001\001\022$\n\024ipv6_nexthop_address" - + "\030\323\205\253\r \001(\tH\n\210\001\001\022\037\n\017management_type\030\266\203\352R \001" - + "(\tH\013\210\001\001\022,\n\033md5_authentication_key_name\030\221" - + "\275\203\206\001 \001(\tH\014\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\r\210\001\001\022\030\n\010p" - + "eer_asn\030\237\264\226! \001(\rH\016\210\001\001\022\037\n\017peer_ip_address" - + "\030\331\227\207c \001(\tH\017\210\001\001\022*\n\031peer_ipv4_nexthop_addr" - + "ess\030\216\203\337\337\001 \001(\tH\020\210\001\001\022*\n\031peer_ipv6_nexthop_" - + "address\030\220\373\255\352\001 \001(\tH\021\210\001\001\022*\n\031router_applian" - + "ce_instance\030\235\307\247\337\001 \001(\tH\022\210\001\001\"M\n\rAdvertiseM" - + "ode\022\034\n\030UNDEFINED_ADVERTISE_MODE\020\000\022\016\n\006CUS" - + "TOM\020\361\376\245\271\001\022\016\n\007DEFAULT\020\241\304\3756\"G\n\020AdvertisedG" - + "roups\022\037\n\033UNDEFINED_ADVERTISED_GROUPS\020\000\022\022" - + "\n\013ALL_SUBNETS\020\330\217\335\001\"9\n\006Enable\022\024\n\020UNDEFINE" - + "D_ENABLE\020\000\022\014\n\005FALSE\020\203\302\344\037\022\013\n\004TRUE\020\216\333\235\001\"g\n" - + "\016ManagementType\022\035\n\031UNDEFINED_MANAGEMENT_" - + "TYPE\020\000\022\035\n\025MANAGED_BY_ATTACHMENT\020\313\322\352\332\001\022\027\n" - + "\017MANAGED_BY_USER\020\363\213\246\227\001B\021\n\017_advertise_mod" - + "eB\034\n\032_advertised_route_priorityB\006\n\004_bfdB" - + " \n\036_custom_learned_route_priorityB\t\n\007_en" - + "ableB\016\n\014_enable_ipv4B\016\n\014_enable_ipv6B\021\n\017" - + "_interface_nameB\r\n\013_ip_addressB\027\n\025_ipv4_" - + "nexthop_addressB\027\n\025_ipv6_nexthop_address" - + "B\022\n\020_management_typeB\036\n\034_md5_authenticat" - + "ion_key_nameB\007\n\005_nameB\013\n\t_peer_asnB\022\n\020_p" - + "eer_ip_addressB\034\n\032_peer_ipv4_nexthop_add" - + "ressB\034\n\032_peer_ipv6_nexthop_addressB\034\n\032_r" - + "outer_appliance_instance\"\206\003\n\020RouterBgpPe" - + "erBfd\022$\n\024min_receive_interval\030\356\271\224Y \001(\rH\000" - + "\210\001\001\022&\n\025min_transmit_interval\030\307\321\302\371\001 \001(\rH\001", - "\210\001\001\022\032\n\nmultiplier\030\301\373\235[ \001(\rH\002\210\001\001\022+\n\033sessi" - + "on_initialization_mode\030\271\215\3032 \001(\tH\003\210\001\001\"y\n\031" - + "SessionInitializationMode\022)\n%UNDEFINED_S" - + "ESSION_INITIALIZATION_MODE\020\000\022\016\n\006ACTIVE\020\206" - + "\346\211\226\001\022\020\n\010DISABLED\020\374\324\260\366\001\022\017\n\007PASSIVE\020\207\366\327\334\001B" - + "\027\n\025_min_receive_intervalB\030\n\026_min_transmi" - + "t_intervalB\r\n\013_multiplierB\036\n\034_session_in" - + "itialization_mode\"D\n!RouterBgpPeerCustom" - + "LearnedIpRange\022\025\n\005range\030\275\362\3203 \001(\tH\000\210\001\001B\010\n" - + "\006_range\"\225\005\n\017RouterInterface\022\030\n\010ip_range\030" - + "\245\340\227E \001(\tH\000\210\001\001\022\033\n\nip_version\030\300\363\322\214\001 \001(\tH\001\210" - + "\001\001\022/\n\036linked_interconnect_attachment\030\316\352\367" - + "\356\001 \001(\tH\002\210\001\001\022\"\n\021linked_vpn_tunnel\030\371\277\376\247\001 \001" - + "(\tH\003\210\001\001\022\037\n\017management_type\030\266\203\352R \001(\tH\004\210\001\001" - + "\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\"\n\022private_ip_add" - + "ress\030\230\322\2130 \001(\tH\006\210\001\001\022$\n\023redundant_interfac" - + "e\030\347\350\274\371\001 \001(\tH\007\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\t" - + "H\010\210\001\001\"?\n\tIpVersion\022\030\n\024UNDEFINED_IP_VERSI" - + "ON\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\"g\n\016Manage" - + "mentType\022\035\n\031UNDEFINED_MANAGEMENT_TYPE\020\000\022" - + "\035\n\025MANAGED_BY_ATTACHMENT\020\313\322\352\332\001\022\027\n\017MANAGE" - + "D_BY_USER\020\363\213\246\227\001B\013\n\t_ip_rangeB\r\n\013_ip_vers" - + "ionB!\n\037_linked_interconnect_attachmentB\024" - + "\n\022_linked_vpn_tunnelB\022\n\020_management_type" - + "B\007\n\005_nameB\025\n\023_private_ip_addressB\026\n\024_red" - + "undant_interfaceB\r\n\013_subnetwork\"\235\002\n\nRout" - + "erList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0221\n\005items\030\300\317\367/ \003" - + "(\0132\037.google.cloud.compute.v1.Router\022\024\n\004k" - + "ind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206" - + "& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229" - + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" - + "e.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_ne" - + "xt_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"" - + "W\n\032RouterMd5AuthenticationKey\022\022\n\003key\030\337\274\006" - + " \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\006\n\004_keyB" - + "\007\n\005_name\"\353\016\n\tRouterNat\022\"\n\021auto_network_t" - + "ier\030\343\273\321\200\001 \001(\tH\000\210\001\001\022\031\n\rdrain_nat_ips\030\307\301\256\360" - + "\001 \003(\t\022/\n\036enable_dynamic_port_allocation\030" - + "\242\231\335\375\001 \001(\010H\001\210\001\001\0223\n#enable_endpoint_indepe" - + "ndent_mapping\030\233\211\333{ \001(\010H\002\210\001\001\022\032\n\016endpoint_" - + "types\030\317\252\326\357\001 \003(\t\022%\n\025icmp_idle_timeout_sec" - + "\030\312\320\336\001 \001(\005H\003\210\001\001\022H\n\nlog_config\030\235\321\301\247\001 \001(\0132+" - + ".google.cloud.compute.v1.RouterNatLogCon" - + "figH\004\210\001\001\022 \n\020max_ports_per_vm\030\341\311\236w \001(\005H\005\210" - + "\001\001\022 \n\020min_ports_per_vm\030\263\255\344X \001(\005H\006\210\001\001\022\024\n\004" - + "name\030\213\365\315\001 \001(\tH\007\210\001\001\022\'\n\026nat_ip_allocate_op" - + "tion\030\375\270\364\314\001 \001(\tH\010\210\001\001\022\022\n\007nat_ips\030\216\360\2138 \003(\t\022" - + "8\n\005rules\030\367\221\3653 \003(\0132&.google.cloud.compute" - + ".v1.RouterNatRule\0222\n\"source_subnetwork_i" - + "p_ranges_to_nat\030\333\357\241x \001(\tH\t\210\001\001\022J\n\013subnetw" - + "orks\030\305\324\245\306\001 \003(\01321.google.cloud.compute.v1" - + ".RouterNatSubnetworkToNat\0220\n tcp_establi" - + "shed_idle_timeout_sec\030\355\353\260j \001(\005H\n\210\001\001\022*\n\031t" - + "cp_time_wait_timeout_sec\030\375\273\363\364\001 \001(\005H\013\210\001\001\022" - + "/\n\037tcp_transitory_idle_timeout_sec\030\246\373\341a " - + "\001(\005H\014\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\r\210\001\001\022$\n\024udp_id" - + "le_timeout_sec\030\306\262\372\036 \001(\005H\016\210\001\001\"\230\001\n\017AutoNet" - + "workTier\022\037\n\033UNDEFINED_AUTO_NETWORK_TIER\020" - + "\000\022\026\n\016FIXED_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301" - + "\276\001\022\020\n\010STANDARD\020\275\235\214\347\001\022)\n!STANDARD_OVERRID" - + "ES_FIXED_STANDARD\020\302\207\221\336\001\"\210\001\n\rEndpointType" - + "s\022\034\n\030UNDEFINED_ENDPOINT_TYPES\020\000\022&\n\036ENDPO" - + "INT_TYPE_MANAGED_PROXY_LB\020\202\272\266\321\001\022\030\n\021ENDPO" - + "INT_TYPE_SWG\020\310\316\375K\022\027\n\020ENDPOINT_TYPE_VM\020\262\352" - + "\234\033\"a\n\023NatIpAllocateOption\022$\n UNDEFINED_N" - + "AT_IP_ALLOCATE_OPTION\020\000\022\020\n\tAUTO_ONLY\020\274\340\370" - + "V\022\022\n\013MANUAL_ONLY\020\205\301\311|\"\302\001\n\035SourceSubnetwo" - + "rkIpRangesToNat\0220\n,UNDEFINED_SOURCE_SUBN" - + "ETWORK_IP_RANGES_TO_NAT\020\000\022$\n\035ALL_SUBNETW" - + "ORKS_ALL_IP_RANGES\020\330\223\350U\022,\n%ALL_SUBNETWOR" - + "KS_ALL_PRIMARY_IP_RANGES\020\273\303\276X\022\033\n\023LIST_OF" - + "_SUBNETWORKS\020\376\242\344\366\001\":\n\004Type\022\022\n\016UNDEFINED_" - + "TYPE\020\000\022\017\n\007PRIVATE\020\343\342\262\300\001\022\r\n\006PUBLIC\020\351\314\302jB\024" - + "\n\022_auto_network_tierB!\n\037_enable_dynamic_" - + "port_allocationB&\n$_enable_endpoint_inde" - + "pendent_mappingB\030\n\026_icmp_idle_timeout_se" - + "cB\r\n\013_log_configB\023\n\021_max_ports_per_vmB\023\n" - + "\021_min_ports_per_vmB\007\n\005_nameB\031\n\027_nat_ip_a" - + "llocate_optionB%\n#_source_subnetwork_ip_" - + "ranges_to_natB#\n!_tcp_established_idle_t" - + "imeout_secB\034\n\032_tcp_time_wait_timeout_sec" - + "B\"\n _tcp_transitory_idle_timeout_secB\007\n\005" - + "_typeB\027\n\025_udp_idle_timeout_sec\"\267\001\n\022Route" - + "rNatLogConfig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022\027" - + "\n\006filter\030\370\226\243\240\001 \001(\tH\001\210\001\001\"Y\n\006Filter\022\024\n\020UND" - + "EFINED_FILTER\020\000\022\t\n\003ALL\020\201\373\003\022\023\n\013ERRORS_ONL" - + "Y\020\200\260\317\222\001\022\031\n\021TRANSLATIONS_ONLY\020\351\303\252\252\001B\t\n\007_e" - + "nableB\t\n\007_filter\"\335\001\n\rRouterNatRule\022D\n\006ac" - + "tion\030\266\374\275Y \001(\0132,.google.cloud.compute.v1." - + "RouterNatRuleActionH\000\210\001\001\022\034\n\013description\030" - + "\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" - + "\013rule_number\030\354\333\232\377\001 \001(\rH\003\210\001\001B\t\n\007_actionB\016" - + "\n\014_descriptionB\010\n\006_matchB\016\n\014_rule_number" - + "\"\242\001\n\023RouterNatRuleAction\022 \n\025source_nat_a" - + "ctive_ips\030\365\273\250d \003(\t\022#\n\030source_nat_active_" - + "ranges\030\355\320\356Z \003(\t\022 \n\024source_nat_drain_ips\030" - + "\243\305\301\242\001 \003(\t\022\"\n\027source_nat_drain_ranges\030\377\371\267" - + "( \003(\t\"\226\002\n\030RouterNatSubnetworkToNat\022\024\n\004na" - + "me\030\213\365\315\001 \001(\tH\000\210\001\001\022#\n\030secondary_ip_range_n" - + "ames\030\331\301\204~ \003(\t\022#\n\027source_ip_ranges_to_nat" - + "\030\362\312\224\271\001 \003(\t\"\220\001\n\023SourceIpRangesToNat\022%\n!UN" - + "DEFINED_SOURCE_IP_RANGES_TO_NAT\020\000\022\024\n\rALL" - + "_IP_RANGES\020\260\257\375\020\022\"\n\033LIST_OF_SECONDARY_IP_" - + "RANGES\020\234\264\330[\022\030\n\020PRIMARY_IP_RANGE\020\302\223\326\215\001B\007\n" - + "\005_name\"\306\002\n\014RouterStatus\0227\n\013best_routes\030\205" - + "\254\337\274\001 \003(\0132\036.google.cloud.compute.v1.Route" - + "\022A\n\026best_routes_for_router\030\371\373\3668 \003(\0132\036.go" - + "ogle.cloud.compute.v1.Route\022N\n\017bgp_peer_" - + "status\030\373\327\225h \003(\01322.google.cloud.compute.v" - + "1.RouterStatusBgpPeerStatus\022E\n\nnat_statu" - + "s\030\320\231\213\036 \003(\0132..google.cloud.compute.v1.Rou" - + "terStatusNatStatus\022\027\n\007network\030\256\264\205o \001(\tH\000" - + "\210\001\001B\n\n\010_network\"\351\n\n\031RouterStatusBgpPeerS" - + "tatus\022=\n\021advertised_routes\030\254\331\374\236\001 \003(\0132\036.g" - + "oogle.cloud.compute.v1.Route\022?\n\nbfd_stat" - + "us\030\361\270\323\274\001 \001(\0132\".google.cloud.compute.v1.B" - + "fdStatusH\000\210\001\001\022\033\n\013enable_ipv4\030\241\366\303V \001(\010H\001\210" - + "\001\001\022\033\n\013enable_ipv6\030\243\366\303V \001(\010H\002\210\001\001\022\033\n\nip_ad" - + "dress\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n\024ipv4_nexthop_add" - + "ress\030\321\215\334\002 \001(\tH\004\210\001\001\022$\n\024ipv6_nexthop_addre" - + "ss\030\323\205\253\r \001(\tH\005\210\001\001\022\"\n\021linked_vpn_tunnel\030\371\277" - + "\376\247\001 \001(\tH\006\210\001\001\022!\n\020md5_auth_enabled\030\313\221\220\327\001 \001" - + "(\010H\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\"\n\022num_lea" - + "rned_routes\030\377\325\313@ \001(\rH\t\210\001\001\022\037\n\017peer_ip_add" - + "ress\030\331\227\207c \001(\tH\n\210\001\001\022*\n\031peer_ipv4_nexthop_" - + "address\030\216\203\337\337\001 \001(\tH\013\210\001\001\022*\n\031peer_ipv6_next" - + "hop_address\030\220\373\255\352\001 \001(\tH\014\210\001\001\022*\n\031router_app" - + "liance_instance\030\235\307\247\337\001 \001(\tH\r\210\001\001\022\025\n\005state\030" - + "\221\211\2534 \001(\tH\016\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\017\210\001\001\022\036\n" - + "\rstatus_reason\030\261\226\265\243\001 \001(\tH\020\210\001\001\022\026\n\006uptime\030" - + "\350\267\236p \001(\tH\021\210\001\001\022\036\n\016uptime_seconds\030\250\312\3701 \001(\t" - + "H\022\210\001\001\"E\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\013\n" - + "\004DOWN\020\242\271\200\001\022\017\n\007UNKNOWN\020\252\360\304\316\001\022\007\n\002UP\020\233\025\"\306\001\n" - + "\014StatusReason\022\033\n\027UNDEFINED_STATUS_REASON" - + "\020\000\022)\n!IPV4_PEER_ON_IPV6_ONLY_CONNECTION\020" - + "\226\273\357\317\001\022)\n!IPV6_PEER_ON_IPV4_ONLY_CONNECTI" - + "ON\020\322\361\205\320\001\022 \n\031MD5_AUTH_INTERNAL_PROBLEM\020\263\221" - + "\375B\022!\n\031STATUS_REASON_UNSPECIFIED\020\211\216\204\274\001B\r\n" - + "\013_bfd_statusB\016\n\014_enable_ipv4B\016\n\014_enable_" - + "ipv6B\r\n\013_ip_addressB\027\n\025_ipv4_nexthop_add" - + "ressB\027\n\025_ipv6_nexthop_addressB\024\n\022_linked" - + "_vpn_tunnelB\023\n\021_md5_auth_enabledB\007\n\005_nam" - + "eB\025\n\023_num_learned_routesB\022\n\020_peer_ip_add" - + "ressB\034\n\032_peer_ipv4_nexthop_addressB\034\n\032_p" - + "eer_ipv6_nexthop_addressB\034\n\032_router_appl" - + "iance_instanceB\010\n\006_stateB\t\n\007_statusB\020\n\016_" - + "status_reasonB\t\n\007_uptimeB\021\n\017_uptime_seco" - + "nds\"\367\003\n\025RouterStatusNatStatus\022\"\n\026auto_al" - + "located_nat_ips\030\206\264\310\363\001 \003(\t\022(\n\034drain_auto_" - + "allocated_nat_ips\030\255\220\267\223\001 \003(\t\022(\n\034drain_use" - + "r_allocated_nat_ips\030\311\216\310\221\001 \003(\t\022)\n\030min_ext" - + "ra_nat_ips_needed\030\342\351\265\256\001 \001(\005H\000\210\001\001\022\024\n\004name" - + "\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n\"num_vm_endpoints_with_" - + "nat_mappings\030\354\266\250\364\001 \001(\005H\002\210\001\001\022S\n\013rule_stat" - + "us\030\225\305\356B \003(\0132;.google.cloud.compute.v1.Ro" - + "uterStatusNatStatusNatRuleStatus\022*\n\037user" - + "_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n\026" - + "user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n\031_min" - + "_extra_nat_ips_neededB\007\n\005_nameB%\n#_num_v" - + "m_endpoints_with_nat_mappings\"\244\002\n\"Router" - + "StatusNatStatusNatRuleStatus\022\031\n\016active_n" - + "at_ips\030\325\357\266c \003(\t\022\031\n\rdrain_nat_ips\030\307\301\256\360\001 \003" - + "(\t\022%\n\024min_extra_ips_needed\030\204\312\251\250\001 \001(\005H\000\210\001" - + "\001\0223\n\"num_vm_endpoints_with_nat_mappings\030" - + "\354\266\250\364\001 \001(\005H\001\210\001\001\022\034\n\013rule_number\030\354\333\232\377\001 \001(\005H" - + "\002\210\001\001B\027\n\025_min_extra_ips_neededB%\n#_num_vm" - + "_endpoints_with_nat_mappingsB\016\n\014_rule_nu" - + "mber\"\177\n\024RouterStatusResponse\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\000\210\001\001\022=\n\006result\030\235\220\267B \001(\0132%.google.c" - + "loud.compute.v1.RouterStatusH\001\210\001\001B\007\n\005_ki" - + "ndB\t\n\007_result\"`\n\026RoutersPreviewResponse\022" - + "9\n\010resource\030\216\210\257] \001(\0132\037.google.cloud.comp" - + "ute.v1.RouterH\000\210\001\001B\013\n\t_resource\"\220\001\n\021Rout" - + "ersScopedList\0224\n\007routers\030\312\244\335\224\001 \003(\0132\037.goo" - + "gle.cloud.compute.v1.Router\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\000\210\001\001B\n\n\010_warning\"\330\003\n\016SSLHealthCheck\022\024\n" - + "\004port\030\201\261\322\001 \001(\005H\000\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(" - + "\tH\001\210\001\001\022\"\n\022port_specification\030\305\353\314\030 \001(\tH\002\210" - + "\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\003\210\001\001\022\027\n\007requ" - + "est\030\217\345\273\n \001(\tH\004\210\001\001\022\030\n\010response\030\301\250\334] \001(\tH\005" - + "\210\001\001\"~\n\021PortSpecification\022 \n\034UNDEFINED_PO" - + "RT_SPECIFICATION\020\000\022\025\n\016USE_FIXED_PORT\020\344\210\333" - + "Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_SERVING" - + "_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_" - + "PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020" - + "\254\244\267\237\001B\007\n\005_portB\014\n\n_port_nameB\025\n\023_port_sp" - + "ecificationB\017\n\r_proxy_headerB\n\n\010_request" - + "B\013\n\t_response\"\217\010\n\021SavedAttachedDisk\022\034\n\013a" - + "uto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n\004boot\030\362\365\270\001 \001" - + "(\010H\001\210\001\001\022\033\n\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022T\n\023" - + "disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.c" - + "loud.compute.v1.CustomerEncryptionKeyH\003\210" - + "\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n\tdis" - + "k_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n\021guest_os_feature" - + "s\030\321\340\347% \003(\0132\'.google.cloud.compute.v1.Gue" - + "stOsFeature\022\025\n\005index\030\322\321\354/ \001(\005H\006\210\001\001\022\032\n\tin" - + "terface\030\271\332\325\357\001 \001(\tH\007\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\010\210\001\001\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022\024\n\004mode\030\243\363\314\001 " - + "\001(\tH\t\210\001\001\022\026\n\006source\030\233\320\301T \001(\tH\n\210\001\001\022\036\n\rstor" - + "age_bytes\030\247\273\275\312\001 \001(\003H\013\210\001\001\022%\n\024storage_byte" - + "s_status\030\212\253\200\352\001 \001(\tH\014\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\t" - + "H\r\210\001\001\">\n\tInterface\022\027\n\023UNDEFINED_INTERFAC" - + "E\020\000\022\013\n\004NVME\020\340\202\223\001\022\013\n\004SCSI\020\246\201\233\001\"?\n\004Mode\022\022\n" - + "\016UNDEFINED_MODE\020\000\022\020\n\tREAD_ONLY\020\265\231\354+\022\021\n\nR" - + "EAD_WRITE\020\326\227\344R\"]\n\022StorageBytesStatus\022\"\n\036" - + "UNDEFINED_STORAGE_BYTES_STATUS\020\000\022\020\n\010UPDA" - + "TING\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470\"?\n\004Type\022\022\n" - + "\016UNDEFINED_TYPE\020\000\022\022\n\nPERSISTENT\020\227\365\325\333\001\022\017\n" - + "\007SCRATCH\020\332\375\360\354\001B\016\n\014_auto_deleteB\007\n\005_bootB" - + "\016\n\014_device_nameB\026\n\024_disk_encryption_keyB" - + "\017\n\r_disk_size_gbB\014\n\n_disk_typeB\010\n\006_index" - + "B\014\n\n_interfaceB\007\n\005_kindB\007\n\005_modeB\t\n\007_sou" - + "rceB\020\n\016_storage_bytesB\027\n\025_storage_bytes_" - + "statusB\007\n\005_type\"\305\003\n\tSavedDisk\022\035\n\014archite" - + "cture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" - + "\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\002\210\001\001\022\036\n\rstor" - + "age_bytes\030\247\273\275\312\001 \001(\003H\003\210\001\001\022%\n\024storage_byte" - + "s_status\030\212\253\200\352\001 \001(\tH\004\210\001\001\"j\n\014Architecture\022" - + "\032\n\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030ARCHITECT" - + "URE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X" - + "86_64\020\307\244\346\312\001\"]\n\022StorageBytesStatus\022\"\n\036UND" - + "EFINED_STORAGE_BYTES_STATUS\020\000\022\020\n\010UPDATIN" - + "G\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470B\017\n\r_architect" - + "ureB\007\n\005_kindB\016\n\014_source_diskB\020\n\016_storage" - + "_bytesB\027\n\025_storage_bytes_status\"\201\002\n\025Scal" - + "ingScheduleStatus\022\037\n\017last_start_time\030\323\273\274" - + "\020 \001(\tH\000\210\001\001\022\037\n\017next_start_time\030\326\362\260. \001(\tH\001" - + "\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\002\210\001\001\"]\n\005State\022\023\n\017U" - + "NDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\010DISA" - + "BLED\020\374\324\260\366\001\022\017\n\010OBSOLETE\020\231\353\334\037\022\014\n\005READY\020\203\303\217" - + "%B\022\n\020_last_start_timeB\022\n\020_next_start_tim" - + "eB\010\n\006_state\"\356\t\n\nScheduling\022\"\n\021automatic_" - + "restart\030\373\267\244\247\001 \001(\010H\000\210\001\001\022#\n\023availability_d" - + "omain\030\250\240\264x \001(\005H\001\210\001\001\022+\n\033instance_terminat" - + "ion_action\030\273\377\2313 \001(\tH\002\210\001\001\022M\n\032local_ssd_re" - + "covery_timeout\030\346\257\346\177 \001(\0132!.google.cloud.c" - + "ompute.v1.DurationH\003\210\001\001\022\036\n\rlocation_hint" - + "\030\321\201\222\247\001 \001(\tH\004\210\001\001\022D\n\020max_run_duration\030\303\257\270\315" - + "\001 \001(\0132!.google.cloud.compute.v1.Duration" - + "H\005\210\001\001\022\036\n\rmin_node_cpus\030\273\244\242\227\001 \001(\005H\006\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001 \003(\0132/.google.clou" - + "d.compute.v1.SchedulingNodeAffinity\022#\n\023o" - + "n_host_maintenance\030\334\362\347\036 \001(\tH\007\210\001\001\022a\n\027on_i" - + "nstance_stop_action\030\311\215\325\374\001 \001(\01327.google.c" - + "loud.compute.v1.SchedulingOnInstanceStop" - + "ActionH\010\210\001\001\022\034\n\013preemptible\030\241\345\313\232\001 \001(\010H\t\210\001" - + "\001\022!\n\022provisioning_model\030\327\226\036 \001(\tH\n\210\001\001\022!\n\020" - + "termination_time\030\250\216\220\314\001 \001(\tH\013\210\001\001\"\223\001\n\031Inst" - + "anceTerminationAction\022)\n%UNDEFINED_INSTA" - + "NCE_TERMINATION_ACTION\020\000\022\016\n\006DELETE\020\253\363\345\277\001" - + "\022.\n\'INSTANCE_TERMINATION_ACTION_UNSPECIF" - + "IED\020\263\301\251,\022\013\n\004STOP\020\202\200\234\001\"Y\n\021OnHostMaintenan" - + "ce\022!\n\035UNDEFINED_ON_HOST_MAINTENANCE\020\000\022\016\n" - + "\007MIGRATE\020\213\303\201O\022\021\n\tTERMINATE\020\301\234\313\373\001\"T\n\021Prov" - + "isioningModel\022 \n\034UNDEFINED_PROVISIONING_" - + "MODEL\020\000\022\013\n\004SPOT\020\202\342\233\001\022\020\n\010STANDARD\020\275\235\214\347\001B\024" - + "\n\022_automatic_restartB\026\n\024_availability_do" - + "mainB\036\n\034_instance_termination_actionB\035\n\033" - + "_local_ssd_recovery_timeoutB\020\n\016_location" - + "_hintB\023\n\021_max_run_durationB\020\n\016_min_node_" - + "cpusB\026\n\024_on_host_maintenanceB\032\n\030_on_inst" - + "ance_stop_actionB\016\n\014_preemptibleB\025\n\023_pro" - + "visioning_modelB\023\n\021_termination_time\"\307\001\n" - + "\026SchedulingNodeAffinity\022\022\n\003key\030\337\274\006 \001(\tH\000" - + "\210\001\001\022\030\n\010operator\030\244\321\250\021 \001(\tH\001\210\001\001\022\021\n\006values\030" - + "\242\272\226w \003(\t\"W\n\010Operator\022\026\n\022UNDEFINED_OPERAT" - + "OR\020\000\022\007\n\002IN\020\245\022\022\r\n\006NOT_IN\020\261\274\353L\022\033\n\024OPERATOR" - + "_UNSPECIFIED\020\374\377\272=B\006\n\004_keyB\013\n\t_operator\"Z" - + "\n\036SchedulingOnInstanceStopAction\022\"\n\021disc" - + "ard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001B\024\n\022_discard" - + "_local_ssd\"3\n\014ScratchDisks\022\027\n\007disk_gb\030\275\305" - + "\212\035 \001(\005H\000\210\001\001B\n\n\010_disk_gb\"S\n\nScreenshot\022\031\n" - + "\010contents\030\232\266\275\361\001 \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001B\013\n\t_contentsB\007\n\005_kind\"\357\003\n\036Securit" - + "yPoliciesAggregatedList\022\024\n\004etag\030\225\322\276\001 \001(\t" - + "H\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022T\n\005items\030\300\317\367/ \003(" - + "\0132B.google.cloud.compute.v1.SecurityPoli" - + "ciesAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367" - + "\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" - + "\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unre" - + "achables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" - + "ItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323" - + ".google.cloud.compute.v1.SecurityPolicie" - + "sScopedList:\0028\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kind" - + "B\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_w" - + "arning\"\277\001\n7SecurityPoliciesListPreconfig" - + "uredExpressionSetsResponse\022b\n\035preconfigu" - + "red_expression_sets\030\372\214\327\377\001 \001(\01322.google.c" - + "loud.compute.v1.SecurityPoliciesWafConfi" - + "gH\000\210\001\001B \n\036_preconfigured_expression_sets" - + "\"\252\001\n\032SecurityPoliciesScopedList\022E\n\021secur" - + "ity_policies\030\357\246\367< \003(\0132\'.google.cloud.com" - + "pute.v1.SecurityPolicy\0229\n\007warning\030\234\337\226\030 \001" - + "(\0132 .google.cloud.compute.v1.WarningH\000\210\001" - + "\001B\n\n\010_warning\"r\n\031SecurityPoliciesWafConf" - + "ig\022G\n\twaf_rules\030\324\303\333# \001(\0132,.google.cloud." - + "compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n_" - + "waf_rules\"\257\n\n\016SecurityPolicy\022k\n\032adaptive" - + "_protection_config\030\337\373\321G \001(\0132?.google.clo" - + "ud.compute.v1.SecurityPolicyAdaptiveProt" - + "ectionConfigH\000\210\001\001\022f\n\027advanced_options_co" - + "nfig\030\300\323\235\326\001 \001(\0132<.google.cloud.compute.v1" - + ".SecurityPolicyAdvancedOptionsConfigH\001\210\001" - + "\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.googl" - + "e.cloud.compute.v1.SecurityPolicyDdosPro" - + "tectionConfigH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 " - + "\001(\tH\004\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022!\n" - + "\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n\006labe" - + "ls\030\377\277\301\356\001 \003(\01323.google.cloud.compute.v1.S" - + "ecurityPolicy.LabelsEntry\022\024\n\004name\030\213\365\315\001 \001" - + "(\tH\t\210\001\001\022h\n\030recaptcha_options_config\030\333\324\275\367" - + "\001 \001(\0132=.google.cloud.compute.v1.Security" - + "PolicyRecaptchaOptionsConfigH\n\210\001\001\022\026\n\006reg" - + "ion\030\364\315\240B \001(\tH\013\210\001\001\022=\n\005rules\030\367\221\3653 \003(\0132+.go" - + "ogle.cloud.compute.v1.SecurityPolicyRule" - + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\024\n\004type\030\272\236\332" - + "\001 \001(\tH\r\210\001\001\022W\n\023user_defined_fields\030\243\211\300\r \003" - + "(\01327.google.cloud.compute.v1.SecurityPol" - + "icyUserDefinedField\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"d\n\004Type\022\022\n\016UN" - + "DEFINED_TYPE\020\000\022\022\n\013CLOUD_ARMOR\020\365\234\244|\022\027\n\020CL" - + "OUD_ARMOR_EDGE\020\307\242\307w\022\033\n\023CLOUD_ARMOR_NETWO" - + "RK\020\304\254\371\350\001B\035\n\033_adaptive_protection_configB" - + "\032\n\030_advanced_options_configB\025\n\023_creation" - + "_timestampB\031\n\027_ddos_protection_configB\016\n" - + "\014_descriptionB\016\n\014_fingerprintB\005\n\003_idB\007\n\005" - + "_kindB\024\n\022_label_fingerprintB\007\n\005_nameB\033\n\031" - + "_recaptcha_options_configB\t\n\007_regionB\014\n\n" - + "_self_linkB\007\n\005_type\"\315\001\n&SecurityPolicyAd" - + "aptiveProtectionConfig\022\203\001\n\032layer7_ddos_d" - + "efense_config\030\243\331\303\320\001 \001(\0132V.google.cloud.c" - + "ompute.v1.SecurityPolicyAdaptiveProtecti" - + "onConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n\033" - + "_layer7_ddos_defense_config\"\363\002\n=Security" - + "PolicyAdaptiveProtectionConfigLayer7Ddos" - + "DefenseConfig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 " - + "\n\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n\021thr" - + "eshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.c" - + "ompute.v1.SecurityPolicyAdaptiveProtecti" - + "onConfigLayer7DdosDefenseConfigThreshold" - + "Config\"R\n\016RuleVisibility\022\035\n\031UNDEFINED_RU" - + "LE_VISIBILITY\020\000\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STAN" - + "DARD\020\275\235\214\347\001B\t\n\007_enableB\022\n\020_rule_visibilit" - + "y\"\321\006\nLSecurityPolicyAdaptiveProtectionCo" - + "nfigLayer7DdosDefenseConfigThresholdConf" - + "ig\0220\n auto_deploy_confidence_threshold\030\276" - + "\355\231( \001(\002H\000\210\001\001\022*\n\032auto_deploy_expiration_s" - + "ec\030\211\265\232! \001(\005H\001\210\001\001\0228\n\'auto_deploy_impacted" - + "_baseline_threshold\030\303\234\271\213\001 \001(\002H\002\210\001\001\022+\n\032au" - + "to_deploy_load_threshold\030\232\240\202\371\001 \001(\002H\003\210\001\001\022" - + "\'\n\026detection_absolute_qps\030\346\375\327\266\001 \001(\002H\004\210\001\001" - + "\022)\n\030detection_load_threshold\030\314\312\243\315\001 \001(\002H\005" - + "\210\001\001\0223\n\"detection_relative_to_baseline_qp" - + "s\030\205\233\366\212\001 \001(\002H\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245" - + "\001\n\033traffic_granularity_configs\030\276\264\332( \003(\0132" - + "}.google.cloud.compute.v1.SecurityPolicy" + + "A\002\362G\004zoneB\r\n\013_request_id\"\321\002\n*ResumeInsta" + + "ncesInstanceGroupManagerRequest\022&\n\026insta" + + "nce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n9inst" + + "ance_group_managers_resume_instances_req" + + "uest_resource\030\302\276\302= \001(\0132D.google.cloud.co" + + "mpute.v1.InstanceGroupManagersResumeInst" + + "ancesRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" + + "t_id\"\351\002\n0ResumeInstancesRegionInstanceGr" + + "oupManagerRequest\022&\n\026instance_group_mana" + + "ger\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006r" + + "egion\022\235\001\n@region_instance_group_managers" + + "_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud.compute.v1.RegionIns" + + "tanceGroupManagersResumeInstancesRequest" + + "B\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_re" + + "quest_id\"\315\013\n\005Route\0229\n\010as_paths\030\241\305\314A \003(\0132" + + "$.google.cloud.compute.v1.RouteAsPath\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013des" + + "cription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\ndest_range\030\340\262" + + "\352\265\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224" + + "\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n\007ne" + + "twork\030\256\264\205o \001(\tH\006\210\001\001\022!\n\020next_hop_gateway\030" + + "\202\372\354\263\001 \001(\tH\007\210\001\001\022\034\n\014next_hop_hub\030\263\265\336^ \001(\tH" + + "\010\210\001\001\022\034\n\014next_hop_ilb\030\335\272\336^ \001(\tH\t\210\001\001\022\"\n\021ne" + + "xt_hop_instance\030\227\353\321\273\001 \001(\tH\n\210\001\001\022*\n\032next_h" + + "op_inter_region_cost\030\223\351\323\013 \001(\rH\013\210\001\001\022\033\n\013ne" + + "xt_hop_ip\030\251\257\3154 \001(\tH\014\210\001\001\022\034\n\014next_hop_med\030" + + "\212\327\336^ \001(\rH\r\210\001\001\022 \n\020next_hop_network\030\354\241\211} \001" + + "(\tH\016\210\001\001\022\037\n\017next_hop_origin\030\250\321\237\027 \001(\tH\017\210\001\001" + + "\022!\n\020next_hop_peering\030\376\223\344\304\001 \001(\tH\020\210\001\001\022$\n\023n" + + "ext_hop_vpn_tunnel\030\225\345\360\367\001 \001(\tH\021\210\001\001\022\031\n\010pri" + + "ority\030\244\363\241\324\001 \001(\rH\022\210\001\001\022\035\n\014route_status\030\250\315\262" + + "\307\001 \001(\tH\023\210\001\001\022\033\n\nroute_type\030\360\266\236\263\001 \001(\tH\024\210\001\001" + + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022\017\n\004tags\030\231\350\330" + + "\001 \003(\t\0227\n\010warnings\030\327\210\301\355\001 \003(\0132!.google.clo" + + "ud.compute.v1.Warnings\"W\n\rNextHopOrigin\022" + + "\035\n\031UNDEFINED_NEXT_HOP_ORIGIN\020\000\022\t\n\003EGP\020\356\227" + + "\004\022\t\n\003IGP\020\362\265\004\022\021\n\nINCOMPLETE\020\336\352\330\005\"l\n\013Route" + + "Status\022\032\n\026UNDEFINED_ROUTE_STATUS\020\000\022\016\n\006AC" + + "TIVE\020\206\346\211\226\001\022\017\n\007DROPPED\020\240\347\317\354\001\022\020\n\010INACTIVE\020" + + "\353\230\371\200\001\022\016\n\007PENDING\020\367\252\360\020\"`\n\tRouteType\022\030\n\024UN" + + "DEFINED_ROUTE_TYPE\020\000\022\t\n\003BGP\020\253\201\004\022\016\n\006STATI" + + "C\020\356\204\203\223\001\022\016\n\006SUBNET\020\335\356\274\223\001\022\016\n\007TRANSIT\020\263\203\306YB" + + "\025\n\023_creation_timestampB\016\n\014_descriptionB\r" + + "\n\013_dest_rangeB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n" + + "\n\010_networkB\023\n\021_next_hop_gatewayB\017\n\r_next" + + "_hop_hubB\017\n\r_next_hop_ilbB\024\n\022_next_hop_i" + + "nstanceB\035\n\033_next_hop_inter_region_costB\016" + + "\n\014_next_hop_ipB\017\n\r_next_hop_medB\023\n\021_next" + + "_hop_networkB\022\n\020_next_hop_originB\023\n\021_nex" + + "t_hop_peeringB\026\n\024_next_hop_vpn_tunnelB\013\n" + + "\t_priorityB\017\n\r_route_statusB\r\n\013_route_ty" + + "peB\014\n\n_self_link\"\347\001\n\013RouteAsPath\022\023\n\010as_l" + + "ists\030\310\312\371? \003(\r\022\"\n\021path_segment_type\030\240\265\353\364\001" + + " \001(\tH\000\210\001\001\"\210\001\n\017PathSegmentType\022\037\n\033UNDEFIN" + + "ED_PATH_SEGMENT_TYPE\020\000\022\031\n\022AS_CONFED_SEQU" + + "ENCE\020\260\217\367i\022\025\n\rAS_CONFED_SET\020\363\315\255\262\001\022\022\n\013AS_S" + + "EQUENCE\020\256\322\3622\022\016\n\006AS_SET\020\265\235\244\235\001B\024\n\022_path_se" + + "gment_type\"\233\002\n\tRouteList\022\020\n\002id\030\233\032 \001(\tH\000\210" + + "\001\001\0220\n\005items\030\300\317\367/ \003(\0132\036.google.cloud.comp" + + "ute.v1.Route\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017ne" + + "xt_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" + + "ogle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_i" + + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" + + "linkB\n\n\010_warning\"\332\005\n\006Router\0226\n\003bgp\030\313\371\005 \001" + + "(\0132\".google.cloud.compute.v1.RouterBgpH\000" + + "\210\001\001\022=\n\tbgp_peers\030\335\255\356\327\001 \003(\0132&.google.clou" + + "d.compute.v1.RouterBgpPeer\022\"\n\022creation_t" + + "imestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207" + + "\326\311\001 \001(\tH\002\210\001\001\022.\n\035encrypted_interconnect_r" + + "outer\030\237\242\214\216\001 \001(\010H\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022?" + + "\n\ninterfaces\030\332\364\340\005 \003(\0132(.google.cloud.com" + + "pute.v1.RouterInterface\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\005\210\001\001\022W\n\027md5_authentication_keys\030\232\256\361! \003(" + + "\01323.google.cloud.compute.v1.RouterMd5Aut" + + "henticationKey\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n\004" + + "nats\030\362\366\315\001 \003(\0132\".google.cloud.compute.v1." + + "RouterNat\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n\006re" + + "gion\030\364\315\240B \001(\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\t\210\001\001B\006\n\004_bgpB\025\n\023_creation_timestampB\016\n" + + "\014_descriptionB \n\036_encrypted_interconnect" + + "_routerB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n\n\010_net" + + "workB\t\n\007_regionB\014\n\n_self_link\"h\n\027RouterA" + + "dvertisedIpRange\022\034\n\013description\030\374\207\326\311\001 \001(" + + "\tH\000\210\001\001\022\025\n\005range\030\275\362\3203 \001(\tH\001\210\001\001B\016\n\014_descri" + + "ptionB\010\n\006_range\"\263\003\n\024RouterAggregatedList" + + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022J\n\005items\030\300\317\367/ \003(\01328.g" + + "oogle.cloud.compute.v1.RouterAggregatedL" + + "ist.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" + + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003" + + "(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\004\210\001\001\032X\n\nItemsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\0229\n\005value\030\002 \001(\0132*.google.cloud.c" + + "ompute.v1.RoutersScopedList:\0028\001B\005\n\003_idB\007" + + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" + + "kB\n\n\010_warning\"\330\003\n\tRouterBgp\022\037\n\016advertise" + + "_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n\021advertised_group" + + "s\030\266\336\205\n \003(\t\022Q\n\024advertised_ip_ranges\030\314\330\363\020 " + + "\003(\01320.google.cloud.compute.v1.RouterAdve" + + "rtisedIpRange\022\022\n\003asn\030\374\364\005 \001(\rH\001\210\001\001\022!\n\020ide" + + "ntifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n\022keepaliv" + + "e_interval\030\274\345\374\203\001 \001(\rH\003\210\001\001\"M\n\rAdvertiseMo" + + "de\022\034\n\030UNDEFINED_ADVERTISE_MODE\020\000\022\016\n\006CUST" + + "OM\020\361\376\245\271\001\022\016\n\007DEFAULT\020\241\304\3756\"G\n\020AdvertisedGr" + + "oups\022\037\n\033UNDEFINED_ADVERTISED_GROUPS\020\000\022\022\n" + + "\013ALL_SUBNETS\020\330\217\335\001B\021\n\017_advertise_modeB\006\n\004" + + "_asnB\023\n\021_identifier_rangeB\025\n\023_keepalive_" + + "interval\"\245\r\n\rRouterBgpPeer\022\037\n\016advertise_" + + "mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n\021advertised_groups" + + "\030\266\336\205\n \003(\t\022Q\n\024advertised_ip_ranges\030\314\330\363\020 \003" + + "(\01320.google.cloud.compute.v1.RouterAdver" + + "tisedIpRange\022)\n\031advertised_route_priorit" + + "y\030\274\234\366X \001(\rH\001\210\001\001\022=\n\003bfd\030\240\371\005 \001(\0132).google." + + "cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`" + + "\n\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.g" + + "oogle.cloud.compute.v1.RouterBgpPeerCust" + + "omLearnedIpRange\022.\n\035custom_learned_route" + + "_priority\030\304\342\306\235\001 \001(\005H\003\210\001\001\022\027\n\006enable\030\203\313\324\224\001" + + " \001(\tH\004\210\001\001\022\033\n\013enable_ipv4\030\241\366\303V \001(\010H\005\210\001\001\022\033" + + "\n\013enable_ipv6\030\243\366\303V \001(\010H\006\210\001\001\022\032\n\017export_po" + + "licies\030\373\362\367? \003(\t\022\033\n\017import_policies\030\252\361\217\327\001" + + " \003(\t\022\037\n\016interface_name\030\321\303\344\320\001 \001(\tH\007\210\001\001\022\033\n" + + "\nip_address\030\334\361\334\301\001 \001(\tH\010\210\001\001\022$\n\024ipv4_nexth" + + "op_address\030\321\215\334\002 \001(\tH\t\210\001\001\022$\n\024ipv6_nexthop" + + "_address\030\323\205\253\r \001(\tH\n\210\001\001\022\037\n\017management_typ" + + "e\030\266\203\352R \001(\tH\013\210\001\001\022,\n\033md5_authentication_ke" + + "y_name\030\221\275\203\206\001 \001(\tH\014\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\r" + + "\210\001\001\022\030\n\010peer_asn\030\237\264\226! \001(\rH\016\210\001\001\022\037\n\017peer_ip" + + "_address\030\331\227\207c \001(\tH\017\210\001\001\022*\n\031peer_ipv4_next" + + "hop_address\030\216\203\337\337\001 \001(\tH\020\210\001\001\022*\n\031peer_ipv6_" + + "nexthop_address\030\220\373\255\352\001 \001(\tH\021\210\001\001\022*\n\031router" + + "_appliance_instance\030\235\307\247\337\001 \001(\tH\022\210\001\001\"M\n\rAd" + + "vertiseMode\022\034\n\030UNDEFINED_ADVERTISE_MODE\020" + + "\000\022\016\n\006CUSTOM\020\361\376\245\271\001\022\016\n\007DEFAULT\020\241\304\3756\"G\n\020Adv" + + "ertisedGroups\022\037\n\033UNDEFINED_ADVERTISED_GR" + + "OUPS\020\000\022\022\n\013ALL_SUBNETS\020\330\217\335\001\"9\n\006Enable\022\024\n\020" + + "UNDEFINED_ENABLE\020\000\022\014\n\005FALSE\020\203\302\344\037\022\013\n\004TRUE" + + "\020\216\333\235\001\"g\n\016ManagementType\022\035\n\031UNDEFINED_MAN" + + "AGEMENT_TYPE\020\000\022\035\n\025MANAGED_BY_ATTACHMENT\020" + + "\313\322\352\332\001\022\027\n\017MANAGED_BY_USER\020\363\213\246\227\001B\021\n\017_adver" + + "tise_modeB\034\n\032_advertised_route_priorityB" + + "\006\n\004_bfdB \n\036_custom_learned_route_priorit" + + "yB\t\n\007_enableB\016\n\014_enable_ipv4B\016\n\014_enable_" + + "ipv6B\021\n\017_interface_nameB\r\n\013_ip_addressB\027" + + "\n\025_ipv4_nexthop_addressB\027\n\025_ipv6_nexthop" + + "_addressB\022\n\020_management_typeB\036\n\034_md5_aut" + + "hentication_key_nameB\007\n\005_nameB\013\n\t_peer_a" + + "snB\022\n\020_peer_ip_addressB\034\n\032_peer_ipv4_nex" + + "thop_addressB\034\n\032_peer_ipv6_nexthop_addre" + + "ssB\034\n\032_router_appliance_instance\"\206\003\n\020Rou" + + "terBgpPeerBfd\022$\n\024min_receive_interval\030\356\271" + + "\224Y \001(\rH\000\210\001\001\022&\n\025min_transmit_interval\030\307\321\302" + + "\371\001 \001(\rH\001\210\001\001\022\032\n\nmultiplier\030\301\373\235[ \001(\rH\002\210\001\001\022" + + "+\n\033session_initialization_mode\030\271\215\3032 \001(\tH" + + "\003\210\001\001\"y\n\031SessionInitializationMode\022)\n%UND" + + "EFINED_SESSION_INITIALIZATION_MODE\020\000\022\016\n\006" + + "ACTIVE\020\206\346\211\226\001\022\020\n\010DISABLED\020\374\324\260\366\001\022\017\n\007PASSIV" + + "E\020\207\366\327\334\001B\027\n\025_min_receive_intervalB\030\n\026_min" + + "_transmit_intervalB\r\n\013_multiplierB\036\n\034_se" + + "ssion_initialization_mode\"D\n!RouterBgpPe" + + "erCustomLearnedIpRange\022\025\n\005range\030\275\362\3203 \001(\t" + + "H\000\210\001\001B\010\n\006_range\"\225\005\n\017RouterInterface\022\030\n\010i" + + "p_range\030\245\340\227E \001(\tH\000\210\001\001\022\033\n\nip_version\030\300\363\322\214" + + "\001 \001(\tH\001\210\001\001\022/\n\036linked_interconnect_attach" + + "ment\030\316\352\367\356\001 \001(\tH\002\210\001\001\022\"\n\021linked_vpn_tunnel" + + "\030\371\277\376\247\001 \001(\tH\003\210\001\001\022\037\n\017management_type\030\266\203\352R " + + "\001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\"\n\022privat" + + "e_ip_address\030\230\322\2130 \001(\tH\006\210\001\001\022$\n\023redundant_" + + "interface\030\347\350\274\371\001 \001(\tH\007\210\001\001\022\033\n\nsubnetwork\030\356" + + "\247\344\222\001 \001(\tH\010\210\001\001\"?\n\tIpVersion\022\030\n\024UNDEFINED_" + + "IP_VERSION\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\"g" + + "\n\016ManagementType\022\035\n\031UNDEFINED_MANAGEMENT" + + "_TYPE\020\000\022\035\n\025MANAGED_BY_ATTACHMENT\020\313\322\352\332\001\022\027" + + "\n\017MANAGED_BY_USER\020\363\213\246\227\001B\013\n\t_ip_rangeB\r\n\013" + + "_ip_versionB!\n\037_linked_interconnect_atta" + + "chmentB\024\n\022_linked_vpn_tunnelB\022\n\020_managem" + + "ent_typeB\007\n\005_nameB\025\n\023_private_ip_address" + + "B\026\n\024_redundant_interfaceB\r\n\013_subnetwork\"" + + "\235\002\n\nRouterList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0221\n\005item" + + "s\030\300\317\367/ \003(\0132\037.google.cloud.compute.v1.Rou" + + "ter\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" + + "d.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"W\n\032RouterMd5AuthenticationKey\022\022\n" + + "\003key\030\337\274\006 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001B" + + "\006\n\004_keyB\007\n\005_name\"\353\016\n\tRouterNat\022\"\n\021auto_n" + + "etwork_tier\030\343\273\321\200\001 \001(\tH\000\210\001\001\022\031\n\rdrain_nat_" + + "ips\030\307\301\256\360\001 \003(\t\022/\n\036enable_dynamic_port_all" + + "ocation\030\242\231\335\375\001 \001(\010H\001\210\001\001\0223\n#enable_endpoin" + + "t_independent_mapping\030\233\211\333{ \001(\010H\002\210\001\001\022\032\n\016e" + + "ndpoint_types\030\317\252\326\357\001 \003(\t\022%\n\025icmp_idle_tim" + + "eout_sec\030\312\320\336\001 \001(\005H\003\210\001\001\022H\n\nlog_config\030\235\321\301" + + "\247\001 \001(\0132+.google.cloud.compute.v1.RouterN" + + "atLogConfigH\004\210\001\001\022 \n\020max_ports_per_vm\030\341\311\236" + + "w \001(\005H\005\210\001\001\022 \n\020min_ports_per_vm\030\263\255\344X \001(\005H" + + "\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\'\n\026nat_ip_all" + + "ocate_option\030\375\270\364\314\001 \001(\tH\010\210\001\001\022\022\n\007nat_ips\030\216" + + "\360\2138 \003(\t\0228\n\005rules\030\367\221\3653 \003(\0132&.google.cloud" + + ".compute.v1.RouterNatRule\0222\n\"source_subn" + + "etwork_ip_ranges_to_nat\030\333\357\241x \001(\tH\t\210\001\001\022J\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\01321.google.cloud.co" + + "mpute.v1.RouterNatSubnetworkToNat\0220\n tcp" + + "_established_idle_timeout_sec\030\355\353\260j \001(\005H\n" + + "\210\001\001\022*\n\031tcp_time_wait_timeout_sec\030\375\273\363\364\001 \001" + + "(\005H\013\210\001\001\022/\n\037tcp_transitory_idle_timeout_s" + + "ec\030\246\373\341a \001(\005H\014\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\r\210\001\001\022$" + + "\n\024udp_idle_timeout_sec\030\306\262\372\036 \001(\005H\016\210\001\001\"\230\001\n" + + "\017AutoNetworkTier\022\037\n\033UNDEFINED_AUTO_NETWO" + + "RK_TIER\020\000\022\026\n\016FIXED_STANDARD\020\310\236\205\224\001\022\017\n\007PRE" + + "MIUM\020\267\264\301\276\001\022\020\n\010STANDARD\020\275\235\214\347\001\022)\n!STANDARD" + + "_OVERRIDES_FIXED_STANDARD\020\302\207\221\336\001\"\210\001\n\rEndp" + + "ointTypes\022\034\n\030UNDEFINED_ENDPOINT_TYPES\020\000\022" + + "&\n\036ENDPOINT_TYPE_MANAGED_PROXY_LB\020\202\272\266\321\001\022" + + "\030\n\021ENDPOINT_TYPE_SWG\020\310\316\375K\022\027\n\020ENDPOINT_TY" + + "PE_VM\020\262\352\234\033\"a\n\023NatIpAllocateOption\022$\n UND" + + "EFINED_NAT_IP_ALLOCATE_OPTION\020\000\022\020\n\tAUTO_" + + "ONLY\020\274\340\370V\022\022\n\013MANUAL_ONLY\020\205\301\311|\"\302\001\n\035Source" + + "SubnetworkIpRangesToNat\0220\n,UNDEFINED_SOU" + + "RCE_SUBNETWORK_IP_RANGES_TO_NAT\020\000\022$\n\035ALL" + + "_SUBNETWORKS_ALL_IP_RANGES\020\330\223\350U\022,\n%ALL_S" + + "UBNETWORKS_ALL_PRIMARY_IP_RANGES\020\273\303\276X\022\033\n" + + "\023LIST_OF_SUBNETWORKS\020\376\242\344\366\001\":\n\004Type\022\022\n\016UN" + + "DEFINED_TYPE\020\000\022\017\n\007PRIVATE\020\343\342\262\300\001\022\r\n\006PUBLI" + + "C\020\351\314\302jB\024\n\022_auto_network_tierB!\n\037_enable_" + + "dynamic_port_allocationB&\n$_enable_endpo" + + "int_independent_mappingB\030\n\026_icmp_idle_ti" + + "meout_secB\r\n\013_log_configB\023\n\021_max_ports_p" + + "er_vmB\023\n\021_min_ports_per_vmB\007\n\005_nameB\031\n\027_" + + "nat_ip_allocate_optionB%\n#_source_subnet" + + "work_ip_ranges_to_natB#\n!_tcp_establishe" + + "d_idle_timeout_secB\034\n\032_tcp_time_wait_tim" + + "eout_secB\"\n _tcp_transitory_idle_timeout" + + "_secB\007\n\005_typeB\027\n\025_udp_idle_timeout_sec\"\267" + + "\001\n\022RouterNatLogConfig\022\027\n\006enable\030\203\313\324\224\001 \001(" + + "\010H\000\210\001\001\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\001\210\001\001\"Y\n\006Filte" + + "r\022\024\n\020UNDEFINED_FILTER\020\000\022\t\n\003ALL\020\201\373\003\022\023\n\013ER" + + "RORS_ONLY\020\200\260\317\222\001\022\031\n\021TRANSLATIONS_ONLY\020\351\303\252" + + "\252\001B\t\n\007_enableB\t\n\007_filter\"\335\001\n\rRouterNatRu" + + "le\022D\n\006action\030\266\374\275Y \001(\0132,.google.cloud.com" + + "pute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n\013desc" + + "ription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n\005match\030\305\263\2671 \001(\t" + + "H\002\210\001\001\022\034\n\013rule_number\030\354\333\232\377\001 \001(\rH\003\210\001\001B\t\n\007_" + + "actionB\016\n\014_descriptionB\010\n\006_matchB\016\n\014_rul" + + "e_number\"\242\001\n\023RouterNatRuleAction\022 \n\025sour" + + "ce_nat_active_ips\030\365\273\250d \003(\t\022#\n\030source_nat" + + "_active_ranges\030\355\320\356Z \003(\t\022 \n\024source_nat_dr" + + "ain_ips\030\243\305\301\242\001 \003(\t\022\"\n\027source_nat_drain_ra" + + "nges\030\377\371\267( \003(\t\"\226\002\n\030RouterNatSubnetworkToN" + + "at\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022#\n\030secondary_ip" + + "_range_names\030\331\301\204~ \003(\t\022#\n\027source_ip_range" + + "s_to_nat\030\362\312\224\271\001 \003(\t\"\220\001\n\023SourceIpRangesToN" + + "at\022%\n!UNDEFINED_SOURCE_IP_RANGES_TO_NAT\020" + + "\000\022\024\n\rALL_IP_RANGES\020\260\257\375\020\022\"\n\033LIST_OF_SECON" + + "DARY_IP_RANGES\020\234\264\330[\022\030\n\020PRIMARY_IP_RANGE\020" + + "\302\223\326\215\001B\007\n\005_name\"\306\002\n\014RouterStatus\0227\n\013best_" + + "routes\030\205\254\337\274\001 \003(\0132\036.google.cloud.compute." + + "v1.Route\022A\n\026best_routes_for_router\030\371\373\3668 " + + "\003(\0132\036.google.cloud.compute.v1.Route\022N\n\017b" + + "gp_peer_status\030\373\327\225h \003(\01322.google.cloud.c" + + "ompute.v1.RouterStatusBgpPeerStatus\022E\n\nn" + + "at_status\030\320\231\213\036 \003(\0132..google.cloud.comput" + + "e.v1.RouterStatusNatStatus\022\027\n\007network\030\256\264" + + "\205o \001(\tH\000\210\001\001B\n\n\010_network\"\351\n\n\031RouterStatus" + + "BgpPeerStatus\022=\n\021advertised_routes\030\254\331\374\236\001" + + " \003(\0132\036.google.cloud.compute.v1.Route\022?\n\n" + + "bfd_status\030\361\270\323\274\001 \001(\0132\".google.cloud.comp" + + "ute.v1.BfdStatusH\000\210\001\001\022\033\n\013enable_ipv4\030\241\366\303" + + "V \001(\010H\001\210\001\001\022\033\n\013enable_ipv6\030\243\366\303V \001(\010H\002\210\001\001\022" + + "\033\n\nip_address\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n\024ipv4_nex" + + "thop_address\030\321\215\334\002 \001(\tH\004\210\001\001\022$\n\024ipv6_nexth" + + "op_address\030\323\205\253\r \001(\tH\005\210\001\001\022\"\n\021linked_vpn_t" + + "unnel\030\371\277\376\247\001 \001(\tH\006\210\001\001\022!\n\020md5_auth_enabled" + + "\030\313\221\220\327\001 \001(\010H\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\"\n" + + "\022num_learned_routes\030\377\325\313@ \001(\rH\t\210\001\001\022\037\n\017pee" + + "r_ip_address\030\331\227\207c \001(\tH\n\210\001\001\022*\n\031peer_ipv4_" + + "nexthop_address\030\216\203\337\337\001 \001(\tH\013\210\001\001\022*\n\031peer_i" + + "pv6_nexthop_address\030\220\373\255\352\001 \001(\tH\014\210\001\001\022*\n\031ro" + + "uter_appliance_instance\030\235\307\247\337\001 \001(\tH\r\210\001\001\022\025" + + "\n\005state\030\221\211\2534 \001(\tH\016\210\001\001\022\026\n\006status\030\362\237\267V \001(\t" + + "H\017\210\001\001\022\036\n\rstatus_reason\030\261\226\265\243\001 \001(\tH\020\210\001\001\022\026\n" + + "\006uptime\030\350\267\236p \001(\tH\021\210\001\001\022\036\n\016uptime_seconds\030" + + "\250\312\3701 \001(\tH\022\210\001\001\"E\n\006Status\022\024\n\020UNDEFINED_STA" + + "TUS\020\000\022\013\n\004DOWN\020\242\271\200\001\022\017\n\007UNKNOWN\020\252\360\304\316\001\022\007\n\002U" + + "P\020\233\025\"\306\001\n\014StatusReason\022\033\n\027UNDEFINED_STATU" + + "S_REASON\020\000\022)\n!IPV4_PEER_ON_IPV6_ONLY_CON" + + "NECTION\020\226\273\357\317\001\022)\n!IPV6_PEER_ON_IPV4_ONLY_" + + "CONNECTION\020\322\361\205\320\001\022 \n\031MD5_AUTH_INTERNAL_PR" + + "OBLEM\020\263\221\375B\022!\n\031STATUS_REASON_UNSPECIFIED\020" + + "\211\216\204\274\001B\r\n\013_bfd_statusB\016\n\014_enable_ipv4B\016\n\014" + + "_enable_ipv6B\r\n\013_ip_addressB\027\n\025_ipv4_nex" + + "thop_addressB\027\n\025_ipv6_nexthop_addressB\024\n" + + "\022_linked_vpn_tunnelB\023\n\021_md5_auth_enabled" + + "B\007\n\005_nameB\025\n\023_num_learned_routesB\022\n\020_pee" + + "r_ip_addressB\034\n\032_peer_ipv4_nexthop_addre" + + "ssB\034\n\032_peer_ipv6_nexthop_addressB\034\n\032_rou" + + "ter_appliance_instanceB\010\n\006_stateB\t\n\007_sta" + + "tusB\020\n\016_status_reasonB\t\n\007_uptimeB\021\n\017_upt" + + "ime_seconds\"\367\003\n\025RouterStatusNatStatus\022\"\n" + + "\026auto_allocated_nat_ips\030\206\264\310\363\001 \003(\t\022(\n\034dra" + + "in_auto_allocated_nat_ips\030\255\220\267\223\001 \003(\t\022(\n\034d" + + "rain_user_allocated_nat_ips\030\311\216\310\221\001 \003(\t\022)\n" + + "\030min_extra_nat_ips_needed\030\342\351\265\256\001 \001(\005H\000\210\001\001" + + "\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n\"num_vm_endpoin" + + "ts_with_nat_mappings\030\354\266\250\364\001 \001(\005H\002\210\001\001\022S\n\013r" + + "ule_status\030\225\305\356B \003(\0132;.google.cloud.compu" + + "te.v1.RouterStatusNatStatusNatRuleStatus" + + "\022*\n\037user_allocated_nat_ip_resources\030\327\351\272e" + + " \003(\t\022\"\n\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\t" + + "B\033\n\031_min_extra_nat_ips_neededB\007\n\005_nameB%" + + "\n#_num_vm_endpoints_with_nat_mappings\"\244\002" + + "\n\"RouterStatusNatStatusNatRuleStatus\022\031\n\016" + + "active_nat_ips\030\325\357\266c \003(\t\022\031\n\rdrain_nat_ips" + + "\030\307\301\256\360\001 \003(\t\022%\n\024min_extra_ips_needed\030\204\312\251\250\001" + + " \001(\005H\000\210\001\001\0223\n\"num_vm_endpoints_with_nat_m" + + "appings\030\354\266\250\364\001 \001(\005H\001\210\001\001\022\034\n\013rule_number\030\354\333" + + "\232\377\001 \001(\005H\002\210\001\001B\027\n\025_min_extra_ips_neededB%\n" + + "#_num_vm_endpoints_with_nat_mappingsB\016\n\014" + + "_rule_number\"\177\n\024RouterStatusResponse\022\024\n\004" + + "kind\030\224\367\310\001 \001(\tH\000\210\001\001\022=\n\006result\030\235\220\267B \001(\0132%." + + "google.cloud.compute.v1.RouterStatusH\001\210\001" + + "\001B\007\n\005_kindB\t\n\007_result\"`\n\026RoutersPreviewR" + + "esponse\0229\n\010resource\030\216\210\257] \001(\0132\037.google.cl" + + "oud.compute.v1.RouterH\000\210\001\001B\013\n\t_resource\"" + + "\220\001\n\021RoutersScopedList\0224\n\007routers\030\312\244\335\224\001 \003" + + "(\0132\037.google.cloud.compute.v1.Router\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\000\210\001\001B\n\n\010_warning\"\330\003\n\016SSLHealth" + + "Check\022\024\n\004port\030\201\261\322\001 \001(\005H\000\210\001\001\022\031\n\tport_name" + + "\030\211\207\347\023 \001(\tH\001\210\001\001\022\"\n\022port_specification\030\305\353\314" + + "\030 \001(\tH\002\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\003\210\001\001" + + "\022\027\n\007request\030\217\345\273\n \001(\tH\004\210\001\001\022\030\n\010response\030\301\250" + + "\334] \001(\tH\005\210\001\001\"~\n\021PortSpecification\022 \n\034UNDE" + + "FINED_PORT_SPECIFICATION\020\000\022\025\n\016USE_FIXED_" + + "PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE" + + "_SERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UN" + + "DEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010P" + + "ROXY_V1\020\254\244\267\237\001B\007\n\005_portB\014\n\n_port_nameB\025\n\023" + + "_port_specificationB\017\n\r_proxy_headerB\n\n\010" + + "_requestB\013\n\t_response\"\217\010\n\021SavedAttachedD" + + "isk\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n\004boo" + + "t\030\362\365\270\001 \001(\010H\001\210\001\001\022\033\n\013device_name\030\324\265\232 \001(\tH" + + "\002\210\001\001\022T\n\023disk_encryption_key\030\205\355\304\201\001 \001(\0132.." + + "google.cloud.compute.v1.CustomerEncrypti", + "onKeyH\003\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001" + + "\001\022\031\n\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n\021guest_os" + + "_features\030\321\340\347% \003(\0132\'.google.cloud.comput" + + "e.v1.GuestOsFeature\022\025\n\005index\030\322\321\354/ \001(\005H\006\210" + + "\001\001\022\032\n\tinterface\030\271\332\325\357\001 \001(\tH\007\210\001\001\022\024\n\004kind\030\224" + + "\367\310\001 \001(\tH\010\210\001\001\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022\024\n\004mo" + + "de\030\243\363\314\001 \001(\tH\t\210\001\001\022\026\n\006source\030\233\320\301T \001(\tH\n\210\001\001" + + "\022\036\n\rstorage_bytes\030\247\273\275\312\001 \001(\003H\013\210\001\001\022%\n\024stor" + + "age_bytes_status\030\212\253\200\352\001 \001(\tH\014\210\001\001\022\024\n\004type\030" + + "\272\236\332\001 \001(\tH\r\210\001\001\">\n\tInterface\022\027\n\023UNDEFINED_" + + "INTERFACE\020\000\022\013\n\004NVME\020\340\202\223\001\022\013\n\004SCSI\020\246\201\233\001\"?\n" + + "\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\020\n\tREAD_ONLY\020\265" + + "\231\354+\022\021\n\nREAD_WRITE\020\326\227\344R\"]\n\022StorageBytesSt" + + "atus\022\"\n\036UNDEFINED_STORAGE_BYTES_STATUS\020\000" + + "\022\020\n\010UPDATING\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470\"?\n" + + "\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\022\n\nPERSISTENT\020" + + "\227\365\325\333\001\022\017\n\007SCRATCH\020\332\375\360\354\001B\016\n\014_auto_deleteB\007" + + "\n\005_bootB\016\n\014_device_nameB\026\n\024_disk_encrypt" + + "ion_keyB\017\n\r_disk_size_gbB\014\n\n_disk_typeB\010" + + "\n\006_indexB\014\n\n_interfaceB\007\n\005_kindB\007\n\005_mode" + + "B\t\n\007_sourceB\020\n\016_storage_bytesB\027\n\025_storag" + + "e_bytes_statusB\007\n\005_type\"\305\003\n\tSavedDisk\022\035\n" + + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\001\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\002\210\001\001" + + "\022\036\n\rstorage_bytes\030\247\273\275\312\001 \001(\003H\003\210\001\001\022%\n\024stor" + + "age_bytes_status\030\212\253\200\352\001 \001(\tH\004\210\001\001\"j\n\014Archi" + + "tecture\022\032\n\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030A" + + "RCHITECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372" + + "\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"]\n\022StorageBytesStatu" + + "s\022\"\n\036UNDEFINED_STORAGE_BYTES_STATUS\020\000\022\020\n" + + "\010UPDATING\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470B\017\n\r_a" + + "rchitectureB\007\n\005_kindB\016\n\014_source_diskB\020\n\016" + + "_storage_bytesB\027\n\025_storage_bytes_status\"" + + "\201\002\n\025ScalingScheduleStatus\022\037\n\017last_start_" + + "time\030\323\273\274\020 \001(\tH\000\210\001\001\022\037\n\017next_start_time\030\326\362" + + "\260. \001(\tH\001\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\002\210\001\001\"]\n\005St" + + "ate\022\023\n\017UNDEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001" + + "\022\020\n\010DISABLED\020\374\324\260\366\001\022\017\n\010OBSOLETE\020\231\353\334\037\022\014\n\005R" + + "EADY\020\203\303\217%B\022\n\020_last_start_timeB\022\n\020_next_s" + + "tart_timeB\010\n\006_state\"\356\t\n\nScheduling\022\"\n\021au" + + "tomatic_restart\030\373\267\244\247\001 \001(\010H\000\210\001\001\022#\n\023availa" + + "bility_domain\030\250\240\264x \001(\005H\001\210\001\001\022+\n\033instance_" + + "termination_action\030\273\377\2313 \001(\tH\002\210\001\001\022M\n\032loca" + + "l_ssd_recovery_timeout\030\346\257\346\177 \001(\0132!.google" + + ".cloud.compute.v1.DurationH\003\210\001\001\022\036\n\rlocat" + + "ion_hint\030\321\201\222\247\001 \001(\tH\004\210\001\001\022D\n\020max_run_durat" + + "ion\030\303\257\270\315\001 \001(\0132!.google.cloud.compute.v1." + + "DurationH\005\210\001\001\022\036\n\rmin_node_cpus\030\273\244\242\227\001 \001(\005" + + "H\006\210\001\001\022L\n\017node_affinities\030\243\204\232\334\001 \003(\0132/.goo" + + "gle.cloud.compute.v1.SchedulingNodeAffin" + + "ity\022#\n\023on_host_maintenance\030\334\362\347\036 \001(\tH\007\210\001\001" + + "\022a\n\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327." + + "google.cloud.compute.v1.SchedulingOnInst" + + "anceStopActionH\010\210\001\001\022\034\n\013preemptible\030\241\345\313\232\001" + + " \001(\010H\t\210\001\001\022!\n\022provisioning_model\030\327\226\036 \001(\tH" + + "\n\210\001\001\022!\n\020termination_time\030\250\216\220\314\001 \001(\tH\013\210\001\001\"" + + "\223\001\n\031InstanceTerminationAction\022)\n%UNDEFIN" + + "ED_INSTANCE_TERMINATION_ACTION\020\000\022\016\n\006DELE" + + "TE\020\253\363\345\277\001\022.\n\'INSTANCE_TERMINATION_ACTION_" + + "UNSPECIFIED\020\263\301\251,\022\013\n\004STOP\020\202\200\234\001\"Y\n\021OnHostM" + + "aintenance\022!\n\035UNDEFINED_ON_HOST_MAINTENA" + + "NCE\020\000\022\016\n\007MIGRATE\020\213\303\201O\022\021\n\tTERMINATE\020\301\234\313\373\001" + + "\"T\n\021ProvisioningModel\022 \n\034UNDEFINED_PROVI" + + "SIONING_MODEL\020\000\022\013\n\004SPOT\020\202\342\233\001\022\020\n\010STANDARD" + + "\020\275\235\214\347\001B\024\n\022_automatic_restartB\026\n\024_availab" + + "ility_domainB\036\n\034_instance_termination_ac" + + "tionB\035\n\033_local_ssd_recovery_timeoutB\020\n\016_" + + "location_hintB\023\n\021_max_run_durationB\020\n\016_m" + + "in_node_cpusB\026\n\024_on_host_maintenanceB\032\n\030" + + "_on_instance_stop_actionB\016\n\014_preemptible" + + "B\025\n\023_provisioning_modelB\023\n\021_termination_" + + "time\"\307\001\n\026SchedulingNodeAffinity\022\022\n\003key\030\337" + + "\274\006 \001(\tH\000\210\001\001\022\030\n\010operator\030\244\321\250\021 \001(\tH\001\210\001\001\022\021\n" + + "\006values\030\242\272\226w \003(\t\"W\n\010Operator\022\026\n\022UNDEFINE" + + "D_OPERATOR\020\000\022\007\n\002IN\020\245\022\022\r\n\006NOT_IN\020\261\274\353L\022\033\n\024" + + "OPERATOR_UNSPECIFIED\020\374\377\272=B\006\n\004_keyB\013\n\t_op" + + "erator\"Z\n\036SchedulingOnInstanceStopAction" + + "\022\"\n\021discard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001B\024\n\022" + + "_discard_local_ssd\"3\n\014ScratchDisks\022\027\n\007di" + + "sk_gb\030\275\305\212\035 \001(\005H\000\210\001\001B\n\n\010_disk_gb\"S\n\nScree" + + "nshot\022\031\n\010contents\030\232\266\275\361\001 \001(\tH\000\210\001\001\022\024\n\004kind" + + "\030\224\367\310\001 \001(\tH\001\210\001\001B\013\n\t_contentsB\007\n\005_kind\"\357\003\n" + + "\036SecurityPoliciesAggregatedList\022\024\n\004etag\030" + + "\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022T\n\005items" + + "\030\300\317\367/ \003(\0132B.google.cloud.compute.v1.Secu" + + "rityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225" + + "\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001" + + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" + + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" + + "\005\210\001\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value" + + "\030\002 \001(\01323.google.cloud.compute.v1.Securit" + + "yPoliciesScopedList:\0028\001B\007\n\005_etagB\005\n\003_idB" + + "\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_li" + + "nkB\n\n\010_warning\"\277\001\n7SecurityPoliciesListP" + + "reconfiguredExpressionSetsResponse\022b\n\035pr" + + "econfigured_expression_sets\030\372\214\327\377\001 \001(\01322." + + "google.cloud.compute.v1.SecurityPolicies" + + "WafConfigH\000\210\001\001B \n\036_preconfigured_express" + + "ion_sets\"\252\001\n\032SecurityPoliciesScopedList\022" + + "E\n\021security_policies\030\357\246\367< \003(\0132\'.google.c" + + "loud.compute.v1.SecurityPolicy\0229\n\007warnin" + + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" + + "ningH\000\210\001\001B\n\n\010_warning\"r\n\031SecurityPolicie" + + "sWafConfig\022G\n\twaf_rules\030\324\303\333# \001(\0132,.googl" + + "e.cloud.compute.v1.PreconfiguredWafSetH\000" + + "\210\001\001B\014\n\n_waf_rules\"\257\n\n\016SecurityPolicy\022k\n\032" + + "adaptive_protection_config\030\337\373\321G \001(\0132?.go" + + "ogle.cloud.compute.v1.SecurityPolicyAdap" + + "tiveProtectionConfigH\000\210\001\001\022f\n\027advanced_op" + + "tions_config\030\300\323\235\326\001 \001(\0132<.google.cloud.co" + + "mpute.v1.SecurityPolicyAdvancedOptionsCo" + + "nfigH\001\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" + + "H\002\210\001\001\022c\n\026ddos_protection_config\030\315\204\377\027 \001(\013" + + "2;.google.cloud.compute.v1.SecurityPolic" + + "yDdosProtectionConfigH\003\210\001\001\022\034\n\013descriptio" + + "n\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\t" + + "H\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\007\210\001\001\022!\n\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001" + + "\022G\n\006labels\030\377\277\301\356\001 \003(\01323.google.cloud.comp" + + "ute.v1.SecurityPolicy.LabelsEntry\022\024\n\004nam" + + "e\030\213\365\315\001 \001(\tH\t\210\001\001\022h\n\030recaptcha_options_con" + + "fig\030\333\324\275\367\001 \001(\0132=.google.cloud.compute.v1." + + "SecurityPolicyRecaptchaOptionsConfigH\n\210\001" + + "\001\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022=\n\005rules\030\367\221\3653 " + + "\003(\0132+.google.cloud.compute.v1.SecurityPo" + + "licyRule\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\024\n\004" + + "type\030\272\236\332\001 \001(\tH\r\210\001\001\022W\n\023user_defined_field" + + "s\030\243\211\300\r \003(\01327.google.cloud.compute.v1.Sec" + + "urityPolicyUserDefinedField\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"d\n\004Ty" + + "pe\022\022\n\016UNDEFINED_TYPE\020\000\022\022\n\013CLOUD_ARMOR\020\365\234" + + "\244|\022\027\n\020CLOUD_ARMOR_EDGE\020\307\242\307w\022\033\n\023CLOUD_ARM" + + "OR_NETWORK\020\304\254\371\350\001B\035\n\033_adaptive_protection" + + "_configB\032\n\030_advanced_options_configB\025\n\023_" + + "creation_timestampB\031\n\027_ddos_protection_c" + + "onfigB\016\n\014_descriptionB\016\n\014_fingerprintB\005\n" + + "\003_idB\007\n\005_kindB\024\n\022_label_fingerprintB\007\n\005_" + + "nameB\033\n\031_recaptcha_options_configB\t\n\007_re" + + "gionB\014\n\n_self_linkB\007\n\005_type\"\315\001\n&Security" + + "PolicyAdaptiveProtectionConfig\022\203\001\n\032layer" + + "7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V.google" + + ".cloud.compute.v1.SecurityPolicyAdaptive" + + "ProtectionConfigLayer7DdosDefenseConfigH" + + "\000\210\001\001B\035\n\033_layer7_ddos_defense_config\"\363\002\n=" + + "SecurityPolicyAdaptiveProtectionConfigLa" + + "yer7DdosDefenseConfig\022\027\n\006enable\030\203\313\324\224\001 \001(" + + "\010H\000\210\001\001\022 \n\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001" + + "\022\203\001\n\021threshold_configs\030\235\253\343\034 \003(\0132e.google" + + ".cloud.compute.v1.SecurityPolicyAdaptive" + + "ProtectionConfigLayer7DdosDefenseConfigT" + + "hresholdConfig\"R\n\016RuleVisibility\022\035\n\031UNDE" + + "FINED_RULE_VISIBILITY\020\000\022\017\n\007PREMIUM\020\267\264\301\276\001" + + "\022\020\n\010STANDARD\020\275\235\214\347\001B\t\n\007_enableB\022\n\020_rule_v" + + "isibility\"\321\006\nLSecurityPolicyAdaptiveProt" + + "ectionConfigLayer7DdosDefenseConfigThres" + + "holdConfig\0220\n auto_deploy_confidence_thr" + + "eshold\030\276\355\231( \001(\002H\000\210\001\001\022*\n\032auto_deploy_expi" + + "ration_sec\030\211\265\232! \001(\005H\001\210\001\001\0228\n\'auto_deploy_" + + "impacted_baseline_threshold\030\303\234\271\213\001 \001(\002H\002\210" + + "\001\001\022+\n\032auto_deploy_load_threshold\030\232\240\202\371\001 \001" + + "(\002H\003\210\001\001\022\'\n\026detection_absolute_qps\030\346\375\327\266\001 " + + "\001(\002H\004\210\001\001\022)\n\030detection_load_threshold\030\314\312\243" + + "\315\001 \001(\002H\005\210\001\001\0223\n\"detection_relative_to_bas" + + "eline_qps\030\205\233\366\212\001 \001(\002H\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" + + "\tH\007\210\001\001\022\245\001\n\033traffic_granularity_configs\030\276" + + "\264\332( \003(\0132}.google.cloud.compute.v1.Securi" + + "tyPolicyAdaptiveProtectionConfigLayer7Dd" + + "osDefenseConfigThresholdConfigTrafficGra" + + "nularityConfigB#\n!_auto_deploy_confidenc" + + "e_thresholdB\035\n\033_auto_deploy_expiration_s" + + "ecB*\n(_auto_deploy_impacted_baseline_thr" + + "esholdB\035\n\033_auto_deploy_load_thresholdB\031\n" + + "\027_detection_absolute_qpsB\033\n\031_detection_l" + + "oad_thresholdB%\n#_detection_relative_to_" + + "baseline_qpsB\007\n\005_name\"\320\002\ndSecurityPolicy" + "AdaptiveProtectionConfigLayer7DdosDefens" + "eConfigThresholdConfigTrafficGranularity" - + "ConfigB#\n!_auto_deploy_confidence_thresh" - + "oldB\035\n\033_auto_deploy_expiration_secB*\n(_a" - + "uto_deploy_impacted_baseline_thresholdB\035" - + "\n\033_auto_deploy_load_thresholdB\031\n\027_detect" - + "ion_absolute_qpsB\033\n\031_detection_load_thre" - + "sholdB%\n#_detection_relative_to_baseline" - + "_qpsB\007\n\005_name\"\320\002\ndSecurityPolicyAdaptive" - + "ProtectionConfigLayer7DdosDefenseConfigT" - + "hresholdConfigTrafficGranularityConfig\022)" - + "\n\030enable_each_unique_value\030\305\212\336\337\001 \001(\010H\000\210\001" - + "\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n\005value\030\361\242\2625 \001(" - + "\tH\002\210\001\001\"`\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\030\n\020HT" - + "TP_HEADER_HOST\020\343\345\276\262\001\022\021\n\tHTTP_PATH\020\374\322\304\224\001\022" - + "\027\n\020UNSPECIFIED_TYPE\020\342\356\333\031B\033\n\031_enable_each" - + "_unique_valueB\007\n\005_typeB\010\n\006_value\"\336\003\n#Sec" - + "urityPolicyAdvancedOptionsConfig\022p\n\022json" - + "_custom_config\030\271\331\2315 \001(\0132L.google.cloud.c" - + "ompute.v1.SecurityPolicyAdvancedOptionsC" - + "onfigJsonCustomConfigH\000\210\001\001\022\035\n\014json_parsi" - + "ng\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n\tlog_level\030\311\275\204C \001(\tH" - + "\002\210\001\001\022#\n\027user_ip_request_headers\030\262\357\342\310\001 \003(" - + "\t\"k\n\013JsonParsing\022\032\n\026UNDEFINED_JSON_PARSI" - + "NG\020\000\022\020\n\010DISABLED\020\374\324\260\366\001\022\020\n\010STANDARD\020\275\235\214\347\001" - + "\022\034\n\025STANDARD_WITH_GRAPHQL\020\222\277\2013\"C\n\010LogLev" - + "el\022\027\n\023UNDEFINED_LOG_LEVEL\020\000\022\r\n\006NORMAL\020\347\341" - + "\346L\022\017\n\007VERBOSE\020\342\212\344\375\001B\025\n\023_json_custom_conf" - + "igB\017\n\r_json_parsingB\014\n\n_log_level\"O\n3Sec" - + "urityPolicyAdvancedOptionsConfigJsonCust" - + "omConfig\022\030\n\rcontent_types\030\263\342\247\010 \003(\t\"\256\001\n\"S" - + "ecurityPolicyDdosProtectionConfig\022 \n\017ddo" - + "s_protection\030\224\237\233\203\001 \001(\tH\000\210\001\001\"R\n\016DdosProte" - + "ction\022\035\n\031UNDEFINED_DDOS_PROTECTION\020\000\022\017\n\010" - + "ADVANCED\020\242\260\265\036\022\020\n\010STANDARD\020\275\235\214\347\001B\022\n\020_ddos" - + "_protection\"\203\002\n\022SecurityPolicyList\022\020\n\002id" - + "\030\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google." - + "cloud.compute.v1.SecurityPolicy\022\024\n\004kind\030" - + "\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(" - + "\tH\002\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou", - "d.compute.v1.WarningH\003\210\001\001B\005\n\003_idB\007\n\005_kin" - + "dB\022\n\020_next_page_tokenB\n\n\010_warning\"`\n$Sec" - + "urityPolicyRecaptchaOptionsConfig\022\"\n\021red" - + "irect_site_key\030\352\204\274\325\001 \001(\tH\000\210\001\001B\024\n\022_redire" - + "ct_site_key\"N\n\027SecurityPolicyReference\022\037" - + "\n\017security_policy\030\221\206\312Q \001(\tH\000\210\001\001B\022\n\020_secu" - + "rity_policy\"\367\006\n\022SecurityPolicyRule\022\026\n\006ac" - + "tion\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 " - + "\001(\tH\001\210\001\001\022[\n\rheader_action\030\250\240\270\234\001 \001(\0132;.go" - + "ogle.cloud.compute.v1.SecurityPolicyRule" - + "HttpHeaderActionH\002\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\003" - + "\210\001\001\022I\n\005match\030\305\263\2671 \001(\01322.google.cloud.com" - + "pute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y" - + "\n\rnetwork_match\030\364\370\372\334\001 \001(\01329.google.cloud" - + ".compute.v1.SecurityPolicyRuleNetworkMat" - + "cherH\005\210\001\001\022k\n\030preconfigured_waf_config\030\343\237" - + "\2268 \001(\0132A.google.cloud.compute.v1.Securit" - + "yPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027" - + "\n\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n\010priority\030\244\363\241\324" - + "\001 \001(\005H\010\210\001\001\022_\n\022rate_limit_options\030\373\311\232 \001(" - + "\0132;.google.cloud.compute.v1.SecurityPoli" - + "cyRuleRateLimitOptionsH\t\210\001\001\022\\\n\020redirect_" - + "options\030\273\222\356M \001(\0132:.google.cloud.compute." - + "v1.SecurityPolicyRuleRedirectOptionsH\n\210\001" - + "\001B\t\n\007_actionB\016\n\014_descriptionB\020\n\016_header_" - + "actionB\007\n\005_kindB\010\n\006_matchB\020\n\016_network_ma" - + "tchB\033\n\031_preconfigured_waf_configB\n\n\010_pre" - + "viewB\013\n\t_priorityB\025\n\023_rate_limit_options" - + "B\023\n\021_redirect_options\"\225\001\n\"SecurityPolicy" - + "RuleHttpHeaderAction\022o\n\027request_headers_" - + "to_adds\030\315\253\372) \003(\0132K.google.cloud.compute." - + "v1.SecurityPolicyRuleHttpHeaderActionHtt" - + "pHeaderOption\"\220\001\n2SecurityPolicyRuleHttp" - + "HeaderActionHttpHeaderOption\022\033\n\013header_n" - + "ame\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n\014header_value\030\277\362\353` \001" - + "(\tH\001\210\001\001B\016\n\014_header_nameB\017\n\r_header_value" - + "\"\233\003\n\031SecurityPolicyRuleMatcher\022P\n\006config" - + "\030\302\206\376y \001(\01328.google.cloud.compute.v1.Secu" - + "rityPolicyRuleMatcherConfigH\000\210\001\001\0223\n\004expr" - + "\030\365\363\276\001 \001(\0132\035.google.cloud.compute.v1.Expr" - + "H\001\210\001\001\022\\\n\014expr_options\030\324\304\354\347\001 \001(\0132=.google" - + ".cloud.compute.v1.SecurityPolicyRuleMatc" - + "herExprOptionsH\002\210\001\001\022\037\n\016versioned_expr\030\275\343" - + "\326\231\001 \001(\tH\003\210\001\001\"@\n\rVersionedExpr\022\034\n\030UNDEFIN" - + "ED_VERSIONED_EXPR\020\000\022\021\n\nSRC_IPS_V1\020\211\375\350!B\t" - + "\n\007_configB\007\n\005_exprB\017\n\r_expr_optionsB\021\n\017_" - + "versioned_expr\"<\n\037SecurityPolicyRuleMatc" - + "herConfig\022\031\n\rsrc_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" - + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cl" - + "oud.compute.v1.SecurityPolicyRuleMatcher" - + "ExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n\022_rec" - + "aptcha_options\"~\n4SecurityPolicyRuleMatc" - + "herExprOptionsRecaptchaOptions\022!\n\026action" - + "_token_site_keys\030\235\352\311\034 \003(\t\022#\n\027session_tok" - + "en_site_keys\030\375\362\372\236\001 \003(\t\"\303\002\n SecurityPolic" - + "yRuleNetworkMatcher\022\032\n\016dest_ip_ranges\030\221\327" - + "\356\240\001 \003(\t\022\026\n\ndest_ports\030\265\260\223\265\001 \003(\t\022\027\n\014ip_pr" - + "otocols\030\303\217\315{ \003(\t\022\023\n\010src_asns\030\362\275\2278 \003(\r\022\031\n" - + "\rsrc_ip_ranges\030\323\200\207\316\001 \003(\t\022\025\n\tsrc_ports\030\367\273" - + "\236\324\001 \003(\t\022\033\n\020src_region_codes\030\226\343\237/ \003(\t\022n\n\023" - + "user_defined_fields\030\243\211\300\r \003(\0132N.google.cl" - + "oud.compute.v1.SecurityPolicyRuleNetwork" - + "MatcherUserDefinedFieldMatch\"i\n5Security" - + "PolicyRuleNetworkMatcherUserDefinedField" - + "Match\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n\006values\030\242\272" - + "\226w \003(\tB\007\n\005_name\"\215\001\n(SecurityPolicyRulePr" - + "econfiguredWafConfig\022a\n\nexclusions\030\345\370\277c " - + "\003(\0132J.google.cloud.compute.v1.SecurityPo" - + "licyRulePreconfiguredWafConfigExclusion\"" - + "\202\005\n1SecurityPolicyRulePreconfiguredWafCo" - + "nfigExclusion\022|\n\032request_cookies_to_excl" - + "ude\030\366\336\337J \003(\0132U.google.cloud.compute.v1.S" - + "ecurityPolicyRulePreconfiguredWafConfigE" - + "xclusionFieldParams\022|\n\032request_headers_t" - + "o_exclude\030\237\244\223\036 \003(\0132U.google.cloud.comput" - + "e.v1.SecurityPolicyRulePreconfiguredWafC" - + "onfigExclusionFieldParams\022\202\001\n\037request_qu" - + "ery_params_to_exclude\030\210\236\272\242\001 \003(\0132U.google" - + ".cloud.compute.v1.SecurityPolicyRulePrec" - + "onfiguredWafConfigExclusionFieldParams\022y" - + "\n\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleP" - + "reconfiguredWafConfigExclusionFieldParam" - + "s\022\033\n\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n\017target" - + "_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n\020_target_rule" - + "_set\"\347\001\n.goo" - + "gle.cloud.compute.v1.ServiceAttachmentCo" - + "nsumerProjectLimit\022 \n\025consumer_reject_li" - + "sts\030\236\231\245a \003(\t\022\"\n\022creation_timestamp\030\266\217\307\016 " - + "\001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027" - + "\n\014domain_names\030\215\330\211\003 \003(\t\022&\n\025enable_proxy_" - + "protocol\030\205\207\274\255\001 \001(\010H\003\210\001\001\022\033\n\013fingerprint\030\344" - + "\321\363o \001(\tH\004\210\001\001\022\020\n\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n\004kind\030\224" - + "\367\310\001 \001(\tH\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n\013na" - + "t_subnets\030\230\217\333\262\001 \003(\t\022(\n\030producer_forwardi" - + "ng_rule\030\321\250\234v \001(\tH\010\210\001\001\022,\n\033propagated_conn" - + "ection_limit\030\376\310\323\236\001 \001(\rH\t\210\001\001\022L\n\031psc_servi" - + "ce_attachment_id\030\356\372\317\373\001 \001(\0132 .google.clou" - + "d.compute.v1.Uint128H\n\210\001\001\022%\n\025reconcile_c" - + "onnections\030\344\303\353; \001(\010H\013\210\001\001\022\026\n\006region\030\364\315\240B " - + "\001(\tH\014\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\035\n\016" - + "target_service\030\207\374N \001(\tH\016\210\001\001\"\225\001\n\024Connecti" - + "onPreference\022#\n\037UNDEFINED_CONNECTION_PRE" - + "FERENCE\020\000\022\027\n\020ACCEPT_AUTOMATIC\020\224\367\360#\022\025\n\rAC" - + "CEPT_MANUAL\020\335\355\361\261\001\022(\n!CONNECTION_PREFEREN" - + "CE_UNSPECIFIED\020\264\240\277\020B\030\n\026_connection_prefe" - + "renceB\025\n\023_creation_timestampB\016\n\014_descrip" - + "tionB\030\n\026_enable_proxy_protocolB\016\n\014_finge" - + "rprintB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\033\n\031_prod" - + "ucer_forwarding_ruleB\036\n\034_propagated_conn" - + "ection_limitB\034\n\032_psc_service_attachment_" - + "idB\030\n\026_reconcile_connectionsB\t\n\007_regionB" - + "\014\n\n_self_linkB\021\n\017_target_service\"\324\003\n\037Ser" - + "viceAttachmentAggregatedList\022\020\n\002id\030\233\032 \001(" - + "\tH\000\210\001\001\022U\n\005items\030\300\317\367/ \003(\0132C.google.cloud." - + "compute.v1.ServiceAttachmentAggregatedLi" - + "st.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017n" - + "ext_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_lin" - + "k\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(" - + "\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\004\210\001\001\032c\n\nItemsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022D\n\005value\030\002 \001(\01325.google.cloud.co" - + "mpute.v1.ServiceAttachmentsScopedList:\0028" - + "\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" - + "\n_self_linkB\n\n\010_warning\"\304\003\n\"ServiceAttac" - + "hmentConnectedEndpoint\022 \n\020consumer_netwo" - + "rk\030\345\335\244y \001(\tH\000\210\001\001\022\030\n\010endpoint\030\225\273\234> \001(\tH\001\210" - + "\001\001\022,\n\033propagated_connection_count\030\322\323\343\232\001 " - + "\001(\rH\002\210\001\001\022\"\n\021psc_connection_id\030\335\245\243\213\001 \001(\004H" - + "\003\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\004\210\001\001\"\224\001\n\006Status\022" - + "\024\n\020UNDEFINED_STATUS\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\016" - + "\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_ATTENTION\020\274\213\242\244\001\022" - + "\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022\031\n\022STAT" - + "US_UNSPECIFIED\020\312\314\213\024B\023\n\021_consumer_network" - + "B\013\n\t_endpointB\036\n\034_propagated_connection_" - + "countB\024\n\022_psc_connection_idB\t\n\007_status\"\305" - + "\001\n%ServiceAttachmentConsumerProjectLimit" - + "\022 \n\020connection_limit\030\232\236\324> \001(\rH\000\210\001\001\022\033\n\013ne" - + "twork_url\030\336\217\346b \001(\tH\001\210\001\001\022\"\n\021project_id_or" - + "_num\030\250\212\345\246\001 \001(\tH\002\210\001\001B\023\n\021_connection_limit" - + "B\016\n\014_network_urlB\024\n\022_project_id_or_num\"\263" - + "\002\n\025ServiceAttachmentList\022\020\n\002id\030\233\032 \001(\tH\000\210" - + "\001\001\022<\n\005items\030\300\317\367/ \003(\0132*.google.cloud.comp" - + "ute.v1.ServiceAttachment\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\262\001\n\034Service" - + "AttachmentsScopedList\022K\n\023service_attachm" - + "ents\030\246\222\272\222\001 \003(\0132*.google.cloud.compute.v1" - + ".ServiceAttachment\0229\n\007warning\030\234\337\226\030 \001(\0132 " - + ".google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" - + "\010_warning\"\246\002\n&SetBackendServiceTargetSsl" - + "ProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n7" - + "target_ssl_proxies_set_backend_service_r" - + "equest_resource\030\244\351\250B \001(\0132A.google.cloud." - + "compute.v1.TargetSslProxiesSetBackendSer" - + "viceRequestB\003\340A\002\022!\n\020target_ssl_proxy\030\315\272\306" - + "\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\247\002\n&SetBacken" - + "dServiceTargetTcpProxyRequest\022!\n\007project" - + "\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001\022\213\001\n7target_tcp_proxies_set_" - + "backend_service_request_resource\030\357\321\302\202\001 \001" - + "(\0132A.google.cloud.compute.v1.TargetTcpPr" - + "oxiesSetBackendServiceRequestB\003\340A\002\022!\n\020ta" - + "rget_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_reques" - + "t_id\"\261\002\n\032SetBackupTargetPoolRequest\022\036\n\016f" - + "ailover_ratio\030\376\224\264e \001(\002H\000\210\001\001\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(" - + "\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001" - + "\210\001\001\022\033\n\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022T\n\031targ" - + "et_reference_resource\030\360\267\335\371\001 \001(\0132(.google" - + ".cloud.compute.v1.TargetReferenceB\003\340A\002B\021" - + "\n\017_failover_ratioB\r\n\013_request_id\"\256\002\n(Set" - + "CertificateMapTargetHttpsProxyRequest\022!\n" - + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" - + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\217\001\n9target_https_pr" - + "oxies_set_certificate_map_request_resour" - + "ce\030\273\266\376\336\001 \001(\0132C.google.cloud.compute.v1.T" - + "argetHttpsProxiesSetCertificateMapReques" - + "tB\003\340A\002\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340" - + "A\002B\r\n\013_request_id\"\247\002\n&SetCertificateMapT" - + "argetSslProxyRequest\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" - + "\210\001\001\022\213\001\n7target_ssl_proxies_set_certifica" - + "te_map_request_resource\030\272\226\203\244\001 \001(\0132A.goog" - + "le.cloud.compute.v1.TargetSslProxiesSetC" - + "ertificateMapRequestB\003\340A\002\022!\n\020target_ssl_" - + "proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\352\001\n\037" - + "SetCloudArmorTierProjectRequest\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022y\n.projects_s" - + "et_cloud_armor_tier_request_resource\030\317\373\336" - + "$ \001(\01329.google.cloud.compute.v1.Projects" - + "SetCloudArmorTierRequestB\003\340A\002\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\214\003\n*Set" - + "CommonInstanceMetadataOperationMetadata\022" - + "$\n\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001" - + "\n\027per_location_operations\030\224\321\202\303\001 \003(\0132^.go" - + "ogle.cloud.compute.v1.SetCommonInstanceM" - + "etadataOperationMetadata.PerLocationOper" - + "ationsEntry\032\231\001\n\032PerLocationOperationsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022j\n\005value\030\002 \001(\0132[.google." - + "cloud.compute.v1.SetCommonInstanceMetada" - + "taOperationMetadataPerLocationOperationI" - + "nfo:\0028\001B\026\n\024_client_operation_id\"\262\002\nBSetC" - + "ommonInstanceMetadataOperationMetadataPe" - + "rLocationOperationInfo\0226\n\005error\030\210\244\223. \001(\013" - + "2\037.google.cloud.compute.v1.StatusH\000\210\001\001\022\025" - + "\n\005state\030\221\211\2534 \001(\tH\001\210\001\001\"\210\001\n\005State\022\023\n\017UNDEF" - + "INED_STATE\020\000\022\020\n\tABANDONED\020\264\303\200\'\022\013\n\004DONE\020\202" - + "\267\200\001\022\016\n\006FAILED\020\275\220\246\331\001\022\022\n\nPROPAGATED\020\333\264\202\362\001\022" - + "\022\n\013PROPAGATING\020\206\203\313N\022\023\n\013UNSPECIFIED\020\227\276\230\373\001" - + "B\010\n\006_errorB\010\n\006_state\"\276\001\n\'SetCommonInstan" - + "ceMetadataProjectRequest\022E\n\021metadata_res" - + "ource\030\236\276\346\212\001 \001(\0132!.google.cloud.compute.v" - + "1.MetadataB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n\013_request_id\"\367\001\n#SetDefaultNetworkTierP" - + "rojectRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\201\001\n2projects_set_default_networ" - + "k_tier_request_resource\030\212\300\243< \001(\0132=.googl" - + "e.cloud.compute.v1.ProjectsSetDefaultNet" - + "workTierRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 " - + "\001(\tH\000\210\001\001B\r\n\013_request_id\"\351\001\n$SetDeletionP" - + "rotectionInstanceRequest\022$\n\023deletion_pro" - + "tection\030\352\377\262\332\001 \001(\010H\000\210\001\001\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\001\210\001\001\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\033\n\004zone\030" - + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\026\n\024_deletion_protec" - + "tionB\r\n\013_request_id\"\342\001\n SetDiskAutoDelet" - + "eInstanceRequest\022\034\n\013auto_delete\030\273\344\316\335\001 \001(" - + "\010B\003\340A\002\022\033\n\013device_name\030\324\265\232 \001(\tB\003\340A\002\022\030\n\010i" - + "nstance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" + + "Config\022)\n\030enable_each_unique_value\030\305\212\336\337\001" + + " \001(\010H\000\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n\005value" + + "\030\361\242\2625 \001(\tH\002\210\001\001\"`\n\004Type\022\022\n\016UNDEFINED_TYPE" + + "\020\000\022\030\n\020HTTP_HEADER_HOST\020\343\345\276\262\001\022\021\n\tHTTP_PAT" + + "H\020\374\322\304\224\001\022\027\n\020UNSPECIFIED_TYPE\020\342\356\333\031B\033\n\031_ena" + + "ble_each_unique_valueB\007\n\005_typeB\010\n\006_value" + + "\"\336\003\n#SecurityPolicyAdvancedOptionsConfig" + + "\022p\n\022json_custom_config\030\271\331\2315 \001(\0132L.google" + + ".cloud.compute.v1.SecurityPolicyAdvanced" + + "OptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n\014js" + + "on_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n\tlog_level\030\311" + + "\275\204C \001(\tH\002\210\001\001\022#\n\027user_ip_request_headers\030" + + "\262\357\342\310\001 \003(\t\"k\n\013JsonParsing\022\032\n\026UNDEFINED_JS" + + "ON_PARSING\020\000\022\020\n\010DISABLED\020\374\324\260\366\001\022\020\n\010STANDA" + + "RD\020\275\235\214\347\001\022\034\n\025STANDARD_WITH_GRAPHQL\020\222\277\2013\"C" + + "\n\010LogLevel\022\027\n\023UNDEFINED_LOG_LEVEL\020\000\022\r\n\006N" + + "ORMAL\020\347\341\346L\022\017\n\007VERBOSE\020\342\212\344\375\001B\025\n\023_json_cus" + + "tom_configB\017\n\r_json_parsingB\014\n\n_log_leve" + + "l\"O\n3SecurityPolicyAdvancedOptionsConfig" + + "JsonCustomConfig\022\030\n\rcontent_types\030\263\342\247\010 \003" + + "(\t\"\256\001\n\"SecurityPolicyDdosProtectionConfi" + + "g\022 \n\017ddos_protection\030\224\237\233\203\001 \001(\tH\000\210\001\001\"R\n\016D" + + "dosProtection\022\035\n\031UNDEFINED_DDOS_PROTECTI" + + "ON\020\000\022\017\n\010ADVANCED\020\242\260\265\036\022\020\n\010STANDARD\020\275\235\214\347\001B" + + "\022\n\020_ddos_protection\"\203\002\n\022SecurityPolicyLi" + + "st\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'" + + ".google.cloud.compute.v1.SecurityPolicy\022" + + "\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token" + + "\030\225\272\206& \001(\tH\002\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goo" + + "gle.cloud.compute.v1.WarningH\003\210\001\001B\005\n\003_id" + + "B\007\n\005_kindB\022\n\020_next_page_tokenB\n\n\010_warnin" + + "g\"`\n$SecurityPolicyRecaptchaOptionsConfi" + + "g\022\"\n\021redirect_site_key\030\352\204\274\325\001 \001(\tH\000\210\001\001B\024\n" + + "\022_redirect_site_key\"N\n\027SecurityPolicyRef" + + "erence\022\037\n\017security_policy\030\221\206\312Q \001(\tH\000\210\001\001B" + + "\022\n\020_security_policy\"\367\006\n\022SecurityPolicyRu" + + "le\022\026\n\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n\013descriptio" + + "n\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\rheader_action\030\250\240\270\234\001 " + + "\001(\0132;.google.cloud.compute.v1.SecurityPo" + + "licyRuleHttpHeaderActionH\002\210\001\001\022\024\n\004kind\030\224\367" + + "\310\001 \001(\tH\003\210\001\001\022I\n\005match\030\305\263\2671 \001(\01322.google.c" + + "loud.compute.v1.SecurityPolicyRuleMatche" + + "rH\004\210\001\001\022Y\n\rnetwork_match\030\364\370\372\334\001 \001(\01329.goog" + + "le.cloud.compute.v1.SecurityPolicyRuleNe" + + "tworkMatcherH\005\210\001\001\022k\n\030preconfigured_waf_c" + + "onfig\030\343\237\2268 \001(\0132A.google.cloud.compute.v1" + + ".SecurityPolicyRulePreconfiguredWafConfi" + + "gH\006\210\001\001\022\027\n\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n\010prior" + + "ity\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n\022rate_limit_options" + + "\030\373\311\232 \001(\0132;.google.cloud.compute.v1.Secu" + + "rityPolicyRuleRateLimitOptionsH\t\210\001\001\022\\\n\020r" + + "edirect_options\030\273\222\356M \001(\0132:.google.cloud." + + "compute.v1.SecurityPolicyRuleRedirectOpt" + + "ionsH\n\210\001\001B\t\n\007_actionB\016\n\014_descriptionB\020\n\016" + + "_header_actionB\007\n\005_kindB\010\n\006_matchB\020\n\016_ne" + + "twork_matchB\033\n\031_preconfigured_waf_config" + + "B\n\n\010_previewB\013\n\t_priorityB\025\n\023_rate_limit" + + "_optionsB\023\n\021_redirect_options\"\225\001\n\"Securi" + + "tyPolicyRuleHttpHeaderAction\022o\n\027request_" + + "headers_to_adds\030\315\253\372) \003(\0132K.google.cloud." + + "compute.v1.SecurityPolicyRuleHttpHeaderA" + + "ctionHttpHeaderOption\"\220\001\n2SecurityPolicy" + + "RuleHttpHeaderActionHttpHeaderOption\022\033\n\013" + + "header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n\014header_valu" + + "e\030\277\362\353` \001(\tH\001\210\001\001B\016\n\014_header_nameB\017\n\r_head" + + "er_value\"\233\003\n\031SecurityPolicyRuleMatcher\022P" + + "\n\006config\030\302\206\376y \001(\01328.google.cloud.compute" + + ".v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001" + + "\0223\n\004expr\030\365\363\276\001 \001(\0132\035.google.cloud.compute" + + ".v1.ExprH\001\210\001\001\022\\\n\014expr_options\030\324\304\354\347\001 \001(\0132" + + "=.google.cloud.compute.v1.SecurityPolicy" + + "RuleMatcherExprOptionsH\002\210\001\001\022\037\n\016versioned" + + "_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\rVersionedExpr\022\034\n" + + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\nSRC_IPS_V" + + "1\020\211\375\350!B\t\n\007_configB\007\n\005_exprB\017\n\r_expr_opti" + + "onsB\021\n\017_versioned_expr\"<\n\037SecurityPolicy" + + "RuleMatcherConfig\022\031\n\rsrc_ip_ranges\030\323\200\207\316\001" + + " \003(\t\"\257\001\n$SecurityPolicyRuleMatcherExprOp" + + "tions\022q\n\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.g" + + "oogle.cloud.compute.v1.SecurityPolicyRul" + + "eMatcherExprOptionsRecaptchaOptionsH\000\210\001\001" + + "B\024\n\022_recaptcha_options\"~\n4SecurityPolicy" + + "RuleMatcherExprOptionsRecaptchaOptions\022!" + + "\n\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n\027ses" + + "sion_token_site_keys\030\375\362\372\236\001 \003(\t\"\303\002\n Secur" + + "ityPolicyRuleNetworkMatcher\022\032\n\016dest_ip_r" + + "anges\030\221\327\356\240\001 \003(\t\022\026\n\ndest_ports\030\265\260\223\265\001 \003(\t\022" + + "\027\n\014ip_protocols\030\303\217\315{ \003(\t\022\023\n\010src_asns\030\362\275\227" + + "8 \003(\r\022\031\n\rsrc_ip_ranges\030\323\200\207\316\001 \003(\t\022\025\n\tsrc_" + + "ports\030\367\273\236\324\001 \003(\t\022\033\n\020src_region_codes\030\226\343\237/" + + " \003(\t\022n\n\023user_defined_fields\030\243\211\300\r \003(\0132N.g" + + "oogle.cloud.compute.v1.SecurityPolicyRul" + + "eNetworkMatcherUserDefinedFieldMatch\"i\n5" + + "SecurityPolicyRuleNetworkMatcherUserDefi" + + "nedFieldMatch\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n\006v" + + "alues\030\242\272\226w \003(\tB\007\n\005_name\"\215\001\n(SecurityPoli" + + "cyRulePreconfiguredWafConfig\022a\n\nexclusio" + + "ns\030\345\370\277c \003(\0132J.google.cloud.compute.v1.Se" + + "curityPolicyRulePreconfiguredWafConfigEx" + + "clusion\"\202\005\n1SecurityPolicyRulePreconfigu" + + "redWafConfigExclusion\022|\n\032request_cookies" + + "_to_exclude\030\366\336\337J \003(\0132U.google.cloud.comp" + + "ute.v1.SecurityPolicyRulePreconfiguredWa" + + "fConfigExclusionFieldParams\022|\n\032request_h" + + "eaders_to_exclude\030\237\244\223\036 \003(\0132U.google.clou" + + "d.compute.v1.SecurityPolicyRulePreconfig" + + "uredWafConfigExclusionFieldParams\022\202\001\n\037re" + + "quest_query_params_to_exclude\030\210\236\272\242\001 \003(\0132" + + "U.google.cloud.compute.v1.SecurityPolicy" + + "RulePreconfiguredWafConfigExclusionField" + + "Params\022y\n\027request_uris_to_exclude\030\236\252\237+ \003" + + "(\0132U.google.cloud.compute.v1.SecurityPol" + + "icyRulePreconfiguredWafConfigExclusionFi" + + "eldParams\022\033\n\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 " + + "\n\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n\020_tar" + + "get_rule_set\"\347\001\n.google.cloud.comput" + + "e.v1.ServiceAttachmentConsumerProjectLim" + + "it\022 \n\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n\022" + + "creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013desc" + + "ription\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n\014domain_names\030\215" + + "\330\211\003 \003(\t\022&\n\025enable_proxy_protocol\030\205\207\274\255\001 \001" + + "(\010H\003\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n\002" + + "id\030\233\032 \001(\004H\005\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n\013nat_subnets\030\230\217\333\262\001 " + + "\003(\t\022(\n\030producer_forwarding_rule\030\321\250\234v \001(\t" + + "H\010\210\001\001\022,\n\033propagated_connection_limit\030\376\310\323" + + "\236\001 \001(\rH\t\210\001\001\022L\n\031psc_service_attachment_id" + + "\030\356\372\317\373\001 \001(\0132 .google.cloud.compute.v1.Uin" + + "t128H\n\210\001\001\022%\n\025reconcile_connections\030\344\303\353; " + + "\001(\010H\013\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n\tself" + + "_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022\035\n\016target_service\030\207" + + "\374N \001(\tH\016\210\001\001\"\225\001\n\024ConnectionPreference\022#\n\037" + + "UNDEFINED_CONNECTION_PREFERENCE\020\000\022\027\n\020ACC" + + "EPT_AUTOMATIC\020\224\367\360#\022\025\n\rACCEPT_MANUAL\020\335\355\361\261" + + "\001\022(\n!CONNECTION_PREFERENCE_UNSPECIFIED\020\264" + + "\240\277\020B\030\n\026_connection_preferenceB\025\n\023_creati" + + "on_timestampB\016\n\014_descriptionB\030\n\026_enable_" + + "proxy_protocolB\016\n\014_fingerprintB\005\n\003_idB\007\n" + + "\005_kindB\007\n\005_nameB\033\n\031_producer_forwarding_", + "ruleB\036\n\034_propagated_connection_limitB\034\n\032" + + "_psc_service_attachment_idB\030\n\026_reconcile" + + "_connectionsB\t\n\007_regionB\014\n\n_self_linkB\021\n" + + "\017_target_service\"\324\003\n\037ServiceAttachmentAg" + + "gregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022U\n\005items\030" + + "\300\317\367/ \003(\0132C.google.cloud.compute.v1.Servi" + + "ceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225" + + "\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001" + + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" + + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" + + "\004\210\001\001\032c\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022D\n\005value" + + "\030\002 \001(\01325.google.cloud.compute.v1.Service" + + "AttachmentsScopedList:\0028\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" + + "warning\"\304\003\n\"ServiceAttachmentConnectedEn" + + "dpoint\022 \n\020consumer_network\030\345\335\244y \001(\tH\000\210\001\001" + + "\022\030\n\010endpoint\030\225\273\234> \001(\tH\001\210\001\001\022,\n\033propagated" + + "_connection_count\030\322\323\343\232\001 \001(\rH\002\210\001\001\022\"\n\021psc_" + + "connection_id\030\335\245\243\213\001 \001(\004H\003\210\001\001\022\026\n\006status\030\362" + + "\237\267V \001(\tH\004\210\001\001\"\224\001\n\006Status\022\024\n\020UNDEFINED_STA" + + "TUS\020\000\022\017\n\010ACCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027" + + "\n\017NEEDS_ATTENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022" + + "\017\n\010REJECTED\020\376\210\204S\022\031\n\022STATUS_UNSPECIFIED\020\312" + + "\314\213\024B\023\n\021_consumer_networkB\013\n\t_endpointB\036\n" + + "\034_propagated_connection_countB\024\n\022_psc_co" + + "nnection_idB\t\n\007_status\"\305\001\n%ServiceAttach" + + "mentConsumerProjectLimit\022 \n\020connection_l" + + "imit\030\232\236\324> \001(\rH\000\210\001\001\022\033\n\013network_url\030\336\217\346b \001" + + "(\tH\001\210\001\001\022\"\n\021project_id_or_num\030\250\212\345\246\001 \001(\tH\002" + + "\210\001\001B\023\n\021_connection_limitB\016\n\014_network_url" + + "B\024\n\022_project_id_or_num\"\263\002\n\025ServiceAttach" + + "mentList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022<\n\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.ServiceAt" + + "tachment\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_p" + + "age_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305" + + "\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" + + ".cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n" + + "\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_link" + + "B\n\n\010_warning\"\262\001\n\034ServiceAttachmentsScope" + + "dList\022K\n\023service_attachments\030\246\222\272\222\001 \003(\0132*" + + ".google.cloud.compute.v1.ServiceAttachme" + + "nt\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\246\002\n&Se" + + "tBackendServiceTargetSslProxyRequest\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n7target_ssl_proxi" + + "es_set_backend_service_request_resource\030" + + "\244\351\250B \001(\0132A.google.cloud.compute.v1.Targe" + + "tSslProxiesSetBackendServiceRequestB\003\340A\002" + + "\022!\n\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_" + + "request_id\"\247\002\n&SetBackendServiceTargetTc" + + "pProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + + "7target_tcp_proxies_set_backend_service_" + + "request_resource\030\357\321\302\202\001 \001(\0132A.google.clou" + + "d.compute.v1.TargetTcpProxiesSetBackendS" + + "erviceRequestB\003\340A\002\022!\n\020target_tcp_proxy\030\342" + + "\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\261\002\n\032SetBack" + + "upTargetPoolRequest\022\036\n\016failover_ratio\030\376\224" + + "\264e \001(\002H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\013target_po" + + "ol\030\212\344\370\035 \001(\tB\003\340A\002\022T\n\031target_reference_res" + + "ource\030\360\267\335\371\001 \001(\0132(.google.cloud.compute.v" + + "1.TargetReferenceB\003\340A\002B\021\n\017_failover_rati" + + "oB\r\n\013_request_id\"\256\002\n(SetCertificateMapTa" + + "rgetHttpsProxyRequest\022!\n\007project\030\231\226\301l \001(" + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_re" - + "quest_id\"\377\001\n)SetEdgeSecurityPolicyBacken" - + "dBucketRequest\022\036\n\016backend_bucket\030\365\343\335+ \001(" - + "\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"securit" - + "y_policy_reference_resource\030\360\264\253a \001(\01320.g" - + "oogle.cloud.compute.v1.SecurityPolicyRef" - + "erenceB\003\340A\002B\r\n\013_request_id\"\202\002\n*SetEdgeSe" - + "curityPolicyBackendServiceRequest\022 \n\017bac" - + "kend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001\022d\n\"security_policy_reference_" - + "resource\030\360\264\253a \001(\01320.google.cloud.compute" - + ".v1.SecurityPolicyReferenceB\003\340A\002B\r\n\013_req" - + "uest_id\"\273\001\n SetIamPolicyBackendBucketReq" - + "uest\022d\n\"global_set_policy_request_resour" - + "ce\030\262\347\333\240\001 \001(\0132/.google.cloud.compute.v1.G" - + "lobalSetPolicyRequestB\003\340A\002\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\274\001" - + "\n!SetIamPolicyBackendServiceRequest\022d\n\"g" - + "lobal_set_policy_request_resource\030\262\347\333\240\001 " - + "\001(\0132/.google.cloud.compute.v1.GlobalSetP" - + "olicyRequestB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\304\001\n\027SetIamP" - + "olicyDiskRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" - + "\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001" - + " \001(\tB\003\340A\002\022`\n zone_set_policy_request_res" - + "ource\030\273\270\230\266\001 \001(\0132-.google.cloud.compute.v" - + "1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n!SetIamPo" - + "licyFirewallPolicyRequest\022|\n/global_orga" - + "nization_set_policy_request_resource\030\336\224\314" - + "T \001(\0132;.google.cloud.compute.v1.GlobalOr" - + "ganizationSetPolicyRequestB\003\340A\002\022\030\n\010resou" - + "rce\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n\030SetIamPolicyImageR" - + "equest\022d\n\"global_set_policy_request_reso" - + "urce\030\262\347\333\240\001 \001(\0132/.google.cloud.compute.v1" - + ".GlobalSetPolicyRequestB\003\340A\002\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"" - + "\310\001\n\033SetIamPolicyInstanceRequest\022\027\n\007proje" + + "\000\210\001\001\022\217\001\n9target_https_proxies_set_certif" + + "icate_map_request_resource\030\273\266\376\336\001 \001(\0132C.g" + + "oogle.cloud.compute.v1.TargetHttpsProxie" + + "sSetCertificateMapRequestB\003\340A\002\022\"\n\022target" + + "_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_i" + + "d\"\247\002\n&SetCertificateMapTargetSslProxyReq" + + "uest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n7target_s" + + "sl_proxies_set_certificate_map_request_r" + + "esource\030\272\226\203\244\001 \001(\0132A.google.cloud.compute" + + ".v1.TargetSslProxiesSetCertificateMapReq" + + "uestB\003\340A\002\022!\n\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB" + + "\003\340A\002B\r\n\013_request_id\"\352\001\n\037SetCloudArmorTie" + + "rProjectRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022y\n.projects_set_cloud_armor_t" + + "ier_request_resource\030\317\373\336$ \001(\01329.google.c" + + "loud.compute.v1.ProjectsSetCloudArmorTie" + + "rRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001B\r\n\013_request_id\"\214\003\n*SetCommonInstanceMe" + + "tadataOperationMetadata\022$\n\023client_operat" + + "ion_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n\027per_location_o" + + "perations\030\224\321\202\303\001 \003(\0132^.google.cloud.compu" + + "te.v1.SetCommonInstanceMetadataOperation" + + "Metadata.PerLocationOperationsEntry\032\231\001\n\032" + + "PerLocationOperationsEntry\022\013\n\003key\030\001 \001(\t\022" + + "j\n\005value\030\002 \001(\0132[.google.cloud.compute.v1" + + ".SetCommonInstanceMetadataOperationMetad" + + "ataPerLocationOperationInfo:\0028\001B\026\n\024_clie" + + "nt_operation_id\"\262\002\nBSetCommonInstanceMet" + + "adataOperationMetadataPerLocationOperati" + + "onInfo\0226\n\005error\030\210\244\223. \001(\0132\037.google.cloud." + + "compute.v1.StatusH\000\210\001\001\022\025\n\005state\030\221\211\2534 \001(\t" + + "H\001\210\001\001\"\210\001\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\020\n\t" + + "ABANDONED\020\264\303\200\'\022\013\n\004DONE\020\202\267\200\001\022\016\n\006FAILED\020\275\220" + + "\246\331\001\022\022\n\nPROPAGATED\020\333\264\202\362\001\022\022\n\013PROPAGATING\020\206" + + "\203\313N\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B\010\n\006_errorB\010\n\006_s" + + "tate\"\276\001\n\'SetCommonInstanceMetadataProjec" + + "tRequest\022E\n\021metadata_resource\030\236\276\346\212\001 \001(\0132" + + "!.google.cloud.compute.v1.MetadataB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" + + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\367\001" + + "\n#SetDefaultNetworkTierProjectRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\201\001\n2pro" + + "jects_set_default_network_tier_request_r" + + "esource\030\212\300\243< \001(\0132=.google.cloud.compute." + + "v1.ProjectsSetDefaultNetworkTierRequestB" + + "\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_req" + + "uest_id\"\351\001\n$SetDeletionProtectionInstanc" + + "eRequest\022$\n\023deletion_protection\030\352\377\262\332\001 \001(" + + "\010H\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\030\n\010resourc" + + "e\030\216\210\257] \001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004" + + "zoneB\026\n\024_deletion_protectionB\r\n\013_request" + + "_id\"\342\001\n SetDiskAutoDeleteInstanceRequest" + + "\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\010B\003\340A\002\022\033\n\013device" + + "_name\030\324\265\232 \001(\tB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344" + + "\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\377\001\n)Set" + + "EdgeSecurityPolicyBackendBucketRequest\022\036" + + "\n\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022!\n\007projec" + + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" + + "\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"security_policy_referen" + + "ce_resource\030\360\264\253a \001(\01320.google.cloud.comp" + + "ute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n\013_" + + "request_id\"\202\002\n*SetEdgeSecurityPolicyBack" + + "endServiceRequest\022 \n\017backend_service\030\212\300\256" + + "\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"se" + + "curity_policy_reference_resource\030\360\264\253a \001(" + + "\01320.google.cloud.compute.v1.SecurityPoli" + + "cyReferenceB\003\340A\002B\r\n\013_request_id\"\273\001\n SetI" + + "amPolicyBackendBucketRequest\022d\n\"global_s" + + "et_policy_request_resource\030\262\347\333\240\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.GlobalSetPolicyRe" + + "questB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010r" + + "esource\030\216\210\257] \001(\tB\003\340A\002\"\274\001\n!SetIamPolicyBa" + + "ckendServiceRequest\022d\n\"global_set_policy" + + "_request_resource\030\262\347\333\240\001 \001(\0132/.google.clo" + + "ud.compute.v1.GlobalSetPolicyRequestB\003\340A" + + "\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" + + "\210\257] \001(\tB\003\340A\002\"\304\001\n\027SetIamPolicyDiskRequest" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210" + + "\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n zon" + + "e_set_policy_request_resource\030\273\270\230\266\001 \001(\0132" + + "-.google.cloud.compute.v1.ZoneSetPolicyR" + + "equestB\003\340A\002\"\273\001\n!SetIamPolicyFirewallPoli" + + "cyRequest\022|\n/global_organization_set_pol" + + "icy_request_resource\030\336\224\314T \001(\0132;.google.c" + + "loud.compute.v1.GlobalOrganizationSetPol" + + "icyRequestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A" + + "\002\"\263\001\n\030SetIamPolicyImageRequest\022d\n\"global" + + "_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/" + + ".google.cloud.compute.v1.GlobalSetPolicy" + + "RequestB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\310\001\n\033SetIamPolicy" + + "InstanceRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 " + + "\001(\tB\003\340A\002\022`\n zone_set_policy_request_reso" + + "urce\030\273\270\230\266\001 \001(\0132-.google.cloud.compute.v1" + + ".ZoneSetPolicyRequestB\003\340A\002\"\276\001\n#SetIamPol" + + "icyInstanceTemplateRequest\022d\n\"global_set" + + "_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.GlobalSetPolicyRequ" + + "estB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" + + "ource\030\216\210\257] \001(\tB\003\340A\002\"\317\001\n\"SetIamPolicyInst" + + "antSnapshotRequest\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307" + + "\344\001 \001(\tB\003\340A\002\022`\n zone_set_policy_request_r" + + "esource\030\273\270\230\266\001 \001(\0132-.google.cloud.compute" + + ".v1.ZoneSetPolicyRequestB\003\340A\002\"\265\001\n\032SetIam" + + "PolicyLicenseRequest\022d\n\"global_set_polic" + + "y_request_resource\030\262\347\333\240\001 \001(\0132/.google.cl" + + "oud.compute.v1.GlobalSetPolicyRequestB\003\340" + + "A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030" + + "\216\210\257] \001(\tB\003\340A\002\"\272\001\n\037SetIamPolicyMachineIma" + + "geRequest\022d\n\"global_set_policy_request_r" + + "esource\030\262\347\333\240\001 \001(\0132/.google.cloud.compute" + + ".v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n\007proje" + "ct\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340" - + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n zone_set_pol" - + "icy_request_resource\030\273\270\230\266\001 \001(\0132-.google." - + "cloud.compute.v1.ZoneSetPolicyRequestB\003\340" - + "A\002\"\276\001\n#SetIamPolicyInstanceTemplateReque" - + "st\022d\n\"global_set_policy_request_resource" - + "\030\262\347\333\240\001 \001(\0132/.google.cloud.compute.v1.Glo" - + "balSetPolicyRequestB\003\340A\002\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\317\001\n\"" - + "SetIamPolicyInstantSnapshotRequest\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\t" - + "B\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n zone_set_" - + "policy_request_resource\030\273\270\230\266\001 \001(\0132-.goog" - + "le.cloud.compute.v1.ZoneSetPolicyRequest" - + "B\003\340A\002\"\265\001\n\032SetIamPolicyLicenseRequest\022d\n\"" - + "global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSet" - + "PolicyRequestB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" - + "\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\272\001\n\037SetIam" - + "PolicyMachineImageRequest\022d\n\"global_set_" + + "A\002\"\327\001\n$SetIamPolicyNetworkAttachmentRequ" + + "est\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022d\n\"region_set_policy_reques" + + "t_resource\030\203\307\353\203\001 \001(\0132/.google.cloud.comp" + + "ute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n\010re" + + "source\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n(SetIamPolicyNet" + + "workFirewallPolicyRequest\022d\n\"global_set_" + "policy_request_resource\030\262\347\333\240\001 \001(\0132/.goog" + "le.cloud.compute.v1.GlobalSetPolicyReque" + "stB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010reso" - + "urce\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n$SetIamPolicyNetwo" - + "rkAttachmentRequest\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_s" - + "et_policy_request_resource\030\203\307\353\203\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.RegionSetPolicyRe" - + "questB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n" - + "(SetIamPolicyNetworkFirewallPolicyReques" - + "t\022d\n\"global_set_policy_request_resource\030" - + "\262\347\333\240\001 \001(\0132/.google.cloud.compute.v1.Glob" - + "alSetPolicyRequestB\003\340A\002\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\311\001\n\034S" - + "etIamPolicyNodeGroupRequest\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024" - + "\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n zone_set_policy_" - + "request_resource\030\273\270\230\266\001 \001(\0132-.google.clou" - + "d.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\322" - + "\001\n\037SetIamPolicyNodeTemplateRequest\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003" - + "\340A\002\022d\n\"region_set_policy_request_resourc" - + "e\030\203\307\353\203\001 \001(\0132/.google.cloud.compute.v1.Re", - "gionSetPolicyRequestB\003\340A\002\022\030\n\010resource\030\216\210" - + "\257] \001(\tB\003\340A\002\"\332\001\n\'SetIamPolicyRegionBacken" - + "dServiceRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" - + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_set_p" - + "olicy_request_resource\030\203\307\353\203\001 \001(\0132/.googl" - + "e.cloud.compute.v1.RegionSetPolicyReques" - + "tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\320\001\n\035Set" - + "IamPolicyRegionDiskRequest\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"r" - + "egion_set_policy_request_resource\030\203\307\353\203\001 " - + "\001(\0132/.google.cloud.compute.v1.RegionSetP" - + "olicyRequestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003" - + "\340A\002\"\333\001\n(SetIamPolicyRegionInstantSnapsho" - + "tRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" - + "ion\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_set_policy_r" - + "equest_resource\030\203\307\353\203\001 \001(\0132/.google.cloud" - + ".compute.v1.RegionSetPolicyRequestB\003\340A\002\022" - + "\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\341\001\n.SetIamPoli" - + "cyRegionNetworkFirewallPolicyRequest\022\027\n\007" - + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" - + "B\003\340A\002\022d\n\"region_set_policy_request_resou" - + "rce\030\203\307\353\203\001 \001(\0132/.google.cloud.compute.v1." - + "RegionSetPolicyRequestB\003\340A\002\022\030\n\010resource\030" - + "\216\210\257] \001(\tB\003\340A\002\"\313\001\n\036SetIamPolicyReservatio" - + "nRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" - + "ource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A" - + "\002\022`\n zone_set_policy_request_resource\030\273\270" - + "\230\266\001 \001(\0132-.google.cloud.compute.v1.ZoneSe" - + "tPolicyRequestB\003\340A\002\"\324\001\n!SetIamPolicyReso" - + "urcePolicyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" - + "A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_set" - + "_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.RegionSetPolicyRequ" - + "estB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n$S" - + "etIamPolicyServiceAttachmentRequest\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022d\n\"region_set_policy_request_resour" - + "ce\030\203\307\353\203\001 \001(\0132/.google.cloud.compute.v1.R" - + "egionSetPolicyRequestB\003\340A\002\022\030\n\010resource\030\216" - + "\210\257] \001(\tB\003\340A\002\"\266\001\n\033SetIamPolicySnapshotReq" - + "uest\022d\n\"global_set_policy_request_resour" - + "ce\030\262\347\333\240\001 \001(\0132/.google.cloud.compute.v1.G" - + "lobalSetPolicyRequestB\003\340A\002\022\027\n\007project\030\231\226" - + "\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001" - + "\n\036SetIamPolicyStoragePoolRequest\022\027\n\007proj" + + "urce\030\216\210\257] \001(\tB\003\340A\002\"\311\001\n\034SetIamPolicyNodeG" + + "roupRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010" + + "resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB" + + "\003\340A\002\022`\n zone_set_policy_request_resource" + + "\030\273\270\230\266\001 \001(\0132-.google.cloud.compute.v1.Zon" + + "eSetPolicyRequestB\003\340A\002\"\322\001\n\037SetIamPolicyN" + + "odeTemplateRequest\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_se" + + "t_policy_request_resource\030\203\307\353\203\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.RegionSetPolicyReq" + + "uestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\332\001\n\'" + + "SetIamPolicyRegionBackendServiceRequest\022" + + "\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B " + + "\001(\tB\003\340A\002\022d\n\"region_set_policy_request_re" + + "source\030\203\307\353\203\001 \001(\0132/.google.cloud.compute." + + "v1.RegionSetPolicyRequestB\003\340A\002\022\030\n\010resour" + + "ce\030\216\210\257] \001(\tB\003\340A\002\"\320\001\n\035SetIamPolicyRegionD" + + "iskRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006r" + + "egion\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_set_policy" + + "_request_resource\030\203\307\353\203\001 \001(\0132/.google.clo" + + "ud.compute.v1.RegionSetPolicyRequestB\003\340A" + + "\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n(SetIamPo" + + "licyRegionInstantSnapshotRequest\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" + + "\002\022d\n\"region_set_policy_request_resource\030" + + "\203\307\353\203\001 \001(\0132/.google.cloud.compute.v1.Regi" + + "onSetPolicyRequestB\003\340A\002\022\030\n\010resource\030\216\210\257]" + + " \001(\tB\003\340A\002\"\341\001\n.SetIamPolicyRegionNetworkF" + + "irewallPolicyRequest\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n\"region_" + + "set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." + + "google.cloud.compute.v1.RegionSetPolicyR" + + "equestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001" + + "\n\036SetIamPolicyReservationRequest\022\027\n\007proj" + "ect\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003" + "\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n zone_set_po" + "licy_request_resource\030\273\270\230\266\001 \001(\0132-.google" + ".cloud.compute.v1.ZoneSetPolicyRequestB\003" - + "\340A\002\"\320\001\n\035SetIamPolicySubnetworkRequest\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(" - + "\tB\003\340A\002\022d\n\"region_set_policy_request_reso" - + "urce\030\203\307\353\203\001 \001(\0132/.google.cloud.compute.v1" - + ".RegionSetPolicyRequestB\003\340A\002\022\030\n\010resource" - + "\030\216\210\257] \001(\tB\003\340A\002\"\336\002\n.SetInstanceTemplateIn" - + "stanceGroupManagerRequest\022&\n\026instance_gr" - + "oup_manager\030\303\367\363v \001(\tB\003\340A\002\022\230\001\n>instance_g" - + "roup_managers_set_instance_template_requ" - + "est_resource\030\305\331\326\004 \001(\0132H.google.cloud.com" - + "pute.v1.InstanceGroupManagersSetInstance" - + "TemplateRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" - + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" - + "\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_req" - + "uest_id\"\344\002\n4SetInstanceTemplateRegionIns" - + "tanceGroupManagerRequest\022&\n\026instance_gro" - + "up_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" - + "\340A\002\362G\006region\022\224\001\ninstance_group_managers_se" + + "t_instance_template_request_resource\030\305\331\326" + + "\004 \001(\0132H.google.cloud.compute.v1.Instance" + + "GroupManagersSetInstanceTemplateRequestB" + + "\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001" + + " \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\344\002\n4SetI" + + "nstanceTemplateRegionInstanceGroupManage" + + "rRequest\022&\n\026instance_group_manager\030\303\367\363v " + + "\001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" + + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\224\001\n" + + ".google.cloud.compute.v1.TargetSsl" - + "ProxiesSetProxyHeaderRequestB\003\340A\002\022!\n\020tar" - + "get_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_request" - + "_id\"\235\002\n#SetProxyHeaderTargetTcpProxyRequ" - + "est\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\204\001\n4target_tc" - + "p_proxies_set_proxy_header_request_resou" - + "rce\030\303\230\361h \001(\0132>.google.cloud.compute.v1.T" - + "argetTcpProxiesSetProxyHeaderRequestB\003\340A" - + "\002\022!\n\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013" - + "_request_id\"\247\002\n&SetQuicOverrideTargetHtt" - + "psProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" - + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001" - + "\n7target_https_proxies_set_quic_override" - + "_request_resource\030\342\365\343\" \001(\0132A.google.clou" - + "d.compute.v1.TargetHttpsProxiesSetQuicOv" - + "errideRequestB\003\340A\002\022\"\n\022target_https_proxy" - + "\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\356\001\n\034SetSch" - + "edulingInstanceRequest\022\030\n\010instance\030\225\251\332\010 " - + "\001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n\023sched" - + "uling_resource\030\331\254\356\334\001 \001(\0132#.google.cloud." - + "compute.v1.SchedulingB\003\340A\002\022\033\n\004zone\030\254\307\344\001 " - + "\001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\376\001\n&SetSe" - + "curityPolicyBackendServiceRequest\022 \n\017bac" - + "kend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231" - + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001\022d\n\"security_policy_reference_" - + "resource\030\360\264\253a \001(\01320.google.cloud.compute" - + ".v1.SecurityPolicyReferenceB\003\340A\002B\r\n\013_req" - + "uest_id\"\243\002\n SetSecurityPolicyInstanceReq" - + "uest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022z\n.instan" - + "ces_set_security_policy_request_resource" - + "\030\212\321\272v \001(\0132:.google.cloud.compute.v1.Inst" - + "ancesSetSecurityPolicyRequestB\003\340A\002\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362" - + "G\004zoneB\r\n\013_request_id\"\245\002\n,SetSecurityPol" - + "icyRegionBackendServiceRequest\022 \n\017backen" - + "d_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" - + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022d\n\"security_policy_reference_resource\030\360" - + "\264\253a \001(\01320.google.cloud.compute.v1.Securi" - + "tyPolicyReferenceB\003\340A\002B\r\n\013_request_id\"\233\002" - + "\n&SetSecurityPolicyTargetInstanceRequest" - + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"security_poli" - + "cy_reference_resource\030\360\264\253a \001(\01320.google." - + "cloud.compute.v1.SecurityPolicyReference" - + "B\003\340A\002\022 \n\017target_instance\030\203\217\226\212\001 \001(\tB\003\340A\002\022" - + "\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request" - + "_id\"\226\002\n\"SetSecurityPolicyTargetPoolReque" - + "st\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"security_policy_re" - + "ference_resource\030\360\264\253a \001(\01320.google.cloud" - + ".compute.v1.SecurityPolicyReferenceB\003\340A\002" - + "\022\033\n\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n\013_reques" - + "t_id\"\244\002\n SetServiceAccountInstanceReques" - + "t\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022{\n.instances" - + "_set_service_account_request_resource\030\270\236" - + "\262\203\001 \001(\0132:.google.cloud.compute.v1.Instan" - + "cesSetServiceAccountRequestB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_i" - + "d\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004" - + "zoneB\r\n\013_request_id\"\260\002\n1SetShieldedInsta" - + "nceIntegrityPolicyInstanceRequest\022\030\n\010ins" - + "tance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + + "B\003\340A\002B\r\n\013_request_id\"\251\002\n\"SetMachineResou" + + "rcesInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "B\003\340A\002\022~\n0instances_set_machine_resources" + + "_request_resource\030\356\256\314] \001(\0132<.google.clou", + "d.compute.v1.InstancesSetMachineResource" + + "sRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" + + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" + + "\"\232\002\n\035SetMachineTypeInstanceRequest\022\030\n\010in" + + "stance\030\225\251\332\010 \001(\tB\003\340A\002\022t\n+instances_set_ma" + + "chine_type_request_resource\030\215\307\230y \001(\01327.g" + + "oogle.cloud.compute.v1.InstancesSetMachi" + + "neTypeRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reque" + + "st_id\"\350\001\n\032SetMetadataInstanceRequest\022\030\n\010" + + "instance\030\225\251\332\010 \001(\tB\003\340A\002\022E\n\021metadata_resou" + + "rce\030\236\276\346\212\001 \001(\0132!.google.cloud.compute.v1." + + "MetadataB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" + + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" + + "\"\244\002\n SetMinCpuPlatformInstanceRequest\022\030\n" + + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022{\n/instances_set" + + "_min_cpu_platform_request_resource\030\350\236\345F " + + "\001(\0132:.google.cloud.compute.v1.InstancesS" + + "etMinCpuPlatformRequestB\003\340A\002\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zone" + + "B\r\n\013_request_id\"\205\002\n\026SetNameInstanceReque" + + "st\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022f\n#instance" + + "s_set_name_request_resource\030\324\300\336\201\001 \001(\01320." + + "google.cloud.compute.v1.InstancesSetName" + + "RequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"" + + "\256\002\n!SetNamedPortsInstanceGroupRequest\022\036\n" + + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022~\n0instanc" + + "e_groups_set_named_ports_request_resourc" + + "e\030\257\344\323\267\001 \001(\0132;.google.cloud.compute.v1.In" + + "stanceGroupsSetNamedPortsRequestB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340" + + "A\002\362G\004zoneB\r\n\013_request_id\"\304\002\n\'SetNamedPor" + + "tsRegionInstanceGroupRequest\022\036\n\016instance" + + "_group\030\325\324\325& \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362" + + "G\006region\022\211\001\n7region_instance_groups_set_" + + "named_ports_request_resource\030\232\220` \001(\0132A.g" + + "oogle.cloud.compute.v1.RegionInstanceGro" + + "upsSetNamedPortsRequestB\003\340A\002\022\032\n\nrequest_" + + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\244\002\n\037SetN" + + "odeTemplateNodeGroupRequest\022\033\n\nnode_grou" + + "p\030\202\374\213\340\001 \001(\tB\003\340A\002\022y\n.node_groups_set_node" + + "_template_request_resource\030\261\271\3747 \001(\01329.go" + + "ogle.cloud.compute.v1.NodeGroupsSetNodeT" + + "emplateRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB" + "\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" - + "\001\001\022v\n+shielded_instance_integrity_policy" - + "_resource\030\266\334\215\303\001 \001(\01328.google.cloud.compu" - + "te.v1.ShieldedInstanceIntegrityPolicyB\003\340" - + "A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_requ" - + "est_id\"\345\002\n/SetSslCertificatesRegionTarge" - + "tHttpsProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" - + "region\022\236\001\nAregion_target_https_proxies_s" - + "et_ssl_certificates_request_resource\030\207\204\246" - + "\272\001 \001(\0132J.google.cloud.compute.v1.RegionT" - + "argetHttpsProxiesSetSslCertificatesReque" - + "stB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022t" - + "arget_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_requ" - + "est_id\"\260\002\n)SetSslCertificatesTargetHttps" - + "ProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n:" - + "target_https_proxies_set_ssl_certificate" - + "s_request_resource\030\334\253\262j \001(\0132D.google.clo" - + "ud.compute.v1.TargetHttpsProxiesSetSslCe" - + "rtificatesRequestB\003\340A\002\022\"\n\022target_https_p" - + "roxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\251\002\n\'Se" - + "tSslCertificatesTargetSslProxyRequest\022!\n" + + "\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_requ" + + "est_id\"\311\002\n)SetPrivateIpGoogleAccessSubne" + + "tworkRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\nsubnetwo" + + "rk\030\356\247\344\222\001 \001(\tB\003\340A\002\022\217\001\n9subnetworks_set_pr" + + "ivate_ip_google_access_request_resource\030" + + "\370\316\235\200\001 \001(\0132C.google.cloud.compute.v1.Subn" + + "etworksSetPrivateIpGoogleAccessRequestB\003" + + "\340A\002B\r\n\013_request_id\"\235\002\n#SetProxyHeaderTar" + + "getSslProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\204\001\n4target_ssl_proxies_set_proxy_heade" + + "r_request_resource\030\256\311\361a \001(\0132>.google.clo" + + "ud.compute.v1.TargetSslProxiesSetProxyHe" + + "aderRequestB\003\340A\002\022!\n\020target_ssl_proxy\030\315\272\306" + + "\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\235\002\n#SetProxyH" + + "eaderTargetTcpProxyRequest\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\000\210\001\001\022\204\001\n4target_tcp_proxies_set_pro" + + "xy_header_request_resource\030\303\230\361h \001(\0132>.go" + + "ogle.cloud.compute.v1.TargetTcpProxiesSe" + + "tProxyHeaderRequestB\003\340A\002\022!\n\020target_tcp_p" + + "roxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\247\002\n&S" + + "etQuicOverrideTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequ" - + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n8target_ssl_prox" - + "ies_set_ssl_certificates_request_resourc" - + "e\030\275\313\305F \001(\0132B.google.cloud.compute.v1.Tar" - + "getSslProxiesSetSslCertificatesRequestB\003" - + "\340A\002\022!\n\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r" - + "\n\013_request_id\"\363\001\n#SetSslPolicyTargetHttp" - + "sProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" - + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n\035" - + "ssl_policy_reference_resource\030\274\364\237p \001(\0132+" - + ".google.cloud.compute.v1.SslPolicyRefere" - + "nceB\003\340A\002\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB" - + "\003\340A\002B\r\n\013_request_id\"\360\001\n!SetSslPolicyTarg" - + "etSslProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n7target_https_pr" + + "oxies_set_quic_override_request_resource" + + "\030\342\365\343\" \001(\0132A.google.cloud.compute.v1.Targ" + + "etHttpsProxiesSetQuicOverrideRequestB\003\340A" + + "\002\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + + "\013_request_id\"\356\001\n\034SetSchedulingInstanceRe" + + "quest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n\023scheduling_resource\030\331\254" + + "\356\334\001 \001(\0132#.google.cloud.compute.v1.Schedu" + + "lingB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r" + + "\n\013_request_id\"\376\001\n&SetSecurityPolicyBacke" + + "ndServiceRequest\022 \n\017backend_service\030\212\300\256\222" + + "\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"sec" + + "urity_policy_reference_resource\030\360\264\253a \001(\013" + + "20.google.cloud.compute.v1.SecurityPolic" + + "yReferenceB\003\340A\002B\r\n\013_request_id\"\243\002\n SetSe" + + "curityPolicyInstanceRequest\022\030\n\010instance\030" + + "\225\251\332\010 \001(\tB\003\340A\002\022z\n.instances_set_security_" + + "policy_request_resource\030\212\321\272v \001(\0132:.googl" + + "e.cloud.compute.v1.InstancesSetSecurityP" + + "olicyRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "\022Z\n\035ssl_policy_reference_resource\030\274\364\237p \001" - + "(\0132+.google.cloud.compute.v1.SslPolicyRe" - + "ferenceB\003\340A\002\022!\n\020target_ssl_proxy\030\315\272\306\241\001 \001" - + "(\tB\003\340A\002B\r\n\013_request_id\"\334\001\n\026SetTagsInstan" - + "ceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022=\n\rtags_resource\030\364\232\205\236" - + "\001 \001(\0132\035.google.cloud.compute.v1.TagsB\003\340A" - + "\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reque" - + "st_id\"\207\002\n\036SetTargetForwardingRuleRequest" - + "\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" - + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001\022T\n\031target_reference_resource\030" - + "\360\267\335\371\001 \001(\0132(.google.cloud.compute.v1.Targ" - + "etReferenceB\003\340A\002B\r\n\013_request_id\"\354\001\n$SetT" - + "argetGlobalForwardingRuleRequest\022 \n\017forw" - + "arding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226" - + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" - + " \001(\tH\000\210\001\001\022T\n\031target_reference_resource\030\360" - + "\267\335\371\001 \001(\0132(.google.cloud.compute.v1.Targe" - + "tReferenceB\003\340A\002B\r\n\013_request_id\"\320\002\n)SetTa" - + "rgetPoolsInstanceGroupManagerRequest\022&\n\026" - + "instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" - + "9instance_group_managers_set_target_pool" - + "s_request_resource\030\210\206\210\206\001 \001(\0132C.google.cl" - + "oud.compute.v1.InstanceGroupManagersSetT" - + "argetPoolsRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001" - + "(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" - + "H\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_r" - + "equest_id\"\346\002\n/SetTargetPoolsRegionInstan" - + "ceGroupManagerRequest\022&\n\026instance_group_" - + "manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" - + "\362G\006region\022\233\001\n@region_instance_group_mana" - + "gers_set_target_pools_request_resource\030\375" - + "\312\305% \001(\0132I.google.cloud.compute.v1.Region" - + "InstanceGroupManagersSetTargetPoolsReque" - + "stB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" - + "request_id\"\220\002\n%SetUrlMapRegionTargetHttp" - + "ProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" - + "project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region", - "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_h" - + "ttp_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n\032url_map_refer" - + "ence_resource\030\225\346\216\276\001 \001(\0132(.google.cloud.c" - + "ompute.v1.UrlMapReferenceB\003\340A\002B\r\n\013_reque" - + "st_id\"\222\002\n&SetUrlMapRegionTargetHttpsProx" - + "yRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https" - + "_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n\032url_map_referenc" - + "e_resource\030\225\346\216\276\001 \001(\0132(.google.cloud.comp" - + "ute.v1.UrlMapReferenceB\003\340A\002B\r\n\013_request_" - + "id\"\351\001\n\037SetUrlMapTargetHttpProxyRequest\022!" - + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\021target_http_pro" - + "xy\030\345\276\322b \001(\tB\003\340A\002\022U\n\032url_map_reference_re" - + "source\030\225\346\216\276\001 \001(\0132(.google.cloud.compute." - + "v1.UrlMapReferenceB\003\340A\002B\r\n\013_request_id\"\353" - + "\001\n SetUrlMapTargetHttpsProxyRequest\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https_proxy" - + "\030\354\260\372\030 \001(\tB\003\340A\002\022U\n\032url_map_reference_reso" - + "urce\030\225\346\216\276\001 \001(\0132(.google.cloud.compute.v1" - + ".UrlMapReferenceB\003\340A\002B\r\n\013_request_id\"\320\001\n" - + "\"SetUsageExportBucketProjectRequest\022!\n\007p" - + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\\\n\036usage_export_locat" - + "ion_resource\030\353\314\324\t \001(\0132,.google.cloud.com" - + "pute.v1.UsageExportLocationB\003\340A\002B\r\n\013_req" - + "uest_id\"\372\002\n\rShareSettings\022N\n\013project_map" - + "\030\266\326\377? \003(\01326.google.cloud.compute.v1.Shar" - + "eSettings.ProjectMapEntry\022\033\n\nshare_type\030" - + "\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n\017ProjectMapEntry\022\013\n\003key" - + "\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.cloud.com" - + "pute.v1.ShareSettingsProjectConfig:\0028\001\"\204" - + "\001\n\tShareType\022\030\n\024UNDEFINED_SHARE_TYPE\020\000\022\014" - + "\n\005LOCAL\020\313\316\317\"\022\024\n\014ORGANIZATION\020\263\252\217\203\001\022\036\n\026SH" - + "ARE_TYPE_UNSPECIFIED\020\222\274\366\353\001\022\031\n\021SPECIFIC_P" - + "ROJECTS\020\347\261\356\245\001B\r\n\013_share_type\"G\n\032ShareSet" - + "tingsProjectConfig\022\032\n\nproject_id\030\201\310\322T \001(" - + "\tH\000\210\001\001B\r\n\013_project_id\"\316\001\n\026ShieldedInstan" - + "ceConfig\022,\n\033enable_integrity_monitoring\030" - + "\266\333\207\303\001 \001(\010H\000\210\001\001\022\"\n\022enable_secure_boot\030\376\203\366" - + ": \001(\010H\001\210\001\001\022\033\n\013enable_vtpm\030\367\344\333V \001(\010H\002\210\001\001B" - + "\036\n\034_enable_integrity_monitoringB\025\n\023_enab" - + "le_secure_bootB\016\n\014_enable_vtpm\"\213\002\n\030Shiel" - + "dedInstanceIdentity\022W\n\016encryption_key\030\243\307" - + "\351\350\001 \001(\01326.google.cloud.compute.v1.Shield" - + "edInstanceIdentityEntryH\000\210\001\001\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\001\210\001\001\022T\n\013signing_key\030\245\220\205\231\001 \001(\01326.go" - + "ogle.cloud.compute.v1.ShieldedInstanceId" - + "entityEntryH\002\210\001\001B\021\n\017_encryption_keyB\007\n\005_" - + "kindB\016\n\014_signing_key\"i\n\035ShieldedInstance" - + "IdentityEntry\022\030\n\007ek_cert\030\235\334\324\326\001 \001(\tH\000\210\001\001\022" - + "\027\n\006ek_pub\030\344\327\250\223\001 \001(\tH\001\210\001\001B\n\n\010_ek_certB\t\n\007" - + "_ek_pub\"h\n\037ShieldedInstanceIntegrityPoli" - + "cy\022(\n\030update_auto_learn_policy\030\247\304\207u \001(\010H" - + "\000\210\001\001B\033\n\031_update_auto_learn_policy\"`\n\014Sig" - + "nedUrlKey\022\031\n\010key_name\030\353\360\356\356\001 \001(\tH\000\210\001\001\022\032\n\t" - + "key_value\030\221\237\260\360\001 \001(\tH\001\210\001\001B\013\n\t_key_nameB\014\n" - + "\n_key_value\"\374\001\n\'SimulateMaintenanceEvent" - + "InstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A" - + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022,\n\033with_extende" - + "d_notifications\030\373\327\311\301\001 \001(\010H\001\210\001\001\022\033\n\004zone\030\254" - + "\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_idB\036\n\034_w" - + "ith_extended_notifications\"\301\002\n(SimulateM" - + "aintenanceEventNodeGroupRequest\022\033\n\nnode_" - + "group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n7node_groups_sim" - + "ulate_maintenance_event_request_resource" - + "\030\334\371\313\247\001 \001(\0132B.google.cloud.compute.v1.Nod" - + "eGroupsSimulateMaintenanceEventRequestB\003" - + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 " - + "\001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\237\024\n\010Snaps" - + "hot\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\035\n\014au" - + "to_created\030\330\310\233\335\001 \001(\010H\001\210\001\001\022\032\n\nchain_name\030" - + "\311\332\335 \001(\tH\002\210\001\001\022#\n\023creation_size_bytes\030\215\350\345" - + "; \001(\003H\003\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(" - + "\tH\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\035\n\014" - + "disk_size_gb\030\267\232\347\226\001 \001(\003H\006\210\001\001\022\037\n\016download_" - + "bytes\030\364\313\271\317\001 \001(\003H\007\210\001\001\022+\n\033enable_confident" - + "ial_compute\030\274\353\3310 \001(\010H\010\210\001\001\022E\n\021guest_os_fe" - + "atures\030\321\340\347% \003(\0132\'.google.cloud.compute.v" - + "1.GuestOsFeature\022\020\n\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n\004ki" - + "nd\030\224\367\310\001 \001(\tH\n\210\001\001\022!\n\021label_fingerprint\030\231\360" - + "\367T \001(\tH\013\210\001\001\022A\n\006labels\030\377\277\301\356\001 \003(\0132-.google" - + ".cloud.compute.v1.Snapshot.LabelsEntry\022\030" - + "\n\rlicense_codes\030\250\205\330\025 \003(\003\022\024\n\010licenses\030\322\210\200" - + "\241\001 \003(\t\022\036\n\rlocation_hint\030\321\201\222\247\001 \001(\tH\014\210\001\001\022\024" - + "\n\004name\030\213\365\315\001 \001(\tH\r\210\001\001\022\036\n\rsatisfies_pzi\030\241\335" - + "\253\345\001 \001(\010H\016\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H" - + "\017\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022W\n\027snap" - + "shot_encryption_key\030\376\366\324\024 \001(\0132..google.cl" - + "oud.compute.v1.CustomerEncryptionKeyH\021\210\001" - + "\001\022\035\n\rsnapshot_type\030\325\331\245; \001(\tH\022\210\001\001\022\034\n\013sour" - + "ce_disk\030\301\356\264\327\001 \001(\tH\023\210\001\001\022[\n\032source_disk_en" - + "cryption_key\030\341\240\270\375\001 \001(\0132..google.cloud.co" - + "mpute.v1.CustomerEncryptionKeyH\024\210\001\001\0224\n#s" - + "ource_disk_for_recovery_checkpoint\030\376\341\312\253\001" - + " \001(\tH\025\210\001\001\022\037\n\016source_disk_id\030\331\315\311\330\001 \001(\tH\026\210" - + "\001\001\022\'\n\027source_instant_snapshot\030\206\204\303h \001(\tH\027" - + "\210\001\001\022g\n&source_instant_snapshot_encryptio" - + "n_key\030\374\205\224\320\001 \001(\0132..google.cloud.compute.v" - + "1.CustomerEncryptionKeyH\030\210\001\001\022+\n\032source_i" - + "nstant_snapshot_id\030\364\323\220\211\001 \001(\tH\031\210\001\001\022/\n\037sou" - + "rce_snapshot_schedule_policy\030\203\266\265p \001(\tH\032\210" - + "\001\001\0222\n\"source_snapshot_schedule_policy_id" - + "\030\327\247\316! \001(\tH\033\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\034\210\001\001\022\036" - + "\n\rstorage_bytes\030\247\273\275\312\001 \001(\003H\035\210\001\001\022%\n\024storag" - + "e_bytes_status\030\212\253\200\352\001 \001(\tH\036\210\001\001\022\035\n\021storage" - + "_locations\030\232\355\263\234\001 \003(\t\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\014Architect" - + "ure\022\032\n\026UNDEFINED_ARCHITECTURE\020\000\022 \n\030ARCHI" - + "TECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022" - + "\016\n\006X86_64\020\307\244\346\312\001\"N\n\014SnapshotType\022\033\n\027UNDEF" - + "INED_SNAPSHOT_TYPE\020\000\022\017\n\007ARCHIVE\020\242\331\321\361\001\022\020\n" - + "\010STANDARD\020\275\235\214\347\001\"r\n\006Status\022\024\n\020UNDEFINED_S" - + "TATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247" - + "\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%\022\020\n\tUPL" - + "OADING\020\241\234\315\177\"]\n\022StorageBytesStatus\022\"\n\036UND" - + "EFINED_STORAGE_BYTES_STATUS\020\000\022\020\n\010UPDATIN" - + "G\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470B\017\n\r_architect" - + "ureB\017\n\r_auto_createdB\r\n\013_chain_nameB\026\n\024_" - + "creation_size_bytesB\025\n\023_creation_timesta" - + "mpB\016\n\014_descriptionB\017\n\r_disk_size_gbB\021\n\017_" - + "download_bytesB\036\n\034_enable_confidential_c" - + "omputeB\005\n\003_idB\007\n\005_kindB\024\n\022_label_fingerp" - + "rintB\020\n\016_location_hintB\007\n\005_nameB\020\n\016_sati" - + "sfies_pziB\020\n\016_satisfies_pzsB\014\n\n_self_lin" - + "kB\032\n\030_snapshot_encryption_keyB\020\n\016_snapsh" - + "ot_typeB\016\n\014_source_diskB\035\n\033_source_disk_" - + "encryption_keyB&\n$_source_disk_for_recov" - + "ery_checkpointB\021\n\017_source_disk_idB\032\n\030_so" - + "urce_instant_snapshotB)\n\'_source_instant" - + "_snapshot_encryption_keyB\035\n\033_source_inst" - + "ant_snapshot_idB\"\n _source_snapshot_sche" - + "dule_policyB%\n#_source_snapshot_schedule" - + "_policy_idB\t\n\007_statusB\020\n\016_storage_bytesB" - + "\027\n\025_storage_bytes_status\"\241\002\n\014SnapshotLis" - + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132!." - + "google.cloud.compute.v1.Snapshot\022\024\n\004kind" - + "\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001" - + "(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007w" - + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" - + "1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" - + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\214\001\n" - + "\020SnapshotSettings\022c\n\020storage_location\030\371\321" - + "\340\333\001 \001(\0132@.google.cloud.compute.v1.Snapsh" - + "otSettingsStorageLocationSettingsH\000\210\001\001B\023" - + "\n\021_storage_location\"\336\003\n\'SnapshotSettings" - + "StorageLocationSettings\022f\n\tlocations\030\336\256\221" - + "\305\001 \003(\0132O.google.cloud.compute.v1.Snapsho" - + "tSettingsStorageLocationSettings.Locatio" - + "nsEntry\022\026\n\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n\016Loca" - + "tionsEntry\022\013\n\003key\030\001 \001(\t\022h\n\005value\030\002 \001(\0132Y" - + ".google.cloud.compute.v1.SnapshotSetting" - + "sStorageLocationSettingsStorageLocationP" - + "reference:\0028\001\"\231\001\n\006Policy\022\024\n\020UNDEFINED_PO" - + "LICY\020\000\022\024\n\014LOCAL_REGION\020\350\354\265\300\001\022\033\n\024NEAREST_" - + "MULTI_REGION\020\273\376\247e\022\032\n\022SPECIFIC_LOCATIONS\020" - + "\361\310\307\205\001\022*\n#STORAGE_LOCATION_POLICY_UNSPECI" - + "FIED\020\360\220\302wB\t\n\007_policy\"a\n@SnapshotSettings" - + "StorageLocationSettingsStorageLocationPr" - + "eference\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n\005_name\"" - + "\265\001\n\027SourceDiskEncryptionKey\022T\n\023disk_encr" - + "yption_key\030\205\355\304\201\001 \001(\0132..google.cloud.comp" - + "ute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n\013sou" - + "rce_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n\024_disk_encrypt" - + "ion_keyB\016\n\014_source_disk\"a\n\024SourceInstanc" - + "eParams\022I\n\014disk_configs\030\317\331\252p \003(\01320.googl" - + "e.cloud.compute.v1.DiskInstantiationConf" - + "ig\"\361\010\n\030SourceInstanceProperties\022\037\n\016can_i" - + "p_forward\030\374\206\204\337\001 \001(\010H\000\210\001\001\022$\n\023deletion_pro" - + "tection\030\352\377\262\332\001 \001(\010H\001\210\001\001\022\034\n\013description\030\374\207" - + "\326\311\001 \001(\tH\002\210\001\001\022<\n\005disks\030\366\314\312- \003(\0132*.google." - + "cloud.compute.v1.SavedAttachedDisk\022J\n\022gu" - + "est_accelerators\030\357\314\207\335\001 \003(\0132*.google.clou" - + "d.compute.v1.AcceleratorConfig\022*\n\032key_re" - + "vocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n\006la" - + "bels\030\377\277\301\356\001 \003(\0132=.google.cloud.compute.v1" - + ".SourceInstanceProperties.LabelsEntry\022\034\n" - + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n\010metadata\030" - + "\257\366\265) \001(\0132!.google.cloud.compute.v1.Metad" - + "ataH\005\210\001\001\022 \n\020min_cpu_platform\030\367\233\352s \001(\tH\006\210" - + "\001\001\022H\n\022network_interfaces\030\213\332\222\031 \003(\0132).goog" - + "le.cloud.compute.v1.NetworkInterface\022@\n\n" - + "scheduling\030\224\313\261\270\001 \001(\0132#.google.cloud.comp" - + "ute.v1.SchedulingH\007\210\001\001\022E\n\020service_accoun" - + "ts\030\260\304\253\204\001 \003(\0132\'.google.cloud.compute.v1.S" - + "erviceAccount\0223\n\004tags\030\231\350\330\001 \001(\0132\035.google." - + "cloud.compute.v1.TagsH\010\210\001\001\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\215\001\n\027Ke" - + "yRevocationActionType\022(\n$UNDEFINED_KEY_R" - + "EVOCATION_ACTION_TYPE\020\000\022.\n&KEY_REVOCATIO" - + "N_ACTION_TYPE_UNSPECIFIED\020\332\221\336\336\001\022\013\n\004NONE\020" - + "\270\316\222\001\022\013\n\004STOP\020\202\200\234\001B\021\n\017_can_ip_forwardB\026\n\024" - + "_deletion_protectionB\016\n\014_descriptionB\035\n\033" - + "_key_revocation_action_typeB\017\n\r_machine_" - + "typeB\013\n\t_metadataB\023\n\021_min_cpu_platformB\r" - + "\n\013_schedulingB\007\n\005_tags\"\240\006\n\016SslCertificat" - + "e\022\034\n\013certificate\030\227\203\375\242\001 \001(\tH\000\210\001\001\022\"\n\022creat" - + "ion_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013descripti" - + "on\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\034\n\013expire_time\030\355\323\221\322\001 \001" - + "(\tH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\005\210\001\001\022V\n\007managed\030\237\237\244\216\001 \001(\0132<.google.cl" - + "oud.compute.v1.SslCertificateManagedSslC" - + "ertificateH\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" - + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n\006region\030\364\315" - + "\240B \001(\tH\t\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022" - + "_\n\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud" - + ".compute.v1.SslCertificateSelfManagedSsl" - + "CertificateH\013\210\001\001\022%\n\031subject_alternative_" - + "names\030\343\357\223\374\001 \003(\t\022\024\n\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" - + "\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\017\n\007MANAGED\020\377\266\322" - + "\344\001\022\024\n\014SELF_MANAGED\020\214\373\223\317\001\022\030\n\020TYPE_UNSPECI" - + "FIED\020\222\373\333\320\001B\016\n\014_certificateB\025\n\023_creation_" - + "timestampB\016\n\014_descriptionB\016\n\014_expire_tim" - + "eB\005\n\003_idB\007\n\005_kindB\n\n\010_managedB\007\n\005_nameB\016" - + "\n\014_private_keyB\t\n\007_regionB\014\n\n_self_linkB" - + "\017\n\r_self_managedB\007\n\005_type\"\313\003\n\034SslCertifi" - + "cateAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005" - + "items\030\300\317\367/ \003(\0132@.google.cloud.compute.v1" - + ".SslCertificateAggregatedList.ItemsEntry" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030" - + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warni" - + "ngH\004\210\001\001\032`\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005va" - + "lue\030\002 \001(\01322.google.cloud.compute.v1.SslC" - + "ertificatesScopedList:\0028\001B\005\n\003_idB\007\n\005_kin" - + "dB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_" - + "warning\"\255\002\n\022SslCertificateList\022\020\n\002id\030\233\032 " - + "\001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.clou" - + "d.compute.v1.SslCertificate\022\024\n\004kind\030\224\367\310\001" - + " \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210" - + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warnin" - + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" - + "ningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_" - + "tokenB\014\n\n_self_linkB\n\n\010_warning\"\320\003\n#SslC" - + "ertificateManagedSslCertificate\022i\n\rdomai" - + "n_status\030\315\247\347\253\001 \003(\0132N.google.cloud.comput" - + "e.v1.SslCertificateManagedSslCertificate" - + ".DomainStatusEntry\022\022\n\007domains\030\257\210\233l \003(\t\022\026" - + "\n\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n\021DomainStatusEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\006" - + "Status\022\024\n\020UNDEFINED_STATUS\020\000\022\016\n\006ACTIVE\020\206" - + "\346\211\226\001\022.\n&MANAGED_CERTIFICATE_STATUS_UNSPE" - + "CIFIED\020\322\305\263\342\001\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\032\n\023PR" - + "OVISIONING_FAILED\020\317\253\320$\022\'\n\037PROVISIONING_F" - + "AILED_PERMANENTLY\020\253\360\222\203\001\022\026\n\016RENEWAL_FAILE" - + "D\020\204\276\241\317\001B\t\n\007_status\"\205\001\n\'SslCertificateSel" - + "fManagedSslCertificate\022\034\n\013certificate\030\227\203" - + "\375\242\001 \001(\tH\000\210\001\001\022\034\n\013private_key\030\243\363\245\254\001 \001(\tH\001\210" - + "\001\001B\016\n\014_certificateB\016\n\014_private_key\"\251\001\n\031S" - + "slCertificatesScopedList\022E\n\020ssl_certific" - + "ates\030\217\242\303\256\001 \003(\0132\'.google.cloud.compute.v1" - + ".SslCertificate\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" - + "ogle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_w" - + "arning\"\340\003\n\031SslPoliciesAggregatedList\022\024\n\004" - + "etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022O\n\005" - + "items\030\300\317\367/ \003(\0132=.google.cloud.compute.v1" - + ".SslPoliciesAggregatedList.ItemsEntry\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225" - + "\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001" - + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" - + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" - + "\005\210\001\001\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value" - + "\030\002 \001(\0132..google.cloud.compute.v1.SslPoli" - + "ciesScopedList:\0028\001B\007\n\005_etagB\005\n\003_idB\007\n\005_k" - + "indB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n" - + "\010_warning\"\245\002\n\017SslPoliciesList\022\020\n\002id\030\233\032 \001" - + "(\tH\000\210\001\001\0224\n\005items\030\300\317\367/ \003(\0132\".google.cloud" - + ".compute.v1.SslPolicy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" - + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\t" - + "self_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030" - + " \001(\0132 .google.cloud.compute.v1.WarningH\004" - + "\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB" - + "\014\n\n_self_linkB\n\n\010_warning\"?\n(SslPolicies" - + "ListAvailableFeaturesResponse\022\023\n\010feature" - + "s\030\275\310\263u \003(\t\"\233\001\n\025SslPoliciesScopedList\022;\n\014" - + "ssl_policies\030\243\344\215d \003(\0132\".google.cloud.com" - + "pute.v1.SslPolicy\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010" - + "_warning\"\331\005\n\tSslPolicy\022\"\n\022creation_times" - + "tamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\032\n\017custom_features\030\313\262" - + "\313\020 \003(\t\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\020" - + "enabled_features\030\373\306\322\337\001 \003(\t\022\033\n\013fingerprin" - + "t\030\344\321\363o \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kin" - + "d\030\224\367\310\001 \001(\tH\004\210\001\001\022\037\n\017min_tls_version\030\247\346\361\003 " - + "\001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n\007profil" - + "e\030\251\223\272l \001(\tH\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\0227\n\010warnings\030" - + "\327\210\301\355\001 \003(\0132!.google.cloud.compute.v1.Warn" - + "ings\"^\n\rMinTlsVersion\022\035\n\031UNDEFINED_MIN_T" - + "LS_VERSION\020\000\022\016\n\007TLS_1_0\020\276\244\345\017\022\016\n\007TLS_1_1\020" - + "\277\244\345\017\022\016\n\007TLS_1_2\020\300\244\345\017\"e\n\007Profile\022\025\n\021UNDEF" - + "INED_PROFILE\020\000\022\021\n\nCOMPATIBLE\020\324\215\303U\022\016\n\006CUS" - + "TOM\020\361\376\245\271\001\022\r\n\006MODERN\020\237\276\371>\022\021\n\nRESTRICTED\020\333" - + "\350\333|B\025\n\023_creation_timestampB\016\n\014_descripti" - + "onB\016\n\014_fingerprintB\005\n\003_idB\007\n\005_kindB\022\n\020_m" - + "in_tls_versionB\007\n\005_nameB\n\n\010_profileB\t\n\007_" - + "regionB\014\n\n_self_link\"@\n\022SslPolicyReferen" - + "ce\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tH\000\210\001\001B\r\n\013_ssl_" - + "policy\"\240\002\n StartAsyncReplicationDiskRequ" - + "est\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022{\n.disks_start" - + "_async_replication_request_resource\030\332\236\300\340" - + "\001 \001(\0132:.google.cloud.compute.v1.DisksSta" - + "rtAsyncReplicationRequestB\003\340A\002\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" - + "neB\r\n\013_request_id\"\270\002\n&StartAsyncReplicat" - + "ionRegionDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340" - + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\210\001\n5regio" - + "n_disks_start_async_replication_request_" - + "resource\030\205\310\226\342\001 \001(\0132@.google.cloud.comput" - + "e.v1.RegionDisksStartAsyncReplicationReq" - + "uestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\233\001\n\024StartInstanceRequest\022\030\n" - + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l " + + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" + + "t_id\"\245\002\n,SetSecurityPolicyRegionBackendS" + + "erviceRequest\022 \n\017backend_service\030\212\300\256\222\001 \001" + + "(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"security_poli" + + "cy_reference_resource\030\360\264\253a \001(\01320.google." + + "cloud.compute.v1.SecurityPolicyReference" + + "B\003\340A\002B\r\n\013_request_id\"\233\002\n&SetSecurityPoli" + + "cyTargetInstanceRequest\022!\n\007project\030\231\226\301l " + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" - + "\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" - + "request_id\"\265\002\n%StartWithEncryptionKeyIns" - + "tanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206" - + "\001\n4instances_start_with_encryption_key_r" - + "equest_resource\030\377\376\317\322\001 \001(\0132?.google.cloud" - + ".compute.v1.InstancesStartWithEncryption" - + "KeyRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\tH\000\210\001\001\022d\n\"security_policy_reference_reso" + + "urce\030\360\264\253a \001(\01320.google.cloud.compute.v1." + + "SecurityPolicyReferenceB\003\340A\002\022 \n\017target_i" + + "nstance\030\203\217\226\212\001 \001(\tB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB" + + "\n\340A\002\362G\004zoneB\r\n\013_request_id\"\226\002\n\"SetSecuri" + + "tyPolicyTargetPoolRequest\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" + + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022d\n\"security_policy_reference_resource\030" + + "\360\264\253a \001(\01320.google.cloud.compute.v1.Secur" + + "ityPolicyReferenceB\003\340A\002\022\033\n\013target_pool\030\212" + + "\344\370\035 \001(\tB\003\340A\002B\r\n\013_request_id\"\244\002\n SetServi" + + "ceAccountInstanceRequest\022\030\n\010instance\030\225\251\332" + + "\010 \001(\tB\003\340A\002\022{\n.instances_set_service_acco" + + "unt_request_resource\030\270\236\262\203\001 \001(\0132:.google." + + "cloud.compute.v1.InstancesSetServiceAcco" + + "untRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033" + "\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_" - + "id\"|\n\016StatefulPolicy\022V\n\017preserved_state\030" - + "\252\342\240\001 \001(\01325.google.cloud.compute.v1.State" - + "fulPolicyPreservedStateH\000\210\001\001B\022\n\020_preserv" - + "ed_state\"\216\005\n\034StatefulPolicyPreservedStat" - + "e\022R\n\005disks\030\366\314\312- \003(\0132@.google.cloud.compu" - + "te.v1.StatefulPolicyPreservedState.Disks" - + "Entry\022a\n\rexternal_i_ps\030\215\323\200\376\001 \003(\0132F.googl" - + "e.cloud.compute.v1.StatefulPolicyPreserv" - + "edState.ExternalIPsEntry\022`\n\rinternal_i_p" - + "s\030\333\233\357f \003(\0132F.google.cloud.compute.v1.Sta" - + "tefulPolicyPreservedState.InternalIPsEnt" - + "ry\032m\n\nDisksEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002" - + " \001(\0132?.google.cloud.compute.v1.StatefulP" - + "olicyPreservedStateDiskDevice:\0028\001\032r\n\020Ext" - + "ernalIPsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(" - + "\0132>.google.cloud.compute.v1.StatefulPoli" - + "cyPreservedStateNetworkIp:\0028\001\032r\n\020Interna" - + "lIPsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>." - + "google.cloud.compute.v1.StatefulPolicyPr" - + "eservedStateNetworkIp:\0028\001\"\264\001\n&StatefulPo" - + "licyPreservedStateDiskDevice\022\034\n\013auto_del" - + "ete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDE" - + "FINED_AUTO_DELETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_" - + "PERMANENT_INSTANCE_DELETION\020\347\340\322-B\016\n\014_aut" - + "o_delete\"\263\001\n%StatefulPolicyPreservedStat" - + "eNetworkIp\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001" - + "\"\\\n\nAutoDelete\022\031\n\025UNDEFINED_AUTO_DELETE\020" - + "\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INSTANCE" - + "_DELETION\020\347\340\322-B\016\n\014_auto_delete\"x\n\006Status" - + "\022\024\n\004code\030\355\333\272\001 \001(\005H\000\210\001\001\022)\n\007details\030\302\344\343\346\001 " - + "\003(\0132\024.google.protobuf.Any\022\030\n\007message\030\207\200\254" - + "\307\001 \001(\tH\001\210\001\001B\007\n\005_codeB\n\n\010_message\"\242\001\n\037Sto" - + "pAsyncReplicationDiskRequest\022\024\n\004disk\030\235\233\274" - + "\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zon" - + "e\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\254\001" - + "\n%StopAsyncReplicationRegionDiskRequest\022" - + "\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(" - + "\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002" - + "\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\232\002\n$StopGroupAsyncReplicati" - + "onDiskRequest\022\206\001\n4disks_stop_group_async" - + "_replication_resource_resource\030\225\370\257\245\001 \001(\013" - + "2?.google.cloud.compute.v1.DisksStopGrou" - + "pAsyncReplicationResourceB\003\340A\002\022!\n\007projec" - + "t\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" - + "neB\r\n\013_request_id\"\244\002\n*StopGroupAsyncRepl" - + "icationRegionDiskRequest\022\206\001\n4disks_stop_" - + "group_async_replication_resource_resourc" - + "e\030\225\370\257\245\001 \001(\0132?.google.cloud.compute.v1.Di" - + "sksStopGroupAsyncReplicationResourceB\003\340A" - + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006" - + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\324\001\n\023Sto" - + "pInstanceRequest\022\"\n\021discard_local_ssd\030\317\351" - + "\255\230\001 \001(\010H\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!" - + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreq" - + "uest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\024\n\022_discard_local_ssdB\r\n\013_req" - + "uest_id\"\205\013\n\013StoragePool\022*\n\032capacity_prov" - + "isioning_type\030\207\212\375w \001(\tH\000\210\001\001\022\"\n\022creation_" - + "timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374" - + "\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030" - + "\224\367\310\001 \001(\tH\004\210\001\001\022!\n\021label_fingerprint\030\231\360\367T " - + "\001(\tH\005\210\001\001\022D\n\006labels\030\377\277\301\356\001 \003(\01320.google.cl" - + "oud.compute.v1.StoragePool.LabelsEntry\022\024" - + "\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022.\n\035performance_prov" - + "isioning_type\030\375\235\266\337\001 \001(\tH\007\210\001\001\022-\n\034pool_pro" - + "visioned_capacity_gb\030\322\317\227\344\001 \001(\003H\010\210\001\001\022%\n\025p", - "ool_provisioned_iops\030\227\311\2715 \001(\003H\t\210\001\001\022+\n\033po" - + "ol_provisioned_throughput\030\230\215\330P \001(\003H\n\210\001\001\022" - + "S\n\017resource_status\030\303\372\367v \001(\01322.google.clo" - + "ud.compute.v1.StoragePoolResourceStatusH" - + "\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022!\n\021self" - + "_link_with_id\030\202\254\235\025 \001(\tH\r\210\001\001\022\025\n\005state\030\221\211\253" - + "4 \001(\tH\016\210\001\001\022J\n\006status\030\362\237\267V \001(\01322.google.c" - + "loud.compute.v1.StoragePoolResourceStatu" - + "sH\017\210\001\001\022\"\n\021storage_pool_type\030\271\201\260\210\001 \001(\tH\020\210" - + "\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\021\210\001\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"D\n\030Capac" - + "ityProvisioningType\022(\n$UNDEFINED_CAPACIT" - + "Y_PROVISIONING_TYPE\020\000\"J\n\033PerformanceProv" - + "isioningType\022+\n\'UNDEFINED_PERFORMANCE_PR" - + "OVISIONING_TYPE\020\000\"^\n\005State\022\023\n\017UNDEFINED_" - + "STATE\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247" - + "\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%B\035\n\033_ca" - + "pacity_provisioning_typeB\025\n\023_creation_ti" - + "mestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB" - + "\024\n\022_label_fingerprintB\007\n\005_nameB \n\036_perfo" - + "rmance_provisioning_typeB\037\n\035_pool_provis" - + "ioned_capacity_gbB\030\n\026_pool_provisioned_i" - + "opsB\036\n\034_pool_provisioned_throughputB\022\n\020_" - + "resource_statusB\014\n\n_self_linkB\024\n\022_self_l" - + "ink_with_idB\010\n\006_stateB\t\n\007_statusB\024\n\022_sto" - + "rage_pool_typeB\007\n\005_zone\"\341\003\n\031StoragePoolA" - + "ggregatedList\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002i" - + "d\030\233\032 \001(\tH\001\210\001\001\022O\n\005items\030\300\317\367/ \003(\0132=.google" - + ".cloud.compute.v1.StoragePoolAggregatedL" - + "ist.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017" - + "next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unreachables\030\237\240\206t \003" - + "(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" - + "mpute.v1.WarningH\005\210\001\001\032]\n\nItemsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud.c" - + "ompute.v1.StoragePoolsScopedList:\0028\001B\007\n\005" - + "_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_toke" - + "nB\014\n\n_self_linkB\n\n\010_warning\"\340\004\n\017StorageP" - + "oolDisk\022\035\n\022attached_instances\030\243\363\216\037 \003(\t\022\"" - + "\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\024\n\004di" - + "sk\030\235\233\274\001 \001(\tH\001\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022 " - + "\n\020provisioned_iops\030\324\275\207Y \001(\003H\003\210\001\001\022\'\n\026prov" - + "isioned_throughput\030\225\276\210\373\001 \001(\003H\004\210\001\001\022\034\n\021res" - + "ource_policies\030\341\234\314\n \003(\t\022\030\n\007size_gb\030\331\213\200\354\001" - + " \001(\003H\005\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\006\210\001\001\022\024\n\004typ" - + "e\030\272\236\332\001 \001(\tH\007\210\001\001\022\032\n\nused_bytes\030\351\232\272n \001(\003H\010" - + "\210\001\001\"\210\001\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010" - + "CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAIL" - + "ED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%\022\021\n\tRESTORING\020\253\247\342\300" - + "\001\022\023\n\013UNAVAILABLE\020\260\330\245\305\001B\025\n\023_creation_time" - + "stampB\007\n\005_diskB\007\n\005_nameB\023\n\021_provisioned_" - + "iopsB\031\n\027_provisioned_throughputB\n\n\010_size" - + "_gbB\t\n\007_statusB\007\n\005_typeB\r\n\013_used_bytes\"\337" - + "\002\n\017StoragePoolList\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001" - + "\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\0226\n\005items\030\300\317\367/ \003(\0132$.g" - + "oogle.cloud.compute.v1.StoragePool\022\024\n\004ki" - + "nd\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272\206&" - + " \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" - + "\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001" - + "(\0132 .google.cloud.compute.v1.WarningH\005\210\001" - + "\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" - + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\350\002\n\024Sto" - + "ragePoolListDisks\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022" - + "\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.go" - + "ogle.cloud.compute.v1.StoragePoolDisk\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225" - + "\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001" - + "\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226" - + "\030 \001(\0132 .google.cloud.compute.v1.WarningH" - + "\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_next_p" - + "age_tokenB\014\n\n_self_linkB\n\n\010_warning\"\355\005\n\031" - + "StoragePoolResourceStatus\022\032\n\ndisk_count\030" - + "\355\257\235W \001(\003H\000\210\001\001\022&\n\025last_resize_timestamp\030\324" - + "\373\347\356\001 \001(\tH\001\210\001\001\0226\n&max_total_provisioned_d" - + "isk_capacity_gb\030\337\336\210O \001(\003H\002\210\001\001\022)\n\030pool_us" - + "ed_capacity_bytes\030\305\351\260\363\001 \001(\003H\003\210\001\001\022\036\n\016pool" - + "_used_iops\030\210\311\274/ \001(\003H\004\210\001\001\022$\n\024pool_used_th" - + "roughput\030\311\233\245b \001(\003H\005\210\001\001\022\'\n\027pool_user_writ" - + "ten_bytes\030\322\355\226m \001(\003H\006\210\001\001\0223\n\"total_provisi" - + "oned_disk_capacity_gb\030\244\215\263\370\001 \001(\003H\007\210\001\001\022+\n\033" - + "total_provisioned_disk_iops\030\205\334\322\017 \001(\003H\010\210\001" - + "\001\0222\n!total_provisioned_disk_throughput\030\206" - + "\213\274\325\001 \001(\003H\t\210\001\001B\r\n\013_disk_countB\030\n\026_last_re" - + "size_timestampB)\n\'_max_total_provisioned" - + "_disk_capacity_gbB\033\n\031_pool_used_capacity" - + "_bytesB\021\n\017_pool_used_iopsB\027\n\025_pool_used_" - + "throughputB\032\n\030_pool_user_written_bytesB%" - + "\n#_total_provisioned_disk_capacity_gbB\036\n" - + "\034_total_provisioned_disk_iopsB$\n\"_total_" - + "provisioned_disk_throughput\"\347\007\n\017StorageP" - + "oolType\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000" - + "\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001 \001(\0132*.google.clo" - + "ud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n\013" - + "description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H" - + "\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\0220\n max_pool_p" - + "rovisioned_capacity_gb\030\315\361\354V \001(\003H\005\210\001\001\022*\n\031" - + "max_pool_provisioned_iops\030\374\317\331\365\001 \001(\003H\006\210\001\001" - + "\022/\n\037max_pool_provisioned_throughput\030\275\324\224m" - + " \001(\003H\007\210\001\001\0220\n min_pool_provisioned_capaci" - + "ty_gb\030\237\215\213[ \001(\003H\010\210\001\001\022*\n\031min_pool_provisio" - + "ned_iops\030\352\304\313\306\001 \001(\003H\t\210\001\001\0220\n\037min_pool_prov" - + "isioned_throughput\030\253\264\256\257\001 \001(\003H\n\210\001\001\022\034\n\013min" - + "_size_gb\030\354\301\333\267\001 \001(\003H\013\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\t" - + "H\014\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022!\n\021sel" - + "f_link_with_id\030\202\254\235\025 \001(\tH\016\210\001\001\022\037\n\024supporte" - + "d_disk_types\030\210\217\347G \003(\t\022\024\n\004zone\030\254\307\344\001 \001(\tH\017" - + "\210\001\001B\025\n\023_creation_timestampB\r\n\013_deprecate" - + "dB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB#\n!_ma" - + "x_pool_provisioned_capacity_gbB\034\n\032_max_p" - + "ool_provisioned_iopsB\"\n _max_pool_provis" - + "ioned_throughputB#\n!_min_pool_provisione" - + "d_capacity_gbB\034\n\032_min_pool_provisioned_i" - + "opsB\"\n _min_pool_provisioned_throughputB" - + "\016\n\014_min_size_gbB\007\n\005_nameB\014\n\n_self_linkB\024" - + "\n\022_self_link_with_idB\007\n\005_zone\"\265\003\n\035Storag" - + "ePoolTypeAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001" - + "\001\022S\n\005items\030\300\317\367/ \003(\0132A.google.cloud.compu" - + "te.v1.StoragePoolTypeAggregatedList.Item" - + "sEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" - + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" - + " \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" - + "loud.compute.v1.WarningH\004\210\001\001\032a\n\nItemsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google." - + "cloud.compute.v1.StoragePoolTypesScopedL" - + "ist:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_to" - + "kenB\014\n\n_self_linkB\n\n\010_warning\"\257\002\n\023Storag" - + "ePoolTypeList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022:\n\005items" - + "\030\300\317\367/ \003(\0132(.google.cloud.compute.v1.Stor" - + "agePoolType\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017nex" - + "t_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030" - + "\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goo" - + "gle.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_id" - + "B\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_l" - + "inkB\n\n\010_warning\"\255\001\n\032StoragePoolTypesScop" - + "edList\022H\n\022storage_pool_types\030\332\255\320\203\001 \003(\0132(" - + ".google.cloud.compute.v1.StoragePoolType" - + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" - + "ute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\240\001\n\026Stor" - + "agePoolsScopedList\022?\n\rstorage_pools\030\223\222\300\320" - + "\001 \003(\0132$.google.cloud.compute.v1.StorageP" - + "ool\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\244\020\n\nS" - + "ubnetwork\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" - + "H\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022 \n\020e" - + "nable_flow_logs\030\344\304\241H \001(\010H\002\210\001\001\022$\n\024externa" - + "l_ipv6_prefix\030\366\222\266B \001(\tH\003\210\001\001\022\033\n\013fingerpri" - + "nt\030\344\321\363o \001(\tH\004\210\001\001\022 \n\017gateway_address\030\371\211\244\333" - + "\001 \001(\tH\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022%\n\024internal" - + "_ipv6_prefix\030\350\242\264\361\001 \001(\tH\007\210\001\001\022\035\n\rip_cidr_r" - + "ange\030\312\315\344. \001(\tH\010\210\001\001\022!\n\020ipv6_access_type\030\335" - + "\365\321\360\001 \001(\tH\t\210\001\001\022 \n\017ipv6_cidr_range\030\212\234\237\202\001 \001" - + "(\tH\n\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022I\n\nlog_con" - + "fig\030\235\321\301\247\001 \001(\0132,.google.cloud.compute.v1." - + "SubnetworkLogConfigH\014\210\001\001\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\r\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\016\210\001\001\022)\n\030priva" - + "te_ip_google_access\030\316\350\375\310\001 \001(\010H\017\210\001\001\022*\n\032pr" - + "ivate_ipv6_google_access\030\216\314\202\027 \001(\tH\020\210\001\001\022\030" - + "\n\007purpose\030\236\372\357\226\001 \001(\tH\021\210\001\001\022\026\n\006region\030\364\315\240B " - + "\001(\tH\022\210\001\001\022(\n\027reserved_internal_range\030\262\236\277\210" - + "\001 \001(\tH\023\210\001\001\022\024\n\004role\030\366\200\326\001 \001(\tH\024\210\001\001\022Q\n\023seco" - + "ndary_ip_ranges\030\343\377\224A \003(\01321.google.cloud." - + "compute.v1.SubnetworkSecondaryRange\022\032\n\ts" - + "elf_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022\033\n\nstack_type\030\221\265" - + "\213\313\001 \001(\tH\026\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\027\210\001\001\"y\n\016I" - + "pv6AccessType\022\036\n\032UNDEFINED_IPV6_ACCESS_T" - + "YPE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010INTERNAL\020\275\355\226\205\001" - + "\022$\n\034UNSPECIFIED_IPV6_ACCESS_TYPE\020\245\366\244\225\001\"\276" - + "\001\n\027PrivateIpv6GoogleAccess\022(\n$UNDEFINED_" - + "PRIVATE_IPV6_GOOGLE_ACCESS\020\000\022\035\n\025DISABLE_" - + "GOOGLE_ACCESS\020\363\251\204\327\001\022-\n%ENABLE_BIDIRECTIO" - + "NAL_ACCESS_TO_GOOGLE\020\272\312\211\314\001\022+\n#ENABLE_OUT" - + "BOUND_VM_ACCESS_TO_GOOGLE\020\327\372\266\211\001\"\340\001\n\007Purp" - + "ose\022\025\n\021UNDEFINED_PURPOSE\020\000\022\033\n\024GLOBAL_MAN" - + "AGED_PROXY\020\362\313\340p\022#\n\034INTERNAL_HTTPS_LOAD_B" - + "ALANCER\020\331\266\316v\022\017\n\007PRIVATE\020\343\342\262\300\001\022\023\n\013PRIVATE" - + "_NAT\020\245\310\256\257\001\022\027\n\020PRIVATE_RFC_1918\020\333\376\305y\022\036\n\027P" - + "RIVATE_SERVICE_CONNECT\020\304\364\371\026\022\035\n\026REGIONAL_" - + "MANAGED_PROXY\020\356\266\375H\":\n\004Role\022\022\n\016UNDEFINED_" - + "ROLE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\006BACKUP\020\302\323\315\242\001\"{" - + "\n\tStackType\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020\n" - + "\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\tIPV" - + "6_ONLY\020\344\255\374%\022\036\n\026UNSPECIFIED_STACK_TYPE\020\331\321" - + "\221\216\001\"<\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\020\n\010DRA" - + "INING\020\352\325\214\345\001\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_t" - + "imestampB\016\n\014_descriptionB\023\n\021_enable_flow" - + "_logsB\027\n\025_external_ipv6_prefixB\016\n\014_finge" - + "rprintB\022\n\020_gateway_addressB\005\n\003_idB\027\n\025_in" - + "ternal_ipv6_prefixB\020\n\016_ip_cidr_rangeB\023\n\021" - + "_ipv6_access_typeB\022\n\020_ipv6_cidr_rangeB\007\n" - + "\005_kindB\r\n\013_log_configB\007\n\005_nameB\n\n\010_netwo" - + "rkB\033\n\031_private_ip_google_accessB\035\n\033_priv" - + "ate_ipv6_google_accessB\n\n\010_purposeB\t\n\007_r" - + "egionB\032\n\030_reserved_internal_rangeB\007\n\005_ro" - + "leB\014\n\n_self_linkB\r\n\013_stack_typeB\010\n\006_stat" - + "e\"\277\003\n\030SubnetworkAggregatedList\022\020\n\002id\030\233\032 " - + "\001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.google.clou" - + "d.compute.v1.SubnetworkAggregatedList.It" - + "emsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_p" - + "age_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305" - + "\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007" - + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." - + "v1.WarningH\004\210\001\001\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001" - + "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.compute" - + ".v1.SubnetworksScopedList:\0028\001B\005\n\003_idB\007\n\005" - + "_kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB" - + "\n\n\010_warning\"\245\002\n\016SubnetworkList\022\020\n\002id\030\233\032 " - + "\001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.google.clou" - + "d.compute.v1.Subnetwork\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "id\"\260\002\n1SetShieldedInstanceIntegrityPolic" + + "yInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340" + + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022v\n+shielded_in" + + "stance_integrity_policy_resource\030\266\334\215\303\001 \001" + + "(\01328.google.cloud.compute.v1.ShieldedIns" + + "tanceIntegrityPolicyB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001" + + "(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\345\002\n/SetSsl" + + "CertificatesRegionTargetHttpsProxyReques" + + "t\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006" + + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\nAregion" + + "_target_https_proxies_set_ssl_certificat" + + "es_request_resource\030\207\204\246\272\001 \001(\0132J.google.c" + + "loud.compute.v1.RegionTargetHttpsProxies" + + "SetSslCertificatesRequestB\003\340A\002\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n\022target_https_proxy" + + "\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\260\002\n)SetSsl" + + "CertificatesTargetHttpsProxyRequest\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n:target_https_prox" + + "ies_set_ssl_certificates_request_resourc" + + "e\030\334\253\262j \001(\0132D.google.cloud.compute.v1.Tar" + + "getHttpsProxiesSetSslCertificatesRequest" + + "B\003\340A\002\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A" + + "\002B\r\n\013_request_id\"\251\002\n\'SetSslCertificatesT" + + "argetSslProxyRequest\022!\n\007project\030\231\226\301l \001(\t" + + "B\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001\022\214\001\n8target_ssl_proxies_set_ssl_certi" + + "ficates_request_resource\030\275\313\305F \001(\0132B.goog" + + "le.cloud.compute.v1.TargetSslProxiesSetS" + + "slCertificatesRequestB\003\340A\002\022!\n\020target_ssl" + + "_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\363\001\n" + + "#SetSslPolicyTargetHttpsProxyRequest\022!\n\007" + + "project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreque" + + "st_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n\035ssl_policy_refere" + + "nce_resource\030\274\364\237p \001(\0132+.google.cloud.com" + + "pute.v1.SslPolicyReferenceB\003\340A\002\022\"\n\022targe" + + "t_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_" + + "id\"\360\001\n!SetSslPolicyTargetSslProxyRequest" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n\035ssl_policy_re" + + "ference_resource\030\274\364\237p \001(\0132+.google.cloud" + + ".compute.v1.SslPolicyReferenceB\003\340A\002\022!\n\020t" + + "arget_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_reque" + + "st_id\"\334\001\n\026SetTagsInstanceRequest\022\030\n\010inst" + + "ance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022=\n\rtags_resource\030\364\232\205\236\001 \001(\0132\035.google.cl" + + "oud.compute.v1.TagsB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(" + + "\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\207\002\n\036SetTarg" + + "etForwardingRuleRequest\022 \n\017forwarding_ru" + + "le\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006r" + + "egion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n\031tar" + + "get_reference_resource\030\360\267\335\371\001 \001(\0132(.googl" + + "e.cloud.compute.v1.TargetReferenceB\003\340A\002B" + + "\r\n\013_request_id\"\354\001\n$SetTargetGlobalForwar" + + "dingRuleRequest\022 \n\017forwarding_rule\030\376\245\335\200\001" + + " \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" + + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n\031targ" + + "et_reference_resource\030\360\267\335\371\001 \001(\0132(.google" + + ".cloud.compute.v1.TargetReferenceB\003\340A\002B\r" + + "\n\013_request_id\"\320\002\n)SetTargetPoolsInstance" + + "GroupManagerRequest\022&\n\026instance_group_ma" + + "nager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n9instance_group_m" + + "anagers_set_target_pools_request_resourc" + + "e\030\210\206\210\206\001 \001(\0132C.google.cloud.compute.v1.In" + + "stanceGroupManagersSetTargetPoolsRequest" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344" + + "\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\346\002\n/Set" + + "TargetPoolsRegionInstanceGroupManagerReq" + + "uest\022&\n\026instance_group_manager\030\303\367\363v \001(\tB" + + "\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n@reg" + + "ion_instance_group_managers_set_target_p" + + "ools_request_resource\030\375\312\305% \001(\0132I.google." + + "cloud.compute.v1.RegionInstanceGroupMana" + + "gersSetTargetPoolsRequestB\003\340A\002\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\220\002\n%Se" + + "tUrlMapRegionTargetHttpProxyRequest\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region" + + "\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201" + + "\331\021 \001(\tH\000\210\001\001\022!\n\021target_http_proxy\030\345\276\322b \001(" + + "\tB\003\340A\002\022U\n\032url_map_reference_resource\030\225\346\216" + + "\276\001 \001(\0132(.google.cloud.compute.v1.UrlMapR" + + "eferenceB\003\340A\002B\r\n\013_request_id\"\222\002\n&SetUrlM" + + "apRegionTargetHttpsProxyRequest\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240" + + "B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003" + + "\340A\002\022U\n\032url_map_reference_resource\030\225\346\216\276\001 " + + "\001(\0132(.google.cloud.compute.v1.UrlMapRefe" + + "renceB\003\340A\002B\r\n\013_request_id\"\351\001\n\037SetUrlMapT" + + "argetHttpProxyRequest\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001\022!\n\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022" + + "U\n\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132" + + "(.google.cloud.compute.v1.UrlMapReferenc" + + "eB\003\340A\002B\r\n\013_request_id\"\353\001\n SetUrlMapTarge" + + "tHttpsProxyRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" + + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(." + + "google.cloud.compute.v1.UrlMapReferenceB" + + "\003\340A\002B\r\n\013_request_id\"\320\001\n\"SetUsageExportBu" + + "cketProjectRequest\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" + + "\001\022\\\n\036usage_export_location_resource\030\353\314\324\t" + + " \001(\0132,.google.cloud.compute.v1.UsageExpo" + + "rtLocationB\003\340A\002B\r\n\013_request_id\"\372\002\n\rShare" + + "Settings\022N\n\013project_map\030\266\326\377? \003(\01326.googl" + + "e.cloud.compute.v1.ShareSettings.Project" + + "MapEntry\022\033\n\nshare_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + + "\017ProjectMapEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.ShareSett" + + "ingsProjectConfig:\0028\001\"\204\001\n\tShareType\022\030\n\024U" + + "NDEFINED_SHARE_TYPE\020\000\022\014\n\005LOCAL\020\313\316\317\"\022\024\n\014O" + + "RGANIZATION\020\263\252\217\203\001\022\036\n\026SHARE_TYPE_UNSPECIF" + + "IED\020\222\274\366\353\001\022\031\n\021SPECIFIC_PROJECTS\020\347\261\356\245\001B\r\n\013" + + "_share_type\"G\n\032ShareSettingsProjectConfi" + + "g\022\032\n\nproject_id\030\201\310\322T \001(\tH\000\210\001\001B\r\n\013_projec" + + "t_id\"\316\001\n\026ShieldedInstanceConfig\022,\n\033enabl" + + "e_integrity_monitoring\030\266\333\207\303\001 \001(\010H\000\210\001\001\022\"\n" + + "\022enable_secure_boot\030\376\203\366: \001(\010H\001\210\001\001\022\033\n\013ena" + + "ble_vtpm\030\367\344\333V \001(\010H\002\210\001\001B\036\n\034_enable_integr" + + "ity_monitoringB\025\n\023_enable_secure_bootB\016\n" + + "\014_enable_vtpm\"\213\002\n\030ShieldedInstanceIdenti" + + "ty\022W\n\016encryption_key\030\243\307\351\350\001 \001(\01326.google." + + "cloud.compute.v1.ShieldedInstanceIdentit" + + "yEntryH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022T\n\013sig" + + "ning_key\030\245\220\205\231\001 \001(\01326.google.cloud.comput" + + "e.v1.ShieldedInstanceIdentityEntryH\002\210\001\001B" + + "\021\n\017_encryption_keyB\007\n\005_kindB\016\n\014_signing_" + + "key\"i\n\035ShieldedInstanceIdentityEntry\022\030\n\007" + + "ek_cert\030\235\334\324\326\001 \001(\tH\000\210\001\001\022\027\n\006ek_pub\030\344\327\250\223\001 \001" + + "(\tH\001\210\001\001B\n\n\010_ek_certB\t\n\007_ek_pub\"h\n\037Shield" + + "edInstanceIntegrityPolicy\022(\n\030update_auto" + + "_learn_policy\030\247\304\207u \001(\010H\000\210\001\001B\033\n\031_update_a" + + "uto_learn_policy\"`\n\014SignedUrlKey\022\031\n\010key_" + + "name\030\353\360\356\356\001 \001(\tH\000\210\001\001\022\032\n\tkey_value\030\221\237\260\360\001 \001" + + "(\tH\001\210\001\001B\013\n\t_key_nameB\014\n\n_key_value\"\374\001\n\'S" + + "imulateMaintenanceEventInstanceRequest\022\030" + + "\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l" + + " \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001\022,\n\033with_extended_notifications\030\373" + + "\327\311\301\001 \001(\010H\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "neB\r\n\013_request_idB\036\n\034_with_extended_noti" + + "fications\"\301\002\n(SimulateMaintenanceEventNo" + + "deGroupRequest\022\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003" + + "\340A\002\022\214\001\n7node_groups_simulate_maintenance" + + "_event_request_resource\030\334\371\313\247\001 \001(\0132B.goog" + + "le.cloud.compute.v1.NodeGroupsSimulateMa" + + "intenanceEventRequestB\003\340A\002\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r" + + "\n\013_request_id\"\237\024\n\010Snapshot\022\035\n\014architectu" + + "re\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\035\n\014auto_created\030\330\310\233\335\001 " + + "\001(\010H\001\210\001\001\022\032\n\nchain_name\030\311\332\335 \001(\tH\002\210\001\001\022#\n\023" + + "creation_size_bytes\030\215\350\345; \001(\003H\003\210\001\001\022\"\n\022cre" + + "ation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022\034\n\013descrip" + + "tion\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226" + + "\001 \001(\003H\006\210\001\001\022\037\n\016download_bytes\030\364\313\271\317\001 \001(\003H\007" + + "\210\001\001\022+\n\033enable_confidential_compute\030\274\353\3310 " + + "\001(\010H\010\210\001\001\022E\n\021guest_os_features\030\321\340\347% \003(\0132\'" + + ".google.cloud.compute.v1.GuestOsFeature\022" + + "\020\n\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022" + + "!\n\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022A\n\006la" + + "bels\030\377\277\301\356\001 \003(\0132-.google.cloud.compute.v1" + + ".Snapshot.LabelsEntry\022\030\n\rlicense_codes\030\250" + + "\205\330\025 \003(\003\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\rlocatio" + + "n_hint\030\321\201\222\247\001 \001(\tH\014\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\r" + + "\210\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\016\210\001\001\022\036\n\rs" + + "atisfies_pzs\030\253\335\253\345\001 \001(\010H\017\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\020\210\001\001\022W\n\027snapshot_encryption_k" + + "ey\030\376\366\324\024 \001(\0132..google.cloud.compute.v1.Cu" + + "stomerEncryptionKeyH\021\210\001\001\022\035\n\rsnapshot_typ" + + "e\030\325\331\245; \001(\tH\022\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\t" + + "H\023\210\001\001\022[\n\032source_disk_encryption_key\030\341\240\270\375" + + "\001 \001(\0132..google.cloud.compute.v1.Customer" + + "EncryptionKeyH\024\210\001\001\0224\n#source_disk_for_re" + + "covery_checkpoint\030\376\341\312\253\001 \001(\tH\025\210\001\001\022\037\n\016sour" + + "ce_disk_id\030\331\315\311\330\001 \001(\tH\026\210\001\001\022\'\n\027source_inst" + + "ant_snapshot\030\206\204\303h \001(\tH\027\210\001\001\022g\n&source_ins" + + "tant_snapshot_encryption_key\030\374\205\224\320\001 \001(\0132." + + ".google.cloud.compute.v1.CustomerEncrypt" + + "ionKeyH\030\210\001\001\022+\n\032source_instant_snapshot_i" + + "d\030\364\323\220\211\001 \001(\tH\031\210\001\001\022/\n\037source_snapshot_sche" + + "dule_policy\030\203\266\265p \001(\tH\032\210\001\001\0222\n\"source_snap" + + "shot_schedule_policy_id\030\327\247\316! \001(\tH\033\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\034\210\001\001\022\036\n\rstorage_bytes\030\247" + + "\273\275\312\001 \001(\003H\035\210\001\001\022%\n\024storage_bytes_status\030\212\253" + + "\200\352\001 \001(\tH\036\210\001\001\022\035\n\021storage_locations\030\232\355\263\234\001 " + + "\003(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"j\n\014Architecture\022\032\n\026UNDEFINED_" + + "ARCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNSPECIFI" + + "ED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\"N" + + "\n\014SnapshotType\022\033\n\027UNDEFINED_SNAPSHOT_TYP" + + "E\020\000\022\017\n\007ARCHIVE\020\242\331\321\361\001\022\020\n\010STANDARD\020\275\235\214\347\001\"r" + + "\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREATI" + + "NG\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246" + + "\331\001\022\014\n\005READY\020\203\303\217%\022\020\n\tUPLOADING\020\241\234\315\177\"]\n\022St" + + "orageBytesStatus\022\"\n\036UNDEFINED_STORAGE_BY" + + "TES_STATUS\020\000\022\020\n\010UPDATING\020\306\356\354\353\001\022\021\n\nUP_TO_" + + "DATE\020\316\242\2470B\017\n\r_architectureB\017\n\r_auto_crea" + + "tedB\r\n\013_chain_nameB\026\n\024_creation_size_byt" + + "esB\025\n\023_creation_timestampB\016\n\014_descriptio" + + "nB\017\n\r_disk_size_gbB\021\n\017_download_bytesB\036\n" + + "\034_enable_confidential_computeB\005\n\003_idB\007\n\005" + + "_kindB\024\n\022_label_fingerprintB\020\n\016_location" + + "_hintB\007\n\005_nameB\020\n\016_satisfies_pziB\020\n\016_sat" + + "isfies_pzsB\014\n\n_self_linkB\032\n\030_snapshot_en" + + "cryption_keyB\020\n\016_snapshot_typeB\016\n\014_sourc" + + "e_diskB\035\n\033_source_disk_encryption_keyB&\n" + + "$_source_disk_for_recovery_checkpointB\021\n" + + "\017_source_disk_idB\032\n\030_source_instant_snap" + + "shotB)\n\'_source_instant_snapshot_encrypt" + + "ion_keyB\035\n\033_source_instant_snapshot_idB\"" + + "\n _source_snapshot_schedule_policyB%\n#_s" + + "ource_snapshot_schedule_policy_idB\t\n\007_st" + + "atusB\020\n\016_storage_bytesB\027\n\025_storage_bytes" + + "_status\"\241\002\n\014SnapshotList\022\020\n\002id\030\233\032 \001(\tH\000\210" + + "\001\001\0223\n\005items\030\300\317\367/ \003(\0132!.google.cloud.comp" + + "ute.v1.Snapshot\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_l" + + "ink\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 " + + ".google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_se" + + "lf_linkB\n\n\010_warning\"\214\001\n\020SnapshotSettings" + + "\022c\n\020storage_location\030\371\321\340\333\001 \001(\0132@.google." + + "cloud.compute.v1.SnapshotSettingsStorage" + + "LocationSettingsH\000\210\001\001B\023\n\021_storage_locati" + + "on\"\336\003\n\'SnapshotSettingsStorageLocationSe" + + "ttings\022f\n\tlocations\030\336\256\221\305\001 \003(\0132O.google.c" + + "loud.compute.v1.SnapshotSettingsStorageL" + + "ocationSettings.LocationsEntry\022\026\n\006policy" + + "\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n\016LocationsEntry\022\013\n\003key" + + "\030\001 \001(\t\022h\n\005value\030\002 \001(\0132Y.google.cloud.com" + + "pute.v1.SnapshotSettingsStorageLocationS" + + "ettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\006Policy\022\024\n\020UNDEFINED_POLICY\020\000\022\024\n\014LOCAL_R" + + "EGION\020\350\354\265\300\001\022\033\n\024NEAREST_MULTI_REGION\020\273\376\247e" + + "\022\032\n\022SPECIFIC_LOCATIONS\020\361\310\307\205\001\022*\n#STORAGE_" + + "LOCATION_POLICY_UNSPECIFIED\020\360\220\302wB\t\n\007_pol" + + "icy\"a\n@SnapshotSettingsStorageLocationSe" + + "ttingsStorageLocationPreference\022\024\n\004name\030" + + "\213\365\315\001 \001(\tH\000\210\001\001B\007\n\005_name\"\265\001\n\027SourceDiskEnc" + + "ryptionKey\022T\n\023disk_encryption_key\030\205\355\304\201\001 " + + "\001(\0132..google.cloud.compute.v1.CustomerEn" + + "cryptionKeyH\000\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(" + + "\tH\001\210\001\001B\026\n\024_disk_encryption_keyB\016\n\014_sourc" + + "e_disk\"a\n\024SourceInstanceParams\022I\n\014disk_c" + + "onfigs\030\317\331\252p \003(\01320.google.cloud.compute.v" + + "1.DiskInstantiationConfig\"\361\010\n\030SourceInst" + + "anceProperties\022\037\n\016can_ip_forward\030\374\206\204\337\001 \001" + + "(\010H\000\210\001\001\022$\n\023deletion_protection\030\352\377\262\332\001 \001(\010" + + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022<\n\005d" + + "isks\030\366\314\312- \003(\0132*.google.cloud.compute.v1." + + "SavedAttachedDisk\022J\n\022guest_accelerators\030" + + "\357\314\207\335\001 \003(\0132*.google.cloud.compute.v1.Acce" + + "leratorConfig\022*\n\032key_revocation_action_t" + + "ype\030\342\334\300p \001(\tH\003\210\001\001\022Q\n\006labels\030\377\277\301\356\001 \003(\0132=." + + "google.cloud.compute.v1.SourceInstancePr" + + "operties.LabelsEntry\022\034\n\014machine_type\030\262\260\312" + + "l \001(\tH\004\210\001\001\022;\n\010metadata\030\257\366\265) \001(\0132!.google" + + ".cloud.compute.v1.MetadataH\005\210\001\001\022 \n\020min_c" + + "pu_platform\030\367\233\352s \001(\tH\006\210\001\001\022H\n\022network_int", + "erfaces\030\213\332\222\031 \003(\0132).google.cloud.compute." + + "v1.NetworkInterface\022@\n\nscheduling\030\224\313\261\270\001 " + + "\001(\0132#.google.cloud.compute.v1.Scheduling" + + "H\007\210\001\001\022E\n\020service_accounts\030\260\304\253\204\001 \003(\0132\'.go" + + "ogle.cloud.compute.v1.ServiceAccount\0223\n\004" + + "tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1." + + "TagsH\010\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\215\001\n\027KeyRevocationAction" + + "Type\022(\n$UNDEFINED_KEY_REVOCATION_ACTION_" + + "TYPE\020\000\022.\n&KEY_REVOCATION_ACTION_TYPE_UNS" + + "PECIFIED\020\332\221\336\336\001\022\013\n\004NONE\020\270\316\222\001\022\013\n\004STOP\020\202\200\234\001" + + "B\021\n\017_can_ip_forwardB\026\n\024_deletion_protect" + + "ionB\016\n\014_descriptionB\035\n\033_key_revocation_a" + + "ction_typeB\017\n\r_machine_typeB\013\n\t_metadata" + + "B\023\n\021_min_cpu_platformB\r\n\013_schedulingB\007\n\005" + + "_tags\"\240\006\n\016SslCertificate\022\034\n\013certificate\030" + + "\227\203\375\242\001 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307" + + "\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001" + + "\022\034\n\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n\002id\030\233\032 " + + "\001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n\007manage" + + "d\030\237\237\244\216\001 \001(\0132<.google.cloud.compute.v1.Ss" + + "lCertificateManagedSslCertificateH\006\210\001\001\022\024" + + "\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n\013private_key\030\243\363\245\254" + + "\001 \001(\tH\010\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n\tse" + + "lf_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022_\n\014self_managed\030\254" + + "\363\201\235\001 \001(\0132@.google.cloud.compute.v1.SslCe" + + "rtificateSelfManagedSslCertificateH\013\210\001\001\022" + + "%\n\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024" + + "\n\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n\004Type\022\022\n\016UNDEFINE" + + "D_TYPE\020\000\022\017\n\007MANAGED\020\377\266\322\344\001\022\024\n\014SELF_MANAGE" + + "D\020\214\373\223\317\001\022\030\n\020TYPE_UNSPECIFIED\020\222\373\333\320\001B\016\n\014_ce" + + "rtificateB\025\n\023_creation_timestampB\016\n\014_des" + + "criptionB\016\n\014_expire_timeB\005\n\003_idB\007\n\005_kind" + + "B\n\n\010_managedB\007\n\005_nameB\016\n\014_private_keyB\t\n" + + "\007_regionB\014\n\n_self_linkB\017\n\r_self_managedB" + + "\007\n\005_type\"\313\003\n\034SslCertificateAggregatedLis" + + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005items\030\300\317\367/ \003(\0132@." + + "google.cloud.compute.v1.SslCertificateAg" + + "gregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\t" + "H\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032" - + "\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337" - + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" - + "H\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_toke" - + "nB\014\n\n_self_linkB\n\n\010_warning\"\335\004\n\023Subnetwo" - + "rkLogConfig\022$\n\024aggregation_interval\030\202\233\264S" - + " \001(\tH\000\210\001\001\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\001\210\001\001\022\033\n\013fi" - + "lter_expr\030\334\244\270W \001(\tH\002\210\001\001\022\036\n\rflow_sampling" - + "\030\330\347\345\374\001 \001(\002H\003\210\001\001\022\030\n\010metadata\030\257\366\265) \001(\tH\004\210\001" - + "\001\022\033\n\017metadata_fields\030\311\273\273\264\001 \003(\t\"\310\001\n\023Aggre" - + "gationInterval\022\"\n\036UNDEFINED_AGGREGATION_" - + "INTERVAL\020\000\022\027\n\017INTERVAL_10_MIN\020\314\321\245\350\001\022\027\n\017I" - + "NTERVAL_15_MIN\020\321\274\277\352\001\022\025\n\016INTERVAL_1_MIN\020\252" - + "\322\366 \022\026\n\017INTERVAL_30_SEC\020\211\340\314\003\022\025\n\016INTERVAL_" - + "5_MIN\020\256\216\330\"\022\025\n\016INTERVAL_5_SEC\020\255\272\330\"\"u\n\010Met" - + "adata\022\026\n\022UNDEFINED_METADATA\020\000\022\026\n\017CUSTOM_" - + "METADATA\020\275\330\343\035\022\034\n\024EXCLUDE_ALL_METADATA\020\222\275" - + "\301\237\001\022\033\n\024INCLUDE_ALL_METADATA\020\204\315\277NB\027\n\025_agg" - + "regation_intervalB\t\n\007_enableB\016\n\014_filter_" - + "exprB\020\n\016_flow_samplingB\013\n\t_metadata\"\275\001\n\030" - + "SubnetworkSecondaryRange\022\035\n\rip_cidr_rang" - + "e\030\312\315\344. \001(\tH\000\210\001\001\022\033\n\nrange_name\030\315\360\264\236\001 \001(\tH" - + "\001\210\001\001\022(\n\027reserved_internal_range\030\262\236\277\210\001 \001(" - + "\tH\002\210\001\001B\020\n\016_ip_cidr_rangeB\r\n\013_range_nameB" - + "\032\n\030_reserved_internal_range\"V\n#Subnetwor" - + "ksExpandIpCidrRangeRequest\022\035\n\rip_cidr_ra" - + "nge\030\312\315\344. \001(\tH\000\210\001\001B\020\n\016_ip_cidr_range\"\234\001\n\025" - + "SubnetworksScopedList\022<\n\013subnetworks\030\305\324\245" - + "\306\001 \003(\0132#.google.cloud.compute.v1.Subnetw" - + "ork\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\000\210\001\001B\n\n\010_warning\"t\n*Su" - + "bnetworksSetPrivateIpGoogleAccessRequest" - + "\022)\n\030private_ip_google_access\030\316\350\375\310\001 \001(\010H\000" - + "\210\001\001B\033\n\031_private_ip_google_access\"\177\n\nSubs" - + "etting\022\026\n\006policy\030\262\312\266+ \001(\tH\000\210\001\001\"N\n\006Policy" - + "\022\024\n\020UNDEFINED_POLICY\020\000\022!\n\032CONSISTENT_HAS" - + "H_SUBSETTING\020\264\230\3743\022\013\n\004NONE\020\270\316\222\001B\t\n\007_polic" - + "y\"\327\001\n\026SuspendInstanceRequest\022\"\n\021discard_" - + "local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001\022\030\n\010instance\030\225\251\332" - + "\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" - + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zon" - + "e\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\024\n\022_discard_local" - + "_ssdB\r\n\013_request_id\"\211\001\n SwitchToCustomMo" - + "deNetworkRequest\022\027\n\007network\030\256\264\205o \001(\tB\003\340A" - + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "\330\003\n\016TCPHealthCheck\022\024\n\004port\030\201\261\322\001 \001(\005H\000\210\001\001" - + "\022\031\n\tport_name\030\211\207\347\023 \001(\tH\001\210\001\001\022\"\n\022port_spec" - + "ification\030\305\353\314\030 \001(\tH\002\210\001\001\022\034\n\014proxy_header\030" - + "\376\272\274L \001(\tH\003\210\001\001\022\027\n\007request\030\217\345\273\n \001(\tH\004\210\001\001\022\030" - + "\n\010response\030\301\250\334] \001(\tH\005\210\001\001\"~\n\021PortSpecific" - + "ation\022 \n\034UNDEFINED_PORT_SPECIFICATION\020\000\022" - + "\025\n\016USE_FIXED_PORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT" - + "\020\277\317\307\246\001\022\030\n\020USE_SERVING_PORT\020\314\321\365\254\001\"H\n\013Prox" - + "yHeader\022\032\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004N" - + "ONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\007\n\005_portB\014\n\n_" - + "port_nameB\025\n\023_port_specificationB\017\n\r_pro" - + "xy_headerB\n\n\010_requestB\013\n\t_response\"E\n\004Ta" - + "gs\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\020\n\005items" - + "\030\300\317\367/ \003(\tB\016\n\014_fingerprint\"\312\003\n\017TargetGrpc" - + "Proxy\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001" - + "\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013finge" - + "rprint\030\344\321\363o \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024" - + "\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210" - + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\006\210\001\001\022!\n\021self_l" - + "ink_with_id\030\202\254\235\025 \001(\tH\007\210\001\001\022\030\n\007url_map\030\214\225\201" - + "\257\001 \001(\tH\010\210\001\001\022&\n\026validate_for_proxyless\030\250\343" - + "\3060 \001(\010H\t\210\001\001B\025\n\023_creation_timestampB\016\n\014_d" - + "escriptionB\016\n\014_fingerprintB\005\n\003_idB\007\n\005_ki" - + "ndB\007\n\005_nameB\014\n\n_self_linkB\024\n\022_self_link_" - + "with_idB\n\n\010_url_mapB\031\n\027_validate_for_pro" - + "xyless\"\257\002\n\023TargetGrpcProxyList\022\020\n\002id\030\233\032 " - + "\001(\tH\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.google.clou" - + "d.compute.v1.TargetGrpcProxy\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" - + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warni" - + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" - + "rningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" - + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\256\001\n\033Tar" - + "getHttpProxiesScopedList\022H\n\023target_http_" - + "proxies\030\303\325\250M \003(\0132(.google.cloud.compute." - + "v1.TargetHttpProxy\0229\n\007warning\030\234\337\226\030 \001(\0132 " - + ".google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" - + "\010_warning\"\353\003\n\017TargetHttpProxy\022\"\n\022creatio" - + "n_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description" - + "\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH" - + "\002\210\001\001\022,\n\033http_keep_alive_timeout_sec\030\336\316\246\325" - + "\001 \001(\005H\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\033\n\nprox" - + "y_bind\030\356\316\261\210\001 \001(\010H\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\t" - + "H\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\030\n\007url" - + "_map\030\214\225\201\257\001 \001(\tH\n\210\001\001B\025\n\023_creation_timesta" - + "mpB\016\n\014_descriptionB\016\n\014_fingerprintB\036\n\034_h" - + "ttp_keep_alive_timeout_secB\005\n\003_idB\007\n\005_ki" - + "ndB\007\n\005_nameB\r\n\013_proxy_bindB\t\n\007_regionB\014\n" - + "\n_self_linkB\n\n\010_url_map\"\210\003\n\035TargetHttpPr" - + "oxyAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022S\n\005i" - + "tems\030\300\317\367/ \003(\0132A.google.cloud.compute.v1." - + "TargetHttpProxyAggregatedList.ItemsEntry" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\032b\n\nItemsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.google." - + "cloud.compute.v1.TargetHttpProxiesScoped" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachabl" + + "es\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" + + ".cloud.compute.v1.WarningH\004\210\001\001\032`\n\nItemsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.googl" + + "e.cloud.compute.v1.SslCertificatesScoped" + "List:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_t" - + "okenB\014\n\n_self_link\"\257\002\n\023TargetHttpProxyLi" - + "st\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(" - + ".google.cloud.compute.v1.TargetHttpProxy" - + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" - + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" - + "\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" - + "ompute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022" - + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" - + "ning\"\262\001\n\034TargetHttpsProxiesScopedList\022K\n" - + "\024target_https_proxies\030\212\374\347\256\001 \003(\0132).google" - + ".cloud.compute.v1.TargetHttpsProxy\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\000\210\001\001B\n\n\010_warning\"a\n*TargetHttps" - + "ProxiesSetCertificateMapRequest\022\037\n\017certi" - + "ficate_map\030\264\345\315J \001(\tH\000\210\001\001B\022\n\020_certificate" - + "_map\"\266\001\n(TargetHttpsProxiesSetQuicOverri" - + "deRequest\022\036\n\rquic_override\030\255\241\333\331\001 \001(\tH\000\210\001" - + "\001\"X\n\014QuicOverride\022\033\n\027UNDEFINED_QUIC_OVER" - + "RIDE\020\000\022\016\n\007DISABLE\020\310\335\246s\022\016\n\006ENABLE\020\203\263\240\321\001\022\013" - + "\n\004NONE\020\270\316\222\001B\020\n\016_quic_override\"K\n+TargetH" - + "ttpsProxiesSetSslCertificatesRequest\022\034\n\020" - + "ssl_certificates\030\217\242\303\256\001 \003(\t\"\207\010\n\020TargetHtt" - + "psProxy\022$\n\024authorization_policy\030\270\357\227\020 \001(\t" - + "H\000\210\001\001\022\037\n\017certificate_map\030\264\345\315J \001(\tH\001\210\001\001\022\"" - + "\n\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013de" - + "scription\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\013fingerprint\030" - + "\344\321\363o \001(\tH\004\210\001\001\022,\n\033http_keep_alive_timeout" - + "_sec\030\336\316\246\325\001 \001(\005H\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001" - + "\001\022\033\n\nproxy_bind\030\356\316\261\210\001 \001(\010H\t\210\001\001\022\036\n\rquic_o" - + "verride\030\255\241\333\331\001 \001(\tH\n\210\001\001\022\026\n\006region\030\364\315\240B \001(" - + "\tH\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\"\n\021se" - + "rver_tls_policy\030\362\336\207\215\001 \001(\tH\r\210\001\001\022\034\n\020ssl_ce" - + "rtificates\030\217\242\303\256\001 \003(\t\022\033\n\nssl_policy\030\305\375\340\214\001" - + " \001(\tH\016\210\001\001\022\036\n\016tls_early_data\030\312\341\221\035 \001(\tH\017\210\001" - + "\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tH\020\210\001\001\"X\n\014QuicOverr" - + "ide\022\033\n\027UNDEFINED_QUIC_OVERRIDE\020\000\022\016\n\007DISA" - + "BLE\020\310\335\246s\022\016\n\006ENABLE\020\203\263\240\321\001\022\013\n\004NONE\020\270\316\222\001\"b\n" - + "\014TlsEarlyData\022\034\n\030UNDEFINED_TLS_EARLY_DAT" - + "A\020\000\022\020\n\010DISABLED\020\374\324\260\366\001\022\022\n\nPERMISSIVE\020\237\345\276\360" - + "\001\022\016\n\006STRICT\020\311\245\241\223\001B\027\n\025_authorization_poli" - + "cyB\022\n\020_certificate_mapB\025\n\023_creation_time" - + "stampB\016\n\014_descriptionB\016\n\014_fingerprintB\036\n" - + "\034_http_keep_alive_timeout_secB\005\n\003_idB\007\n\005" - + "_kindB\007\n\005_nameB\r\n\013_proxy_bindB\020\n\016_quic_o" - + "verrideB\t\n\007_regionB\014\n\n_self_linkB\024\n\022_ser" - + "ver_tls_policyB\r\n\013_ssl_policyB\021\n\017_tls_ea" - + "rly_dataB\n\n\010_url_map\"\322\003\n\036TargetHttpsProx" - + "yAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022T\n\005ite" - + "ms\030\300\317\367/ \003(\0132B.google.cloud.compute.v1.Ta" - + "rgetHttpsProxyAggregatedList.ItemsEntry\022" - + "\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token" - + "\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210" - + "\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001\032c\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022D\n\005val" - + "ue\030\002 \001(\01325.google.cloud.compute.v1.Targe" - + "tHttpsProxiesScopedList:\0028\001B\005\n\003_idB\007\n\005_k" - + "indB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n" - + "\010_warning\"\261\002\n\024TargetHttpsProxyList\022\020\n\002id" - + "\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317\367/ \003(\0132).google." - + "cloud.compute.v1.TargetHttpsProxy\022\024\n\004kin" - + "d\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& " - + "\001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007" - + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." - + "v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next" - + "_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\374\003" - + "\n\016TargetInstance\022\"\n\022creation_timestamp\030\266" - + "\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210" - + "\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(" - + "\tH\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315" - + "\001 \001(\tH\005\210\001\001\022\033\n\nnat_policy\030\220\304\212\363\001 \001(\tH\006\210\001\001\022" - + "\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\037\n\017security_pol" - + "icy\030\221\206\312Q \001(\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\t\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\n\210\001\001\"4\n\tNatPolicy" - + "\022\030\n\024UNDEFINED_NAT_POLICY\020\000\022\r\n\006NO_NAT\020\203\273\376" - + "LB\025\n\023_creation_timestampB\016\n\014_description" - + "B\005\n\003_idB\013\n\t_instanceB\007\n\005_kindB\007\n\005_nameB\r" - + "\n\013_nat_policyB\n\n\010_networkB\022\n\020_security_p" - + "olicyB\014\n\n_self_linkB\007\n\005_zone\"\313\003\n\034TargetI" - + "nstanceAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" - + "R\n\005items\030\300\317\367/ \003(\0132@.google.cloud.compute" - + ".v1.TargetInstanceAggregatedList.ItemsEn" - + "try\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" - + "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" - + "\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warni" - + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa", - "rningH\004\210\001\001\032`\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.cloud.compute.v1.T" - + "argetInstancesScopedList:\0028\001B\005\n\003_idB\007\n\005_" - + "kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n" - + "\n\010_warning\"\255\002\n\022TargetInstanceList\022\020\n\002id\030" - + "\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.c" - + "loud.compute.v1.TargetInstance\022\024\n\004kind\030\224" - + "\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\t" - + "H\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007war" - + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." - + "WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pa" - + "ge_tokenB\014\n\n_self_linkB\n\n\010_warning\"\251\001\n\031T" - + "argetInstancesScopedList\022E\n\020target_insta" - + "nces\030\320\322\255\273\001 \003(\0132\'.google.cloud.compute.v1" - + ".TargetInstance\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" - + "ogle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_w" - + "arning\"\245\006\n\nTargetPool\022\033\n\013backup_pool\030\371\310\360" - + "\025 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(" - + "\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\036\n\016" - + "failover_ratio\030\376\224\264e \001(\002H\003\210\001\001\022\031\n\rhealth_c" - + "hecks\030\256\257\346\325\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\tins" - + "tances\030\376\374\357\r \003(\t\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007" - + "\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tH\010\210\001\001\022\032\n\t" - + "self_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n\020session_affi" - + "nity\030\261\301\231\335\001 \001(\tH\n\210\001\001\"\213\002\n\017SessionAffinity\022" - + "\036\n\032UNDEFINED_SESSION_AFFINITY\020\000\022\021\n\tCLIEN" - + "T_IP\020\233\334\351\244\001\022\037\n\030CLIENT_IP_NO_DESTINATION\020\224" - + "\232\3152\022\033\n\024CLIENT_IP_PORT_PROTO\020\256\362\334i\022\026\n\017CLIE" - + "NT_IP_PROTO\020\244\305\211\014\022\030\n\020GENERATED_COOKIE\020\264\316\312" - + "\260\001\022\023\n\014HEADER_FIELD\020\250\211\334_\022\023\n\013HTTP_COOKIE\020\373" - + "\243\203\354\001\022\013\n\004NONE\020\270\316\222\001\022\036\n\026STRONG_COOKIE_AFFIN" - + "ITY\020\373\335\223\321\001B\016\n\014_backup_poolB\025\n\023_creation_t" - + "imestampB\016\n\014_descriptionB\021\n\017_failover_ra" - + "tioB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB" - + "\022\n\020_security_policyB\014\n\n_self_linkB\023\n\021_se" - + "ssion_affinity\"\277\003\n\030TargetPoolAggregatedL" - + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132" - + "<.google.cloud.compute.v1.TargetPoolAggr" - + "egatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" - + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\t" - + "self_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables" - + "\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" - + "loud.compute.v1.WarningH\004\210\001\001\032\\\n\nItemsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google." - + "cloud.compute.v1.TargetPoolsScopedList:\002" - + "8\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" - + "\n\n_self_linkB\n\n\010_warning\"{\n\030TargetPoolIn" - + "stanceHealth\022@\n\rhealth_status\030\265\326\272\265\001 \003(\0132" - + "%.google.cloud.compute.v1.HealthStatus\022\024" - + "\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n\005_kind\"\245\002\n\016Target" - + "PoolList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/" - + " \003(\0132#.google.cloud.compute.v1.TargetPoo" - + "l\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_tok" - + "en\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" - + "\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB" - + "\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_wa" - + "rning\"l\n TargetPoolsAddHealthCheckReques" - + "t\022H\n\rhealth_checks\030\256\257\346\325\001 \003(\0132-.google.cl" - + "oud.compute.v1.HealthCheckReference\"a\n\035T" - + "argetPoolsAddInstanceRequest\022@\n\tinstance" - + "s\030\376\374\357\r \003(\0132*.google.cloud.compute.v1.Ins" - + "tanceReference\"o\n#TargetPoolsRemoveHealt" - + "hCheckRequest\022H\n\rhealth_checks\030\256\257\346\325\001 \003(\013" - + "2-.google.cloud.compute.v1.HealthCheckRe" - + "ference\"d\n TargetPoolsRemoveInstanceRequ" - + "est\022@\n\tinstances\030\376\374\357\r \003(\0132*.google.cloud" - + ".compute.v1.InstanceReference\"\235\001\n\025Target" - + "PoolsScopedList\022=\n\014target_pools\030\251\237\240\240\001 \003(" - + "\0132#.google.cloud.compute.v1.TargetPool\0229" + + "okenB\014\n\n_self_linkB\n\n\010_warning\"\255\002\n\022SslCe" + + "rtificateList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items" + + "\030\300\317\367/ \003(\0132\'.google.cloud.compute.v1.SslC" + + "ertificate\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" + + "le.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB" + + "\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_li" + + "nkB\n\n\010_warning\"\320\003\n#SslCertificateManaged" + + "SslCertificate\022i\n\rdomain_status\030\315\247\347\253\001 \003(" + + "\0132N.google.cloud.compute.v1.SslCertifica" + + "teManagedSslCertificate.DomainStatusEntr" + + "y\022\022\n\007domains\030\257\210\233l \003(\t\022\026\n\006status\030\362\237\267V \001(\t" + + "H\000\210\001\001\0323\n\021DomainStatusEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\006Status\022\024\n\020UNDEFIN" + + "ED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022.\n&MANAGED_C" + + "ERTIFICATE_STATUS_UNSPECIFIED\020\322\305\263\342\001\022\024\n\014P" + + "ROVISIONING\020\355\365\332\212\001\022\032\n\023PROVISIONING_FAILED" + + "\020\317\253\320$\022\'\n\037PROVISIONING_FAILED_PERMANENTLY" + + "\020\253\360\222\203\001\022\026\n\016RENEWAL_FAILED\020\204\276\241\317\001B\t\n\007_statu" + + "s\"\205\001\n\'SslCertificateSelfManagedSslCertif" + + "icate\022\034\n\013certificate\030\227\203\375\242\001 \001(\tH\000\210\001\001\022\034\n\013p" + + "rivate_key\030\243\363\245\254\001 \001(\tH\001\210\001\001B\016\n\014_certificat" + + "eB\016\n\014_private_key\"\251\001\n\031SslCertificatesSco" + + "pedList\022E\n\020ssl_certificates\030\217\242\303\256\001 \003(\0132\'." + + "google.cloud.compute.v1.SslCertificate\0229" + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" - + "e.v1.WarningH\000\210\001\001B\n\n\010_warning\"4\n\017TargetR" - + "eference\022\026\n\006target\030\221\343\371[ \001(\tH\000\210\001\001B\t\n\007_tar" - + "get\"P\n(TargetSslProxiesSetBackendService" - + "Request\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_se" - + "rvice\"_\n(TargetSslProxiesSetCertificateM" - + "apRequest\022\037\n\017certificate_map\030\264\345\315J \001(\tH\000\210" - + "\001\001B\022\n\020_certificate_map\"\240\001\n%TargetSslProx" - + "iesSetProxyHeaderRequest\022\034\n\014proxy_header" - + "\030\376\272\274L \001(\tH\000\210\001\001\"H\n\013ProxyHeader\022\032\n\026UNDEFIN" - + "ED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_" - + "V1\020\254\244\267\237\001B\017\n\r_proxy_header\"I\n)TargetSslPr" - + "oxiesSetSslCertificatesRequest\022\034\n\020ssl_ce" - + "rtificates\030\217\242\303\256\001 \003(\t\"\230\004\n\016TargetSslProxy\022" - + "\037\n\017certificate_map\030\264\345\315J \001(\tH\000\210\001\001\022\"\n\022crea" - + "tion_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013descript" - + "ion\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004" - + "kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001" - + "\022\034\n\014proxy_header\030\376\272\274L \001(\tH\006\210\001\001\022\032\n\tself_l" - + "ink\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(\tH" - + "\010\210\001\001\022\034\n\020ssl_certificates\030\217\242\303\256\001 \003(\t\022\033\n\nss" - + "l_policy\030\305\375\340\214\001 \001(\tH\t\210\001\001\"H\n\013ProxyHeader\022\032" - + "\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022" - + "\020\n\010PROXY_V1\020\254\244\267\237\001B\022\n\020_certificate_mapB\025\n" + + "e.v1.WarningH\000\210\001\001B\n\n\010_warning\"\340\003\n\031SslPol" + + "iciesAggregatedList\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001" + + "\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022O\n\005items\030\300\317\367/ \003(\0132=." + + "google.cloud.compute.v1.SslPoliciesAggre" + + "gatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unreachables\030" + + "\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" + + "oud.compute.v1.WarningH\005\210\001\001\032\\\n\nItemsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.c" + + "loud.compute.v1.SslPoliciesScopedList:\0028" + + "\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" + + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"\245\002\n\017Ssl" + + "PoliciesList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0224\n\005items\030" + + "\300\317\367/ \003(\0132\".google.cloud.compute.v1.SslPo" + + "licy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_" + + "token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001" + + "(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" + + "ud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_ki" + + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" + + "_warning\"?\n(SslPoliciesListAvailableFeat" + + "uresResponse\022\023\n\010features\030\275\310\263u \003(\t\"\233\001\n\025Ss" + + "lPoliciesScopedList\022;\n\014ssl_policies\030\243\344\215d" + + " \003(\0132\".google.cloud.compute.v1.SslPolicy" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\331\005\n\tSslP" + + "olicy\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001" + + "\001\022\032\n\017custom_features\030\313\262\313\020 \003(\t\022\034\n\013descrip" + + "tion\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\020enabled_features\030" + + "\373\306\322\337\001 \003(\t\022\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022\020" + + "\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\037" + + "\n\017min_tls_version\030\247\346\361\003 \001(\tH\005\210\001\001\022\024\n\004name\030" + + "\213\365\315\001 \001(\tH\006\210\001\001\022\027\n\007profile\030\251\223\272l \001(\tH\007\210\001\001\022\026" + + "\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\t\210\001\001\0227\n\010warnings\030\327\210\301\355\001 \003(\0132!.googl" + + "e.cloud.compute.v1.Warnings\"^\n\rMinTlsVer" + + "sion\022\035\n\031UNDEFINED_MIN_TLS_VERSION\020\000\022\016\n\007T" + + "LS_1_0\020\276\244\345\017\022\016\n\007TLS_1_1\020\277\244\345\017\022\016\n\007TLS_1_2\020\300" + + "\244\345\017\"e\n\007Profile\022\025\n\021UNDEFINED_PROFILE\020\000\022\021\n" + + "\nCOMPATIBLE\020\324\215\303U\022\016\n\006CUSTOM\020\361\376\245\271\001\022\r\n\006MODE" + + "RN\020\237\276\371>\022\021\n\nRESTRICTED\020\333\350\333|B\025\n\023_creation_" + + "timestampB\016\n\014_descriptionB\016\n\014_fingerprin" + + "tB\005\n\003_idB\007\n\005_kindB\022\n\020_min_tls_versionB\007\n" + + "\005_nameB\n\n\010_profileB\t\n\007_regionB\014\n\n_self_l" + + "ink\"@\n\022SslPolicyReference\022\033\n\nssl_policy\030" + + "\305\375\340\214\001 \001(\tH\000\210\001\001B\r\n\013_ssl_policy\"\240\002\n StartA" + + "syncReplicationDiskRequest\022\024\n\004disk\030\235\233\274\001 " + + "\001(\tB\003\340A\002\022{\n.disks_start_async_replicatio" + + "n_request_resource\030\332\236\300\340\001 \001(\0132:.google.cl" + + "oud.compute.v1.DisksStartAsyncReplicatio" + + "nRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004" + + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" + + "\"\270\002\n&StartAsyncReplicationRegionDiskRequ" + + "est\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301" + + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" + + "\014\340A\002\362G\006region\022\210\001\n5region_disks_start_asy" + + "nc_replication_request_resource\030\205\310\226\342\001 \001(" + + "\0132@.google.cloud.compute.v1.RegionDisksS" + + "tartAsyncReplicationRequestB\003\340A\002\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\233\001\n\024" + + "StartInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(" + + "\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307" + + "\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\316\002\n)St" + + "artInstancesInstanceGroupManagerRequest\022" + + "&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022" + + "\215\001\n8instance_group_managers_start_instan" + + "ces_request_resource\030\253\245\277| \001(\0132C.google.c" + + "loud.compute.v1.InstanceGroupManagersSta" + + "rtInstancesRequestB\003\340A\002\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" + + "request_id\"\346\002\n/StartInstancesRegionInsta" + + "nceGroupManagerRequest\022&\n\026instance_group" + + "_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" + + "\002\362G\006region\022\233\001\n?region_instance_group_man" + + "agers_start_instances_request_resource\030\226" + + "\233\377\354\001 \001(\0132I.google.cloud.compute.v1.Regio" + + "nInstanceGroupManagersStartInstancesRequ" + + "estB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013" + + "_request_id\"\265\002\n%StartWithEncryptionKeyIn" + + "stanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022" + + "\206\001\n4instances_start_with_encryption_key_" + + "request_resource\030\377\376\317\322\001 \001(\0132?.google.clou" + + "d.compute.v1.InstancesStartWithEncryptio" + + "nKeyRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022" + + "\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request" + + "_id\"|\n\016StatefulPolicy\022V\n\017preserved_state" + + "\030\252\342\240\001 \001(\01325.google.cloud.compute.v1.Stat" + + "efulPolicyPreservedStateH\000\210\001\001B\022\n\020_preser" + + "ved_state\"\216\005\n\034StatefulPolicyPreservedSta" + + "te\022R\n\005disks\030\366\314\312- \003(\0132@.google.cloud.comp" + + "ute.v1.StatefulPolicyPreservedState.Disk" + + "sEntry\022a\n\rexternal_i_ps\030\215\323\200\376\001 \003(\0132F.goog" + + "le.cloud.compute.v1.StatefulPolicyPreser" + + "vedState.ExternalIPsEntry\022`\n\rinternal_i_" + + "ps\030\333\233\357f \003(\0132F.google.cloud.compute.v1.St" + + "atefulPolicyPreservedState.InternalIPsEn" + + "try\032m\n\nDisksEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030" + + "\002 \001(\0132?.google.cloud.compute.v1.Stateful" + + "PolicyPreservedStateDiskDevice:\0028\001\032r\n\020Ex" + + "ternalIPsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001" + + "(\0132>.google.cloud.compute.v1.StatefulPol" + + "icyPreservedStateNetworkIp:\0028\001\032r\n\020Intern" + + "alIPsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>" + + ".google.cloud.compute.v1.StatefulPolicyP" + + "reservedStateNetworkIp:\0028\001\"\264\001\n&StatefulP" + + "olicyPreservedStateDiskDevice\022\034\n\013auto_de" + + "lete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\nAutoDelete\022\031\n\025UND" + + "EFINED_AUTO_DELETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON" + + "_PERMANENT_INSTANCE_DELETION\020\347\340\322-B\016\n\014_au" + + "to_delete\"\263\001\n%StatefulPolicyPreservedSta" + + "teNetworkIp\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001" + + "\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINED_AUTO_DELETE" + + "\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INSTANC" + + "E_DELETION\020\347\340\322-B\016\n\014_auto_delete\"x\n\006Statu" + + "s\022\024\n\004code\030\355\333\272\001 \001(\005H\000\210\001\001\022)\n\007details\030\302\344\343\346\001" + + " \003(\0132\024.google.protobuf.Any\022\030\n\007message\030\207\200" + + "\254\307\001 \001(\tH\001\210\001\001B\007\n\005_codeB\n\n\010_message\"\242\001\n\037St" + + "opAsyncReplicationDiskRequest\022\024\n\004disk\030\235\233" + + "\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\254" + + "\001\n%StopAsyncReplicationRegionDiskRequest" + + "\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A" + + "\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n\013_request_id\"\232\002\n$StopGroupAsyncReplicat" + + "ionDiskRequest\022\206\001\n4disks_stop_group_asyn" + + "c_replication_resource_resource\030\225\370\257\245\001 \001(" + + "\0132?.google.cloud.compute.v1.DisksStopGro" + + "upAsyncReplicationResourceB\003\340A\002\022!\n\007proje" + + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" + + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" + + "oneB\r\n\013_request_id\"\244\002\n*StopGroupAsyncRep" + + "licationRegionDiskRequest\022\206\001\n4disks_stop" + + "_group_async_replication_resource_resour" + + "ce\030\225\370\257\245\001 \001(\0132?.google.cloud.compute.v1.D" + + "isksStopGroupAsyncReplicationResourceB\003\340" + + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\324\001\n\023St" + + "opInstanceRequest\022\"\n\021discard_local_ssd\030\317" + + "\351\255\230\001 \001(\010H\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022" + + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" + + "quest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB" + + "\n\340A\002\362G\004zoneB\024\n\022_discard_local_ssdB\r\n\013_re" + + "quest_id\"\313\002\n(StopInstancesInstanceGroupM" + + "anagerRequest\022&\n\026instance_group_manager\030" + + "\303\367\363v \001(\tB\003\340A\002\022\213\001\n7instance_group_manager" + + "s_stop_instances_request_resource\030\215\245\364\021 \001" + + "(\0132B.google.cloud.compute.v1.InstanceGro" + + "upManagersStopInstancesRequestB\003\340A\002\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002" + + "\362G\004zoneB\r\n\013_request_id\"\343\002\n.StopInstances" + + "RegionInstanceGroupManagerRequest\022&\n\026ins" + + "tance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007pro" + + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364" + + "\315\240B \001(\tB\014\340A\002\362G\006region\022\231\001\n>region_instanc" + + "e_group_managers_stop_instances_request_" + + "resource\030\302\234\362\200\001 \001(\0132H.google.cloud.comput" + + "e.v1.RegionInstanceGroupManagersStopInst" + + "ancesRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\t" + + "H\000\210\001\001B\r\n\013_request_id\"\205\013\n\013StoragePool\022*\n\032" + + "capacity_provisioning_type\030\207\212\375w \001(\tH\000\210\001\001" + + "\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H" + + "\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n\021label_fing" + + "erprint\030\231\360\367T \001(\tH\005\210\001\001\022D\n\006labels\030\377\277\301\356\001 \003(" + + "\01320.google.cloud.compute.v1.StoragePool." + + "LabelsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022.\n\035per" + + "formance_provisioning_type\030\375\235\266\337\001 \001(\tH\007\210\001" + + "\001\022-\n\034pool_provisioned_capacity_gb\030\322\317\227\344\001 " + + "\001(\003H\010\210\001\001\022%\n\025pool_provisioned_iops\030\227\311\2715 \001" + + "(\003H\t\210\001\001\022+\n\033pool_provisioned_throughput\030\230" + + "\215\330P \001(\003H\n\210\001\001\022S\n\017resource_status\030\303\372\367v \001(\013" + + "22.google.cloud.compute.v1.StoragePoolRe" + + "sourceStatusH\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" + + "H\014\210\001\001\022!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\r\210\001\001" + + "\022\025\n\005state\030\221\211\2534 \001(\tH\016\210\001\001\022J\n\006status\030\362\237\267V \001" + + "(\01322.google.cloud.compute.v1.StoragePool" + + "ResourceStatusH\017\210\001\001\022\"\n\021storage_pool_type" + + "\030\271\201\260\210\001 \001(\tH\020\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\021\210\001\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"D\n\030CapacityProvisioningType\022(\n$UNDE" + + "FINED_CAPACITY_PROVISIONING_TYPE\020\000\"J\n\033Pe" + + "rformanceProvisioningType\022+\n\'UNDEFINED_P" + + "ERFORMANCE_PROVISIONING_TYPE\020\000\"^\n\005State\022" + + "\023\n\017UNDEFINED_STATE\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020" + + "\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005READ" + + "Y\020\203\303\217%B\035\n\033_capacity_provisioning_typeB\025\n" + "\023_creation_timestampB\016\n\014_descriptionB\005\n\003" - + "_idB\007\n\005_kindB\007\n\005_nameB\017\n\r_proxy_headerB\014" - + "\n\n_self_linkB\n\n\010_serviceB\r\n\013_ssl_policy\"" - + "\255\002\n\022TargetSslProxyList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001" - + "\0229\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.comput" - + "e.v1.TargetSslProxy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001" - + "\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tse" - + "lf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001" - + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001" - + "\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n" - + "\n_self_linkB\n\n\010_warning\"\253\001\n\032TargetTcpPro" - + "xiesScopedList\022F\n\022target_tcp_proxies\030\200\327\372" - + "| \003(\0132\'.google.cloud.compute.v1.TargetTc" - + "pProxy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" - + "d.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"P\n" - + "(TargetTcpProxiesSetBackendServiceReques" - + "t\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_service\"" - + "\240\001\n%TargetTcpProxiesSetProxyHeaderReques" - + "t\022\034\n\014proxy_header\030\376\272\274L \001(\tH\000\210\001\001\"H\n\013Proxy" - + "Header\022\032\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NO" - + "NE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\017\n\r_proxy_head" - + "er\"\350\003\n\016TargetTcpProxy\022\"\n\022creation_timest" - + "amp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001" - + "(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004kind\030\224\367\310\001 \001" - + "(\tH\003\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\033\n\nproxy_b" - + "ind\030\356\316\261\210\001 \001(\010H\005\210\001\001\022\034\n\014proxy_header\030\376\272\274L " - + "\001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032\n\tself" - + "_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(" - + "\tH\t\210\001\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_PROXY" - + "_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001" - + "B\025\n\023_creation_timestampB\016\n\014_descriptionB" - + "\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\r\n\013_proxy_bindB" - + "\017\n\r_proxy_headerB\t\n\007_regionB\014\n\n_self_lin" - + "kB\n\n\010_service\"\314\003\n\034TargetTcpProxyAggregat" - + "edList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005items\030\300\317\367/ \003" - + "(\0132@.google.cloud.compute.v1.TargetTcpPr" - + "oxyAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310" - + "\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002" - + "\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unrea" - + "chables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .g" - + "oogle.cloud.compute.v1.WarningH\004\210\001\001\032a\n\nI" - + "temsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323." - + "google.cloud.compute.v1.TargetTcpProxies" - + "ScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" - + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"\255\002\n" - + "\022TargetTcpProxyList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(\0132\'.google.cloud.compute.v" - + "1.TargetTcpProxy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037" - + "\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_" - + "link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005" - + "\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_s" - + "elf_linkB\n\n\010_warning\"\256\005\n\020TargetVpnGatewa" - + "y\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\020forwardin" - + "g_rules\030\265\232\314\226\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004k" - + "ind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n\021label_fingerprint\030\231" - + "\360\367T \001(\tH\004\210\001\001\022I\n\006labels\030\377\277\301\356\001 \003(\01325.googl" - + "e.cloud.compute.v1.TargetVpnGateway.Labe" - + "lsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n\007network" - + "\030\256\264\205o \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032" - + "\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\026\n\006status\030\362\237\267" - + "V \001(\tH\t\210\001\001\022\022\n\007tunnels\030\213\372\3551 \003(\t\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n" - + "\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREATIN" - + "G\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331" - + "\001\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_timestampB\016" - + "\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\024\n\022_label" - + "_fingerprintB\007\n\005_nameB\n\n\010_networkB\t\n\007_re" - + "gionB\014\n\n_self_linkB\t\n\007_status\"\321\003\n\036Target" - + "VpnGatewayAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210" - + "\001\001\022T\n\005items\030\300\317\367/ \003(\0132B.google.cloud.comp" - + "ute.v1.TargetVpnGatewayAggregatedList.It" - + "emsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_p" - + "age_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305" - + "\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007" - + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." - + "v1.WarningH\004\210\001\001\032b\n\nItemsEntry\022\013\n\003key\030\001 \001" - + "(\t\022C\n\005value\030\002 \001(\01324.google.cloud.compute" - + ".v1.TargetVpnGatewaysScopedList:\0028\001B\005\n\003_" + + "_idB\007\n\005_kindB\024\n\022_label_fingerprintB\007\n\005_n" + + "ameB \n\036_performance_provisioning_typeB\037\n" + + "\035_pool_provisioned_capacity_gbB\030\n\026_pool_" + + "provisioned_iopsB\036\n\034_pool_provisioned_th" + + "roughputB\022\n\020_resource_statusB\014\n\n_self_li" + + "nkB\024\n\022_self_link_with_idB\010\n\006_stateB\t\n\007_s" + + "tatusB\024\n\022_storage_pool_typeB\007\n\005_zone\"\341\003\n" + + "\031StoragePoolAggregatedList\022\024\n\004etag\030\225\322\276\001 " + + "\001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022O\n\005items\030\300\317\367/" + + " \003(\0132=.google.cloud.compute.v1.StoragePo" + + "olAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001" + + " \001(\tH\002\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\003\210" + + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unreac" + + "hables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .go" + + "ogle.cloud.compute.v1.WarningH\005\210\001\001\032]\n\nIt" + + "emsEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.g" + + "oogle.cloud.compute.v1.StoragePoolsScope" + + "dList:\0028\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_n" + + "ext_page_tokenB\014\n\n_self_linkB\n\n\010_warning" + + "\"\340\004\n\017StoragePoolDisk\022\035\n\022attached_instanc" + + "es\030\243\363\216\037 \003(\t\022\"\n\022creation_timestamp\030\266\217\307\016 \001" + + "(\tH\000\210\001\001\022\024\n\004disk\030\235\233\274\001 \001(\tH\001\210\001\001\022\024\n\004name\030\213\365" + + "\315\001 \001(\tH\002\210\001\001\022 \n\020provisioned_iops\030\324\275\207Y \001(\003" + + "H\003\210\001\001\022\'\n\026provisioned_throughput\030\225\276\210\373\001 \001(" + + "\003H\004\210\001\001\022\034\n\021resource_policies\030\341\234\314\n \003(\t\022\030\n\007" + + "size_gb\030\331\213\200\354\001 \001(\003H\005\210\001\001\022\026\n\006status\030\362\237\267V \001(" + + "\tH\006\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\007\210\001\001\022\032\n\nused_byt" + + "es\030\351\232\272n \001(\003H\010\210\001\001\"\210\001\n\006Status\022\024\n\020UNDEFINED" + + "_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020" + + "\250\247\207\374\001\022\016\n\006FAILED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%\022\021\n\tR" + + "ESTORING\020\253\247\342\300\001\022\023\n\013UNAVAILABLE\020\260\330\245\305\001B\025\n\023_" + + "creation_timestampB\007\n\005_diskB\007\n\005_nameB\023\n\021" + + "_provisioned_iopsB\031\n\027_provisioned_throug" + + "hputB\n\n\010_size_gbB\t\n\007_statusB\007\n\005_typeB\r\n\013" + + "_used_bytes\"\337\002\n\017StoragePoolList\022\024\n\004etag\030" + + "\225\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\0226\n\005items" + + "\030\300\317\367/ \003(\0132$.google.cloud.compute.v1.Stor" + + "agePool\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_pa" + + "ge_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\004\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB" + + "\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_wa" + + "rning\"\350\002\n\024StoragePoolListDisks\022\024\n\004etag\030\225" + + "\322\276\001 \001(\tH\000\210\001\001\022\020\n\002id\030\233\032 \001(\tH\001\210\001\001\022:\n\005items\030" + + "\300\317\367/ \003(\0132(.google.cloud.compute.v1.Stora" + + "gePoolDisk\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\004\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229" + + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" + + "e.v1.WarningH\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_ki" + + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" + + "_warning\"\355\005\n\031StoragePoolResourceStatus\022\032" + + "\n\ndisk_count\030\355\257\235W \001(\003H\000\210\001\001\022&\n\025last_resiz" + + "e_timestamp\030\324\373\347\356\001 \001(\tH\001\210\001\001\0226\n&max_total_" + + "provisioned_disk_capacity_gb\030\337\336\210O \001(\003H\002\210" + + "\001\001\022)\n\030pool_used_capacity_bytes\030\305\351\260\363\001 \001(\003" + + "H\003\210\001\001\022\036\n\016pool_used_iops\030\210\311\274/ \001(\003H\004\210\001\001\022$\n" + + "\024pool_used_throughput\030\311\233\245b \001(\003H\005\210\001\001\022\'\n\027p" + + "ool_user_written_bytes\030\322\355\226m \001(\003H\006\210\001\001\0223\n\"" + + "total_provisioned_disk_capacity_gb\030\244\215\263\370\001" + + " \001(\003H\007\210\001\001\022+\n\033total_provisioned_disk_iops" + + "\030\205\334\322\017 \001(\003H\010\210\001\001\0222\n!total_provisioned_disk" + + "_throughput\030\206\213\274\325\001 \001(\003H\t\210\001\001B\r\n\013_disk_coun" + + "tB\030\n\026_last_resize_timestampB)\n\'_max_tota" + + "l_provisioned_disk_capacity_gbB\033\n\031_pool_" + + "used_capacity_bytesB\021\n\017_pool_used_iopsB\027" + + "\n\025_pool_used_throughputB\032\n\030_pool_user_wr" + + "itten_bytesB%\n#_total_provisioned_disk_c" + + "apacity_gbB\036\n\034_total_provisioned_disk_io" + + "psB$\n\"_total_provisioned_disk_throughput" + + "\"\347\007\n\017StoragePoolType\022\"\n\022creation_timesta" + + "mp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001 \001(\013" + + "2*.google.cloud.compute.v1.DeprecationSt" + + "atusH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022" + + "\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022" + + "0\n max_pool_provisioned_capacity_gb\030\315\361\354V" + + " \001(\003H\005\210\001\001\022*\n\031max_pool_provisioned_iops\030\374" + + "\317\331\365\001 \001(\003H\006\210\001\001\022/\n\037max_pool_provisioned_th" + + "roughput\030\275\324\224m \001(\003H\007\210\001\001\0220\n min_pool_provi" + + "sioned_capacity_gb\030\237\215\213[ \001(\003H\010\210\001\001\022*\n\031min_" + + "pool_provisioned_iops\030\352\304\313\306\001 \001(\003H\t\210\001\001\0220\n\037" + + "min_pool_provisioned_throughput\030\253\264\256\257\001 \001(" + + "\003H\n\210\001\001\022\034\n\013min_size_gb\030\354\301\333\267\001 \001(\003H\013\210\001\001\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\014\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\r\210\001\001\022!\n\021self_link_with_id\030\202\254\235\025 \001(\tH\016\210\001" + + "\001\022\037\n\024supported_disk_types\030\210\217\347G \003(\t\022\024\n\004zo" + + "ne\030\254\307\344\001 \001(\tH\017\210\001\001B\025\n\023_creation_timestampB" + + "\r\n\013_deprecatedB\016\n\014_descriptionB\005\n\003_idB\007\n" + + "\005_kindB#\n!_max_pool_provisioned_capacity" + + "_gbB\034\n\032_max_pool_provisioned_iopsB\"\n _ma" + + "x_pool_provisioned_throughputB#\n!_min_po" + + "ol_provisioned_capacity_gbB\034\n\032_min_pool_" + + "provisioned_iopsB\"\n _min_pool_provisione" + + "d_throughputB\016\n\014_min_size_gbB\007\n\005_nameB\014\n" + + "\n_self_linkB\024\n\022_self_link_with_idB\007\n\005_zo" + + "ne\"\265\003\n\035StoragePoolTypeAggregatedList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\022S\n\005items\030\300\317\367/ \003(\0132A.googl" + + "e.cloud.compute.v1.StoragePoolTypeAggreg" + + "atedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001" + + "\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tse" + + "lf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001" + + "(\0132 .google.cloud.compute.v1.WarningH\004\210\001" + + "\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 " + + "\001(\01323.google.cloud.compute.v1.StoragePoo" + + "lTypesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020" + + "_next_page_tokenB\014\n\n_self_linkB\n\n\010_warni" + + "ng\"\257\002\n\023StoragePoolTypeList\022\020\n\002id\030\233\032 \001(\tH" + + "\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.google.cloud.co" + + "mpute.v1.StoragePoolType\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" + + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" + + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" + + "enB\014\n\n_self_linkB\n\n\010_warning\"\255\001\n\032Storage" + + "PoolTypesScopedList\022H\n\022storage_pool_type" + + "s\030\332\255\320\203\001 \003(\0132(.google.cloud.compute.v1.St" + + "oragePoolType\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" + + "le.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_war" + + "ning\"\240\001\n\026StoragePoolsScopedList\022?\n\rstora" + + "ge_pools\030\223\222\300\320\001 \003(\0132$.google.cloud.comput" + + "e.v1.StoragePool\0229\n\007warning\030\234\337\226\030 \001(\0132 .g" + + "oogle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_" + + "warning\"\274\020\n\nSubnetwork\022\"\n\022creation_times" + + "tamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 " + + "\001(\tH\001\210\001\001\022 \n\020enable_flow_logs\030\344\304\241H \001(\010H\002\210" + + "\001\001\022$\n\024external_ipv6_prefix\030\366\222\266B \001(\tH\003\210\001\001" + + "\022\033\n\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022 \n\017gateway" + + "_address\030\371\211\244\333\001 \001(\tH\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001" + + "\001\022%\n\024internal_ipv6_prefix\030\350\242\264\361\001 \001(\tH\007\210\001\001" + + "\022\035\n\rip_cidr_range\030\312\315\344. \001(\tH\010\210\001\001\022!\n\020ipv6_", + "access_type\030\335\365\321\360\001 \001(\tH\t\210\001\001\022 \n\017ipv6_cidr_" + + "range\030\212\234\237\202\001 \001(\tH\n\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\013\210" + + "\001\001\022I\n\nlog_config\030\235\321\301\247\001 \001(\0132,.google.clou" + + "d.compute.v1.SubnetworkLogConfigH\014\210\001\001\022\024\n" + + "\004name\030\213\365\315\001 \001(\tH\r\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH" + + "\016\210\001\001\022)\n\030private_ip_google_access\030\316\350\375\310\001 \001" + + "(\010H\017\210\001\001\022*\n\032private_ipv6_google_access\030\216\314" + + "\202\027 \001(\tH\020\210\001\001\022\030\n\007purpose\030\236\372\357\226\001 \001(\tH\021\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\022\210\001\001\022(\n\027reserved_intern" + + "al_range\030\262\236\277\210\001 \001(\tH\023\210\001\001\022\024\n\004role\030\366\200\326\001 \001(\t" + + "H\024\210\001\001\022Q\n\023secondary_ip_ranges\030\343\377\224A \003(\01321." + + "google.cloud.compute.v1.SubnetworkSecond" + + "aryRange\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022\033\n\n" + + "stack_type\030\221\265\213\313\001 \001(\tH\026\210\001\001\022\025\n\005state\030\221\211\2534 " + + "\001(\tH\027\210\001\001\"y\n\016Ipv6AccessType\022\036\n\032UNDEFINED_" + + "IPV6_ACCESS_TYPE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010I" + + "NTERNAL\020\275\355\226\205\001\022$\n\034UNSPECIFIED_IPV6_ACCESS" + + "_TYPE\020\245\366\244\225\001\"\276\001\n\027PrivateIpv6GoogleAccess\022" + + "(\n$UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS\020" + + "\000\022\035\n\025DISABLE_GOOGLE_ACCESS\020\363\251\204\327\001\022-\n%ENAB" + + "LE_BIDIRECTIONAL_ACCESS_TO_GOOGLE\020\272\312\211\314\001\022" + + "+\n#ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE\020\327" + + "\372\266\211\001\"\370\001\n\007Purpose\022\025\n\021UNDEFINED_PURPOSE\020\000\022" + + "\033\n\024GLOBAL_MANAGED_PROXY\020\362\313\340p\022#\n\034INTERNAL" + + "_HTTPS_LOAD_BALANCER\020\331\266\316v\022\026\n\016PEER_MIGRAT" + + "ION\020\221\252\307\352\001\022\017\n\007PRIVATE\020\343\342\262\300\001\022\023\n\013PRIVATE_NA" + + "T\020\245\310\256\257\001\022\027\n\020PRIVATE_RFC_1918\020\333\376\305y\022\036\n\027PRIV" + + "ATE_SERVICE_CONNECT\020\304\364\371\026\022\035\n\026REGIONAL_MAN" + + "AGED_PROXY\020\356\266\375H\":\n\004Role\022\022\n\016UNDEFINED_ROL" + + "E\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\006BACKUP\020\302\323\315\242\001\"{\n\tS" + + "tackType\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020\n\tIP" + + "V4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\tIPV6_O" + + "NLY\020\344\255\374%\022\036\n\026UNSPECIFIED_STACK_TYPE\020\331\321\221\216\001" + + "\"<\n\005State\022\023\n\017UNDEFINED_STATE\020\000\022\020\n\010DRAINI" + + "NG\020\352\325\214\345\001\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_time" + + "stampB\016\n\014_descriptionB\023\n\021_enable_flow_lo" + + "gsB\027\n\025_external_ipv6_prefixB\016\n\014_fingerpr" + + "intB\022\n\020_gateway_addressB\005\n\003_idB\027\n\025_inter" + + "nal_ipv6_prefixB\020\n\016_ip_cidr_rangeB\023\n\021_ip" + + "v6_access_typeB\022\n\020_ipv6_cidr_rangeB\007\n\005_k" + + "indB\r\n\013_log_configB\007\n\005_nameB\n\n\010_networkB" + + "\033\n\031_private_ip_google_accessB\035\n\033_private" + + "_ipv6_google_accessB\n\n\010_purposeB\t\n\007_regi" + + "onB\032\n\030_reserved_internal_rangeB\007\n\005_roleB" + + "\014\n\n_self_linkB\r\n\013_stack_typeB\010\n\006_state\"\277" + + "\003\n\030SubnetworkAggregatedList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.google.cloud.c" + + "ompute.v1.SubnetworkAggregatedList.Items" + + "Entry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" + + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " + + "\001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007war" + + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." + + "WarningH\004\210\001\001\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" + + "=\n\005value\030\002 \001(\0132..google.cloud.compute.v1" + + ".SubnetworksScopedList:\0028\001B\005\n\003_idB\007\n\005_ki" + + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" + + "_warning\"\245\002\n\016SubnetworkList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.google.cloud.c" + + "ompute.v1.Subnetwork\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210" + + "\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\004\210" + + "\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014" + + "\n\n_self_linkB\n\n\010_warning\"\335\004\n\023SubnetworkL" + + "ogConfig\022$\n\024aggregation_interval\030\202\233\264S \001(" + + "\tH\000\210\001\001\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\001\210\001\001\022\033\n\013filte" + + "r_expr\030\334\244\270W \001(\tH\002\210\001\001\022\036\n\rflow_sampling\030\330\347" + + "\345\374\001 \001(\002H\003\210\001\001\022\030\n\010metadata\030\257\366\265) \001(\tH\004\210\001\001\022\033" + + "\n\017metadata_fields\030\311\273\273\264\001 \003(\t\"\310\001\n\023Aggregat" + + "ionInterval\022\"\n\036UNDEFINED_AGGREGATION_INT" + + "ERVAL\020\000\022\027\n\017INTERVAL_10_MIN\020\314\321\245\350\001\022\027\n\017INTE" + + "RVAL_15_MIN\020\321\274\277\352\001\022\025\n\016INTERVAL_1_MIN\020\252\322\366 " + + "\022\026\n\017INTERVAL_30_SEC\020\211\340\314\003\022\025\n\016INTERVAL_5_M" + + "IN\020\256\216\330\"\022\025\n\016INTERVAL_5_SEC\020\255\272\330\"\"u\n\010Metada" + + "ta\022\026\n\022UNDEFINED_METADATA\020\000\022\026\n\017CUSTOM_MET" + + "ADATA\020\275\330\343\035\022\034\n\024EXCLUDE_ALL_METADATA\020\222\275\301\237\001" + + "\022\033\n\024INCLUDE_ALL_METADATA\020\204\315\277NB\027\n\025_aggreg" + + "ation_intervalB\t\n\007_enableB\016\n\014_filter_exp" + + "rB\020\n\016_flow_samplingB\013\n\t_metadata\"\275\001\n\030Sub" + + "networkSecondaryRange\022\035\n\rip_cidr_range\030\312" + + "\315\344. \001(\tH\000\210\001\001\022\033\n\nrange_name\030\315\360\264\236\001 \001(\tH\001\210\001" + + "\001\022(\n\027reserved_internal_range\030\262\236\277\210\001 \001(\tH\002" + + "\210\001\001B\020\n\016_ip_cidr_rangeB\r\n\013_range_nameB\032\n\030" + + "_reserved_internal_range\"V\n#SubnetworksE" + + "xpandIpCidrRangeRequest\022\035\n\rip_cidr_range" + + "\030\312\315\344. \001(\tH\000\210\001\001B\020\n\016_ip_cidr_range\"\234\001\n\025Sub" + + "networksScopedList\022<\n\013subnetworks\030\305\324\245\306\001 " + + "\003(\0132#.google.cloud.compute.v1.Subnetwork" + + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" + + "ute.v1.WarningH\000\210\001\001B\n\n\010_warning\"t\n*Subne" + + "tworksSetPrivateIpGoogleAccessRequest\022)\n" + + "\030private_ip_google_access\030\316\350\375\310\001 \001(\010H\000\210\001\001" + + "B\033\n\031_private_ip_google_access\"\177\n\nSubsett" + + "ing\022\026\n\006policy\030\262\312\266+ \001(\tH\000\210\001\001\"N\n\006Policy\022\024\n" + + "\020UNDEFINED_POLICY\020\000\022!\n\032CONSISTENT_HASH_S" + + "UBSETTING\020\264\230\3743\022\013\n\004NONE\020\270\316\222\001B\t\n\007_policy\"\327" + + "\001\n\026SuspendInstanceRequest\022\"\n\021discard_loc" + + "al_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001\022\030\n\010instance\030\225\251\332\010 \001" + + "(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254" + + "\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\024\n\022_discard_local_ss" + + "dB\r\n\013_request_id\"\324\002\n+SuspendInstancesIns" + + "tanceGroupManagerRequest\022&\n\026instance_gro" + + "up_manager\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n:instance_gr" + + "oup_managers_suspend_instances_request_r" + + "esource\030\321\215\241\026 \001(\0132E.google.cloud.compute." + + "v1.InstanceGroupManagersSuspendInstances" + + "RequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"" + + "\353\002\n1SuspendInstancesRegionInstanceGroupM" + + "anagerRequest\022&\n\026instance_group_manager\030" + + "\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G" + + "\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006regio" + + "n\022\236\001\nAregion_instance_group_managers_sus" + + "pend_instances_request_resource\030\374\345\224f \001(\013" + + "2K.google.cloud.compute.v1.RegionInstanc" + + "eGroupManagersSuspendInstancesRequestB\003\340" + + "A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" + + "st_id\"\211\001\n SwitchToCustomModeNetworkReque" + + "st\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331" + + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\330\003\n\016TCPHealthC" + + "heck\022\024\n\004port\030\201\261\322\001 \001(\005H\000\210\001\001\022\031\n\tport_name\030" + + "\211\207\347\023 \001(\tH\001\210\001\001\022\"\n\022port_specification\030\305\353\314\030" + + " \001(\tH\002\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\003\210\001\001\022" + + "\027\n\007request\030\217\345\273\n \001(\tH\004\210\001\001\022\030\n\010response\030\301\250\334" + + "] \001(\tH\005\210\001\001\"~\n\021PortSpecification\022 \n\034UNDEF" + + "INED_PORT_SPECIFICATION\020\000\022\025\n\016USE_FIXED_P" + + "ORT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_" + + "SERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UND" + + "EFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PR" + + "OXY_V1\020\254\244\267\237\001B\007\n\005_portB\014\n\n_port_nameB\025\n\023_" + + "port_specificationB\017\n\r_proxy_headerB\n\n\010_" + + "requestB\013\n\t_response\"E\n\004Tags\022\033\n\013fingerpr" + + "int\030\344\321\363o \001(\tH\000\210\001\001\022\020\n\005items\030\300\317\367/ \003(\tB\016\n\014_" + + "fingerprint\"\312\003\n\017TargetGrpcProxy\022\"\n\022creat" + + "ion_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(" + + "\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\032\n\tself_lin" + + "k\030\215\222\305\331\001 \001(\tH\006\210\001\001\022!\n\021self_link_with_id\030\202\254" + + "\235\025 \001(\tH\007\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tH\010\210\001\001\022&\n" + + "\026validate_for_proxyless\030\250\343\3060 \001(\010H\t\210\001\001B\025\n" + + "\023_creation_timestampB\016\n\014_descriptionB\016\n\014" + + "_fingerprintB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\014\n" + + "\n_self_linkB\024\n\022_self_link_with_idB\n\n\010_ur" + + "l_mapB\031\n\027_validate_for_proxyless\"\257\002\n\023Tar" + + "getGrpcProxyList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022:\n\005it" + + "ems\030\300\317\367/ \003(\0132(.google.cloud.compute.v1.T" + + "argetGrpcProxy\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" + + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 ." + + "google.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003" + + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" + + "f_linkB\n\n\010_warning\"\256\001\n\033TargetHttpProxies" + + "ScopedList\022H\n\023target_http_proxies\030\303\325\250M \003" + + "(\0132(.google.cloud.compute.v1.TargetHttpP" + + "roxy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\353\003\n\017" + + "TargetHttpProxy\022\"\n\022creation_timestamp\030\266\217" + + "\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001" + + "\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022,\n\033http_k" + + "eep_alive_timeout_sec\030\336\316\246\325\001 \001(\005H\003\210\001\001\022\020\n\002" + + "id\030\233\032 \001(\004H\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\006\210\001\001\022\033\n\nproxy_bind\030\356\316\261\210\001 \001" + + "(\010H\007\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n\tself_" + + "link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\t" + + "H\n\210\001\001B\025\n\023_creation_timestampB\016\n\014_descrip" + + "tionB\016\n\014_fingerprintB\036\n\034_http_keep_alive" + + "_timeout_secB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\r\n" + + "\013_proxy_bindB\t\n\007_regionB\014\n\n_self_linkB\n\n" + + "\010_url_map\"\210\003\n\035TargetHttpProxyAggregatedL" + + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022S\n\005items\030\300\317\367/ \003(\0132" + + "A.google.cloud.compute.v1.TargetHttpProx" + + "yAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 " + + "\001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001" + + "\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreach" + + "ables\030\237\240\206t \003(\t\032b\n\nItemsEntry\022\013\n\003key\030\001 \001(" + + "\t\022C\n\005value\030\002 \001(\01324.google.cloud.compute." + + "v1.TargetHttpProxiesScopedList:\0028\001B\005\n\003_i" + + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" + + "link\"\257\002\n\023TargetHttpProxyList\022\020\n\002id\030\233\032 \001(" + + "\tH\000\210\001\001\022:\n\005items\030\300\317\367/ \003(\0132(.google.cloud." + + "compute.v1.TargetHttpProxy\022\024\n\004kind\030\224\367\310\001 " + + "\001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001" + + "\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_t" + + "okenB\014\n\n_self_linkB\n\n\010_warning\"\262\001\n\034Targe" + + "tHttpsProxiesScopedList\022K\n\024target_https_" + + "proxies\030\212\374\347\256\001 \003(\0132).google.cloud.compute" + + ".v1.TargetHttpsProxy\0229\n\007warning\030\234\337\226\030 \001(\013" + + "2 .google.cloud.compute.v1.WarningH\000\210\001\001B" + + "\n\n\010_warning\"a\n*TargetHttpsProxiesSetCert" + + "ificateMapRequest\022\037\n\017certificate_map\030\264\345\315" + + "J \001(\tH\000\210\001\001B\022\n\020_certificate_map\"\266\001\n(Targe" + + "tHttpsProxiesSetQuicOverrideRequest\022\036\n\rq" + + "uic_override\030\255\241\333\331\001 \001(\tH\000\210\001\001\"X\n\014QuicOverr" + + "ide\022\033\n\027UNDEFINED_QUIC_OVERRIDE\020\000\022\016\n\007DISA" + + "BLE\020\310\335\246s\022\016\n\006ENABLE\020\203\263\240\321\001\022\013\n\004NONE\020\270\316\222\001B\020\n" + + "\016_quic_override\"K\n+TargetHttpsProxiesSet" + + "SslCertificatesRequest\022\034\n\020ssl_certificat" + + "es\030\217\242\303\256\001 \003(\t\"\235\010\n\020TargetHttpsProxy\022$\n\024aut" + + "horization_policy\030\270\357\227\020 \001(\tH\000\210\001\001\022\037\n\017certi" + + "ficate_map\030\264\345\315J \001(\tH\001\210\001\001\022\"\n\022creation_tim" + + "estamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013description\030\374\207\326\311" + + "\001 \001(\tH\003\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022" + + ",\n\033http_keep_alive_timeout_sec\030\336\316\246\325\001 \001(\005" + + "H\005\210\001\001\022\020\n\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\007\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\033\n\nproxy_bin" + + "d\030\356\316\261\210\001 \001(\010H\t\210\001\001\022\036\n\rquic_override\030\255\241\333\331\001 " + + "\001(\tH\n\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n\tself" + + "_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\"\n\021server_tls_polic" + + "y\030\362\336\207\215\001 \001(\tH\r\210\001\001\022\034\n\020ssl_certificates\030\217\242\303" + + "\256\001 \003(\t\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tH\016\210\001\001\022\036\n\016t" + + "ls_early_data\030\312\341\221\035 \001(\tH\017\210\001\001\022\030\n\007url_map\030\214" + + "\225\201\257\001 \001(\tH\020\210\001\001\"X\n\014QuicOverride\022\033\n\027UNDEFIN" + + "ED_QUIC_OVERRIDE\020\000\022\016\n\007DISABLE\020\310\335\246s\022\016\n\006EN" + + "ABLE\020\203\263\240\321\001\022\013\n\004NONE\020\270\316\222\001\"x\n\014TlsEarlyData\022" + + "\034\n\030UNDEFINED_TLS_EARLY_DATA\020\000\022\020\n\010DISABLE" + + "D\020\374\324\260\366\001\022\022\n\nPERMISSIVE\020\237\345\276\360\001\022\016\n\006STRICT\020\311\245" + + "\241\223\001\022\024\n\014UNRESTRICTED\020\264\247\205\332\001B\027\n\025_authorizat" + + "ion_policyB\022\n\020_certificate_mapB\025\n\023_creat" + + "ion_timestampB\016\n\014_descriptionB\016\n\014_finger" + + "printB\036\n\034_http_keep_alive_timeout_secB\005\n" + + "\003_idB\007\n\005_kindB\007\n\005_nameB\r\n\013_proxy_bindB\020\n" + + "\016_quic_overrideB\t\n\007_regionB\014\n\n_self_link" + + "B\024\n\022_server_tls_policyB\r\n\013_ssl_policyB\021\n" + + "\017_tls_early_dataB\n\n\010_url_map\"\322\003\n\036TargetH" + + "ttpsProxyAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001" + + "\001\022T\n\005items\030\300\317\367/ \003(\0132B.google.cloud.compu" + + "te.v1.TargetHttpsProxyAggregatedList.Ite" + + "msEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pa" + + "ge_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331" + + "\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007w" + + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" + + "1.WarningH\004\210\001\001\032c\n\nItemsEntry\022\013\n\003key\030\001 \001(" + + "\t\022D\n\005value\030\002 \001(\01325.google.cloud.compute." + + "v1.TargetHttpsProxiesScopedList:\0028\001B\005\n\003_" + "idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self" - + "_linkB\n\n\010_warning\"\261\002\n\024TargetVpnGatewayLi" + + "_linkB\n\n\010_warning\"\261\002\n\024TargetHttpsProxyLi" + "st\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317\367/ \003(\0132)" - + ".google.cloud.compute.v1.TargetVpnGatewa" + + ".google.cloud.compute.v1.TargetHttpsProx" + "y\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_tok" + "en\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH" + "\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + "compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB" + "\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_wa" - + "rning\"\260\001\n\033TargetVpnGatewaysScopedList\022J\n" - + "\023target_vpn_gateways\030\210\223\312\277\001 \003(\0132).google." - + "cloud.compute.v1.TargetVpnGateway\0229\n\007war" - + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." - + "WarningH\000\210\001\001B\n\n\010_warning\"\223\004\n\013TestFailure" - + "\022\"\n\021actual_output_url\030\202\331\361\210\001 \001(\tH\000\210\001\001\022-\n\035" - + "actual_redirect_response_code\030\331\203\274\024 \001(\005H\001" - + "\210\001\001\022\037\n\016actual_service\030\204\322\376\321\001 \001(\tH\002\210\001\001\022$\n\023" - + "expected_output_url\030\230\242\367\316\001 \001(\tH\003\210\001\001\022/\n\037ex" - + "pected_redirect_response_code\030\357\352\200\t \001(\005H\004" - + "\210\001\001\022 \n\020expected_service\030\256\370\361? \001(\tH\005\210\001\001\022=\n" - + "\007headers\030\206\337\235{ \003(\0132).google.cloud.compute" - + ".v1.UrlMapTestHeader\022\024\n\004host\030\250\353\303\001 \001(\tH\006\210" - + "\001\001\022\024\n\004path\030\245\310\321\001 \001(\tH\007\210\001\001B\024\n\022_actual_outp" - + "ut_urlB \n\036_actual_redirect_response_code" - + "B\021\n\017_actual_serviceB\026\n\024_expected_output_" - + "urlB\"\n _expected_redirect_response_codeB" - + "\023\n\021_expected_serviceB\007\n\005_hostB\007\n\005_path\"\300" - + "\001\n&TestIamPermissionsBackendBucketReques" - + "t\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" - + "\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_request" - + "_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.compu" - + "te.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n\'Te" - + "stIamPermissionsBackendServiceRequest\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] " - + "\001(\tB\003\340A\002\022c\n!test_permissions_request_res" - + "ource\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v" - + "1.TestPermissionsRequestB\003\340A\002\"\315\001\n\035TestIa" - + "mPermissionsDiskRequest\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!te" - + "st_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissi" - + "onsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001" - + "\n+TestIamPermissionsExternalVpnGatewayRe" + + "rning\"\374\003\n\016TargetInstance\022\"\n\022creation_tim" + + "estamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311" + + "\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\030\n\010instance" + + "\030\225\251\332\010 \001(\tH\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\005\210\001\001\022\033\n\nnat_policy\030\220\304\212\363\001 \001" + + "(\tH\006\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\037\n\017secu" + + "rity_policy\030\221\206\312Q \001(\tH\010\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\t\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\n\210\001\001\"4\n\tN" + + "atPolicy\022\030\n\024UNDEFINED_NAT_POLICY\020\000\022\r\n\006NO" + + "_NAT\020\203\273\376LB\025\n\023_creation_timestampB\016\n\014_des" + + "criptionB\005\n\003_idB\013\n\t_instanceB\007\n\005_kindB\007\n" + + "\005_nameB\r\n\013_nat_policyB\n\n\010_networkB\022\n\020_se" + + "curity_policyB\014\n\n_self_linkB\007\n\005_zone\"\313\003\n" + + "\034TargetInstanceAggregatedList\022\020\n\002id\030\233\032 \001" + + "(\tH\000\210\001\001\022R\n\005items\030\300\317\367/ \003(\0132@.google.cloud" + + ".compute.v1.TargetInstanceAggregatedList" + + ".ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017nex" + + "t_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030" + + "\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\022" + + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" + + "te.v1.WarningH\004\210\001\001\032`\n\nItemsEntry\022\013\n\003key\030" + + "\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud.comp" + + "ute.v1.TargetInstancesScopedList:\0028\001B\005\n\003" + + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" + + "f_linkB\n\n\010_warning\"\255\002\n\022TargetInstanceLis" + + "t\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'." + + "google.cloud.compute.v1.TargetInstance\022\024" + + "\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030" + + "\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001" + + "\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" + + "pute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020" + + "_next_page_tokenB\014\n\n_self_linkB\n\n\010_warni" + + "ng\"\251\001\n\031TargetInstancesScopedList\022E\n\020targ" + + "et_instances\030\320\322\255\273\001 \003(\0132\'.google.cloud.co" + + "mpute.v1.TargetInstance\0229\n\007warning\030\234\337\226\030 " + + "\001(\0132 .google.cloud.compute.v1.WarningH\000\210" + + "\001\001B\n\n\010_warning\"\245\006\n\nTargetPool\022\033\n\013backup_" + + "pool\030\371\310\360\025 \001(\tH\000\210\001\001\022\"\n\022creation_timestamp" + + "\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH" + + "\002\210\001\001\022\036\n\016failover_ratio\030\376\224\264e \001(\002H\003\210\001\001\022\031\n\r" + + "health_checks\030\256\257\346\325\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\004\210\001" + + "\001\022\024\n\tinstances\030\376\374\357\r \003(\t\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\026\n\006region\030\364\315" + + "\240B \001(\tH\007\210\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tH" + + "\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n\020sess" + + "ion_affinity\030\261\301\231\335\001 \001(\tH\n\210\001\001\"\213\002\n\017SessionA" + + "ffinity\022\036\n\032UNDEFINED_SESSION_AFFINITY\020\000\022" + + "\021\n\tCLIENT_IP\020\233\334\351\244\001\022\037\n\030CLIENT_IP_NO_DESTI" + + "NATION\020\224\232\3152\022\033\n\024CLIENT_IP_PORT_PROTO\020\256\362\334i" + + "\022\026\n\017CLIENT_IP_PROTO\020\244\305\211\014\022\030\n\020GENERATED_CO" + + "OKIE\020\264\316\312\260\001\022\023\n\014HEADER_FIELD\020\250\211\334_\022\023\n\013HTTP_" + + "COOKIE\020\373\243\203\354\001\022\013\n\004NONE\020\270\316\222\001\022\036\n\026STRONG_COOK" + + "IE_AFFINITY\020\373\335\223\321\001B\016\n\014_backup_poolB\025\n\023_cr" + + "eation_timestampB\016\n\014_descriptionB\021\n\017_fai" + + "lover_ratioB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007" + + "_regionB\022\n\020_security_policyB\014\n\n_self_lin" + + "kB\023\n\021_session_affinity\"\277\003\n\030TargetPoolAgg" + + "regatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300" + + "\317\367/ \003(\0132<.google.cloud.compute.v1.Target" + + "PoolAggregatedList.ItemsEntry\022\024\n\004kind\030\224\367" + + "\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" + + "\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unre" + + "achables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 ." + + "google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + + "ItemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132." + + ".google.cloud.compute.v1.TargetPoolsScop" + + "edList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page" + + "_tokenB\014\n\n_self_linkB\n\n\010_warning\"{\n\030Targ" + + "etPoolInstanceHealth\022@\n\rhealth_status\030\265\326" + + "\272\265\001 \003(\0132%.google.cloud.compute.v1.Health" + + "Status\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n\005_kind\"\245\002" + + "\n\016TargetPoolList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005it" + + "ems\030\300\317\367/ \003(\0132#.google.cloud.compute.v1.T" + + "argetPool\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_" + + "page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222" + + "\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .googl" + + "e.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007" + + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" + + "kB\n\n\010_warning\"l\n TargetPoolsAddHealthChe" + + "ckRequest\022H\n\rhealth_checks\030\256\257\346\325\001 \003(\0132-.g" + + "oogle.cloud.compute.v1.HealthCheckRefere" + + "nce\"a\n\035TargetPoolsAddInstanceRequest\022@\n\t" + + "instances\030\376\374\357\r \003(\0132*.google.cloud.comput" + + "e.v1.InstanceReference\"o\n#TargetPoolsRem" + + "oveHealthCheckRequest\022H\n\rhealth_checks\030\256" + + "\257\346\325\001 \003(\0132-.google.cloud.compute.v1.Healt" + + "hCheckReference\"d\n TargetPoolsRemoveInst" + + "anceRequest\022@\n\tinstances\030\376\374\357\r \003(\0132*.goog" + + "le.cloud.compute.v1.InstanceReference\"\235\001" + + "\n\025TargetPoolsScopedList\022=\n\014target_pools\030" + + "\251\237\240\240\001 \003(\0132#.google.cloud.compute.v1.Targ" + + "etPool\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clou" + + "d.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"4\n" + + "\017TargetReference\022\026\n\006target\030\221\343\371[ \001(\tH\000\210\001\001" + + "B\t\n\007_target\"P\n(TargetSslProxiesSetBacken" + + "dServiceRequest\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001" + + "\001B\n\n\010_service\"_\n(TargetSslProxiesSetCert" + + "ificateMapRequest\022\037\n\017certificate_map\030\264\345\315" + + "J \001(\tH\000\210\001\001B\022\n\020_certificate_map\"\240\001\n%Targe" + + "tSslProxiesSetProxyHeaderRequest\022\034\n\014prox" + + "y_header\030\376\272\274L \001(\tH\000\210\001\001\"H\n\013ProxyHeader\022\032\n" + + "\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020" + + "\n\010PROXY_V1\020\254\244\267\237\001B\017\n\r_proxy_header\"I\n)Tar" + + "getSslProxiesSetSslCertificatesRequest\022\034" + + "\n\020ssl_certificates\030\217\242\303\256\001 \003(\t\"\230\004\n\016TargetS" + + "slProxy\022\037\n\017certificate_map\030\264\345\315J \001(\tH\000\210\001\001" + + "\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H" + + "\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 " + + "\001(\tH\005\210\001\001\022\034\n\014proxy_header\030\376\272\274L \001(\tH\006\210\001\001\022\032" + + "\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\030\n\007service\030\265\215" + + "\217\262\001 \001(\tH\010\210\001\001\022\034\n\020ssl_certificates\030\217\242\303\256\001 \003" + + "(\t\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\tH\t\210\001\001\"H\n\013Proxy" + + "Header\022\032\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NO" + + "NE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\022\n\020_certificat" + + "e_mapB\025\n\023_creation_timestampB\016\n\014_descrip" + + "tionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\017\n\r_proxy_" + + "headerB\014\n\n_self_linkB\n\n\010_serviceB\r\n\013_ssl" + + "_policy\"\255\002\n\022TargetSslProxyList\022\020\n\002id\030\233\032 " + + "\001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.clou" + + "d.compute.v1.TargetSslProxy\022\024\n\004kind\030\224\367\310\001" + + " \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210" + + "\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warnin" + + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" + + "ningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_" + + "tokenB\014\n\n_self_linkB\n\n\010_warning\"\253\001\n\032Targ" + + "etTcpProxiesScopedList\022F\n\022target_tcp_pro" + + "xies\030\200\327\372| \003(\0132\'.google.cloud.compute.v1." + + "TargetTcpProxy\0229\n\007warning\030\234\337\226\030 \001(\0132 .goo" + + "gle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_wa" + + "rning\"P\n(TargetTcpProxiesSetBackendServi" + + "ceRequest\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_" + + "service\"\240\001\n%TargetTcpProxiesSetProxyHead" + + "erRequest\022\034\n\014proxy_header\030\376\272\274L \001(\tH\000\210\001\001\"" + + "H\n\013ProxyHeader\022\032\n\026UNDEFINED_PROXY_HEADER" + + "\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\017\n\r_pr" + + "oxy_header\"\350\003\n\016TargetTcpProxy\022\"\n\022creatio" + + "n_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description" + + "\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\033\n" + + "\nproxy_bind\030\356\316\261\210\001 \001(\010H\005\210\001\001\022\034\n\014proxy_head" + + "er\030\376\272\274L \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001" + + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\030\n\007service\030" + + "\265\215\217\262\001 \001(\tH\t\210\001\001\"H\n\013ProxyHeader\022\032\n\026UNDEFIN" + + "ED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_" + + "V1\020\254\244\267\237\001B\025\n\023_creation_timestampB\016\n\014_desc" + + "riptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\r\n\013_pro" + + "xy_bindB\017\n\r_proxy_headerB\t\n\007_regionB\014\n\n_" + + "self_linkB\n\n\010_service\"\314\003\n\034TargetTcpProxy" + + "AggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005item" + + "s\030\300\317\367/ \003(\0132@.google.cloud.compute.v1.Tar", + "getTcpProxyAggregatedList.ItemsEntry\022\024\n\004" + + "kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272" + + "\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022" + + "\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030" + + " \001(\0132 .google.cloud.compute.v1.WarningH\004" + + "\210\001\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030" + + "\002 \001(\01323.google.cloud.compute.v1.TargetTc" + + "pProxiesScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022" + + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" + + "ning\"\255\002\n\022TargetTcpProxyList\022\020\n\002id\030\233\032 \001(\t" + + "H\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.c" + + "ompute.v1.TargetTcpProxy\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" + + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" + + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" + + "enB\014\n\n_self_linkB\n\n\010_warning\"\256\005\n\020TargetV" + + "pnGateway\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" + + "H\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\020f" + + "orwarding_rules\030\265\232\314\226\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\002" + + "\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n\021label_finge" + + "rprint\030\231\360\367T \001(\tH\004\210\001\001\022I\n\006labels\030\377\277\301\356\001 \003(\013" + + "25.google.cloud.compute.v1.TargetVpnGate" + + "way.LabelsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n" + + "\007network\030\256\264\205o \001(\tH\006\210\001\001\022\026\n\006region\030\364\315\240B \001(" + + "\tH\007\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\026\n\006st" + + "atus\030\362\237\267V \001(\tH\t\210\001\001\022\022\n\007tunnels\030\213\372\3551 \003(\t\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"`\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n" + + "\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006FAI" + + "LED\020\275\220\246\331\001\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_tim" + + "estampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\024" + + "\n\022_label_fingerprintB\007\n\005_nameB\n\n\010_networ" + + "kB\t\n\007_regionB\014\n\n_self_linkB\t\n\007_status\"\321\003" + + "\n\036TargetVpnGatewayAggregatedList\022\020\n\002id\030\233" + + "\032 \001(\tH\000\210\001\001\022T\n\005items\030\300\317\367/ \003(\0132B.google.cl" + + "oud.compute.v1.TargetVpnGatewayAggregate" + + "dList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037" + + "\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_" + + "link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t" + + " \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\004\210\001\001\032b\n\nItemsEntry\022\013\n" + + "\003key\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.google.cloud" + + ".compute.v1.TargetVpnGatewaysScopedList:" + + "\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB" + + "\014\n\n_self_linkB\n\n\010_warning\"\261\002\n\024TargetVpnG" + + "atewayList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317" + + "\367/ \003(\0132).google.cloud.compute.v1.TargetV" + + "pnGateway\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_" + + "page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222" + + "\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .googl" + + "e.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007" + + "\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_lin" + + "kB\n\n\010_warning\"\260\001\n\033TargetVpnGatewaysScope" + + "dList\022J\n\023target_vpn_gateways\030\210\223\312\277\001 \003(\0132)" + + ".google.cloud.compute.v1.TargetVpnGatewa" + + "y\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" + + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\223\004\n\013Tes" + + "tFailure\022\"\n\021actual_output_url\030\202\331\361\210\001 \001(\tH" + + "\000\210\001\001\022-\n\035actual_redirect_response_code\030\331\203" + + "\274\024 \001(\005H\001\210\001\001\022\037\n\016actual_service\030\204\322\376\321\001 \001(\tH" + + "\002\210\001\001\022$\n\023expected_output_url\030\230\242\367\316\001 \001(\tH\003\210" + + "\001\001\022/\n\037expected_redirect_response_code\030\357\352" + + "\200\t \001(\005H\004\210\001\001\022 \n\020expected_service\030\256\370\361? \001(\t" + + "H\005\210\001\001\022=\n\007headers\030\206\337\235{ \003(\0132).google.cloud" + + ".compute.v1.UrlMapTestHeader\022\024\n\004host\030\250\353\303" + + "\001 \001(\tH\006\210\001\001\022\024\n\004path\030\245\310\321\001 \001(\tH\007\210\001\001B\024\n\022_act" + + "ual_output_urlB \n\036_actual_redirect_respo" + + "nse_codeB\021\n\017_actual_serviceB\026\n\024_expected" + + "_output_urlB\"\n _expected_redirect_respon" + + "se_codeB\023\n\021_expected_serviceB\007\n\005_hostB\007\n" + + "\005_path\"\300\001\n&TestIamPermissionsBackendBuck" + + "etRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010re" + + "source\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions" + + "_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A" + + "\002\"\301\001\n\'TestIamPermissionsBackendServiceRe" + "quest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resour" + "ce\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_req" + "uest_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\250\001" - + "\n\'TestIamPermissionsFirewallPolicyReques" - + "t\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_perm" - + "issions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.TestPermissionsRequ" - + "estB\003\340A\002\"\270\001\n\036TestIamPermissionsImageRequ" - + "est\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource" - + "\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_reque" - + "st_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.com" - + "pute.v1.TestPermissionsRequestB\003\340A\002\"\321\001\n!" - + "TestIamPermissionsInstanceRequest\022\027\n\007pro" - + "ject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" - + "\003\340A\002\022c\n!test_permissions_request_resourc" - + "e\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Te" - + "stPermissionsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tB\003\340A\002\"\303\001\n)TestIamPermissionsInstanceTe" - + "mplateRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" + + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\315\001" + + "\n\035TestIamPermissionsDiskRequest\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340" + + "A\002\022c\n!test_permissions_request_resource\030" + + "\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Test" + + "PermissionsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\t" + + "B\003\340A\002\"\305\001\n+TestIamPermissionsExternalVpnG" + + "atewayRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" + "\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permiss" + "ions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + ".cloud.compute.v1.TestPermissionsRequest" - + "B\003\340A\002\"\330\001\n(TestIamPermissionsInstantSnaps" - + "hotRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010r" - + "esource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permission" - + "s_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\003\340" - + "A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\276\001\n$TestIamPerm" - + "issionsLicenseCodeRequest\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!" - + "test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermis" - + "sionsRequestB\003\340A\002\"\272\001\n TestIamPermissions" - + "LicenseRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" - + "\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permis" - + "sions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" - + "e.cloud.compute.v1.TestPermissionsReques" - + "tB\003\340A\002\"\277\001\n%TestIamPermissionsMachineImag" - + "eRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010res" - + "ource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_" - + "request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002" - + "\"\334\001\n*TestIamPermissionsNetworkAttachment" - + "Request\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regi" - + "on\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340" - + "A\002\022c\n!test_permissions_request_resource\030" - + "\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Test" - + "PermissionsRequestB\003\340A\002\"\335\001\n-TestIamPermi" - + "ssionsNetworkEndpointGroupRequest\022\027\n\007pro" - + "ject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" - + "\003\340A\002\022c\n!test_permissions_request_resourc" - + "e\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Te" - + "stPermissionsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001" - + "(\tB\003\340A\002\"\310\001\n.TestIamPermissionsNetworkFir" - + "ewallPolicyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "B\003\340A\002\"\250\001\n\'TestIamPermissionsFirewallPoli" + + "cyRequest\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!t" + + "est_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermiss" + + "ionsRequestB\003\340A\002\"\270\001\n\036TestIamPermissionsI" + + "mageRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010" + + "resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissio" + + "ns_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003" + + "\340A\002\"\321\001\n!TestIamPermissionsInstanceReques" + + "t\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" + + "\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_request" + + "_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.compu" + + "te.v1.TestPermissionsRequestB\003\340A\002\022\024\n\004zon" + + "e\030\254\307\344\001 \001(\tB\003\340A\002\"\303\001\n)TestIamPermissionsIn" + + "stanceTemplateRequest\022\027\n\007project\030\231\226\301l \001(" + + "\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test" + + "_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermission" + + "sRequestB\003\340A\002\"\330\001\n(TestIamPermissionsInst" + + "antSnapshotRequest\022\027\n\007project\030\231\226\301l \001(\tB\003" + "\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_pe" + "rmissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + "oogle.cloud.compute.v1.TestPermissionsRe" - + "questB\003\340A\002\"\322\001\n\"TestIamPermissionsNodeGro" - + "upRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010re" - + "source\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions" - + "_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\003\340A" - + "\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\327\001\n%TestIamPermi" - + "ssionsNodeTemplateRequest\022\027\n\007project\030\231\226\301" - + "l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010re" - + "source\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions" - + "_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\003\340A" - + "\002\"\332\001\n(TestIamPermissionsPacketMirroringR" - + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regio" - + "n\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A" - + "\002\022c\n!test_permissions_request_resource\030\246" - + "\305\267\321\001 \001(\0132/.google.cloud.compute.v1.TestP" - + "ermissionsRequestB\003\340A\002\"\337\001\n-TestIamPermis" - + "sionsRegionBackendServiceRequest\022\027\n\007proj" - + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" + + "questB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\276\001\n$Tes" + + "tIamPermissionsLicenseCodeRequest\022\027\n\007pro" + + "ject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB" + + "\003\340A\002\022c\n!test_permissions_request_resourc" + + "e\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Te" + + "stPermissionsRequestB\003\340A\002\"\272\001\n TestIamPer" + + "missionsLicenseRequest\022\027\n\007project\030\231\226\301l \001" + + "(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!tes" + + "t_permissions_request_resource\030\246\305\267\321\001 \001(\013" + + "2/.google.cloud.compute.v1.TestPermissio" + + "nsRequestB\003\340A\002\"\277\001\n%TestIamPermissionsMac" + + "hineImageRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + "\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_perm" + "issions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + "gle.cloud.compute.v1.TestPermissionsRequ" - + "estB\003\340A\002\"\325\001\n#TestIamPermissionsRegionDis" - + "kRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006reg" - + "ion\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003" - + "\340A\002\022c\n!test_permissions_request_resource" - + "\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Tes" - + "tPermissionsRequestB\003\340A\002\"\340\001\n.TestIamPerm" - + "issionsRegionInstantSnapshotRequest\022\027\n\007p" - + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" - + "\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_p" - + "ermissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsR" - + "equestB\003\340A\002\"\346\001\n4TestIamPermissionsRegion" - + "NetworkFirewallPolicyRequest\022\027\n\007project\030" - + "\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" - + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissi" - + "ons_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB" - + "\003\340A\002\"\324\001\n$TestIamPermissionsReservationRe" - + "quest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resour" - + "ce\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_req" - + "uest_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\331\001\n\'TestIamPermissio" - + "nsResourcePolicyRequest\022\027\n\007project\030\231\226\301l " - + "\001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010reso" - + "urce\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_r" - + "equest_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\"" - + "\334\001\n*TestIamPermissionsServiceAttachmentR" - + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006regio" - + "n\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A" - + "\002\022c\n!test_permissions_request_resource\030\246" - + "\305\267\321\001 \001(\0132/.google.cloud.compute.v1.TestP" - + "ermissionsRequestB\003\340A\002\"\273\001\n!TestIamPermis" - + "sionsSnapshotRequest\022\027\n\007project\030\231\226\301l \001(\t" + + "estB\003\340A\002\"\334\001\n*TestIamPermissionsNetworkAt" + + "tachmentRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002" + + "\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257" + + "] \001(\tB\003\340A\002\022c\n!test_permissions_request_r" + + "esource\030\246\305\267\321\001 \001(\0132/.google.cloud.compute" + + ".v1.TestPermissionsRequestB\003\340A\002\"\335\001\n-Test" + + "IamPermissionsNetworkEndpointGroupReques" + + "t\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216" + + "\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_request" + + "_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.compu" + + "te.v1.TestPermissionsRequestB\003\340A\002\022\024\n\004zon" + + "e\030\254\307\344\001 \001(\tB\003\340A\002\"\310\001\n.TestIamPermissionsNe" + + "tworkFirewallPolicyRequest\022\027\n\007project\030\231\226" + + "\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermi" + + "ssionsRequestB\003\340A\002\"\322\001\n\"TestIamPermission" + + "sNodeGroupRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + + "A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_per" + + "missions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsReq" + + "uestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\327\001\n%Test" + + "IamPermissionsNodeTemplateRequest\022\027\n\007pro" + + "ject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340" + + "A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_per" + + "missions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsReq" + + "uestB\003\340A\002\"\332\001\n(TestIamPermissionsPacketMi" + + "rroringRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257]" + + " \001(\tB\003\340A\002\022c\n!test_permissions_request_re" + + "source\030\246\305\267\321\001 \001(\0132/.google.cloud.compute." + + "v1.TestPermissionsRequestB\003\340A\002\"\337\001\n-TestI" + + "amPermissionsRegionBackendServiceRequest" + + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" + + " \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!t" + + "est_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermiss" + + "ionsRequestB\003\340A\002\"\325\001\n#TestIamPermissionsR" + + "egionDiskRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210" + + "\257] \001(\tB\003\340A\002\022c\n!test_permissions_request_" + + "resource\030\246\305\267\321\001 \001(\0132/.google.cloud.comput" + + "e.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n.Tes" + + "tIamPermissionsRegionInstantSnapshotRequ" + + "est\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" + + "\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c" + + "\n!test_permissions_request_resource\030\246\305\267\321" + + "\001 \001(\0132/.google.cloud.compute.v1.TestPerm" + + "issionsRequestB\003\340A\002\"\346\001\n4TestIamPermissio" + + "nsRegionNetworkFirewallPolicyRequest\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" + "B\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_" + "permissions_request_resource\030\246\305\267\321\001 \001(\0132/" + ".google.cloud.compute.v1.TestPermissions" - + "RequestB\003\340A\002\"\324\001\n$TestIamPermissionsStora" - + "gePoolRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" + + "RequestB\003\340A\002\"\324\001\n$TestIamPermissionsReser" + + "vationRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" + "\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permiss" + "ions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + ".cloud.compute.v1.TestPermissionsRequest" - + "B\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n#TestIamP" - + "ermissionsSubnetworkRequest\022\027\n\007project\030\231" - + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010" - + "resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissio" - + "ns_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" - + "loud.compute.v1.TestPermissionsRequestB\003" - + "\340A\002\"\325\001\n#TestIamPermissionsVpnGatewayRequ" - + "est\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364" - + "\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c" - + "\n!test_permissions_request_resource\030\246\305\267\321" - + "\001 \001(\0132/.google.cloud.compute.v1.TestPerm" - + "issionsRequestB\003\340A\002\"0\n\026TestPermissionsRe" - + "quest\022\026\n\013permissions\030\204\351\313\034 \003(\t\"1\n\027TestPer" - + "missionsResponse\022\026\n\013permissions\030\204\351\313\034 \003(\t" - + "\"D\n\007Uint128\022\024\n\004high\030\242\273\303\001 \001(\004H\000\210\001\001\022\022\n\003low" - + "\030\324\306\006 \001(\004H\001\210\001\001B\007\n\005_highB\006\n\004_low\"\234\004\n\023Upcom" - + "ingMaintenance\022\036\n\016can_reschedule\030\231\243\342- \001(" - + "\010H\000\210\001\001\022(\n\030latest_window_start_time\030\201\273\206= " - + "\001(\tH\001\210\001\001\022\"\n\022maintenance_status\030\236\235\367& \001(\tH" - + "\002\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\003\210\001\001\022 \n\017window_end" - + "_time\030\240\256\316\201\001 \001(\tH\004\210\001\001\022\"\n\021window_start_tim" - + "e\030\271\260\311\341\001 \001(\tH\005\210\001\001\"g\n\021MaintenanceStatus\022 \n" - + "\034UNDEFINED_MAINTENANCE_STATUS\020\000\022\017\n\007ONGOI" - + "NG\020\333\246\317\341\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\007UNKNOWN\020\252\360\304\316" - + "\001\"X\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\021\n\tSCHEDUL" - + "ED\020\215\241\217\344\001\022\024\n\014UNKNOWN_TYPE\020\257\244\376\351\001\022\023\n\013UNSCHE" - + "DULED\020\224\304\316\326\001B\021\n\017_can_rescheduleB\033\n\031_lates" - + "t_window_start_timeB\025\n\023_maintenance_stat" - + "usB\007\n\005_typeB\022\n\020_window_end_timeB\024\n\022_wind" - + "ow_start_time\"\234\002\n!UpdateAccessConfigInst" - + "anceRequest\022N\n\026access_config_resource\030\220\377" - + "\366\270\001 \001(\0132%.google.cloud.compute.v1.Access" - + "ConfigB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" - + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G" - + "\004zoneB\r\n\013_request_id\"\372\001\n\027UpdateAutoscale" - + "rRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(\0132#.google.c" - + "loud.compute.v1.AutoscalerB\003\340A\002\022!\n\007proje" - + "ct\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" - + "oneB\r\n\013_autoscalerB\r\n\013_request_id\"\334\001\n\032Up" - + "dateBackendBucketRequest\022\036\n\016backend_buck" - + "et\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027backend_bucket_resou" - + "rce\030\230\316\307\265\001 \001(\0132&.google.cloud.compute.v1." - + "BackendBucketB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001" - + "\001B\r\n\013_request_id\"\341\001\n\033UpdateBackendServic" - + "eRequest\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340" - + "A\002\022R\n\030backend_service_resource\030\243\201\337\245\001 \001(\013" - + "2\'.google.cloud.compute.v1.BackendServic" - + "eB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" - + "t_id\"\241\002\n\021UpdateDiskRequest\022\024\n\004disk\030\235\233\274\001 " - + "\001(\tB\003\340A\002\022<\n\rdisk_resource\030\360\320\253\014 \001(\0132\035.goo" - + "gle.cloud.compute.v1.DiskB\003\340A\002\022\025\n\005paths\030" - + "\356\301\3402 \001(\tH\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G", - "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\013" - + "update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\033\n\004zone\030\254\307\344\001 " - + "\001(\tB\n\340A\002\362G\004zoneB\010\n\006_pathsB\r\n\013_request_id" - + "B\016\n\014_update_mask\"\373\001\n\"UpdateDisplayDevice" - + "InstanceRequest\022P\n\027display_device_resour" - + "ce\030\332\204\221\212\001 \001(\0132&.google.cloud.compute.v1.D" - + "isplayDeviceB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\tB\003" - + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 " - + "\001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\306\001\n\025Updat" - + "eFirewallRequest\022\031\n\010firewall\030\200\372\325\363\001 \001(\tB\003" - + "\340A\002\022D\n\021firewall_resource\030\355\260\340\023 \001(\0132!.goog" - + "le.cloud.compute.v1.FirewallB\003\340A\002\022!\n\007pro" - + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_" - + "id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\324\001\n\030Upda" - + "teHealthCheckRequest\022\035\n\014health_check\030\345\252\244" - + "\223\001 \001(\tB\003\340A\002\022K\n\025health_check_resource\030\250\303\244" - + "` \001(\0132$.google.cloud.compute.v1.HealthCh" - + "eckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proj" - + "ect\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_requ" - + "est_id\"\345\003\n\025UpdateInstanceRequest\022\030\n\010inst" - + "ance\030\225\251\332\010 \001(\tB\003\340A\002\022D\n\021instance_resource\030" - + "\370\360\376f \001(\0132!.google.cloud.compute.v1.Insta" - + "nceB\003\340A\002\022\037\n\016minimal_action\030\224\215\202\201\001 \001(\tH\000\210\001" - + "\001\022.\n\036most_disruptive_allowed_action\030\215\316\302\037" - + " \001(\tH\001\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\002\210\001\001\022\033\n\004zone" - + "\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zone\"-\n\rMinimalAction\022\034" - + "\n\030UNDEFINED_MINIMAL_ACTION\020\000\"K\n\033MostDisr" - + "uptiveAllowedAction\022,\n(UNDEFINED_MOST_DI" - + "SRUPTIVE_ALLOWED_ACTION\020\000B\021\n\017_minimal_ac" - + "tionB!\n\037_most_disruptive_allowed_actionB" - + "\r\n\013_request_id\"\250\002\n%UpdateNetworkInterfac" - + "eInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340" - + "A\002\022\"\n\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022V" - + "\n\032network_interface_resource\030\205\224\256\233\001 \001(\0132)" - + ".google.cloud.compute.v1.NetworkInterfac" - + "eB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" - + "t\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307" - + "\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\365\001\n\033Up" - + "datePeeringNetworkRequest\022\027\n\007network\030\256\264\205" - + "o \001(\tB\003\340A\002\022o\n(networks_update_peering_re" - + "quest_resource\030\331\252\202k \001(\01325.google.cloud.c" - + "ompute.v1.NetworksUpdatePeeringRequestB\003" - + "\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032" - + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_i" - + "d\"\346\002\n3UpdatePerInstanceConfigsInstanceGr" - + "oupManagerRequest\022&\n\026instance_group_mana" - + "ger\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n@instance_group_man" - + "agers_update_per_instance_configs_req_re" - + "source\030\276\301\266C \001(\0132I.google.cloud.compute.v" - + "1.InstanceGroupManagersUpdatePerInstance" - + "ConfigsReqB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" - + "\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033" - + "\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_" - + "id\"\362\002\n9UpdatePerInstanceConfigsRegionIns" - + "tanceGroupManagerRequest\022&\n\026instance_gro" - + "up_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l" - + " \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" - + "\340A\002\362G\006region\022\235\001\nAregion_instance_group_m" - + "anager_update_instance_config_req_resour" - + "ce\030\247\256\272* \001(\0132J.google.cloud.compute.v1.Re" - + "gionInstanceGroupManagerUpdateInstanceCo" - + "nfigReqB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" - + "B\r\n\013_request_id\"\204\002\n\035UpdateRegionAutoscal" - + "erRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H" - + "\n\023autoscaler_resource\030\366\360\377b \001(\0132#.google." - + "cloud.compute.v1.AutoscalerB\003\340A\002\022!\n\007proj" - + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315" - + "\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 " - + "\001(\tH\001\210\001\001B\r\n\013_autoscalerB\r\n\013_request_id\"\210" - + "\002\n!UpdateRegionBackendServiceRequest\022 \n\017" - + "backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n\030backen" - + "d_service_resource\030\243\201\337\245\001 \001(\0132\'.google.cl" - + "oud.compute.v1.BackendServiceB\003\340A\002\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030" - + "\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331" - + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\304\002\n\035UpdateRegi" - + "onCommitmentRequest\022\033\n\ncommitment\030\225\226\363\345\001 " - + "\001(\tB\003\340A\002\022H\n\023commitment_resource\030\370\243\273t \001(\013" - + "2#.google.cloud.compute.v1.CommitmentB\003\340" - + "A\002\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007project\030\231\226\301" - + "l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB" - + "\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001" - + "\001\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B\010\n\006_path" - + "sB\r\n\013_request_idB\016\n\014_update_mask\"\253\002\n\027Upd" - + "ateRegionDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340" - + "A\002\022<\n\rdisk_resource\030\360\320\253\014 \001(\0132\035.google.cl" - + "oud.compute.v1.DiskB\003\340A\002\022\025\n\005paths\030\356\301\3402 \001" - + "(\tH\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\013update_mask\030\242" - + "\271\272\356\001 \001(\tH\002\210\001\001B\010\n\006_pathsB\r\n\013_request_idB\016" - + "\n\014_update_mask\"\373\001\n\036UpdateRegionHealthChe" - + "ckRequest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002" - + "\022K\n\025health_check_resource\030\250\303\244` \001(\0132$.goo" - + "gle.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" - + "\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006regi" - + "on\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030" - + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\347\001\n\031UpdateR" - + "egionUrlMapRequest\022!\n\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006" - + "region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007ur" - + "l_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_resource" - + "\030\341\220\267P \001(\0132\037.google.cloud.compute.v1.UrlM" - + "apB\003\340A\002B\r\n\013_request_id\"\276\002\n\030UpdateReserva" - + "tionRequest\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007pr" - + "oject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest" - + "_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\013reservation\030\314\207\325\026 \001(" - + "\tB\003\340A\002\022K\n\024reservation_resource\030\241\356\364\207\001 \001(\013" - + "2$.google.cloud.compute.v1.ReservationB\003" - + "\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\033\n\004zon" - + "e\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\010\n\006_pathsB\r\n\013_req" - + "uest_idB\016\n\014_update_mask\"\336\001\n\023UpdateRouter" - + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nr" - + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n\006router\030\311\256\356F \001" - + "(\tB\003\340A\002\022@\n\017router_resource\030\304\200\202J \001(\0132\037.go" - + "ogle.cloud.compute.v1.RouterB\003\340A\002B\r\n\013_re" - + "quest_id\"\227\002\n+UpdateShieldedInstanceConfi" - + "gInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340" - + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n!shielded_in" - + "stance_config_resource\030\330\226\335\201\001 \001(\0132/.googl" - + "e.cloud.compute.v1.ShieldedInstanceConfi" - + "gB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" - + "request_id\"\237\002\n\030UpdateStoragePoolRequest\022" + + "B\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\331\001\n\'TestIamP" + + "ermissionsResourcePolicyRequest\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002" + + "\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permi" + + "ssions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsReque" + + "stB\003\340A\002\"\334\001\n*TestIamPermissionsServiceAtt" + + "achmentRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022" + + "\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257]" + + " \001(\tB\003\340A\002\022c\n!test_permissions_request_re" + + "source\030\246\305\267\321\001 \001(\0132/.google.cloud.compute." + + "v1.TestPermissionsRequestB\003\340A\002\"\273\001\n!TestI" + + "amPermissionsSnapshotRequest\022\027\n\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022" + + "c\n!test_permissions_request_resource\030\246\305\267" + + "\321\001 \001(\0132/.google.cloud.compute.v1.TestPer" + + "missionsRequestB\003\340A\002\"\324\001\n$TestIamPermissi" + + "onsStoragePoolRequest\022\027\n\007project\030\231\226\301l \001(" + + "\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test" + + "_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermission" + + "sRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n#" + + "TestIamPermissionsSubnetworkRequest\022\027\n\007p" + + "roject\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB" + + "\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_p" + + "ermissions_request_resource\030\246\305\267\321\001 \001(\0132/." + + "google.cloud.compute.v1.TestPermissionsR" + + "equestB\003\340A\002\"\325\001\n#TestIamPermissionsVpnGat" + + "ewayRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + + "region\030\364\315\240B \001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(" + + "\tB\003\340A\002\022c\n!test_permissions_request_resou" + + "rce\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1." + + "TestPermissionsRequestB\003\340A\002\"0\n\026TestPermi" + + "ssionsRequest\022\026\n\013permissions\030\204\351\313\034 \003(\t\"1\n" + + "\027TestPermissionsResponse\022\026\n\013permissions\030" + + "\204\351\313\034 \003(\t\"D\n\007Uint128\022\024\n\004high\030\242\273\303\001 \001(\004H\000\210\001" + + "\001\022\022\n\003low\030\324\306\006 \001(\004H\001\210\001\001B\007\n\005_highB\006\n\004_low\"\234" + + "\004\n\023UpcomingMaintenance\022\036\n\016can_reschedule" + + "\030\231\243\342- \001(\010H\000\210\001\001\022(\n\030latest_window_start_ti" + + "me\030\201\273\206= \001(\tH\001\210\001\001\022\"\n\022maintenance_status\030\236" + + "\235\367& \001(\tH\002\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\003\210\001\001\022 \n\017wi" + + "ndow_end_time\030\240\256\316\201\001 \001(\tH\004\210\001\001\022\"\n\021window_s" + + "tart_time\030\271\260\311\341\001 \001(\tH\005\210\001\001\"g\n\021MaintenanceS" + + "tatus\022 \n\034UNDEFINED_MAINTENANCE_STATUS\020\000\022" + + "\017\n\007ONGOING\020\333\246\317\341\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\007UNKN" + + "OWN\020\252\360\304\316\001\"X\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\021\n" + + "\tSCHEDULED\020\215\241\217\344\001\022\024\n\014UNKNOWN_TYPE\020\257\244\376\351\001\022\023" + + "\n\013UNSCHEDULED\020\224\304\316\326\001B\021\n\017_can_rescheduleB\033" + + "\n\031_latest_window_start_timeB\025\n\023_maintena" + + "nce_statusB\007\n\005_typeB\022\n\020_window_end_timeB" + + "\024\n\022_window_start_time\"\234\002\n!UpdateAccessCo" + + "nfigInstanceRequest\022N\n\026access_config_res" + + "ource\030\220\377\366\270\001 \001(\0132%.google.cloud.compute.v" + + "1.AccessConfigB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "B\003\340A\002\022\"\n\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A" + + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(" + + "\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\372\001\n\027UpdateA" + + "utoscalerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\t" + + "H\000\210\001\001\022H\n\023autoscaler_resource\030\366\360\377b \001(\0132#." + + "google.cloud.compute.v1.AutoscalerB\003\340A\002\022" + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\014storage_pool\030\340" - + "\306\361\253\001 \001(\tB\003\340A\002\022K\n\025storage_pool_resource\030\215" - + "\274\371J \001(\0132$.google.cloud.compute.v1.Storag" - + "ePoolB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001" - + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" - + "t_idB\016\n\014_update_mask\"\300\001\n\023UpdateUrlMapReq" - + "uest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007url_map\030\214" - + "\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_resource\030\341\220\267P \001" - + "(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002" - + "B\r\n\013_request_id\"\362\007\n\006UrlMap\022\"\n\022creation_t" - + "imestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n$default_custom" - + "_error_response_policy\030\251\213\340& \001(\01322.google" - + ".cloud.compute.v1.CustomErrorResponsePol" - + "icyH\001\210\001\001\022O\n\024default_route_action\030\252\264\327\264\001 \001" - + "(\0132(.google.cloud.compute.v1.HttpRouteAc" - + "tionH\002\210\001\001\022 \n\017default_service\030\267\345\305\260\001 \001(\tH\003" - + "\210\001\001\022R\n\024default_url_redirect\030\352\253\266\253\001 \001(\0132+." - + "google.cloud.compute.v1.HttpRedirectActi" - + "onH\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n" - + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\rheader_act" - + "ion\030\250\240\270\234\001 \001(\0132).google.cloud.compute.v1." - + "HttpHeaderActionH\007\210\001\001\0229\n\nhost_rules\030\240\207\327\224" - + "\001 \003(\0132!.google.cloud.compute.v1.HostRule" - + "\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\t\210\001\001" - + "\022\024\n\004name\030\213\365\315\001 \001(\tH\n\210\001\001\022?\n\rpath_matchers\030" - + "\333\210\305\201\001 \003(\0132$.google.cloud.compute.v1.Path" - + "Matcher\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n\tself_" - + "link\030\215\222\305\331\001 \001(\tH\014\210\001\001\0225\n\005tests\030\241\234\3114 \003(\0132#." - + "google.cloud.compute.v1.UrlMapTestB\025\n\023_c" - + "reation_timestampB\'\n%_default_custom_err" - + "or_response_policyB\027\n\025_default_route_act" - + "ionB\022\n\020_default_serviceB\027\n\025_default_url_" - + "redirectB\016\n\014_descriptionB\016\n\014_fingerprint" - + "B\020\n\016_header_actionB\005\n\003_idB\007\n\005_kindB\007\n\005_n" - + "ameB\t\n\007_regionB\014\n\n_self_link\"\235\002\n\nUrlMapL" - + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0221\n\005items\030\300\317\367/ \003(\0132" - + "\037.google.cloud.compute.v1.UrlMap\022\024\n\004kind" - + "\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001" - + "(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007w" - + "arning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v" - + "1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_" - + "page_tokenB\014\n\n_self_linkB\n\n\010_warning\"7\n\017" - + "UrlMapReference\022\030\n\007url_map\030\214\225\201\257\001 \001(\tH\000\210\001" - + "\001B\n\n\010_url_map\"\360\002\n\nUrlMapTest\022\034\n\013descript" - + "ion\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n\023expected_output_ur" - + "l\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n\037expected_redirect_re" - + "sponse_code\030\357\352\200\t \001(\005H\002\210\001\001\022=\n\007headers\030\206\337\235" - + "{ \003(\0132).google.cloud.compute.v1.UrlMapTe" - + "stHeader\022\024\n\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\024\n\004path\030\245" - + "\310\321\001 \001(\tH\004\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001B\016" - + "\n\014_descriptionB\026\n\024_expected_output_urlB\"" - + "\n _expected_redirect_response_codeB\007\n\005_h" - + "ostB\007\n\005_pathB\n\n\010_service\"R\n\020UrlMapTestHe" - + "ader\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n\005value\030\361\242\2625" - + " \001(\tH\001\210\001\001B\007\n\005_nameB\010\n\006_value\"\322\001\n\026UrlMapV" - + "alidationResult\022\027\n\013load_errors\030\344\361\361\223\001 \003(\t" - + "\022\036\n\016load_succeeded\030\310\264\230= \001(\010H\000\210\001\001\022?\n\rtest" - + "_failures\030\266\342\237\361\001 \003(\0132$.google.cloud.compu" - + "te.v1.TestFailure\022\033\n\013test_passed\030\275\201\362[ \001(" - + "\010H\001\210\001\001B\021\n\017_load_succeededB\016\n\014_test_passe" - + "d\"\265\003\n\025UrlMapsAggregatedList\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\022K\n\005items\030\300\317\367/ \003(\01329.google.cloud.c" - + "ompute.v1.UrlMapsAggregatedList.ItemsEnt" - + "ry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_to" - + "ken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" - + "H\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warnin" - + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" - + "ningH\004\210\001\001\032X\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0229\n\005" - + "value\030\002 \001(\0132*.google.cloud.compute.v1.Ur" - + "lMapsScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_" - + "next_page_tokenB\014\n\n_self_linkB\n\n\010_warnin" - + "g\"\220\001\n\021UrlMapsScopedList\0224\n\010url_maps\030\347\216\2441" - + " \003(\0132\037.google.cloud.compute.v1.UrlMap\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute" - + ".v1.WarningH\000\210\001\001B\n\n\010_warning\"\230\002\n\026UrlMaps" - + "ValidateRequest\022!\n\026load_balancing_scheme" - + "s\030\257\205\201\003 \003(\t\0229\n\010resource\030\216\210\257] \001(\0132\037.google" - + ".cloud.compute.v1.UrlMapH\000\210\001\001\"\222\001\n\024LoadBa" - + "lancingSchemes\022$\n UNDEFINED_LOAD_BALANCI" - + "NG_SCHEMES\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\030\n\020EXTERNA" - + "L_MANAGED\020\213\266\222\364\001\022)\n!LOAD_BALANCING_SCHEME" - + "_UNSPECIFIED\020\274\273\207\373\001B\013\n\t_resource\"m\n\027UrlMa" - + "psValidateResponse\022G\n\006result\030\235\220\267B \001(\0132/." - + "google.cloud.compute.v1.UrlMapValidation" - + "ResultH\000\210\001\001B\t\n\007_result\"\272\001\n\nUrlRewrite\022\034\n" - + "\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n\023path_pref" - + "ix_rewrite\030\271\350\321\023 \001(\tH\001\210\001\001\022&\n\025path_templat" - + "e_rewrite\030\241\357\362\311\001 \001(\tH\002\210\001\001B\017\n\r_host_rewrit" - + "eB\026\n\024_path_prefix_rewriteB\030\n\026_path_templ" - + "ate_rewrite\"\346\007\n\020UsableSubnetwork\022$\n\024exte" - + "rnal_ipv6_prefix\030\366\222\266B \001(\tH\000\210\001\001\022%\n\024intern" - + "al_ipv6_prefix\030\350\242\264\361\001 \001(\tH\001\210\001\001\022\035\n\rip_cidr" - + "_range\030\312\315\344. \001(\tH\002\210\001\001\022!\n\020ipv6_access_type" - + "\030\335\365\321\360\001 \001(\tH\003\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\004\210\001\001" - + "\022\030\n\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n\004role\030\366\200\326\001 " - + "\001(\tH\006\210\001\001\022W\n\023secondary_ip_ranges\030\343\377\224A \003(\013" - + "27.google.cloud.compute.v1.UsableSubnetw" - + "orkSecondaryRange\022\033\n\nstack_type\030\221\265\213\313\001 \001(" - + "\tH\007\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n\016I" - + "pv6AccessType\022\036\n\032UNDEFINED_IPV6_ACCESS_T" - + "YPE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010INTERNAL\020\275\355\226\205\001" - + "\"\340\001\n\007Purpose\022\025\n\021UNDEFINED_PURPOSE\020\000\022\033\n\024G" - + "LOBAL_MANAGED_PROXY\020\362\313\340p\022#\n\034INTERNAL_HTT" - + "PS_LOAD_BALANCER\020\331\266\316v\022\017\n\007PRIVATE\020\343\342\262\300\001\022\023" - + "\n\013PRIVATE_NAT\020\245\310\256\257\001\022\027\n\020PRIVATE_RFC_1918\020" - + "\333\376\305y\022\036\n\027PRIVATE_SERVICE_CONNECT\020\304\364\371\026\022\035\n\026" - + "REGIONAL_MANAGED_PROXY\020\356\266\375H\":\n\004Role\022\022\n\016U" - + "NDEFINED_ROLE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\006BACKU" - + "P\020\302\323\315\242\001\"[\n\tStackType\022\030\n\024UNDEFINED_STACK_" - + "TYPE\020\000\022\020\n\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313" - + "\325\n\022\020\n\tIPV6_ONLY\020\344\255\374%B\027\n\025_external_ipv6_p" - + "refixB\027\n\025_internal_ipv6_prefixB\020\n\016_ip_ci" - + "dr_rangeB\023\n\021_ipv6_access_typeB\n\n\010_networ" - + "kB\n\n\010_purposeB\007\n\005_roleB\r\n\013_stack_typeB\r\n" - + "\013_subnetwork\"}\n\036UsableSubnetworkSecondar" - + "yRange\022\035\n\rip_cidr_range\030\312\315\344. \001(\tH\000\210\001\001\022\033\n" - + "\nrange_name\030\315\360\264\236\001 \001(\tH\001\210\001\001B\020\n\016_ip_cidr_r" - + "angeB\r\n\013_range_name\"\274\002\n\037UsableSubnetwork" - + "sAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005ite" - + "ms\030\300\317\367/ \003(\0132).google.cloud.compute.v1.Us" - + "ableSubnetwork\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" - + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" - + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 ." - + "google.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003" - + "_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_sel" - + "f_linkB\n\n\010_warning\"\177\n\023UsageExportLocatio" - + "n\022\034\n\013bucket_name\030\300\227\236\207\001 \001(\tH\000\210\001\001\022#\n\022repor" - + "t_name_prefix\030\273\260\327\230\001 \001(\tH\001\210\001\001B\016\n\014_bucket_" - + "nameB\025\n\023_report_name_prefix\"\332\001\n\033Validate" - + "RegionUrlMapRequest\022\027\n\007project\030\231\226\301l \001(\tB" - + "\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022p\n)region_u" - + "rl_maps_validate_request_resource\030\232\314\200\033 \001" - + "(\01325.google.cloud.compute.v1.RegionUrlMa" - + "psValidateRequestB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 " - + "\001(\tB\003\340A\002\"\260\001\n\025ValidateUrlMapRequest\022\027\n\007pr" - + "oject\030\231\226\301l \001(\tB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 \001(\t" - + "B\003\340A\002\022d\n\"url_maps_validate_request_resou" - + "rce\030\357\321\344\274\001 \001(\0132/.google.cloud.compute.v1." - + "UrlMapsValidateRequestB\003\340A\002\"\257\001\n\025VmEndpoi" - + "ntNatMappings\022\035\n\rinstance_name\030\365\347\330l \001(\tH" - + "\000\210\001\001\022e\n\026interface_nat_mappings\030\211\200\225z \003(\0132" - + "B.google.cloud.compute.v1.VmEndpointNatM" - + "appingsInterfaceNatMappingsB\020\n\016_instance" - + "_name\"\342\003\n)VmEndpointNatMappingsInterface" - + "NatMappings\022$\n\030drain_nat_ip_port_ranges\030" - + "\301\343\307\274\001 \003(\t\022\036\n\022nat_ip_port_ranges\030\232\260\314\375\001 \003(" - + "\t\022*\n\031num_total_drain_nat_ports\030\371\245\377\237\001 \001(\005" - + "H\000\210\001\001\022$\n\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001" - + "\210\001\001\022l\n\rrule_mappings\030\310\356\352\347\001 \003(\0132Q.google." - + "cloud.compute.v1.VmEndpointNatMappingsIn" - + "terfaceNatMappingsNatRuleMappings\022&\n\025sou" - + "rce_alias_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n\021sou" - + "rce_virtual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n\032_num_tot" - + "al_drain_nat_portsB\026\n\024_num_total_nat_por" - + "tsB\030\n\026_source_alias_ip_rangeB\024\n\022_source_" - + "virtual_ip\"\266\002\n8VmEndpointNatMappingsInte" - + "rfaceNatMappingsNatRuleMappings\022$\n\030drain" - + "_nat_ip_port_ranges\030\301\343\307\274\001 \003(\t\022\036\n\022nat_ip_" - + "port_ranges\030\232\260\314\375\001 \003(\t\022*\n\031num_total_drain" - + "_nat_ports\030\371\245\377\237\001 \001(\005H\000\210\001\001\022$\n\023num_total_n" - + "at_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022\034\n\013rule_number\030\354" - + "\333\232\377\001 \001(\005H\002\210\001\001B\034\n\032_num_total_drain_nat_po" - + "rtsB\026\n\024_num_total_nat_portsB\016\n\014_rule_num" - + "ber\"\274\002\n\031VmEndpointNatMappingsList\022\020\n\002id\030" - + "\233\032 \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017nex" - + "t_page_token\030\225\272\206& \001(\tH\002\210\001\001\022A\n\006result\030\235\220\267" - + "B \003(\0132..google.cloud.compute.v1.VmEndpoi" - + "ntNatMappings\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001" - + "\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020" - + "_next_page_tokenB\014\n\n_self_linkB\n\n\010_warni" - + "ng\"\322\006\n\nVpnGateway\022\"\n\022creation_timestamp\030" - + "\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001" - + "\210\001\001\022\"\n\022gateway_ip_version\030\233\355\203\037 \001(\tH\002\210\001\001\022" - + "\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022" - + "!\n\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022C\n\006la" - + "bels\030\377\277\301\356\001 \003(\0132/.google.cloud.compute.v1" - + ".VpnGateway.LabelsEntry\022\024\n\004name\030\213\365\315\001 \001(\t" - + "H\006\210\001\001\022\027\n\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n\006region" - + "\030\364\315\240B \001(\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210" - + "\001\001\022\033\n\nstack_type\030\221\265\213\313\001 \001(\tH\n\210\001\001\022Q\n\016vpn_i" - + "nterfaces\030\205\315\345+ \003(\01326.google.cloud.comput" - + "e.v1.VpnGatewayVpnGatewayInterface\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"N\n\020GatewayIpVersion\022 \n\034UNDEFINED_GATEW" - + "AY_IP_VERSION\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211" - + "\001\"[\n\tStackType\022\030\n\024UNDEFINED_STACK_TYPE\020\000" - + "\022\020\n\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\t" - + "IPV6_ONLY\020\344\255\374%B\025\n\023_creation_timestampB\016\n" - + "\014_descriptionB\025\n\023_gateway_ip_versionB\005\n\003" - + "_idB\007\n\005_kindB\024\n\022_label_fingerprintB\007\n\005_n" - + "ameB\n\n\010_networkB\t\n\007_regionB\014\n\n_self_link" - + "B\r\n\013_stack_type\"\277\003\n\030VpnGatewayAggregated" - + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\013" - + "2<.google.cloud.compute.v1.VpnGatewayAgg" - + "regatedList.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH" - + "\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachable" - + "s\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." - + "cloud.compute.v1.WarningH\004\210\001\001\032\\\n\nItemsEn" - + "try\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google" - + ".cloud.compute.v1.VpnGatewaysScopedList:" - + "\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB" - + "\014\n\n_self_linkB\n\n\010_warning\"\245\002\n\016VpnGateway" - + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\013" - + "2#.google.cloud.compute.v1.VpnGateway\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225" - + "\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001" - + "\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comp" - + "ute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_" - + "next_page_tokenB\014\n\n_self_linkB\n\n\010_warnin" - + "g\"g\n\020VpnGatewayStatus\022S\n\017vpn_connections" - + "\030\212\355\276\321\001 \003(\01326.google.cloud.compute.v1.Vpn" - + "GatewayStatusVpnConnection\"\321\002\n0VpnGatewa" - + "yStatusHighAvailabilityRequirementState\022" - + "\025\n\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n\022unsatisfied_re" - + "ason\030\212\367\235\032 \001(\tH\001\210\001\001\"f\n\005State\022\023\n\017UNDEFINED" - + "_STATE\020\000\022!\n\031CONNECTION_REDUNDANCY_MET\020\233\312" - + "\365\360\001\022%\n\035CONNECTION_REDUNDANCY_NOT_MET\020\217\324\211" - + "\364\001\"Y\n\021UnsatisfiedReason\022 \n\034UNDEFINED_UNS" - + "ATISFIED_REASON\020\000\022\"\n\033INCOMPLETE_TUNNELS_" - + "COVERAGE\020\375\366\324\032B\010\n\006_stateB\025\n\023_unsatisfied_" - + "reason\"\313\001\n\026VpnGatewayStatusTunnel\022\'\n\027loc" - + "al_gateway_interface\030\252\232\332K \001(\rH\000\210\001\001\022&\n\026pe" - + "er_gateway_interface\030\341\336\234f \001(\rH\001\210\001\001\022\032\n\ntu" - + "nnel_url\030\230\242\324% \001(\tH\002\210\001\001B\032\n\030_local_gateway" - + "_interfaceB\031\n\027_peer_gateway_interfaceB\r\n" - + "\013_tunnel_url\"\312\002\n\035VpnGatewayStatusVpnConn" - + "ection\022&\n\025peer_external_gateway\030\215\356\307\267\001 \001(" - + "\tH\000\210\001\001\022!\n\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001" - + "\001\022`\n\005state\030\221\211\2534 \001(\0132I.google.cloud.compu" - + "te.v1.VpnGatewayStatusHighAvailabilityRe" - + "quirementStateH\002\210\001\001\022C\n\007tunnels\030\213\372\3551 \003(\0132" - + "/.google.cloud.compute.v1.VpnGatewayStat" - + "usTunnelB\030\n\026_peer_external_gatewayB\023\n\021_p" - + "eer_gcp_gatewayB\010\n\006_state\"\332\001\n\035VpnGateway" - + "VpnGatewayInterface\022\020\n\002id\030\233\032 \001(\rH\000\210\001\001\022(\n" - + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tH\001\210\001\001\022" - + "\033\n\nip_address\030\334\361\334\301\001 \001(\tH\002\210\001\001\022\035\n\014ipv6_add" - + "ress\030\234\263\357\242\001 \001(\tH\003\210\001\001B\005\n\003_idB\032\n\030_interconn" - + "ect_attachmentB\r\n\013_ip_addressB\017\n\r_ipv6_a" - + "ddress\"l\n\034VpnGatewaysGetStatusResponse\022A" - + "\n\006result\030\235\220\267B \001(\0132).google.cloud.compute" - + ".v1.VpnGatewayStatusH\000\210\001\001B\t\n\007_result\"\234\001\n" - + "\025VpnGatewaysScopedList\022<\n\014vpn_gateways\030\232" - + "\373\312{ \003(\0132#.google.cloud.compute.v1.VpnGat" - + "eway\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." - + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\233\014\n\t" - + "VpnTunnel\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" - + "H\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022 \n\017d" - + "etailed_status\030\341\244\203\237\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001" - + "(\004H\003\210\001\001\022\033\n\013ike_version\030\234\320\220h \001(\005H\004\210\001\001\022\024\n\004" - + "kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n\021label_fingerprint\030" - + "\231\360\367T \001(\tH\006\210\001\001\022B\n\006labels\030\377\277\301\356\001 \003(\0132..goog" - + "le.cloud.compute.v1.VpnTunnel.LabelsEntr" - + "y\022\"\n\026local_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022&\n\025peer_external_gat" - + "eway\030\215\356\307\267\001 \001(\tH\010\210\001\001\0220\n\037peer_external_gat" - + "eway_interface\030\207\345\362\327\001 \001(\005H\t\210\001\001\022!\n\020peer_gc" - + "p_gateway\030\274\351\263\206\001 \001(\tH\n\210\001\001\022\030\n\007peer_ip\030\244\332\337\266" - + "\001 \001(\tH\013\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022#\n\027re" - + "mote_traffic_selector\030\272\335\220\253\001 \003(\t\022\026\n\006route" - + "r\030\311\256\356F \001(\tH\r\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\016" - + "\210\001\001\022\036\n\rshared_secret\030\312\247\217\266\001 \001(\tH\017\210\001\001\022#\n\022s" - + "hared_secret_hash\030\343\350\231\276\001 \001(\tH\020\210\001\001\022\026\n\006stat" - + "us\030\362\237\267V \001(\tH\021\210\001\001\022#\n\022target_vpn_gateway\030\313" - + "\200\366\375\001 \001(\tH\022\210\001\001\022\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tH\023" - + "\210\001\001\022%\n\025vpn_gateway_interface\030\363\214\342- \001(\005H\024\210" - + "\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"\323\002\n\006Status\022\024\n\020UNDEFINED_STATUS" - + "\020\000\022\034\n\024ALLOCATING_RESOURCES\020\300\311\203\231\001\022\032\n\023AUTH", - "ORIZATION_ERROR\020\202\235\237\013\022\026\n\016DEPROVISIONING\020\356" - + "\223\304\314\001\022\022\n\013ESTABLISHED\020\370\216\257*\022\016\n\006FAILED\020\275\220\246\331\001" - + "\022\026\n\017FIRST_HANDSHAKE\020\350\331\241[\022\033\n\023NEGOTIATION_" - + "FAILURE\020\354\305\350\253\001\022\024\n\rNETWORK_ERROR\020\367\300\273\\\022\032\n\023N" - + "O_INCOMING_PACKETS\020\360\230\2339\022\024\n\014PROVISIONING\020" - + "\355\365\332\212\001\022\017\n\010REJECTED\020\376\210\204S\022\017\n\007STOPPED\020\255\273\354\323\001\022" - + "\036\n\027WAITING_FOR_FULL_CONFIG\020\312\304\355\023B\025\n\023_crea" - + "tion_timestampB\016\n\014_descriptionB\022\n\020_detai" - + "led_statusB\005\n\003_idB\016\n\014_ike_versionB\007\n\005_ki" - + "ndB\024\n\022_label_fingerprintB\007\n\005_nameB\030\n\026_pe" - + "er_external_gatewayB\"\n _peer_external_ga" - + "teway_interfaceB\023\n\021_peer_gcp_gatewayB\n\n\010" - + "_peer_ipB\t\n\007_regionB\t\n\007_routerB\014\n\n_self_" - + "linkB\020\n\016_shared_secretB\025\n\023_shared_secret" - + "_hashB\t\n\007_statusB\025\n\023_target_vpn_gatewayB" - + "\016\n\014_vpn_gatewayB\030\n\026_vpn_gateway_interfac" - + "e\"\274\003\n\027VpnTunnelAggregatedList\022\020\n\002id\030\233\032 \001" - + "(\tH\000\210\001\001\022M\n\005items\030\300\317\367/ \003(\0132;.google.cloud" - + ".compute.v1.VpnTunnelAggregatedList.Item" - + "sEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" - + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" - + " \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007wa" - + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" - + ".WarningH\004\210\001\001\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t" - + "\022<\n\005value\030\002 \001(\0132-.google.cloud.compute.v" - + "1.VpnTunnelsScopedList:\0028\001B\005\n\003_idB\007\n\005_ki" - + "ndB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010" - + "_warning\"\243\002\n\rVpnTunnelList\022\020\n\002id\030\233\032 \001(\tH" - + "\000\210\001\001\0224\n\005items\030\300\317\367/ \003(\0132\".google.cloud.co" - + "mpute.v1.VpnTunnel\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001" - + "\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tsel" - + "f_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(" - + "\0132 .google.cloud.compute.v1.WarningH\004\210\001\001" - + "B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n\010_warning\"\231\001\n\024VpnTunnelsSco" - + "pedList\022:\n\013vpn_tunnels\030\300\361\372M \003(\0132\".google" - + ".cloud.compute.v1.VpnTunnel\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\000\210\001\001B\n\n\010_warning\"\214\001\n\020WafExpressionSet\022" - + "\022\n\007aliases\030\376\235\365K \003(\t\022K\n\013expressions\030\333\201\333S " - + "\003(\01323.google.cloud.compute.v1.WafExpress" - + "ionSetExpression\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001B\005\n\003_i" - + "d\"b\n\032WafExpressionSetExpression\022\020\n\002id\030\233\032" - + " \001(\tH\000\210\001\001\022\033\n\013sensitivity\030\237\275\220\r \001(\005H\001\210\001\001B\005" - + "\n\003_idB\016\n\014_sensitivity\"P\n\032WaitGlobalOpera" - + "tionRequest\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027" - + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\"h\n\032WaitRegionOpe" - + "rationRequest\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002" - + "\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B" - + " \001(\tB\003\340A\002\"d\n\030WaitZoneOperationRequest\022\031\n" - + "\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l" - + " \001(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\335\010\n\007Warn" - + "ing\022\024\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022.\n\004data\030\252\337\273\001 \003" - + "(\0132\035.google.cloud.compute.v1.Data\022\030\n\007mes" - + "sage\030\207\200\254\307\001 \001(\tH\001\210\001\001\"\334\007\n\004Code\022\022\n\016UNDEFINE" - + "D_CODE\020\000\022\025\n\016CLEANUP_FAILED\020\330\214\326G\022 \n\030DEPRE" - + "CATED_RESOURCE_USED\020\302\337\353\272\001\022\034\n\024DEPRECATED_" - + "TYPE_USED\020\226\244\236\245\001\022(\n DISK_SIZE_LARGER_THAN" - + "_IMAGE_SIZE\020\227\201\225\260\001\022\036\n\026EXPERIMENTAL_TYPE_U" - + "SED\020\213\216\301\327\001\022\033\n\024EXTERNAL_API_WARNING\020\303\277\332S\022\035" - + "\n\025FIELD_VALUE_OVERRIDEN\020\257\266\231\235\001\022#\n\033INJECTE" - + "D_KERNELS_DEPRECATED\020\213\331\202\307\001\0224\n,INVALID_HE" - + "ALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB\020\316\233\274\277\001" - + "\022 \n\030LARGE_DEPLOYMENT_WARNING\020\246\347\310\345\001\022!\n\032LI" - + "ST_OVERHEAD_QUOTA_EXCEED\020\305\260\332\026\022\037\n\027MISSING" - + "_TYPE_DEPENDENCY\020\367\370\242\244\001\022%\n\035NEXT_HOP_ADDRE" - + "SS_NOT_ASSIGNED\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CANNOT" - + "_IP_FORWARD\020\347\352\347\266\001\022.\n\'NEXT_HOP_INSTANCE_H" - + "AS_NO_IPV6_INTERFACE\020\222\350\374E\022#\n\033NEXT_HOP_IN" - + "STANCE_NOT_FOUND\020\316\314\257\335\001\022\'\n NEXT_HOP_INSTA" - + "NCE_NOT_ON_NETWORK\020\302\350\235t\022\034\n\024NEXT_HOP_NOT_" - + "RUNNING\020\261\317\360\306\001\022\031\n\022NOT_CRITICAL_ERROR\020\324\250\2672" - + "\022\031\n\022NO_RESULTS_ON_PAGE\020\210\246\251\016\022\026\n\017PARTIAL_S" - + "UCCESS\020\205\256\207\023\022\035\n\026REQUIRED_TOS_AGREEMENT\020\203\316" - + "\344\001\0221\n)RESOURCE_IN_USE_BY_OTHER_RESOURCE_" - + "WARNING\020\301\364\355\354\001\022\033\n\024RESOURCE_NOT_DELETED\020\274\267" - + "\262P\022!\n\031SCHEMA_VALIDATION_IGNORED\020\312\324\237\203\001\022(\n" - + "!SINGLE_INSTANCE_PROPERTY_TEMPLATE\020\321\211\370\177\022" - + "\035\n\025UNDECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n\013UNREAC" - + "HABLE\020\264\275\255\006B\007\n\005_codeB\n\n\010_message\"\336\010\n\010Warn" - + "ings\022\024\n\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022.\n\004data\030\252\337\273\001 " - + "\003(\0132\035.google.cloud.compute.v1.Data\022\030\n\007me" - + "ssage\030\207\200\254\307\001 \001(\tH\001\210\001\001\"\334\007\n\004Code\022\022\n\016UNDEFIN" - + "ED_CODE\020\000\022\025\n\016CLEANUP_FAILED\020\330\214\326G\022 \n\030DEPR" - + "ECATED_RESOURCE_USED\020\302\337\353\272\001\022\034\n\024DEPRECATED" - + "_TYPE_USED\020\226\244\236\245\001\022(\n DISK_SIZE_LARGER_THA" - + "N_IMAGE_SIZE\020\227\201\225\260\001\022\036\n\026EXPERIMENTAL_TYPE_" - + "USED\020\213\216\301\327\001\022\033\n\024EXTERNAL_API_WARNING\020\303\277\332S\022" - + "\035\n\025FIELD_VALUE_OVERRIDEN\020\257\266\231\235\001\022#\n\033INJECT" - + "ED_KERNELS_DEPRECATED\020\213\331\202\307\001\0224\n,INVALID_H" - + "EALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB\020\316\233\274\277" - + "\001\022 \n\030LARGE_DEPLOYMENT_WARNING\020\246\347\310\345\001\022!\n\032L" - + "IST_OVERHEAD_QUOTA_EXCEED\020\305\260\332\026\022\037\n\027MISSIN" - + "G_TYPE_DEPENDENCY\020\367\370\242\244\001\022%\n\035NEXT_HOP_ADDR" - + "ESS_NOT_ASSIGNED\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CANNO" - + "T_IP_FORWARD\020\347\352\347\266\001\022.\n\'NEXT_HOP_INSTANCE_" - + "HAS_NO_IPV6_INTERFACE\020\222\350\374E\022#\n\033NEXT_HOP_I" - + "NSTANCE_NOT_FOUND\020\316\314\257\335\001\022\'\n NEXT_HOP_INST" - + "ANCE_NOT_ON_NETWORK\020\302\350\235t\022\034\n\024NEXT_HOP_NOT" - + "_RUNNING\020\261\317\360\306\001\022\031\n\022NOT_CRITICAL_ERROR\020\324\250\267" - + "2\022\031\n\022NO_RESULTS_ON_PAGE\020\210\246\251\016\022\026\n\017PARTIAL_" - + "SUCCESS\020\205\256\207\023\022\035\n\026REQUIRED_TOS_AGREEMENT\020\203" - + "\316\344\001\0221\n)RESOURCE_IN_USE_BY_OTHER_RESOURCE" - + "_WARNING\020\301\364\355\354\001\022\033\n\024RESOURCE_NOT_DELETED\020\274" - + "\267\262P\022!\n\031SCHEMA_VALIDATION_IGNORED\020\312\324\237\203\001\022(" - + "\n!SINGLE_INSTANCE_PROPERTY_TEMPLATE\020\321\211\370\177" - + "\022\035\n\025UNDECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n\013UNREA" - + "CHABLE\020\264\275\255\006B\007\n\005_codeB\n\n\010_message\"\317\001\n\026Wei" - + "ghtedBackendService\022 \n\017backend_service\030\212" - + "\300\256\222\001 \001(\tH\000\210\001\001\022I\n\rheader_action\030\250\240\270\234\001 \001(\013" - + "2).google.cloud.compute.v1.HttpHeaderAct" - + "ionH\001\210\001\001\022\027\n\006weight\030\370\204\305\206\001 \001(\rH\002\210\001\001B\022\n\020_ba" - + "ckend_serviceB\020\n\016_header_actionB\t\n\007_weig" - + "ht\"\240\001\n&WithdrawPublicAdvertisedPrefixeRe" - + "quest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" - + "\022(\n\030public_advertised_prefix\030\236\367\3110 \001(\tB\003\340" - + "A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reque" - + "st_id\"\277\001\n%WithdrawPublicDelegatedPrefixe" - + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" - + "ct\022\'\n\027public_delegated_prefix\030\350\334\261a \001(\tB\003" - + "\340A\002\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "quest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB" + + "\n\340A\002\362G\004zoneB\r\n\013_autoscalerB\r\n\013_request_i" + + "d\"\334\001\n\032UpdateBackendBucketRequest\022\036\n\016back" + + "end_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027backend_buck" + + "et_resource\030\230\316\307\265\001 \001(\0132&.google.cloud.com" + + "pute.v1.BackendBucketB\003\340A\002\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\000\210\001\001B\r\n\013_request_id\"\341\001\n\033UpdateBacke" + + "ndServiceRequest\022 \n\017backend_service\030\212\300\256\222" + + "\001 \001(\tB\003\340A\002\022R\n\030backend_service_resource\030\243" + + "\201\337\245\001 \001(\0132\'.google.cloud.compute.v1.Backe" + + "ndServiceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\241\002\n\021UpdateDiskRequest\022\024\n\004di" + + "sk\030\235\233\274\001 \001(\tB\003\340A\002\022<\n\rdisk_resource\030\360\320\253\014 \001" + + "(\0132\035.google.cloud.compute.v1.DiskB\003\340A\002\022\025" + + "\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\001\210\001\001\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\033\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\010\n\006_pathsB\r\n\013_re" + + "quest_idB\016\n\014_update_mask\"\373\001\n\"UpdateDispl" + + "ayDeviceInstanceRequest\022P\n\027display_devic" + + "e_resource\030\332\204\221\212\001 \001(\0132&.google.cloud.comp" + + "ute.v1.DisplayDeviceB\003\340A\002\022\030\n\010instance\030\225\251" + + "\332\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\306" + + "\001\n\025UpdateFirewallRequest\022\031\n\010firewall\030\200\372\325" + + "\363\001 \001(\tB\003\340A\002\022D\n\021firewall_resource\030\355\260\340\023 \001(" + + "\0132!.google.cloud.compute.v1.FirewallB\003\340A" + + "\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" - + "\237\002\n\013XpnHostList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0222\n\005ite" - + "ms\030\300\317\367/ \003(\0132 .google.cloud.compute.v1.Pr" - + "oject\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page" - + "_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 " - + "\001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cl" - + "oud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_k" + + "\324\001\n\030UpdateHealthCheckRequest\022\035\n\014health_c" + + "heck\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n\025health_check_reso" + + "urce\030\250\303\244` \001(\0132$.google.cloud.compute.v1." + + "HealthCheckB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A" + + "\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B" + + "\r\n\013_request_id\"\345\003\n\025UpdateInstanceRequest" + + "\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022D\n\021instance_r" + + "esource\030\370\360\376f \001(\0132!.google.cloud.compute." + + "v1.InstanceB\003\340A\002\022\037\n\016minimal_action\030\224\215\202\201\001" + + " \001(\tH\000\210\001\001\022.\n\036most_disruptive_allowed_act" + + "ion\030\215\316\302\037 \001(\tH\001\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340" + + "A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\002\210\001\001" + + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zone\"-\n\rMinimal" + + "Action\022\034\n\030UNDEFINED_MINIMAL_ACTION\020\000\"K\n\033" + + "MostDisruptiveAllowedAction\022,\n(UNDEFINED" + + "_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000B\021\n\017_mi" + + "nimal_actionB!\n\037_most_disruptive_allowed" + + "_actionB\r\n\013_request_id\"\250\002\n%UpdateNetwork" + + "InterfaceInstanceRequest\022\030\n\010instance\030\225\251\332" + + "\010 \001(\tB\003\340A\002\022\"\n\021network_interface\030\350\300\235\256\001 \001(" + + "\tB\003\340A\002\022V\n\032network_interface_resource\030\205\224\256" + + "\233\001 \001(\0132).google.cloud.compute.v1.Network" + + "InterfaceB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362" + + "G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_i" + + "d\"\365\001\n\033UpdatePeeringNetworkRequest\022\027\n\007net" + + "work\030\256\264\205o \001(\tB\003\340A\002\022o\n(networks_update_pe" + + "ering_request_resource\030\331\252\202k \001(\01325.google" + + ".cloud.compute.v1.NetworksUpdatePeeringR" + + "equestB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" + + "equest_id\"\346\002\n3UpdatePerInstanceConfigsIn" + + "stanceGroupManagerRequest\022&\n\026instance_gr" + + "oup_manager\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n@instance_g" + + "roup_managers_update_per_instance_config" + + "s_req_resource\030\276\301\266C \001(\0132I.google.cloud.c" + + "ompute.v1.InstanceGroupManagersUpdatePer" + + "InstanceConfigsReqB\003\340A\002\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_" + + "request_id\"\362\002\n9UpdatePerInstanceConfigsR" + + "egionInstanceGroupManagerRequest\022&\n\026inst" + + "ance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007proj" + + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315" + + "\240B \001(\tB\014\340A\002\362G\006region\022\235\001\nAregion_instance" + + "_group_manager_update_instance_config_re" + + "q_resource\030\247\256\272* \001(\0132J.google.cloud.compu" + + "te.v1.RegionInstanceGroupManagerUpdateIn" + + "stanceConfigReqB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 " + + "\001(\tH\000\210\001\001B\r\n\013_request_id\"\204\002\n\035UpdateRegion" + + "AutoscalerRequest\022\033\n\nautoscaler\030\327\375\322\366\001 \001(" + + "\tH\000\210\001\001\022H\n\023autoscaler_resource\030\366\360\377b \001(\0132#" + + ".google.cloud.compute.v1.AutoscalerB\003\340A\002" + + "\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006r" + + "egion\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_" + + "id\030\313\201\331\021 \001(\tH\001\210\001\001B\r\n\013_autoscalerB\r\n\013_requ" + + "est_id\"\210\002\n!UpdateRegionBackendServiceReq" + + "uest\022 \n\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R" + + "\n\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.g" + + "oogle.cloud.compute.v1.BackendServiceB\003\340" + + "A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\304\002\n\035Up" + + "dateRegionCommitmentRequest\022\033\n\ncommitmen" + + "t\030\225\226\363\345\001 \001(\tB\003\340A\002\022H\n\023commitment_resource\030" + + "\370\243\273t \001(\0132#.google.cloud.compute.v1.Commi" + + "tmentB\003\340A\002\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007pro" + + "ject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364" + + "\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021" + + " \001(\tH\001\210\001\001\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B" + + "\010\n\006_pathsB\r\n\013_request_idB\016\n\014_update_mask" + + "\"\253\002\n\027UpdateRegionDiskRequest\022\024\n\004disk\030\235\233\274" + + "\001 \001(\tB\003\340A\002\022<\n\rdisk_resource\030\360\320\253\014 \001(\0132\035.g" + + "oogle.cloud.compute.v1.DiskB\003\340A\002\022\025\n\005path" + + "s\030\356\301\3402 \001(\tH\000\210\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\013updat" + + "e_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B\010\n\006_pathsB\r\n\013_requ" + + "est_idB\016\n\014_update_mask\"\373\001\n\036UpdateRegionH" + + "ealthCheckRequest\022\035\n\014health_check\030\345\252\244\223\001 " + + "\001(\tB\003\340A\002\022K\n\025health_check_resource\030\250\303\244` \001" + + "(\0132$.google.cloud.compute.v1.HealthCheck" + + "B\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project" + + "\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\nreq" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\347\001\n" + + "\031UpdateRegionUrlMapRequest\022!\n\007project\030\231\226" + + "\301l \001(\tB\r\340A\002\362G\007project\022\037\n\006region\030\364\315\240B \001(\t" + + "B\014\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210" + + "\001\001\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_" + + "resource\030\341\220\267P \001(\0132\037.google.cloud.compute" + + ".v1.UrlMapB\003\340A\002B\r\n\013_request_id\"\276\002\n\030Updat" + + "eReservationRequest\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210" + + "\001\001\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\032\n" + + "\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\013reservation" + + "\030\314\207\325\026 \001(\tB\003\340A\002\022K\n\024reservation_resource\030\241" + + "\356\364\207\001 \001(\0132$.google.cloud.compute.v1.Reser" + + "vationB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001" + + "\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\010\n\006_paths" + + "B\r\n\013_request_idB\016\n\014_update_mask\"\336\001\n\023Upda" + + "teRouterRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002" + + "\362G\007project\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg" + + "ion\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n\006route" + + "r\030\311\256\356F \001(\tB\003\340A\002\022@\n\017router_resource\030\304\200\202J " + + "\001(\0132\037.google.cloud.compute.v1.RouterB\003\340A" + + "\002B\r\n\013_request_id\"\227\002\n+UpdateShieldedInsta" + + "nceConfigInstanceRequest\022\030\n\010instance\030\225\251\332" + + "\010 \001(\tB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007pr" + + "oject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n!shi" + + "elded_instance_config_resource\030\330\226\335\201\001 \001(\013" + + "2/.google.cloud.compute.v1.ShieldedInsta" + + "nceConfigB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004z" + + "oneB\r\n\013_request_id\"\237\002\n\030UpdateStoragePool" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\014storag" + + "e_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022K\n\025storage_pool_re" + + "source\030\215\274\371J \001(\0132$.google.cloud.compute.v", + "1.StoragePoolB\003\340A\002\022\034\n\013update_mask\030\242\271\272\356\001 " + + "\001(\tH\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n" + + "\013_request_idB\016\n\014_update_mask\"\300\001\n\023UpdateU" + + "rlMapRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n\007u" + + "rl_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_resourc" + + "e\030\341\220\267P \001(\0132\037.google.cloud.compute.v1.Url" + + "MapB\003\340A\002B\r\n\013_request_id\"\362\007\n\006UrlMap\022\"\n\022cr" + + "eation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n$defaul" + + "t_custom_error_response_policy\030\251\213\340& \001(\0132" + + "2.google.cloud.compute.v1.CustomErrorRes" + + "ponsePolicyH\001\210\001\001\022O\n\024default_route_action" + + "\030\252\264\327\264\001 \001(\0132(.google.cloud.compute.v1.Htt" + + "pRouteActionH\002\210\001\001\022 \n\017default_service\030\267\345\305" + + "\260\001 \001(\tH\003\210\001\001\022R\n\024default_url_redirect\030\352\253\266\253" + + "\001 \001(\0132+.google.cloud.compute.v1.HttpRedi" + + "rectActionH\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\t" + + "H\005\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\rhe" + + "ader_action\030\250\240\270\234\001 \001(\0132).google.cloud.com" + + "pute.v1.HttpHeaderActionH\007\210\001\001\0229\n\nhost_ru" + + "les\030\240\207\327\224\001 \003(\0132!.google.cloud.compute.v1." + + "HostRule\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n\004kind\030\224\367\310\001 " + + "\001(\tH\t\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\n\210\001\001\022?\n\rpath_m" + + "atchers\030\333\210\305\201\001 \003(\0132$.google.cloud.compute" + + ".v1.PathMatcher\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\0225\n\005tests\030\241\234\311" + + "4 \003(\0132#.google.cloud.compute.v1.UrlMapTe" + + "stB\025\n\023_creation_timestampB\'\n%_default_cu" + + "stom_error_response_policyB\027\n\025_default_r" + + "oute_actionB\022\n\020_default_serviceB\027\n\025_defa" + + "ult_url_redirectB\016\n\014_descriptionB\016\n\014_fin" + + "gerprintB\020\n\016_header_actionB\005\n\003_idB\007\n\005_ki" + + "ndB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_link\"\235\002\n" + + "\nUrlMapList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0221\n\005items\030\300" + + "\317\367/ \003(\0132\037.google.cloud.compute.v1.UrlMap" + + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" + + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" + + "\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" + + "ompute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022" + + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" + + "ning\"7\n\017UrlMapReference\022\030\n\007url_map\030\214\225\201\257\001" + + " \001(\tH\000\210\001\001B\n\n\010_url_map\"\360\002\n\nUrlMapTest\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n\023expected_o" + + "utput_url\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n\037expected_red" + + "irect_response_code\030\357\352\200\t \001(\005H\002\210\001\001\022=\n\007hea" + + "ders\030\206\337\235{ \003(\0132).google.cloud.compute.v1." + + "UrlMapTestHeader\022\024\n\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\024" + + "\n\004path\030\245\310\321\001 \001(\tH\004\210\001\001\022\030\n\007service\030\265\215\217\262\001 \001(" + + "\tH\005\210\001\001B\016\n\014_descriptionB\026\n\024_expected_outp" + + "ut_urlB\"\n _expected_redirect_response_co" + + "deB\007\n\005_hostB\007\n\005_pathB\n\n\010_service\"R\n\020UrlM" + + "apTestHeader\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n\005va" + + "lue\030\361\242\2625 \001(\tH\001\210\001\001B\007\n\005_nameB\010\n\006_value\"\322\001\n" + + "\026UrlMapValidationResult\022\027\n\013load_errors\030\344" + + "\361\361\223\001 \003(\t\022\036\n\016load_succeeded\030\310\264\230= \001(\010H\000\210\001\001" + + "\022?\n\rtest_failures\030\266\342\237\361\001 \003(\0132$.google.clo" + + "ud.compute.v1.TestFailure\022\033\n\013test_passed" + + "\030\275\201\362[ \001(\010H\001\210\001\001B\021\n\017_load_succeededB\016\n\014_te" + + "st_passed\"\265\003\n\025UrlMapsAggregatedList\022\020\n\002i" + + "d\030\233\032 \001(\tH\000\210\001\001\022K\n\005items\030\300\317\367/ \003(\01329.google" + + ".cloud.compute.v1.UrlMapsAggregatedList." + + "ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229" + + "\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.comput" + + "e.v1.WarningH\004\210\001\001\032X\n\nItemsEntry\022\013\n\003key\030\001" + + " \001(\t\0229\n\005value\030\002 \001(\0132*.google.cloud.compu" + + "te.v1.UrlMapsScopedList:\0028\001B\005\n\003_idB\007\n\005_k" + "indB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n\n" - + "\010_warning\"\232\001\n\rXpnResourceId\022\020\n\002id\030\233\032 \001(\t" - + "H\000\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001\210\001\001\"Q\n\004Type\022\022\n\016U" - + "NDEFINED_TYPE\020\000\022\017\n\007PROJECT\020\371\255\357\302\001\022$\n\035XPN_" - + "RESOURCE_TYPE_UNSPECIFIED\020\372\255\245HB\005\n\003_idB\007\n" - + "\005_type\"\227\004\n\004Zone\022\"\n\027available_cpu_platfor" - + "ms\030\223\363\331S \003(\t\022\"\n\022creation_timestamp\030\266\217\307\016 \001" - + "(\tH\000\210\001\001\022G\n\ndeprecated\030\263\313\321\365\001 \001(\0132*.google" - + ".cloud.compute.v1.DeprecationStatusH\001\210\001\001" - + "\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 " - + "\001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n\004name\030\213" - + "\365\315\001 \001(\tH\005\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n\t" - + "self_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\026\n\006status\030\362\237\267V " - + "\001(\tH\010\210\001\001\022\034\n\014supports_pzs\030\356\366\205( \001(\010H\t\210\001\001\"4" - + "\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\013\n\004DOWN\020\242" - + "\271\200\001\022\007\n\002UP\020\233\025B\025\n\023_creation_timestampB\r\n\013_" - + "deprecatedB\016\n\014_descriptionB\005\n\003_idB\007\n\005_ki" - + "ndB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_linkB\t\n\007" - + "_statusB\017\n\r_supports_pzs\"\231\002\n\010ZoneList\022\020\n" - + "\002id\030\233\032 \001(\tH\000\210\001\001\022/\n\005items\030\300\317\367/ \003(\0132\035.goog" - + "le.cloud.compute.v1.Zone\022\024\n\004kind\030\224\367\310\001 \001(" - + "\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022" - + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234" - + "\337\226\030 \001(\0132 .google.cloud.compute.v1.Warnin" - + "gH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tok" - + "enB\014\n\n_self_linkB\n\n\010_warning\"\315\001\n\024ZoneSet" - + "LabelsRequest\022!\n\021label_fingerprint\030\231\360\367T " - + "\001(\tH\000\210\001\001\022M\n\006labels\030\377\277\301\356\001 \003(\01329.google.cl" - + "oud.compute.v1.ZoneSetLabelsRequest.Labe" - + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001B\024\n\022_label_fingerprint\"\261\001\n" - + "\024ZoneSetPolicyRequest\0226\n\010bindings\030\216\305\244\300\001 " - + "\003(\0132 .google.cloud.compute.v1.Binding\022\024\n" - + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n\006policy\030\262\312\266+ \001(\0132\037" - + ".google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n\005" - + "_etagB\t\n\007_policy2\263\006\n\020AcceleratorTypes\022\326\001" - + "\n\016AggregatedList\022>.google.cloud.compute." - + "v1.AggregatedListAcceleratorTypesRequest" - + "\0326.google.cloud.compute.v1.AcceleratorTy" - + "peAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/com" - + "pute/v1/projects/{project}/aggregated/ac" - + "celeratorTypes\022\334\001\n\003Get\0222.google.cloud.co" - + "mpute.v1.GetAcceleratorTypeRequest\032(.goo" - + "gle.cloud.compute.v1.AcceleratorType\"w\332A" - + "\035project,zone,accelerator_type\202\323\344\223\002Q\022O/c" + + "\010_warning\"\220\001\n\021UrlMapsScopedList\0224\n\010url_m" + + "aps\030\347\216\2441 \003(\0132\037.google.cloud.compute.v1.U" + + "rlMap\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" + + ".compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\230\002\n" + + "\026UrlMapsValidateRequest\022!\n\026load_balancin" + + "g_schemes\030\257\205\201\003 \003(\t\0229\n\010resource\030\216\210\257] \001(\0132" + + "\037.google.cloud.compute.v1.UrlMapH\000\210\001\001\"\222\001" + + "\n\024LoadBalancingSchemes\022$\n UNDEFINED_LOAD" + + "_BALANCING_SCHEMES\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\030\n" + + "\020EXTERNAL_MANAGED\020\213\266\222\364\001\022)\n!LOAD_BALANCIN" + + "G_SCHEME_UNSPECIFIED\020\274\273\207\373\001B\013\n\t_resource\"" + + "m\n\027UrlMapsValidateResponse\022G\n\006result\030\235\220\267" + + "B \001(\0132/.google.cloud.compute.v1.UrlMapVa" + + "lidationResultH\000\210\001\001B\t\n\007_result\"\272\001\n\nUrlRe" + + "write\022\034\n\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n\023p" + + "ath_prefix_rewrite\030\271\350\321\023 \001(\tH\001\210\001\001\022&\n\025path" + + "_template_rewrite\030\241\357\362\311\001 \001(\tH\002\210\001\001B\017\n\r_hos" + + "t_rewriteB\026\n\024_path_prefix_rewriteB\030\n\026_pa" + + "th_template_rewrite\"\376\007\n\020UsableSubnetwork" + + "\022$\n\024external_ipv6_prefix\030\366\222\266B \001(\tH\000\210\001\001\022%" + + "\n\024internal_ipv6_prefix\030\350\242\264\361\001 \001(\tH\001\210\001\001\022\035\n" + + "\rip_cidr_range\030\312\315\344. \001(\tH\002\210\001\001\022!\n\020ipv6_acc" + + "ess_type\030\335\365\321\360\001 \001(\tH\003\210\001\001\022\027\n\007network\030\256\264\205o " + + "\001(\tH\004\210\001\001\022\030\n\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n\004ro" + + "le\030\366\200\326\001 \001(\tH\006\210\001\001\022W\n\023secondary_ip_ranges\030" + + "\343\377\224A \003(\01327.google.cloud.compute.v1.Usabl" + + "eSubnetworkSecondaryRange\022\033\n\nstack_type\030" + + "\221\265\213\313\001 \001(\tH\007\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH\010" + + "\210\001\001\"S\n\016Ipv6AccessType\022\036\n\032UNDEFINED_IPV6_" + + "ACCESS_TYPE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010INTERN" + + "AL\020\275\355\226\205\001\"\370\001\n\007Purpose\022\025\n\021UNDEFINED_PURPOS" + + "E\020\000\022\033\n\024GLOBAL_MANAGED_PROXY\020\362\313\340p\022#\n\034INTE" + + "RNAL_HTTPS_LOAD_BALANCER\020\331\266\316v\022\026\n\016PEER_MI" + + "GRATION\020\221\252\307\352\001\022\017\n\007PRIVATE\020\343\342\262\300\001\022\023\n\013PRIVAT" + + "E_NAT\020\245\310\256\257\001\022\027\n\020PRIVATE_RFC_1918\020\333\376\305y\022\036\n\027" + + "PRIVATE_SERVICE_CONNECT\020\304\364\371\026\022\035\n\026REGIONAL" + + "_MANAGED_PROXY\020\356\266\375H\":\n\004Role\022\022\n\016UNDEFINED" + + "_ROLE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\016\n\006BACKUP\020\302\323\315\242\001\"" + + "[\n\tStackType\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020" + + "\n\tIPV4_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\tIP" + + "V6_ONLY\020\344\255\374%B\027\n\025_external_ipv6_prefixB\027\n" + + "\025_internal_ipv6_prefixB\020\n\016_ip_cidr_range" + + "B\023\n\021_ipv6_access_typeB\n\n\010_networkB\n\n\010_pu" + + "rposeB\007\n\005_roleB\r\n\013_stack_typeB\r\n\013_subnet" + + "work\"}\n\036UsableSubnetworkSecondaryRange\022\035" + + "\n\rip_cidr_range\030\312\315\344. \001(\tH\000\210\001\001\022\033\n\nrange_n" + + "ame\030\315\360\264\236\001 \001(\tH\001\210\001\001B\020\n\016_ip_cidr_rangeB\r\n\013" + + "_range_name\"\274\002\n\037UsableSubnetworksAggrega" + + "tedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317\367/ " + + "\003(\0132).google.cloud.compute.v1.UsableSubn" + + "etwork\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_pag" + + "e_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" + + " \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_" + + "kindB\022\n\020_next_page_tokenB\014\n\n_self_linkB\n" + + "\n\010_warning\"\177\n\023UsageExportLocation\022\034\n\013buc" + + "ket_name\030\300\227\236\207\001 \001(\tH\000\210\001\001\022#\n\022report_name_p" + + "refix\030\273\260\327\230\001 \001(\tH\001\210\001\001B\016\n\014_bucket_nameB\025\n\023" + + "_report_name_prefix\"\332\001\n\033ValidateRegionUr" + + "lMapRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006" + + "region\030\364\315\240B \001(\tB\003\340A\002\022p\n)region_url_maps_" + + "validate_request_resource\030\232\314\200\033 \001(\01325.goo" + + "gle.cloud.compute.v1.RegionUrlMapsValida" + + "teRequestB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002" + + "\"\260\001\n\025ValidateUrlMapRequest\022\027\n\007project\030\231\226" + + "\301l \001(\tB\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022d\n" + + "\"url_maps_validate_request_resource\030\357\321\344\274" + + "\001 \001(\0132/.google.cloud.compute.v1.UrlMapsV" + + "alidateRequestB\003\340A\002\"\257\001\n\025VmEndpointNatMap" + + "pings\022\035\n\rinstance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n\026" + + "interface_nat_mappings\030\211\200\225z \003(\0132B.google" + + ".cloud.compute.v1.VmEndpointNatMappingsI" + + "nterfaceNatMappingsB\020\n\016_instance_name\"\342\003" + + "\n)VmEndpointNatMappingsInterfaceNatMappi" + + "ngs\022$\n\030drain_nat_ip_port_ranges\030\301\343\307\274\001 \003(" + + "\t\022\036\n\022nat_ip_port_ranges\030\232\260\314\375\001 \003(\t\022*\n\031num" + + "_total_drain_nat_ports\030\371\245\377\237\001 \001(\005H\000\210\001\001\022$\n" + + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\rr" + + "ule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cloud.co" + + "mpute.v1.VmEndpointNatMappingsInterfaceN" + + "atMappingsNatRuleMappings\022&\n\025source_alia" + + "s_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n\021source_virt" + + "ual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n\032_num_total_drain" + + "_nat_portsB\026\n\024_num_total_nat_portsB\030\n\026_s" + + "ource_alias_ip_rangeB\024\n\022_source_virtual_" + + "ip\"\266\002\n8VmEndpointNatMappingsInterfaceNat" + + "MappingsNatRuleMappings\022$\n\030drain_nat_ip_" + + "port_ranges\030\301\343\307\274\001 \003(\t\022\036\n\022nat_ip_port_ran" + + "ges\030\232\260\314\375\001 \003(\t\022*\n\031num_total_drain_nat_por" + + "ts\030\371\245\377\237\001 \001(\005H\000\210\001\001\022$\n\023num_total_nat_ports" + + "\030\200\333\200\217\001 \001(\005H\001\210\001\001\022\034\n\013rule_number\030\354\333\232\377\001 \001(\005" + + "H\002\210\001\001B\034\n\032_num_total_drain_nat_portsB\026\n\024_" + + "num_total_nat_portsB\016\n\014_rule_number\"\274\002\n\031" + + "VmEndpointNatMappingsList\022\020\n\002id\030\233\032 \001(\tH\000" + + "\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_t" + + "oken\030\225\272\206& \001(\tH\002\210\001\001\022A\n\006result\030\235\220\267B \003(\0132.." + + "google.cloud.compute.v1.VmEndpointNatMap" + + "pings\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007war" + + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." + + "WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pa" + + "ge_tokenB\014\n\n_self_linkB\n\n\010_warning\"\322\006\n\nV" + + "pnGateway\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\t" + + "H\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\"\n\022g" + + "ateway_ip_version\030\233\355\203\037 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032" + + " \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n\021label" + + "_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022C\n\006labels\030\377\277\301" + + "\356\001 \003(\0132/.google.cloud.compute.v1.VpnGate" + + "way.LabelsEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" + + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n\006region\030\364\315\240B \001(" + + "\tH\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\033\n\nst" + + "ack_type\030\221\265\213\313\001 \001(\tH\n\210\001\001\022Q\n\016vpn_interface" + + "s\030\205\315\345+ \003(\01326.google.cloud.compute.v1.Vpn" + + "GatewayVpnGatewayInterface\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n\020Gat" + + "ewayIpVersion\022 \n\034UNDEFINED_GATEWAY_IP_VE" + + "RSION\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\"[\n\tSta" + + "ckType\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020\n\tIPV4" + + "_IPV6\020\201\350\312\n\022\020\n\tIPV4_ONLY\020\246\313\325\n\022\020\n\tIPV6_ONL" + + "Y\020\344\255\374%B\025\n\023_creation_timestampB\016\n\014_descri" + + "ptionB\025\n\023_gateway_ip_versionB\005\n\003_idB\007\n\005_" + + "kindB\024\n\022_label_fingerprintB\007\n\005_nameB\n\n\010_" + + "networkB\t\n\007_regionB\014\n\n_self_linkB\r\n\013_sta" + + "ck_type\"\277\003\n\030VpnGatewayAggregatedList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.googl" + + "e.cloud.compute.v1.VpnGatewayAggregatedL" + + "ist.ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017" + + "next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n\014unreachables\030\237\240\206t \003" + + "(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\004\210\001\001\032\\\n\nItemsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.c" + + "ompute.v1.VpnGatewaysScopedList:\0028\001B\005\n\003_" + + "idB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self" + + "_linkB\n\n\010_warning\"\245\002\n\016VpnGatewayList\022\020\n\002" + + "id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.googl" + + "e.cloud.compute.v1.VpnGateway\022\024\n\004kind\030\224\367" + + "\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH" + + "\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warn" + + "ing\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.W" + + "arningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_pag" + + "e_tokenB\014\n\n_self_linkB\n\n\010_warning\"g\n\020Vpn" + + "GatewayStatus\022S\n\017vpn_connections\030\212\355\276\321\001 \003" + + "(\01326.google.cloud.compute.v1.VpnGatewayS" + + "tatusVpnConnection\"\321\002\n0VpnGatewayStatusH" + + "ighAvailabilityRequirementState\022\025\n\005state" + + "\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n\022unsatisfied_reason\030\212\367\235" + + "\032 \001(\tH\001\210\001\001\"f\n\005State\022\023\n\017UNDEFINED_STATE\020\000" + + "\022!\n\031CONNECTION_REDUNDANCY_MET\020\233\312\365\360\001\022%\n\035C" + + "ONNECTION_REDUNDANCY_NOT_MET\020\217\324\211\364\001\"Y\n\021Un" + + "satisfiedReason\022 \n\034UNDEFINED_UNSATISFIED" + + "_REASON\020\000\022\"\n\033INCOMPLETE_TUNNELS_COVERAGE" + + "\020\375\366\324\032B\010\n\006_stateB\025\n\023_unsatisfied_reason\"\313" + + "\001\n\026VpnGatewayStatusTunnel\022\'\n\027local_gatew" + + "ay_interface\030\252\232\332K \001(\rH\000\210\001\001\022&\n\026peer_gatew" + + "ay_interface\030\341\336\234f \001(\rH\001\210\001\001\022\032\n\ntunnel_url" + + "\030\230\242\324% \001(\tH\002\210\001\001B\032\n\030_local_gateway_interfa" + + "ceB\031\n\027_peer_gateway_interfaceB\r\n\013_tunnel" + + "_url\"\312\002\n\035VpnGatewayStatusVpnConnection\022&" + + "\n\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!" + + "\n\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n\005sta" + + "te\030\221\211\2534 \001(\0132I.google.cloud.compute.v1.Vp" + + "nGatewayStatusHighAvailabilityRequiremen" + + "tStateH\002\210\001\001\022C\n\007tunnels\030\213\372\3551 \003(\0132/.google" + + ".cloud.compute.v1.VpnGatewayStatusTunnel" + + "B\030\n\026_peer_external_gatewayB\023\n\021_peer_gcp_" + + "gatewayB\010\n\006_state\"\332\001\n\035VpnGatewayVpnGatew" + + "ayInterface\022\020\n\002id\030\233\032 \001(\rH\000\210\001\001\022(\n\027interco" + + "nnect_attachment\030\364\212\367\222\001 \001(\tH\001\210\001\001\022\033\n\nip_ad" + + "dress\030\334\361\334\301\001 \001(\tH\002\210\001\001\022\035\n\014ipv6_address\030\234\263\357" + + "\242\001 \001(\tH\003\210\001\001B\005\n\003_idB\032\n\030_interconnect_atta" + + "chmentB\r\n\013_ip_addressB\017\n\r_ipv6_address\"l" + + "\n\034VpnGatewaysGetStatusResponse\022A\n\006result" + + "\030\235\220\267B \001(\0132).google.cloud.compute.v1.VpnG" + + "atewayStatusH\000\210\001\001B\t\n\007_result\"\234\001\n\025VpnGate" + + "waysScopedList\022<\n\014vpn_gateways\030\232\373\312{ \003(\0132" + + "#.google.cloud.compute.v1.VpnGateway\0229\n\007" + + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." + + "v1.WarningH\000\210\001\001B\n\n\010_warning\"\233\014\n\tVpnTunne" + + "l\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022 \n\017detailed_" + + "status\030\341\244\203\237\001 \001(\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022" + + "\033\n\013ike_version\030\234\320\220h \001(\005H\004\210\001\001\022\024\n\004kind\030\224\367\310" + + "\001 \001(\tH\005\210\001\001\022!\n\021label_fingerprint\030\231\360\367T \001(\t" + + "H\006\210\001\001\022B\n\006labels\030\377\277\301\356\001 \003(\0132..google.cloud" + + ".compute.v1.VpnTunnel.LabelsEntry\022\"\n\026loc" + + "al_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n\004name\030\213\365" + + "\315\001 \001(\tH\007\210\001\001\022&\n\025peer_external_gateway\030\215\356\307" + + "\267\001 \001(\tH\010\210\001\001\0220\n\037peer_external_gateway_int" + + "erface\030\207\345\362\327\001 \001(\005H\t\210\001\001\022!\n\020peer_gcp_gatewa" + + "y\030\274\351\263\206\001 \001(\tH\n\210\001\001\022\030\n\007peer_ip\030\244\332\337\266\001 \001(\tH\013\210" + + "\001\001\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022#\n\027remote_tra" + + "ffic_selector\030\272\335\220\253\001 \003(\t\022\026\n\006router\030\311\256\356F \001" + + "(\tH\r\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022\036\n\rs" + + "hared_secret\030\312\247\217\266\001 \001(\tH\017\210\001\001\022#\n\022shared_se" + + "cret_hash\030\343\350\231\276\001 \001(\tH\020\210\001\001\022\026\n\006status\030\362\237\267V " + + "\001(\tH\021\210\001\001\022#\n\022target_vpn_gateway\030\313\200\366\375\001 \001(\t" + + "H\022\210\001\001\022\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tH\023\210\001\001\022%\n\025v" + + "pn_gateway_interface\030\363\214\342- \001(\005H\024\210\001\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\323\002\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\034\n\024AL" + + "LOCATING_RESOURCES\020\300\311\203\231\001\022\032\n\023AUTHORIZATIO" + + "N_ERROR\020\202\235\237\013\022\026\n\016DEPROVISIONING\020\356\223\304\314\001\022\022\n\013" + + "ESTABLISHED\020\370\216\257*\022\016\n\006FAILED\020\275\220\246\331\001\022\026\n\017FIRS" + + "T_HANDSHAKE\020\350\331\241[\022\033\n\023NEGOTIATION_FAILURE\020" + + "\354\305\350\253\001\022\024\n\rNETWORK_ERROR\020\367\300\273\\\022\032\n\023NO_INCOMI" + + "NG_PACKETS\020\360\230\2339\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\017\n" + + "\010REJECTED\020\376\210\204S\022\017\n\007STOPPED\020\255\273\354\323\001\022\036\n\027WAITI" + + "NG_FOR_FULL_CONFIG\020\312\304\355\023B\025\n\023_creation_tim" + + "estampB\016\n\014_descriptionB\022\n\020_detailed_stat" + + "usB\005\n\003_idB\016\n\014_ike_versionB\007\n\005_kindB\024\n\022_l" + + "abel_fingerprintB\007\n\005_nameB\030\n\026_peer_exter" + + "nal_gatewayB\"\n _peer_external_gateway_in" + + "terfaceB\023\n\021_peer_gcp_gatewayB\n\n\010_peer_ip" + + "B\t\n\007_regionB\t\n\007_routerB\014\n\n_self_linkB\020\n\016" + + "_shared_secretB\025\n\023_shared_secret_hashB\t\n" + + "\007_statusB\025\n\023_target_vpn_gatewayB\016\n\014_vpn_" + + "gatewayB\030\n\026_vpn_gateway_interface\"\274\003\n\027Vp" + + "nTunnelAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" + + "M\n\005items\030\300\317\367/ \003(\0132;.google.cloud.compute" + + ".v1.VpnTunnelAggregatedList.ItemsEntry\022\024" + + "\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_token\030" + + "\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001" + + "\001\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\004\210\001\001\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005valu" + + "e\030\002 \001(\0132-.google.cloud.compute.v1.VpnTun" + + "nelsScopedList:\0028\001B\005\n\003_idB\007\n\005_kindB\022\n\020_n" + + "ext_page_tokenB\014\n\n_self_linkB\n\n\010_warning" + + "\"\243\002\n\rVpnTunnelList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0224\n\005" + + "items\030\300\317\367/ \003(\0132\".google.cloud.compute.v1" + + ".VpnTunnel\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215" + + "\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .goog" + + "le.cloud.compute.v1.WarningH\004\210\001\001B\005\n\003_idB" + + "\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_li" + + "nkB\n\n\010_warning\"\231\001\n\024VpnTunnelsScopedList\022" + + ":\n\013vpn_tunnels\030\300\361\372M \003(\0132\".google.cloud.c" + + "ompute.v1.VpnTunnel\0229\n\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n\010_warning\"\214\001\n\020WafExpressionSet\022\022\n\007alias" + + "es\030\376\235\365K \003(\t\022K\n\013expressions\030\333\201\333S \003(\01323.go" + + "ogle.cloud.compute.v1.WafExpressionSetEx" + + "pression\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001B\005\n\003_id\"b\n\032Waf" + + "ExpressionSetExpression\022\020\n\002id\030\233\032 \001(\tH\000\210\001" + + "\001\022\033\n\013sensitivity\030\237\275\220\r \001(\005H\001\210\001\001B\005\n\003_idB\016\n" + + "\014_sensitivity\"P\n\032WaitGlobalOperationRequ" + + "est\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\"h\n\032WaitRegionOperationRe" + + "quest\022\031\n\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A" + + "\002\"d\n\030WaitZoneOperationRequest\022\031\n\toperati" + + "on\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A" + + "\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\375\010\n\007Warning\022\024\n\004c" + + "ode\030\355\333\272\001 \001(\tH\000\210\001\001\022.\n\004data\030\252\337\273\001 \003(\0132\035.goo" + + "gle.cloud.compute.v1.Data\022\030\n\007message\030\207\200\254" + + "\307\001 \001(\tH\001\210\001\001\"\374\007\n\004Code\022\022\n\016UNDEFINED_CODE\020\000" + + "\022\025\n\016CLEANUP_FAILED\020\330\214\326G\022 \n\030DEPRECATED_RE" + + "SOURCE_USED\020\302\337\353\272\001\022\034\n\024DEPRECATED_TYPE_USE" + + "D\020\226\244\236\245\001\022(\n DISK_SIZE_LARGER_THAN_IMAGE_S" + + "IZE\020\227\201\225\260\001\022\036\n\026EXPERIMENTAL_TYPE_USED\020\213\216\301\327" + + "\001\022\033\n\024EXTERNAL_API_WARNING\020\303\277\332S\022\035\n\025FIELD_" + + "VALUE_OVERRIDEN\020\257\266\231\235\001\022#\n\033INJECTED_KERNEL" + + "S_DEPRECATED\020\213\331\202\307\001\0224\n,INVALID_HEALTH_CHE" + + "CK_FOR_DYNAMIC_WIEGHTED_LB\020\316\233\274\277\001\022 \n\030LARG" + + "E_DEPLOYMENT_WARNING\020\246\347\310\345\001\022!\n\032LIST_OVERH" + + "EAD_QUOTA_EXCEED\020\305\260\332\026\022\037\n\027MISSING_TYPE_DE" + + "PENDENCY\020\367\370\242\244\001\022%\n\035NEXT_HOP_ADDRESS_NOT_A" + + "SSIGNED\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CANNOT_IP_FORW" + + "ARD\020\347\352\347\266\001\022.\n\'NEXT_HOP_INSTANCE_HAS_NO_IP" + + "V6_INTERFACE\020\222\350\374E\022#\n\033NEXT_HOP_INSTANCE_N" + + "OT_FOUND\020\316\314\257\335\001\022\'\n NEXT_HOP_INSTANCE_NOT_" + + "ON_NETWORK\020\302\350\235t\022\034\n\024NEXT_HOP_NOT_RUNNING\020" + + "\261\317\360\306\001\022\031\n\022NOT_CRITICAL_ERROR\020\324\250\2672\022\031\n\022NO_R" + + "ESULTS_ON_PAGE\020\210\246\251\016\022\026\n\017PARTIAL_SUCCESS\020\205" + + "\256\207\023\022\036\n\026QUOTA_INFO_UNAVAILABLE\020\246\322\214\221\001\022\035\n\026R" + + "EQUIRED_TOS_AGREEMENT\020\203\316\344\001\0221\n)RESOURCE_I" + + "N_USE_BY_OTHER_RESOURCE_WARNING\020\301\364\355\354\001\022\033\n" + + "\024RESOURCE_NOT_DELETED\020\274\267\262P\022!\n\031SCHEMA_VAL" + + "IDATION_IGNORED\020\312\324\237\203\001\022(\n!SINGLE_INSTANCE" + + "_PROPERTY_TEMPLATE\020\321\211\370\177\022\035\n\025UNDECLARED_PR" + + "OPERTIES\020\237\206\233\272\001\022\022\n\013UNREACHABLE\020\264\275\255\006B\007\n\005_c" + + "odeB\n\n\010_message\"\376\010\n\010Warnings\022\024\n\004code\030\355\333\272" + + "\001 \001(\tH\000\210\001\001\022.\n\004data\030\252\337\273\001 \003(\0132\035.google.clo" + + "ud.compute.v1.Data\022\030\n\007message\030\207\200\254\307\001 \001(\tH" + + "\001\210\001\001\"\374\007\n\004Code\022\022\n\016UNDEFINED_CODE\020\000\022\025\n\016CLE" + + "ANUP_FAILED\020\330\214\326G\022 \n\030DEPRECATED_RESOURCE_" + + "USED\020\302\337\353\272\001\022\034\n\024DEPRECATED_TYPE_USED\020\226\244\236\245\001" + + "\022(\n DISK_SIZE_LARGER_THAN_IMAGE_SIZE\020\227\201\225" + + "\260\001\022\036\n\026EXPERIMENTAL_TYPE_USED\020\213\216\301\327\001\022\033\n\024EX" + + "TERNAL_API_WARNING\020\303\277\332S\022\035\n\025FIELD_VALUE_O" + + "VERRIDEN\020\257\266\231\235\001\022#\n\033INJECTED_KERNELS_DEPRE" + + "CATED\020\213\331\202\307\001\0224\n,INVALID_HEALTH_CHECK_FOR_" + + "DYNAMIC_WIEGHTED_LB\020\316\233\274\277\001\022 \n\030LARGE_DEPLO" + + "YMENT_WARNING\020\246\347\310\345\001\022!\n\032LIST_OVERHEAD_QUO" + + "TA_EXCEED\020\305\260\332\026\022\037\n\027MISSING_TYPE_DEPENDENC" + + "Y\020\367\370\242\244\001\022%\n\035NEXT_HOP_ADDRESS_NOT_ASSIGNED" + + "\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CANNOT_IP_FORWARD\020\347\352\347" + + "\266\001\022.\n\'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTE" + + "RFACE\020\222\350\374E\022#\n\033NEXT_HOP_INSTANCE_NOT_FOUN" + + "D\020\316\314\257\335\001\022\'\n NEXT_HOP_INSTANCE_NOT_ON_NETW" + + "ORK\020\302\350\235t\022\034\n\024NEXT_HOP_NOT_RUNNING\020\261\317\360\306\001\022\031" + + "\n\022NOT_CRITICAL_ERROR\020\324\250\2672\022\031\n\022NO_RESULTS_" + + "ON_PAGE\020\210\246\251\016\022\026\n\017PARTIAL_SUCCESS\020\205\256\207\023\022\036\n\026" + + "QUOTA_INFO_UNAVAILABLE\020\246\322\214\221\001\022\035\n\026REQUIRED" + + "_TOS_AGREEMENT\020\203\316\344\001\0221\n)RESOURCE_IN_USE_B" + + "Y_OTHER_RESOURCE_WARNING\020\301\364\355\354\001\022\033\n\024RESOUR" + + "CE_NOT_DELETED\020\274\267\262P\022!\n\031SCHEMA_VALIDATION" + + "_IGNORED\020\312\324\237\203\001\022(\n!SINGLE_INSTANCE_PROPER" + + "TY_TEMPLATE\020\321\211\370\177\022\035\n\025UNDECLARED_PROPERTIE" + + "S\020\237\206\233\272\001\022\022\n\013UNREACHABLE\020\264\275\255\006B\007\n\005_codeB\n\n\010" + + "_message\"\317\001\n\026WeightedBackendService\022 \n\017b" + + "ackend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001\022I\n\rheader_" + + "action\030\250\240\270\234\001 \001(\0132).google.cloud.compute." + + "v1.HttpHeaderActionH\001\210\001\001\022\027\n\006weight\030\370\204\305\206\001" + + " \001(\rH\002\210\001\001B\022\n\020_backend_serviceB\020\n\016_header" + + "_actionB\t\n\007_weight\"\240\001\n&WithdrawPublicAdv" + + "ertisedPrefixeRequest\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022(\n\030public_advertised_pr" + + "efix\030\236\367\3110 \001(\tB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(" + + "\tH\000\210\001\001B\r\n\013_request_id\"\277\001\n%WithdrawPublic" + + "DelegatedPrefixeRequest\022!\n\007project\030\231\226\301l " + + "\001(\tB\r\340A\002\362G\007project\022\'\n\027public_delegated_p" + + "refix\030\350\334\261a \001(\tB\003\340A\002\022\037\n\006region\030\364\315\240B \001(\tB\014" + + "\340A\002\362G\006region\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001" + + "B\r\n\013_request_id\"\237\002\n\013XpnHostList\022\020\n\002id\030\233\032" + + " \001(\tH\000\210\001\001\0222\n\005items\030\300\317\367/ \003(\0132 .google.clo" + + "ud.compute.v1.Project\022\024\n\004kind\030\224\367\310\001 \001(\tH\001" + + "\210\001\001\022\037\n\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\t" + + "self_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n\007warning\030\234\337\226\030" + + " \001(\0132 .google.cloud.compute.v1.WarningH\004" + + "\210\001\001B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB", + "\014\n\n_self_linkB\n\n\010_warning\"\232\001\n\rXpnResourc" + + "eId\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001" + + "\210\001\001\"Q\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\017\n\007PROJE" + + "CT\020\371\255\357\302\001\022$\n\035XPN_RESOURCE_TYPE_UNSPECIFIE" + + "D\020\372\255\245HB\005\n\003_idB\007\n\005_type\"\227\004\n\004Zone\022\"\n\027avail" + + "able_cpu_platforms\030\223\363\331S \003(\t\022\"\n\022creation_" + + "timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\ndeprecated\030\263\313" + + "\321\365\001 \001(\0132*.google.cloud.compute.v1.Deprec" + + "ationStatusH\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(" + + "\tH\002\210\001\001\022\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(" + + "\tH\004\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n\006region\030\364" + + "\315\240B \001(\tH\006\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001" + + "\022\026\n\006status\030\362\237\267V \001(\tH\010\210\001\001\022\034\n\014supports_pzs" + + "\030\356\366\205( \001(\010H\t\210\001\001\"4\n\006Status\022\024\n\020UNDEFINED_ST" + + "ATUS\020\000\022\013\n\004DOWN\020\242\271\200\001\022\007\n\002UP\020\233\025B\025\n\023_creatio" + + "n_timestampB\r\n\013_deprecatedB\016\n\014_descripti" + + "onB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\014" + + "\n\n_self_linkB\t\n\007_statusB\017\n\r_supports_pzs" + + "\"\231\002\n\010ZoneList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022/\n\005items" + + "\030\300\317\367/ \003(\0132\035.google.cloud.compute.v1.Zone" + + "\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_toke" + + "n\030\225\272\206& \001(\tH\002\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\003" + + "\210\001\001\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" + + "ompute.v1.WarningH\004\210\001\001B\005\n\003_idB\007\n\005_kindB\022" + + "\n\020_next_page_tokenB\014\n\n_self_linkB\n\n\010_war" + + "ning\"\315\001\n\024ZoneSetLabelsRequest\022!\n\021label_f" + + "ingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n\006labels\030\377\277\301\356\001" + + " \003(\01329.google.cloud.compute.v1.ZoneSetLa" + + "belsRequest.LabelsEntry\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\024\n\022_label" + + "_fingerprint\"\261\001\n\024ZoneSetPolicyRequest\0226\n" + + "\010bindings\030\216\305\244\300\001 \003(\0132 .google.cloud.compu" + + "te.v1.Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n\006p" + + "olicy\030\262\312\266+ \001(\0132\037.google.cloud.compute.v1" + + ".PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007_policy2\263\006\n\020Acc" + + "eleratorTypes\022\326\001\n\016AggregatedList\022>.googl" + + "e.cloud.compute.v1.AggregatedListAcceler" + + "atorTypesRequest\0326.google.cloud.compute." + + "v1.AcceleratorTypeAggregatedList\"L\332A\007pro" + + "ject\202\323\344\223\002<\022:/compute/v1/projects/{projec" + + "t}/aggregated/acceleratorTypes\022\334\001\n\003Get\0222" + + ".google.cloud.compute.v1.GetAcceleratorT" + + "ypeRequest\032(.google.cloud.compute.v1.Acc" + + "eleratorType\"w\332A\035project,zone,accelerato" + + "r_type\202\323\344\223\002Q\022O/compute/v1/projects/{proj" + + "ect}/zones/{zone}/acceleratorTypes/{acce" + + "lerator_type}\022\277\001\n\004List\0224.google.cloud.co" + + "mpute.v1.ListAcceleratorTypesRequest\032,.g" + + "oogle.cloud.compute.v1.AcceleratorTypeLi" + + "st\"S\332A\014project,zone\202\323\344\223\002>\022\022project,zone,disk,disks_add_resource_po" + + "licies_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002|\"L/compute/v1/projects/{project}/z" + + "ones/{zone}/disks/{disk}/addResourcePoli" + + "cies:,disks_add_resource_policies_reques" + + "t_resource\022\265\001\n\016AggregatedList\0223.google.c" + + "loud.compute.v1.AggregatedListDisksReque" + + "st\032+.google.cloud.compute.v1.DiskAggrega" + + "tedList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/p" + + "rojects/{project}/aggregated/disks\022\216\002\n\nB" + + "ulkInsert\022..google.cloud.compute.v1.Bulk" + + "InsertDiskRequest\032\".google.cloud.compute" + + ".v1.Operation\"\253\001\332A/project,zone,bulk_ins" + + "ert_disk_resource_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002b\"project,zone,di" - + "sk,disks_add_resource_policies_request_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002|\"L/compute" - + "/v1/projects/{project}/zones/{zone}/disk" - + "s/{disk}/addResourcePolicies:,disks_add_" - + "resource_policies_request_resource\022\265\001\n\016A" - + "ggregatedList\0223.google.cloud.compute.v1." - + "AggregatedListDisksRequest\032+.google.clou" - + "d.compute.v1.DiskAggregatedList\"A\332A\007proj" - + "ect\202\323\344\223\0021\022//compute/v1/projects/{project" - + "}/aggregated/disks\022\216\002\n\nBulkInsert\022..goog" - + "le.cloud.compute.v1.BulkInsertDiskReques" - + "t\032\".google.cloud.compute.v1.Operation\"\253\001" - + "\332A/project,zone,bulk_insert_disk_resourc" - + "e_resource\212N\016ZoneOperations\202\323\344\223\002b\".google.cloud.compute.v1." + + "ListAssociationsFirewallPolicyRequest\032A." + + "google.cloud.compute.v1.FirewallPolicies" + + "ListAssociationsResponse\"I\332A\000\202\323\344\223\002@\022>/co" + + "mpute/v1/locations/global/firewallPolici" + + "es/listAssociations\022\350\001\n\004Move\0222.google.cl" + + "oud.compute.v1.MoveFirewallPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\207\001\332" + + "A\031firewall_policy,parent_id\212N\034GlobalOrga" + + "nizationOperations\202\323\344\223\002F\"D/compute/v1/lo" + + "cations/global/firewallPolicies/{firewal" + + "l_policy}/move\022\216\002\n\005Patch\0223.google.cloud." + + "compute.v1.PatchFirewallPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\253\001\332A(f" + + "irewall_policy,firewall_policy_resource\212" + + "N\034GlobalOrganizationOperations\202\323\344\223\002[2?/c" + + "ompute/v1/locations/global/firewallPolic" + + "ies/{firewall_policy}:\030firewall_policy_r" + + "esource\022\252\002\n\tPatchRule\0227.google.cloud.com" + + "pute.v1.PatchRuleFirewallPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\277\001\332A-" + + "firewall_policy,firewall_policy_rule_res" + + "ource\212N\034GlobalOrganizationOperations\202\323\344\223" + + "\002j\"I/compute/v1/locations/global/firewal" + + "lPolicies/{firewall_policy}/patchRule:\035f" + + "irewall_policy_rule_resource\022\205\002\n\021RemoveA" + + "ssociation\022?.google.cloud.compute.v1.Rem" + + "oveAssociationFirewallPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\212\001\332A\017fir" + + "ewall_policy\212N\034GlobalOrganizationOperati" + + "ons\202\323\344\223\002S\"Q/compute/v1/locations/global/" + + "firewallPolicies/{firewall_policy}/remov" + + "eAssociation\022\360\001\n\nRemoveRule\0228.google.clo" + + "ud.compute.v1.RemoveRuleFirewallPolicyRe" + "quest\032\".google.cloud.compute.v1.Operatio" + "n\"\203\001\332A\017firewall_policy\212N\034GlobalOrganizat" + "ionOperations\202\323\344\223\002L\"J/compute/v1/locatio" + "ns/global/firewallPolicies/{firewall_pol" - + "icy}/cloneRules\022\334\001\n\006Delete\0224.google.clou" - + "d.compute.v1.DeleteFirewallPolicyRequest" - + "\032\".google.cloud.compute.v1.Operation\"x\332A" - + "\017firewall_policy\212N\034GlobalOrganizationOpe" - + "rations\202\323\344\223\002A*?/compute/v1/locations/glo" - + "bal/firewallPolicies/{firewall_policy}\022\274" - + "\001\n\003Get\0221.google.cloud.compute.v1.GetFire" - + "wallPolicyRequest\032\'.google.cloud.compute" - + ".v1.FirewallPolicy\"Y\332A\017firewall_policy\202\323" - + "\344\223\002A\022?/compute/v1/locations/global/firew" - + "allPolicies/{firewall_policy}\022\354\001\n\016GetAss" - + "ociation\022<.google.cloud.compute.v1.GetAs" - + "sociationFirewallPolicyRequest\0322.google." - + "cloud.compute.v1.FirewallPolicyAssociati" - + "on\"h\332A\017firewall_policy\202\323\344\223\002P\022N/compute/v" - + "1/locations/global/firewallPolicies/{fir" - + "ewall_policy}/getAssociation\022\305\001\n\014GetIamP" - + "olicy\022:.google.cloud.compute.v1.GetIamPo" - + "licyFirewallPolicyRequest\032\037.google.cloud" - + ".compute.v1.Policy\"X\332A\010resource\202\323\344\223\002G\022E/" - + "compute/v1/locations/global/firewallPoli" - + "cies/{resource}/getIamPolicy\022\320\001\n\007GetRule" - + "\0225.google.cloud.compute.v1.GetRuleFirewa" - + "llPolicyRequest\032+.google.cloud.compute.v" - + "1.FirewallPolicyRule\"a\332A\017firewall_policy" - + "\202\323\344\223\002I\022G/compute/v1/locations/global/fir" - + "ewallPolicies/{firewall_policy}/getRule\022" - + "\370\001\n\006Insert\0224.google.cloud.compute.v1.Ins" - + "ertFirewallPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\223\001\332A\"parent_id,fire" - + "wall_policy_resource\212N\034GlobalOrganizatio" - + "nOperations\202\323\344\223\002I\"-/compute/v1/locations" - + "/global/firewallPolicies:\030firewall_polic" - + "y_resource\022\243\001\n\004List\0224.google.cloud.compu" - + "te.v1.ListFirewallPoliciesRequest\032+.goog" - + "le.cloud.compute.v1.FirewallPolicyList\"8" - + "\332A\000\202\323\344\223\002/\022-/compute/v1/locations/global/" - + "firewallPolicies\022\340\001\n\020ListAssociations\022>." - + "google.cloud.compute.v1.ListAssociations" - + "FirewallPolicyRequest\032A.google.cloud.com" - + "pute.v1.FirewallPoliciesListAssociations" - + "Response\"I\332A\000\202\323\344\223\002@\022>/compute/v1/locatio" - + "ns/global/firewallPolicies/listAssociati" - + "ons\022\350\001\n\004Move\0222.google.cloud.compute.v1.M" - + "oveFirewallPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\207\001\332A\031firewall_polic" - + "y,parent_id\212N\034GlobalOrganizationOperatio" - + "ns\202\323\344\223\002F\"D/compute/v1/locations/global/f" - + "irewallPolicies/{firewall_policy}/move\022\216" - + "\002\n\005Patch\0223.google.cloud.compute.v1.Patch" - + "FirewallPolicyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\253\001\332A(firewall_policy,f" - + "irewall_policy_resource\212N\034GlobalOrganiza" - + "tionOperations\202\323\344\223\002[2?/compute/v1/locati" - + "ons/global/firewallPolicies/{firewall_po" - + "licy}:\030firewall_policy_resource\022\252\002\n\tPatc" - + "hRule\0227.google.cloud.compute.v1.PatchRul" - + "eFirewallPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\277\001\332A-firewall_policy," - + "firewall_policy_rule_resource\212N\034GlobalOr" - + "ganizationOperations\202\323\344\223\002j\"I/compute/v1/" - + "locations/global/firewallPolicies/{firew" - + "all_policy}/patchRule:\035firewall_policy_r" - + "ule_resource\022\205\002\n\021RemoveAssociation\022?.goo" - + "gle.cloud.compute.v1.RemoveAssociationFi" - + "rewallPolicyRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\212\001\332A\017firewall_policy\212N\034G" - + "lobalOrganizationOperations\202\323\344\223\002S\"Q/comp" + + "icy}/removeRule\022\247\002\n\014SetIamPolicy\022:.googl" + + "e.cloud.compute.v1.SetIamPolicyFirewallP" + + "olicyRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"\271\001\332A8resource,global_organization_" + + "set_policy_request_resource\202\323\344\223\002x\"E/comp" + "ute/v1/locations/global/firewallPolicies" - + "/{firewall_policy}/removeAssociation\022\360\001\n" - + "\nRemoveRule\0228.google.cloud.compute.v1.Re" - + "moveRuleFirewallPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\203\001\332A\017firewall_" - + "policy\212N\034GlobalOrganizationOperations\202\323\344" - + "\223\002L\"J/compute/v1/locations/global/firewa" - + "llPolicies/{firewall_policy}/removeRule\022" - + "\247\002\n\014SetIamPolicy\022:.google.cloud.compute." - + "v1.SetIamPolicyFirewallPolicyRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"\271\001\332A8resou" - + "rce,global_organization_set_policy_reque" - + "st_resource\202\323\344\223\002x\"E/compute/v1/locations" - + "/global/firewallPolicies/{resource}/setI" - + "amPolicy:/global_organization_set_policy" - + "_request_resource\022\256\002\n\022TestIamPermissions" - + "\022@.google.cloud.compute.v1.TestIamPermis" - + "sionsFirewallPolicyRequest\0320.google.clou" - + "d.compute.v1.TestPermissionsResponse\"\243\001\332" - + "A*resource,test_permissions_request_reso" - + "urce\202\323\344\223\002p\"K/compute/v1/locations/global" - + "/firewallPolicies/{resource}/testIamPerm" - + "issions:!test_permissions_request_resour" - + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" - + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform2\317" - + "\n\n\tFirewalls\022\306\001\n\006Delete\022..google.cloud.c" - + "ompute.v1.DeleteFirewallRequest\032\".google" - + ".cloud.compute.v1.Operation\"h\332A\020project," - + "firewall\212N\020GlobalOperations\202\323\344\223\002<*:/comp" - + "ute/v1/projects/{project}/global/firewal" - + "ls/{firewall}\022\254\001\n\003Get\022+.google.cloud.com" - + "pute.v1.GetFirewallRequest\032!.google.clou" - + "d.compute.v1.Firewall\"U\332A\020project,firewa" - + "ll\202\323\344\223\002<\022:/compute/v1/projects/{project}" - + "/global/firewalls/{firewall}\022\327\001\n\006Insert\022" - + "..google.cloud.compute.v1.InsertFirewall" + + "/{resource}/setIamPolicy:/global_organiz" + + "ation_set_policy_request_resource\022\256\002\n\022Te" + + "stIamPermissions\022@.google.cloud.compute." + + "v1.TestIamPermissionsFirewallPolicyReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\243\001\332A*resource,test_permissi" + + "ons_request_resource\202\323\344\223\002p\"K/compute/v1/" + + "locations/global/firewallPolicies/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\317\n\n\tFirewalls\022\306\001\n\006Delete\022" + + "..google.cloud.compute.v1.DeleteFirewall" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"y\332A\031project,firewall_resource\212N\020Glob" - + "alOperations\202\323\344\223\002D\"//compute/v1/projects" - + "/{project}/global/firewalls:\021firewall_re" - + "source\022\237\001\n\004List\022-.google.cloud.compute.v" - + "1.ListFirewallsRequest\032%.google.cloud.co" - + "mpute.v1.FirewallList\"A\332A\007project\202\323\344\223\0021\022" - + "//compute/v1/projects/{project}/global/f" - + "irewalls\022\352\001\n\005Patch\022-.google.cloud.comput" - + "e.v1.PatchFirewallRequest\032\".google.cloud" - + ".compute.v1.Operation\"\215\001\332A\"project,firew" - + "all,firewall_resource\212N\020GlobalOperations" - + "\202\323\344\223\002O2:/compute/v1/projects/{project}/g" - + "lobal/firewalls/{firewall}:\021firewall_res" - + "ource\022\354\001\n\006Update\022..google.cloud.compute." - + "v1.UpdateFirewallRequest\032\".google.cloud." - + "compute.v1.Operation\"\215\001\332A\"project,firewa" - + "ll,firewall_resource\212N\020GlobalOperations\202" - + "\323\344\223\002O\032:/compute/v1/projects/{project}/gl" - + "obal/firewalls/{firewall}:\021firewall_reso" - + "urce\032r\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "2\231\021\n\017ForwardingRules\022\323\001\n\016AggregatedList\022" - + "=.google.cloud.compute.v1.AggregatedList" - + "ForwardingRulesRequest\0325.google.cloud.co" - + "mpute.v1.ForwardingRuleAggregatedList\"K\332" - + "A\007project\202\323\344\223\002;\0229/compute/v1/projects/{p" - + "roject}/aggregated/forwardingRules\022\362\001\n\006D" - + "elete\0224.google.cloud.compute.v1.DeleteFo" - + "rwardingRuleRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\215\001\332A\036project,region,forw" - + "arding_rule\212N\020RegionOperations\202\323\344\223\002S*Q/c", - "ompute/v1/projects/{project}/regions/{re" + + "ion\"h\332A\020project,firewall\212N\020GlobalOperati" + + "ons\202\323\344\223\002<*:/compute/v1/projects/{project" + + "}/global/firewalls/{firewall}\022\254\001\n\003Get\022+." + + "google.cloud.compute.v1.GetFirewallReque" + + "st\032!.google.cloud.compute.v1.Firewall\"U\332" + + "A\020project,firewall\202\323\344\223\002<\022:/compute/v1/pr" + + "ojects/{project}/global/firewalls/{firew" + + "all}\022\327\001\n\006Insert\022..google.cloud.compute.v" + + "1.InsertFirewallRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"y\332A\031project,firewall" + + "_resource\212N\020GlobalOperations\202\323\344\223\002D\"//com" + + "pute/v1/projects/{project}/global/firewa" + + "lls:\021firewall_resource\022\237\001\n\004List\022-.google" + + ".cloud.compute.v1.ListFirewallsRequest\032%" + + ".google.cloud.compute.v1.FirewallList\"A\332" + + "A\007project\202\323\344\223\0021\022//compute/v1/projects/{p" + + "roject}/global/firewalls\022\352\001\n\005Patch\022-.goo" + + "gle.cloud.compute.v1.PatchFirewallReques" + + "t\032\".google.cloud.compute.v1.Operation\"\215\001" + + "\332A\"project,firewall,firewall_resource\212N\020" + + "GlobalOperations\202\323\344\223\002O2:/compute/v1/proj" + + "ects/{project}/global/firewalls/{firewal" + + "l}:\021firewall_resource\022\354\001\n\006Update\022..googl" + + "e.cloud.compute.v1.UpdateFirewallRequest" + + "\032\".google.cloud.compute.v1.Operation\"\215\001\332" + + "A\"project,firewall,firewall_resource\212N\020G" + + "lobalOperations\202\323\344\223\002O\032:/compute/v1/proje" + + "cts/{project}/global/firewalls/{firewall" + + "}:\021firewall_resource\032r\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform2\231\021\n\017ForwardingRules\022\323\001\n" + + "\016AggregatedList\022=.google.cloud.compute.v" + + "1.AggregatedListForwardingRulesRequest\0325" + + ".google.cloud.compute.v1.ForwardingRuleA" + + "ggregatedList\"K\332A\007project\202\323\344\223\002;\0229/comput" + + "e/v1/projects/{project}/aggregated/forwa" + + "rdingRules\022\362\001\n\006Delete\0224.google.cloud.com" + + "pute.v1.DeleteForwardingRuleRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\215\001\332A\036pro" + + "ject,region,forwarding_rule\212N\020RegionOper" + + "ations\202\323\344\223\002S*Q/compute/v1/projects/{proj" + + "ect}/regions/{region}/forwardingRules/{f" + + "orwarding_rule}\022\335\001\n\003Get\0221.google.cloud.c" + + "ompute.v1.GetForwardingRuleRequest\032\'.goo" + + "gle.cloud.compute.v1.ForwardingRule\"z\332A\036" + + "project,region,forwarding_rule\202\323\344\223\002S\022Q/c" + + "ompute/v1/projects/{project}/regions/{re" + "gion}/forwardingRules/{forwarding_rule}\022" - + "\335\001\n\003Get\0221.google.cloud.compute.v1.GetFor" - + "wardingRuleRequest\032\'.google.cloud.comput" - + "e.v1.ForwardingRule\"z\332A\036project,region,f" - + "orwarding_rule\202\323\344\223\002S\022Q/compute/v1/projec" - + "ts/{project}/regions/{region}/forwarding" - + "Rules/{forwarding_rule}\022\203\002\n\006Insert\0224.goo" - + "gle.cloud.compute.v1.InsertForwardingRul" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\236\001\332A\'project,region,forwarding_rule" - + "_resource\212N\020RegionOperations\202\323\344\223\002[\"?/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/forwardingRules:\030forwarding_rule_res" - + "ource\022\302\001\n\004List\0223.google.cloud.compute.v1" - + ".ListForwardingRulesRequest\032+.google.clo" - + "ud.compute.v1.ForwardingRuleList\"X\332A\016pro" - + "ject,region\202\323\344\223\002A\022?/compute/v1/projects/" - + "{project}/regions/{region}/forwardingRul" - + "es\022\243\002\n\005Patch\0223.google.cloud.compute.v1.P" - + "atchForwardingRuleRequest\032\".google.cloud" - + ".compute.v1.Operation\"\300\001\332A7project,regio" - + "n,forwarding_rule,forwarding_rule_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002m2Q/compute/v1" - + "/projects/{project}/regions/{region}/for" - + "wardingRules/{forwarding_rule}:\030forwardi" - + "ng_rule_resource\022\273\002\n\tSetLabels\0227.google." - + "cloud.compute.v1.SetLabelsForwardingRule" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\320\001\332A:project,region,resource,region_" - + "set_labels_request_resource\212N\020RegionOper" - + "ations\202\323\344\223\002z\"T/compute/v1/projects/{proj" - + "ect}/regions/{region}/forwardingRules/{r" - + "esource}/setLabels:\"region_set_labels_re" - + "quest_resource\022\267\002\n\tSetTarget\0227.google.cl" - + "oud.compute.v1.SetTargetForwardingRuleRe" + + "\203\002\n\006Insert\0224.google.cloud.compute.v1.Ins" + + "ertForwardingRuleRequest\032\".google.cloud." + + "compute.v1.Operation\"\236\001\332A\'project,region" + + ",forwarding_rule_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002[\"?/compute/v1/projects/{projec" + + "t}/regions/{region}/forwardingRules:\030for" + + "warding_rule_resource\022\302\001\n\004List\0223.google." + + "cloud.compute.v1.ListForwardingRulesRequ" + + "est\032+.google.cloud.compute.v1.Forwarding" + + "RuleList\"X\332A\016project,region\202\323\344\223\002A\022?/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/forwardingRules\022\243\002\n\005Patch\0223.google.cl" + + "oud.compute.v1.PatchForwardingRuleReques" + + "t\032\".google.cloud.compute.v1.Operation\"\300\001" + + "\332A7project,region,forwarding_rule,forwar" + + "ding_rule_resource\212N\020RegionOperations\202\323\344" + + "\223\002m2Q/compute/v1/projects/{project}/regi" + + "ons/{region}/forwardingRules/{forwarding" + + "_rule}:\030forwarding_rule_resource\022\273\002\n\tSet" + + "Labels\0227.google.cloud.compute.v1.SetLabe" + + "lsForwardingRuleRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\320\001\332A:project,region," + + "resource,region_set_labels_request_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002z\"T/compute/v" + + "1/projects/{project}/regions/{region}/fo" + + "rwardingRules/{resource}/setLabels:\"regi" + + "on_set_labels_request_resource\022\267\002\n\tSetTa" + + "rget\0227.google.cloud.compute.v1.SetTarget" + + "ForwardingRuleRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\314\001\332A8project,region,fo" + + "rwarding_rule,target_reference_resource\212" + + "N\020RegionOperations\202\323\344\223\002x\"[/compute/v1/pr" + + "ojects/{project}/regions/{region}/forwar" + + "dingRules/{forwarding_rule}/setTarget:\031t" + + "arget_reference_resource\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\311\013\n\017GlobalAddresses" + + "\022\311\001\n\006Delete\0223.google.cloud.compute.v1.De" + + "leteGlobalAddressRequest\032\".google.cloud." + + "compute.v1.Operation\"f\332A\017project,address" + + "\212N\020GlobalOperations\202\323\344\223\002;*9/compute/v1/p" + + "rojects/{project}/global/addresses/{addr" + + "ess}\022\256\001\n\003Get\0220.google.cloud.compute.v1.G" + + "etGlobalAddressRequest\032 .google.cloud.co" + + "mpute.v1.Address\"S\332A\017project,address\202\323\344\223" + + "\002;\0229/compute/v1/projects/{project}/globa" + + "l/addresses/{address}\022\332\001\n\006Insert\0223.googl" + + "e.cloud.compute.v1.InsertGlobalAddressRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\314\001\332A8project,region,forwarding_rule,ta" - + "rget_reference_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002x\"[/compute/v1/projects/{project}" - + "/regions/{region}/forwardingRules/{forwa" - + "rding_rule}/setTarget:\031target_reference_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\311\013\n\017GlobalAddresses\022\311\001\n\006Delete\0223.go" - + "ogle.cloud.compute.v1.DeleteGlobalAddres" - + "sRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"f\332A\017project,address\212N\020GlobalOperati" - + "ons\202\323\344\223\002;*9/compute/v1/projects/{project" - + "}/global/addresses/{address}\022\256\001\n\003Get\0220.g" - + "oogle.cloud.compute.v1.GetGlobalAddressR" - + "equest\032 .google.cloud.compute.v1.Address" - + "\"S\332A\017project,address\202\323\344\223\002;\0229/compute/v1/" - + "projects/{project}/global/addresses/{add" - + "ress}\022\332\001\n\006Insert\0223.google.cloud.compute." - + "v1.InsertGlobalAddressRequest\032\".google.c" - + "loud.compute.v1.Operation\"w\332A\030project,ad" - + "dress_resource\212N\020GlobalOperations\202\323\344\223\002C\"" - + "//compute/v1/projects/{project}/global/a" - + "ddresses:\020address_resource\022\244\001\n\004List\0223.go" - + "ogle.cloud.compute.v1.ListGlobalAddresse" - + "sRequest\032$.google.cloud.compute.v1.Addre" - + "ssList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/pr" - + "ojects/{project}/global/addresses\022\232\002\n\004Mo" - + "ve\0221.google.cloud.compute.v1.MoveGlobalA" - + "ddressRequest\032\".google.cloud.compute.v1." - + "Operation\"\272\001\332A6project,address,global_ad" - + "dresses_move_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002h\">/compute/v1/projects/{pr" - + "oject}/global/addresses/{address}/move:&" - + "global_addresses_move_request_resource\022\243" - + "\002\n\tSetLabels\0226.google.cloud.compute.v1.S" - + "etLabelsGlobalAddressRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\271\001\332A3project,re" - + "source,global_set_labels_request_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002j\"D/compute/v1/" - + "projects/{project}/global/addresses/{res" - + "ource}/setLabels:\"global_set_labels_requ" - + "est_resource\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\373\016\n\025GlobalForwardingRules\022\346\001\n\006D" - + "elete\022:.google.cloud.compute.v1.DeleteGl" - + "obalForwardingRuleRequest\032\".google.cloud" - + ".compute.v1.Operation\"|\332A\027project,forwar" - + "ding_rule\212N\020GlobalOperations\202\323\344\223\002I*G/com" - + "pute/v1/projects/{project}/global/forwar" - + "dingRules/{forwarding_rule}\022\322\001\n\003Get\0227.go" - + "ogle.cloud.compute.v1.GetGlobalForwardin" - + "gRuleRequest\032\'.google.cloud.compute.v1.F" - + "orwardingRule\"i\332A\027project,forwarding_rul" - + "e\202\323\344\223\002I\022G/compute/v1/projects/{project}/" - + "global/forwardingRules/{forwarding_rule}" - + "\022\370\001\n\006Insert\022:.google.cloud.compute.v1.In" - + "sertGlobalForwardingRuleRequest\032\".google" - + ".cloud.compute.v1.Operation\"\215\001\332A project" - + ",forwarding_rule_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002Q\"5/compute/v1/projects/{projec" - + "t}/global/forwardingRules:\030forwarding_ru" - + "le_resource\022\267\001\n\004List\0229.google.cloud.comp" - + "ute.v1.ListGlobalForwardingRulesRequest\032" - + "+.google.cloud.compute.v1.ForwardingRule" - + "List\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proj" - + "ects/{project}/global/forwardingRules\022\230\002" - + "\n\005Patch\0229.google.cloud.compute.v1.PatchG" - + "lobalForwardingRuleRequest\032\".google.clou" - + "d.compute.v1.Operation\"\257\001\332A0project,forw" - + "arding_rule,forwarding_rule_resource\212N\020G" - + "lobalOperations\202\323\344\223\002c2G/compute/v1/proje" - + "cts/{project}/global/forwardingRules/{fo" - + "rwarding_rule}:\030forwarding_rule_resource" - + "\022\260\002\n\tSetLabels\022=.google.cloud.compute.v1" - + ".SetLabelsGlobalForwardingRuleRequest\032\"." - + "google.cloud.compute.v1.Operation\"\277\001\332A3p" - + "roject,resource,global_set_labels_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002p\"J/co" - + "mpute/v1/projects/{project}/global/forwa" - + "rdingRules/{resource}/setLabels:\"global_" - + "set_labels_request_resource\022\254\002\n\tSetTarge" - + "t\022=.google.cloud.compute.v1.SetTargetGlo" - + "balForwardingRuleRequest\032\".google.cloud." - + "compute.v1.Operation\"\273\001\332A1project,forwar" - + "ding_rule,target_reference_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002n\"Q/compute/v1/projec" - + "ts/{project}/global/forwardingRules/{for" - + "warding_rule}/setTarget:\031target_referenc" - + "e_resource\032r\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\254\022\n\033GlobalNetworkEndpointGroups\022\274" - + "\003\n\026AttachNetworkEndpoints\022P.google.cloud" - + ".compute.v1.AttachNetworkEndpointsGlobal" - + "NetworkEndpointGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\253\002\332A_project,net" - + "work_endpoint_group,global_network_endpo" - + "int_groups_attach_endpoints_request_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/compute" - + "/v1/projects/{project}/global/networkEnd" - + "pointGroups/{network_endpoint_group}/att" - + "achNetworkEndpoints:@global_network_endp" - + "oint_groups_attach_endpoints_request_res" - + "ource\022\201\002\n\006Delete\022@.google.cloud.compute." - + "v1.DeleteGlobalNetworkEndpointGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\220" - + "\001\332A\036project,network_endpoint_group\212N\020Glo" - + "balOperations\202\323\344\223\002V*T/compute/v1/project" - + "s/{project}/global/networkEndpointGroups" - + "/{network_endpoint_group}\022\274\003\n\026DetachNetw" - + "orkEndpoints\022P.google.cloud.compute.v1.D" - + "etachNetworkEndpointsGlobalNetworkEndpoi" - + "ntGroupRequest\032\".google.cloud.compute.v1" - + ".Operation\"\253\002\332A_project,network_endpoint" - + "_group,global_network_endpoint_groups_de" - + "tach_endpoints_request_resource\212N\020Global" - + "Operations\202\323\344\223\002\257\001\"k/compute/v1/projects/" - + "{project}/global/networkEndpointGroups/{" - + "network_endpoint_group}/detachNetworkEnd" - + "points:@global_network_endpoint_groups_d" - + "etach_endpoints_request_resource\022\362\001\n\003Get" - + "\022=.google.cloud.compute.v1.GetGlobalNetw" - + "orkEndpointGroupRequest\032-.google.cloud.c" - + "ompute.v1.NetworkEndpointGroup\"}\332A\036proje" - + "ct,network_endpoint_group\202\323\344\223\002V\022T/comput" - + "e/v1/projects/{project}/global/networkEn" - + "dpointGroups/{network_endpoint_group}\022\222\002" - + "\n\006Insert\022@.google.cloud.compute.v1.Inser" - + "tGlobalNetworkEndpointGroupRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\241\001\332A\'proj" - + "ect,network_endpoint_group_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002^\";/compute/v1/projec" - + "ts/{project}/global/networkEndpointGroup" - + "s:\037network_endpoint_group_resource\022\311\001\n\004L" - + "ist\022?.google.cloud.compute.v1.ListGlobal" - + "NetworkEndpointGroupsRequest\0321.google.cl" - + "oud.compute.v1.NetworkEndpointGroupList\"" - + "M\332A\007project\202\323\344\223\002=\022;/compute/v1/projects/" - + "{project}/global/networkEndpointGroups\022\300" - + "\002\n\024ListNetworkEndpoints\022O.google.cloud.c" - + "ompute.v1.ListNetworkEndpointsGlobalNetw" - + "orkEndpointGroupsRequest\032B.google.cloud." - + "compute.v1.NetworkEndpointGroupsListNetw" - + "orkEndpoints\"\222\001\332A\036project,network_endpoi" - + "nt_group\202\323\344\223\002k\"i/compute/v1/projects/{pr" - + "oject}/global/networkEndpointGroups/{net" - + "work_endpoint_group}/listNetworkEndpoint" - + "s\032r\312A\026compute.googleapis.com\322AVhttps://w" - + "ww.googleapis.com/auth/compute,https://w" - + "ww.googleapis.com/auth/cloud-platform2\320\010" - + "\n\020GlobalOperations\022\312\001\n\016AggregatedList\022>." - + "google.cloud.compute.v1.AggregatedListGl" - + "obalOperationsRequest\0320.google.cloud.com" - + "pute.v1.OperationAggregatedList\"F\332A\007proj" - + "ect\202\323\344\223\0026\0224/compute/v1/projects/{project" - + "}/aggregated/operations\022\321\001\n\006Delete\0225.goo" - + "gle.cloud.compute.v1.DeleteGlobalOperati" - + "onRequest\0326.google.cloud.compute.v1.Dele" - + "teGlobalOperationResponse\"X\332A\021project,op" - + "eration\202\323\344\223\002>*\022/compute" + + "/v1/projects/{project}/global/addresses/" + + "{address}/move:&global_addresses_move_re" + + "quest_resource\022\243\002\n\tSetLabels\0226.google.cl" + + "oud.compute.v1.SetLabelsGlobalAddressReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\271\001\332A3project,resource,global_set_labels" + + "_request_resource\212N\020GlobalOperations\202\323\344\223" + + "\002j\"D/compute/v1/projects/{project}/globa" + + "l/addresses/{resource}/setLabels:\"global" + + "_set_labels_request_resource\032r\312A\026compute" + ".googleapis.com\322AVhttps://www.googleapis" + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\314\005\n\034GlobalOrgan" - + "izationOperations\022\330\001\n\006Delete\022A.google.cl" - + "oud.compute.v1.DeleteGlobalOrganizationO" - + "perationRequest\032B.google.cloud.compute.v" - + "1.DeleteGlobalOrganizationOperationRespo" - + "nse\"G\332A\toperation\202\323\344\223\0025*3/compute/v1/loc" - + "ations/global/operations/{operation}\022\265\001\n" - + "\003Get\022>.google.cloud.compute.v1.GetGlobal" - + "OrganizationOperationRequest\032\".google.cl" - + "oud.compute.v1.Operation\"J\332A\toperation\220N" - + "\001\202\323\344\223\0025\0223/compute/v1/locations/global/op" - + "erations/{operation}\022\244\001\n\004List\022@.google.c" - + "loud.compute.v1.ListGlobalOrganizationOp" - + "erationsRequest\032&.google.cloud.compute.v" - + "1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/compute/v1/" - + "locations/global/operations\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\321\013\n\035GlobalPublic" - + "DelegatedPrefixes\022\207\002\n\006Delete\022B.google.cl" - + "oud.compute.v1.DeleteGlobalPublicDelegat" - + "edPrefixeRequest\032\".google.cloud.compute." - + "v1.Operation\"\224\001\332A\037project,public_delegat" - + "ed_prefix\212N\020GlobalOperations\202\323\344\223\002Y*W/com" - + "pute/v1/projects/{project}/global/public" - + "DelegatedPrefixes/{public_delegated_pref" - + "ix}\022\372\001\n\003Get\022?.google.cloud.compute.v1.Ge" - + "tGlobalPublicDelegatedPrefixeRequest\032..g" - + "oogle.cloud.compute.v1.PublicDelegatedPr" - + "efix\"\201\001\332A\037project,public_delegated_prefi" - + "x\202\323\344\223\002Y\022W/compute/v1/projects/{project}/" - + "global/publicDelegatedPrefixes/{public_d" - + "elegated_prefix}\022\230\002\n\006Insert\022B.google.clo" - + "ud.compute.v1.InsertGlobalPublicDelegate" - + "dPrefixeRequest\032\".google.cloud.compute.v" - + "1.Operation\"\245\001\332A(project,public_delegate" - + "d_prefix_resource\212N\020GlobalOperations\202\323\344\223" - + "\002a\"=/compute/v1/projects/{project}/globa" - + "l/publicDelegatedPrefixes: public_delega" - + "ted_prefix_resource\022\316\001\n\004List\022A.google.cl" - + "oud.compute.v1.ListGlobalPublicDelegated" - + "PrefixesRequest\0322.google.cloud.compute.v" - + "1.PublicDelegatedPrefixList\"O\332A\007project\202" - + "\323\344\223\002?\022=/compute/v1/projects/{project}/gl" - + "obal/publicDelegatedPrefixes\022\310\002\n\005Patch\022A" - + ".google.cloud.compute.v1.PatchGlobalPubl" - + "icDelegatedPrefixeRequest\032\".google.cloud" - + ".compute.v1.Operation\"\327\001\332A@project,publi" - + "c_delegated_prefix,public_delegated_pref" - + "ix_resource\212N\020GlobalOperations\202\323\344\223\002{2W/c" - + "ompute/v1/projects/{project}/global/publ" - + "icDelegatedPrefixes/{public_delegated_pr" - + "efix}: public_delegated_prefix_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\203\r\n\014" - + "HealthChecks\022\313\001\n\016AggregatedList\022:.google" - + ".cloud.compute.v1.AggregatedListHealthCh" - + "ecksRequest\0323.google.cloud.compute.v1.He" - + "althChecksAggregatedList\"H\332A\007project\202\323\344\223" - + "\0028\0226/compute/v1/projects/{project}/aggre" - + "gated/healthChecks\022\324\001\n\006Delete\0221.google.c" - + "loud.compute.v1.DeleteHealthCheckRequest" - + "\032\".google.cloud.compute.v1.Operation\"s\332A" - + "\024project,health_check\212N\020GlobalOperations" - + "\202\323\344\223\002C*A/compute/v1/projects/{project}/g" - + "lobal/healthChecks/{health_check}\022\275\001\n\003Ge" - + "t\022..google.cloud.compute.v1.GetHealthChe" - + "ckRequest\032$.google.cloud.compute.v1.Heal" - + "thCheck\"`\332A\024project,health_check\202\323\344\223\002C\022A" - + "/compute/v1/projects/{project}/global/he" - + "althChecks/{health_check}\022\346\001\n\006Insert\0221.g" - + "oogle.cloud.compute.v1.InsertHealthCheck" + + ".com/auth/cloud-platform2\373\016\n\025GlobalForwa" + + "rdingRules\022\346\001\n\006Delete\022:.google.cloud.com" + + "pute.v1.DeleteGlobalForwardingRuleReques" + + "t\032\".google.cloud.compute.v1.Operation\"|\332" + + "A\027project,forwarding_rule\212N\020GlobalOperat" + + "ions\202\323\344\223\002I*G/compute/v1/projects/{projec" + + "t}/global/forwardingRules/{forwarding_ru" + + "le}\022\322\001\n\003Get\0227.google.cloud.compute.v1.Ge" + + "tGlobalForwardingRuleRequest\032\'.google.cl" + + "oud.compute.v1.ForwardingRule\"i\332A\027projec" + + "t,forwarding_rule\202\323\344\223\002I\022G/compute/v1/pro" + + "jects/{project}/global/forwardingRules/{" + + "forwarding_rule}\022\370\001\n\006Insert\022:.google.clo" + + "ud.compute.v1.InsertGlobalForwardingRule" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\204\001\332A\035project,health_check_resource\212N" - + "\020GlobalOperations\202\323\344\223\002K\"2/compute/v1/pro" - + "jects/{project}/global/healthChecks:\025hea" - + "lth_check_resource\022\250\001\n\004List\0220.google.clo" - + "ud.compute.v1.ListHealthChecksRequest\032(." - + "google.cloud.compute.v1.HealthCheckList\"" - + "D\332A\007project\202\323\344\223\0024\0222/compute/v1/projects/" - + "{project}/global/healthChecks\022\200\002\n\005Patch\022" - + "0.google.cloud.compute.v1.PatchHealthChe" - + "ckRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\240\001\332A*project,health_check,health_c" - + "heck_resource\212N\020GlobalOperations\202\323\344\223\002Z2A" - + "/compute/v1/projects/{project}/global/he" - + "althChecks/{health_check}:\025health_check_" - + "resource\022\202\002\n\006Update\0221.google.cloud.compu" - + "te.v1.UpdateHealthCheckRequest\032\".google." - + "cloud.compute.v1.Operation\"\240\001\332A*project," - + "health_check,health_check_resource\212N\020Glo" - + "balOperations\202\323\344\223\002Z\032A/compute/v1/project" - + "s/{project}/global/healthChecks/{health_" - + "check}:\025health_check_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\204\003\n\020ImageFamil" - + "yViews\022\310\001\n\003Get\0222.google.cloud.compute.v1" - + ".GetImageFamilyViewRequest\032(.google.clou" - + "d.compute.v1.ImageFamilyView\"c\332A\023project" - + ",zone,family\202\323\344\223\002G\022E/compute/v1/projects" - + "/{project}/zones/{zone}/imageFamilyViews" - + "/{family}\032\244\001\312A\026compute.googleapis.com\322A\207" - + "\001https://www.googleapis.com/auth/compute" - + ".readonly,https://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform2\374\023\n\006Images\022\272\001\n\006Delete\022+" - + ".google.cloud.compute.v1.DeleteImageRequ" + + "ion\"\215\001\332A project,forwarding_rule_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002Q\"5/compute/v1/" + + "projects/{project}/global/forwardingRule" + + "s:\030forwarding_rule_resource\022\267\001\n\004List\0229.g" + + "oogle.cloud.compute.v1.ListGlobalForward" + + "ingRulesRequest\032+.google.cloud.compute.v" + + "1.ForwardingRuleList\"G\332A\007project\202\323\344\223\0027\0225" + + "/compute/v1/projects/{project}/global/fo" + + "rwardingRules\022\230\002\n\005Patch\0229.google.cloud.c" + + "ompute.v1.PatchGlobalForwardingRuleReque" + + "st\032\".google.cloud.compute.v1.Operation\"\257" + + "\001\332A0project,forwarding_rule,forwarding_r" + + "ule_resource\212N\020GlobalOperations\202\323\344\223\002c2G/" + + "compute/v1/projects/{project}/global/for" + + "wardingRules/{forwarding_rule}:\030forwardi" + + "ng_rule_resource\022\260\002\n\tSetLabels\022=.google." + + "cloud.compute.v1.SetLabelsGlobalForwardi" + + "ngRuleRequest\032\".google.cloud.compute.v1." + + "Operation\"\277\001\332A3project,resource,global_s" + + "et_labels_request_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002p\"J/compute/v1/projects/{proje" + + "ct}/global/forwardingRules/{resource}/se" + + "tLabels:\"global_set_labels_request_resou" + + "rce\022\254\002\n\tSetTarget\022=.google.cloud.compute" + + ".v1.SetTargetGlobalForwardingRuleRequest" + + "\032\".google.cloud.compute.v1.Operation\"\273\001\332" + + "A1project,forwarding_rule,target_referen" + + "ce_resource\212N\020GlobalOperations\202\323\344\223\002n\"Q/c" + + "ompute/v1/projects/{project}/global/forw" + + "ardingRules/{forwarding_rule}/setTarget:" + + "\031target_reference_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c", + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\254\022\n\033GlobalNetwork" + + "EndpointGroups\022\274\003\n\026AttachNetworkEndpoint" + + "s\022P.google.cloud.compute.v1.AttachNetwor" + + "kEndpointsGlobalNetworkEndpointGroupRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "_\332A\rproject,image\212N\020GlobalOperations\202\323\344\223" - + "\0026*4/compute/v1/projects/{project}/globa" - + "l/images/{image}\022\204\002\n\tDeprecate\022..google." - + "cloud.compute.v1.DeprecateImageRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\242\001\332A)" - + "project,image,deprecation_status_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002]\">/compute/v1/" - + "projects/{project}/global/images/{image}" - + "/deprecate:\033deprecation_status_resource\022" - + "\235\001\n\003Get\022(.google.cloud.compute.v1.GetIma" - + "geRequest\032\036.google.cloud.compute.v1.Imag" - + "e\"L\332A\rproject,image\202\323\344\223\0026\0224/compute/v1/p" - + "rojects/{project}/global/images/{image}\022" - + "\272\001\n\rGetFromFamily\0222.google.cloud.compute" - + ".v1.GetFromFamilyImageRequest\032\036.google.c" - + "loud.compute.v1.Image\"U\332A\016project,family" - + "\202\323\344\223\002>\022\",/compute/v1/projects/{projec" - + "t}/global/images:\016image_resource\022\226\001\n\004Lis" - + "t\022*.google.cloud.compute.v1.ListImagesRe" - + "quest\032\".google.cloud.compute.v1.ImageLis" - + "t\">\332A\007project\202\323\344\223\002.\022,/compute/v1/project" - + "s/{project}/global/images\022\327\001\n\005Patch\022*.go" - + "ogle.cloud.compute.v1.PatchImageRequest\032" - + "\".google.cloud.compute.v1.Operation\"~\332A\034" - + "project,image,image_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002F24/compute/v1/projects/{pro" - + "ject}/global/images/{image}:\016image_resou" - + "rce\022\213\002\n\014SetIamPolicy\0221.google.cloud.comp" - + "ute.v1.SetIamPolicyImageRequest\032\037.google" - + ".cloud.compute.v1.Policy\"\246\001\332A3project,re" - + "source,global_set_policy_request_resourc" - + "e\202\323\344\223\002j\"D/compute/v1/projects/{project}/" - + "global/images/{resource}/setIamPolicy:\"g" - + "lobal_set_policy_request_resource\022\230\002\n\tSe" - + "tLabels\022..google.cloud.compute.v1.SetLab" - + "elsImageRequest\032\".google.cloud.compute.v" - + "1.Operation\"\266\001\332A3project,resource,global" - + "_set_labels_request_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002g\"A/compute/v1/projects/{pro" - + "ject}/global/images/{resource}/setLabels" - + ":\"global_set_labels_request_resource\022\254\002\n" - + "\022TestIamPermissions\0227.google.cloud.compu" - + "te.v1.TestIamPermissionsImageRequest\0320.g" - + "oogle.cloud.compute.v1.TestPermissionsRe" - + "sponse\"\252\001\332A2project,resource,test_permis" - + "sions_request_resource\202\323\344\223\002o\"J/compute/v" - + "1/projects/{project}/global/images/{reso" - + "urce}/testIamPermissions:!test_permissio" - + "ns_request_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\242\016\n\"InstanceGroupManager" - + "ResizeRequests\022\311\002\n\006Cancel\022G.google.cloud" - + ".compute.v1.CancelInstanceGroupManagerRe" - + "sizeRequestRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\321\001\332A2project,zone,instanc" - + "e_group_manager,resize_request\212N\016ZoneOpe" - + "rations\202\323\344\223\002\204\001\"\201\001/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroupManage" - + "rs/{instance_group_manager}/resizeReques" - + "ts/{resize_request}/cancel\022\300\002\n\006Delete\022G." + + "\253\002\332A_project,network_endpoint_group,glob" + + "al_network_endpoint_groups_attach_endpoi" + + "nts_request_resource\212N\020GlobalOperations\202" + + "\323\344\223\002\257\001\"k/compute/v1/projects/{project}/g" + + "lobal/networkEndpointGroups/{network_end" + + "point_group}/attachNetworkEndpoints:@glo" + + "bal_network_endpoint_groups_attach_endpo" + + "ints_request_resource\022\201\002\n\006Delete\022@.googl" + + "e.cloud.compute.v1.DeleteGlobalNetworkEn" + + "dpointGroupRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\220\001\332A\036project,network_endp" + + "oint_group\212N\020GlobalOperations\202\323\344\223\002V*T/co" + + "mpute/v1/projects/{project}/global/netwo" + + "rkEndpointGroups/{network_endpoint_group" + + "}\022\274\003\n\026DetachNetworkEndpoints\022P.google.cl" + + "oud.compute.v1.DetachNetworkEndpointsGlo" + + "balNetworkEndpointGroupRequest\032\".google." + + "cloud.compute.v1.Operation\"\253\002\332A_project," + + "network_endpoint_group,global_network_en" + + "dpoint_groups_detach_endpoints_request_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/comp" + + "ute/v1/projects/{project}/global/network" + + "EndpointGroups/{network_endpoint_group}/" + + "detachNetworkEndpoints:@global_network_e" + + "ndpoint_groups_detach_endpoints_request_" + + "resource\022\362\001\n\003Get\022=.google.cloud.compute." + + "v1.GetGlobalNetworkEndpointGroupRequest\032" + + "-.google.cloud.compute.v1.NetworkEndpoin" + + "tGroup\"}\332A\036project,network_endpoint_grou" + + "p\202\323\344\223\002V\022T/compute/v1/projects/{project}/" + + "global/networkEndpointGroups/{network_en" + + "dpoint_group}\022\222\002\n\006Insert\022@.google.cloud." + + "compute.v1.InsertGlobalNetworkEndpointGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\241\001\332A\'project,network_endpoint_gro" + + "up_resource\212N\020GlobalOperations\202\323\344\223\002^\";/c" + + "ompute/v1/projects/{project}/global/netw" + + "orkEndpointGroups:\037network_endpoint_grou" + + "p_resource\022\311\001\n\004List\022?.google.cloud.compu" + + "te.v1.ListGlobalNetworkEndpointGroupsReq" + + "uest\0321.google.cloud.compute.v1.NetworkEn" + + "dpointGroupList\"M\332A\007project\202\323\344\223\002=\022;/comp" + + "ute/v1/projects/{project}/global/network" + + "EndpointGroups\022\300\002\n\024ListNetworkEndpoints\022" + + "O.google.cloud.compute.v1.ListNetworkEnd" + + "pointsGlobalNetworkEndpointGroupsRequest" + + "\032B.google.cloud.compute.v1.NetworkEndpoi" + + "ntGroupsListNetworkEndpoints\"\222\001\332A\036projec" + + "t,network_endpoint_group\202\323\344\223\002k\"i/compute" + + "/v1/projects/{project}/global/networkEnd" + + "pointGroups/{network_endpoint_group}/lis" + + "tNetworkEndpoints\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\320\010\n\020GlobalOperations\022\312\001\n\016A" + + "ggregatedList\022>.google.cloud.compute.v1." + + "AggregatedListGlobalOperationsRequest\0320." + + "google.cloud.compute.v1.OperationAggrega" + + "tedList\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/p" + + "rojects/{project}/aggregated/operations\022" + + "\321\001\n\006Delete\0225.google.cloud.compute.v1.Del" + + "eteGlobalOperationRequest\0326.google.cloud" + + ".compute.v1.DeleteGlobalOperationRespons" + + "e\"X\332A\021project,operation\202\323\344\223\002>*\022.google.cloud.comp" + + "ute.v1.GetGlobalOrganizationOperationReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"J\332A\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/loc" + + "ations/global/operations/{operation}\022\244\001\n" + + "\004List\022@.google.cloud.compute.v1.ListGlob" + + "alOrganizationOperationsRequest\032&.google" + + ".cloud.compute.v1.OperationList\"2\332A\000\202\323\344\223" + + "\002)\022\'/compute/v1/locations/global/operati" + + "ons\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\321\013\n\035GlobalPublicDelegatedPrefixes\022\207\002\n\006De" + + "lete\022B.google.cloud.compute.v1.DeleteGlo" + + "balPublicDelegatedPrefixeRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\224\001\332A\037projec" + + "t,public_delegated_prefix\212N\020GlobalOperat" + + "ions\202\323\344\223\002Y*W/compute/v1/projects/{projec" + + "t}/global/publicDelegatedPrefixes/{publi" + + "c_delegated_prefix}\022\372\001\n\003Get\022?.google.clo" + + "ud.compute.v1.GetGlobalPublicDelegatedPr" + + "efixeRequest\032..google.cloud.compute.v1.P" + + "ublicDelegatedPrefix\"\201\001\332A\037project,public" + + "_delegated_prefix\202\323\344\223\002Y\022W/compute/v1/pro" + + "jects/{project}/global/publicDelegatedPr" + + "efixes/{public_delegated_prefix}\022\230\002\n\006Ins" + + "ert\022B.google.cloud.compute.v1.InsertGlob" + + "alPublicDelegatedPrefixeRequest\032\".google" + + ".cloud.compute.v1.Operation\"\245\001\332A(project" + + ",public_delegated_prefix_resource\212N\020Glob" + + "alOperations\202\323\344\223\002a\"=/compute/v1/projects" + + "/{project}/global/publicDelegatedPrefixe" + + "s: public_delegated_prefix_resource\022\316\001\n\004" + + "List\022A.google.cloud.compute.v1.ListGloba" + + "lPublicDelegatedPrefixesRequest\0322.google" + + ".cloud.compute.v1.PublicDelegatedPrefixL" + + "ist\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/proje" + + "cts/{project}/global/publicDelegatedPref" + + "ixes\022\310\002\n\005Patch\022A.google.cloud.compute.v1" + + ".PatchGlobalPublicDelegatedPrefixeReques" + + "t\032\".google.cloud.compute.v1.Operation\"\327\001" + + "\332A@project,public_delegated_prefix,publi" + + "c_delegated_prefix_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002{2W/compute/v1/projects/{proj" + + "ect}/global/publicDelegatedPrefixes/{pub" + + "lic_delegated_prefix}: public_delegated_" + + "prefix_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\203\r\n\014HealthChecks\022\313\001\n\016Aggrega" + + "tedList\022:.google.cloud.compute.v1.Aggreg" + + "atedListHealthChecksRequest\0323.google.clo" + + "ud.compute.v1.HealthChecksAggregatedList" + + "\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/projects" + + "/{project}/aggregated/healthChecks\022\324\001\n\006D" + + "elete\0221.google.cloud.compute.v1.DeleteHe" + + "althCheckRequest\032\".google.cloud.compute." + + "v1.Operation\"s\332A\024project,health_check\212N\020" + + "GlobalOperations\202\323\344\223\002C*A/compute/v1/proj" + + "ects/{project}/global/healthChecks/{heal" + + "th_check}\022\275\001\n\003Get\022..google.cloud.compute" + + ".v1.GetHealthCheckRequest\032$.google.cloud" + + ".compute.v1.HealthCheck\"`\332A\024project,heal" + + "th_check\202\323\344\223\002C\022A/compute/v1/projects/{pr" + + "oject}/global/healthChecks/{health_check" + + "}\022\346\001\n\006Insert\0221.google.cloud.compute.v1.I" + + "nsertHealthCheckRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\204\001\332A\035project,health_" + + "check_resource\212N\020GlobalOperations\202\323\344\223\002K\"" + + "2/compute/v1/projects/{project}/global/h" + + "ealthChecks:\025health_check_resource\022\250\001\n\004L" + + "ist\0220.google.cloud.compute.v1.ListHealth" + + "ChecksRequest\032(.google.cloud.compute.v1." + + "HealthCheckList\"D\332A\007project\202\323\344\223\0024\0222/comp" + + "ute/v1/projects/{project}/global/healthC" + + "hecks\022\200\002\n\005Patch\0220.google.cloud.compute.v" + + "1.PatchHealthCheckRequest\032\".google.cloud" + + ".compute.v1.Operation\"\240\001\332A*project,healt" + + "h_check,health_check_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002Z2A/compute/v1/projects/{pr" + + "oject}/global/healthChecks/{health_check" + + "}:\025health_check_resource\022\202\002\n\006Update\0221.go" + + "ogle.cloud.compute.v1.UpdateHealthCheckR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\240\001\332A*project,health_check,health_chec" + + "k_resource\212N\020GlobalOperations\202\323\344\223\002Z\032A/co" + + "mpute/v1/projects/{project}/global/healt" + + "hChecks/{health_check}:\025health_check_res" + + "ource\032r\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\204\003\n\020ImageFamilyViews\022\310\001\n\003Get\0222.google." + + "cloud.compute.v1.GetImageFamilyViewReque" + + "st\032(.google.cloud.compute.v1.ImageFamily" + + "View\"c\332A\023project,zone,family\202\323\344\223\002G\022E/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "imageFamilyViews/{family}\032\244\001\312A\026compute.g" + + "oogleapis.com\322A\207\001https://www.googleapis." + + "com/auth/compute.readonly,https://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\374\023\n\006Ima" + + "ges\022\272\001\n\006Delete\022+.google.cloud.compute.v1" + + ".DeleteImageRequest\032\".google.cloud.compu" + + "te.v1.Operation\"_\332A\rproject,image\212N\020Glob" + + "alOperations\202\323\344\223\0026*4/compute/v1/projects" + + "/{project}/global/images/{image}\022\204\002\n\tDep" + + "recate\022..google.cloud.compute.v1.Depreca" + + "teImageRequest\032\".google.cloud.compute.v1" + + ".Operation\"\242\001\332A)project,image,deprecatio" + + "n_status_resource\212N\020GlobalOperations\202\323\344\223" + + "\002]\">/compute/v1/projects/{project}/globa" + + "l/images/{image}/deprecate:\033deprecation_" + + "status_resource\022\235\001\n\003Get\022(.google.cloud.c" + + "ompute.v1.GetImageRequest\032\036.google.cloud" + + ".compute.v1.Image\"L\332A\rproject,image\202\323\344\223\002" + + "6\0224/compute/v1/projects/{project}/global" + + "/images/{image}\022\272\001\n\rGetFromFamily\0222.goog" + + "le.cloud.compute.v1.GetFromFamilyImageRe" + + "quest\032\036.google.cloud.compute.v1.Image\"U\332" + + "A\016project,family\202\323\344\223\002>\022\",/compute/v1/" + + "projects/{project}/global/images:\016image_" + + "resource\022\226\001\n\004List\022*.google.cloud.compute" + + ".v1.ListImagesRequest\032\".google.cloud.com" + + "pute.v1.ImageList\">\332A\007project\202\323\344\223\002.\022,/co" + + "mpute/v1/projects/{project}/global/image" + + "s\022\327\001\n\005Patch\022*.google.cloud.compute.v1.Pa" + + "tchImageRequest\032\".google.cloud.compute.v" + + "1.Operation\"~\332A\034project,image,image_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002F24/compute/" + + "v1/projects/{project}/global/images/{ima" + + "ge}:\016image_resource\022\213\002\n\014SetIamPolicy\0221.g" + + "oogle.cloud.compute.v1.SetIamPolicyImage" + + "Request\032\037.google.cloud.compute.v1.Policy" + + "\"\246\001\332A3project,resource,global_set_policy" + + "_request_resource\202\323\344\223\002j\"D/compute/v1/pro" + + "jects/{project}/global/images/{resource}" + + "/setIamPolicy:\"global_set_policy_request" + + "_resource\022\230\002\n\tSetLabels\022..google.cloud.c" + + "ompute.v1.SetLabelsImageRequest\032\".google" + + ".cloud.compute.v1.Operation\"\266\001\332A3project" + + ",resource,global_set_labels_request_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002g\"A/compute/" + + "v1/projects/{project}/global/images/{res" + + "ource}/setLabels:\"global_set_labels_requ" + + "est_resource\022\254\002\n\022TestIamPermissions\0227.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "ImageRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\252\001\332A2project,reso" + + "urce,test_permissions_request_resource\202\323" + + "\344\223\002o\"J/compute/v1/projects/{project}/glo" + + "bal/images/{resource}/testIamPermissions" + + ":!test_permissions_request_resource\032r\312A\026" + + "compute.googleapis.com\322AVhttps://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform2\242\016\n\"Inst" + + "anceGroupManagerResizeRequests\022\311\002\n\006Cance" + + "l\022G.google.cloud.compute.v1.CancelInstan" + + "ceGroupManagerResizeRequestRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\321\001\332A2proj" + + "ect,zone,instance_group_manager,resize_r" + + "equest\212N\016ZoneOperations\202\323\344\223\002\204\001\"\201\001/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tanceGroupManagers/{instance_group_manag" + + "er}/resizeRequests/{resize_request}/canc" + + "el\022\300\002\n\006Delete\022G.google.cloud.compute.v1." + + "DeleteInstanceGroupManagerResizeRequestR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\310\001\332A2project,zone,instance_group_mana" + + "ger,resize_request\212N\016ZoneOperations\202\323\344\223\002" + + "|*z/compute/v1/projects/{project}/zones/" + + "{zone}/instanceGroupManagers/{instance_g" + + "roup_manager}/resizeRequests/{resize_req" + + "uest}\022\301\002\n\003Get\022D.google.cloud.compute.v1." + + "GetInstanceGroupManagerResizeRequestRequ" + + "est\032:.google.cloud.compute.v1.InstanceGr" + + "oupManagerResizeRequest\"\267\001\332A2project,zon" + + "e,instance_group_manager,resize_request\202" + + "\323\344\223\002|\022z/compute/v1/projects/{project}/zo" + + "nes/{zone}/instanceGroupManagers/{instan" + + "ce_group_manager}/resizeRequests/{resize" + + "_request}\022\200\003\n\006Insert\022G.google.cloud.comp" + + "ute.v1.InsertInstanceGroupManagerResizeR" + + "equestRequest\032\".google.cloud.compute.v1." + + "Operation\"\210\002\332ARproject,zone,instance_gro" + + "up_manager,instance_group_manager_resize" + + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\233" + + "\001\"i/compute/v1/projects/{project}/zones/" + + "{zone}/instanceGroupManagers/{instance_g" + + "roup_manager}/resizeRequests:.instance_g" + + "roup_manager_resize_request_resource\022\261\002\n" + + "\004List\022F.google.cloud.compute.v1.ListInst" + + "anceGroupManagerResizeRequestsRequest\032G." + + "google.cloud.compute.v1.InstanceGroupMan" + + "agerResizeRequestsListResponse\"\227\001\332A#proj" + + "ect,zone,instance_group_manager\202\323\344\223\002k\022i/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroupManagers/{instance_group" + + "_manager}/resizeRequests\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\325E\n\025InstanceGroupMa" + + "nagers\022\241\003\n\020AbandonInstances\022D.google.clo" + + "ud.compute.v1.AbandonInstancesInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\242\002\332A^project,zone,instance" + + "_group_manager,instance_group_managers_a" + + "bandon_instances_request_resource\212N\016Zone" + + "Operations\202\323\344\223\002\251\001\"k/compute/v1/projects/" + + "{project}/zones/{zone}/instanceGroupMana" + + "gers/{instance_group_manager}/abandonIns" + + "tances::instance_group_managers_abandon_" + + "instances_request_resource\022\345\001\n\016Aggregate" + + "dList\022C.google.cloud.compute.v1.Aggregat" + + "edListInstanceGroupManagersRequest\032;.goo" + + "gle.cloud.compute.v1.InstanceGroupManage" + + "rAggregatedList\"Q\332A\007project\202\323\344\223\002A\022?/comp" + + "ute/v1/projects/{project}/aggregated/ins" + + "tanceGroupManagers\022\256\003\n\027ApplyUpdatesToIns" + + "tances\022K.google.cloud.compute.v1.ApplyUp" + + "datesToInstancesInstanceGroupManagerRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\241\002\332AZproject,zone,instance_group_manager" + + ",instance_group_managers_apply_updates_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\254\001\"" + + "r/compute/v1/projects/{project}/zones/{z" + + "one}/instanceGroupManagers/{instance_gro" + + "up_manager}/applyUpdatesToInstances:6ins" + + "tance_group_managers_apply_updates_reque" + + "st_resource\022\234\003\n\017CreateInstances\022C.google" + + ".cloud.compute.v1.CreateInstancesInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\237\002\332A]project,zone,insta" + + "nce_group_manager,instance_group_manager" + + "s_create_instances_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\247\001\"j/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/createIn" + + "stances:9instance_group_managers_create_" + + "instances_request_resource\022\204\002\n\006Delete\022:." + "google.cloud.compute.v1.DeleteInstanceGr" - + "oupManagerResizeRequestRequest\032\".google." - + "cloud.compute.v1.Operation\"\310\001\332A2project,", - "zone,instance_group_manager,resize_reque" - + "st\212N\016ZoneOperations\202\323\344\223\002|*z/compute/v1/p" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\231\001\332A#project,zone,instance" + + "_group_manager\212N\016ZoneOperations\202\323\344\223\002\\*Z/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroupManagers/{instance_group" + + "_manager}\022\234\003\n\017DeleteInstances\022C.google.c" + + "loud.compute.v1.DeleteInstancesInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\237\002\332A]project,zone,instanc" + + "e_group_manager,instance_group_managers_" + + "delete_instances_request_resource\212N\016Zone" + + "Operations\202\323\344\223\002\247\001\"j/compute/v1/projects/" + + "{project}/zones/{zone}/instanceGroupMana" + + "gers/{instance_group_manager}/deleteInst" + + "ances:9instance_group_managers_delete_in" + + "stances_request_resource\022\305\003\n\030DeletePerIn" + + "stanceConfigs\022L.google.cloud.compute.v1." + + "DeletePerInstanceConfigsInstanceGroupMan" + + "agerRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\266\002\332Adproject,zone,instance_group" + + "_manager,instance_group_managers_delete_" + + "per_instance_configs_req_resource\212N\016Zone" + + "Operations\202\323\344\223\002\267\001\"s/compute/v1/projects/" + + "{project}/zones/{zone}/instanceGroupMana" + + "gers/{instance_group_manager}/deletePerI" + + "nstanceConfigs:@instance_group_managers_" + + "delete_per_instance_configs_req_resource" + + "\022\370\001\n\003Get\0227.google.cloud.compute.v1.GetIn" + + "stanceGroupManagerRequest\032-.google.cloud" + + ".compute.v1.InstanceGroupManager\"\210\001\332A#pr" + + "oject,zone,instance_group_manager\202\323\344\223\002\\\022" + + "Z/compute/v1/projects/{project}/zones/{z" + + "one}/instanceGroupManagers/{instance_gro" + + "up_manager}\022\225\002\n\006Insert\022:.google.cloud.co" + + "mpute.v1.InsertInstanceGroupManagerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\252" + + "\001\332A,project,zone,instance_group_manager_" + + "resource\212N\016ZoneOperations\202\323\344\223\002d\"A/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tanceGroupManagers:\037instance_group_manag" + + "er_resource\022\316\001\n\004List\0229.google.cloud.comp" + + "ute.v1.ListInstanceGroupManagersRequest\032" + + "1.google.cloud.compute.v1.InstanceGroupM" + + "anagerList\"X\332A\014project,zone\202\323\344\223\002C\022A/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstanceGroupManagers\022\245\002\n\nListErrors\022?.go" + + "ogle.cloud.compute.v1.ListErrorsInstance" + + "GroupManagersRequest\032@.google.cloud.comp" + + "ute.v1.InstanceGroupManagersListErrorsRe" + + "sponse\"\223\001\332A#project,zone,instance_group_" + + "manager\202\323\344\223\002g\022e/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}/listErrors\022\315\002\n" + + "\024ListManagedInstances\022I.google.cloud.com" + + "pute.v1.ListManagedInstancesInstanceGrou" + + "pManagersRequest\032J.google.cloud.compute.", + "v1.InstanceGroupManagersListManagedInsta" + + "ncesResponse\"\235\001\332A#project,zone,instance_" + + "group_manager\202\323\344\223\002q\"o/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/listMana" + + "gedInstances\022\321\002\n\026ListPerInstanceConfigs\022" + + "K.google.cloud.compute.v1.ListPerInstanc" + + "eConfigsInstanceGroupManagersRequest\032H.g" + + "oogle.cloud.compute.v1.InstanceGroupMana" + + "gersListPerInstanceConfigsResp\"\237\001\332A#proj" + + "ect,zone,instance_group_manager\202\323\344\223\002s\"q/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroupManagers/{instance_group" + + "_manager}/listPerInstanceConfigs\022\303\002\n\005Pat" + + "ch\0229.google.cloud.compute.v1.PatchInstan" + + "ceGroupManagerRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\332\001\332ACproject,zone,inst" + + "ance_group_manager,instance_group_manage" + + "r_resource\212N\016ZoneOperations\202\323\344\223\002}2Z/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstanceGroupManagers/{instance_group_man" + + "ager}:\037instance_group_manager_resource\022\300" + + "\003\n\027PatchPerInstanceConfigs\022K.google.clou" + + "d.compute.v1.PatchPerInstanceConfigsInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\263\002\332Acproject,zone,in" + + "stance_group_manager,instance_group_mana" + + "gers_patch_per_instance_configs_req_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002\265\001\"r/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "/patchPerInstanceConfigs:?instance_group" + + "_managers_patch_per_instance_configs_req" + + "_resource\022\246\003\n\021RecreateInstances\022E.google" + + ".cloud.compute.v1.RecreateInstancesInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\245\002\332A_project,zone,ins" + + "tance_group_manager,instance_group_manag" + + "ers_recreate_instances_request_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\253\001\"l/compute/v1/pro" + + "jects/{project}/zones/{zone}/instanceGro" + + "upManagers/{instance_group_manager}/recr" + + "eateInstances:;instance_group_managers_r" + + "ecreate_instances_request_resource\022\220\002\n\006R" + + "esize\022:.google.cloud.compute.v1.ResizeIn" + + "stanceGroupManagerRequest\032\".google.cloud" + + ".compute.v1.Operation\"\245\001\332A(project,zone," + + "instance_group_manager,size\212N\016ZoneOperat" + + "ions\202\323\344\223\002c\"a/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroupManagers/{i" + + "nstance_group_manager}/resize\022\234\003\n\017Resume" + + "Instances\022C.google.cloud.compute.v1.Resu" + + "meInstancesInstanceGroupManagerRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\237\002\332A]" + + "project,zone,instance_group_manager,inst" + + "ance_group_managers_resume_instances_req" + + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroupManagers/{instance_group" + + "_manager}/resumeInstances:9instance_grou" + + "p_managers_resume_instances_request_reso" + + "urce\022\262\003\n\023SetInstanceTemplate\022G.google.cl" + + "oud.compute.v1.SetInstanceTemplateInstan" + + "ceGroupManagerRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\255\002\332Abproject,zone,inst" + + "ance_group_manager,instance_group_manage" + + "rs_set_instance_template_request_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002\260\001\"n/compute/v1/p" + "rojects/{project}/zones/{zone}/instanceG" - + "roupManagers/{instance_group_manager}/re" - + "sizeRequests/{resize_request}\022\301\002\n\003Get\022D." - + "google.cloud.compute.v1.GetInstanceGroup" - + "ManagerResizeRequestRequest\032:.google.clo" - + "ud.compute.v1.InstanceGroupManagerResize" - + "Request\"\267\001\332A2project,zone,instance_group" - + "_manager,resize_request\202\323\344\223\002|\022z/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/resizeRequests/{resize_request}\022\200\003\n\006In" - + "sert\022G.google.cloud.compute.v1.InsertIns" - + "tanceGroupManagerResizeRequestRequest\032\"." - + "google.cloud.compute.v1.Operation\"\210\002\332ARp" - + "roject,zone,instance_group_manager,insta" - + "nce_group_manager_resize_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/compute/v1/p" + + "roupManagers/{instance_group_manager}/se" + + "tInstanceTemplate:>instance_group_manage" + + "rs_set_instance_template_request_resourc" + + "e\022\231\003\n\016SetTargetPools\022B.google.cloud.comp" + + "ute.v1.SetTargetPoolsInstanceGroupManage" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\236\002\332A]project,zone,instance_group_ma" + + "nager,instance_group_managers_set_target" + + "_pools_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002\246\001\"i/compute/v1/projects/{project}/" + + "zones/{zone}/instanceGroupManagers/{inst" + + "ance_group_manager}/setTargetPools:9inst" + + "ance_group_managers_set_target_pools_req" + + "uest_resource\022\227\003\n\016StartInstances\022B.googl" + + "e.cloud.compute.v1.StartInstancesInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\234\002\332A\\project,zone,insta" + + "nce_group_manager,instance_group_manager" + + "s_start_instances_request_resource\212N\016Zon" + + "eOperations\202\323\344\223\002\245\001\"i/compute/v1/projects" + + "/{project}/zones/{zone}/instanceGroupMan" + + "agers/{instance_group_manager}/startInst" + + "ances:8instance_group_managers_start_ins" + + "tances_request_resource\022\222\003\n\rStopInstance" + + "s\022A.google.cloud.compute.v1.StopInstance" + + "sInstanceGroupManagerRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\231\002\332A[project,zo" + + "ne,instance_group_manager,instance_group" + + "_managers_stop_instances_request_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002\243\001\"h/compute/v1/p" + "rojects/{project}/zones/{zone}/instanceG" - + "roupManagers/{instance_group_manager}/re" - + "sizeRequests:.instance_group_manager_res" - + "ize_request_resource\022\261\002\n\004List\022F.google.c" - + "loud.compute.v1.ListInstanceGroupManager" - + "ResizeRequestsRequest\032G.google.cloud.com" - + "pute.v1.InstanceGroupManagerResizeReques" - + "tsListResponse\"\227\001\332A#project,zone,instanc" - + "e_group_manager\202\323\344\223\002k\022i/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "Managers/{instance_group_manager}/resize" - + "Requests\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\3438\n\025InstanceGroupManagers\022\241\003\n\020Aband" - + "onInstances\022D.google.cloud.compute.v1.Ab" - + "andonInstancesInstanceGroupManagerReques" - + "t\032\".google.cloud.compute.v1.Operation\"\242\002" - + "\332A^project,zone,instance_group_manager,i" - + "nstance_group_managers_abandon_instances" - + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\251" - + "\001\"k/compute/v1/projects/{project}/zones/" - + "{zone}/instanceGroupManagers/{instance_g" - + "roup_manager}/abandonInstances::instance" - + "_group_managers_abandon_instances_reques" - + "t_resource\022\345\001\n\016AggregatedList\022C.google.c" - + "loud.compute.v1.AggregatedListInstanceGr" - + "oupManagersRequest\032;.google.cloud.comput" - + "e.v1.InstanceGroupManagerAggregatedList\"" - + "Q\332A\007project\202\323\344\223\002A\022?/compute/v1/projects/" - + "{project}/aggregated/instanceGroupManage" - + "rs\022\256\003\n\027ApplyUpdatesToInstances\022K.google." - + "cloud.compute.v1.ApplyUpdatesToInstances" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\241\002\332AZproject,zon" - + "e,instance_group_manager,instance_group_" - + "managers_apply_updates_request_resource\212" - + "N\016ZoneOperations\202\323\344\223\002\254\001\"r/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "upManagers/{instance_group_manager}/appl" - + "yUpdatesToInstances:6instance_group_mana" - + "gers_apply_updates_request_resource\022\234\003\n\017" - + "CreateInstances\022C.google.cloud.compute.v" - + "1.CreateInstancesInstanceGroupManagerReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\237\002\332A]project,zone,instance_group_manage" - + "r,instance_group_managers_create_instanc" - + "es_request_resource\212N\016ZoneOperations\202\323\344\223" - + "\002\247\001\"j/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers/{instance" - + "_group_manager}/createInstances:9instanc" - + "e_group_managers_create_instances_reques" - + "t_resource\022\204\002\n\006Delete\022:.google.cloud.com" - + "pute.v1.DeleteInstanceGroupManagerReques" - + "t\032\".google.cloud.compute.v1.Operation\"\231\001" - + "\332A#project,zone,instance_group_manager\212N" - + "\016ZoneOperations\202\323\344\223\002\\*Z/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "Managers/{instance_group_manager}\022\234\003\n\017De" - + "leteInstances\022C.google.cloud.compute.v1." - + "DeleteInstancesInstanceGroupManagerReque" - + "st\032\".google.cloud.compute.v1.Operation\"\237" - + "\002\332A]project,zone,instance_group_manager," - + "instance_group_managers_delete_instances" - + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\247" - + "\001\"j/compute/v1/projects/{project}/zones/" - + "{zone}/instanceGroupManagers/{instance_g" - + "roup_manager}/deleteInstances:9instance_" - + "group_managers_delete_instances_request_" - + "resource\022\305\003\n\030DeletePerInstanceConfigs\022L." - + "google.cloud.compute.v1.DeletePerInstanc" + + "roupManagers/{instance_group_manager}/st" + + "opInstances:7instance_group_managers_sto" + + "p_instances_request_resource\022\241\003\n\020Suspend" + + "Instances\022D.google.cloud.compute.v1.Susp" + + "endInstancesInstanceGroupManagerRequest\032" + + "\".google.cloud.compute.v1.Operation\"\242\002\332A" + + "^project,zone,instance_group_manager,ins" + + "tance_group_managers_suspend_instances_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\251\001\"" + + "k/compute/v1/projects/{project}/zones/{z" + + "one}/instanceGroupManagers/{instance_gro" + + "up_manager}/suspendInstances::instance_g" + + "roup_managers_suspend_instances_request_" + + "resource\022\305\003\n\030UpdatePerInstanceConfigs\022L." + + "google.cloud.compute.v1.UpdatePerInstanc" + "eConfigsInstanceGroupManagerRequest\032\".go" + "ogle.cloud.compute.v1.Operation\"\266\002\332Adpro" + "ject,zone,instance_group_manager,instanc" - + "e_group_managers_delete_per_instance_con" + + "e_group_managers_update_per_instance_con" + "figs_req_resource\212N\016ZoneOperations\202\323\344\223\002\267" + "\001\"s/compute/v1/projects/{project}/zones/" + "{zone}/instanceGroupManagers/{instance_g" - + "roup_manager}/deletePerInstanceConfigs:@" - + "instance_group_managers_delete_per_insta" - + "nce_configs_req_resource\022\370\001\n\003Get\0227.googl" - + "e.cloud.compute.v1.GetInstanceGroupManag" - + "erRequest\032-.google.cloud.compute.v1.Inst" - + "anceGroupManager\"\210\001\332A#project,zone,insta" - + "nce_group_manager\202\323\344\223\002\\\022Z/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "upManagers/{instance_group_manager}\022\225\002\n\006" - + "Insert\022:.google.cloud.compute.v1.InsertI" - + "nstanceGroupManagerRequest\032\".google.clou" - + "d.compute.v1.Operation\"\252\001\332A,project,zone" - + ",instance_group_manager_resource\212N\016ZoneO" - + "perations\202\323\344\223\002d\"A/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroupManage" - + "rs:\037instance_group_manager_resource\022\316\001\n\004" - + "List\0229.google.cloud.compute.v1.ListInsta" - + "nceGroupManagersRequest\0321.google.cloud.c" - + "ompute.v1.InstanceGroupManagerList\"X\332A\014p" - + "roject,zone\202\323\344\223\002C\022A/compute/v1/projects/" - + "{project}/zones/{zone}/instanceGroupMana" - + "gers\022\245\002\n\nListErrors\022?.google.cloud.compu" - + "te.v1.ListErrorsInstanceGroupManagersReq" - + "uest\032@.google.cloud.compute.v1.InstanceG" - + "roupManagersListErrorsResponse\"\223\001\332A#proj" - + "ect,zone,instance_group_manager\202\323\344\223\002g\022e/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/instanceGroupManagers/{instance_group" - + "_manager}/listErrors\022\315\002\n\024ListManagedInst" - + "ances\022I.google.cloud.compute.v1.ListMana" - + "gedInstancesInstanceGroupManagersRequest" - + "\032J.google.cloud.compute.v1.InstanceGroup" - + "ManagersListManagedInstancesResponse\"\235\001\332" - + "A#project,zone,instance_group_manager\202\323\344" - + "\223\002q\"o/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers/{instance" - + "_group_manager}/listManagedInstances\022\321\002\n" - + "\026ListPerInstanceConfigs\022K.google.cloud.c" - + "ompute.v1.ListPerInstanceConfigsInstance" - + "GroupManagersRequest\032H.google.cloud.comp" - + "ute.v1.InstanceGroupManagersListPerInsta" - + "nceConfigsResp\"\237\001\332A#project,zone,instanc" - + "e_group_manager\202\323\344\223\002s\"q/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "Managers/{instance_group_manager}/listPe" - + "rInstanceConfigs\022\303\002\n\005Patch\0229.google.clou" - + "d.compute.v1.PatchInstanceGroupManagerRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\332\001\332ACproject,zone,instance_group_manag" - + "er,instance_group_manager_resource\212N\016Zon" - + "eOperations\202\323\344\223\002}2Z/compute/v1/projects/" - + "{project}/zones/{zone}/instanceGroupMana" - + "gers/{instance_group_manager}:\037instance_" - + "group_manager_resource\022\300\003\n\027PatchPerInsta" - + "nceConfigs\022K.google.cloud.compute.v1.Pat" - + "chPerInstanceConfigsInstanceGroupManager" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\263\002\332Acproject,zone,instance_group_man" - + "ager,instance_group_managers_patch_per_i" - + "nstance_configs_req_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002\265\001\"r/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instanceGroupManagers/" - + "{instance_group_manager}/patchPerInstanc" - + "eConfigs:?instance_group_managers_patch_" - + "per_instance_configs_req_resource\022\246\003\n\021Re" - + "createInstances\022E.google.cloud.compute.v" - + "1.RecreateInstancesInstanceGroupManagerR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\245\002\332A_project,zone,instance_group_mana" - + "ger,instance_group_managers_recreate_ins" - + "tances_request_resource\212N\016ZoneOperations" - + "\202\323\344\223\002\253\001\"l/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/recreateInstances:;i" - + "nstance_group_managers_recreate_instance" - + "s_request_resource\022\220\002\n\006Resize\022:.google.c" - + "loud.compute.v1.ResizeInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\245\001\332A(project,zone,instance_group_m" - + "anager,size\212N\016ZoneOperations\202\323\344\223\002c\"a/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instanceGroupManagers/{instance_group_ma" - + "nager}/resize\022\262\003\n\023SetInstanceTemplate\022G." - + "google.cloud.compute.v1.SetInstanceTempl" - + "ateInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\255\002\332Abproject," - + "zone,instance_group_manager,instance_gro" - + "up_managers_set_instance_template_reques" - + "t_resource\212N\016ZoneOperations\202\323\344\223\002\260\001\"n/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instanceGroupManagers/{instance_group_ma" - + "nager}/setInstanceTemplate:>instance_gro" - + "up_managers_set_instance_template_reques" - + "t_resource\022\231\003\n\016SetTargetPools\022B.google.c" - + "loud.compute.v1.SetTargetPoolsInstanceGr" - + "oupManagerRequest\032\".google.cloud.compute" - + ".v1.Operation\"\236\002\332A]project,zone,instance" - + "_group_manager,instance_group_managers_s" - + "et_target_pools_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\246\001\"i/compute/v1/projects/{" - + "project}/zones/{zone}/instanceGroupManag" - + "ers/{instance_group_manager}/setTargetPo" - + "ols:9instance_group_managers_set_target_" - + "pools_request_resource\022\305\003\n\030UpdatePerInst" - + "anceConfigs\022L.google.cloud.compute.v1.Up" - + "datePerInstanceConfigsInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\266\002\332Adproject,zone,instance_group_m" - + "anager,instance_group_managers_update_pe" - + "r_instance_configs_req_resource\212N\016ZoneOp" - + "erations\202\323\344\223\002\267\001\"s/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroupManage" - + "rs/{instance_group_manager}/updatePerIns" - + "tanceConfigs:@instance_group_managers_up" - + "date_per_instance_configs_req_resource\032r" - + "\312A\026compute.googleapis.com\322AVhttps://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform2\360\024\n\016I" - + "nstanceGroups\022\337\002\n\014AddInstances\0229.google." - + "cloud.compute.v1.AddInstancesInstanceGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\357\001\332AJproject,zone,instance_group,i" - + "nstance_groups_add_instances_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\212\001\"X/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroups/{instance_group}/addInstances:" - + ".instance_groups_add_instances_request_r" - + "esource\022\320\001\n\016AggregatedList\022<.google.clou" - + "d.compute.v1.AggregatedListInstanceGroup" - + "sRequest\0324.google.cloud.compute.v1.Insta" - + "nceGroupAggregatedList\"J\332A\007project\202\323\344\223\002:" - + "\0228/compute/v1/projects/{project}/aggrega" - + "ted/instanceGroups\022\346\001\n\006Delete\0223.google.c" - + "loud.compute.v1.DeleteInstanceGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\202" - + "\001\332A\033project,zone,instance_group\212N\016ZoneOp" - + "erations\202\323\344\223\002M*K/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instanceGroups/{inst" - + "ance_group}\022\322\001\n\003Get\0220.google.cloud.compu" - + "te.v1.GetInstanceGroupRequest\032&.google.c" - + "loud.compute.v1.InstanceGroup\"q\332A\033projec" - + "t,zone,instance_group\202\323\344\223\002M\022K/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroups/{instance_group}\022\367\001\n\006Insert\0223.go" - + "ogle.cloud.compute.v1.InsertInstanceGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\223\001\332A$project,zone,instance_group_re" - + "source\212N\016ZoneOperations\202\323\344\223\002U\":/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroups:\027instance_group_resource\022\271\001\n\004L" - + "ist\0222.google.cloud.compute.v1.ListInstan" - + "ceGroupsRequest\032*.google.cloud.compute.v" - + "1.InstanceGroupList\"Q\332A\014project,zone\202\323\344\223" - + "\002<\022:/compute/v1/projects/{project}/zones" - + "/{zone}/instanceGroups\022\346\002\n\rListInstances" - + "\022;.google.cloud.compute.v1.ListInstances" - + "InstanceGroupsRequest\0324.google.cloud.com" - + "pute.v1.InstanceGroupsListInstances\"\341\001\332A" - + "Kproject,zone,instance_group,instance_gr" - + "oups_list_instances_request_resource\202\323\344\223" - + "\002\214\001\"Y/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroups/{instance_group}" - + "/listInstances:/instance_groups_list_ins" - + "tances_request_resource\022\356\002\n\017RemoveInstan" - + "ces\022<.google.cloud.compute.v1.RemoveInst" - + "ancesInstanceGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\370\001\332AMproject,zone," - + "instance_group,instance_groups_remove_in" - + "stances_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\220\001\"[/compute/v1/projects/{project}" - + "/zones/{zone}/instanceGroups/{instance_g" - + "roup}/removeInstances:1instance_groups_r" - + "emove_instances_request_resource\022\346\002\n\rSet" - + "NamedPorts\022:.google.cloud.compute.v1.Set" - + "NamedPortsInstanceGroupRequest\032\".google." - + "cloud.compute.v1.Operation\"\364\001\332ALproject," - + "zone,instance_group,instance_groups_set_" - + "named_ports_request_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002\215\001\"Y/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instanceGroups/{instan" - + "ce_group}/setNamedPorts:0instance_groups" - + "_set_named_ports_request_resource\032r\312A\026co" - + "mpute.googleapis.com\322AVhttps://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\313\004\n\027Instan" - + "ceSettingsService\022\271\001\n\003Get\0222.google.cloud" - + ".compute.v1.GetInstanceSettingRequest\032)." - + "google.cloud.compute.v1.InstanceSettings" - + "\"S\332A\014project,zone\202\323\344\223\002>\022p" - + "roject,zone,instance,network_interface,a" - + "ccess_config_resource\212N\016ZoneOperations\202\323" - + "\344\223\002j\"P/compute/v1/projects/{project}/zon" - + "es/{zone}/instances/{instance}/addAccess" - + "Config:\026access_config_resource\022\342\002\n\023AddRe" - + "sourcePolicies\022;.google.cloud.compute.v1" - + ".AddResourcePoliciesInstanceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\351\001\332AFpro" - + "ject,zone,instance,instances_add_resourc" - + "e_policies_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\210\001\"T/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instances/{instance}/ad" - + "dResourcePolicies:0instances_add_resourc" - + "e_policies_request_resource\022\301\001\n\016Aggregat" - + "edList\0227.google.cloud.compute.v1.Aggrega" - + "tedListInstancesRequest\032/.google.cloud.c" - + "ompute.v1.InstanceAggregatedList\"E\332A\007pro" - + "ject\202\323\344\223\0025\0223/compute/v1/projects/{projec" - + "t}/aggregated/instances\022\222\002\n\nAttachDisk\0222" - + ".google.cloud.compute.v1.AttachDiskInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\253\001\332A,project,zone,instance,attach" - + "ed_disk_resource\212N\016ZoneOperations\202\323\344\223\002e\"" - + "K/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/attachDisk:\026at" - + "tached_disk_resource\022\236\002\n\nBulkInsert\0222.go" - + "ogle.cloud.compute.v1.BulkInsertInstance" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\267\001\332A3project,zone,bulk_insert_instan" - + "ce_resource_resource\212N\016ZoneOperations\202\323\344" - + "\223\002j\"@/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/bulkInsert:&bulk_inse" - + "rt_instance_resource_resource\022\317\001\n\006Delete" - + "\022..google.cloud.compute.v1.DeleteInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"q\332A\025project,zone,instance\212N\016ZoneOpe" - + "rations\202\323\344\223\002B*@/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}\022" - + "\233\002\n\022DeleteAccessConfig\022:.google.cloud.co" - + "mpute.v1.DeleteAccessConfigInstanceReque" - + "st\032\".google.cloud.compute.v1.Operation\"\244" - + "\001\332A5project,zone,instance,access_config," - + "network_interface\212N\016ZoneOperations\202\323\344\223\002U" - + "\"S/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/deleteAccessC" - + "onfig\022\357\001\n\nDetachDisk\0222.google.cloud.comp" - + "ute.v1.DetachDiskInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\210\001\332A!projec", - "t,zone,instance,device_name\212N\016ZoneOperat" - + "ions\202\323\344\223\002M\"K/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/det" - + "achDisk\022\267\001\n\003Get\022+.google.cloud.compute.v" - + "1.GetInstanceRequest\032!.google.cloud.comp" - + "ute.v1.Instance\"`\332A\025project,zone,instanc" - + "e\202\323\344\223\002B\022@/compute/v1/projects/{project}/" - + "zones/{zone}/instances/{instance}\022\242\002\n\025Ge" - + "tEffectiveFirewalls\022=.google.cloud.compu" - + "te.v1.GetEffectiveFirewallsInstanceReque" - + "st\032?.google.cloud.compute.v1.InstancesGe" - + "tEffectiveFirewallsResponse\"\210\001\332A\'project" - + ",zone,instance,network_interface\202\323\344\223\002X\022V" + + "roup_manager}/updatePerInstanceConfigs:@" + + "instance_group_managers_update_per_insta" + + "nce_configs_req_resource\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\360\024\n\016InstanceGroups\022" + + "\337\002\n\014AddInstances\0229.google.cloud.compute." + + "v1.AddInstancesInstanceGroupRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\357\001\332AJpro" + + "ject,zone,instance_group,instance_groups" + + "_add_instances_request_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002\212\001\"X/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroups/{ins" + + "tance_group}/addInstances:.instance_grou" + + "ps_add_instances_request_resource\022\320\001\n\016Ag" + + "gregatedList\022<.google.cloud.compute.v1.A" + + "ggregatedListInstanceGroupsRequest\0324.goo" + + "gle.cloud.compute.v1.InstanceGroupAggreg" + + "atedList\"J\332A\007project\202\323\344\223\002:\0228/compute/v1/" + + "projects/{project}/aggregated/instanceGr" + + "oups\022\346\001\n\006Delete\0223.google.cloud.compute.v" + + "1.DeleteInstanceGroupRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\202\001\332A\033project,zo" + + "ne,instance_group\212N\016ZoneOperations\202\323\344\223\002M" + + "*K/compute/v1/projects/{project}/zones/{" + + "zone}/instanceGroups/{instance_group}\022\322\001" + + "\n\003Get\0220.google.cloud.compute.v1.GetInsta" + + "nceGroupRequest\032&.google.cloud.compute.v" + + "1.InstanceGroup\"q\332A\033project,zone,instanc" + + "e_group\202\323\344\223\002M\022K/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroups/{insta" + + "nce_group}\022\367\001\n\006Insert\0223.google.cloud.com" + + "pute.v1.InsertInstanceGroupRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\223\001\332A$proj" + + "ect,zone,instance_group_resource\212N\016ZoneO" + + "perations\202\323\344\223\002U\":/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroups:\027ins" + + "tance_group_resource\022\271\001\n\004List\0222.google.c" + + "loud.compute.v1.ListInstanceGroupsReques" + + "t\032*.google.cloud.compute.v1.InstanceGrou" + + "pList\"Q\332A\014project,zone\202\323\344\223\002<\022:/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroups\022\346\002\n\rListInstances\022;.google.clou" + + "d.compute.v1.ListInstancesInstanceGroups" + + "Request\0324.google.cloud.compute.v1.Instan" + + "ceGroupsListInstances\"\341\001\332AKproject,zone," + + "instance_group,instance_groups_list_inst" + + "ances_request_resource\202\323\344\223\002\214\001\"Y/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nceGroups/{instance_group}/listInstances" + + ":/instance_groups_list_instances_request" + + "_resource\022\356\002\n\017RemoveInstances\022<.google.c" + + "loud.compute.v1.RemoveInstancesInstanceG" + + "roupRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\370\001\332AMproject,zone,instance_group" + + ",instance_groups_remove_instances_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroups/{instance_group}/removeIn" + + "stances:1instance_groups_remove_instance" + + "s_request_resource\022\346\002\n\rSetNamedPorts\022:.g" + + "oogle.cloud.compute.v1.SetNamedPortsInst" + + "anceGroupRequest\032\".google.cloud.compute." + + "v1.Operation\"\364\001\332ALproject,zone,instance_" + + "group,instance_groups_set_named_ports_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y" + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/getEffectiveFir" - + "ewalls\022\357\001\n\022GetGuestAttributes\022:.google.c" - + "loud.compute.v1.GetGuestAttributesInstan" - + "ceRequest\032(.google.cloud.compute.v1.Gues" - + "tAttributes\"s\332A\025project,zone,instance\202\323\344" - + "\223\002U\022S/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/getGuestAt" - + "tributes\022\324\001\n\014GetIamPolicy\0224.google.cloud" - + ".compute.v1.GetIamPolicyInstanceRequest\032" - + "\037.google.cloud.compute.v1.Policy\"m\332A\025pro" - + "ject,zone,resource\202\323\344\223\002O\022M/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{resource}/getIamPolicy\022\330\001\n\rGetScreensho" - + "t\0225.google.cloud.compute.v1.GetScreensho" - + "tInstanceRequest\032#.google.cloud.compute." - + "v1.Screenshot\"k\332A\025project,zone,instance\202" - + "\323\344\223\002M\022K/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/screensh" - + "ot\022\352\001\n\023GetSerialPortOutput\022;.google.clou" - + "d.compute.v1.GetSerialPortOutputInstance" - + "Request\032).google.cloud.compute.v1.Serial" - + "PortOutput\"k\332A\025project,zone,instance\202\323\344\223" - + "\002M\022K/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/serialPort\022" - + "\223\002\n\033GetShieldedInstanceIdentity\022C.google" - + ".cloud.compute.v1.GetShieldedInstanceIde" - + "ntityInstanceRequest\0321.google.cloud.comp" - + "ute.v1.ShieldedInstanceIdentity\"|\332A\025proj" - + "ect,zone,instance\202\323\344\223\002^\022\\/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/getShieldedInstanceIdentity\022\341\001" - + "\n\006Insert\022..google.cloud.compute.v1.Inser" - + "tInstanceRequest\032\".google.cloud.compute." - + "v1.Operation\"\202\001\332A\036project,zone,instance_" - + "resource\212N\016ZoneOperations\202\323\344\223\002J\"5/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances:\021instance_resource\022\252\001\n\004List\022-.goo" - + "gle.cloud.compute.v1.ListInstancesReques" - + "t\032%.google.cloud.compute.v1.InstanceList" - + "\"L\332A\014project,zone\202\323\344\223\0027\0225/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances\022\343" - + "\001\n\rListReferrers\0226.google.cloud.compute." - + "v1.ListReferrersInstancesRequest\032..googl" - + "e.cloud.compute.v1.InstanceListReferrers" - + "\"j\332A\025project,zone,instance\202\323\344\223\002L\022J/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/referrers\022\373\001\n\022Perform" - + "Maintenance\022:.google.cloud.compute.v1.Pe" - + "rformMaintenanceInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"\204\001\332A\025project" - + ",zone,instance\212N\016ZoneOperations\202\323\344\223\002U\"S/" + + "ne}/instanceGroups/{instance_group}/setN" + + "amedPorts:0instance_groups_set_named_por" + + "ts_request_resource\032r\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform2\313\004\n\027InstanceSettingsServ" + + "ice\022\271\001\n\003Get\0222.google.cloud.compute.v1.Ge" + + "tInstanceSettingRequest\032).google.cloud.c" + + "ompute.v1.InstanceSettings\"S\332A\014project,z" + + "one\202\323\344\223\002>\022project,zone,in" + + "stance,network_interface,access_config_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002j\"P/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/addAccessConfig:\026access" + + "_config_resource\022\342\002\n\023AddResourcePolicies" + + "\022;.google.cloud.compute.v1.AddResourcePo" + + "liciesInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\351\001\332AFproject,zone,inst" + + "ance,instances_add_resource_policies_req" + + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/" + "compute/v1/projects/{project}/zones/{zon" - + "e}/instances/{instance}/performMaintenan" - + "ce\022\361\002\n\026RemoveResourcePolicies\022>.google.c" - + "loud.compute.v1.RemoveResourcePoliciesIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\362\001\332AIproject,zone,instance,ins" - + "tances_remove_resource_policies_request_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\216\001\"W/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/removeResourcePolicie" - + "s:3instances_remove_resource_policies_re" - + "quest_resource\022\323\001\n\005Reset\022-.google.cloud." - + "compute.v1.ResetInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"w\332A\025project," - + "zone,instance\212N\016ZoneOperations\202\323\344\223\002H\"F/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/reset\022\326\001\n\006Resume\022" - + "..google.cloud.compute.v1.ResumeInstance" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"x\332A\025project,zone,instance\212N\016ZoneOper" - + "ations\202\323\344\223\002I\"G/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}/r" - + "esume\022\226\002\n\027SendDiagnosticInterrupt\022?.goog" - + "le.cloud.compute.v1.SendDiagnosticInterr" - + "uptInstanceRequest\032@.google.cloud.comput" - + "e.v1.SendDiagnosticInterruptInstanceResp" - + "onse\"x\332A\025project,zone,instance\202\323\344\223\002Z\"X/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/sendDiagnosticInt" - + "errupt\022\204\002\n\025SetDeletionProtection\022=.googl" - + "e.cloud.compute.v1.SetDeletionProtection" - + "InstanceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\207\001\332A\025project,zone,resource\212N" - + "\016ZoneOperations\202\323\344\223\002X\"V/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{re" - + "source}/setDeletionProtection\022\220\002\n\021SetDis" - + "kAutoDelete\0229.google.cloud.compute.v1.Se" - + "tDiskAutoDeleteInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\233\001\332A-project," - + "zone,instance,auto_delete,device_name\212N\016" - + "ZoneOperations\202\323\344\223\002T\"R/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/setDiskAutoDelete\022\230\002\n\014SetIamPolic" - + "y\0224.google.cloud.compute.v1.SetIamPolicy" - + "InstanceRequest\032\037.google.cloud.compute.v" - + "1.Policy\"\260\001\332A6project,zone,resource,zone" - + "_set_policy_request_resource\202\323\344\223\002q\"M/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{resource}/setIamPolicy: zone_" - + "set_policy_request_resource\022\255\002\n\tSetLabel" - + "s\0221.google.cloud.compute.v1.SetLabelsIns" - + "tanceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\310\001\332A;project,zone,instance,inst" - + "ances_set_labels_request_resource\212N\016Zone" - + "Operations\202\323\344\223\002s\"J/compute/v1/projects/{" - + "project}/zones/{zone}/instances/{instanc" - + "e}/setLabels:%instances_set_labels_reque" - + "st_resource\022\342\002\n\023SetMachineResources\022;.go" - + "ogle.cloud.compute.v1.SetMachineResource" - + "sInstanceRequest\032\".google.cloud.compute." - + "v1.Operation\"\351\001\332AFproject,zone,instance," - + "instances_set_machine_resources_request_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/setMachineResources:0" - + "instances_set_machine_resources_request_" - + "resource\022\310\002\n\016SetMachineType\0226.google.clo" - + "ud.compute.v1.SetMachineTypeInstanceRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\331\001\332AAproject,zone,instance,instances_set" - + "_machine_type_request_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002~\"O/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}/" - + "setMachineType:+instances_set_machine_ty" - + "pe_request_resource\022\213\002\n\013SetMetadata\0223.go" - + "ogle.cloud.compute.v1.SetMetadataInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\242\001\332A\'project,zone,instance,metadata" - + "_resource\212N\016ZoneOperations\202\323\344\223\002a\"L/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/setMetadata:\021metadata" - + "_resource\022\332\002\n\021SetMinCpuPlatform\0229.google" - + ".cloud.compute.v1.SetMinCpuPlatformInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\345\001\332AEproject,zone,instance,instan" - + "ces_set_min_cpu_platform_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\205\001\"R/compute/v1/p" + + "e}/instances/{instance}/addResourcePolic" + + "ies:0instances_add_resource_policies_req" + + "uest_resource\022\301\001\n\016AggregatedList\0227.googl" + + "e.cloud.compute.v1.AggregatedListInstanc" + + "esRequest\032/.google.cloud.compute.v1.Inst" + + "anceAggregatedList\"E\332A\007project\202\323\344\223\0025\0223/c" + + "ompute/v1/projects/{project}/aggregated/" + + "instances\022\222\002\n\nAttachDisk\0222.google.cloud." + + "compute.v1.AttachDiskInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\253\001\332A,pr" + + "oject,zone,instance,attached_disk_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002e\"K/compute/v1/p" + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/setMinCpuPlatform:/instances" - + "_set_min_cpu_platform_request_resource\022\243" - + "\002\n\007SetName\022/.google.cloud.compute.v1.Set" - + "NameInstanceRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\302\001\332A9project,zone,instan" - + "ce,instances_set_name_request_resource\212N" - + "\016ZoneOperations\202\323\344\223\002o\"H/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/setName:#instances_set_name_requ" - + "est_resource\022\225\002\n\rSetScheduling\0225.google." - + "cloud.compute.v1.SetSchedulingInstanceRe" + + "/{instance}/attachDisk:\026attached_disk_re" + + "source\022\236\002\n\nBulkInsert\0222.google.cloud.com" + + "pute.v1.BulkInsertInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\267\001\332A3proje" + + "ct,zone,bulk_insert_instance_resource_re" + + "source\212N\016ZoneOperations\202\323\344\223\002j\"@/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/bulkInsert:&bulk_insert_instance_re" + + "source_resource\022\317\001\n\006Delete\022..google.clou" + + "d.compute.v1.DeleteInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"q\332A\025proje" + + "ct,zone,instance\212N\016ZoneOperations\202\323\344\223\002B*" + + "@/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}\022\233\002\n\022DeleteAcce" + + "ssConfig\022:.google.cloud.compute.v1.Delet" + + "eAccessConfigInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\244\001\332A5project,zo" + + "ne,instance,access_config,network_interf" + + "ace\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/deleteAccessConfig\022\357\001\n\nDeta" + + "chDisk\0222.google.cloud.compute.v1.DetachD" + + "iskInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\210\001\332A!project,zone,instanc" + + "e,device_name\212N\016ZoneOperations\202\323\344\223\002M\"K/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/detachDisk\022\267\001\n\003Ge" + + "t\022+.google.cloud.compute.v1.GetInstanceR" + + "equest\032!.google.cloud.compute.v1.Instanc" + + "e\"`\332A\025project,zone,instance\202\323\344\223\002B\022@/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}\022\242\002\n\025GetEffectiveFire" + + "walls\022=.google.cloud.compute.v1.GetEffec" + + "tiveFirewallsInstanceRequest\032?.google.cl" + + "oud.compute.v1.InstancesGetEffectiveFire" + + "wallsResponse\"\210\001\332A\'project,zone,instance" + + ",network_interface\202\323\344\223\002X\022V/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}/getEffectiveFirewalls\022\357\001\n\022Get" + + "GuestAttributes\022:.google.cloud.compute.v" + + "1.GetGuestAttributesInstanceRequest\032(.go" + + "ogle.cloud.compute.v1.GuestAttributes\"s\332" + + "A\025project,zone,instance\202\323\344\223\002U\022S/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/{instance}/getGuestAttributes\022\324\001\n\014G" + + "etIamPolicy\0224.google.cloud.compute.v1.Ge" + + "tIamPolicyInstanceRequest\032\037.google.cloud" + + ".compute.v1.Policy\"m\332A\025project,zone,reso" + + "urce\202\323\344\223\002O\022M/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{resource}/get" + + "IamPolicy\022\330\001\n\rGetScreenshot\0225.google.clo" + + "ud.compute.v1.GetScreenshotInstanceReque" + + "st\032#.google.cloud.compute.v1.Screenshot\"" + + "k\332A\025project,zone,instance\202\323\344\223\002M\022K/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tances/{instance}/screenshot\022\352\001\n\023GetSeri" + + "alPortOutput\022;.google.cloud.compute.v1.G" + + "etSerialPortOutputInstanceRequest\032).goog" + + "le.cloud.compute.v1.SerialPortOutput\"k\332A" + + "\025project,zone,instance\202\323\344\223\002M\022K/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{instance}/serialPort\022\223\002\n\033GetShielde" + + "dInstanceIdentity\022C.google.cloud.compute" + + ".v1.GetShieldedInstanceIdentityInstanceR" + + "equest\0321.google.cloud.compute.v1.Shielde" + + "dInstanceIdentity\"|\332A\025project,zone,insta" + + "nce\202\323\344\223\002^\022\\/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/getS" + + "hieldedInstanceIdentity\022\341\001\n\006Insert\022..goo" + + "gle.cloud.compute.v1.InsertInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\202" + + "\001\332A\036project,zone,instance_resource\212N\016Zon" + + "eOperations\202\323\344\223\002J\"5/compute/v1/projects/" + + "{project}/zones/{zone}/instances:\021instan" + + "ce_resource\022\252\001\n\004List\022-.google.cloud.comp" + + "ute.v1.ListInstancesRequest\032%.google.clo" + + "ud.compute.v1.InstanceList\"L\332A\014project,z" + + "one\202\323\344\223\0027\0225/compute/v1/projects/{project" + + "}/zones/{zone}/instances\022\343\001\n\rListReferre" + + "rs\0226.google.cloud.compute.v1.ListReferre" + + "rsInstancesRequest\032..google.cloud.comput" + + "e.v1.InstanceListReferrers\"j\332A\025project,z" + + "one,instance\202\323\344\223\002L\022J/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/referrers\022\373\001\n\022PerformMaintenance\022:." + + "google.cloud.compute.v1.PerformMaintenan" + + "ceInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\204\001\332A\025project,zone,instance" + + "\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances/{" + + "instance}/performMaintenance\022\361\002\n\026RemoveR" + + "esourcePolicies\022>.google.cloud.compute.v" + + "1.RemoveResourcePoliciesInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\362\001\332A" + + "Iproject,zone,instance,instances_remove_" + + "resource_policies_request_resource\212N\016Zon" + + "eOperations\202\323\344\223\002\216\001\"W/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/removeResourcePolicies:3instances_r" + + "emove_resource_policies_request_resource" + + "\022\323\001\n\005Reset\022-.google.cloud.compute.v1.Res" + + "etInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"w\332A\025project,zone,instance\212" + + "N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/reset\022\326\001\n\006Resume\022..google.cloud" + + ".compute.v1.ResumeInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"x\332A\025projec" + + "t,zone,instance\212N\016ZoneOperations\202\323\344\223\002I\"G" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{instance}/resume\022\226\002\n\027Send", + "DiagnosticInterrupt\022?.google.cloud.compu" + + "te.v1.SendDiagnosticInterruptInstanceReq" + + "uest\032@.google.cloud.compute.v1.SendDiagn" + + "osticInterruptInstanceResponse\"x\332A\025proje" + + "ct,zone,instance\202\323\344\223\002Z\"X/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/sendDiagnosticInterrupt\022\204\002\n\025Set" + + "DeletionProtection\022=.google.cloud.comput" + + "e.v1.SetDeletionProtectionInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\207\001" + + "\332A\025project,zone,resource\212N\016ZoneOperation" + + "s\202\323\344\223\002X\"V/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{resource}/setDel" + + "etionProtection\022\220\002\n\021SetDiskAutoDelete\0229." + + "google.cloud.compute.v1.SetDiskAutoDelet" + + "eInstanceRequest\032\".google.cloud.compute." + + "v1.Operation\"\233\001\332A-project,zone,instance," + + "auto_delete,device_name\212N\016ZoneOperations" + + "\202\323\344\223\002T\"R/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/setDisk" + + "AutoDelete\022\230\002\n\014SetIamPolicy\0224.google.clo" + + "ud.compute.v1.SetIamPolicyInstanceReques" + + "t\032\037.google.cloud.compute.v1.Policy\"\260\001\332A6" + + "project,zone,resource,zone_set_policy_re" + + "quest_resource\202\323\344\223\002q\"M/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{res" + + "ource}/setIamPolicy: zone_set_policy_req" + + "uest_resource\022\255\002\n\tSetLabels\0221.google.clo" + + "ud.compute.v1.SetLabelsInstanceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\310\001\332A;" + + "project,zone,instance,instances_set_labe" + + "ls_request_resource\212N\016ZoneOperations\202\323\344\223" + + "\002s\"J/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/setLabels:%" + + "instances_set_labels_request_resource\022\342\002" + + "\n\023SetMachineResources\022;.google.cloud.com" + + "pute.v1.SetMachineResourcesInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\351" + + "\001\332AFproject,zone,instance,instances_set_" + + "machine_resources_request_resource\212N\016Zon" + + "eOperations\202\323\344\223\002\210\001\"T/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/setMachineResources:0instances_set_" + + "machine_resources_request_resource\022\310\002\n\016S" + + "etMachineType\0226.google.cloud.compute.v1." + + "SetMachineTypeInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\331\001\332AAproject,z" + + "one,instance,instances_set_machine_type_" + + "request_resource\212N\016ZoneOperations\202\323\344\223\002~\"" + + "O/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/setMachineType" + + ":+instances_set_machine_type_request_res" + + "ource\022\213\002\n\013SetMetadata\0223.google.cloud.com" + + "pute.v1.SetMetadataInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\242\001\332A\'proj" + + "ect,zone,instance,metadata_resource\212N\016Zo" + + "neOperations\202\323\344\223\002a\"L/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/setMetadata:\021metadata_resource\022\332\002\n\021" + + "SetMinCpuPlatform\0229.google.cloud.compute" + + ".v1.SetMinCpuPlatformInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\345\001\332AEpr" + + "oject,zone,instance,instances_set_min_cp" + + "u_platform_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002\205\001\"R/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/se" + + "tMinCpuPlatform:/instances_set_min_cpu_p" + + "latform_request_resource\022\243\002\n\007SetName\022/.g" + + "oogle.cloud.compute.v1.SetNameInstanceRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\250\001\332A)project,zone,instance,scheduling_" - + "resource\212N\016ZoneOperations\202\323\344\223\002e\"N/comput" + + "n\"\302\001\332A9project,zone,instance,instances_s" + + "et_name_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002o\"H/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}/setNam" + + "e:#instances_set_name_request_resource\022\225" + + "\002\n\rSetScheduling\0225.google.cloud.compute." + + "v1.SetSchedulingInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\250\001\332A)project" + + ",zone,instance,scheduling_resource\212N\016Zon" + + "eOperations\202\323\344\223\002e\"N/compute/v1/projects/" + + "{project}/zones/{zone}/instances/{instan" + + "ce}/setScheduling:\023scheduling_resource\022\330" + + "\002\n\021SetSecurityPolicy\0229.google.cloud.comp" + + "ute.v1.SetSecurityPolicyInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\343\001\332A" + + "Dproject,zone,instance,instances_set_sec" + + "urity_policy_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\204\001\"R/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "setSecurityPolicy:.instances_set_securit" + + "y_policy_request_resource\022\330\002\n\021SetService" + + "Account\0229.google.cloud.compute.v1.SetSer" + + "viceAccountInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\343\001\332ADproject,zone" + + ",instance,instances_set_service_account_" + + "request_resource\212N\016ZoneOperations\202\323\344\223\002\204\001" + + "\"R/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/setServiceAcc" + + "ount:.instances_set_service_account_requ" + + "est_resource\022\205\003\n\"SetShieldedInstanceInte" + + "grityPolicy\022J.google.cloud.compute.v1.Se" + + "tShieldedInstanceIntegrityPolicyInstance" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\356\001\332AAproject,zone,instance,shielded_" + + "instance_integrity_policy_resource\212N\016Zon" + + "eOperations\202\323\344\223\002\222\0012c/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/setShieldedInstanceIntegrityPolicy:" + + "+shielded_instance_integrity_policy_reso" + + "urce\022\367\001\n\007SetTags\022/.google.cloud.compute." + + "v1.SetTagsInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\226\001\332A#project,zone," + + "instance,tags_resource\212N\016ZoneOperations\202" + + "\323\344\223\002Y\"H/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/setTags:" + + "\rtags_resource\022\215\002\n\030SimulateMaintenanceEv" + + "ent\022@.google.cloud.compute.v1.SimulateMa" + + "intenanceEventInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\212\001\332A\025project,z" + + "one,instance\212N\016ZoneOperations\202\323\344\223\002[\"Y/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{instance}/simulateMaintenanc" + + "eEvent\022\323\001\n\005Start\022-.google.cloud.compute." + + "v1.StartInstanceRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"w\332A\025project,zone,ins" + + "tance\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{instance}/start\022\363\002\n\026StartWithEncryp" + + "tionKey\022>.google.cloud.compute.v1.StartW" + + "ithEncryptionKeyInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\364\001\332AJproject" + + ",zone,instance,instances_start_with_encr" + + "yption_key_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002\217\001\"W/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/st" + + "artWithEncryptionKey:4instances_start_wi" + + "th_encryption_key_request_resource\022\320\001\n\004S" + + "top\022,.google.cloud.compute.v1.StopInstan" + + "ceRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"v\332A\025project,zone,instance\212N\016ZoneOp" + + "erations\202\323\344\223\002G\"E/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/{instance}" + + "/stop\022\331\001\n\007Suspend\022/.google.cloud.compute" + + ".v1.SuspendInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"y\332A\025project,zone," + + "instance\212N\016ZoneOperations\202\323\344\223\002J\"H/comput" + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}/setScheduling:\023schedul" - + "ing_resource\022\330\002\n\021SetSecurityPolicy\0229.goo" - + "gle.cloud.compute.v1.SetSecurityPolicyIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\343\001\332ADproject,zone,instance,ins" - + "tances_set_security_policy_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/compute/v1" + + "tances/{instance}/suspend\022\275\002\n\022TestIamPer" + + "missions\022:.google.cloud.compute.v1.TestI" + + "amPermissionsInstanceRequest\0320.google.cl" + + "oud.compute.v1.TestPermissionsResponse\"\270" + + "\001\332A7project,zone,resource,test_permissio" + + "ns_request_resource\202\323\344\223\002x\"S/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{resource}/testIamPermissions:!test_per" + + "missions_request_resource\022\365\001\n\006Update\022..g" + + "oogle.cloud.compute.v1.UpdateInstanceReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\226\001\332A\'project,zone,instance,instance_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002U\032@/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{instance}:\021instance_resource\022\274\002\n\022Up" + + "dateAccessConfig\022:.google.cloud.compute." + + "v1.UpdateAccessConfigInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\305\001\332A>pr" + + "oject,zone,instance,network_interface,ac" + + "cess_config_resource\212N\016ZoneOperations\202\323\344" + + "\223\002m\"S/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/updateAcce" + + "ssConfig:\026access_config_resource\022\257\002\n\023Upd" + + "ateDisplayDevice\022;.google.cloud.compute." + + "v1.UpdateDisplayDeviceInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\266\001\332A-p" + + "roject,zone,instance,display_device_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002o2T/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/setSecurityPolicy:.instanc" - + "es_set_security_policy_request_resource\022" - + "\330\002\n\021SetServiceAccount\0229.google.cloud.com" - + "pute.v1.SetServiceAccountInstanceRequest" - + "\032\".google.cloud.compute.v1.Operation\"\343\001\332" - + "ADproject,zone,instance,instances_set_se" - + "rvice_account_request_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002\204\001\"R/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances/{instance}" - + "/setServiceAccount:.instances_set_servic" - + "e_account_request_resource\022\205\003\n\"SetShield" - + "edInstanceIntegrityPolicy\022J.google.cloud" - + ".compute.v1.SetShieldedInstanceIntegrity" - + "PolicyInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\356\001\332AAproject,zone,inst" - + "ance,shielded_instance_integrity_policy_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\222\0012c/compu" + + "es/{instance}/updateDisplayDevice:\027displ" + + "ay_device_resource\022\320\002\n\026UpdateNetworkInte" + + "rface\022>.google.cloud.compute.v1.UpdateNe" + + "tworkInterfaceInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\321\001\332ABproject,z" + + "one,instance,network_interface,network_i" + + "nterface_resource\212N\016ZoneOperations\202\323\344\223\002u" + + "2W/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/updateNetwork" + + "Interface:\032network_interface_resource\022\337\002" + + "\n\034UpdateShieldedInstanceConfig\022D.google." + + "cloud.compute.v1.UpdateShieldedInstanceC" + + "onfigInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\324\001\332A7project,zone,insta" + + "nce,shielded_instance_config_resource\212N\016" + + "ZoneOperations\202\323\344\223\002\202\0012]/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances/{in" + + "stance}/updateShieldedInstanceConfig:!sh" + + "ielded_instance_config_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\203\023\n\020InstantS" + + "napshots\022\326\001\n\016AggregatedList\022>.google.clo" + + "ud.compute.v1.AggregatedListInstantSnaps" + + "hotsRequest\0326.google.cloud.compute.v1.In" + + "stantSnapshotAggregatedList\"L\332A\007project\202" + + "\323\344\223\002<\022:/compute/v1/projects/{project}/ag" + + "gregated/instantSnapshots\022\356\001\n\006Delete\0225.g" + + "oogle.cloud.compute.v1.DeleteInstantSnap" + + "shotRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\210\001\332A\035project,zone,instant_snapsh" + + "ot\212N\016ZoneOperations\202\323\344\223\002Q*O/compute/v1/p" + + "rojects/{project}/zones/{zone}/instantSn" + + "apshots/{instant_snapshot}\022\334\001\n\003Get\0222.goo" + + "gle.cloud.compute.v1.GetInstantSnapshotR" + + "equest\032(.google.cloud.compute.v1.Instant" + + "Snapshot\"w\332A\035project,zone,instant_snapsh" + + "ot\202\323\344\223\002Q\022O/compute/v1/projects/{project}" + + "/zones/{zone}/instantSnapshots/{instant_" + + "snapshot}\022\342\001\n\014GetIamPolicy\022;.google.clou" + + "d.compute.v1.GetIamPolicyInstantSnapshot" + + "Request\032\037.google.cloud.compute.v1.Policy" + + "\"t\332A\025project,zone,resource\202\323\344\223\002V\022T/compu" + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/setShieldedInstanceIn" - + "tegrityPolicy:+shielded_instance_integri" - + "ty_policy_resource\022\367\001\n\007SetTags\022/.google." - + "cloud.compute.v1.SetTagsInstanceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\226\001\332A" - + "#project,zone,instance,tags_resource\212N\016Z" - + "oneOperations\202\323\344\223\002Y\"H/compute/v1/project" - + "s/{project}/zones/{zone}/instances/{inst" - + "ance}/setTags:\rtags_resource\022\215\002\n\030Simulat" - + "eMaintenanceEvent\022@.google.cloud.compute" - + ".v1.SimulateMaintenanceEventInstanceRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\212\001\332A\025project,zone,instance\212N\016ZoneOperati" - + "ons\202\323\344\223\002[\"Y/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{instance}/simu" - + "lateMaintenanceEvent\022\323\001\n\005Start\022-.google." - + "cloud.compute.v1.StartInstanceRequest\032\"." - + "google.cloud.compute.v1.Operation\"w\332A\025pr" - + "oject,zone,instance\212N\016ZoneOperations\202\323\344\223" - + "\002H\"F/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/start\022\363\002\n\026S" - + "tartWithEncryptionKey\022>.google.cloud.com" - + "pute.v1.StartWithEncryptionKeyInstanceRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\364\001\332AJproject,zone,instance,instances_s" - + "tart_with_encryption_key_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\217\001\"W/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/startWithEncryptionKey:4inst" - + "ances_start_with_encryption_key_request_" - + "resource\022\320\001\n\004Stop\022,.google.cloud.compute" - + ".v1.StopInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"v\332A\025project,zone,ins" - + "tance\212N\016ZoneOperations\202\323\344\223\002G\"E/compute/v" + + "stantSnapshots/{resource}/getIamPolicy\022\377" + + "\001\n\006Insert\0225.google.cloud.compute.v1.Inse" + + "rtInstantSnapshotRequest\032\".google.cloud." + + "compute.v1.Operation\"\231\001\332A&project,zone,i" + + "nstant_snapshot_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002Y\"\022project,zone,instance,networ" - + "k_interface,access_config_resource\212N\016Zon" - + "eOperations\202\323\344\223\002m\"S/compute/v1/projects/" - + "{project}/zones/{zone}/instances/{instan" - + "ce}/updateAccessConfig:\026access_config_re" - + "source\022\257\002\n\023UpdateDisplayDevice\022;.google." - + "cloud.compute.v1.UpdateDisplayDeviceInst" - + "anceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\266\001\332A-project,zone,instance,displ" - + "ay_device_resource\212N\016ZoneOperations\202\323\344\223\002" - + "o2T/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}/updateDispla" - + "yDevice:\027display_device_resource\022\320\002\n\026Upd" - + "ateNetworkInterface\022>.google.cloud.compu" - + "te.v1.UpdateNetworkInterfaceInstanceRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\321\001\332ABproject,zone,instance,network_inter" - + "face,network_interface_resource\212N\016ZoneOp" - + "erations\202\323\344\223\002u2W/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances/{instance}" - + "/updateNetworkInterface:\032network_interfa" - + "ce_resource\022\337\002\n\034UpdateShieldedInstanceCo" - + "nfig\022D.google.cloud.compute.v1.UpdateShi" - + "eldedInstanceConfigInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\324\001\332A7proj" - + "ect,zone,instance,shielded_instance_conf" - + "ig_resource\212N\016ZoneOperations\202\323\344\223\002\202\0012]/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instances/{instance}/updateShieldedInst" - + "anceConfig:!shielded_instance_config_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\203\023\n\020InstantSnapshots\022\326\001\n\016AggregatedLis" - + "t\022>.google.cloud.compute.v1.AggregatedLi" - + "stInstantSnapshotsRequest\0326.google.cloud" - + ".compute.v1.InstantSnapshotAggregatedLis" - + "t\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/project" - + "s/{project}/aggregated/instantSnapshots\022" - + "\356\001\n\006Delete\0225.google.cloud.compute.v1.Del" - + "eteInstantSnapshotRequest\032\".google.cloud" - + ".compute.v1.Operation\"\210\001\332A\035project,zone," - + "instant_snapshot\212N\016ZoneOperations\202\323\344\223\002Q*" - + "O/compute/v1/projects/{project}/zones/{z" - + "one}/instantSnapshots/{instant_snapshot}" - + "\022\334\001\n\003Get\0222.google.cloud.compute.v1.GetIn" - + "stantSnapshotRequest\032(.google.cloud.comp" - + "ute.v1.InstantSnapshot\"w\332A\035project,zone," - + "instant_snapshot\202\323\344\223\002Q\022O/compute/v1/proj" + + "tSnapshots\022\246\002\n\014SetIamPolicy\022;.google.clo" + + "ud.compute.v1.SetIamPolicyInstantSnapsho" + + "tRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\267\001\332A6project,zone,resource,zone_set_po" + + "licy_request_resource\202\323\344\223\002x\"T/compute/v1" + + "/projects/{project}/zones/{zone}/instant" + + "Snapshots/{resource}/setIamPolicy: zone_" + + "set_policy_request_resource\022\261\002\n\tSetLabel" + + "s\0228.google.cloud.compute.v1.SetLabelsIns" + + "tantSnapshotRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\305\001\332A6project,zone,resour" + + "ce,zone_set_labels_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002u\"Q/compute/v1/projects" + + "/{project}/zones/{zone}/instantSnapshots" + + "/{resource}/setLabels: zone_set_labels_r" + + "equest_resource\022\313\002\n\022TestIamPermissions\022A" + + ".google.cloud.compute.v1.TestIamPermissi" + + "onsInstantSnapshotRequest\0320.google.cloud" + + ".compute.v1.TestPermissionsResponse\"\277\001\332A" + + "7project,zone,resource,test_permissions_" + + "request_resource\202\323\344\223\002\177\"Z/compute/v1/proj" + "ects/{project}/zones/{zone}/instantSnaps" - + "hots/{instant_snapshot}\022\342\001\n\014GetIamPolicy" - + "\022;.google.cloud.compute.v1.GetIamPolicyI" - + "nstantSnapshotRequest\032\037.google.cloud.com" - + "pute.v1.Policy\"t\332A\025project,zone,resource" - + "\202\323\344\223\002V\022T/compute/v1/projects/{project}/z" - + "ones/{zone}/instantSnapshots/{resource}/" - + "getIamPolicy\022\377\001\n\006Insert\0225.google.cloud.c" - + "ompute.v1.InsertInstantSnapshotRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\231\001\332A&" - + "project,zone,instant_snapshot_resource\212N" - + "\016ZoneOperations\202\323\344\223\002Y\"\022" + + ".google.cloud.compute.v1.TestIamPermissi" + + "onsMachineImageRequest\0320.google.cloud.co" + + "mpute.v1.TestPermissionsResponse\"\261\001\332A2pr" + + "oject,resource,test_permissions_request_" + + "resource\202\323\344\223\002v\"Q/compute/v1/projects/{pr" + + "oject}/global/machineImages/{resource}/t" + "estIamPermissions:!test_permissions_requ" + "est_resource\032r\312A\026compute.googleapis.com\322" + "AVhttps://www.googleapis.com/auth/comput" + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\353\r\n\rMachineImages\022\330\001\n\006Delete\0222." - + "google.cloud.compute.v1.DeleteMachineIma" - + "geRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"v\332A\025project,machine_image\212N\020Global" - + "Operations\202\323\344\223\002E*C/compute/v1/projects/{" - + "project}/global/machineImages/{machine_i" - + "mage}\022\302\001\n\003Get\022/.google.cloud.compute.v1." - + "GetMachineImageRequest\032%.google.cloud.co" - + "mpute.v1.MachineImage\"c\332A\025project,machin" - + "e_image\202\323\344\223\002E\022C/compute/v1/projects/{pro" - + "ject}/global/machineImages/{machine_imag" - + "e}\022\321\001\n\014GetIamPolicy\0228.google.cloud.compu" - + "te.v1.GetIamPolicyMachineImageRequest\032\037." - + "google.cloud.compute.v1.Policy\"f\332A\020proje" - + "ct,resource\202\323\344\223\002M\022K/compute/v1/projects/" - + "{project}/global/machineImages/{resource" - + "}/getIamPolicy\022\352\001\n\006Insert\0222.google.cloud" - + ".compute.v1.InsertMachineImageRequest\032\"." - + "google.cloud.compute.v1.Operation\"\207\001\332A\036p" - + "roject,machine_image_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002M\"3/compute/v1/projects/{pr" - + "oject}/global/machineImages:\026machine_ima" - + "ge_resource\022\253\001\n\004List\0221.google.cloud.comp" - + "ute.v1.ListMachineImagesRequest\032).google" - + ".cloud.compute.v1.MachineImageList\"E\332A\007p" - + "roject\202\323\344\223\0025\0223/compute/v1/projects/{proj" - + "ect}/global/machineImages\022\231\002\n\014SetIamPoli" - + "cy\0228.google.cloud.compute.v1.SetIamPolic" - + "yMachineImageRequest\032\037.google.cloud.comp" - + "ute.v1.Policy\"\255\001\332A3project,resource,glob" - + "al_set_policy_request_resource\202\323\344\223\002q\"K/c" - + "ompute/v1/projects/{project}/global/mach" - + "ineImages/{resource}/setIamPolicy:\"globa" - + "l_set_policy_request_resource\022\272\002\n\022TestIa" - + "mPermissions\022>.google.cloud.compute.v1.T" - + "estIamPermissionsMachineImageRequest\0320.g" - + "oogle.cloud.compute.v1.TestPermissionsRe" - + "sponse\"\261\001\332A2project,resource,test_permis" - + "sions_request_resource\202\323\344\223\002v\"Q/compute/v" - + "1/projects/{project}/global/machineImage" - + "s/{resource}/testIamPermissions:!test_pe" - + "rmissions_request_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" + + "platform2\203\006\n\014MachineTypes\022\312\001\n\016Aggregated" + + "List\022:.google.cloud.compute.v1.Aggregate" + + "dListMachineTypesRequest\0322.google.cloud." + + "compute.v1.MachineTypeAggregatedList\"H\332A" + + "\007project\202\323\344\223\0028\0226/compute/v1/projects/{pr" + + "oject}/aggregated/machineTypes\022\310\001\n\003Get\022." + + ".google.cloud.compute.v1.GetMachineTypeR" + + "equest\032$.google.cloud.compute.v1.Machine" + + "Type\"k\332A\031project,zone,machine_type\202\323\344\223\002I" + + "\022G/compute/v1/projects/{project}/zones/{" + + "zone}/machineTypes/{machine_type}\022\263\001\n\004Li" + + "st\0220.google.cloud.compute.v1.ListMachine" + + "TypesRequest\032(.google.cloud.compute.v1.M" + + "achineTypeList\"O\332A\014project,zone\202\323\344\223\002:\0228/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/machineTypes\032\244\001\312A\026compute.googleapis." + + "com\322A\207\001https://www.googleapis.com/auth/c" + + "ompute.readonly,https://www.googleapis.c" + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\203\006\n\014MachineTypes\022" - + "\312\001\n\016AggregatedList\022:.google.cloud.comput" - + "e.v1.AggregatedListMachineTypesRequest\0322" - + ".google.cloud.compute.v1.MachineTypeAggr" - + "egatedList\"H\332A\007project\202\323\344\223\0028\0226/compute/v" - + "1/projects/{project}/aggregated/machineT" - + "ypes\022\310\001\n\003Get\022..google.cloud.compute.v1.G" - + "etMachineTypeRequest\032$.google.cloud.comp" - + "ute.v1.MachineType\"k\332A\031project,zone,mach" - + "ine_type\202\323\344\223\002I\022G/compute/v1/projects/{pr" - + "oject}/zones/{zone}/machineTypes/{machin" - + "e_type}\022\263\001\n\004List\0220.google.cloud.compute." - + "v1.ListMachineTypesRequest\032(.google.clou" - + "d.compute.v1.MachineTypeList\"O\332A\014project" - + ",zone\202\323\344\223\002:\0228/compute/v1/projects/{proje" - + "ct}/zones/{zone}/machineTypes\032\244\001\312A\026compu" - + "te.googleapis.com\322A\207\001https://www.googlea" - + "pis.com/auth/compute.readonly,https://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\360\023\n" - + "\022NetworkAttachments\022\334\001\n\016AggregatedList\022@" - + ".google.cloud.compute.v1.AggregatedListN" - + "etworkAttachmentsRequest\0328.google.cloud." - + "compute.v1.NetworkAttachmentAggregatedLi" - + "st\"N\332A\007project\202\323\344\223\002>\022\022.google.cloud.compute" - + ".v1.PatchRuleNetworkFirewallPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\304\001" - + "\332A5project,firewall_policy,firewall_poli" - + "cy_rule_resource\212N\020GlobalOperations\202\323\344\223\002" - + "s\"R/compute/v1/projects/{project}/global" - + "/firewallPolicies/{firewall_policy}/patc" - + "hRule:\035firewall_policy_rule_resource\022\221\002\n" - + "\021RemoveAssociation\022F.google.cloud.comput" - + "e.v1.RemoveAssociationNetworkFirewallPol" - + "icyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\217\001\332A\027project,firewall_policy\212N\020Gl" - + "obalOperations\202\323\344\223\002\\\"Z/compute/v1/projec" + + "llPolicies/{firewall_policy}/getAssociat" + + "ion\022\335\001\n\014GetIamPolicy\022A.google.cloud.comp" + + "ute.v1.GetIamPolicyNetworkFirewallPolicy" + + "Request\032\037.google.cloud.compute.v1.Policy" + + "\"i\332A\020project,resource\202\323\344\223\002P\022N/compute/v1" + + "/projects/{project}/global/firewallPolic" + + "ies/{resource}/getIamPolicy\022\350\001\n\007GetRule\022" + + "<.google.cloud.compute.v1.GetRuleNetwork" + + "FirewallPolicyRequest\032+.google.cloud.com" + + "pute.v1.FirewallPolicyRule\"r\332A\027project,f" + + "irewall_policy\202\323\344\223\002R\022P/compute/v1/projec" + "ts/{project}/global/firewallPolicies/{fi" - + "rewall_policy}/removeAssociation\022\374\001\n\nRem" - + "oveRule\022?.google.cloud.compute.v1.Remove" - + "RuleNetworkFirewallPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\210\001\332A\027projec" - + "t,firewall_policy\212N\020GlobalOperations\202\323\344\223" - + "\002U\"S/compute/v1/projects/{project}/globa" - + "l/firewallPolicies/{firewall_policy}/rem" - + "oveRule\022\245\002\n\014SetIamPolicy\022A.google.cloud." - + "compute.v1.SetIamPolicyNetworkFirewallPo" - + "licyRequest\032\037.google.cloud.compute.v1.Po" - + "licy\"\260\001\332A3project,resource,global_set_po" - + "licy_request_resource\202\323\344\223\002t\"N/compute/v1" + + "rewall_policy}/getRule\022\372\001\n\006Insert\022;.goog" + + "le.cloud.compute.v1.InsertNetworkFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\216\001\332A project,firewall_policy_" + + "resource\212N\020GlobalOperations\202\323\344\223\002R\"6/comp" + + "ute/v1/projects/{project}/global/firewal" + + "lPolicies:\030firewall_policy_resource\022\272\001\n\004" + + "List\022;.google.cloud.compute.v1.ListNetwo" + + "rkFirewallPoliciesRequest\032+.google.cloud" + + ".compute.v1.FirewallPolicyList\"H\332A\007proje" + + "ct\202\323\344\223\0028\0226/compute/v1/projects/{project}" + + "/global/firewallPolicies\022\232\002\n\005Patch\022:.goo" + + "gle.cloud.compute.v1.PatchNetworkFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\260\001\332A0project,firewall_policy," + + "firewall_policy_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002d2H/compute/v1/projects/{project" + + "}/global/firewallPolicies/{firewall_poli" + + "cy}:\030firewall_policy_resource\022\266\002\n\tPatchR" + + "ule\022>.google.cloud.compute.v1.PatchRuleN" + + "etworkFirewallPolicyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\304\001\332A5project,fir" + + "ewall_policy,firewall_policy_rule_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002s\"R/compute/v1" + "/projects/{project}/global/firewallPolic" - + "ies/{resource}/setIamPolicy:\"global_set_" - + "policy_request_resource\022\306\002\n\022TestIamPermi" - + "ssions\022G.google.cloud.compute.v1.TestIam" - + "PermissionsNetworkFirewallPolicyRequest\032" - + "0.google.cloud.compute.v1.TestPermission" - + "sResponse\"\264\001\332A2project,resource,test_per" - + "missions_request_resource\202\323\344\223\002y\"T/comput" - + "e/v1/projects/{project}/global/firewallP" - + "olicies/{resource}/testIamPermissions:!t" - + "est_permissions_request_resource\032r\312A\026com" - + "pute.googleapis.com\322AVhttps://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform2\267\025\n\010Network" - + "s\022\243\002\n\nAddPeering\0221.google.cloud.compute." - + "v1.AddPeeringNetworkRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\275\001\332A5project,net" - + "work,networks_add_peering_request_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002l\"C/compute/v1" - + "/projects/{project}/global/networks/{net" - + "work}/addPeering:%networks_add_peering_r" - + "equest_resource\022\302\001\n\006Delete\022-.google.clou" - + "d.compute.v1.DeleteNetworkRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"e\332A\017projec" - + "t,network\212N\020GlobalOperations\202\323\344\223\002:*8/com" - + "pute/v1/projects/{project}/global/networ" - + "ks/{network}\022\247\001\n\003Get\022*.google.cloud.comp" - + "ute.v1.GetNetworkRequest\032 .google.cloud." - + "compute.v1.Network\"R\332A\017project,network\202\323" - + "\344\223\002:\0228/compute/v1/projects/{project}/glo" - + "bal/networks/{network}\022\377\001\n\025GetEffectiveF" - + "irewalls\022<.google.cloud.compute.v1.GetEf" - + "fectiveFirewallsNetworkRequest\032>.google." - + "cloud.compute.v1.NetworksGetEffectiveFir" - + "ewallsResponse\"h\332A\017project,network\202\323\344\223\002P" - + "\022N/compute/v1/projects/{project}/global/" - + "networks/{network}/getEffectiveFirewalls" - + "\022\323\001\n\006Insert\022-.google.cloud.compute.v1.In" - + "sertNetworkRequest\032\".google.cloud.comput" - + "e.v1.Operation\"v\332A\030project,network_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002B\"./compute/v" - + "1/projects/{project}/global/networks:\020ne" - + "twork_resource\022\234\001\n\004List\022,.google.cloud.c" - + "ompute.v1.ListNetworksRequest\032$.google.c" - + "loud.compute.v1.NetworkList\"@\332A\007project\202" - + "\323\344\223\0020\022./compute/v1/projects/{project}/gl" - + "obal/networks\022\351\001\n\021ListPeeringRoutes\0229.go" - + "ogle.cloud.compute.v1.ListPeeringRoutesN" - + "etworksRequest\0323.google.cloud.compute.v1" - + ".ExchangedPeeringRoutesList\"d\332A\017project," - + "network\202\323\344\223\002L\022J/compute/v1/projects/{pro" - + "ject}/global/networks/{network}/listPeer" - + "ingRoutes\022\344\001\n\005Patch\022,.google.cloud.compu" - + "te.v1.PatchNetworkRequest\032\".google.cloud" - + ".compute.v1.Operation\"\210\001\332A project,netwo" - + "rk,network_resource\212N\020GlobalOperations\202\323" - + "\344\223\002L28/compute/v1/projects/{project}/glo" - + "bal/networks/{network}:\020network_resource" - + "\022\262\002\n\rRemovePeering\0224.google.cloud.comput" - + "e.v1.RemovePeeringNetworkRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\306\001\332A8projec" - + "t,network,networks_remove_peering_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002r\"F/co" - + "mpute/v1/projects/{project}/global/netwo" - + "rks/{network}/removePeering:(networks_re" - + "move_peering_request_resource\022\355\001\n\022Switch" - + "ToCustomMode\0229.google.cloud.compute.v1.S" - + "witchToCustomModeNetworkRequest\032\".google" - + ".cloud.compute.v1.Operation\"x\332A\017project," - + "network\212N\020GlobalOperations\202\323\344\223\002M\"K/compu" - + "te/v1/projects/{project}/global/networks" - + "/{network}/switchToCustomMode\022\262\002\n\rUpdate" - + "Peering\0224.google.cloud.compute.v1.Update" - + "PeeringNetworkRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\306\001\332A8project,network,n" - + "etworks_update_peering_request_resource\212" - + "N\020GlobalOperations\202\323\344\223\002r2F/compute/v1/pr" - + "ojects/{project}/global/networks/{networ" - + "k}/updatePeering:(networks_update_peerin" - + "g_request_resource\032r\312A\026compute.googleapi" + + "ies/{firewall_policy}/patchRule:\035firewal" + + "l_policy_rule_resource\022\221\002\n\021RemoveAssocia" + + "tion\022F.google.cloud.compute.v1.RemoveAss" + + "ociationNetworkFirewallPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\217\001\332A\027pr" + + "oject,firewall_policy\212N\020GlobalOperations" + + "\202\323\344\223\002\\\"Z/compute/v1/projects/{project}/g" + + "lobal/firewallPolicies/{firewall_policy}" + + "/removeAssociation\022\374\001\n\nRemoveRule\022?.goog" + + "le.cloud.compute.v1.RemoveRuleNetworkFir" + + "ewallPolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\210\001\332A\027project,firewall_pol" + + "icy\212N\020GlobalOperations\202\323\344\223\002U\"S/compute/v" + + "1/projects/{project}/global/firewallPoli" + + "cies/{firewall_policy}/removeRule\022\245\002\n\014Se" + + "tIamPolicy\022A.google.cloud.compute.v1.Set" + + "IamPolicyNetworkFirewallPolicyRequest\032\037." + + "google.cloud.compute.v1.Policy\"\260\001\332A3proj" + + "ect,resource,global_set_policy_request_r" + + "esource\202\323\344\223\002t\"N/compute/v1/projects/{pro" + + "ject}/global/firewallPolicies/{resource}" + + "/setIamPolicy:\"global_set_policy_request" + + "_resource\022\306\002\n\022TestIamPermissions\022G.googl" + + "e.cloud.compute.v1.TestIamPermissionsNet", + "workFirewallPolicyRequest\0320.google.cloud" + + ".compute.v1.TestPermissionsResponse\"\264\001\332A" + + "2project,resource,test_permissions_reque" + + "st_resource\202\323\344\223\002y\"T/compute/v1/projects/" + + "{project}/global/firewallPolicies/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\032r\312A\026compute.googleapi" + "s.com\322AVhttps://www.googleapis.com/auth/" + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\353 \n\nNodeGroups\022\262\002\n\010AddNod" - + "es\0221.google.cloud.compute.v1.AddNodesNod" - + "eGroupRequest\032\".google.cloud.compute.v1." - + "Operation\"\316\001\332A>project,zone,node_group,n" - + "ode_groups_add_nodes_request_resource\212N\016" - + "ZoneOperations\202\323\344\223\002v\"L/compute/v1/projec" - + "ts/{project}/zones/{zone}/nodeGroups/{no" - + "de_group}/addNodes:&node_groups_add_node" - + "s_request_resource\022\304\001\n\016AggregatedList\0228." - + "google.cloud.compute.v1.AggregatedListNo" - + "deGroupsRequest\0320.google.cloud.compute.v" - + "1.NodeGroupAggregatedList\"F\332A\007project\202\323\344" - + "\223\0026\0224/compute/v1/projects/{project}/aggr" - + "egated/nodeGroups\022\325\001\n\006Delete\022/.google.cl" - + "oud.compute.v1.DeleteNodeGroupRequest\032\"." - + "google.cloud.compute.v1.Operation\"v\332A\027pr" - + "oject,zone,node_group\212N\016ZoneOperations\202\323" - + "\344\223\002E*C/compute/v1/projects/{project}/zon" - + "es/{zone}/nodeGroups/{node_group}\022\301\002\n\013De" - + "leteNodes\0224.google.cloud.compute.v1.Dele" - + "teNodesNodeGroupRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\327\001\332AAproject,zone,no" - + "de_group,node_groups_delete_nodes_reques" - + "t_resource\212N\016ZoneOperations\202\323\344\223\002|\"O/comp" - + "ute/v1/projects/{project}/zones/{zone}/n" - + "odeGroups/{node_group}/deleteNodes:)node" - + "_groups_delete_nodes_request_resource\022\276\001" - + "\n\003Get\022,.google.cloud.compute.v1.GetNodeG" - + "roupRequest\032\".google.cloud.compute.v1.No" - + "deGroup\"e\332A\027project,zone,node_group\202\323\344\223\002" - + "E\022C/compute/v1/projects/{project}/zones/" - + "{zone}/nodeGroups/{node_group}\022\326\001\n\014GetIa" - + "mPolicy\0225.google.cloud.compute.v1.GetIam" - + "PolicyNodeGroupRequest\032\037.google.cloud.co" - + "mpute.v1.Policy\"n\332A\025project,zone,resourc" - + "e\202\323\344\223\002P\022N/compute/v1/projects/{project}/" - + "zones/{zone}/nodeGroups/{resource}/getIa" - + "mPolicy\022\372\001\n\006Insert\022/.google.cloud.comput" - + "e.v1.InsertNodeGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\232\001\332A3project,zon" - + "e,initial_node_count,node_group_resource" - + "\212N\016ZoneOperations\202\323\344\223\002M\"6/compute/v1/pro" - + "jects/{project}/zones/{zone}/nodeGroups:" - + "\023node_group_resource\022\255\001\n\004List\022..google.c" - + "loud.compute.v1.ListNodeGroupsRequest\032&." - + "google.cloud.compute.v1.NodeGroupList\"M\332" - + "A\014project,zone\202\323\344\223\0028\0226/compute/v1/projec" - + "ts/{project}/zones/{zone}/nodeGroups\022\337\001\n" - + "\tListNodes\0223.google.cloud.compute.v1.Lis" - + "tNodesNodeGroupsRequest\032,.google.cloud.c" - + "ompute.v1.NodeGroupsListNodes\"o\332A\027projec" - + "t,zone,node_group\202\323\344\223\002O\"M/compute/v1/pro" - + "jects/{project}/zones/{zone}/nodeGroups/" - + "{node_group}/listNodes\022\375\001\n\005Patch\022..googl" - + "e.cloud.compute.v1.PatchNodeGroupRequest" - + "\032\".google.cloud.compute.v1.Operation\"\237\001\332" - + "A+project,zone,node_group,node_group_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002Z2C/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{node_group}:\023node_group_resource\022\345" - + "\002\n\022PerformMaintenance\022;.google.cloud.com" - + "pute.v1.PerformMaintenanceNodeGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\355" - + "\001\332AHproject,zone,node_group,node_groups_" - + "perform_maintenance_request_resource\212N\016Z" - + "oneOperations\202\323\344\223\002\212\001\"V/compute/v1/projec" - + "ts/{project}/zones/{zone}/nodeGroups/{no" - + "de_group}/performMaintenance:0node_group" - + "s_perform_maintenance_request_resource\022\232" - + "\002\n\014SetIamPolicy\0225.google.cloud.compute.v" - + "1.SetIamPolicyNodeGroupRequest\032\037.google." - + "cloud.compute.v1.Policy\"\261\001\332A6project,zon" - + "e,resource,zone_set_policy_request_resou" - + "rce\202\323\344\223\002r\"N/compute/v1/projects/{project" - + "}/zones/{zone}/nodeGroups/{resource}/set" - + "IamPolicy: zone_set_policy_request_resou" - + "rce\022\330\002\n\017SetNodeTemplate\0228.google.cloud.c" - + "ompute.v1.SetNodeTemplateNodeGroupReques" - + "t\032\".google.cloud.compute.v1.Operation\"\346\001" - + "\332AFproject,zone,node_group,node_groups_s" - + "et_node_template_request_resource\212N\016Zone" - + "Operations\202\323\344\223\002\205\001\"S/compute/v1/projects/" - + "{project}/zones/{zone}/nodeGroups/{node_" - + "group}/setNodeTemplate:.node_groups_set_" - + "node_template_request_resource\022\205\003\n\030Simul" - + "ateMaintenanceEvent\022A.google.cloud.compu" - + "te.v1.SimulateMaintenanceEventNodeGroupR" + + "cloud-platform2\304\004\n\017NetworkProfiles\022\314\001\n\003G" + + "et\0221.google.cloud.compute.v1.GetNetworkP" + + "rofileRequest\032\'.google.cloud.compute.v1." + + "NetworkProfile\"i\332A\027project,network_profi" + + "le\202\323\344\223\002I\022G/compute/v1/projects/{project}" + + "/global/networkProfiles/{network_profile" + + "}\022\272\001\n\004List\0223.google.cloud.compute.v1.Lis" + + "tNetworkProfilesRequest\0324.google.cloud.c" + + "ompute.v1.NetworkProfilesListResponse\"G\332" + + "A\007project\202\323\344\223\0027\0225/compute/v1/projects/{p" + + "roject}/global/networkProfiles\032\244\001\312A\026comp" + + "ute.googleapis.com\322A\207\001https://www.google" + + "apis.com/auth/compute.readonly,https://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform2\267\025" + + "\n\010Networks\022\243\002\n\nAddPeering\0221.google.cloud" + + ".compute.v1.AddPeeringNetworkRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\275\001\332A5pr" + + "oject,network,networks_add_peering_reque" + + "st_resource\212N\020GlobalOperations\202\323\344\223\002l\"C/c" + + "ompute/v1/projects/{project}/global/netw" + + "orks/{network}/addPeering:%networks_add_" + + "peering_request_resource\022\302\001\n\006Delete\022-.go" + + "ogle.cloud.compute.v1.DeleteNetworkReque" + + "st\032\".google.cloud.compute.v1.Operation\"e" + + "\332A\017project,network\212N\020GlobalOperations\202\323\344" + + "\223\002:*8/compute/v1/projects/{project}/glob" + + "al/networks/{network}\022\247\001\n\003Get\022*.google.c" + + "loud.compute.v1.GetNetworkRequest\032 .goog" + + "le.cloud.compute.v1.Network\"R\332A\017project," + + "network\202\323\344\223\002:\0228/compute/v1/projects/{pro" + + "ject}/global/networks/{network}\022\377\001\n\025GetE" + + "ffectiveFirewalls\022<.google.cloud.compute" + + ".v1.GetEffectiveFirewallsNetworkRequest\032" + + ">.google.cloud.compute.v1.NetworksGetEff" + + "ectiveFirewallsResponse\"h\332A\017project,netw" + + "ork\202\323\344\223\002P\022N/compute/v1/projects/{project" + + "}/global/networks/{network}/getEffective" + + "Firewalls\022\323\001\n\006Insert\022-.google.cloud.comp" + + "ute.v1.InsertNetworkRequest\032\".google.clo" + + "ud.compute.v1.Operation\"v\332A\030project,netw" + + "ork_resource\212N\020GlobalOperations\202\323\344\223\002B\"./" + + "compute/v1/projects/{project}/global/net" + + "works:\020network_resource\022\234\001\n\004List\022,.googl" + + "e.cloud.compute.v1.ListNetworksRequest\032$" + + ".google.cloud.compute.v1.NetworkList\"@\332A" + + "\007project\202\323\344\223\0020\022./compute/v1/projects/{pr" + + "oject}/global/networks\022\351\001\n\021ListPeeringRo" + + "utes\0229.google.cloud.compute.v1.ListPeeri" + + "ngRoutesNetworksRequest\0323.google.cloud.c" + + "ompute.v1.ExchangedPeeringRoutesList\"d\332A" + + "\017project,network\202\323\344\223\002L\022J/compute/v1/proj" + + "ects/{project}/global/networks/{network}" + + "/listPeeringRoutes\022\344\001\n\005Patch\022,.google.cl" + + "oud.compute.v1.PatchNetworkRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\210\001\332A proj" + + "ect,network,network_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002L28/compute/v1/projects/{pro" + + "ject}/global/networks/{network}:\020network" + + "_resource\022\262\002\n\rRemovePeering\0224.google.clo" + + "ud.compute.v1.RemovePeeringNetworkReques" + + "t\032\".google.cloud.compute.v1.Operation\"\306\001" + + "\332A8project,network,networks_remove_peeri" + + "ng_request_resource\212N\020GlobalOperations\202\323" + + "\344\223\002r\"F/compute/v1/projects/{project}/glo" + + "bal/networks/{network}/removePeering:(ne" + + "tworks_remove_peering_request_resource\022\355" + + "\001\n\022SwitchToCustomMode\0229.google.cloud.com" + + "pute.v1.SwitchToCustomModeNetworkRequest" + + "\032\".google.cloud.compute.v1.Operation\"x\332A" + + "\017project,network\212N\020GlobalOperations\202\323\344\223\002" + + "M\"K/compute/v1/projects/{project}/global" + + "/networks/{network}/switchToCustomMode\022\262" + + "\002\n\rUpdatePeering\0224.google.cloud.compute." + + "v1.UpdatePeeringNetworkRequest\032\".google." + + "cloud.compute.v1.Operation\"\306\001\332A8project," + + "network,networks_update_peering_request_" + + "resource\212N\020GlobalOperations\202\323\344\223\002r2F/comp" + + "ute/v1/projects/{project}/global/network" + + "s/{network}/updatePeering:(networks_upda" + + "te_peering_request_resource\032r\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform2\353 \n\nNodeGroups\022\262" + + "\002\n\010AddNodes\0221.google.cloud.compute.v1.Ad" + + "dNodesNodeGroupRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\316\001\332A>project,zone,nod" + + "e_group,node_groups_add_nodes_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002v\"L/compute/" + + "v1/projects/{project}/zones/{zone}/nodeG" + + "roups/{node_group}/addNodes:&node_groups" + + "_add_nodes_request_resource\022\304\001\n\016Aggregat" + + "edList\0228.google.cloud.compute.v1.Aggrega" + + "tedListNodeGroupsRequest\0320.google.cloud." + + "compute.v1.NodeGroupAggregatedList\"F\332A\007p" + + "roject\202\323\344\223\0026\0224/compute/v1/projects/{proj" + + "ect}/aggregated/nodeGroups\022\325\001\n\006Delete\022/." + + "google.cloud.compute.v1.DeleteNodeGroupR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\201\002\332AOproject,zone,node_group,node_gro" - + "ups_simulate_maintenance_event_request_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002\227\001\"\\/comput" - + "e/v1/projects/{project}/zones/{zone}/nod" - + "eGroups/{node_group}/simulateMaintenance" - + "Event:7node_groups_simulate_maintenance_" - + "event_request_resource\022\277\002\n\022TestIamPermis" - + "sions\022;.google.cloud.compute.v1.TestIamP" - + "ermissionsNodeGroupRequest\0320.google.clou" - + "d.compute.v1.TestPermissionsResponse\"\271\001\332" - + "A7project,zone,resource,test_permissions" - + "_request_resource\202\323\344\223\002y\"T/compute/v1/pro" - + "jects/{project}/zones/{zone}/nodeGroups/" - + "{resource}/testIamPermissions:!test_perm" - + "issions_request_resource\032r\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform2\264\020\n\rNodeTemplates\022\315" - + "\001\n\016AggregatedList\022;.google.cloud.compute" - + ".v1.AggregatedListNodeTemplatesRequest\0323" - + ".google.cloud.compute.v1.NodeTemplateAgg" - + "regatedList\"I\332A\007project\202\323\344\223\0029\0227/compute/" - + "v1/projects/{project}/aggregated/nodeTem" - + "plates\022\352\001\n\006Delete\0222.google.cloud.compute" - + ".v1.DeleteNodeTemplateRequest\032\".google.c" - + "loud.compute.v1.Operation\"\207\001\332A\034project,r" - + "egion,node_template\212N\020RegionOperations\202\323" - + "\344\223\002O*M/compute/v1/projects/{project}/reg" - + "ions/{region}/nodeTemplates/{node_templa" - + "te}\022\323\001\n\003Get\022/.google.cloud.compute.v1.Ge" - + "tNodeTemplateRequest\032%.google.cloud.comp" - + "ute.v1.NodeTemplate\"t\332A\034project,region,n" - + "ode_template\202\323\344\223\002O\022M/compute/v1/projects" - + "/{project}/regions/{region}/nodeTemplate" - + "s/{node_template}\022\342\001\n\014GetIamPolicy\0228.goo" - + "gle.cloud.compute.v1.GetIamPolicyNodeTem" - + "plateRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"w\332A\027project,region,resource\202\323\344\223\002W\022" - + "U/compute/v1/projects/{project}/regions/" - + "{region}/nodeTemplates/{resource}/getIam" - + "Policy\022\373\001\n\006Insert\0222.google.cloud.compute" - + ".v1.InsertNodeTemplateRequest\032\".google.c" - + "loud.compute.v1.Operation\"\230\001\332A%project,r" - + "egion,node_template_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002W\"=/compute/v1/projects/{pro" - + "ject}/regions/{region}/nodeTemplates:\026no" - + "de_template_resource\022\274\001\n\004List\0221.google.c" - + "loud.compute.v1.ListNodeTemplatesRequest" - + "\032).google.cloud.compute.v1.NodeTemplateL" - + "ist\"V\332A\016project,region\202\323\344\223\002?\022=/compute/v" - + "1/projects/{project}/regions/{region}/no" - + "deTemplates\022\252\002\n\014SetIamPolicy\0228.google.cl" - + "oud.compute.v1.SetIamPolicyNodeTemplateR" - + "equest\032\037.google.cloud.compute.v1.Policy\"" - + "\276\001\332A:project,region,resource,region_set_" - + "policy_request_resource\202\323\344\223\002{\"U/compute/" - + "v1/projects/{project}/regions/{region}/n" - + "odeTemplates/{resource}/setIamPolicy:\"re" - + "gion_set_policy_request_resource\022\314\002\n\022Tes" - + "tIamPermissions\022>.google.cloud.compute.v" - + "1.TestIamPermissionsNodeTemplateRequest\032" - + "0.google.cloud.compute.v1.TestPermission" - + "sResponse\"\303\001\332A9project,region,resource,t" - + "est_permissions_request_resource\202\323\344\223\002\200\001\"" - + "[/compute/v1/projects/{project}/regions/" - + "{region}/nodeTemplates/{resource}/testIa" - + "mPermissions:!test_permissions_request_r" - + "esource\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\337\005\n\tNodeTypes\022\301\001\n\016AggregatedList\0227.g" - + "oogle.cloud.compute.v1.AggregatedListNod" - + "eTypesRequest\032/.google.cloud.compute.v1." - + "NodeTypeAggregatedList\"E\332A\007project\202\323\344\223\0025" - + "\0223/compute/v1/projects/{project}/aggrega" - + "ted/nodeTypes\022\271\001\n\003Get\022+.google.cloud.com" - + "pute.v1.GetNodeTypeRequest\032!.google.clou" - + "d.compute.v1.NodeType\"b\332A\026project,zone,n" - + "ode_type\202\323\344\223\002C\022A/compute/v1/projects/{pr" - + "oject}/zones/{zone}/nodeTypes/{node_type" - + "}\022\252\001\n\004List\022-.google.cloud.compute.v1.Lis" - + "tNodeTypesRequest\032%.google.cloud.compute" - + ".v1.NodeTypeList\"L\332A\014project,zone\202\323\344\223\0027\022" - + "5/compute/v1/projects/{project}/zones/{z" - + "one}/nodeTypes\032\244\001\312A\026compute.googleapis.c" - + "om\322A\207\001https://www.googleapis.com/auth/co" - + "mpute.readonly,https://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform2\220\017\n\020PacketMirrorin" - + "gs\022\326\001\n\016AggregatedList\022>.google.cloud.com" - + "pute.v1.AggregatedListPacketMirroringsRe" - + "quest\0326.google.cloud.compute.v1.PacketMi" - + "rroringAggregatedList\"L\332A\007project\202\323\344\223\002<\022" - + ":/compute/v1/projects/{project}/aggregat" - + "ed/packetMirrorings\022\366\001\n\006Delete\0225.google." - + "cloud.compute.v1.DeletePacketMirroringRe" + + "on\"v\332A\027project,zone,node_group\212N\016ZoneOpe" + + "rations\202\323\344\223\002E*C/compute/v1/projects/{pro" + + "ject}/zones/{zone}/nodeGroups/{node_grou" + + "p}\022\301\002\n\013DeleteNodes\0224.google.cloud.comput" + + "e.v1.DeleteNodesNodeGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\327\001\332AAprojec" + + "t,zone,node_group,node_groups_delete_nod" + + "es_request_resource\212N\016ZoneOperations\202\323\344\223" + + "\002|\"O/compute/v1/projects/{project}/zones" + + "/{zone}/nodeGroups/{node_group}/deleteNo" + + "des:)node_groups_delete_nodes_request_re" + + "source\022\276\001\n\003Get\022,.google.cloud.compute.v1" + + ".GetNodeGroupRequest\032\".google.cloud.comp" + + "ute.v1.NodeGroup\"e\332A\027project,zone,node_g" + + "roup\202\323\344\223\002E\022C/compute/v1/projects/{projec" + + "t}/zones/{zone}/nodeGroups/{node_group}\022" + + "\326\001\n\014GetIamPolicy\0225.google.cloud.compute." + + "v1.GetIamPolicyNodeGroupRequest\032\037.google" + + ".cloud.compute.v1.Policy\"n\332A\025project,zon" + + "e,resource\202\323\344\223\002P\022N/compute/v1/projects/{" + + "project}/zones/{zone}/nodeGroups/{resour" + + "ce}/getIamPolicy\022\372\001\n\006Insert\022/.google.clo" + + "ud.compute.v1.InsertNodeGroupRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\232\001\332A3pr" + + "oject,zone,initial_node_count,node_group" + + "_resource\212N\016ZoneOperations\202\323\344\223\002M\"6/compu" + + "te/v1/projects/{project}/zones/{zone}/no" + + "deGroups:\023node_group_resource\022\255\001\n\004List\022." + + ".google.cloud.compute.v1.ListNodeGroupsR" + + "equest\032&.google.cloud.compute.v1.NodeGro" + + "upList\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/" + + "v1/projects/{project}/zones/{zone}/nodeG" + + "roups\022\337\001\n\tListNodes\0223.google.cloud.compu" + + "te.v1.ListNodesNodeGroupsRequest\032,.googl" + + "e.cloud.compute.v1.NodeGroupsListNodes\"o" + + "\332A\027project,zone,node_group\202\323\344\223\002O\"M/compu" + + "te/v1/projects/{project}/zones/{zone}/no" + + "deGroups/{node_group}/listNodes\022\375\001\n\005Patc" + + "h\022..google.cloud.compute.v1.PatchNodeGro" + + "upRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\237\001\332A+project,zone,node_group,node_" + + "group_resource\212N\016ZoneOperations\202\323\344\223\002Z2C/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeGroups/{node_group}:\023node_group_r" + + "esource\022\345\002\n\022PerformMaintenance\022;.google." + + "cloud.compute.v1.PerformMaintenanceNodeG" + + "roupRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\355\001\332AHproject,zone,node_group,nod" + + "e_groups_perform_maintenance_request_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002\212\001\"V/compute/" + + "v1/projects/{project}/zones/{zone}/nodeG" + + "roups/{node_group}/performMaintenance:0n" + + "ode_groups_perform_maintenance_request_r" + + "esource\022\232\002\n\014SetIamPolicy\0225.google.cloud." + + "compute.v1.SetIamPolicyNodeGroupRequest\032" + + "\037.google.cloud.compute.v1.Policy\"\261\001\332A6pr" + + "oject,zone,resource,zone_set_policy_requ" + + "est_resource\202\323\344\223\002r\"N/compute/v1/projects" + + "/{project}/zones/{zone}/nodeGroups/{reso" + + "urce}/setIamPolicy: zone_set_policy_requ" + + "est_resource\022\330\002\n\017SetNodeTemplate\0228.googl" + + "e.cloud.compute.v1.SetNodeTemplateNodeGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\346\001\332AFproject,zone,node_group,node" + + "_groups_set_node_template_request_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\205\001\"S/compute/v1/" + + "projects/{project}/zones/{zone}/nodeGrou" + + "ps/{node_group}/setNodeTemplate:.node_gr" + + "oups_set_node_template_request_resource\022" + + "\205\003\n\030SimulateMaintenanceEvent\022A.google.cl" + + "oud.compute.v1.SimulateMaintenanceEventN" + + "odeGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\201\002\332AOproject,zone,node_group" + + ",node_groups_simulate_maintenance_event_" + + "request_resource\212N\016ZoneOperations\202\323\344\223\002\227\001" + + "\"\\/compute/v1/projects/{project}/zones/{" + + "zone}/nodeGroups/{node_group}/simulateMa" + + "intenanceEvent:7node_groups_simulate_mai" + + "ntenance_event_request_resource\022\277\002\n\022Test" + + "IamPermissions\022;.google.cloud.compute.v1" + + ".TestIamPermissionsNodeGroupRequest\0320.go" + + "ogle.cloud.compute.v1.TestPermissionsRes" + + "ponse\"\271\001\332A7project,zone,resource,test_pe" + + "rmissions_request_resource\202\323\344\223\002y\"T/compu" + + "te/v1/projects/{project}/zones/{zone}/no" + + "deGroups/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\264\020\n\rNodeTe" + + "mplates\022\315\001\n\016AggregatedList\022;.google.clou" + + "d.compute.v1.AggregatedListNodeTemplates" + + "Request\0323.google.cloud.compute.v1.NodeTe" + + "mplateAggregatedList\"I\332A\007project\202\323\344\223\0029\0227" + + "/compute/v1/projects/{project}/aggregate" + + "d/nodeTemplates\022\352\001\n\006Delete\0222.google.clou" + + "d.compute.v1.DeleteNodeTemplateRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\207\001\332A\034" + + "project,region,node_template\212N\020RegionOpe" + + "rations\202\323\344\223\002O*M/compute/v1/projects/{pro" + + "ject}/regions/{region}/nodeTemplates/{no" + + "de_template}\022\323\001\n\003Get\022/.google.cloud.comp" + + "ute.v1.GetNodeTemplateRequest\032%.google.c" + + "loud.compute.v1.NodeTemplate\"t\332A\034project" + + ",region,node_template\202\323\344\223\002O\022M/compute/v1" + + "/projects/{project}/regions/{region}/nod" + + "eTemplates/{node_template}\022\342\001\n\014GetIamPol" + + "icy\0228.google.cloud.compute.v1.GetIamPoli" + + "cyNodeTemplateRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"w\332A\027project,region,resour" + + "ce\202\323\344\223\002W\022U/compute/v1/projects/{project}" + + "/regions/{region}/nodeTemplates/{resourc" + + "e}/getIamPolicy\022\373\001\n\006Insert\0222.google.clou" + + "d.compute.v1.InsertNodeTemplateRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\230\001\332A%" + + "project,region,node_template_resource\212N\020" + + "RegionOperations\202\323\344\223\002W\"=/compute/v1/proj" + + "ects/{project}/regions/{region}/nodeTemp" + + "lates:\026node_template_resource\022\274\001\n\004List\0221" + + ".google.cloud.compute.v1.ListNodeTemplat" + + "esRequest\032).google.cloud.compute.v1.Node" + + "TemplateList\"V\332A\016project,region\202\323\344\223\002?\022=/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/nodeTemplates\022\252\002\n\014SetIamPolicy\0228." + + "google.cloud.compute.v1.SetIamPolicyNode" + + "TemplateRequest\032\037.google.cloud.compute.v" + + "1.Policy\"\276\001\332A:project,region,resource,re" + + "gion_set_policy_request_resource\202\323\344\223\002{\"U" + + "/compute/v1/projects/{project}/regions/{" + + "region}/nodeTemplates/{resource}/setIamP" + + "olicy:\"region_set_policy_request_resourc" + + "e\022\314\002\n\022TestIamPermissions\022>.google.cloud." + + "compute.v1.TestIamPermissionsNodeTemplat" + + "eRequest\0320.google.cloud.compute.v1.TestP" + + "ermissionsResponse\"\303\001\332A9project,region,r" + + "esource,test_permissions_request_resourc" + + "e\202\323\344\223\002\200\001\"[/compute/v1/projects/{project}" + + "/regions/{region}/nodeTemplates/{resourc" + + "e}/testIamPermissions:!test_permissions_" + + "request_resource\032r\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform2\337\005\n\tNodeTypes\022\301\001\n\016Aggregate" + + "dList\0227.google.cloud.compute.v1.Aggregat" + + "edListNodeTypesRequest\032/.google.cloud.co" + + "mpute.v1.NodeTypeAggregatedList\"E\332A\007proj" + + "ect\202\323\344\223\0025\0223/compute/v1/projects/{project" + + "}/aggregated/nodeTypes\022\271\001\n\003Get\022+.google." + + "cloud.compute.v1.GetNodeTypeRequest\032!.go" + + "ogle.cloud.compute.v1.NodeType\"b\332A\026proje" + + "ct,zone,node_type\202\323\344\223\002C\022A/compute/v1/pro" + + "jects/{project}/zones/{zone}/nodeTypes/{" + + "node_type}\022\252\001\n\004List\022-.google.cloud.compu" + + "te.v1.ListNodeTypesRequest\032%.google.clou" + + "d.compute.v1.NodeTypeList\"L\332A\014project,zo" + + "ne\202\323\344\223\0027\0225/compute/v1/projects/{project}" + + "/zones/{zone}/nodeTypes\032\244\001\312A\026compute.goo" + + "gleapis.com\322A\207\001https://www.googleapis.co" + + "m/auth/compute.readonly,https://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\220\017\n\020Packe" + + "tMirrorings\022\326\001\n\016AggregatedList\022>.google." + + "cloud.compute.v1.AggregatedListPacketMir" + + "roringsRequest\0326.google.cloud.compute.v1" + + ".PacketMirroringAggregatedList\"L\332A\007proje" + + "ct\202\323\344\223\002<\022:/compute/v1/projects/{project}" + + "/aggregated/packetMirrorings\022\366\001\n\006Delete\022" + + "5.google.cloud.compute.v1.DeletePacketMi" + + "rroringRequest\032\".google.cloud.compute.v1" + + ".Operation\"\220\001\332A\037project,region,packet_mi" + + "rroring\212N\020RegionOperations\202\323\344\223\002U*S/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/packetMirrorings/{packet_mirroring}\022\342\001" + + "\n\003Get\0222.google.cloud.compute.v1.GetPacke" + + "tMirroringRequest\032(.google.cloud.compute" + + ".v1.PacketMirroring\"}\332A\037project,region,p" + + "acket_mirroring\202\323\344\223\002U\022S/compute/v1/proje" + + "cts/{project}/regions/{region}/packetMir" + + "rorings/{packet_mirroring}\022\207\002\n\006Insert\0225." + + "google.cloud.compute.v1.InsertPacketMirr" + + "oringRequest\032\".google.cloud.compute.v1.O" + + "peration\"\241\001\332A(project,region,packet_mirr" + + "oring_resource\212N\020RegionOperations\202\323\344\223\002]\"" + + "@/compute/v1/projects/{project}/regions/" + + "{region}/packetMirrorings:\031packet_mirror" + + "ing_resource\022\305\001\n\004List\0224.google.cloud.com" + + "pute.v1.ListPacketMirroringsRequest\032,.go" + + "ogle.cloud.compute.v1.PacketMirroringLis" + + "t\"Y\332A\016project,region\202\323\344\223\002B\022@/compute/v1/" + + "projects/{project}/regions/{region}/pack" + + "etMirrorings\022\251\002\n\005Patch\0224.google.cloud.co" + + "mpute.v1.PatchPacketMirroringRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\305\001\332A9pr" + + "oject,region,packet_mirroring,packet_mir" + + "roring_resource\212N\020RegionOperations\202\323\344\223\002p" + + "2S/compute/v1/projects/{project}/regions" + + "/{region}/packetMirrorings/{packet_mirro" + + "ring}:\031packet_mirroring_resource\022\322\002\n\022Tes" + + "tIamPermissions\022A.google.cloud.compute.v" + + "1.TestIamPermissionsPacketMirroringReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\306\001\332A9project,region,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "\203\001\"^/compute/v1/projects/{project}/regio" + + "ns/{region}/packetMirrorings/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\253\033\n\010Projects\022\277\001\n\016DisableXpnHos" + + "t\0225.google.cloud.compute.v1.DisableXpnHo" + + "stProjectRequest\032\".google.cloud.compute." + + "v1.Operation\"R\332A\007project\212N\020GlobalOperati" + + "ons\202\323\344\223\002/\"-/compute/v1/projects/{project" + + "}/disableXpnHost\022\253\002\n\022DisableXpnResource\022" + + "9.google.cloud.compute.v1.DisableXpnReso" + + "urceProjectRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\265\001\332A6project,projects_dis" + + "able_xpn_resource_request_resource\212N\020Glo" + + "balOperations\202\323\344\223\002c\"1/compute/v1/project" + + "s/{project}/disableXpnResource:.projects" + + "_disable_xpn_resource_request_resource\022\274" + + "\001\n\rEnableXpnHost\0224.google.cloud.compute." + + "v1.EnableXpnHostProjectRequest\032\".google." + + "cloud.compute.v1.Operation\"Q\332A\007project\212N" + + "\020GlobalOperations\202\323\344\223\002.\",/compute/v1/pro" + + "jects/{project}/enableXpnHost\022\246\002\n\021Enable" + + "XpnResource\0228.google.cloud.compute.v1.En" + + "ableXpnResourceProjectRequest\032\".google.c" + + "loud.compute.v1.Operation\"\262\001\332A5project,p" + + "rojects_enable_xpn_resource_request_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002a\"0/compute/" + + "v1/projects/{project}/enableXpnResource:" + + "-projects_enable_xpn_resource_request_re" + + "source\022\205\001\n\003Get\022*.google.cloud.compute.v1" + + ".GetProjectRequest\032 .google.cloud.comput" + + "e.v1.Project\"0\332A\007project\202\323\344\223\002 \022\036/compute" + + "/v1/projects/{project}\022\236\001\n\nGetXpnHost\0221." + + "google.cloud.compute.v1.GetXpnHostProjec" + + "tRequest\032 .google.cloud.compute.v1.Proje" + + "ct\";\332A\007project\202\323\344\223\002+\022)/compute/v1/projec" + + "ts/{project}/getXpnHost\022\276\001\n\017GetXpnResour" + + "ces\0227.google.cloud.compute.v1.GetXpnReso" + + "urcesProjectsRequest\0320.google.cloud.comp" + + "ute.v1.ProjectsGetXpnResources\"@\332A\007proje" + + "ct\202\323\344\223\0020\022./compute/v1/projects/{project}" + + "/getXpnResources\022\375\001\n\014ListXpnHosts\0224.goog" + + "le.cloud.compute.v1.ListXpnHostsProjects" + + "Request\032$.google.cloud.compute.v1.XpnHos" + + "tList\"\220\001\332A0project,projects_list_xpn_hos" + + "ts_request_resource\202\323\344\223\002W\"+/compute/v1/p" + + "rojects/{project}/listXpnHosts:(projects" + + "_list_xpn_hosts_request_resource\022\345\001\n\010Mov" + + "eDisk\022/.google.cloud.compute.v1.MoveDisk" + + "ProjectRequest\032\".google.cloud.compute.v1" + + ".Operation\"\203\001\332A\"project,disk_move_reques" + + "t_resource\212N\020GlobalOperations\202\323\344\223\002E\"\'/co" + + "mpute/v1/projects/{project}/moveDisk:\032di" + + "sk_move_request_resource\022\371\001\n\014MoveInstanc" + + "e\0223.google.cloud.compute.v1.MoveInstance" + + "ProjectRequest\032\".google.cloud.compute.v1" + + ".Operation\"\217\001\332A&project,instance_move_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002M\"" + + "+/compute/v1/projects/{project}/moveInst" + + "ance:\036instance_move_request_resource\022\250\002\n" + + "\021SetCloudArmorTier\0228.google.cloud.comput" + + "e.v1.SetCloudArmorTierProjectRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\264\001\332A6pr" + + "oject,projects_set_cloud_armor_tier_requ" + + "est_resource\212N\020GlobalOperations\202\323\344\223\002b\"0/" + + "compute/v1/projects/{project}/setCloudAr" + + "morTier:.projects_set_cloud_armor_tier_r" + + "equest_resource\022\206\002\n\031SetCommonInstanceMet" + + "adata\022@.google.cloud.compute.v1.SetCommo" + + "nInstanceMetadataProjectRequest\032\".google" + + ".cloud.compute.v1.Operation\"\202\001\332A\031project" + + ",metadata_resource\212N\020GlobalOperations\202\323\344" + + "\223\002M\"8/compute/v1/projects/{project}/setC" + + "ommonInstanceMetadata:\021metadata_resource" + + "\022\274\002\n\025SetDefaultNetworkTier\022<.google.clou" + + "d.compute.v1.SetDefaultNetworkTierProjec" + + "tRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\300\001\332A:project,projects_set_default_n" + + "etwork_tier_request_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002j\"4/compute/v1/projects/{pro" + + "ject}/setDefaultNetworkTier:2projects_se" + + "t_default_network_tier_request_resource\022" + + "\221\002\n\024SetUsageExportBucket\022;.google.cloud." + + "compute.v1.SetUsageExportBucketProjectRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\220\001\332A\037project,region,packet_mirroring\212N" - + "\020RegionOperations\202\323\344\223\002U*S/compute/v1/pro" - + "jects/{project}/regions/{region}/packetM" - + "irrorings/{packet_mirroring}\022\342\001\n\003Get\0222.g" - + "oogle.cloud.compute.v1.GetPacketMirrorin" - + "gRequest\032(.google.cloud.compute.v1.Packe" - + "tMirroring\"}\332A\037project,region,packet_mir" - + "roring\202\323\344\223\002U\022S/compute/v1/projects/{proj" - + "ect}/regions/{region}/packetMirrorings/{" - + "packet_mirroring}\022\207\002\n\006Insert\0225.google.cl" - + "oud.compute.v1.InsertPacketMirroringRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\241\001\332A(project,region,packet_mirroring_res" - + "ource\212N\020RegionOperations\202\323\344\223\002]\"@/compute" - + "/v1/projects/{project}/regions/{region}/" - + "packetMirrorings:\031packet_mirroring_resou" - + "rce\022\305\001\n\004List\0224.google.cloud.compute.v1.L" - + "istPacketMirroringsRequest\032,.google.clou" - + "d.compute.v1.PacketMirroringList\"Y\332A\016pro" - + "ject,region\202\323\344\223\002B\022@/compute/v1/projects/" - + "{project}/regions/{region}/packetMirrori" - + "ngs\022\251\002\n\005Patch\0224.google.cloud.compute.v1." - + "PatchPacketMirroringRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\305\001\332A9project,reg" - + "ion,packet_mirroring,packet_mirroring_re" - + "source\212N\020RegionOperations\202\323\344\223\002p2S/comput" + + "n\"\227\001\332A&project,usage_export_location_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002U\"3/compute", + "/v1/projects/{project}/setUsageExportBuc" + + "ket:\036usage_export_location_resource\032r\312A\026" + + "compute.googleapis.com\322AVhttps://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform2\356\017\n\030Publ" + + "icAdvertisedPrefixes\022\222\002\n\010Announce\022?.goog" + + "le.cloud.compute.v1.AnnouncePublicAdvert" + + "isedPrefixeRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\240\001\332A project,public_adver" + + "tised_prefix\212N\020GlobalOperations\202\323\344\223\002d\"b/" + + "compute/v1/projects/{project}/global/pub" + + "licAdvertisedPrefixes/{public_advertised" + + "_prefix}/announce\022\205\002\n\006Delete\022=.google.cl" + + "oud.compute.v1.DeletePublicAdvertisedPre" + + "fixeRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\227\001\332A project,public_advertised_p" + + "refix\212N\020GlobalOperations\202\323\344\223\002[*Y/compute" + + "/v1/projects/{project}/global/publicAdve" + + "rtisedPrefixes/{public_advertised_prefix" + + "}\022\371\001\n\003Get\022:.google.cloud.compute.v1.GetP" + + "ublicAdvertisedPrefixeRequest\032/.google.c" + + "loud.compute.v1.PublicAdvertisedPrefix\"\204" + + "\001\332A project,public_advertised_prefix\202\323\344\223" + + "\002[\022Y/compute/v1/projects/{project}/globa" + + "l/publicAdvertisedPrefixes/{public_adver" + + "tised_prefix}\022\226\002\n\006Insert\022=.google.cloud." + + "compute.v1.InsertPublicAdvertisedPrefixe" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\250\001\332A)project,public_advertised_prefi" + + "x_resource\212N\020GlobalOperations\202\323\344\223\002c\">/co" + + "mpute/v1/projects/{project}/global/publi" + + "cAdvertisedPrefixes:!public_advertised_p" + + "refix_resource\022\313\001\n\004List\022<.google.cloud.c" + + "ompute.v1.ListPublicAdvertisedPrefixesRe" + + "quest\0323.google.cloud.compute.v1.PublicAd" + + "vertisedPrefixList\"P\332A\007project\202\323\344\223\002@\022>/c" + + "ompute/v1/projects/{project}/global/publ" + + "icAdvertisedPrefixes\022\310\002\n\005Patch\022<.google." + + "cloud.compute.v1.PatchPublicAdvertisedPr" + + "efixeRequest\032\".google.cloud.compute.v1.O" + + "peration\"\334\001\332ABproject,public_advertised_" + + "prefix,public_advertised_prefix_resource" + + "\212N\020GlobalOperations\202\323\344\223\002~2Y/compute/v1/p" + + "rojects/{project}/global/publicAdvertise" + + "dPrefixes/{public_advertised_prefix}:!pu" + + "blic_advertised_prefix_resource\022\222\002\n\010With" + + "draw\022?.google.cloud.compute.v1.WithdrawP" + + "ublicAdvertisedPrefixeRequest\032\".google.c" + + "loud.compute.v1.Operation\"\240\001\332A project,p" + + "ublic_advertised_prefix\212N\020GlobalOperatio" + + "ns\202\323\344\223\002d\"b/compute/v1/projects/{project}" + + "/global/publicAdvertisedPrefixes/{public" + + "_advertised_prefix}/withdraw\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\264\022\n\027PublicDeleg" + + "atedPrefixes\022\352\001\n\016AggregatedList\022E.google" + + ".cloud.compute.v1.AggregatedListPublicDe" + + "legatedPrefixesRequest\032<.google.cloud.co" + + "mpute.v1.PublicDelegatedPrefixAggregated" + + "List\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/proj" + + "ects/{project}/aggregated/publicDelegate" + + "dPrefixes\022\237\002\n\010Announce\022>.google.cloud.co" + + "mpute.v1.AnnouncePublicDelegatedPrefixeR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\256\001\332A&project,region,public_delegated_" + + "prefix\212N\020RegionOperations\202\323\344\223\002l\"j/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/publicDelegatedPrefixes/{public_delegat" + + "ed_prefix}/announce\022\222\002\n\006Delete\022<.google." + + "cloud.compute.v1.DeletePublicDelegatedPr" + + "efixeRequest\032\".google.cloud.compute.v1.O" + + "peration\"\245\001\332A&project,region,public_dele" + + "gated_prefix\212N\020RegionOperations\202\323\344\223\002c*a/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/publicDelegatedPrefixes/{public_d" + + "elegated_prefix}\022\205\002\n\003Get\0229.google.cloud." + + "compute.v1.GetPublicDelegatedPrefixeRequ" + + "est\032..google.cloud.compute.v1.PublicDele" + + "gatedPrefix\"\222\001\332A&project,region,public_d" + + "elegated_prefix\202\323\344\223\002c\022a/compute/v1/proje" + + "cts/{project}/regions/{region}/publicDel" + + "egatedPrefixes/{public_delegated_prefix}" + + "\022\243\002\n\006Insert\022<.google.cloud.compute.v1.In" + + "sertPublicDelegatedPrefixeRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\266\001\332A/proje" + + "ct,region,public_delegated_prefix_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002k\"G/compute/v1" + + "/projects/{project}/regions/{region}/pub" + + "licDelegatedPrefixes: public_delegated_p" + + "refix_resource\022\331\001\n\004List\022;.google.cloud.c" + + "ompute.v1.ListPublicDelegatedPrefixesReq" + + "uest\0322.google.cloud.compute.v1.PublicDel" + + "egatedPrefixList\"`\332A\016project,region\202\323\344\223\002" + + "I\022G/compute/v1/projects/{project}/region" + + "s/{region}/publicDelegatedPrefixes\022\324\002\n\005P" + + "atch\022;.google.cloud.compute.v1.PatchPubl" + + "icDelegatedPrefixeRequest\032\".google.cloud" + + ".compute.v1.Operation\"\351\001\332AGproject,regio" + + "n,public_delegated_prefix,public_delegat" + + "ed_prefix_resource\212N\020RegionOperations\202\323\344" + + "\223\002\205\0012a/compute/v1/projects/{project}/reg" + + "ions/{region}/publicDelegatedPrefixes/{p" + + "ublic_delegated_prefix}: public_delegate" + + "d_prefix_resource\022\237\002\n\010Withdraw\022>.google." + + "cloud.compute.v1.WithdrawPublicDelegated" + + "PrefixeRequest\032\".google.cloud.compute.v1" + + ".Operation\"\256\001\332A&project,region,public_de" + + "legated_prefix\212N\020RegionOperations\202\323\344\223\002l\"" + + "j/compute/v1/projects/{project}/regions/" + + "{region}/publicDelegatedPrefixes/{public" + + "_delegated_prefix}/withdraw\032r\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform2\360\013\n\021RegionAutosc" + + "alers\022\345\001\n\006Delete\0226.google.cloud.compute." + + "v1.DeleteRegionAutoscalerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\177\332A\031project" + + ",region,autoscaler\212N\020RegionOperations\202\323\344" + + "\223\002J*H/compute/v1/projects/{project}/regi" + + "ons/{region}/autoscalers/{autoscaler}\022\315\001" + + "\n\003Get\0223.google.cloud.compute.v1.GetRegio" + + "nAutoscalerRequest\032#.google.cloud.comput" + + "e.v1.Autoscaler\"l\332A\031project,region,autos" + + "caler\202\323\344\223\002J\022H/compute/v1/projects/{proje" + + "ct}/regions/{region}/autoscalers/{autosc" + + "aler}\022\367\001\n\006Insert\0226.google.cloud.compute." + + "v1.InsertRegionAutoscalerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\220\001\332A\"projec" + + "t,region,autoscaler_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002R\";/compute/v1/projects/{pro" + + "ject}/regions/{region}/autoscalers:\023auto" + + "scaler_resource\022\302\001\n\004List\0225.google.cloud." + + "compute.v1.ListRegionAutoscalersRequest\032" + + "-.google.cloud.compute.v1.RegionAutoscal" + + "erList\"T\332A\016project,region\202\323\344\223\002=\022;/comput" + "e/v1/projects/{project}/regions/{region}" - + "/packetMirrorings/{packet_mirroring}:\031pa" - + "cket_mirroring_resource\022\322\002\n\022TestIamPermi" - + "ssions\022A.google.cloud.compute.v1.TestIam" - + "PermissionsPacketMirroringRequest\0320.goog" - + "le.cloud.compute.v1.TestPermissionsRespo" - + "nse\"\306\001\332A9project,region,resource,test_pe" - + "rmissions_request_resource\202\323\344\223\002\203\001\"^/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/packetMirrorings/{resource}/testIamPe" - + "rmissions:!test_permissions_request_reso" - + "urce\032r\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "2\253\033\n\010Projects\022\277\001\n\016DisableXpnHost\0225.googl" - + "e.cloud.compute.v1.DisableXpnHostProject" + + "/autoscalers\022\365\001\n\005Patch\0225.google.cloud.co" + + "mpute.v1.PatchRegionAutoscalerRequest\032\"." + + "google.cloud.compute.v1.Operation\"\220\001\332A\"p" + + "roject,region,autoscaler_resource\212N\020Regi" + + "onOperations\202\323\344\223\002R2;/compute/v1/projects" + + "/{project}/regions/{region}/autoscalers:" + + "\023autoscaler_resource\022\367\001\n\006Update\0226.google" + + ".cloud.compute.v1.UpdateRegionAutoscaler" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"R\332A\007project\212N\020GlobalOperations\202\323\344\223\002/" - + "\"-/compute/v1/projects/{project}/disable" - + "XpnHost\022\253\002\n\022DisableXpnResource\0229.google." - + "cloud.compute.v1.DisableXpnResourceProje" - + "ctRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\265\001\332A6project,projects_disable_xpn_" - + "resource_request_resource\212N\020GlobalOperat", - "ions\202\323\344\223\002c\"1/compute/v1/projects/{projec" - + "t}/disableXpnResource:.projects_disable_" - + "xpn_resource_request_resource\022\274\001\n\rEnable" - + "XpnHost\0224.google.cloud.compute.v1.Enable" - + "XpnHostProjectRequest\032\".google.cloud.com" - + "pute.v1.Operation\"Q\332A\007project\212N\020GlobalOp" - + "erations\202\323\344\223\002.\",/compute/v1/projects/{pr" - + "oject}/enableXpnHost\022\246\002\n\021EnableXpnResour" - + "ce\0228.google.cloud.compute.v1.EnableXpnRe" - + "sourceProjectRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\262\001\332A5project,projects_e" - + "nable_xpn_resource_request_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002a\"0/compute/v1/projec" - + "ts/{project}/enableXpnResource:-projects" - + "_enable_xpn_resource_request_resource\022\205\001" - + "\n\003Get\022*.google.cloud.compute.v1.GetProje" - + "ctRequest\032 .google.cloud.compute.v1.Proj" - + "ect\"0\332A\007project\202\323\344\223\002 \022\036/compute/v1/proje" - + "cts/{project}\022\236\001\n\nGetXpnHost\0221.google.cl" - + "oud.compute.v1.GetXpnHostProjectRequest\032" - + " .google.cloud.compute.v1.Project\";\332A\007pr" - + "oject\202\323\344\223\002+\022)/compute/v1/projects/{proje" - + "ct}/getXpnHost\022\276\001\n\017GetXpnResources\0227.goo" - + "gle.cloud.compute.v1.GetXpnResourcesProj" - + "ectsRequest\0320.google.cloud.compute.v1.Pr" - + "ojectsGetXpnResources\"@\332A\007project\202\323\344\223\0020\022" - + "./compute/v1/projects/{project}/getXpnRe" - + "sources\022\375\001\n\014ListXpnHosts\0224.google.cloud." - + "compute.v1.ListXpnHostsProjectsRequest\032$" - + ".google.cloud.compute.v1.XpnHostList\"\220\001\332" - + "A0project,projects_list_xpn_hosts_reques" - + "t_resource\202\323\344\223\002W\"+/compute/v1/projects/{" - + "project}/listXpnHosts:(projects_list_xpn" - + "_hosts_request_resource\022\345\001\n\010MoveDisk\022/.g" - + "oogle.cloud.compute.v1.MoveDiskProjectRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\203\001\332A\"project,disk_move_request_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002E\"\'/compute/v1/" - + "projects/{project}/moveDisk:\032disk_move_r" - + "equest_resource\022\371\001\n\014MoveInstance\0223.googl" - + "e.cloud.compute.v1.MoveInstanceProjectRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\217\001\332A&project,instance_move_request_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002M\"+/compute" - + "/v1/projects/{project}/moveInstance:\036ins" - + "tance_move_request_resource\022\250\002\n\021SetCloud" - + "ArmorTier\0228.google.cloud.compute.v1.SetC" - + "loudArmorTierProjectRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\264\001\332A6project,pro" - + "jects_set_cloud_armor_tier_request_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002b\"0/compute/v" - + "1/projects/{project}/setCloudArmorTier:." - + "projects_set_cloud_armor_tier_request_re" - + "source\022\206\002\n\031SetCommonInstanceMetadata\022@.g" - + "oogle.cloud.compute.v1.SetCommonInstance" - + "MetadataProjectRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\202\001\332A\031project,metadata" - + "_resource\212N\020GlobalOperations\202\323\344\223\002M\"8/com" - + "pute/v1/projects/{project}/setCommonInst" - + "anceMetadata:\021metadata_resource\022\274\002\n\025SetD" - + "efaultNetworkTier\022<.google.cloud.compute" - + ".v1.SetDefaultNetworkTierProjectRequest\032" - + "\".google.cloud.compute.v1.Operation\"\300\001\332A" - + ":project,projects_set_default_network_ti" - + "er_request_resource\212N\020GlobalOperations\202\323" - + "\344\223\002j\"4/compute/v1/projects/{project}/set" - + "DefaultNetworkTier:2projects_set_default" - + "_network_tier_request_resource\022\221\002\n\024SetUs" - + "ageExportBucket\022;.google.cloud.compute.v" - + "1.SetUsageExportBucketProjectRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\227\001\332A&pr" - + "oject,usage_export_location_resource\212N\020G" - + "lobalOperations\202\323\344\223\002U\"3/compute/v1/proje" - + "cts/{project}/setUsageExportBucket:\036usag" - + "e_export_location_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\356\017\n\030PublicAdverti" - + "sedPrefixes\022\222\002\n\010Announce\022?.google.cloud." - + "compute.v1.AnnouncePublicAdvertisedPrefi" - + "xeRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\240\001\332A project,public_advertised_pre" - + "fix\212N\020GlobalOperations\202\323\344\223\002d\"b/compute/v" - + "1/projects/{project}/global/publicAdvert" - + "isedPrefixes/{public_advertised_prefix}/" - + "announce\022\205\002\n\006Delete\022=.google.cloud.compu" - + "te.v1.DeletePublicAdvertisedPrefixeReque" - + "st\032\".google.cloud.compute.v1.Operation\"\227" - + "\001\332A project,public_advertised_prefix\212N\020G" - + "lobalOperations\202\323\344\223\002[*Y/compute/v1/proje" - + "cts/{project}/global/publicAdvertisedPre" - + "fixes/{public_advertised_prefix}\022\371\001\n\003Get" - + "\022:.google.cloud.compute.v1.GetPublicAdve" - + "rtisedPrefixeRequest\032/.google.cloud.comp" - + "ute.v1.PublicAdvertisedPrefix\"\204\001\332A proje" - + "ct,public_advertised_prefix\202\323\344\223\002[\022Y/comp" - + "ute/v1/projects/{project}/global/publicA" - + "dvertisedPrefixes/{public_advertised_pre" - + "fix}\022\226\002\n\006Insert\022=.google.cloud.compute.v" - + "1.InsertPublicAdvertisedPrefixeRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\250\001\332A)" - + "project,public_advertised_prefix_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002c\">/compute/v1/" - + "projects/{project}/global/publicAdvertis" - + "edPrefixes:!public_advertised_prefix_res" - + "ource\022\313\001\n\004List\022<.google.cloud.compute.v1" - + ".ListPublicAdvertisedPrefixesRequest\0323.g" - + "oogle.cloud.compute.v1.PublicAdvertisedP" - + "refixList\"P\332A\007project\202\323\344\223\002@\022>/compute/v1" - + "/projects/{project}/global/publicAdverti" - + "sedPrefixes\022\310\002\n\005Patch\022<.google.cloud.com" - + "pute.v1.PatchPublicAdvertisedPrefixeRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\334\001\332ABproject,public_advertised_prefix,pu" - + "blic_advertised_prefix_resource\212N\020Global" - + "Operations\202\323\344\223\002~2Y/compute/v1/projects/{" - + "project}/global/publicAdvertisedPrefixes" - + "/{public_advertised_prefix}:!public_adve" - + "rtised_prefix_resource\022\222\002\n\010Withdraw\022?.go" - + "ogle.cloud.compute.v1.WithdrawPublicAdve" - + "rtisedPrefixeRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\240\001\332A project,public_adv" - + "ertised_prefix\212N\020GlobalOperations\202\323\344\223\002d\"" - + "b/compute/v1/projects/{project}/global/p" - + "ublicAdvertisedPrefixes/{public_advertis" - + "ed_prefix}/withdraw\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\264\022\n\027PublicDelegatedPrefi" - + "xes\022\352\001\n\016AggregatedList\022E.google.cloud.co" - + "mpute.v1.AggregatedListPublicDelegatedPr" - + "efixesRequest\032<.google.cloud.compute.v1." - + "PublicDelegatedPrefixAggregatedList\"S\332A\007" - + "project\202\323\344\223\002C\022A/compute/v1/projects/{pro" - + "ject}/aggregated/publicDelegatedPrefixes" - + "\022\237\002\n\010Announce\022>.google.cloud.compute.v1." - + "AnnouncePublicDelegatedPrefixeRequest\032\"." - + "google.cloud.compute.v1.Operation\"\256\001\332A&p" - + "roject,region,public_delegated_prefix\212N\020" - + "RegionOperations\202\323\344\223\002l\"j/compute/v1/proj" - + "ects/{project}/regions/{region}/publicDe" - + "legatedPrefixes/{public_delegated_prefix" - + "}/announce\022\222\002\n\006Delete\022<.google.cloud.com" - + "pute.v1.DeletePublicDelegatedPrefixeRequ" + + "ion\"\220\001\332A\"project,region,autoscaler_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002R\032;/compute/v" + + "1/projects/{project}/regions/{region}/au" + + "toscalers:\023autoscaler_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\275\033\n\025RegionBac" + + "kendServices\022\370\001\n\006Delete\022:.google.cloud.c" + + "ompute.v1.DeleteRegionBackendServiceRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\245\001\332A&project,region,public_delegated_pre" - + "fix\212N\020RegionOperations\202\323\344\223\002c*a/compute/v" - + "1/projects/{project}/regions/{region}/pu" - + "blicDelegatedPrefixes/{public_delegated_" - + "prefix}\022\205\002\n\003Get\0229.google.cloud.compute.v" - + "1.GetPublicDelegatedPrefixeRequest\032..goo" - + "gle.cloud.compute.v1.PublicDelegatedPref" - + "ix\"\222\001\332A&project,region,public_delegated_" - + "prefix\202\323\344\223\002c\022a/compute/v1/projects/{proj" - + "ect}/regions/{region}/publicDelegatedPre" - + "fixes/{public_delegated_prefix}\022\243\002\n\006Inse" - + "rt\022<.google.cloud.compute.v1.InsertPubli" - + "cDelegatedPrefixeRequest\032\".google.cloud." - + "compute.v1.Operation\"\266\001\332A/project,region" - + ",public_delegated_prefix_resource\212N\020Regi" - + "onOperations\202\323\344\223\002k\"G/compute/v1/projects" - + "/{project}/regions/{region}/publicDelega" - + "tedPrefixes: public_delegated_prefix_res" - + "ource\022\331\001\n\004List\022;.google.cloud.compute.v1" - + ".ListPublicDelegatedPrefixesRequest\0322.go" - + "ogle.cloud.compute.v1.PublicDelegatedPre" - + "fixList\"`\332A\016project,region\202\323\344\223\002I\022G/compu" + + "\215\001\332A\036project,region,backend_service\212N\020Re" + + "gionOperations\202\323\344\223\002S*Q/compute/v1/projec" + + "ts/{project}/regions/{region}/backendSer" + + "vices/{backend_service}\022\343\001\n\003Get\0227.google" + + ".cloud.compute.v1.GetRegionBackendServic" + + "eRequest\032\'.google.cloud.compute.v1.Backe" + + "ndService\"z\332A\036project,region,backend_ser" + + "vice\202\323\344\223\002S\022Q/compute/v1/projects/{projec" + + "t}/regions/{region}/backendServices/{bac" + + "kend_service}\022\313\002\n\tGetHealth\022=.google.clo" + + "ud.compute.v1.GetHealthRegionBackendServ" + + "iceRequest\0322.google.cloud.compute.v1.Bac" + + "kendServiceGroupHealth\"\312\001\332A@project,regi" + + "on,backend_service,resource_group_refere" + + "nce_resource\202\323\344\223\002\200\001\"[/compute/v1/project" + + "s/{project}/regions/{region}/backendServ" + + "ices/{backend_service}/getHealth:!resour" + + "ce_group_reference_resource\022\354\001\n\014GetIamPo" + + "licy\022@.google.cloud.compute.v1.GetIamPol" + + "icyRegionBackendServiceRequest\032\037.google." + + "cloud.compute.v1.Policy\"y\332A\027project,regi" + + "on,resource\202\323\344\223\002Y\022W/compute/v1/projects/" + + "{project}/regions/{region}/backendServic" + + "es/{resource}/getIamPolicy\022\211\002\n\006Insert\022:." + + "google.cloud.compute.v1.InsertRegionBack" + + "endServiceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\236\001\332A\'project,region,backen" + + "d_service_resource\212N\020RegionOperations\202\323\344" + + "\223\002[\"?/compute/v1/projects/{project}/regi" + + "ons/{region}/backendServices:\030backend_se" + + "rvice_resource\022\310\001\n\004List\0229.google.cloud.c" + + "ompute.v1.ListRegionBackendServicesReque" + + "st\032+.google.cloud.compute.v1.BackendServ" + + "iceList\"X\332A\016project,region\202\323\344\223\002A\022?/compu" + "te/v1/projects/{project}/regions/{region" - + "}/publicDelegatedPrefixes\022\324\002\n\005Patch\022;.go" - + "ogle.cloud.compute.v1.PatchPublicDelegat" - + "edPrefixeRequest\032\".google.cloud.compute." - + "v1.Operation\"\351\001\332AGproject,region,public_" - + "delegated_prefix,public_delegated_prefix" - + "_resource\212N\020RegionOperations\202\323\344\223\002\205\0012a/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/publicDelegatedPrefixes/{public_del" - + "egated_prefix}: public_delegated_prefix_" - + "resource\022\237\002\n\010Withdraw\022>.google.cloud.com" - + "pute.v1.WithdrawPublicDelegatedPrefixeRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\256\001\332A&project,region,public_delegated_p" - + "refix\212N\020RegionOperations\202\323\344\223\002l\"j/compute" - + "/v1/projects/{project}/regions/{region}/" - + "publicDelegatedPrefixes/{public_delegate" - + "d_prefix}/withdraw\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\360\013\n\021RegionAutoscalers\022\345\001\n" - + "\006Delete\0226.google.cloud.compute.v1.Delete" - + "RegionAutoscalerRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\177\332A\031project,region,a" - + "utoscaler\212N\020RegionOperations\202\323\344\223\002J*H/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/autoscalers/{autoscaler}\022\315\001\n\003Get\0223.g" - + "oogle.cloud.compute.v1.GetRegionAutoscal" - + "erRequest\032#.google.cloud.compute.v1.Auto" - + "scaler\"l\332A\031project,region,autoscaler\202\323\344\223" - + "\002J\022H/compute/v1/projects/{project}/regio" - + "ns/{region}/autoscalers/{autoscaler}\022\367\001\n" - + "\006Insert\0226.google.cloud.compute.v1.Insert" - + "RegionAutoscalerRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\220\001\332A\"project,region," - + "autoscaler_resource\212N\020RegionOperations\202\323" - + "\344\223\002R\";/compute/v1/projects/{project}/reg" - + "ions/{region}/autoscalers:\023autoscaler_re" - + "source\022\302\001\n\004List\0225.google.cloud.compute.v" - + "1.ListRegionAutoscalersRequest\032-.google." - + "cloud.compute.v1.RegionAutoscalerList\"T\332" - + "A\016project,region\202\323\344\223\002=\022;/compute/v1/proj" - + "ects/{project}/regions/{region}/autoscal" - + "ers\022\365\001\n\005Patch\0225.google.cloud.compute.v1." - + "PatchRegionAutoscalerRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\220\001\332A\"project,re" - + "gion,autoscaler_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002R2;/compute/v1/projects/{project" - + "}/regions/{region}/autoscalers:\023autoscal" - + "er_resource\022\367\001\n\006Update\0226.google.cloud.co" - + "mpute.v1.UpdateRegionAutoscalerRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\220\001\332A\"" - + "project,region,autoscaler_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002R\032;/compute/v1/project" - + "s/{project}/regions/{region}/autoscalers" - + ":\023autoscaler_resource\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\275\033\n\025RegionBackendServi" - + "ces\022\370\001\n\006Delete\022:.google.cloud.compute.v1" - + ".DeleteRegionBackendServiceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\215\001\332A\036proj" - + "ect,region,backend_service\212N\020RegionOpera" - + "tions\202\323\344\223\002S*Q/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices/{ba" - + "ckend_service}\022\343\001\n\003Get\0227.google.cloud.co" - + "mpute.v1.GetRegionBackendServiceRequest\032" - + "\'.google.cloud.compute.v1.BackendService" - + "\"z\332A\036project,region,backend_service\202\323\344\223\002" - + "S\022Q/compute/v1/projects/{project}/region" + + "}/backendServices\022\345\001\n\nListUsable\022?.googl" + + "e.cloud.compute.v1.ListUsableRegionBacke" + + "ndServicesRequest\0321.google.cloud.compute" + + ".v1.BackendServiceListUsable\"c\332A\016project" + + ",region\202\323\344\223\002L\022J/compute/v1/projects/{pro" + + "ject}/regions/{region}/backendServices/l" + + "istUsable\022\251\002\n\005Patch\0229.google.cloud.compu" + + "te.v1.PatchRegionBackendServiceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\300\001\332A7" + + "project,region,backend_service,backend_s" + + "ervice_resource\212N\020RegionOperations\202\323\344\223\002m" + + "2Q/compute/v1/projects/{project}/regions" + + "/{region}/backendServices/{backend_servi" + + "ce}:\030backend_service_resource\022\264\002\n\014SetIam" + + "Policy\022@.google.cloud.compute.v1.SetIamP" + + "olicyRegionBackendServiceRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"\300\001\332A:project,r" + + "egion,resource,region_set_policy_request" + + "_resource\202\323\344\223\002}\"W/compute/v1/projects/{p" + + "roject}/regions/{region}/backendServices" + + "/{resource}/setIamPolicy:\"region_set_pol" + + "icy_request_resource\022\350\002\n\021SetSecurityPoli" + + "cy\022E.google.cloud.compute.v1.SetSecurity" + + "PolicyRegionBackendServiceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\347\001\332AAproje" + + "ct,region,backend_service,security_polic" + + "y_reference_resource\212N\020RegionOperations\202" + + "\323\344\223\002\211\001\"c/compute/v1/projects/{project}/r" + + "egions/{region}/backendServices/{backend" + + "_service}/setSecurityPolicy:\"security_po" + + "licy_reference_resource\022\326\002\n\022TestIamPermi" + + "ssions\022F.google.cloud.compute.v1.TestIam" + + "PermissionsRegionBackendServiceRequest\0320" + + ".google.cloud.compute.v1.TestPermissions" + + "Response\"\305\001\332A9project,region,resource,te" + + "st_permissions_request_resource\202\323\344\223\002\202\001\"]" + + "/compute/v1/projects/{project}/regions/{" + + "region}/backendServices/{resource}/testI" + + "amPermissions:!test_permissions_request_" + + "resource\022\253\002\n\006Update\022:.google.cloud.compu" + + "te.v1.UpdateRegionBackendServiceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\300\001\332A" + + "7project,region,backend_service,backend_" + + "service_resource\212N\020RegionOperations\202\323\344\223\002" + + "m\032Q/compute/v1/projects/{project}/region" + "s/{region}/backendServices/{backend_serv" - + "ice}\022\313\002\n\tGetHealth\022=.google.cloud.comput" - + "e.v1.GetHealthRegionBackendServiceReques" - + "t\0322.google.cloud.compute.v1.BackendServi" - + "ceGroupHealth\"\312\001\332A@project,region,backen" - + "d_service,resource_group_reference_resou" - + "rce\202\323\344\223\002\200\001\"[/compute/v1/projects/{projec" - + "t}/regions/{region}/backendServices/{bac" - + "kend_service}/getHealth:!resource_group_" - + "reference_resource\022\354\001\n\014GetIamPolicy\022@.go" - + "ogle.cloud.compute.v1.GetIamPolicyRegion" - + "BackendServiceRequest\032\037.google.cloud.com" - + "pute.v1.Policy\"y\332A\027project,region,resour" - + "ce\202\323\344\223\002Y\022W/compute/v1/projects/{project}" - + "/regions/{region}/backendServices/{resou" - + "rce}/getIamPolicy\022\211\002\n\006Insert\022:.google.cl" - + "oud.compute.v1.InsertRegionBackendServic" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\236\001\332A\'project,region,backend_service" - + "_resource\212N\020RegionOperations\202\323\344\223\002[\"?/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/backendServices:\030backend_service_res" - + "ource\022\310\001\n\004List\0229.google.cloud.compute.v1" - + ".ListRegionBackendServicesRequest\032+.goog" - + "le.cloud.compute.v1.BackendServiceList\"X" - + "\332A\016project,region\202\323\344\223\002A\022?/compute/v1/pro" - + "jects/{project}/regions/{region}/backend" - + "Services\022\345\001\n\nListUsable\022?.google.cloud.c" - + "ompute.v1.ListUsableRegionBackendService" - + "sRequest\0321.google.cloud.compute.v1.Backe" - + "ndServiceListUsable\"c\332A\016project,region\202\323" - + "\344\223\002L\022J/compute/v1/projects/{project}/reg" - + "ions/{region}/backendServices/listUsable" - + "\022\251\002\n\005Patch\0229.google.cloud.compute.v1.Pat" - + "chRegionBackendServiceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\300\001\332A7project,r" - + "egion,backend_service,backend_service_re" - + "source\212N\020RegionOperations\202\323\344\223\002m2Q/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/backendServices/{backend_service}:\030back" - + "end_service_resource\022\264\002\n\014SetIamPolicy\022@." - + "google.cloud.compute.v1.SetIamPolicyRegi" - + "onBackendServiceRequest\032\037.google.cloud.c" - + "ompute.v1.Policy\"\300\001\332A:project,region,res" - + "ource,region_set_policy_request_resource" - + "\202\323\344\223\002}\"W/compute/v1/projects/{project}/r" - + "egions/{region}/backendServices/{resourc" - + "e}/setIamPolicy:\"region_set_policy_reque" - + "st_resource\022\350\002\n\021SetSecurityPolicy\022E.goog" - + "le.cloud.compute.v1.SetSecurityPolicyReg" - + "ionBackendServiceRequest\032\".google.cloud." - + "compute.v1.Operation\"\347\001\332AAproject,region" - + ",backend_service,security_policy_referen" - + "ce_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"c/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/backendServices/{backend_service}" - + "/setSecurityPolicy:\"security_policy_refe" - + "rence_resource\022\326\002\n\022TestIamPermissions\022F." - + "google.cloud.compute.v1.TestIamPermissio" - + "nsRegionBackendServiceRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\305\001\332A9project,region,resource,test_permis" - + "sions_request_resource\202\323\344\223\002\202\001\"]/compute/" - + "v1/projects/{project}/regions/{region}/b" - + "ackendServices/{resource}/testIamPermiss" - + "ions:!test_permissions_request_resource\022" - + "\253\002\n\006Update\022:.google.cloud.compute.v1.Upd" - + "ateRegionBackendServiceRequest\032\".google." - + "cloud.compute.v1.Operation\"\300\001\332A7project," - + "region,backend_service,backend_service_r" - + "esource\212N\020RegionOperations\202\323\344\223\002m\032Q/compu" + + "ice}:\030backend_service_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\362\t\n\021RegionCom" + + "mitments\022\315\001\n\016AggregatedList\022?.google.clo" + + "ud.compute.v1.AggregatedListRegionCommit" + + "mentsRequest\0321.google.cloud.compute.v1.C" + + "ommitmentAggregatedList\"G\332A\007project\202\323\344\223\002" + + "7\0225/compute/v1/projects/{project}/aggreg" + + "ated/commitments\022\315\001\n\003Get\0223.google.cloud." + + "compute.v1.GetRegionCommitmentRequest\032#." + + "google.cloud.compute.v1.Commitment\"l\332A\031p" + + "roject,region,commitment\202\323\344\223\002J\022H/compute" + + "/v1/projects/{project}/regions/{region}/" + + "commitments/{commitment}\022\367\001\n\006Insert\0226.go" + + "ogle.cloud.compute.v1.InsertRegionCommit" + + "mentRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\220\001\332A\"project,region,commitment_r" + + "esource\212N\020RegionOperations\202\323\344\223\002R\";/compu" + "te/v1/projects/{project}/regions/{region" - + "}/backendServices/{backend_service}:\030bac" - + "kend_service_resource\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\362\t\n\021RegionCommitments\022" - + "\315\001\n\016AggregatedList\022?.google.cloud.comput" - + "e.v1.AggregatedListRegionCommitmentsRequ" - + "est\0321.google.cloud.compute.v1.Commitment" - + "AggregatedList\"G\332A\007project\202\323\344\223\0027\0225/compu" - + "te/v1/projects/{project}/aggregated/comm" - + "itments\022\315\001\n\003Get\0223.google.cloud.compute.v" - + "1.GetRegionCommitmentRequest\032#.google.cl" - + "oud.compute.v1.Commitment\"l\332A\031project,re" - + "gion,commitment\202\323\344\223\002J\022H/compute/v1/proje" - + "cts/{project}/regions/{region}/commitmen" - + "ts/{commitment}\022\367\001\n\006Insert\0226.google.clou" - + "d.compute.v1.InsertRegionCommitmentReque" - + "st\032\".google.cloud.compute.v1.Operation\"\220" - + "\001\332A\"project,region,commitment_resource\212N" - + "\020RegionOperations\202\323\344\223\002R\";/compute/v1/pro" - + "jects/{project}/regions/{region}/commitm" - + "ents:\023commitment_resource\022\274\001\n\004List\0225.goo" - + "gle.cloud.compute.v1.ListRegionCommitmen" - + "tsRequest\032\'.google.cloud.compute.v1.Comm" - + "itmentList\"T\332A\016project,region\202\323\344\223\002=\022;/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/commitments\022\217\002\n\006Update\0226.google.clo" - + "ud.compute.v1.UpdateRegionCommitmentRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\250\001\332A-project,region,commitment,commitmen" - + "t_resource\212N\020RegionOperations\202\323\344\223\002_2H/co" + + "}/commitments:\023commitment_resource\022\274\001\n\004L" + + "ist\0225.google.cloud.compute.v1.ListRegion" + + "CommitmentsRequest\032\'.google.cloud.comput" + + "e.v1.CommitmentList\"T\332A\016project,region\202\323" + + "\344\223\002=\022;/compute/v1/projects/{project}/reg" + + "ions/{region}/commitments\022\217\002\n\006Update\0226.g" + + "oogle.cloud.compute.v1.UpdateRegionCommi" + + "tmentRequest\032\".google.cloud.compute.v1.O" + + "peration\"\250\001\332A-project,region,commitment," + + "commitment_resource\212N\020RegionOperations\202\323" + + "\344\223\002_2H/compute/v1/projects/{project}/reg" + + "ions/{region}/commitments/{commitment}:\023" + + "commitment_resource\032r\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform2\277\004\n\017RegionDiskTypes\022\305\001\n\003" + + "Get\0221.google.cloud.compute.v1.GetRegionD" + + "iskTypeRequest\032!.google.cloud.compute.v1" + + ".DiskType\"h\332A\030project,region,disk_type\202\323" + + "\344\223\002G\022E/compute/v1/projects/{project}/reg" + + "ions/{region}/diskTypes/{disk_type}\022\274\001\n\004" + + "List\0223.google.cloud.compute.v1.ListRegio" + + "nDiskTypesRequest\032+.google.cloud.compute" + + ".v1.RegionDiskTypeList\"R\332A\016project,regio" + + "n\202\323\344\223\002;\0229/compute/v1/projects/{project}/" + + "regions/{region}/diskTypes\032\244\001\312A\026compute." + + "googleapis.com\322A\207\001https://www.googleapis" + + ".com/auth/compute.readonly,https://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\217&\n\013Re" + + "gionDisks\022\346\002\n\023AddResourcePolicies\022=.goog" + + "le.cloud.compute.v1.AddResourcePoliciesR" + + "egionDiskRequest\032\".google.cloud.compute." + + "v1.Operation\"\353\001\332AGproject,region,disk,re" + + "gion_disks_add_resource_policies_request" + + "_resource\212N\020RegionOperations\202\323\344\223\002\207\001\"P/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/commitments/{commitment}:\023commitmen" - + "t_resource\032r\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\277\004\n\017RegionDiskTypes\022\305\001\n\003Get\0221.goo" - + "gle.cloud.compute.v1.GetRegionDiskTypeRe" - + "quest\032!.google.cloud.compute.v1.DiskType" - + "\"h\332A\030project,region,disk_type\202\323\344\223\002G\022E/co" + + "ion}/disks/{disk}/addResourcePolicies:3r" + + "egion_disks_add_resource_policies_reques" + + "t_resource\022\234\002\n\nBulkInsert\0224.google.cloud" + + ".compute.v1.BulkInsertRegionDiskRequest\032" + + "\".google.cloud.compute.v1.Operation\"\263\001\332A" + + "1project,region,bulk_insert_disk_resourc" + + "e_resource\212N\020RegionOperations\202\323\344\223\002f\"@/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/diskTypes/{disk_type}\022\274\001\n\004List\0223.go" - + "ogle.cloud.compute.v1.ListRegionDiskType" - + "sRequest\032+.google.cloud.compute.v1.Regio" - + "nDiskTypeList\"R\332A\016project,region\202\323\344\223\002;\0229" - + "/compute/v1/projects/{project}/regions/{" - + "region}/diskTypes\032\244\001\312A\026compute.googleapi" - + "s.com\322A\207\001https://www.googleapis.com/auth" - + "/compute.readonly,https://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\217&\n\013RegionDisks" - + "\022\346\002\n\023AddResourcePolicies\022=.google.cloud." - + "compute.v1.AddResourcePoliciesRegionDisk" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\353\001\332AGproject,region,disk,region_disk" - + "s_add_resource_policies_request_resource" - + "\212N\020RegionOperations\202\323\344\223\002\207\001\"P/compute/v1/" - + "projects/{project}/regions/{region}/disk" - + "s/{disk}/addResourcePolicies:3region_dis" - + "ks_add_resource_policies_request_resourc" - + "e\022\234\002\n\nBulkInsert\0224.google.cloud.compute." - + "v1.BulkInsertRegionDiskRequest\032\".google." - + "cloud.compute.v1.Operation\"\263\001\332A1project," - + "region,bulk_insert_disk_resource_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002f\"@/compute/v1/" - + "projects/{project}/regions/{region}/disk" - + "s/bulkInsert:\"bulk_insert_disk_resource_" - + "resource\022\222\002\n\016CreateSnapshot\0228.google.clo" - + "ud.compute.v1.CreateSnapshotRegionDiskRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\241\001\332A%project,region,disk,snapshot_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002`\"K/compute/" - + "v1/projects/{project}/regions/{region}/d" - + "isks/{disk}/createSnapshot:\021snapshot_res" - + "ource\022\315\001\n\006Delete\0220.google.cloud.compute." - + "v1.DeleteRegionDiskRequest\032\".google.clou" - + "d.compute.v1.Operation\"m\332A\023project,regio" - + "n,disk\212N\020RegionOperations\202\323\344\223\002>*\022.google.clou" - + "d.compute.v1.StopAsyncReplicationRegionD" + + "region}/disks/{disk}/createSnapshot:\021sna" + + "pshot_resource\022\315\001\n\006Delete\0220.google.cloud" + + ".compute.v1.DeleteRegionDiskRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"m\332A\023proj" + + "ect,region,disk\212N\020RegionOperations\202\323\344\223\002>" + + "*\022.google.clo" - + "ud.compute.v1.DeleteRegionHealthCheckSer" - + "viceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\233\001\332A#project,region,health_check" - + "_service\212N\020RegionOperations\202\323\344\223\002\\*Z/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/healthCheckServices/{health_check_ser" - + "vice}\022\372\001\n\003Get\022;.google.cloud.compute.v1." - + "GetRegionHealthCheckServiceRequest\032+.goo" - + "gle.cloud.compute.v1.HealthCheckService\"" - + "\210\001\332A#project,region,health_check_service" - + "\202\323\344\223\002\\\022Z/compute/v1/projects/{project}/r" - + "egions/{region}/healthCheckServices/{hea" - + "lth_check_service}\022\233\002\n\006Insert\022>.google.c" - + "loud.compute.v1.InsertRegionHealthCheckS" - + "erviceRequest\032\".google.cloud.compute.v1." - + "Operation\"\254\001\332A,project,region,health_che" - + "ck_service_resource\212N\020RegionOperations\202\323" - + "\344\223\002d\"C/compute/v1/projects/{project}/reg" - + "ions/{region}/healthCheckServices:\035healt" - + "h_check_service_resource\022\325\001\n\004List\022=.goog" - + "le.cloud.compute.v1.ListRegionHealthChec" - + "kServicesRequest\0320.google.cloud.compute." - + "v1.HealthCheckServicesList\"\\\332A\016project,r" - + "egion\202\323\344\223\002E\022C/compute/v1/projects/{proje" - + "ct}/regions/{region}/healthCheckServices" - + "\022\305\002\n\005Patch\022=.google.cloud.compute.v1.Pat" - + "chRegionHealthCheckServiceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\330\001\332AAproje" - + "ct,region,health_check_service,health_ch" - + "eck_service_resource\212N\020RegionOperations\202" - + "\323\344\223\002{2Z/compute/v1/projects/{project}/re" - + "gions/{region}/healthCheckServices/{heal" - + "th_check_service}:\035health_check_service_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\306\014\n\022RegionHealthChecks\022\354\001\n\006Delete\0227" - + ".google.cloud.compute.v1.DeleteRegionHea" - + "lthCheckRequest\032\".google.cloud.compute.v" - + "1.Operation\"\204\001\332A\033project,region,health_c" - + "heck\212N\020RegionOperations\202\323\344\223\002M*K/compute/" - + "v1/projects/{project}/regions/{region}/h" - + "ealthChecks/{health_check}\022\324\001\n\003Get\0224.goo" - + "gle.cloud.compute.v1.GetRegionHealthChec" - + "kRequest\032$.google.cloud.compute.v1.Healt" - + "hCheck\"q\332A\033project,region,health_check\202\323" - + "\344\223\002M\022K/compute/v1/projects/{project}/reg" - + "ions/{region}/healthChecks/{health_check" - + "}\022\375\001\n\006Insert\0227.google.cloud.compute.v1.I" - + "nsertRegionHealthCheckRequest\032\".google.c" - + "loud.compute.v1.Operation\"\225\001\332A$project,r" - + "egion,health_check_resource\212N\020RegionOper" - + "ations\202\323\344\223\002U\"\022.go" + + "ogle.cloud.compute.v1.StopAsyncReplicati" + + "onRegionDiskRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\202\001\332A\023project,region,disk" + + "\212N\020RegionOperations\202\323\344\223\002S\"Q/compute/v1/p" + + "rojects/{project}/regions/{region}/disks" + + "/{disk}/stopAsyncReplication\022\356\002\n\031StopGro" + + "upAsyncReplication\022C.google.cloud.comput" + + "e.v1.StopGroupAsyncReplicationRegionDisk" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\347\001\332ACproject,region,disks_stop_group" + + "_async_replication_resource_resource\212N\020R" + + "egionOperations\202\323\344\223\002\207\001\"O/compute/v1/proj" + + "ects/{project}/regions/{region}/disks/st" + + "opGroupAsyncReplication:4disks_stop_grou" + + "p_async_replication_resource_resource\022\301\002" + + "\n\022TestIamPermissions\022<.google.cloud.comp" + + "ute.v1.TestIamPermissionsRegionDiskReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\272\001\332A9project,region,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "x\"S/compute/v1/projects/{project}/region" + + "s/{region}/disks/{resource}/testIamPermi" + + "ssions:!test_permissions_request_resourc", + "e\022\353\001\n\006Update\0220.google.cloud.compute.v1.U" + + "pdateRegionDiskRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\212\001\332A!project,region,d" + + "isk,disk_resource\212N\020RegionOperations\202\323\344\223" + + "\002M2.g" + + "oogle.cloud.compute.v1.DeleteRegionHealt" + + "hCheckServiceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\233\001\332A#project,region,hea" + + "lth_check_service\212N\020RegionOperations\202\323\344\223" + + "\002\\*Z/compute/v1/projects/{project}/regio" + + "ns/{region}/healthCheckServices/{health_" + + "check_service}\022\372\001\n\003Get\022;.google.cloud.co" + + "mpute.v1.GetRegionHealthCheckServiceRequ" + + "est\032+.google.cloud.compute.v1.HealthChec" + + "kService\"\210\001\332A#project,region,health_chec" + + "k_service\202\323\344\223\002\\\022Z/compute/v1/projects/{p" + + "roject}/regions/{region}/healthCheckServ" + + "ices/{health_check_service}\022\233\002\n\006Insert\022>" + + ".google.cloud.compute.v1.InsertRegionHea" + + "lthCheckServiceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\254\001\332A,project,region,h" + + "ealth_check_service_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002d\"C/compute/v1/projects/{pro" + + "ject}/regions/{region}/healthCheckServic" + + "es:\035health_check_service_resource\022\325\001\n\004Li" + + "st\022=.google.cloud.compute.v1.ListRegionH" + + "ealthCheckServicesRequest\0320.google.cloud" + + ".compute.v1.HealthCheckServicesList\"\\\332A\016" + + "project,region\202\323\344\223\002E\022C/compute/v1/projec" + + "ts/{project}/regions/{region}/healthChec" + + "kServices\022\305\002\n\005Patch\022=.google.cloud.compu" + + "te.v1.PatchRegionHealthCheckServiceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\330" + + "\001\332AAproject,region,health_check_service," + + "health_check_service_resource\212N\020RegionOp" + + "erations\202\323\344\223\002{2Z/compute/v1/projects/{pr" + + "oject}/regions/{region}/healthCheckServi" + + "ces/{health_check_service}:\035health_check" + + "_service_resource\032r\312A\026compute.googleapis" + ".com\322AVhttps://www.googleapis.com/auth/c" + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform2\3229\n\033RegionInstanceGroupMan" - + "agers\022\275\003\n\020AbandonInstances\022J.google.clou" - + "d.compute.v1.AbandonInstancesRegionInsta" - + "nceGroupManagerRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\270\002\332Agproject,region,i" - + "nstance_group_manager,region_instance_gr" - + "oup_managers_abandon_instances_request_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\264\001\"o/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/instanceGroupManagers/{instance_group" - + "_manager}/abandonInstances:Aregion_insta" - + "nce_group_managers_abandon_instances_req" - + "uest_resource\022\312\003\n\027ApplyUpdatesToInstance" - + "s\022Q.google.cloud.compute.v1.ApplyUpdates" - + "ToInstancesRegionInstanceGroupManagerReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\267\002\332Acproject,region,instance_group_mana" - + "ger,region_instance_group_managers_apply" - + "_updates_request_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\267\001\"v/compute/v1/projects/{proje" - + "ct}/regions/{region}/instanceGroupManage" - + "rs/{instance_group_manager}/applyUpdates" - + "ToInstances:=region_instance_group_manag" - + "ers_apply_updates_request_resource\022\270\003\n\017C" - + "reateInstances\022I.google.cloud.compute.v1" - + ".CreateInstancesRegionInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\265\002\332Afproject,region,instance_group" - + "_manager,region_instance_group_managers_" - + "create_instances_request_resource\212N\020Regi" - + "onOperations\202\323\344\223\002\262\001\"n/compute/v1/project" - + "s/{project}/regions/{region}/instanceGro" - + "upManagers/{instance_group_manager}/crea" - + "teInstances:@region_instance_group_manag" - + "ers_create_instances_request_resource\022\222\002" - + "\n\006Delete\022@.google.cloud.compute.v1.Delet" - + "eRegionInstanceGroupManagerRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\241\001\332A%proj" - + "ect,region,instance_group_manager\212N\020Regi" - + "onOperations\202\323\344\223\002`*^/compute/v1/projects" - + "/{project}/regions/{region}/instanceGrou" - + "pManagers/{instance_group_manager}\022\270\003\n\017D" - + "eleteInstances\022I.google.cloud.compute.v1" - + ".DeleteInstancesRegionInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\265\002\332Afproject,region,instance_group" - + "_manager,region_instance_group_managers_" - + "delete_instances_request_resource\212N\020Regi" - + "onOperations\202\323\344\223\002\262\001\"n/compute/v1/project" - + "s/{project}/regions/{region}/instanceGro" - + "upManagers/{instance_group_manager}/dele" - + "teInstances:@region_instance_group_manag" - + "ers_delete_instances_request_resource\022\325\003" - + "\n\030DeletePerInstanceConfigs\022R.google.clou" - + "d.compute.v1.DeletePerInstanceConfigsReg" - + "ionInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\300\002\332Agproject," - + "region,instance_group_manager,region_ins" - + "tance_group_manager_delete_instance_conf" - + "ig_req_resource\212N\020RegionOperations\202\323\344\223\002\274" - + "\001\"w/compute/v1/projects/{project}/region" - + "s/{region}/instanceGroupManagers/{instan" - + "ce_group_manager}/deletePerInstanceConfi" - + "gs:Aregion_instance_group_manager_delete" - + "_instance_config_req_resource\022\204\002\n\003Get\022=." - + "google.cloud.compute.v1.GetRegionInstanc" - + "eGroupManagerRequest\032-.google.cloud.comp" - + "ute.v1.InstanceGroupManager\"\216\001\332A%project" - + ",region,instance_group_manager\202\323\344\223\002`\022^/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/instanceGroupManagers/{instance_gr" - + "oup_manager}\022\243\002\n\006Insert\022@.google.cloud.c" - + "ompute.v1.InsertRegionInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\262\001\332A.project,region,instance_group" - + "_manager_resource\212N\020RegionOperations\202\323\344\223" - + "\002h\"E/compute/v1/projects/{project}/regio" - + "ns/{region}/instanceGroupManagers:\037insta" - + "nce_group_manager_resource\022\340\001\n\004List\022?.go" - + "ogle.cloud.compute.v1.ListRegionInstance" - + "GroupManagersRequest\0327.google.cloud.comp" - + "ute.v1.RegionInstanceGroupManagerList\"^\332" - + "A\016project,region\202\323\344\223\002G\022E/compute/v1/proj" - + "ects/{project}/regions/{region}/instance" - + "GroupManagers\022\267\002\n\nListErrors\022E.google.cl" - + "oud.compute.v1.ListErrorsRegionInstanceG" - + "roupManagersRequest\032F.google.cloud.compu" - + "te.v1.RegionInstanceGroupManagersListErr" - + "orsResponse\"\231\001\332A%project,region,instance" - + "_group_manager\202\323\344\223\002k\022i/compute/v1/projec" + + "loud-platform2\306\014\n\022RegionHealthChecks\022\354\001\n" + + "\006Delete\0227.google.cloud.compute.v1.Delete" + + "RegionHealthCheckRequest\032\".google.cloud." + + "compute.v1.Operation\"\204\001\332A\033project,region" + + ",health_check\212N\020RegionOperations\202\323\344\223\002M*K" + + "/compute/v1/projects/{project}/regions/{" + + "region}/healthChecks/{health_check}\022\324\001\n\003" + + "Get\0224.google.cloud.compute.v1.GetRegionH" + + "ealthCheckRequest\032$.google.cloud.compute" + + ".v1.HealthCheck\"q\332A\033project,region,healt" + + "h_check\202\323\344\223\002M\022K/compute/v1/projects/{pro" + + "ject}/regions/{region}/healthChecks/{hea" + + "lth_check}\022\375\001\n\006Insert\0227.google.cloud.com" + + "pute.v1.InsertRegionHealthCheckRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\225\001\332A$" + + "project,region,health_check_resource\212N\020R" + + "egionOperations\202\323\344\223\002U\"\022<" + + "/compute/v1/projects/{project}/regions/{" + + "region}/healthChecks\022\227\002\n\005Patch\0226.google." + + "cloud.compute.v1.PatchRegionHealthCheckR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\261\001\332A1project,region,health_check,heal" + + "th_check_resource\212N\020RegionOperations\202\323\344\223" + + "\002d2K/compute/v1/projects/{project}/regio" + + "ns/{region}/healthChecks/{health_check}:" + + "\025health_check_resource\022\231\002\n\006Update\0227.goog" + + "le.cloud.compute.v1.UpdateRegionHealthCh" + + "eckRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\261\001\332A1project,region,health_check," + + "health_check_resource\212N\020RegionOperations" + + "\202\323\344\223\002d\032K/compute/v1/projects/{project}/r" + + "egions/{region}/healthChecks/{health_che" + + "ck}:\025health_check_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\264G\n\033RegionInstanc" + + "eGroupManagers\022\275\003\n\020AbandonInstances\022J.go" + + "ogle.cloud.compute.v1.AbandonInstancesRe" + + "gionInstanceGroupManagerRequest\032\".google" + + ".cloud.compute.v1.Operation\"\270\002\332Agproject" + + ",region,instance_group_manager,region_in" + + "stance_group_managers_abandon_instances_" + + "request_resource\212N\020RegionOperations\202\323\344\223\002" + + "\264\001\"o/compute/v1/projects/{project}/regio" + + "ns/{region}/instanceGroupManagers/{insta" + + "nce_group_manager}/abandonInstances:Areg" + + "ion_instance_group_managers_abandon_inst" + + "ances_request_resource\022\312\003\n\027ApplyUpdatesT" + + "oInstances\022Q.google.cloud.compute.v1.App" + + "lyUpdatesToInstancesRegionInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\267\002\332Acproject,region,instance_g" + + "roup_manager,region_instance_group_manag" + + "ers_apply_updates_request_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002\267\001\"v/compute/v1/projec" + "ts/{project}/regions/{region}/instanceGr" - + "oupManagers/{instance_group_manager}/lis" - + "tErrors\022\330\002\n\024ListManagedInstances\022O.googl" - + "e.cloud.compute.v1.ListManagedInstancesR" - + "egionInstanceGroupManagersRequest\032I.goog" - + "le.cloud.compute.v1.RegionInstanceGroupM" - + "anagersListInstancesResponse\"\243\001\332A%projec" - + "t,region,instance_group_manager\202\323\344\223\002u\"s/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/instanceGroupManagers/{instance_g" - + "roup_manager}/listManagedInstances\022\340\002\n\026L" - + "istPerInstanceConfigs\022Q.google.cloud.com" - + "pute.v1.ListPerInstanceConfigsRegionInst" - + "anceGroupManagersRequest\032K.google.cloud." - + "compute.v1.RegionInstanceGroupManagersLi" - + "stInstanceConfigsResp\"\245\001\332A%project,regio" - + "n,instance_group_manager\202\323\344\223\002w\"u/compute" - + "/v1/projects/{project}/regions/{region}/" - + "instanceGroupManagers/{instance_group_ma" - + "nager}/listPerInstanceConfigs\022\322\002\n\005Patch\022" - + "?.google.cloud.compute.v1.PatchRegionIns" - + "tanceGroupManagerRequest\032\".google.cloud." - + "compute.v1.Operation\"\343\001\332AEproject,region" - + ",instance_group_manager,instance_group_m" - + "anager_resource\212N\020RegionOperations\202\323\344\223\002\201" - + "\0012^/compute/v1/projects/{project}/region" - + "s/{region}/instanceGroupManagers/{instan" - + "ce_group_manager}:\037instance_group_manage" - + "r_resource\022\320\003\n\027PatchPerInstanceConfigs\022Q" - + ".google.cloud.compute.v1.PatchPerInstanc" - + "eConfigsRegionInstanceGroupManagerReques" - + "t\032\".google.cloud.compute.v1.Operation\"\275\002" - + "\332Afproject,region,instance_group_manager" - + ",region_instance_group_manager_patch_ins" - + "tance_config_req_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\272\001\"v/compute/v1/projects/{proje" - + "ct}/regions/{region}/instanceGroupManage" - + "rs/{instance_group_manager}/patchPerInst" - + "anceConfigs:@region_instance_group_manag" - + "er_patch_instance_config_req_resource\022\256\003" - + "\n\021RecreateInstances\022K.google.cloud.compu" - + "te.v1.RecreateInstancesRegionInstanceGro" - + "upManagerRequest\032\".google.cloud.compute." - + "v1.Operation\"\247\002\332A^project,region,instanc" - + "e_group_manager,region_instance_group_ma" - + "nagers_recreate_request_resource\212N\020Regio" - + "nOperations\202\323\344\223\002\254\001\"p/compute/v1/projects" - + "/{project}/regions/{region}/instanceGrou" - + "pManagers/{instance_group_manager}/recre" - + "ateInstances:8region_instance_group_mana" - + "gers_recreate_request_resource\022\236\002\n\006Resiz" - + "e\022@.google.cloud.compute.v1.ResizeRegion" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\255\001\332A*project,reg" - + "ion,instance_group_manager,size\212N\020Region" - + "Operations\202\323\344\223\002g\"e/compute/v1/projects/{" - + "project}/regions/{region}/instanceGroupM" - + "anagers/{instance_group_manager}/resize\022" - + "\274\003\n\023SetInstanceTemplate\022M.google.cloud.c" - + "ompute.v1.SetInstanceTemplateRegionInsta" - + "nceGroupManagerRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\261\002\332Abproject,region,i" - + "nstance_group_manager,region_instance_gr" - + "oup_managers_set_template_request_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002\262\001\"r/compute/v" + + "oupManagers/{instance_group_manager}/app" + + "lyUpdatesToInstances:=region_instance_gr" + + "oup_managers_apply_updates_request_resou" + + "rce\022\270\003\n\017CreateInstances\022I.google.cloud.c" + + "ompute.v1.CreateInstancesRegionInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\265\002\332Afproject,region,insta" + + "nce_group_manager,region_instance_group_" + + "managers_create_instances_request_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002\262\001\"n/compute/v" + "1/projects/{project}/regions/{region}/in" + "stanceGroupManagers/{instance_group_mana" - + "ger}/setInstanceTemplate:/compute/v1/" - + "projects/{project}/regions/{region}/inst" - + "anceGroups\022\206\003\n\rListInstances\022A.google.cl" - + "oud.compute.v1.ListInstancesRegionInstan" - + "ceGroupsRequest\032:.google.cloud.compute.v" - + "1.RegionInstanceGroupsListInstances\"\365\001\332A" - + "Tproject,region,instance_group,region_in" - + "stance_groups_list_instances_request_res" - + "ource\202\323\344\223\002\227\001\"]/compute/v1/projects/{proj" - + "ect}/regions/{region}/instanceGroups/{in" - + "stance_group}/listInstances:6region_inst" - + "ance_groups_list_instances_request_resou" - + "rce\022\202\003\n\rSetNamedPorts\022@.google.cloud.com" - + "pute.v1.SetNamedPortsRegionInstanceGroup" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\212\002\332AUproject,region,instance_group,r" - + "egion_instance_groups_set_named_ports_re" - + "quest_resource\212N\020RegionOperations\202\323\344\223\002\230\001" - + "\"]/compute/v1/projects/{project}/regions" - + "/{region}/instanceGroups/{instance_group" - + "}/setNamedPorts:7region_instance_groups_" - + "set_named_ports_request_resource\032r\312A\026com" - + "pute.googleapis.com\322AVhttps://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform2\346\010\n\027RegionI" - + "nstanceTemplates\022\200\002\n\006Delete\022<.google.clo" - + "ud.compute.v1.DeleteRegionInstanceTempla" - + "teRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\223\001\332A project,region,instance_templ" - + "ate\212N\020RegionOperations\202\323\344\223\002W*U/compute/v" - + "1/projects/{project}/regions/{region}/in" - + "stanceTemplates/{instance_template}\022\356\001\n\003" - + "Get\0229.google.cloud.compute.v1.GetRegionI" - + "nstanceTemplateRequest\032).google.cloud.co" - + "mpute.v1.InstanceTemplate\"\200\001\332A project,r" - + "egion,instance_template\202\323\344\223\002W\022U/compute/" + + "er_delete_instance_config_req_resource\022\204" + + "\002\n\003Get\022=.google.cloud.compute.v1.GetRegi" + + "onInstanceGroupManagerRequest\032-.google.c" + + "loud.compute.v1.InstanceGroupManager\"\216\001\332" + + "A%project,region,instance_group_manager\202" + + "\323\344\223\002`\022^/compute/v1/projects/{project}/re" + + "gions/{region}/instanceGroupManagers/{in" + + "stance_group_manager}\022\243\002\n\006Insert\022@.googl" + + "e.cloud.compute.v1.InsertRegionInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\262\001\332A.project,region,insta" + + "nce_group_manager_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002h\"E/compute/v1/projects/{proje" + + "ct}/regions/{region}/instanceGroupManage" + + "rs:\037instance_group_manager_resource\022\340\001\n\004" + + "List\022?.google.cloud.compute.v1.ListRegio" + + "nInstanceGroupManagersRequest\0327.google.c" + + "loud.compute.v1.RegionInstanceGroupManag" + + "erList\"^\332A\016project,region\202\323\344\223\002G\022E/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/instanceGroupManagers\022\267\002\n\nListErrors\022E." + + "google.cloud.compute.v1.ListErrorsRegion" + + "InstanceGroupManagersRequest\032F.google.cl" + + "oud.compute.v1.RegionInstanceGroupManage" + + "rsListErrorsResponse\"\231\001\332A%project,region" + + ",instance_group_manager\202\323\344\223\002k\022i/compute/" + "v1/projects/{project}/regions/{region}/i" - + "nstanceTemplates/{instance_template}\022\221\002\n" - + "\006Insert\022<.google.cloud.compute.v1.Insert" - + "RegionInstanceTemplateRequest\032\".google.c" - + "loud.compute.v1.Operation\"\244\001\332A)project,r" - + "egion,instance_template_resource\212N\020Regio" - + "nOperations\202\323\344\223\002_\"A/compute/v1/projects/" - + "{project}/regions/{region}/instanceTempl" - + "ates:\032instance_template_resource\022\316\001\n\004Lis" - + "t\022;.google.cloud.compute.v1.ListRegionIn" - + "stanceTemplatesRequest\032-.google.cloud.co", - "mpute.v1.InstanceTemplateList\"Z\332A\016projec" - + "t,region\202\323\344\223\002C\022A/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceTemplate" - + "s\032r\312A\026compute.googleapis.com\322AVhttps://w" - + "ww.googleapis.com/auth/compute,https://w" - + "ww.googleapis.com/auth/cloud-platform2\264\003" - + "\n\017RegionInstances\022\254\002\n\nBulkInsert\0228.googl" - + "e.cloud.compute.v1.BulkInsertRegionInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\277\001\332A5project,region,bulk_insert_i" - + "nstance_resource_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002n\"D/compute/v1/projects/{projec" - + "t}/regions/{region}/instances/bulkInsert" - + ":&bulk_insert_instance_resource_resource" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\237\022\n" - + "\026RegionInstantSnapshots\022\374\001\n\006Delete\022;.goo" - + "gle.cloud.compute.v1.DeleteRegionInstant" - + "SnapshotRequest\032\".google.cloud.compute.v" - + "1.Operation\"\220\001\332A\037project,region,instant_" - + "snapshot\212N\020RegionOperations\202\323\344\223\002U*S/comp" + + "nstanceGroupManagers/{instance_group_man" + + "ager}/listErrors\022\330\002\n\024ListManagedInstance" + + "s\022O.google.cloud.compute.v1.ListManagedI" + + "nstancesRegionInstanceGroupManagersReque" + + "st\032I.google.cloud.compute.v1.RegionInsta" + + "nceGroupManagersListInstancesResponse\"\243\001" + + "\332A%project,region,instance_group_manager" + + "\202\323\344\223\002u\"s/compute/v1/projects/{project}/r" + + "egions/{region}/instanceGroupManagers/{i" + + "nstance_group_manager}/listManagedInstan" + + "ces\022\340\002\n\026ListPerInstanceConfigs\022Q.google." + + "cloud.compute.v1.ListPerInstanceConfigsR" + + "egionInstanceGroupManagersRequest\032K.goog" + + "le.cloud.compute.v1.RegionInstanceGroupM" + + "anagersListInstanceConfigsResp\"\245\001\332A%proj" + + "ect,region,instance_group_manager\202\323\344\223\002w\"" + + "u/compute/v1/projects/{project}/regions/" + + "{region}/instanceGroupManagers/{instance" + + "_group_manager}/listPerInstanceConfigs\022\322" + + "\002\n\005Patch\022?.google.cloud.compute.v1.Patch" + + "RegionInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\343\001\332AEproje" + + "ct,region,instance_group_manager,instanc" + + "e_group_manager_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002\201\0012^/compute/v1/projects/{projec" + + "t}/regions/{region}/instanceGroupManager" + + "s/{instance_group_manager}:\037instance_gro" + + "up_manager_resource\022\320\003\n\027PatchPerInstance" + + "Configs\022Q.google.cloud.compute.v1.PatchP" + + "erInstanceConfigsRegionInstanceGroupMana" + + "gerRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\275\002\332Afproject,region,instance_grou" + + "p_manager,region_instance_group_manager_" + + "patch_instance_config_req_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002\272\001\"v/compute/v1/projec" + + "ts/{project}/regions/{region}/instanceGr" + + "oupManagers/{instance_group_manager}/pat" + + "chPerInstanceConfigs:@region_instance_gr" + + "oup_manager_patch_instance_config_req_re" + + "source\022\256\003\n\021RecreateInstances\022K.google.cl" + + "oud.compute.v1.RecreateInstancesRegionIn" + + "stanceGroupManagerRequest\032\".google.cloud" + + ".compute.v1.Operation\"\247\002\332A^project,regio" + + "n,instance_group_manager,region_instance" + + "_group_managers_recreate_request_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002\254\001\"p/compute/v1" + + "/projects/{project}/regions/{region}/ins" + + "tanceGroupManagers/{instance_group_manag" + + "er}/recreateInstances:8region_instance_g" + + "roup_managers_recreate_request_resource\022" + + "\236\002\n\006Resize\022@.google.cloud.compute.v1.Res" + + "izeRegionInstanceGroupManagerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\255\001\332A*pr" + + "oject,region,instance_group_manager,size" + + "\212N\020RegionOperations\202\323\344\223\002g\"e/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "nceGroupManagers/{instance_group_manager" + + "}/resize\022\270\003\n\017ResumeInstances\022I.google.cl" + + "oud.compute.v1.ResumeInstancesRegionInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\265\002\332Afproject,region," + + "instance_group_manager,region_instance_g" + + "roup_managers_resume_instances_request_r" + + "esource\212N\020RegionOperations\202\323\344\223\002\262\001\"n/comp" + "ute/v1/projects/{project}/regions/{regio" - + "n}/instantSnapshots/{instant_snapshot}\022\350" - + "\001\n\003Get\0228.google.cloud.compute.v1.GetRegi" - + "onInstantSnapshotRequest\032(.google.cloud." - + "compute.v1.InstantSnapshot\"}\332A\037project,r" - + "egion,instant_snapshot\202\323\344\223\002U\022S/compute/v" + + "n}/instanceGroupManagers/{instance_group" + + "_manager}/resumeInstances:@region_instan" + + "ce_group_managers_resume_instances_reque" + + "st_resource\022\274\003\n\023SetInstanceTemplate\022M.go" + + "ogle.cloud.compute.v1.SetInstanceTemplat" + + "eRegionInstanceGroupManagerRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\261\002\332Abproj" + + "ect,region,instance_group_manager,region" + + "_instance_group_managers_set_template_re" + + "quest_resource\212N\020RegionOperations\202\323\344\223\002\262\001" + + "\"r/compute/v1/projects/{project}/regions" + + "/{region}/instanceGroupManagers/{instanc" + + "e_group_manager}/setInstanceTemplate:region_instan" + + "ce_group_managers_stop_instances_request" + + "_resource\022\275\003\n\020SuspendInstances\022J.google." + + "cloud.compute.v1.SuspendInstancesRegionI" + + "nstanceGroupManagerRequest\032\".google.clou" + + "d.compute.v1.Operation\"\270\002\332Agproject,regi" + + "on,instance_group_manager,region_instanc" + + "e_group_managers_suspend_instances_reque" + + "st_resource\212N\020RegionOperations\202\323\344\223\002\264\001\"o/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroupManagers/{instance_g" + + "roup_manager}/suspendInstances:Aregion_i" + + "nstance_group_managers_suspend_instances" + + "_request_resource\022\325\003\n\030UpdatePerInstanceC" + + "onfigs\022R.google.cloud.compute.v1.UpdateP" + + "erInstanceConfigsRegionInstanceGroupMana" + + "gerRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\300\002\332Agproject,region,instance_grou" + + "p_manager,region_instance_group_manager_" + + "update_instance_config_req_resource\212N\020Re" + + "gionOperations\202\323\344\223\002\274\001\"w/compute/v1/proje" + + "cts/{project}/regions/{region}/instanceG" + + "roupManagers/{instance_group_manager}/up" + + "datePerInstanceConfigs:Aregion_instance_" + + "group_manager_update_instance_config_req" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\307\n\n\024RegionInstanceGroups\022\336\001\n\003Get\0226" + + ".google.cloud.compute.v1.GetRegionInstan" + + "ceGroupRequest\032&.google.cloud.compute.v1" + + ".InstanceGroup\"w\332A\035project,region,instan" + + "ce_group\202\323\344\223\002Q\022O/compute/v1/projects/{pr" + + "oject}/regions/{region}/instanceGroups/{" + + "instance_group}\022\313\001\n\004List\0228.google.cloud." + + "compute.v1.ListRegionInstanceGroupsReque" + + "st\0320.google.cloud.compute.v1.RegionInsta" + + "nceGroupList\"W\332A\016project,region\202\323\344\223\002@\022>/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroups\022\206\003\n\rListInstances\022" + + "A.google.cloud.compute.v1.ListInstancesR" + + "egionInstanceGroupsRequest\032:.google.clou" + + "d.compute.v1.RegionInstanceGroupsListIns" + + "tances\"\365\001\332ATproject,region,instance_grou" + + "p,region_instance_groups_list_instances_" + + "request_resource\202\323\344\223\002\227\001\"]/compute/v1/pro" + + "jects/{project}/regions/{region}/instanc" + + "eGroups/{instance_group}/listInstances:6" + + "region_instance_groups_list_instances_re" + + "quest_resource\022\202\003\n\rSetNamedPorts\022@.googl" + + "e.cloud.compute.v1.SetNamedPortsRegionIn" + + "stanceGroupRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\212\002\332AUproject,region,insta" + + "nce_group,region_instance_groups_set_nam" + + "ed_ports_request_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002\230\001\"]/compute/v1/projects/{proje" + + "ct}/regions/{region}/instanceGroups/{ins" + + "tance_group}/setNamedPorts:7region_insta" + + "nce_groups_set_named_ports_request_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\346\010\n\027RegionInstanceTemplates\022\200\002\n\006Delete\022<" + + ".google.cloud.compute.v1.DeleteRegionIns" + + "tanceTemplateRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\223\001\332A project,region,ins" + + "tance_template\212N\020RegionOperations\202\323\344\223\002W*" + + "U/compute/v1/projects/{project}/regions/" + + "{region}/instanceTemplates/{instance_tem" + + "plate}\022\356\001\n\003Get\0229.google.cloud.compute.v1" + + ".GetRegionInstanceTemplateRequest\032).goog" + + "le.cloud.compute.v1.InstanceTemplate\"\200\001\332" + + "A project,region,instance_template\202\323\344\223\002W" + + "\022U/compute/v1/projects/{project}/regions" + + "/{region}/instanceTemplates/{instance_te" + + "mplate}\022\221\002\n\006Insert\022<.google.cloud.comput" + + "e.v1.InsertRegionInstanceTemplateRequest" + + "\032\".google.cloud.compute.v1.Operation\"\244\001\332" + + "A)project,region,instance_template_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002_\"A/compute/v" + "1/projects/{project}/regions/{region}/in" - + "stantSnapshots/{instant_snapshot}\022\356\001\n\014Ge" - + "tIamPolicy\022A.google.cloud.compute.v1.Get" - + "IamPolicyRegionInstantSnapshotRequest\032\037." - + "google.cloud.compute.v1.Policy\"z\332A\027proje" - + "ct,region,resource\202\323\344\223\002Z\022X/compute/v1/pr" - + "ojects/{project}/regions/{region}/instan" - + "tSnapshots/{resource}/getIamPolicy\022\215\002\n\006I" - + "nsert\022;.google.cloud.compute.v1.InsertRe" + + "stanceTemplates:\032instance_template_resou" + + "rce\022\316\001\n\004List\022;.google.cloud.compute.v1.L" + + "istRegionInstanceTemplatesRequest\032-.goog" + + "le.cloud.compute.v1.InstanceTemplateList" + + "\"Z\332A\016project,region\202\323\344\223\002C\022A/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "nceTemplates\032r\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform2\264\003\n\017RegionInstances\022\254\002\n\nBulkIns" + + "ert\0228.google.cloud.compute.v1.BulkInsert" + + "RegionInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\277\001\332A5project,region,bu" + + "lk_insert_instance_resource_resource\212N\020R" + + "egionOperations\202\323\344\223\002n\"D/compute/v1/proje" + + "cts/{project}/regions/{region}/instances" + + "/bulkInsert:&bulk_insert_instance_resour" + + "ce_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\237\022\n\026RegionInstantSnapshots\022\374\001\n\006D" + + "elete\022;.google.cloud.compute.v1.DeleteRe" + "gionInstantSnapshotRequest\032\".google.clou" - + "d.compute.v1.Operation\"\241\001\332A(project,regi" - + "on,instant_snapshot_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002]\"@/compute/v1/projects/{pro" - + "ject}/regions/{region}/instantSnapshots:" - + "\031instant_snapshot_resource\022\313\001\n\004List\022:.go" - + "ogle.cloud.compute.v1.ListRegionInstantS" - + "napshotsRequest\032,.google.cloud.compute.v" - + "1.InstantSnapshotList\"Y\332A\016project,region" - + "\202\323\344\223\002B\022@/compute/v1/projects/{project}/r" - + "egions/{region}/instantSnapshots\022\266\002\n\014Set" - + "IamPolicy\022A.google.cloud.compute.v1.SetI" - + "amPolicyRegionInstantSnapshotRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"\301\001\332A:proje" - + "ct,region,resource,region_set_policy_req" - + "uest_resource\202\323\344\223\002~\"X/compute/v1/project" - + "s/{project}/regions/{region}/instantSnap" - + "shots/{resource}/setIamPolicy:\"region_se" - + "t_policy_request_resource\022\303\002\n\tSetLabels\022" - + ">.google.cloud.compute.v1.SetLabelsRegio" - + "nInstantSnapshotRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\321\001\332A:project,region," - + "resource,region_set_labels_request_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002{\"U/compute/v" - + "1/projects/{project}/regions/{region}/in" - + "stantSnapshots/{resource}/setLabels:\"reg" - + "ion_set_labels_request_resource\022\330\002\n\022Test" - + "IamPermissions\022G.google.cloud.compute.v1" - + ".TestIamPermissionsRegionInstantSnapshot" - + "Request\0320.google.cloud.compute.v1.TestPe" - + "rmissionsResponse\"\306\001\332A9project,region,re" - + "source,test_permissions_request_resource" - + "\202\323\344\223\002\203\001\"^/compute/v1/projects/{project}/" - + "regions/{region}/instantSnapshots/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\244\023\n\033RegionNetworkEndpoint" - + "Groups\022\315\003\n\026AttachNetworkEndpoints\022P.goog" - + "le.cloud.compute.v1.AttachNetworkEndpoin" - + "tsRegionNetworkEndpointGroupRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\274\002\332Afpro" - + "ject,region,network_endpoint_group,regio" - + "n_network_endpoint_groups_attach_endpoin" - + "ts_request_resource\212N\020RegionOperations\202\323" - + "\344\223\002\271\001\"u/compute/v1/projects/{project}/re" - + "gions/{region}/networkEndpointGroups/{ne" - + "twork_endpoint_group}/attachNetworkEndpo" - + "ints:@region_network_endpoint_groups_att" - + "ach_endpoints_request_resource\022\222\002\n\006Delet" - + "e\022@.google.cloud.compute.v1.DeleteRegion" + + "d.compute.v1.Operation\"\220\001\332A\037project,regi" + + "on,instant_snapshot\212N\020RegionOperations\202\323" + + "\344\223\002U*S/compute/v1/projects/{project}/reg" + + "ions/{region}/instantSnapshots/{instant_" + + "snapshot}\022\350\001\n\003Get\0228.google.cloud.compute" + + ".v1.GetRegionInstantSnapshotRequest\032(.go" + + "ogle.cloud.compute.v1.InstantSnapshot\"}\332" + + "A\037project,region,instant_snapshot\202\323\344\223\002U\022" + + "S/compute/v1/projects/{project}/regions/", + "{region}/instantSnapshots/{instant_snaps" + + "hot}\022\356\001\n\014GetIamPolicy\022A.google.cloud.com" + + "pute.v1.GetIamPolicyRegionInstantSnapsho" + + "tRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/instantSnapshots/{resource}/getIamP" + + "olicy\022\215\002\n\006Insert\022;.google.cloud.compute." + + "v1.InsertRegionInstantSnapshotRequest\032\"." + + "google.cloud.compute.v1.Operation\"\241\001\332A(p" + + "roject,region,instant_snapshot_resource\212" + + "N\020RegionOperations\202\323\344\223\002]\"@/compute/v1/pr" + + "ojects/{project}/regions/{region}/instan" + + "tSnapshots:\031instant_snapshot_resource\022\313\001" + + "\n\004List\022:.google.cloud.compute.v1.ListReg" + + "ionInstantSnapshotsRequest\032,.google.clou" + + "d.compute.v1.InstantSnapshotList\"Y\332A\016pro" + + "ject,region\202\323\344\223\002B\022@/compute/v1/projects/" + + "{project}/regions/{region}/instantSnapsh" + + "ots\022\266\002\n\014SetIamPolicy\022A.google.cloud.comp" + + "ute.v1.SetIamPolicyRegionInstantSnapshot" + + "Request\032\037.google.cloud.compute.v1.Policy" + + "\"\301\001\332A:project,region,resource,region_set" + + "_policy_request_resource\202\323\344\223\002~\"X/compute" + + "/v1/projects/{project}/regions/{region}/" + + "instantSnapshots/{resource}/setIamPolicy" + + ":\"region_set_policy_request_resource\022\303\002\n" + + "\tSetLabels\022>.google.cloud.compute.v1.Set" + + "LabelsRegionInstantSnapshotRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\321\001\332A:proj" + + "ect,region,resource,region_set_labels_re" + + "quest_resource\212N\020RegionOperations\202\323\344\223\002{\"" + + "U/compute/v1/projects/{project}/regions/" + + "{region}/instantSnapshots/{resource}/set" + + "Labels:\"region_set_labels_request_resour" + + "ce\022\330\002\n\022TestIamPermissions\022G.google.cloud" + + ".compute.v1.TestIamPermissionsRegionInst" + + "antSnapshotRequest\0320.google.cloud.comput" + + "e.v1.TestPermissionsResponse\"\306\001\332A9projec" + + "t,region,resource,test_permissions_reque" + + "st_resource\202\323\344\223\002\203\001\"^/compute/v1/projects" + + "/{project}/regions/{region}/instantSnaps" + + "hots/{resource}/testIamPermissions:!test" + + "_permissions_request_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\244\023\n\033RegionNetw" + + "orkEndpointGroups\022\315\003\n\026AttachNetworkEndpo" + + "ints\022P.google.cloud.compute.v1.AttachNet" + + "workEndpointsRegionNetworkEndpointGroupR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\274\002\332Afproject,region,network_endpoint_" + + "group,region_network_endpoint_groups_att" + + "ach_endpoints_request_resource\212N\020RegionO" + + "perations\202\323\344\223\002\271\001\"u/compute/v1/projects/{" + + "project}/regions/{region}/networkEndpoin" + + "tGroups/{network_endpoint_group}/attachN" + + "etworkEndpoints:@region_network_endpoint" + + "_groups_attach_endpoints_request_resourc" + + "e\022\222\002\n\006Delete\022@.google.cloud.compute.v1.D" + + "eleteRegionNetworkEndpointGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\241\001\332A%" + + "project,region,network_endpoint_group\212N\020" + + "RegionOperations\202\323\344\223\002`*^/compute/v1/proj" + + "ects/{project}/regions/{region}/networkE" + + "ndpointGroups/{network_endpoint_group}\022\315" + + "\003\n\026DetachNetworkEndpoints\022P.google.cloud" + + ".compute.v1.DetachNetworkEndpointsRegion" + "NetworkEndpointGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\241\001\332A%project,reg" - + "ion,network_endpoint_group\212N\020RegionOpera" - + "tions\202\323\344\223\002`*^/compute/v1/projects/{proje" - + "ct}/regions/{region}/networkEndpointGrou" - + "ps/{network_endpoint_group}\022\315\003\n\026DetachNe" - + "tworkEndpoints\022P.google.cloud.compute.v1" - + ".DetachNetworkEndpointsRegionNetworkEndp" - + "ointGroupRequest\032\".google.cloud.compute." - + "v1.Operation\"\274\002\332Afproject,region,network" - + "_endpoint_group,region_network_endpoint_" - + "groups_detach_endpoints_request_resource" - + "\212N\020RegionOperations\202\323\344\223\002\271\001\"u/compute/v1/" - + "projects/{project}/regions/{region}/netw" - + "orkEndpointGroups/{network_endpoint_grou" - + "p}/detachNetworkEndpoints:@region_networ" + + "ud.compute.v1.Operation\"\274\002\332Afproject,reg" + + "ion,network_endpoint_group,region_networ" + "k_endpoint_groups_detach_endpoints_reque" - + "st_resource\022\204\002\n\003Get\022=.google.cloud.compu" - + "te.v1.GetRegionNetworkEndpointGroupReque" - + "st\032-.google.cloud.compute.v1.NetworkEndp" - + "ointGroup\"\216\001\332A%project,region,network_en" - + "dpoint_group\202\323\344\223\002`\022^/compute/v1/projects" - + "/{project}/regions/{region}/networkEndpo" - + "intGroups/{network_endpoint_group}\022\243\002\n\006I" - + "nsert\022@.google.cloud.compute.v1.InsertRe" - + "gionNetworkEndpointGroupRequest\032\".google" - + ".cloud.compute.v1.Operation\"\262\001\332A.project" - + ",region,network_endpoint_group_resource\212" - + "N\020RegionOperations\202\323\344\223\002h\"E/compute/v1/pr" - + "ojects/{project}/regions/{region}/networ" - + "kEndpointGroups:\037network_endpoint_group_" - + "resource\022\332\001\n\004List\022?.google.cloud.compute" - + ".v1.ListRegionNetworkEndpointGroupsReque" - + "st\0321.google.cloud.compute.v1.NetworkEndp" - + "ointGroupList\"^\332A\016project,region\202\323\344\223\002G\022E" - + "/compute/v1/projects/{project}/regions/{" - + "region}/networkEndpointGroups\022\321\002\n\024ListNe" - + "tworkEndpoints\022O.google.cloud.compute.v1" - + ".ListNetworkEndpointsRegionNetworkEndpoi" - + "ntGroupsRequest\032B.google.cloud.compute.v" - + "1.NetworkEndpointGroupsListNetworkEndpoi" - + "nts\"\243\001\332A%project,region,network_endpoint" - + "_group\202\323\344\223\002u\"s/compute/v1/projects/{proj" - + "ect}/regions/{region}/networkEndpointGro" - + "ups/{network_endpoint_group}/listNetwork" - + "Endpoints\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\362\'\n\035RegionNetworkFirewallPolicies\022" - + "\353\002\n\016AddAssociation\022I.google.cloud.comput" - + "e.v1.AddAssociationRegionNetworkFirewall" - + "PolicyRequest\032\".google.cloud.compute.v1." - + "Operation\"\351\001\332ACproject,region,firewall_p" - + "olicy,firewall_policy_association_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002\211\001\"a/compute/v" - + "1/projects/{project}/regions/{region}/fi" - + "rewallPolicies/{firewall_policy}/addAsso" - + "ciation:$firewall_policy_association_res" - + "ource\022\307\002\n\007AddRule\022B.google.cloud.compute" - + ".v1.AddRuleRegionNetworkFirewallPolicyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\323\001\332A.google.cloud.compute.v1.GetRegionNetw" - + "orkFirewallPolicyRequest\032\'.google.cloud." - + "compute.v1.FirewallPolicy\"{\332A\036project,re" - + "gion,firewall_policy\202\323\344\223\002T\022R/compute/v1/" - + "projects/{project}/regions/{region}/fire" - + "wallPolicies/{firewall_policy}\022\234\002\n\016GetAs" - + "sociation\022I.google.cloud.compute.v1.GetA" - + "ssociationRegionNetworkFirewallPolicyReq" - + "uest\0322.google.cloud.compute.v1.FirewallP" - + "olicyAssociation\"\212\001\332A\036project,region,fir" - + "ewall_policy\202\323\344\223\002c\022a/compute/v1/projects" - + "/{project}/regions/{region}/firewallPoli" - + "cies/{firewall_policy}/getAssociation\022\267\002" - + "\n\025GetEffectiveFirewalls\022P.google.cloud.c" - + "ompute.v1.GetEffectiveFirewallsRegionNet" - + "workFirewallPolicyRequest\032S.google.cloud" - + ".compute.v1.RegionNetworkFirewallPolicie" - + "sGetEffectiveFirewallsResponse\"w\332A\026proje" - + "ct,region,network\202\323\344\223\002X\022V/compute/v1/pro" - + "jects/{project}/regions/{region}/firewal" - + "lPolicies/getEffectiveFirewalls\022\364\001\n\014GetI" - + "amPolicy\022G.google.cloud.compute.v1.GetIa" - + "mPolicyRegionNetworkFirewallPolicyReques" - + "t\032\037.google.cloud.compute.v1.Policy\"z\332A\027p" - + "roject,region,resource\202\323\344\223\002Z\022X/compute/v" - + "1/projects/{project}/regions/{region}/fi" - + "rewallPolicies/{resource}/getIamPolicy\022\200" - + "\002\n\007GetRule\022B.google.cloud.compute.v1.Get" - + "RuleRegionNetworkFirewallPolicyRequest\032+" - + ".google.cloud.compute.v1.FirewallPolicyR" - + "ule\"\203\001\332A\036project,region,firewall_policy\202" - + "\323\344\223\002\\\022Z/compute/v1/projects/{project}/re" - + "gions/{region}/firewallPolicies/{firewal" - + "l_policy}/getRule\022\221\002\n\006Insert\022A.google.cl" - + "oud.compute.v1.InsertRegionNetworkFirewa" - + "llPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\237\001\332A\'project,region,firewall" - + "_policy_resource\212N\020RegionOperations\202\323\344\223\002" - + "\\\"@/compute/v1/projects/{project}/region" - + "s/{region}/firewallPolicies:\030firewall_po" - + "licy_resource\022\321\001\n\004List\022A.google.cloud.co" - + "mpute.v1.ListRegionNetworkFirewallPolici" - + "esRequest\032+.google.cloud.compute.v1.Fire" - + "wallPolicyList\"Y\332A\016project,region\202\323\344\223\002B\022" - + "@/compute/v1/projects/{project}/regions/" - + "{region}/firewallPolicies\022\261\002\n\005Patch\022@.go" - + "ogle.cloud.compute.v1.PatchRegionNetwork" - + "FirewallPolicyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\301\001\332A7project,region,fi" - + "rewall_policy,firewall_policy_resource\212N" - + "\020RegionOperations\202\323\344\223\002n2R/compute/v1/pro" + + "st_resource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/networkEndpointGroups/{network_en" + + "dpoint_group}/detachNetworkEndpoints:@re" + + "gion_network_endpoint_groups_detach_endp" + + "oints_request_resource\022\204\002\n\003Get\022=.google." + + "cloud.compute.v1.GetRegionNetworkEndpoin" + + "tGroupRequest\032-.google.cloud.compute.v1." + + "NetworkEndpointGroup\"\216\001\332A%project,region" + + ",network_endpoint_group\202\323\344\223\002`\022^/compute/" + + "v1/projects/{project}/regions/{region}/n" + + "etworkEndpointGroups/{network_endpoint_g" + + "roup}\022\243\002\n\006Insert\022@.google.cloud.compute." + + "v1.InsertRegionNetworkEndpointGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\262" + + "\001\332A.project,region,network_endpoint_grou" + + "p_resource\212N\020RegionOperations\202\323\344\223\002h\"E/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/networkEndpointGroups:\037network_endp" + + "oint_group_resource\022\332\001\n\004List\022?.google.cl" + + "oud.compute.v1.ListRegionNetworkEndpoint" + + "GroupsRequest\0321.google.cloud.compute.v1." + + "NetworkEndpointGroupList\"^\332A\016project,reg" + + "ion\202\323\344\223\002G\022E/compute/v1/projects/{project" + + "}/regions/{region}/networkEndpointGroups" + + "\022\321\002\n\024ListNetworkEndpoints\022O.google.cloud" + + ".compute.v1.ListNetworkEndpointsRegionNe" + + "tworkEndpointGroupsRequest\032B.google.clou" + + "d.compute.v1.NetworkEndpointGroupsListNe" + + "tworkEndpoints\"\243\001\332A%project,region,netwo" + + "rk_endpoint_group\202\323\344\223\002u\"s/compute/v1/pro" + + "jects/{project}/regions/{region}/network" + + "EndpointGroups/{network_endpoint_group}/" + + "listNetworkEndpoints\032r\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform2\362\'\n\035RegionNetworkFirewa" + + "llPolicies\022\353\002\n\016AddAssociation\022I.google.c" + + "loud.compute.v1.AddAssociationRegionNetw" + + "orkFirewallPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\351\001\332ACproject,region" + + ",firewall_policy,firewall_policy_associa" + + "tion_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"" + + "a/compute/v1/projects/{project}/regions/" + + "{region}/firewallPolicies/{firewall_poli" + + "cy}/addAssociation:$firewall_policy_asso" + + "ciation_resource\022\307\002\n\007AddRule\022B.google.cl" + + "oud.compute.v1.AddRuleRegionNetworkFirew" + + "allPolicyRequest\032\".google.cloud.compute." + + "v1.Operation\"\323\001\332A.google.cloud.compute.v1.Ge" + + "tRegionNetworkFirewallPolicyRequest\032\'.go" + + "ogle.cloud.compute.v1.FirewallPolicy\"{\332A" + + "\036project,region,firewall_policy\202\323\344\223\002T\022R/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/firewallPolicies/{firewall_policy" + + "}\022\234\002\n\016GetAssociation\022I.google.cloud.comp" + + "ute.v1.GetAssociationRegionNetworkFirewa" + + "llPolicyRequest\0322.google.cloud.compute.v" + + "1.FirewallPolicyAssociation\"\212\001\332A\036project" + + ",region,firewall_policy\202\323\344\223\002c\022a/compute/" + + "v1/projects/{project}/regions/{region}/f" + + "irewallPolicies/{firewall_policy}/getAss" + + "ociation\022\267\002\n\025GetEffectiveFirewalls\022P.goo" + + "gle.cloud.compute.v1.GetEffectiveFirewal" + + "lsRegionNetworkFirewallPolicyRequest\032S.g" + + "oogle.cloud.compute.v1.RegionNetworkFire" + + "wallPoliciesGetEffectiveFirewallsRespons" + + "e\"w\332A\026project,region,network\202\323\344\223\002X\022V/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/securityPolicies/{security_policy}/g" - + "etRule\022\212\002\n\006Insert\022:.google.cloud.compute" - + ".v1.InsertRegionSecurityPolicyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\237\001\332A\'p" - + "roject,region,security_policy_resource\212N" - + "\020RegionOperations\202\323\344\223\002\\\"@/compute/v1/pro" - + "jects/{project}/regions/{region}/securit" - + "yPolicies:\030security_policy_resource\022\312\001\n\004" - + "List\022:.google.cloud.compute.v1.ListRegio" - + "nSecurityPoliciesRequest\032+.google.cloud." - + "compute.v1.SecurityPolicyList\"Y\332A\016projec" - + "t,region\202\323\344\223\002B\022@/compute/v1/projects/{pr" - + "oject}/regions/{region}/securityPolicies" - + "\022\252\002\n\005Patch\0229.google.cloud.compute.v1.Pat" - + "chRegionSecurityPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\301\001\332A7project,r" - + "egion,security_policy,security_policy_re" - + "source\212N\020RegionOperations\202\323\344\223\002n2R/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/securityPolicies/{security_policy}:\030sec" - + "urity_policy_resource\022\306\002\n\tPatchRule\022=.go" - + "ogle.cloud.compute.v1.PatchRuleRegionSec" - + "urityPolicyRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\325\001\332A.google.cloud.compute.v1.RemoveRu" - + "leRegionSecurityPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\231\001\332A\036project,r" - + "egion,security_policy\212N\020RegionOperations" - + "\202\323\344\223\002_\"]/compute/v1/projects/{project}/r" - + "egions/{region}/securityPolicies/{securi" - + "ty_policy}/removeRule\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\303\010\n\025RegionSslCertifica" - + "tes\022\370\001\n\006Delete\022:.google.cloud.compute.v1" - + ".DeleteRegionSslCertificateRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\215\001\332A\036proj" - + "ect,region,ssl_certificate\212N\020RegionOpera" - + "tions\202\323\344\223\002S*Q/compute/v1/projects/{proje" - + "ct}/regions/{region}/sslCertificates/{ss" - + "l_certificate}\022\343\001\n\003Get\0227.google.cloud.co" - + "mpute.v1.GetRegionSslCertificateRequest\032" - + "\'.google.cloud.compute.v1.SslCertificate" - + "\"z\332A\036project,region,ssl_certificate\202\323\344\223\002" - + "S\022Q/compute/v1/projects/{project}/region" - + "s/{region}/sslCertificates/{ssl_certific" - + "ate}\022\211\002\n\006Insert\022:.google.cloud.compute.v" - + "1.InsertRegionSslCertificateRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\236\001\332A\'pro" - + "ject,region,ssl_certificate_resource\212N\020R", - "egionOperations\202\323\344\223\002[\"?/compute/v1/proje" - + "cts/{project}/regions/{region}/sslCertif" - + "icates:\030ssl_certificate_resource\022\310\001\n\004Lis" - + "t\0229.google.cloud.compute.v1.ListRegionSs" - + "lCertificatesRequest\032+.google.cloud.comp" - + "ute.v1.SslCertificateList\"X\332A\016project,re" - + "gion\202\323\344\223\002A\022?/compute/v1/projects/{projec" - + "t}/regions/{region}/sslCertificates\032r\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform2\225\014\n\021Regi" - + "onSslPolicies\022\344\001\n\006Delete\0225.google.cloud." - + "compute.v1.DeleteRegionSslPolicyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\177\332A\031" - + "project,region,ssl_policy\212N\020RegionOperat" - + "ions\202\323\344\223\002J*H/compute/v1/projects/{projec" - + "t}/regions/{region}/sslPolicies/{ssl_pol" - + "icy}\022\313\001\n\003Get\0222.google.cloud.compute.v1.G" - + "etRegionSslPolicyRequest\032\".google.cloud." - + "compute.v1.SslPolicy\"l\332A\031project,region," - + "ssl_policy\202\323\344\223\002J\022H/compute/v1/projects/{" - + "project}/regions/{region}/sslPolicies/{s" - + "sl_policy}\022\366\001\n\006Insert\0225.google.cloud.com" - + "pute.v1.InsertRegionSslPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\220\001\332A\"pr" - + "oject,region,ssl_policy_resource\212N\020Regio" - + "nOperations\202\323\344\223\002R\";/compute/v1/projects/" - + "{project}/regions/{region}/sslPolicies:\023" - + "ssl_policy_resource\022\275\001\n\004List\0225.google.cl" - + "oud.compute.v1.ListRegionSslPoliciesRequ" - + "est\032(.google.cloud.compute.v1.SslPolicie" - + "sList\"T\332A\016project,region\202\323\344\223\002=\022;/compute" - + "/v1/projects/{project}/regions/{region}/" - + "sslPolicies\022\216\002\n\025ListAvailableFeatures\022F." - + "google.cloud.compute.v1.ListAvailableFea" - + "turesRegionSslPoliciesRequest\032A.google.c" - + "loud.compute.v1.SslPoliciesListAvailable" - + "FeaturesResponse\"j\332A\016project,region\202\323\344\223\002" - + "S\022Q/compute/v1/projects/{project}/region" - + "s/{region}/sslPolicies/listAvailableFeat" - + "ures\022\214\002\n\005Patch\0224.google.cloud.compute.v1" - + ".PatchRegionSslPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\250\001\332A-project,re" - + "gion,ssl_policy,ssl_policy_resource\212N\020Re" - + "gionOperations\202\323\344\223\002_2H/compute/v1/projec" - + "ts/{project}/regions/{region}/sslPolicie" - + "s/{ssl_policy}:\023ssl_policy_resource\032r\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform2\252\013\n\027Regi" - + "onTargetHttpProxies\022\377\001\n\006Delete\022;.google." - + "cloud.compute.v1.DeleteRegionTargetHttpP" - + "roxyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\223\001\332A project,region,target_http_" - + "proxy\212N\020RegionOperations\202\323\344\223\002W*U/compute" - + "/v1/projects/{project}/regions/{region}/" - + "targetHttpProxies/{target_http_proxy}\022\354\001" - + "\n\003Get\0228.google.cloud.compute.v1.GetRegio" - + "nTargetHttpProxyRequest\032(.google.cloud.c" - + "ompute.v1.TargetHttpProxy\"\200\001\332A project,r" - + "egion,target_http_proxy\202\323\344\223\002W\022U/compute/" - + "v1/projects/{project}/regions/{region}/t" - + "argetHttpProxies/{target_http_proxy}\022\220\002\n" - + "\006Insert\022;.google.cloud.compute.v1.Insert" - + "RegionTargetHttpProxyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\244\001\332A)project,re" - + "gion,target_http_proxy_resource\212N\020Region" - + "Operations\202\323\344\223\002_\"A/compute/v1/projects/{" - + "project}/regions/{region}/targetHttpProx" - + "ies:\032target_http_proxy_resource\022\315\001\n\004List" - + "\022;.google.cloud.compute.v1.ListRegionTar" - + "getHttpProxiesRequest\032,.google.cloud.com" - + "pute.v1.TargetHttpProxyList\"Z\332A\016project," - + "region\202\323\344\223\002C\022A/compute/v1/projects/{proj" - + "ect}/regions/{region}/targetHttpProxies\022" - + "\306\002\n\tSetUrlMap\022>.google.cloud.compute.v1." - + "SetUrlMapRegionTargetHttpProxyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\324\001\332A;p" - + "roject,region,target_http_proxy,url_map_" - + "reference_resource\212N\020RegionOperations\202\323\344" - + "\223\002}\"_/compute/v1/projects/{project}/regi" - + "ons/{region}/targetHttpProxies/{target_h" - + "ttp_proxy}/setUrlMap:\032url_map_reference_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\263\021\n\030RegionTargetHttpsProxies\022\203\002\n\006De" - + "lete\022<.google.cloud.compute.v1.DeleteReg" - + "ionTargetHttpsProxyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\226\001\332A!project,regi" - + "on,target_https_proxy\212N\020RegionOperations" - + "\202\323\344\223\002Y*W/compute/v1/projects/{project}/r" - + "egions/{region}/targetHttpsProxies/{targ" - + "et_https_proxy}\022\361\001\n\003Get\0229.google.cloud.c" - + "ompute.v1.GetRegionTargetHttpsProxyReque" - + "st\032).google.cloud.compute.v1.TargetHttps" - + "Proxy\"\203\001\332A!project,region,target_https_p" - + "roxy\202\323\344\223\002Y\022W/compute/v1/projects/{projec" - + "t}/regions/{region}/targetHttpsProxies/{" - + "target_https_proxy}\022\224\002\n\006Insert\022<.google." - + "cloud.compute.v1.InsertRegionTargetHttps" - + "ProxyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\247\001\332A*project,region,target_http" - + "s_proxy_resource\212N\020RegionOperations\202\323\344\223\002" - + "a\"B/compute/v1/projects/{project}/region" - + "s/{region}/targetHttpsProxies:\033target_ht" - + "tps_proxy_resource\022\320\001\n\004List\022<.google.clo" - + "ud.compute.v1.ListRegionTargetHttpsProxi" - + "esRequest\032-.google.cloud.compute.v1.Targ" - + "etHttpsProxyList\"[\332A\016project,region\202\323\344\223\002" - + "D\022B/compute/v1/projects/{project}/region" - + "s/{region}/targetHttpsProxies\022\272\002\n\005Patch\022" - + ";.google.cloud.compute.v1.PatchRegionTar" - + "getHttpsProxyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\317\001\332A=project,region,tar" - + "get_https_proxy,target_https_proxy_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002v2W/compute/v" - + "1/projects/{project}/regions/{region}/ta" - + "rgetHttpsProxies/{target_https_proxy}:\033t" - + "arget_https_proxy_resource\022\264\003\n\022SetSslCer" - + "tificates\022H.google.cloud.compute.v1.SetS" - + "slCertificatesRegionTargetHttpsProxyRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\257\002\332Acproject,region,target_https_proxy,r" - + "egion_target_https_proxies_set_ssl_certi" - + "ficates_request_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002\257\001\"j/compute/v1/projects/{projec" - + "t}/regions/{region}/targetHttpsProxies/{" - + "target_https_proxy}/setSslCertificates:A" - + "region_target_https_proxies_set_ssl_cert" - + "ificates_request_resource\022\312\002\n\tSetUrlMap\022" - + "?.google.cloud.compute.v1.SetUrlMapRegio" - + "nTargetHttpsProxyRequest\032\".google.cloud." - + "compute.v1.Operation\"\327\001\332A.google.clo" - + "ud.compute.v1.AggregatedListResourcePoli" - + "ciesRequest\0325.google.cloud.compute.v1.Re" - + "sourcePolicyAggregatedList\"L\332A\007project\202\323" - + "\344\223\002<\022:/compute/v1/projects/{project}/agg" - + "regated/resourcePolicies\022\363\001\n\006Delete\0224.go" - + "ogle.cloud.compute.v1.DeleteResourcePoli" - + "cyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\216\001\332A\036project,region,resource_polic" - + "y\212N\020RegionOperations\202\323\344\223\002T*R/compute/v1/" - + "projects/{project}/regions/{region}/reso" - + "urcePolicies/{resource_policy}\022\336\001\n\003Get\0221" - + ".google.cloud.compute.v1.GetResourcePoli" - + "cyRequest\032\'.google.cloud.compute.v1.Reso" - + "urcePolicy\"{\332A\036project,region,resource_p" - + "olicy\202\323\344\223\002T\022R/compute/v1/projects/{proje" - + "ct}/regions/{region}/resourcePolicies/{r" - + "esource_policy}\022\347\001\n\014GetIamPolicy\022:.googl" - + "e.cloud.compute.v1.GetIamPolicyResourceP" + + "on}/firewallPolicies/getEffectiveFirewal" + + "ls\022\364\001\n\014GetIamPolicy\022G.google.cloud.compu" + + "te.v1.GetIamPolicyRegionNetworkFirewallP" + "olicyRequest\032\037.google.cloud.compute.v1.P" + "olicy\"z\332A\027project,region,resource\202\323\344\223\002Z\022" + "X/compute/v1/projects/{project}/regions/" - + "{region}/resourcePolicies/{resource}/get" - + "IamPolicy\022\204\002\n\006Insert\0224.google.cloud.comp" - + "ute.v1.InsertResourcePolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\237\001\332A\'proj" - + "ect,region,resource_policy_resource\212N\020Re" - + "gionOperations\202\323\344\223\002\\\"@/compute/v1/projec" - + "ts/{project}/regions/{region}/resourcePo" - + "licies:\030resource_policy_resource\022\304\001\n\004Lis" - + "t\0224.google.cloud.compute.v1.ListResource" - + "PoliciesRequest\032+.google.cloud.compute.v" - + "1.ResourcePolicyList\"Y\332A\016project,region\202" - + "\323\344\223\002B\022@/compute/v1/projects/{project}/re" - + "gions/{region}/resourcePolicies\022\244\002\n\005Patc" - + "h\0223.google.cloud.compute.v1.PatchResourc" - + "ePolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\301\001\332A7project,region,resource_" - + "policy,resource_policy_resource\212N\020Region" - + "Operations\202\323\344\223\002n2R/compute/v1/projects/{" - + "project}/regions/{region}/resourcePolici" - + "es/{resource_policy}:\030resource_policy_re" - + "source\022\257\002\n\014SetIamPolicy\022:.google.cloud.c" - + "ompute.v1.SetIamPolicyResourcePolicyRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\301\001\332" - + "A:project,region,resource,region_set_pol" - + "icy_request_resource\202\323\344\223\002~\"X/compute/v1/" - + "projects/{project}/regions/{region}/reso" - + "urcePolicies/{resource}/setIamPolicy:\"re" - + "gion_set_policy_request_resource\022\321\002\n\022Tes" - + "tIamPermissions\022@.google.cloud.compute.v" - + "1.TestIamPermissionsResourcePolicyReques" - + "t\0320.google.cloud.compute.v1.TestPermissi" - + "onsResponse\"\306\001\332A9project,region,resource" - + ",test_permissions_request_resource\202\323\344\223\002\203" - + "\001\"^/compute/v1/projects/{project}/region" - + "s/{region}/resourcePolicies/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\366\023\n\007Routers\022\273\001\n\016AggregatedList\022" - + "5.google.cloud.compute.v1.AggregatedList" - + "RoutersRequest\032-.google.cloud.compute.v1" - + ".RouterAggregatedList\"C\332A\007project\202\323\344\223\0023\022" - + "1/compute/v1/projects/{project}/aggregat" - + "ed/routers\022\317\001\n\006Delete\022,.google.cloud.com" - + "pute.v1.DeleteRouterRequest\032\".google.clo" - + "ud.compute.v1.Operation\"s\332A\025project,regi" - + "on,router\212N\020RegionOperations\202\323\344\223\002B*@/com" + + "{region}/firewallPolicies/{resource}/get" + + "IamPolicy\022\200\002\n\007GetRule\022B.google.cloud.com" + + "pute.v1.GetRuleRegionNetworkFirewallPoli" + + "cyRequest\032+.google.cloud.compute.v1.Fire" + + "wallPolicyRule\"\203\001\332A\036project,region,firew" + + "all_policy\202\323\344\223\002\\\022Z/compute/v1/projects/{" + + "project}/regions/{region}/firewallPolici" + + "es/{firewall_policy}/getRule\022\221\002\n\006Insert\022" + + "A.google.cloud.compute.v1.InsertRegionNe" + + "tworkFirewallPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\237\001\332A\'project,regi" + + "on,firewall_policy_resource\212N\020RegionOper" + + "ations\202\323\344\223\002\\\"@/compute/v1/projects/{proj" + + "ect}/regions/{region}/firewallPolicies:\030" + + "firewall_policy_resource\022\321\001\n\004List\022A.goog" + + "le.cloud.compute.v1.ListRegionNetworkFir" + + "ewallPoliciesRequest\032+.google.cloud.comp" + + "ute.v1.FirewallPolicyList\"Y\332A\016project,re" + + "gion\202\323\344\223\002B\022@/compute/v1/projects/{projec" + + "t}/regions/{region}/firewallPolicies\022\261\002\n" + + "\005Patch\022@.google.cloud.compute.v1.PatchRe" + + "gionNetworkFirewallPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\301\001\332A7projec" + + "t,region,firewall_policy,firewall_policy" + + "_resource\212N\020RegionOperations\202\323\344\223\002n2R/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/routers/{router}\022\263\001\n\003Get\022).google.cl" - + "oud.compute.v1.GetRouterRequest\032\037.google" - + ".cloud.compute.v1.Router\"`\332A\025project,reg" - + "ion,router\202\323\344\223\002B\022@/compute/v1/projects/{" - + "project}/regions/{region}/routers/{route" - + "r}\022\335\001\n\014GetNatIpInfo\0222.google.cloud.compu" - + "te.v1.GetNatIpInfoRouterRequest\032*.google" - + ".cloud.compute.v1.NatIpInfoResponse\"m\332A\025" - + "project,region,router\202\323\344\223\002O\022M/compute/v1" - + "/projects/{project}/regions/{region}/rou" - + "ters/{router}/getNatIpInfo\022\365\001\n\021GetNatMap" - + "pingInfo\0228.google.cloud.compute.v1.GetNa" - + "tMappingInfoRoutersRequest\0322.google.clou" - + "d.compute.v1.VmEndpointNatMappingsList\"r" - + "\332A\025project,region,router\202\323\344\223\002T\022R/compute" - + "/v1/projects/{project}/regions/{region}/" - + "routers/{router}/getNatMappingInfo\022\351\001\n\017G" - + "etRouterStatus\0225.google.cloud.compute.v1" - + ".GetRouterStatusRouterRequest\032-.google.c" - + "loud.compute.v1.RouterStatusResponse\"p\332A" - + "\025project,region,router\202\323\344\223\002R\022P/compute/v" - + "1/projects/{project}/regions/{region}/ro" - + "uters/{router}/getRouterStatus\022\341\001\n\006Inser" - + "t\022,.google.cloud.compute.v1.InsertRouter" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\204\001\332A\036project,region,router_resource\212" - + "N\020RegionOperations\202\323\344\223\002J\"7/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s:\017router_resource\022\252\001\n\004List\022+.google.clo", - "ud.compute.v1.ListRoutersRequest\032#.googl" - + "e.cloud.compute.v1.RouterList\"P\332A\016projec" - + "t,region\202\323\344\223\0029\0227/compute/v1/projects/{pr" - + "oject}/regions/{region}/routers\022\357\001\n\005Patc" - + "h\022+.google.cloud.compute.v1.PatchRouterR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\224\001\332A%project,region,router,router_res" - + "ource\212N\020RegionOperations\202\323\344\223\002S2@/compute" - + "/v1/projects/{project}/regions/{region}/" - + "routers/{router}:\017router_resource\022\365\001\n\007Pr" - + "eview\022-.google.cloud.compute.v1.PreviewR" - + "outerRequest\032/.google.cloud.compute.v1.R" - + "outersPreviewResponse\"\211\001\332A%project,regio" - + "n,router,router_resource\202\323\344\223\002[\"H/compute" - + "/v1/projects/{project}/regions/{region}/" - + "routers/{router}/preview:\017router_resourc" - + "e\022\361\001\n\006Update\022,.google.cloud.compute.v1.U" - + "pdateRouterRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\224\001\332A%project,region,route" - + "r,router_resource\212N\020RegionOperations\202\323\344\223" - + "\002S\032@/compute/v1/projects/{project}/regio" - + "ns/{region}/routers/{router}:\017router_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\300\006\n\006Routes\022\272\001\n\006Delete\022+.google.cloud.c" - + "ompute.v1.DeleteRouteRequest\032\".google.cl" - + "oud.compute.v1.Operation\"_\332A\rproject,rou" - + "te\212N\020GlobalOperations\202\323\344\223\0026*4/compute/v1" - + "/projects/{project}/global/routes/{route" - + "}\022\235\001\n\003Get\022(.google.cloud.compute.v1.GetR" - + "outeRequest\032\036.google.cloud.compute.v1.Ro" - + "ute\"L\332A\rproject,route\202\323\344\223\0026\0224/compute/v1" - + "/projects/{project}/global/routes/{route" - + "}\022\313\001\n\006Insert\022+.google.cloud.compute.v1.I" - + "nsertRouteRequest\032\".google.cloud.compute" - + ".v1.Operation\"p\332A\026project,route_resource" - + "\212N\020GlobalOperations\202\323\344\223\002>\",/compute/v1/p" - + "rojects/{project}/global/routes:\016route_r" - + "esource\022\226\001\n\004List\022*.google.cloud.compute." - + "v1.ListRoutesRequest\032\".google.cloud.comp" - + "ute.v1.RouteList\">\332A\007project\202\323\344\223\002.\022,/com" - + "pute/v1/projects/{project}/global/routes" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\357\030\n" - + "\020SecurityPolicies\022\251\002\n\007AddRule\0225.google.c" - + "loud.compute.v1.AddRuleSecurityPolicyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\302\001\332A5project,security_policy,security_p" - + "olicy_rule_resource\212N\020GlobalOperations\202\323" - + "\344\223\002q\"P/compute/v1/projects/{project}/glo" - + "bal/securityPolicies/{security_policy}/a" - + "ddRule:\035security_policy_rule_resource\022\327\001" - + "\n\016AggregatedList\022>.google.cloud.compute." - + "v1.AggregatedListSecurityPoliciesRequest" - + "\0327.google.cloud.compute.v1.SecurityPolic" - + "iesAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/co" - + "mpute/v1/projects/{project}/aggregated/s" - + "ecurityPolicies\022\341\001\n\006Delete\0224.google.clou" - + "d.compute.v1.DeleteSecurityPolicyRequest" - + "\032\".google.cloud.compute.v1.Operation\"}\332A" - + "\027project,security_policy\212N\020GlobalOperati" - + "ons\202\323\344\223\002J*H/compute/v1/projects/{project" - + "}/global/securityPolicies/{security_poli" - + "cy}\022\315\001\n\003Get\0221.google.cloud.compute.v1.Ge" - + "tSecurityPolicyRequest\032\'.google.cloud.co" - + "mpute.v1.SecurityPolicy\"j\332A\027project,secu" - + "rity_policy\202\323\344\223\002J\022H/compute/v1/projects/" - + "{project}/global/securityPolicies/{secur" - + "ity_policy}\022\341\001\n\007GetRule\0225.google.cloud.c" - + "ompute.v1.GetRuleSecurityPolicyRequest\032+" + + "on}/firewallPolicies/{firewall_policy}:\030" + + "firewall_policy_resource\022\315\002\n\tPatchRule\022D" + + ".google.cloud.compute.v1.PatchRuleRegion" + + "NetworkFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\325\001\332A\022.google.cloud.compute." + + "v1.RemoveRuleRegionSecurityPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\231\001\332" + + "A\036project,region,security_policy\212N\020Regio" + + "nOperations\202\323\344\223\002_\"]/compute/v1/projects/" + + "{project}/regions/{region}/securityPolic" + + "ies/{security_policy}/removeRule\022\302\002\n\tSet" + + "Labels\022=.google.cloud.compute.v1.SetLabe" + + "lsRegionSecurityPolicyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\321\001\332A:project,r" + + "egion,resource,region_set_labels_request" + + "_resource\212N\020RegionOperations\202\323\344\223\002{\"U/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/securityPolicies/{resource}/setLabel" + + "s:\"region_set_labels_request_resource\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\303\010\n\025Re" + + "gionSslCertificates\022\370\001\n\006Delete\022:.google." + + "cloud.compute.v1.DeleteRegionSslCertific" + + "ateRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\215\001\332A\036project,region,ssl_certifica" + + "te\212N\020RegionOperations\202\323\344\223\002S*Q/compute/v1" + + "/projects/{project}/regions/{region}/ssl" + + "Certificates/{ssl_certificate}\022\343\001\n\003Get\0227" + + ".google.cloud.compute.v1.GetRegionSslCer" + + "tificateRequest\032\'.google.cloud.compute.v" + + "1.SslCertificate\"z\332A\036project,region,ssl_" + + "certificate\202\323\344\223\002S\022Q/compute/v1/projects/" + + "{project}/regions/{region}/sslCertificat" + + "es/{ssl_certificate}\022\211\002\n\006Insert\022:.google" + + ".cloud.compute.v1.InsertRegionSslCertifi" + + "cateRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\236\001\332A\'project,region,ssl_certific" + + "ate_resource\212N\020RegionOperations\202\323\344\223\002[\"?/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/sslCertificates:\030ssl_certificate_" + + "resource\022\310\001\n\004List\0229.google.cloud.compute" + + ".v1.ListRegionSslCertificatesRequest\032+.g" + + "oogle.cloud.compute.v1.SslCertificateLis" + + "t\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v1/" + + "projects/{project}/regions/{region}/sslC" + + "ertificates\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\225\014\n\021RegionSslPolicies\022\344\001\n\006Delete" + + "\0225.google.cloud.compute.v1.DeleteRegionS" + + "slPolicyRequest\032\".google.cloud.compute.v" + + "1.Operation\"\177\332A\031project,region,ssl_polic" + + "y\212N\020RegionOperations\202\323\344\223\002J*H/compute/v1/" + + "projects/{project}/regions/{region}/sslP" + + "olicies/{ssl_policy}\022\313\001\n\003Get\0222.google.cl" + + "oud.compute.v1.GetRegionSslPolicyRequest" + + "\032\".google.cloud.compute.v1.SslPolicy\"l\332A" + + "\031project,region,ssl_policy\202\323\344\223\002J\022H/compu", + "te/v1/projects/{project}/regions/{region" + + "}/sslPolicies/{ssl_policy}\022\366\001\n\006Insert\0225." + + "google.cloud.compute.v1.InsertRegionSslP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\220\001\332A\"project,region,ssl_policy_" + + "resource\212N\020RegionOperations\202\323\344\223\002R\";/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/sslPolicies:\023ssl_policy_resource\022\275\001\n\004" + + "List\0225.google.cloud.compute.v1.ListRegio" + + "nSslPoliciesRequest\032(.google.cloud.compu" + + "te.v1.SslPoliciesList\"T\332A\016project,region" + + "\202\323\344\223\002=\022;/compute/v1/projects/{project}/r" + + "egions/{region}/sslPolicies\022\216\002\n\025ListAvai" + + "lableFeatures\022F.google.cloud.compute.v1." + + "ListAvailableFeaturesRegionSslPoliciesRe" + + "quest\032A.google.cloud.compute.v1.SslPolic" + + "iesListAvailableFeaturesResponse\"j\332A\016pro" + + "ject,region\202\323\344\223\002S\022Q/compute/v1/projects/" + + "{project}/regions/{region}/sslPolicies/l" + + "istAvailableFeatures\022\214\002\n\005Patch\0224.google." + + "cloud.compute.v1.PatchRegionSslPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\250\001\332A-project,region,ssl_policy,ssl_poli" + + "cy_resource\212N\020RegionOperations\202\323\344\223\002_2H/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/serviceAttachments/{service_attach" - + "ment}\022\354\001\n\014GetIamPolicy\022=.google.cloud.co" - + "mpute.v1.GetIamPolicyServiceAttachmentRe" - + "quest\032\037.google.cloud.compute.v1.Policy\"|" - + "\332A\027project,region,resource\202\323\344\223\002\\\022Z/compu" + + "gion}/sslPolicies/{ssl_policy}:\023ssl_poli" + + "cy_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\252\013\n\027RegionTargetHttpProxies\022\377\001\n\006" + + "Delete\022;.google.cloud.compute.v1.DeleteR" + + "egionTargetHttpProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\223\001\332A project,reg" + + "ion,target_http_proxy\212N\020RegionOperations" + + "\202\323\344\223\002W*U/compute/v1/projects/{project}/r" + + "egions/{region}/targetHttpProxies/{targe" + + "t_http_proxy}\022\354\001\n\003Get\0228.google.cloud.com" + + "pute.v1.GetRegionTargetHttpProxyRequest\032" + + "(.google.cloud.compute.v1.TargetHttpProx" + + "y\"\200\001\332A project,region,target_http_proxy\202" + + "\323\344\223\002W\022U/compute/v1/projects/{project}/re" + + "gions/{region}/targetHttpProxies/{target" + + "_http_proxy}\022\220\002\n\006Insert\022;.google.cloud.c" + + "ompute.v1.InsertRegionTargetHttpProxyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\244\001\332A)project,region,target_http_proxy_r" + + "esource\212N\020RegionOperations\202\323\344\223\002_\"A/compu" + "te/v1/projects/{project}/regions/{region" - + "}/serviceAttachments/{resource}/getIamPo" - + "licy\022\217\002\n\006Insert\0227.google.cloud.compute.v" - + "1.InsertServiceAttachmentRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\247\001\332A*projec" - + "t,region,service_attachment_resource\212N\020R" - + "egionOperations\202\323\344\223\002a\"B/compute/v1/proje" - + "cts/{project}/regions/{region}/serviceAt" - + "tachments:\033service_attachment_resource\022\313" - + "\001\n\004List\0226.google.cloud.compute.v1.ListSe" - + "rviceAttachmentsRequest\032..google.cloud.c" - + "ompute.v1.ServiceAttachmentList\"[\332A\016proj" - + "ect,region\202\323\344\223\002D\022B/compute/v1/projects/{" - + "project}/regions/{region}/serviceAttachm" - + "ents\022\265\002\n\005Patch\0226.google.cloud.compute.v1" - + ".PatchServiceAttachmentRequest\032\".google." - + "cloud.compute.v1.Operation\"\317\001\332A=project," - + "region,service_attachment,service_attach" - + "ment_resource\212N\020RegionOperations\202\323\344\223\002v2W" - + "/compute/v1/projects/{project}/regions/{" - + "region}/serviceAttachments/{service_atta" - + "chment}:\033service_attachment_resource\022\265\002\n" - + "\014SetIamPolicy\022=.google.cloud.compute.v1." - + "SetIamPolicyServiceAttachmentRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"\304\001\332A:proje" - + "ct,region,resource,region_set_policy_req" - + "uest_resource\202\323\344\223\002\200\001\"Z/compute/v1/projec" - + "ts/{project}/regions/{region}/serviceAtt" - + "achments/{resource}/setIamPolicy:\"region" - + "_set_policy_request_resource\022\326\002\n\022TestIam" - + "Permissions\022C.google.cloud.compute.v1.Te" - + "stIamPermissionsServiceAttachmentRequest" - + "\0320.google.cloud.compute.v1.TestPermissio" - + "nsResponse\"\310\001\332A9project,region,resource," - + "test_permissions_request_resource\202\323\344\223\002\205\001" - + "\"`/compute/v1/projects/{project}/regions" - + "/{region}/serviceAttachments/{resource}/" - + "testIamPermissions:!test_permissions_req" - + "uest_resource\032r\312A\026compute.googleapis.com" - + "\322AVhttps://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform2\267\004\n\027SnapshotSettingsService\022\256\001" - + "\n\003Get\0222.google.cloud.compute.v1.GetSnaps" - + "hotSettingRequest\032).google.cloud.compute" - + ".v1.SnapshotSettings\"H\332A\007project\202\323\344\223\0028\0226" - + "/compute/v1/projects/{project}/global/sn" - + "apshotSettings\022\366\001\n\005Patch\0224.google.cloud." - + "compute.v1.PatchSnapshotSettingRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\222\001\332A\"" - + "project,snapshot_settings_resource\212N\020Glo" - + "balOperations\202\323\344\223\002T26/compute/v1/project" - + "s/{project}/global/snapshotSettings:\032sna" - + "pshot_settings_resource\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\251\017\n\tSnapshots\022\306\001\n\006De" - + "lete\022..google.cloud.compute.v1.DeleteSna" - + "pshotRequest\032\".google.cloud.compute.v1.O" - + "peration\"h\332A\020project,snapshot\212N\020GlobalOp" - + "erations\202\323\344\223\002<*:/compute/v1/projects/{pr" - + "oject}/global/snapshots/{snapshot}\022\254\001\n\003G" - + "et\022+.google.cloud.compute.v1.GetSnapshot" - + "Request\032!.google.cloud.compute.v1.Snapsh" - + "ot\"U\332A\020project,snapshot\202\323\344\223\002<\022:/compute/" - + "v1/projects/{project}/global/snapshots/{" - + "snapshot}\022\311\001\n\014GetIamPolicy\0224.google.clou" - + "d.compute.v1.GetIamPolicySnapshotRequest" - + "\032\037.google.cloud.compute.v1.Policy\"b\332A\020pr" - + "oject,resource\202\323\344\223\002I\022G/compute/v1/projec" - + "ts/{project}/global/snapshots/{resource}" - + "/getIamPolicy\022\327\001\n\006Insert\022..google.cloud." - + "compute.v1.InsertSnapshotRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"y\332A\031project" - + ",snapshot_resource\212N\020GlobalOperations\202\323\344" - + "\223\002D\"//compute/v1/projects/{project}/glob" - + "al/snapshots:\021snapshot_resource\022\237\001\n\004List" - + "\022-.google.cloud.compute.v1.ListSnapshots" - + "Request\032%.google.cloud.compute.v1.Snapsh" - + "otList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/pr" - + "ojects/{project}/global/snapshots\022\221\002\n\014Se" - + "tIamPolicy\0224.google.cloud.compute.v1.Set" - + "IamPolicySnapshotRequest\032\037.google.cloud." - + "compute.v1.Policy\"\251\001\332A3project,resource," - + "global_set_policy_request_resource\202\323\344\223\002m" - + "\"G/compute/v1/projects/{project}/global/" - + "snapshots/{resource}/setIamPolicy:\"globa" - + "l_set_policy_request_resource\022\236\002\n\tSetLab" - + "els\0221.google.cloud.compute.v1.SetLabelsS" - + "napshotRequest\032\".google.cloud.compute.v1" - + ".Operation\"\271\001\332A3project,resource,global_" - + "set_labels_request_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002j\"D/compute/v1/projects/{proj" - + "ect}/global/snapshots/{resource}/setLabe" - + "ls:\"global_set_labels_request_resource\022\262" - + "\002\n\022TestIamPermissions\022:.google.cloud.com" - + "pute.v1.TestIamPermissionsSnapshotReques" - + "t\0320.google.cloud.compute.v1.TestPermissi" - + "onsResponse\"\255\001\332A2project,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002r\"M/comp" - + "ute/v1/projects/{project}/global/snapsho" - + "ts/{resource}/testIamPermissions:!test_p" - + "ermissions_request_resource\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\266\t\n\017SslCertifica" - + "tes\022\323\001\n\016AggregatedList\022=.google.cloud.co" - + "mpute.v1.AggregatedListSslCertificatesRe" - + "quest\0325.google.cloud.compute.v1.SslCerti" - + "ficateAggregatedList\"K\332A\007project\202\323\344\223\002;\0229" - + "/compute/v1/projects/{project}/aggregate" - + "d/sslCertificates\022\340\001\n\006Delete\0224.google.cl" - + "oud.compute.v1.DeleteSslCertificateReque" - + "st\032\".google.cloud.compute.v1.Operation\"|" - + "\332A\027project,ssl_certificate\212N\020GlobalOpera" - + "tions\202\323\344\223\002I*G/compute/v1/projects/{proje" - + "ct}/global/sslCertificates/{ssl_certific" - + "ate}\022\314\001\n\003Get\0221.google.cloud.compute.v1.G" - + "etSslCertificateRequest\032\'.google.cloud.c" - + "ompute.v1.SslCertificate\"i\332A\027project,ssl" - + "_certificate\202\323\344\223\002I\022G/compute/v1/projects" - + "/{project}/global/sslCertificates/{ssl_c" - + "ertificate}\022\362\001\n\006Insert\0224.google.cloud.co" - + "mpute.v1.InsertSslCertificateRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\215\001\332A pr" - + "oject,ssl_certificate_resource\212N\020GlobalO" - + "perations\202\323\344\223\002Q\"5/compute/v1/projects/{p" - + "roject}/global/sslCertificates:\030ssl_cert" - + "ificate_resource\022\261\001\n\004List\0223.google.cloud" - + ".compute.v1.ListSslCertificatesRequest\032+" - + ".google.cloud.compute.v1.SslCertificateL" - + "ist\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proje" - + "cts/{project}/global/sslCertificates\032r\312A" - + "\026compute.googleapis.com\322AVhttps://www.go" - + "ogleapis.com/auth/compute,https://www.go" - + "ogleapis.com/auth/cloud-platform2\317\014\n\013Ssl" - + "Policies\022\310\001\n\016AggregatedList\0229.google.clo" - + "ud.compute.v1.AggregatedListSslPoliciesR" - + "equest\0322.google.cloud.compute.v1.SslPoli" - + "ciesAggregatedList\"G\332A\007project\202\323\344\223\0027\0225/c" - + "ompute/v1/projects/{project}/aggregated/" - + "sslPolicies\022\315\001\n\006Delete\022/.google.cloud.co" - + "mpute.v1.DeleteSslPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"n\332A\022project," - + "ssl_policy\212N\020GlobalOperations\202\323\344\223\002@*>/co" - + "mpute/v1/projects/{project}/global/sslPo" - + "licies/{ssl_policy}\022\264\001\n\003Get\022,.google.clo" - + "ud.compute.v1.GetSslPolicyRequest\032\".goog" - + "le.cloud.compute.v1.SslPolicy\"[\332A\022projec" - + "t,ssl_policy\202\323\344\223\002@\022>/compute/v1/projects" - + "/{project}/global/sslPolicies/{ssl_polic" - + "y}\022\336\001\n\006Insert\022/.google.cloud.compute.v1." - + "InsertSslPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\177\332A\033project,ssl_polic" - + "y_resource\212N\020GlobalOperations\202\323\344\223\002H\"1/co" - + "mpute/v1/projects/{project}/global/sslPo" - + "licies:\023ssl_policy_resource\022\246\001\n\004List\022/.g" - + "oogle.cloud.compute.v1.ListSslPoliciesRe" - + "quest\032(.google.cloud.compute.v1.SslPolic" - + "iesList\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/p" - + "rojects/{project}/global/sslPolicies\022\367\001\n" - + "\025ListAvailableFeatures\022@.google.cloud.co" - + "mpute.v1.ListAvailableFeaturesSslPolicie" - + "sRequest\032A.google.cloud.compute.v1.SslPo" - + "liciesListAvailableFeaturesResponse\"Y\332A\007" - + "project\202\323\344\223\002I\022G/compute/v1/projects/{pro" - + "ject}/global/sslPolicies/listAvailableFe" - + "atures\022\365\001\n\005Patch\022..google.cloud.compute." - + "v1.PatchSslPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\227\001\332A&project,ssl_po" - + "licy,ssl_policy_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002U2>/compute/v1/projects/{project" - + "}/global/sslPolicies/{ssl_policy}:\023ssl_p" - + "olicy_resource\032r\312A\026compute.googleapis.co" + + "}/targetHttpProxies:\032target_http_proxy_r" + + "esource\022\315\001\n\004List\022;.google.cloud.compute." + + "v1.ListRegionTargetHttpProxiesRequest\032,." + + "google.cloud.compute.v1.TargetHttpProxyL" + + "ist\"Z\332A\016project,region\202\323\344\223\002C\022A/compute/v" + + "1/projects/{project}/regions/{region}/ta" + + "rgetHttpProxies\022\306\002\n\tSetUrlMap\022>.google.c" + + "loud.compute.v1.SetUrlMapRegionTargetHtt" + + "pProxyRequest\032\".google.cloud.compute.v1." + + "Operation\"\324\001\332A;project,region,target_htt" + + "p_proxy,url_map_reference_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002}\"_/compute/v1/project" + + "s/{project}/regions/{region}/targetHttpP" + + "roxies/{target_http_proxy}/setUrlMap:\032ur" + + "l_map_reference_resource\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\263\021\n\030RegionTargetHtt" + + "psProxies\022\203\002\n\006Delete\022<.google.cloud.comp" + + "ute.v1.DeleteRegionTargetHttpsProxyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\226" + + "\001\332A!project,region,target_https_proxy\212N\020" + + "RegionOperations\202\323\344\223\002Y*W/compute/v1/proj" + + "ects/{project}/regions/{region}/targetHt" + + "tpsProxies/{target_https_proxy}\022\361\001\n\003Get\022" + + "9.google.cloud.compute.v1.GetRegionTarge" + + "tHttpsProxyRequest\032).google.cloud.comput" + + "e.v1.TargetHttpsProxy\"\203\001\332A!project,regio" + + "n,target_https_proxy\202\323\344\223\002Y\022W/compute/v1/" + + "projects/{project}/regions/{region}/targ" + + "etHttpsProxies/{target_https_proxy}\022\224\002\n\006" + + "Insert\022<.google.cloud.compute.v1.InsertR" + + "egionTargetHttpsProxyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\247\001\332A*project,re" + + "gion,target_https_proxy_resource\212N\020Regio" + + "nOperations\202\323\344\223\002a\"B/compute/v1/projects/" + + "{project}/regions/{region}/targetHttpsPr" + + "oxies:\033target_https_proxy_resource\022\320\001\n\004L" + + "ist\022<.google.cloud.compute.v1.ListRegion" + + "TargetHttpsProxiesRequest\032-.google.cloud" + + ".compute.v1.TargetHttpsProxyList\"[\332A\016pro" + + "ject,region\202\323\344\223\002D\022B/compute/v1/projects/" + + "{project}/regions/{region}/targetHttpsPr" + + "oxies\022\272\002\n\005Patch\022;.google.cloud.compute.v" + + "1.PatchRegionTargetHttpsProxyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\317\001\332A=pr" + + "oject,region,target_https_proxy,target_h" + + "ttps_proxy_resource\212N\020RegionOperations\202\323" + + "\344\223\002v2W/compute/v1/projects/{project}/reg" + + "ions/{region}/targetHttpsProxies/{target" + + "_https_proxy}:\033target_https_proxy_resour" + + "ce\022\264\003\n\022SetSslCertificates\022H.google.cloud" + + ".compute.v1.SetSslCertificatesRegionTarg" + + "etHttpsProxyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\257\002\332Acproject,region,targ" + + "et_https_proxy,region_target_https_proxi" + + "es_set_ssl_certificates_request_resource" + + "\212N\020RegionOperations\202\323\344\223\002\257\001\"j/compute/v1/" + + "projects/{project}/regions/{region}/targ" + + "etHttpsProxies/{target_https_proxy}/setS" + + "slCertificates:Aregion_target_https_prox" + + "ies_set_ssl_certificates_request_resourc" + + "e\022\312\002\n\tSetUrlMap\022?.google.cloud.compute.v" + + "1.SetUrlMapRegionTargetHttpsProxyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\327\001\332" + + "A.google.cloud.compute.v1.Agg" - + "regatedListStoragePoolTypesRequest\0326.goo" - + "gle.cloud.compute.v1.StoragePoolTypeAggr" - + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" - + "1/projects/{project}/aggregated/storageP" - + "oolTypes\022\336\001\n\003Get\0222.google.cloud.compute." - + "v1.GetStoragePoolTypeRequest\032(.google.cl" - + "oud.compute.v1.StoragePoolType\"y\332A\036proje" - + "ct,zone,storage_pool_type\202\323\344\223\002R\022P/comput" - + "e/v1/projects/{project}/zones/{zone}/sto" - + "ragePoolTypes/{storage_pool_type}\022\277\001\n\004Li" - + "st\0224.google.cloud.compute.v1.ListStorage" - + "PoolTypesRequest\032,.google.cloud.compute." - + "v1.StoragePoolTypeList\"S\332A\014project,zone\202" - + "\323\344\223\002>\022\022.google.cloud.compute.v1.Aggregated" + + "ListResourcePoliciesRequest\0325.google.clo" + + "ud.compute.v1.ResourcePolicyAggregatedLi" + + "st\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/projec" + + "ts/{project}/aggregated/resourcePolicies" + + "\022\363\001\n\006Delete\0224.google.cloud.compute.v1.De" + + "leteResourcePolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\216\001\332A\036project,regio" + + "n,resource_policy\212N\020RegionOperations\202\323\344\223" + + "\002T*R/compute/v1/projects/{project}/regio" + + "ns/{region}/resourcePolicies/{resource_p" + + "olicy}\022\336\001\n\003Get\0221.google.cloud.compute.v1" + + ".GetResourcePolicyRequest\032\'.google.cloud" + + ".compute.v1.ResourcePolicy\"{\332A\036project,r" + + "egion,resource_policy\202\323\344\223\002T\022R/compute/v1" + + "/projects/{project}/regions/{region}/res" + + "ourcePolicies/{resource_policy}\022\347\001\n\014GetI" + + "amPolicy\022:.google.cloud.compute.v1.GetIa" + + "mPolicyResourcePolicyRequest\032\037.google.cl" + + "oud.compute.v1.Policy\"z\332A\027project,region" + + ",resource\202\323\344\223\002Z\022X/compute/v1/projects/{p" + + "roject}/regions/{region}/resourcePolicie" + + "s/{resource}/getIamPolicy\022\204\002\n\006Insert\0224.g" + + "oogle.cloud.compute.v1.InsertResourcePol" + + "icyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\237\001\332A\'project,region,resource_poli" + + "cy_resource\212N\020RegionOperations\202\323\344\223\002\\\"@/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/resourcePolicies:\030resource_policy_" + + "resource\022\304\001\n\004List\0224.google.cloud.compute" + + ".v1.ListResourcePoliciesRequest\032+.google" + + ".cloud.compute.v1.ResourcePolicyList\"Y\332A" + + "\016project,region\202\323\344\223\002B\022@/compute/v1/proje" + + "cts/{project}/regions/{region}/resourceP" + + "olicies\022\244\002\n\005Patch\0223.google.cloud.compute" + + ".v1.PatchResourcePolicyRequest\032\".google." + + "cloud.compute.v1.Operation\"\301\001\332A7project," + + "region,resource_policy,resource_policy_r" + + "esource\212N\020RegionOperations\202\323\344\223\002n2R/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/resourcePolicies/{resource_policy}:\030re" + + "source_policy_resource\022\257\002\n\014SetIamPolicy\022" + + ":.google.cloud.compute.v1.SetIamPolicyRe" + + "sourcePolicyRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"\301\001\332A:project,region,resourc" + + "e,region_set_policy_request_resource\202\323\344\223" + + "\002~\"X/compute/v1/projects/{project}/regio" + + "ns/{region}/resourcePolicies/{resource}/" + + "setIamPolicy:\"region_set_policy_request_" + + "resource\022\321\002\n\022TestIamPermissions\022@.google" + + ".cloud.compute.v1.TestIamPermissionsReso" + + "urcePolicyRequest\0320.google.cloud.compute" + + ".v1.TestPermissionsResponse\"\306\001\332A9project" + + ",region,resource,test_permissions_reques" + + "t_resource\202\323\344\223\002\203\001\"^/compute/v1/projects/" + + "{project}/regions/{region}/resourcePolic" + + "ies/{resource}/testIamPermissions:!test_" + + "permissions_request_resource\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\366\023\n\007Routers\022\273\001\n" + + "\016AggregatedList\0225.google.cloud.compute.v" + + "1.AggregatedListRoutersRequest\032-.google." + + "cloud.compute.v1.RouterAggregatedList\"C\332" + + "A\007project\202\323\344\223\0023\0221/compute/v1/projects/{p" + + "roject}/aggregated/routers\022\317\001\n\006Delete\022,." + + "google.cloud.compute.v1.DeleteRouterRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\206\002\332AQproject,target_ssl_proxy,target_ssl" - + "_proxies_set_ssl_certificates_request_re" - + "source\212N\020GlobalOperations\202\323\344\223\002\230\001\"\\/compu" - + "te/v1/projects/{project}/global/targetSs" - + "lProxies/{target_ssl_proxy}/setSslCertif" - + "icates:8target_ssl_proxies_set_ssl_certi" - + "ficates_request_resource\022\272\002\n\014SetSslPolic" - + "y\022:.google.cloud.compute.v1.SetSslPolicy" - + "TargetSslProxyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\311\001\332A6project,target_ss" - + "l_proxy,ssl_policy_reference_resource\212N\020" - + "GlobalOperations\202\323\344\223\002w\"V/compute/v1/proj" - + "ects/{project}/global/targetSslProxies/{" - + "target_ssl_proxy}/setSslPolicy:\035ssl_poli" - + "cy_reference_resource\032r\312A\026compute.google" + + "s\332A\025project,region,router\212N\020RegionOperat" + + "ions\202\323\344\223\002B*@/compute/v1/projects/{projec" + + "t}/regions/{region}/routers/{router}\022\263\001\n" + + "\003Get\022).google.cloud.compute.v1.GetRouter" + + "Request\032\037.google.cloud.compute.v1.Router" + + "\"`\332A\025project,region,router\202\323\344\223\002B\022@/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/routers/{router}\022\335\001\n\014GetNatIpInfo\0222.go" + + "ogle.cloud.compute.v1.GetNatIpInfoRouter" + + "Request\032*.google.cloud.compute.v1.NatIpI" + + "nfoResponse\"m\332A\025project,region,router\202\323\344" + + "\223\002O\022M/compute/v1/projects/{project}/regi" + + "ons/{region}/routers/{router}/getNatIpIn" + + "fo\022\365\001\n\021GetNatMappingInfo\0228.google.cloud." + + "compute.v1.GetNatMappingInfoRoutersReque" + + "st\0322.google.cloud.compute.v1.VmEndpointN" + + "atMappingsList\"r\332A\025project,region,router" + + "\202\323\344\223\002T\022R/compute/v1/projects/{project}/r" + + "egions/{region}/routers/{router}/getNatM" + + "appingInfo\022\351\001\n\017GetRouterStatus\0225.google." + + "cloud.compute.v1.GetRouterStatusRouterRe" + + "quest\032-.google.cloud.compute.v1.RouterSt" + + "atusResponse\"p\332A\025project,region,router\202\323" + + "\344\223\002R\022P/compute/v1/projects/{project}/reg" + + "ions/{region}/routers/{router}/getRouter" + + "Status\022\341\001\n\006Insert\022,.google.cloud.compute" + + ".v1.InsertRouterRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\204\001\332A\036project,region," + + "router_resource\212N\020RegionOperations\202\323\344\223\002J" + + "\"7/compute/v1/projects/{project}/regions" + + "/{region}/routers:\017router_resource\022\252\001\n\004L" + + "ist\022+.google.cloud.compute.v1.ListRouter" + + "sRequest\032#.google.cloud.compute.v1.Route" + + "rList\"P\332A\016project,region\202\323\344\223\0029\0227/compute" + + "/v1/projects/{project}/regions/{region}/" + + "routers\022\357\001\n\005Patch\022+.google.cloud.compute" + + ".v1.PatchRouterRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\224\001\332A%project,region,r" + + "outer,router_resource\212N\020RegionOperations" + + "\202\323\344\223\002S2@/compute/v1/projects/{project}/r" + + "egions/{region}/routers/{router}:\017router" + + "_resource\022\365\001\n\007Preview\022-.google.cloud.com" + + "pute.v1.PreviewRouterRequest\032/.google.cl" + + "oud.compute.v1.RoutersPreviewResponse\"\211\001" + + "\332A%project,region,router,router_resource" + + "\202\323\344\223\002[\"H/compute/v1/projects/{project}/r" + + "egions/{region}/routers/{router}/preview" + + ":\017router_resource\022\361\001\n\006Update\022,.google.cl" + + "oud.compute.v1.UpdateRouterRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\224\001\332A%proj" + + "ect,region,router,router_resource\212N\020Regi" + + "onOperations\202\323\344\223\002S\032@/compute/v1/projects", + "/{project}/regions/{region}/routers/{rou" + + "ter}:\017router_resource\032r\312A\026compute.google" + "apis.com\322AVhttps://www.googleapis.com/au" + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\267\017\n\020TargetTcpProxies\022\325" - + "\001\n\016AggregatedList\022>.google.cloud.compute" - + ".v1.AggregatedListTargetTcpProxiesReques" - + "t\0325.google.cloud.compute.v1.TargetTcpPro" - + "xyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/com" - + "pute/v1/projects/{project}/aggregated/ta" - + "rgetTcpProxies\022\343\001\n\006Delete\0224.google.cloud" - + ".compute.v1.DeleteTargetTcpProxyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\177\332A\030" - + "project,target_tcp_proxy\212N\020GlobalOperati" - + "ons\202\323\344\223\002K*I/compute/v1/projects/{project" - + "}/global/targetTcpProxies/{target_tcp_pr" - + "oxy}\022\317\001\n\003Get\0221.google.cloud.compute.v1.G" - + "etTargetTcpProxyRequest\032\'.google.cloud.c" - + "ompute.v1.TargetTcpProxy\"l\332A\030project,tar" - + "get_tcp_proxy\202\323\344\223\002K\022I/compute/v1/project" - + "s/{project}/global/targetTcpProxies/{tar" - + "get_tcp_proxy}\022\365\001\n\006Insert\0224.google.cloud" - + ".compute.v1.InsertTargetTcpProxyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\220\001\332A" - + "!project,target_tcp_proxy_resource\212N\020Glo" - + "balOperations\202\323\344\223\002S\"6/compute/v1/project" - + "s/{project}/global/targetTcpProxies:\031tar" - + "get_tcp_proxy_resource\022\263\001\n\004List\0224.google" - + ".cloud.compute.v1.ListTargetTcpProxiesRe" - + "quest\032+.google.cloud.compute.v1.TargetTc" - + "pProxyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v" - + "1/projects/{project}/global/targetTcpPro" - + "xies\022\376\002\n\021SetBackendService\022?.google.clou" - + "d.compute.v1.SetBackendServiceTargetTcpP" - + "roxyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\203\002\332APproject,target_tcp_proxy,ta" - + "rget_tcp_proxies_set_backend_service_req" - + "uest_resource\212N\020GlobalOperations\202\323\344\223\002\226\001\"" - + "[/compute/v1/projects/{project}/global/t" - + "argetTcpProxies/{target_tcp_proxy}/setBa" - + "ckendService:7target_tcp_proxies_set_bac" - + "kend_service_request_resource\022\357\002\n\016SetPro" - + "xyHeader\022<.google.cloud.compute.v1.SetPr" - + "oxyHeaderTargetTcpProxyRequest\032\".google." - + "cloud.compute.v1.Operation\"\372\001\332AMproject," - + "target_tcp_proxy,target_tcp_proxies_set_" - + "proxy_header_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002\220\001\"X/compute/v1/projects/{p" - + "roject}/global/targetTcpProxies/{target_" - + "tcp_proxy}/setProxyHeader:4target_tcp_pr" - + "oxies_set_proxy_header_request_resource\032" + + "th/cloud-platform2\300\006\n\006Routes\022\272\001\n\006Delete\022" + + "+.google.cloud.compute.v1.DeleteRouteReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"_\332A\rproject,route\212N\020GlobalOperations\202\323\344" + + "\223\0026*4/compute/v1/projects/{project}/glob" + + "al/routes/{route}\022\235\001\n\003Get\022(.google.cloud" + + ".compute.v1.GetRouteRequest\032\036.google.clo" + + "ud.compute.v1.Route\"L\332A\rproject,route\202\323\344" + + "\223\0026\0224/compute/v1/projects/{project}/glob" + + "al/routes/{route}\022\313\001\n\006Insert\022+.google.cl" + + "oud.compute.v1.InsertRouteRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"p\332A\026projec" + + "t,route_resource\212N\020GlobalOperations\202\323\344\223\002" + + ">\",/compute/v1/projects/{project}/global" + + "/routes:\016route_resource\022\226\001\n\004List\022*.googl" + + "e.cloud.compute.v1.ListRoutesRequest\032\".g" + + "oogle.cloud.compute.v1.RouteList\">\332A\007pro" + + "ject\202\323\344\223\002.\022,/compute/v1/projects/{projec" + + "t}/global/routes\032r\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform2\357\030\n\020SecurityPolicies\022\251\002\n\007Ad" + + "dRule\0225.google.cloud.compute.v1.AddRuleS" + + "ecurityPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\302\001\332A5project,security_p" + + "olicy,security_policy_rule_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002q\"P/compute/v1/projec" + + "ts/{project}/global/securityPolicies/{se" + + "curity_policy}/addRule:\035security_policy_" + + "rule_resource\022\327\001\n\016AggregatedList\022>.googl" + + "e.cloud.compute.v1.AggregatedListSecurit" + + "yPoliciesRequest\0327.google.cloud.compute." + + "v1.SecurityPoliciesAggregatedList\"L\332A\007pr" + + "oject\202\323\344\223\002<\022:/compute/v1/projects/{proje" + + "ct}/aggregated/securityPolicies\022\341\001\n\006Dele" + + "te\0224.google.cloud.compute.v1.DeleteSecur" + + "ityPolicyRequest\032\".google.cloud.compute." + + "v1.Operation\"}\332A\027project,security_policy" + + "\212N\020GlobalOperations\202\323\344\223\002J*H/compute/v1/p" + + "rojects/{project}/global/securityPolicie" + + "s/{security_policy}\022\315\001\n\003Get\0221.google.clo" + + "ud.compute.v1.GetSecurityPolicyRequest\032\'" + + ".google.cloud.compute.v1.SecurityPolicy\"" + + "j\332A\027project,security_policy\202\323\344\223\002J\022H/comp" + + "ute/v1/projects/{project}/global/securit" + + "yPolicies/{security_policy}\022\341\001\n\007GetRule\022" + + "5.google.cloud.compute.v1.GetRuleSecurit" + + "yPolicyRequest\032+.google.cloud.compute.v1" + + ".SecurityPolicyRule\"r\332A\027project,security" + + "_policy\202\323\344\223\002R\022P/compute/v1/projects/{pro" + + "ject}/global/securityPolicies/{security_" + + "policy}/getRule\022\363\001\n\006Insert\0224.google.clou" + + "d.compute.v1.InsertSecurityPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\216\001\332" + + "A project,security_policy_resource\212N\020Glo" + + "balOperations\202\323\344\223\002R\"6/compute/v1/project" + + "s/{project}/global/securityPolicies:\030sec" + + "urity_policy_resource\022\263\001\n\004List\0224.google." + + "cloud.compute.v1.ListSecurityPoliciesReq" + + "uest\032+.google.cloud.compute.v1.SecurityP" + + "olicyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v1" + + "/projects/{project}/global/securityPolic" + + "ies\022\256\002\n\037ListPreconfiguredExpressionSets\022" + + "O.google.cloud.compute.v1.ListPreconfigu" + + "redExpressionSetsSecurityPoliciesRequest" + + "\032P.google.cloud.compute.v1.SecurityPolic" + + "iesListPreconfiguredExpressionSetsRespon" + + "se\"h\332A\007project\202\323\344\223\002X\022V/compute/v1/projec" + + "ts/{project}/global/securityPolicies/lis" + + "tPreconfiguredExpressionSets\022\223\002\n\005Patch\0223" + + ".google.cloud.compute.v1.PatchSecurityPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\260\001\332A0project,security_policy,sec" + + "urity_policy_resource\212N\020GlobalOperations" + + "\202\323\344\223\002d2H/compute/v1/projects/{project}/g" + + "lobal/securityPolicies/{security_policy}" + + ":\030security_policy_resource\022\257\002\n\tPatchRule" + + "\0227.google.cloud.compute.v1.PatchRuleSecu" + + "rityPolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\304\001\332A5project,security_poli" + + "cy,security_policy_rule_resource\212N\020Globa" + + "lOperations\202\323\344\223\002s\"R/compute/v1/projects/" + + "{project}/global/securityPolicies/{secur" + + "ity_policy}/patchRule:\035security_policy_r" + + "ule_resource\022\365\001\n\nRemoveRule\0228.google.clo" + + "ud.compute.v1.RemoveRuleSecurityPolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\210\001\332A\027project,security_policy\212N\020GlobalO" + + "perations\202\323\344\223\002U\"S/compute/v1/projects/{p" + + "roject}/global/securityPolicies/{securit" + + "y_policy}/removeRule\022\253\002\n\tSetLabels\0227.goo" + + "gle.cloud.compute.v1.SetLabelsSecurityPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\300\001\332A3project,resource,global_set" + + "_labels_request_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002q\"K/compute/v1/projects/{project" + + "}/global/securityPolicies/{resource}/set" + + "Labels:\"global_set_labels_request_resour" + + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform2\360" + + "\023\n\022ServiceAttachments\022\334\001\n\016AggregatedList" + + "\022@.google.cloud.compute.v1.AggregatedLis" + + "tServiceAttachmentsRequest\0328.google.clou" + + "d.compute.v1.ServiceAttachmentAggregated" + + "List\"N\332A\007project\202\323\344\223\002>\022/compute/v1/projects/{proje" + + "ct}/global/sslPolicies/{ssl_policy}\022\264\001\n\003" + + "Get\022,.google.cloud.compute.v1.GetSslPoli" + + "cyRequest\032\".google.cloud.compute.v1.SslP" + + "olicy\"[\332A\022project,ssl_policy\202\323\344\223\002@\022>/com" + + "pute/v1/projects/{project}/global/sslPol" + + "icies/{ssl_policy}\022\336\001\n\006Insert\022/.google.c" + + "loud.compute.v1.InsertSslPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\177\332A\033p" + + "roject,ssl_policy_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002H\"1/compute/v1/projects/{proje" + + "ct}/global/sslPolicies:\023ssl_policy_resou" + + "rce\022\246\001\n\004List\022/.google.cloud.compute.v1.L" + + "istSslPoliciesRequest\032(.google.cloud.com" + + "pute.v1.SslPoliciesList\"C\332A\007project\202\323\344\223\002" + + "3\0221/compute/v1/projects/{project}/global" + + "/sslPolicies\022\367\001\n\025ListAvailableFeatures\022@" + + ".google.cloud.compute.v1.ListAvailableFe" + + "aturesSslPoliciesRequest\032A.google.cloud." + + "compute.v1.SslPoliciesListAvailableFeatu" + + "resResponse\"Y\332A\007project\202\323\344\223\002I\022G/compute/" + + "v1/projects/{project}/global/sslPolicies" + + "/listAvailableFeatures\022\365\001\n\005Patch\022..googl" + + "e.cloud.compute.v1.PatchSslPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\227\001\332" + + "A&project,ssl_policy,ssl_policy_resource" + + "\212N\020GlobalOperations\202\323\344\223\002U2>/compute/v1/p" + + "rojects/{project}/global/sslPolicies/{ss" + + "l_policy}:\023ssl_policy_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\265\006\n\020StoragePo" + + "olTypes\022\326\001\n\016AggregatedList\022>.google.clou" + + "d.compute.v1.AggregatedListStoragePoolTy" + + "pesRequest\0326.google.cloud.compute.v1.Sto" + + "ragePoolTypeAggregatedList\"L\332A\007project\202\323" + + "\344\223\002<\022:/compute/v1/projects/{project}/agg" + + "regated/storagePoolTypes\022\336\001\n\003Get\0222.googl" + + "e.cloud.compute.v1.GetStoragePoolTypeReq" + + "uest\032(.google.cloud.compute.v1.StoragePo" + + "olType\"y\332A\036project,zone,storage_pool_typ" + + "e\202\323\344\223\002R\022P/compute/v1/projects/{project}/" + + "zones/{zone}/storagePoolTypes/{storage_p" + + "ool_type}\022\277\001\n\004List\0224.google.cloud.comput" + + "e.v1.ListStoragePoolTypesRequest\032,.googl" + + "e.cloud.compute.v1.StoragePoolTypeList\"S" + + "\332A\014project,zone\202\323\344\223\002>\022\022.goog" + + "le.cloud.compute.v1.AggregatedListTarget" + + "TcpProxiesRequest\0325.google.cloud.compute" + + ".v1.TargetTcpProxyAggregatedList\"L\332A\007pro" + + "ject\202\323\344\223\002<\022:/compute/v1/projects/{projec" + + "t}/aggregated/targetTcpProxies\022\343\001\n\006Delet" + + "e\0224.google.cloud.compute.v1.DeleteTarget" + + "TcpProxyRequest\032\".google.cloud.compute.v" + + "1.Operation\"\177\332A\030project,target_tcp_proxy" + + "\212N\020GlobalOperations\202\323\344\223\002K*I/compute/v1/p" + + "rojects/{project}/global/targetTcpProxie" + + "s/{target_tcp_proxy}\022\317\001\n\003Get\0221.google.cl" + + "oud.compute.v1.GetTargetTcpProxyRequest\032" + + "\'.google.cloud.compute.v1.TargetTcpProxy" + + "\"l\332A\030project,target_tcp_proxy\202\323\344\223\002K\022I/co" + + "mpute/v1/projects/{project}/global/targe" + + "tTcpProxies/{target_tcp_proxy}\022\365\001\n\006Inser" + + "t\0224.google.cloud.compute.v1.InsertTarget" + + "TcpProxyRequest\032\".google.cloud.compute.v" + + "1.Operation\"\220\001\332A!project,target_tcp_prox" + + "y_resource\212N\020GlobalOperations\202\323\344\223\002S\"6/co" + + "mpute/v1/projects/{project}/global/targe" + + "tTcpProxies:\031target_tcp_proxy_resource\022\263" + + "\001\n\004List\0224.google.cloud.compute.v1.ListTa" + + "rgetTcpProxiesRequest\032+.google.cloud.com" + + "pute.v1.TargetTcpProxyList\"H\332A\007project\202\323" + + "\344\223\0028\0226/compute/v1/projects/{project}/glo" + + "bal/targetTcpProxies\022\376\002\n\021SetBackendServi" + + "ce\022?.google.cloud.compute.v1.SetBackendS" + + "erviceTargetTcpProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\203\002\332APproject,tar" + + "get_tcp_proxy,target_tcp_proxies_set_bac" + + "kend_service_request_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002\226\001\"[/compute/v1/projects/{p" + + "roject}/global/targetTcpProxies/{target_" + + "tcp_proxy}/setBackendService:7target_tcp" + + "_proxies_set_backend_service_request_res" + + "ource\022\357\002\n\016SetProxyHeader\022<.google.cloud." + + "compute.v1.SetProxyHeaderTargetTcpProxyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\372\001\332AMproject,target_tcp_proxy,target_" + + "tcp_proxies_set_proxy_header_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002\220\001\"X/comput" + + "e/v1/projects/{project}/global/targetTcp" + + "Proxies/{target_tcp_proxy}/setProxyHeade" + + "r:4target_tcp_proxies_set_proxy_header_r" + + "equest_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\354\014\n\021TargetVpnGateways\022\331\001\n\016Ag" + + "gregatedList\022?.google.cloud.compute.v1.A" + + "ggregatedListTargetVpnGatewaysRequest\0327." + + "google.cloud.compute.v1.TargetVpnGateway" + + "AggregatedList\"M\332A\007project\202\323\344\223\002=\022;/compu" + + "te/v1/projects/{project}/aggregated/targ" + + "etVpnGateways\022\374\001\n\006Delete\0226.google.cloud." + + "compute.v1.DeleteTargetVpnGatewayRequest" + + "\032\".google.cloud.compute.v1.Operation\"\225\001\332" + + "A!project,region,target_vpn_gateway\212N\020Re" + + "gionOperations\202\323\344\223\002X*V/compute/v1/projec" + + "ts/{project}/regions/{region}/targetVpnG" + + "ateways/{target_vpn_gateway}\022\352\001\n\003Get\0223.g" + + "oogle.cloud.compute.v1.GetTargetVpnGatew" + + "ayRequest\032).google.cloud.compute.v1.Targ" + + "etVpnGateway\"\202\001\332A!project,region,target_" + + "vpn_gateway\202\323\344\223\002X\022V/compute/v1/projects/" + + "{project}/regions/{region}/targetVpnGate" + + "ways/{target_vpn_gateway}\022\215\002\n\006Insert\0226.g" + + "oogle.cloud.compute.v1.InsertTargetVpnGa" + + "tewayRequest\032\".google.cloud.compute.v1.O" + + "peration\"\246\001\332A*project,region,target_vpn_" + + "gateway_resource\212N\020RegionOperations\202\323\344\223\002" + + "`\"A/compute/v1/projects/{project}/region" + + "s/{region}/targetVpnGateways:\033target_vpn" + + "_gateway_resource\022\310\001\n\004List\0225.google.clou" + + "d.compute.v1.ListTargetVpnGatewaysReques" + + "t\032-.google.cloud.compute.v1.TargetVpnGat" + + "ewayList\"Z\332A\016project,region\202\323\344\223\002C\022A/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/targetVpnGateways\022\277\002\n\tSetLabels\0229.goo" + + "gle.cloud.compute.v1.SetLabelsTargetVpnG" + + "atewayRequest\032\".google.cloud.compute.v1." + + "Operation\"\322\001\332A:project,region,resource,r" + + "egion_set_labels_request_resource\212N\020Regi" + + "onOperations\202\323\344\223\002|\"V/compute/v1/projects" + + "/{project}/regions/{region}/targetVpnGat" + + "eways/{resource}/setLabels:\"region_set_l" + + "abels_request_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\236\020\n\007UrlMaps\022\274\001\n\016Aggre" + + "gatedList\0225.google.cloud.compute.v1.Aggr" + + "egatedListUrlMapsRequest\032..google.cloud." + + "compute.v1.UrlMapsAggregatedList\"C\332A\007pro" + + "ject\202\323\344\223\0023\0221/compute/v1/projects/{projec" + + "t}/aggregated/urlMaps\022\300\001\n\006Delete\022,.googl" + + "e.cloud.compute.v1.DeleteUrlMapRequest\032\"" + + ".google.cloud.compute.v1.Operation\"d\332A\017p" + + "roject,url_map\212N\020GlobalOperations\202\323\344\223\0029*" + + "7/compute/v1/projects/{project}/global/u" + + "rlMaps/{url_map}\022\244\001\n\003Get\022).google.cloud." + + "compute.v1.GetUrlMapRequest\032\037.google.clo" + + "ud.compute.v1.UrlMap\"Q\332A\017project,url_map" + + "\202\323\344\223\0029\0227/compute/v1/projects/{project}/g" + + "lobal/urlMaps/{url_map}\022\321\001\n\006Insert\022,.goo" + + "gle.cloud.compute.v1.InsertUrlMapRequest" + + "\032\".google.cloud.compute.v1.Operation\"u\332A" + + "\030project,url_map_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002A\"-/compute/v1/projects/{projec" + + "t}/global/urlMaps:\020url_map_resource\022\246\002\n\017" + + "InvalidateCache\0225.google.cloud.compute.v" + + "1.InvalidateCacheUrlMapRequest\032\".google." + + "cloud.compute.v1.Operation\"\267\001\332A0project," + + "url_map,cache_invalidation_rule_resource" + + "\212N\020GlobalOperations\202\323\344\223\002k\"G/compute/v1/p" + + "rojects/{project}/global/urlMaps/{url_ma" + + "p}/invalidateCache: cache_invalidation_r" + + "ule_resource\022\231\001\n\004List\022+.google.cloud.com" + + "pute.v1.ListUrlMapsRequest\032#.google.clou" + + "d.compute.v1.UrlMapList\"?\332A\007project\202\323\344\223\002" + + "/\022-/compute/v1/projects/{project}/global" + + "/urlMaps\022\342\001\n\005Patch\022+.google.cloud.comput" + + "e.v1.PatchUrlMapRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\207\001\332A project,url_map" + + ",url_map_resource\212N\020GlobalOperations\202\323\344\223" + + "\002K27/compute/v1/projects/{project}/globa" + + "l/urlMaps/{url_map}:\020url_map_resource\022\344\001" + + "\n\006Update\022,.google.cloud.compute.v1.Updat" + + "eUrlMapRequest\032\".google.cloud.compute.v1" + + ".Operation\"\207\001\332A project,url_map,url_map_" + + "resource\212N\020GlobalOperations\202\323\344\223\002K\0327/comp" + + "ute/v1/projects/{project}/global/urlMaps" + + "/{url_map}:\020url_map_resource\022\220\002\n\010Validat" + + "e\022..google.cloud.compute.v1.ValidateUrlM" + + "apRequest\0320.google.cloud.compute.v1.UrlM" + + "apsValidateResponse\"\241\001\332A2project,url_map" + + ",url_maps_validate_request_resource\202\323\344\223\002" + + "f\"@/compute/v1/projects/{project}/global" + + "/urlMaps/{url_map}/validate:\"url_maps_va" + + "lidate_request_resource\032r\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform2\237\020\n\013VpnGateways\022\307\001\n\016" + + "AggregatedList\0229.google.cloud.compute.v1" + + ".AggregatedListVpnGatewaysRequest\0321.goog" + + "le.cloud.compute.v1.VpnGatewayAggregated" + + "List\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proj" + + "ects/{project}/aggregated/vpnGateways\022\342\001" + + "\n\006Delete\0220.google.cloud.compute.v1.Delet" + + "eVpnGatewayRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\201\001\332A\032project,region,vpn_g" + + "ateway\212N\020RegionOperations\202\323\344\223\002K*I/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/vpnGateways/{vpn_gateway}\022\311\001\n\003Get\022-.goo" + + "gle.cloud.compute.v1.GetVpnGatewayReques" + + "t\032#.google.cloud.compute.v1.VpnGateway\"n" + + "\332A\032project,region,vpn_gateway\202\323\344\223\002K\022I/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/vpnGateways/{vpn_gateway}\022\361\001\n\tGetSt" + + "atus\0223.google.cloud.compute.v1.GetStatus" + + "VpnGatewayRequest\0325.google.cloud.compute" + + ".v1.VpnGatewaysGetStatusResponse\"x\332A\032pro" + + "ject,region,vpn_gateway\202\323\344\223\002U\022S/compute/" + + "v1/projects/{project}/regions/{region}/v" + + "pnGateways/{vpn_gateway}/getStatus\022\363\001\n\006I" + + "nsert\0220.google.cloud.compute.v1.InsertVp" + + "nGatewayRequest\032\".google.cloud.compute.v" + + "1.Operation\"\222\001\332A#project,region,vpn_gate" + + "way_resource\212N\020RegionOperations\202\323\344\223\002S\";/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/vpnGateways:\024vpn_gateway_resource" + + "\022\266\001\n\004List\022/.google.cloud.compute.v1.List" + + "VpnGatewaysRequest\032\'.google.cloud.comput" + + "e.v1.VpnGatewayList\"T\332A\016project,region\202\323" + + "\344\223\002=\022;/compute/v1/projects/{project}/reg" + + "ions/{region}/vpnGateways\022\263\002\n\tSetLabels\022" + + "3.google.cloud.compute.v1.SetLabelsVpnGa" + + "tewayRequest\032\".google.cloud.compute.v1.O" + + "peration\"\314\001\332A:project,region,resource,re" + + "gion_set_labels_request_resource\212N\020Regio" + + "nOperations\202\323\344\223\002v\"P/compute/v1/projects/" + + "{project}/regions/{region}/vpnGateways/{" + + "resource}/setLabels:\"region_set_labels_r" + + "equest_resource\022\307\002\n\022TestIamPermissions\022<" + + ".google.cloud.compute.v1.TestIamPermissi" + + "onsVpnGatewayRequest\0320.google.cloud.comp" + + "ute.v1.TestPermissionsResponse\"\300\001\332A9proj" + + "ect,region,resource,test_permissions_req" + + "uest_resource\202\323\344\223\002~\"Y/compute/v1/project" + + "s/{project}/regions/{region}/vpnGateways" + + "/{resource}/testIamPermissions:!test_per" + + "missions_request_resource\032r\312A\026compute.go" + + "ogleapis.com\322AVhttps://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform2\312\013\n\nVpnTunnels\022\304\001\n" + + "\016AggregatedList\0228.google.cloud.compute.v" + + "1.AggregatedListVpnTunnelsRequest\0320.goog" + + "le.cloud.compute.v1.VpnTunnelAggregatedL" + + "ist\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/proje" + + "cts/{project}/aggregated/vpnTunnels\022\335\001\n\006" + + "Delete\022/.google.cloud.compute.v1.DeleteV" + + "pnTunnelRequest\032\".google.cloud.compute.v" + + "1.Operation\"~\332A\031project,region,vpn_tunne" + + "l\212N\020RegionOperations\202\323\344\223\002I*G/compute/v1/" + + "projects/{project}/regions/{region}/vpnT" + + "unnels/{vpn_tunnel}\022\304\001\n\003Get\022,.google.clo" + + "ud.compute.v1.GetVpnTunnelRequest\032\".goog" + + "le.cloud.compute.v1.VpnTunnel\"k\332A\031projec" + + "t,region,vpn_tunnel\202\323\344\223\002I\022G/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnTu" + + "nnels/{vpn_tunnel}\022\357\001\n\006Insert\022/.google.c" + + "loud.compute.v1.InsertVpnTunnelRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\217\001\332A\"" + + "project,region,vpn_tunnel_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002Q\":/compute/v1/project" + + "s/{project}/regions/{region}/vpnTunnels:" + + "\023vpn_tunnel_resource\022\263\001\n\004List\022..google.c" + + "loud.compute.v1.ListVpnTunnelsRequest\032&." + + "google.cloud.compute.v1.VpnTunnelList\"S\332" + + "A\016project,region\202\323\344\223\002<\022:/compute/v1/proj" + + "ects/{project}/regions/{region}/vpnTunne" + + "ls\022\261\002\n\tSetLabels\0222.google.cloud.compute." + + "v1.SetLabelsVpnTunnelRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\313\001\332A:project,re" + + "gion,resource,region_set_labels_request_" + + "resource\212N\020RegionOperations\202\323\344\223\002u\"O/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/vpnTunnels/{resource}/setLabels:\"regi" + + "on_set_labels_request_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\243\007\n\016ZoneOpera" + + "tions\022\330\001\n\006Delete\0223.google.cloud.compute." + + "v1.DeleteZoneOperationRequest\0324.google.c" + + "loud.compute.v1.DeleteZoneOperationRespo" + + "nse\"c\332A\026project,zone,operation\202\323\344\223\002D*B/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/operations/{operation}\022\303\001\n\003Get\0220.googl" + + "e.cloud.compute.v1.GetZoneOperationReque" + + "st\032\".google.cloud.compute.v1.Operation\"f" + + "\332A\026project,zone,operation\220N\001\202\323\344\223\002D\022B/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "operations/{operation}\022\261\001\n\004List\0222.google" + + ".cloud.compute.v1.ListZoneOperationsRequ" + + "est\032&.google.cloud.compute.v1.OperationL" + + "ist\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/v1/" + + "projects/{project}/zones/{zone}/operatio" + + "ns\022\307\001\n\004Wait\0221.google.cloud.compute.v1.Wa" + + "itZoneOperationRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"h\332A\026project,zone,oper" + + "ation\202\323\344\223\002I\"G/compute/v1/projects/{proje" + + "ct}/zones/{zone}/operations/{operation}/" + + "wait\032r\312A\026compute.googleapis.com\322AVhttps:" + + "//www.googleapis.com/auth/compute,https:" + + "//www.googleapis.com/auth/cloud-platform" + + "2\321\003\n\005Zones\022\221\001\n\003Get\022\'.google.cloud.comput" + + "e.v1.GetZoneRequest\032\035.google.cloud.compu" + + "te.v1.Zone\"B\332A\014project,zone\202\323\344\223\002-\022+/comp" + + "ute/v1/projects/{project}/zones/{zone}\022\214" + + "\001\n\004List\022).google.cloud.compute.v1.ListZo" + + "nesRequest\032!.google.cloud.compute.v1.Zon" + + "eList\"6\332A\007project\202\323\344\223\002&\022$/compute/v1/pro" + + "jects/{project}/zones\032\244\001\312A\026compute.googl" + + "eapis.com\322A\207\001https://www.googleapis.com/" + + "auth/compute.readonly,https://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platformB\247\001\n\033com.goo" + + "gle.cloud.compute.v1P\001Z5cloud.google.com" + + "/go/compute/apiv1/computepb;computepb\252\002\027" + + "Google.Cloud.Compute.V1\312\002\027Google\\Cloud\\C" + + "ompute\\V1\352\002\032Google::Cloud::Compute::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ExtendedOperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), }); internal_static_google_cloud_compute_v1_AWSV4Signature_descriptor = getDescriptor().getMessageTypes().get(0); @@ -27527,8 +28003,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FirewallPolicy", "Project", }); - internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor = + internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor = getDescriptor().getMessageTypes().get(411); + internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor, + new java.lang.String[] { + "NetworkProfile", "Project", + }); + internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(412); internal_static_google_cloud_compute_v1_GetNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor, @@ -27536,7 +28020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(412); + getDescriptor().getMessageTypes().get(413); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor, @@ -27544,7 +28028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(413); + getDescriptor().getMessageTypes().get(414); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor, @@ -27552,7 +28036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(414); + getDescriptor().getMessageTypes().get(415); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor, @@ -27560,7 +28044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(415); + getDescriptor().getMessageTypes().get(416); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor, @@ -27568,7 +28052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(416); + getDescriptor().getMessageTypes().get(417); internal_static_google_cloud_compute_v1_GetProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor, @@ -27576,7 +28060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", }); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(417); + getDescriptor().getMessageTypes().get(418); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor, @@ -27584,7 +28068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", }); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(418); + getDescriptor().getMessageTypes().get(419); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor, @@ -27592,7 +28076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", }); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(419); + getDescriptor().getMessageTypes().get(420); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor, @@ -27600,7 +28084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(420); + getDescriptor().getMessageTypes().get(421); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor, @@ -27608,7 +28092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(421); + getDescriptor().getMessageTypes().get(422); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor, @@ -27616,7 +28100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(422); + getDescriptor().getMessageTypes().get(423); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor, @@ -27624,7 +28108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(423); + getDescriptor().getMessageTypes().get(424); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor, @@ -27632,7 +28116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(424); + getDescriptor().getMessageTypes().get(425); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor, @@ -27640,7 +28124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(425); + getDescriptor().getMessageTypes().get(426); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor, @@ -27648,7 +28132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(426); + getDescriptor().getMessageTypes().get(427); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor, @@ -27656,7 +28140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(427); + getDescriptor().getMessageTypes().get(428); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor, @@ -27664,7 +28148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(428); + getDescriptor().getMessageTypes().get(429); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor, @@ -27672,7 +28156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(429); + getDescriptor().getMessageTypes().get(430); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor, @@ -27680,7 +28164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(430); + getDescriptor().getMessageTypes().get(431); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor, @@ -27688,7 +28172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(431); + getDescriptor().getMessageTypes().get(432); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor, @@ -27696,7 +28180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(432); + getDescriptor().getMessageTypes().get(433); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor, @@ -27704,7 +28188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(433); + getDescriptor().getMessageTypes().get(434); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor, @@ -27712,7 +28196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor = - getDescriptor().getMessageTypes().get(434); + getDescriptor().getMessageTypes().get(435); internal_static_google_cloud_compute_v1_GetRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor, @@ -27720,7 +28204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(435); + getDescriptor().getMessageTypes().get(436); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor, @@ -27728,7 +28212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(436); + getDescriptor().getMessageTypes().get(437); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor, @@ -27736,7 +28220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(437); + getDescriptor().getMessageTypes().get(438); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor, @@ -27744,7 +28228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(438); + getDescriptor().getMessageTypes().get(439); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor, @@ -27752,7 +28236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(439); + getDescriptor().getMessageTypes().get(440); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor, @@ -27760,7 +28244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(440); + getDescriptor().getMessageTypes().get(441); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor, @@ -27768,7 +28252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(441); + getDescriptor().getMessageTypes().get(442); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor, @@ -27776,7 +28260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "UrlMap", }); internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(442); + getDescriptor().getMessageTypes().get(443); internal_static_google_cloud_compute_v1_GetReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor, @@ -27784,7 +28268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(443); + getDescriptor().getMessageTypes().get(444); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor, @@ -27792,7 +28276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(444); + getDescriptor().getMessageTypes().get(445); internal_static_google_cloud_compute_v1_GetRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor, @@ -27800,7 +28284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Route", }); internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(445); + getDescriptor().getMessageTypes().get(446); internal_static_google_cloud_compute_v1_GetRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor, @@ -27808,7 +28292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(446); + getDescriptor().getMessageTypes().get(447); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor, @@ -27816,7 +28300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(447); + getDescriptor().getMessageTypes().get(448); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor, @@ -27824,7 +28308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", }); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(448); + getDescriptor().getMessageTypes().get(449); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor, @@ -27832,7 +28316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(449); + getDescriptor().getMessageTypes().get(450); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -27840,7 +28324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(450); + getDescriptor().getMessageTypes().get(451); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor, @@ -27848,7 +28332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(451); + getDescriptor().getMessageTypes().get(452); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor, @@ -27856,7 +28340,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(452); + getDescriptor().getMessageTypes().get(453); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor, @@ -27864,7 +28348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(453); + getDescriptor().getMessageTypes().get(454); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor, @@ -27872,7 +28356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(454); + getDescriptor().getMessageTypes().get(455); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor, @@ -27880,7 +28364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Port", "Project", "Start", "Zone", }); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(455); + getDescriptor().getMessageTypes().get(456); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor, @@ -27888,7 +28372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(456); + getDescriptor().getMessageTypes().get(457); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor, @@ -27896,7 +28380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(457); + getDescriptor().getMessageTypes().get(458); internal_static_google_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor, @@ -27904,7 +28388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Snapshot", }); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(458); + getDescriptor().getMessageTypes().get(459); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor, @@ -27912,7 +28396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", }); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(459); + getDescriptor().getMessageTypes().get(460); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor, @@ -27920,7 +28404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(460); + getDescriptor().getMessageTypes().get(461); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor, @@ -27928,7 +28412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(461); + getDescriptor().getMessageTypes().get(462); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor, @@ -27936,7 +28420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(462); + getDescriptor().getMessageTypes().get(463); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor, @@ -27944,7 +28428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(463); + getDescriptor().getMessageTypes().get(464); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor, @@ -27952,7 +28436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "StoragePoolType", "Zone", }); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(464); + getDescriptor().getMessageTypes().get(465); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor, @@ -27960,7 +28444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Subnetwork", }); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(465); + getDescriptor().getMessageTypes().get(466); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor, @@ -27968,7 +28452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(466); + getDescriptor().getMessageTypes().get(467); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor, @@ -27976,7 +28460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(467); + getDescriptor().getMessageTypes().get(468); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor, @@ -27984,7 +28468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(468); + getDescriptor().getMessageTypes().get(469); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor, @@ -27992,7 +28476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(469); + getDescriptor().getMessageTypes().get(470); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor, @@ -28000,27 +28484,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(470); + getDescriptor().getMessageTypes().get(471); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor, new java.lang.String[] { "Project", "TargetSslProxy", }); + _clinit_autosplit_dinit_1(); + } + + private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(471); + getDescriptor().getMessageTypes().get(472); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor, new java.lang.String[] { "Project", "TargetTcpProxy", }); - _clinit_autosplit_dinit_1(); - } - - private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(472); + getDescriptor().getMessageTypes().get(473); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor, @@ -28028,7 +28512,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(473); + getDescriptor().getMessageTypes().get(474); internal_static_google_cloud_compute_v1_GetUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor, @@ -28036,7 +28520,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "UrlMap", }); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(474); + getDescriptor().getMessageTypes().get(475); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor, @@ -28044,7 +28528,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(475); + getDescriptor().getMessageTypes().get(476); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor, @@ -28052,7 +28536,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnTunnel", }); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(476); + getDescriptor().getMessageTypes().get(477); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor, @@ -28060,7 +28544,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(477); + getDescriptor().getMessageTypes().get(478); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor, @@ -28068,7 +28552,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(478); + getDescriptor().getMessageTypes().get(479); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor, @@ -28076,7 +28560,7 @@ private static void _clinit_autosplit_dinit_1() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(479); + getDescriptor().getMessageTypes().get(480); internal_static_google_cloud_compute_v1_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor, @@ -28084,7 +28568,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(480); + getDescriptor().getMessageTypes().get(481); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor, @@ -28092,7 +28576,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(481); + getDescriptor().getMessageTypes().get(482); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -28100,7 +28584,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(482); + getDescriptor().getMessageTypes().get(483); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -28108,7 +28592,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(483); + getDescriptor().getMessageTypes().get(484); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor, @@ -28116,7 +28600,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(484); + getDescriptor().getMessageTypes().get(485); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor, @@ -28134,7 +28618,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(485); + getDescriptor().getMessageTypes().get(486); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor, @@ -28142,7 +28626,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GuestAttributes_descriptor = - getDescriptor().getMessageTypes().get(486); + getDescriptor().getMessageTypes().get(487); internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributes_descriptor, @@ -28150,7 +28634,7 @@ private static void _clinit_autosplit_dinit_1() { "Kind", "QueryPath", "QueryValue", "SelfLink", "VariableKey", "VariableValue", }); internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor = - getDescriptor().getMessageTypes().get(487); + getDescriptor().getMessageTypes().get(488); internal_static_google_cloud_compute_v1_GuestAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor, @@ -28158,7 +28642,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Namespace", "Value", }); internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor = - getDescriptor().getMessageTypes().get(488); + getDescriptor().getMessageTypes().get(489); internal_static_google_cloud_compute_v1_GuestAttributesValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor, @@ -28166,7 +28650,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", }); internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor = - getDescriptor().getMessageTypes().get(489); + getDescriptor().getMessageTypes().get(490); internal_static_google_cloud_compute_v1_GuestOsFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor, @@ -28174,7 +28658,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(490); + getDescriptor().getMessageTypes().get(491); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor, @@ -28188,7 +28672,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(491); + getDescriptor().getMessageTypes().get(492); internal_static_google_cloud_compute_v1_HTTPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor, @@ -28202,7 +28686,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(492); + getDescriptor().getMessageTypes().get(493); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor, @@ -28216,7 +28700,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(493); + getDescriptor().getMessageTypes().get(494); internal_static_google_cloud_compute_v1_HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheck_descriptor, @@ -28243,7 +28727,7 @@ private static void _clinit_autosplit_dinit_1() { "UnhealthyThreshold", }); internal_static_google_cloud_compute_v1_HealthCheckList_descriptor = - getDescriptor().getMessageTypes().get(494); + getDescriptor().getMessageTypes().get(495); internal_static_google_cloud_compute_v1_HealthCheckList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckList_descriptor, @@ -28251,7 +28735,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor = - getDescriptor().getMessageTypes().get(495); + getDescriptor().getMessageTypes().get(496); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor, @@ -28259,7 +28743,7 @@ private static void _clinit_autosplit_dinit_1() { "Enable", }); internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor = - getDescriptor().getMessageTypes().get(496); + getDescriptor().getMessageTypes().get(497); internal_static_google_cloud_compute_v1_HealthCheckReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor, @@ -28267,7 +28751,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", }); internal_static_google_cloud_compute_v1_HealthCheckService_descriptor = - getDescriptor().getMessageTypes().get(497); + getDescriptor().getMessageTypes().get(498); internal_static_google_cloud_compute_v1_HealthCheckService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckService_descriptor, @@ -28286,7 +28770,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLink", }); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor = - getDescriptor().getMessageTypes().get(498); + getDescriptor().getMessageTypes().get(499); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor, @@ -28294,7 +28778,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckService", }); internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor = - getDescriptor().getMessageTypes().get(499); + getDescriptor().getMessageTypes().get(500); internal_static_google_cloud_compute_v1_HealthCheckServicesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor, @@ -28302,7 +28786,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(500); + getDescriptor().getMessageTypes().get(501); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor, @@ -28320,7 +28804,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor = - getDescriptor().getMessageTypes().get(501); + getDescriptor().getMessageTypes().get(502); internal_static_google_cloud_compute_v1_HealthChecksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor, @@ -28328,7 +28812,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthChecks", "Warning", }); internal_static_google_cloud_compute_v1_HealthStatus_descriptor = - getDescriptor().getMessageTypes().get(502); + getDescriptor().getMessageTypes().get(503); internal_static_google_cloud_compute_v1_HealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatus_descriptor, @@ -28354,7 +28838,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(503); + getDescriptor().getMessageTypes().get(504); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor, @@ -28367,7 +28851,7 @@ private static void _clinit_autosplit_dinit_1() { "Ipv6HealthState", }); internal_static_google_cloud_compute_v1_Help_descriptor = - getDescriptor().getMessageTypes().get(504); + getDescriptor().getMessageTypes().get(505); internal_static_google_cloud_compute_v1_Help_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Help_descriptor, @@ -28375,7 +28859,7 @@ private static void _clinit_autosplit_dinit_1() { "Links", }); internal_static_google_cloud_compute_v1_HelpLink_descriptor = - getDescriptor().getMessageTypes().get(505); + getDescriptor().getMessageTypes().get(506); internal_static_google_cloud_compute_v1_HelpLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HelpLink_descriptor, @@ -28383,7 +28867,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Url", }); internal_static_google_cloud_compute_v1_HostRule_descriptor = - getDescriptor().getMessageTypes().get(506); + getDescriptor().getMessageTypes().get(507); internal_static_google_cloud_compute_v1_HostRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HostRule_descriptor, @@ -28391,7 +28875,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Hosts", "PathMatcher", }); internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor = - getDescriptor().getMessageTypes().get(507); + getDescriptor().getMessageTypes().get(508); internal_static_google_cloud_compute_v1_HttpFaultAbort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor, @@ -28399,7 +28883,7 @@ private static void _clinit_autosplit_dinit_1() { "HttpStatus", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor = - getDescriptor().getMessageTypes().get(508); + getDescriptor().getMessageTypes().get(509); internal_static_google_cloud_compute_v1_HttpFaultDelay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor, @@ -28407,7 +28891,7 @@ private static void _clinit_autosplit_dinit_1() { "FixedDelay", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor = - getDescriptor().getMessageTypes().get(509); + getDescriptor().getMessageTypes().get(510); internal_static_google_cloud_compute_v1_HttpFaultInjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor, @@ -28415,7 +28899,7 @@ private static void _clinit_autosplit_dinit_1() { "Abort", "Delay", }); internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(510); + getDescriptor().getMessageTypes().get(511); internal_static_google_cloud_compute_v1_HttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor, @@ -28426,7 +28910,7 @@ private static void _clinit_autosplit_dinit_1() { "ResponseHeadersToRemove", }); internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor = - getDescriptor().getMessageTypes().get(511); + getDescriptor().getMessageTypes().get(512); internal_static_google_cloud_compute_v1_HttpHeaderMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor, @@ -28441,7 +28925,7 @@ private static void _clinit_autosplit_dinit_1() { "SuffixMatch", }); internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(512); + getDescriptor().getMessageTypes().get(513); internal_static_google_cloud_compute_v1_HttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor, @@ -28449,7 +28933,7 @@ private static void _clinit_autosplit_dinit_1() { "HeaderName", "HeaderValue", "Replace", }); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor = - getDescriptor().getMessageTypes().get(513); + getDescriptor().getMessageTypes().get(514); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor, @@ -28457,7 +28941,7 @@ private static void _clinit_autosplit_dinit_1() { "ExactMatch", "Name", "PresentMatch", "RegexMatch", }); internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor = - getDescriptor().getMessageTypes().get(514); + getDescriptor().getMessageTypes().get(515); internal_static_google_cloud_compute_v1_HttpRedirectAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor, @@ -28470,7 +28954,7 @@ private static void _clinit_autosplit_dinit_1() { "StripQuery", }); internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(515); + getDescriptor().getMessageTypes().get(516); internal_static_google_cloud_compute_v1_HttpRetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor, @@ -28478,7 +28962,7 @@ private static void _clinit_autosplit_dinit_1() { "NumRetries", "PerTryTimeout", "RetryConditions", }); internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor = - getDescriptor().getMessageTypes().get(516); + getDescriptor().getMessageTypes().get(517); internal_static_google_cloud_compute_v1_HttpRouteAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor, @@ -28493,7 +28977,7 @@ private static void _clinit_autosplit_dinit_1() { "WeightedBackendServices", }); internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor = - getDescriptor().getMessageTypes().get(517); + getDescriptor().getMessageTypes().get(518); internal_static_google_cloud_compute_v1_HttpRouteRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor, @@ -28508,7 +28992,7 @@ private static void _clinit_autosplit_dinit_1() { "UrlRedirect", }); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor = - getDescriptor().getMessageTypes().get(518); + getDescriptor().getMessageTypes().get(519); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor, @@ -28523,7 +29007,7 @@ private static void _clinit_autosplit_dinit_1() { "RegexMatch", }); internal_static_google_cloud_compute_v1_Image_descriptor = - getDescriptor().getMessageTypes().get(519); + getDescriptor().getMessageTypes().get(520); internal_static_google_cloud_compute_v1_Image_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Image_descriptor, @@ -28572,7 +29056,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor = - getDescriptor().getMessageTypes().get(520); + getDescriptor().getMessageTypes().get(521); internal_static_google_cloud_compute_v1_ImageFamilyView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor, @@ -28580,7 +29064,7 @@ private static void _clinit_autosplit_dinit_1() { "Image", }); internal_static_google_cloud_compute_v1_ImageList_descriptor = - getDescriptor().getMessageTypes().get(521); + getDescriptor().getMessageTypes().get(522); internal_static_google_cloud_compute_v1_ImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageList_descriptor, @@ -28588,7 +29072,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor = - getDescriptor().getMessageTypes().get(522); + getDescriptor().getMessageTypes().get(523); internal_static_google_cloud_compute_v1_InitialStateConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor, @@ -28596,7 +29080,7 @@ private static void _clinit_autosplit_dinit_1() { "Dbs", "Dbxs", "Keks", "Pk", }); internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(523); + getDescriptor().getMessageTypes().get(524); internal_static_google_cloud_compute_v1_InsertAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor, @@ -28604,7 +29088,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(524); + getDescriptor().getMessageTypes().get(525); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor, @@ -28612,7 +29096,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(525); + getDescriptor().getMessageTypes().get(526); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor, @@ -28620,7 +29104,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(526); + getDescriptor().getMessageTypes().get(527); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor, @@ -28628,7 +29112,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(527); + getDescriptor().getMessageTypes().get(528); internal_static_google_cloud_compute_v1_InsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor, @@ -28636,7 +29120,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "RequestId", "SourceImage", "Zone", }); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(528); + getDescriptor().getMessageTypes().get(529); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor, @@ -28644,7 +29128,7 @@ private static void _clinit_autosplit_dinit_1() { "ExternalVpnGatewayResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(529); + getDescriptor().getMessageTypes().get(530); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor, @@ -28652,7 +29136,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(530); + getDescriptor().getMessageTypes().get(531); internal_static_google_cloud_compute_v1_InsertFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor, @@ -28660,7 +29144,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(531); + getDescriptor().getMessageTypes().get(532); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor, @@ -28668,7 +29152,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(532); + getDescriptor().getMessageTypes().get(533); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor, @@ -28676,7 +29160,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(533); + getDescriptor().getMessageTypes().get(534); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor, @@ -28684,7 +29168,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(534); + getDescriptor().getMessageTypes().get(535); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor, @@ -28692,7 +29176,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(535); + getDescriptor().getMessageTypes().get(536); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -28700,7 +29184,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(536); + getDescriptor().getMessageTypes().get(537); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor, @@ -28708,7 +29192,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor = - getDescriptor().getMessageTypes().get(537); + getDescriptor().getMessageTypes().get(538); internal_static_google_cloud_compute_v1_InsertImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor, @@ -28716,7 +29200,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceCreate", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(538); + getDescriptor().getMessageTypes().get(539); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor, @@ -28724,7 +29208,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(539); + getDescriptor().getMessageTypes().get(540); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor, @@ -28736,7 +29220,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(540); + getDescriptor().getMessageTypes().get(541); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor, @@ -28744,7 +29228,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(541); + getDescriptor().getMessageTypes().get(542); internal_static_google_cloud_compute_v1_InsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor, @@ -28757,7 +29241,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(542); + getDescriptor().getMessageTypes().get(543); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor, @@ -28765,7 +29249,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(543); + getDescriptor().getMessageTypes().get(544); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor, @@ -28773,7 +29257,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(544); + getDescriptor().getMessageTypes().get(545); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor, @@ -28781,7 +29265,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentResource", "Project", "Region", "RequestId", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(545); + getDescriptor().getMessageTypes().get(546); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor, @@ -28789,7 +29273,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(546); + getDescriptor().getMessageTypes().get(547); internal_static_google_cloud_compute_v1_InsertLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor, @@ -28797,7 +29281,7 @@ private static void _clinit_autosplit_dinit_1() { "LicenseResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(547); + getDescriptor().getMessageTypes().get(548); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor, @@ -28805,7 +29289,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineImageResource", "Project", "RequestId", "SourceInstance", }); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(548); + getDescriptor().getMessageTypes().get(549); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor, @@ -28813,7 +29297,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(549); + getDescriptor().getMessageTypes().get(550); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor, @@ -28825,7 +29309,7 @@ private static void _clinit_autosplit_dinit_1() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(550); + getDescriptor().getMessageTypes().get(551); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor, @@ -28833,7 +29317,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(551); + getDescriptor().getMessageTypes().get(552); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor, @@ -28841,7 +29325,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(552); + getDescriptor().getMessageTypes().get(553); internal_static_google_cloud_compute_v1_InsertNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor, @@ -28849,7 +29333,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(553); + getDescriptor().getMessageTypes().get(554); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor, @@ -28857,7 +29341,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialNodeCount", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(554); + getDescriptor().getMessageTypes().get(555); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor, @@ -28865,7 +29349,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(555); + getDescriptor().getMessageTypes().get(556); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor, @@ -28873,7 +29357,7 @@ private static void _clinit_autosplit_dinit_1() { "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(556); + getDescriptor().getMessageTypes().get(557); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor, @@ -28881,7 +29365,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(557); + getDescriptor().getMessageTypes().get(558); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor, @@ -28889,7 +29373,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(558); + getDescriptor().getMessageTypes().get(559); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor, @@ -28897,7 +29381,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(559); + getDescriptor().getMessageTypes().get(560); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor, @@ -28905,7 +29389,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(560); + getDescriptor().getMessageTypes().get(561); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor, @@ -28913,7 +29397,7 @@ private static void _clinit_autosplit_dinit_1() { "CommitmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(561); + getDescriptor().getMessageTypes().get(562); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor, @@ -28921,7 +29405,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "Region", "RequestId", "SourceImage", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(562); + getDescriptor().getMessageTypes().get(563); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor, @@ -28929,7 +29413,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(563); + getDescriptor().getMessageTypes().get(564); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor, @@ -28937,7 +29421,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(564); + getDescriptor().getMessageTypes().get(565); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor, @@ -28945,7 +29429,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(565); + getDescriptor().getMessageTypes().get(566); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor, @@ -28953,7 +29437,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(566); + getDescriptor().getMessageTypes().get(567); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor, @@ -28961,7 +29445,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(567); + getDescriptor().getMessageTypes().get(568); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor, @@ -28969,7 +29453,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(568); + getDescriptor().getMessageTypes().get(569); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor, @@ -28977,7 +29461,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(569); + getDescriptor().getMessageTypes().get(570); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor, @@ -28985,7 +29469,7 @@ private static void _clinit_autosplit_dinit_1() { "NotificationEndpointResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(570); + getDescriptor().getMessageTypes().get(571); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor, @@ -28993,7 +29477,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(571); + getDescriptor().getMessageTypes().get(572); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor, @@ -29001,7 +29485,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(572); + getDescriptor().getMessageTypes().get(573); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor, @@ -29009,7 +29493,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(573); + getDescriptor().getMessageTypes().get(574); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor, @@ -29017,7 +29501,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(574); + getDescriptor().getMessageTypes().get(575); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor, @@ -29025,7 +29509,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(575); + getDescriptor().getMessageTypes().get(576); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor, @@ -29033,7 +29517,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(576); + getDescriptor().getMessageTypes().get(577); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor, @@ -29041,7 +29525,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(577); + getDescriptor().getMessageTypes().get(578); internal_static_google_cloud_compute_v1_InsertReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor, @@ -29049,7 +29533,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "ReservationResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(578); + getDescriptor().getMessageTypes().get(579); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor, @@ -29057,7 +29541,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ResourcePolicyResource", }); internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(579); + getDescriptor().getMessageTypes().get(580); internal_static_google_cloud_compute_v1_InsertRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor, @@ -29065,7 +29549,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "RouteResource", }); internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(580); + getDescriptor().getMessageTypes().get(581); internal_static_google_cloud_compute_v1_InsertRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor, @@ -29073,7 +29557,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "RouterResource", }); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(581); + getDescriptor().getMessageTypes().get(582); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor, @@ -29081,7 +29565,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(582); + getDescriptor().getMessageTypes().get(583); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor, @@ -29089,7 +29573,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(583); + getDescriptor().getMessageTypes().get(584); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor, @@ -29097,7 +29581,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(584); + getDescriptor().getMessageTypes().get(585); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor, @@ -29105,7 +29589,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(585); + getDescriptor().getMessageTypes().get(586); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor, @@ -29113,7 +29597,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(586); + getDescriptor().getMessageTypes().get(587); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor, @@ -29121,7 +29605,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "StoragePoolResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(587); + getDescriptor().getMessageTypes().get(588); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor, @@ -29129,7 +29613,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SubnetworkResource", }); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(588); + getDescriptor().getMessageTypes().get(589); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor, @@ -29137,7 +29621,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(589); + getDescriptor().getMessageTypes().get(590); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor, @@ -29145,7 +29629,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(590); + getDescriptor().getMessageTypes().get(591); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor, @@ -29153,7 +29637,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(591); + getDescriptor().getMessageTypes().get(592); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor, @@ -29161,7 +29645,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetInstanceResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(592); + getDescriptor().getMessageTypes().get(593); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor, @@ -29169,7 +29653,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetPoolResource", }); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(593); + getDescriptor().getMessageTypes().get(594); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor, @@ -29177,7 +29661,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetSslProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(594); + getDescriptor().getMessageTypes().get(595); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor, @@ -29185,7 +29669,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(595); + getDescriptor().getMessageTypes().get(596); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor, @@ -29193,7 +29677,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetVpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(596); + getDescriptor().getMessageTypes().get(597); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor, @@ -29201,7 +29685,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(597); + getDescriptor().getMessageTypes().get(598); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor, @@ -29209,7 +29693,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(598); + getDescriptor().getMessageTypes().get(599); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor, @@ -29217,7 +29701,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnTunnelResource", }); internal_static_google_cloud_compute_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(599); + getDescriptor().getMessageTypes().get(600); internal_static_google_cloud_compute_v1_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Instance_descriptor, @@ -29278,7 +29762,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(600); + getDescriptor().getMessageTypes().get(601); internal_static_google_cloud_compute_v1_InstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor, @@ -29296,7 +29780,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor = - getDescriptor().getMessageTypes().get(601); + getDescriptor().getMessageTypes().get(602); internal_static_google_cloud_compute_v1_InstanceConsumptionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor, @@ -29304,7 +29788,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumptionInfo", "Instance", }); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor = - getDescriptor().getMessageTypes().get(602); + getDescriptor().getMessageTypes().get(603); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor, @@ -29312,7 +29796,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestCpus", "LocalSsdGb", "MemoryMb", "MinNodeCpus", }); internal_static_google_cloud_compute_v1_InstanceGroup_descriptor = - getDescriptor().getMessageTypes().get(603); + getDescriptor().getMessageTypes().get(604); internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroup_descriptor, @@ -29332,7 +29816,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(604); + getDescriptor().getMessageTypes().get(605); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor, @@ -29350,7 +29834,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(605); + getDescriptor().getMessageTypes().get(606); internal_static_google_cloud_compute_v1_InstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor, @@ -29358,7 +29842,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor = - getDescriptor().getMessageTypes().get(606); + getDescriptor().getMessageTypes().get(607); internal_static_google_cloud_compute_v1_InstanceGroupManager_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor, @@ -29384,16 +29868,19 @@ private static void _clinit_autosplit_dinit_1() { "SatisfiesPzi", "SatisfiesPzs", "SelfLink", + "StandbyPolicy", "StatefulPolicy", "Status", "TargetPools", "TargetSize", + "TargetStoppedSize", + "TargetSuspendedSize", "UpdatePolicy", "Versions", "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor = - getDescriptor().getMessageTypes().get(607); + getDescriptor().getMessageTypes().get(608); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor, @@ -29413,7 +29900,7 @@ private static void _clinit_autosplit_dinit_1() { "Verifying", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(608); + getDescriptor().getMessageTypes().get(609); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor, @@ -29431,7 +29918,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(609); + getDescriptor().getMessageTypes().get(610); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor, @@ -29439,7 +29926,7 @@ private static void _clinit_autosplit_dinit_1() { "Properties", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor = - getDescriptor().getMessageTypes().get(610); + getDescriptor().getMessageTypes().get(611); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor, @@ -29447,7 +29934,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "InitialDelaySec", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(611); + getDescriptor().getMessageTypes().get(612); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor, @@ -29465,7 +29952,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor = - getDescriptor().getMessageTypes().get(612); + getDescriptor().getMessageTypes().get(613); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor, @@ -29473,7 +29960,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Rank", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor = - getDescriptor().getMessageTypes().get(613); + getDescriptor().getMessageTypes().get(614); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor, @@ -29481,7 +29968,7 @@ private static void _clinit_autosplit_dinit_1() { "DefaultActionOnFailure", "ForceUpdateOnRepair", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(614); + getDescriptor().getMessageTypes().get(615); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor, @@ -29489,7 +29976,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(615); + getDescriptor().getMessageTypes().get(616); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor, @@ -29508,7 +29995,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor = - getDescriptor().getMessageTypes().get(616); + getDescriptor().getMessageTypes().get(617); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor, @@ -29516,7 +30003,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "LastAttempt", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(617); + getDescriptor().getMessageTypes().get(618); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor, @@ -29524,15 +30011,23 @@ private static void _clinit_autosplit_dinit_1() { "Error", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor = - getDescriptor().getMessageTypes().get(618); + getDescriptor().getMessageTypes().get(619); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor = + getDescriptor().getMessageTypes().get(620); + internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor, + new java.lang.String[] { + "InitialDelaySec", "Mode", + }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor = - getDescriptor().getMessageTypes().get(619); + getDescriptor().getMessageTypes().get(621); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor, @@ -29540,7 +30035,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstancesConfig", "Autoscaler", "IsStable", "Stateful", "VersionTarget", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(620); + getDescriptor().getMessageTypes().get(622); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor, @@ -29548,7 +30043,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentRevision", "Effective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor = - getDescriptor().getMessageTypes().get(621); + getDescriptor().getMessageTypes().get(623); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor, @@ -29556,7 +30051,7 @@ private static void _clinit_autosplit_dinit_1() { "HasStatefulConfig", "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor = - getDescriptor().getMessageTypes().get(622); + getDescriptor().getMessageTypes().get(624); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor, @@ -29564,7 +30059,7 @@ private static void _clinit_autosplit_dinit_1() { "AllEffective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor = - getDescriptor().getMessageTypes().get(623); + getDescriptor().getMessageTypes().get(625); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor, @@ -29572,7 +30067,7 @@ private static void _clinit_autosplit_dinit_1() { "IsReached", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor = - getDescriptor().getMessageTypes().get(624); + getDescriptor().getMessageTypes().get(626); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor, @@ -29586,7 +30081,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor = - getDescriptor().getMessageTypes().get(625); + getDescriptor().getMessageTypes().get(627); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor, @@ -29594,7 +30089,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", "TargetSize", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(626); + getDescriptor().getMessageTypes().get(628); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -29602,7 +30097,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(627); + getDescriptor().getMessageTypes().get(629); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -29610,7 +30105,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(628); + getDescriptor().getMessageTypes().get(630); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor, @@ -29618,7 +30113,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(629); + getDescriptor().getMessageTypes().get(631); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -29626,7 +30121,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(630); + getDescriptor().getMessageTypes().get(632); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor, @@ -29634,7 +30129,7 @@ private static void _clinit_autosplit_dinit_1() { "Names", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(631); + getDescriptor().getMessageTypes().get(633); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor, @@ -29642,7 +30137,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(632); + getDescriptor().getMessageTypes().get(634); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor, @@ -29650,7 +30145,7 @@ private static void _clinit_autosplit_dinit_1() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(633); + getDescriptor().getMessageTypes().get(635); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor, @@ -29658,7 +30153,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(634); + getDescriptor().getMessageTypes().get(636); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor, @@ -29666,15 +30161,23 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(635); + getDescriptor().getMessageTypes().get(637); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor, new java.lang.String[] { "Instances", }); + internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(638); + internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor, + new java.lang.String[] { + "Instances", + }); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor = - getDescriptor().getMessageTypes().get(636); + getDescriptor().getMessageTypes().get(639); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor, @@ -29682,7 +30185,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagers", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(637); + getDescriptor().getMessageTypes().get(640); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor, @@ -29690,15 +30193,39 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(638); + getDescriptor().getMessageTypes().get(641); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor, new java.lang.String[] { "Fingerprint", "TargetPools", }); + internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(642); + internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor, + new java.lang.String[] { + "Instances", + }); + internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(643); + internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor, + new java.lang.String[] { + "ForceStop", "Instances", + }); + internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(644); + internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor, + new java.lang.String[] { + "ForceSuspend", "Instances", + }); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(639); + getDescriptor().getMessageTypes().get(645); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor, @@ -29706,7 +30233,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(640); + getDescriptor().getMessageTypes().get(646); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor, @@ -29714,7 +30241,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(641); + getDescriptor().getMessageTypes().get(647); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor, @@ -29722,7 +30249,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(642); + getDescriptor().getMessageTypes().get(648); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor, @@ -29730,7 +30257,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceState", }); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(643); + getDescriptor().getMessageTypes().get(649); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor, @@ -29738,7 +30265,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(644); + getDescriptor().getMessageTypes().get(650); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor, @@ -29746,7 +30273,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroups", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(645); + getDescriptor().getMessageTypes().get(651); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor, @@ -29754,7 +30281,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_InstanceList_descriptor = - getDescriptor().getMessageTypes().get(646); + getDescriptor().getMessageTypes().get(652); internal_static_google_cloud_compute_v1_InstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceList_descriptor, @@ -29762,7 +30289,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor = - getDescriptor().getMessageTypes().get(647); + getDescriptor().getMessageTypes().get(653); internal_static_google_cloud_compute_v1_InstanceListReferrers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor, @@ -29770,7 +30297,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor = - getDescriptor().getMessageTypes().get(648); + getDescriptor().getMessageTypes().get(654); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor, @@ -29778,7 +30305,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "InstanceActionDetails", "Timestamp", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor = - getDescriptor().getMessageTypes().get(649); + getDescriptor().getMessageTypes().get(655); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor, @@ -29786,7 +30313,7 @@ private static void _clinit_autosplit_dinit_1() { "Action", "Instance", "Version", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor = - getDescriptor().getMessageTypes().get(650); + getDescriptor().getMessageTypes().get(656); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor, @@ -29794,7 +30321,7 @@ private static void _clinit_autosplit_dinit_1() { "Code", "Message", }); internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(651); + getDescriptor().getMessageTypes().get(657); internal_static_google_cloud_compute_v1_InstanceMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor, @@ -29802,7 +30329,7 @@ private static void _clinit_autosplit_dinit_1() { "DestinationZone", "TargetInstance", }); internal_static_google_cloud_compute_v1_InstanceParams_descriptor = - getDescriptor().getMessageTypes().get(652); + getDescriptor().getMessageTypes().get(658); internal_static_google_cloud_compute_v1_InstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceParams_descriptor, @@ -29818,7 +30345,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(653); + getDescriptor().getMessageTypes().get(659); internal_static_google_cloud_compute_v1_InstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceProperties_descriptor, @@ -29866,7 +30393,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor = - getDescriptor().getMessageTypes().get(654); + getDescriptor().getMessageTypes().get(660); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor, @@ -29894,7 +30421,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceReference_descriptor = - getDescriptor().getMessageTypes().get(655); + getDescriptor().getMessageTypes().get(661); internal_static_google_cloud_compute_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceReference_descriptor, @@ -29902,7 +30429,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", }); internal_static_google_cloud_compute_v1_InstanceSettings_descriptor = - getDescriptor().getMessageTypes().get(656); + getDescriptor().getMessageTypes().get(662); internal_static_google_cloud_compute_v1_InstanceSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettings_descriptor, @@ -29910,7 +30437,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Kind", "Metadata", "Zone", }); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor = - getDescriptor().getMessageTypes().get(657); + getDescriptor().getMessageTypes().get(663); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor, @@ -29928,7 +30455,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor = - getDescriptor().getMessageTypes().get(658); + getDescriptor().getMessageTypes().get(664); internal_static_google_cloud_compute_v1_InstanceTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor, @@ -29945,7 +30472,7 @@ private static void _clinit_autosplit_dinit_1() { "SourceInstanceParams", }); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(659); + getDescriptor().getMessageTypes().get(665); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor, @@ -29963,7 +30490,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor = - getDescriptor().getMessageTypes().get(660); + getDescriptor().getMessageTypes().get(666); internal_static_google_cloud_compute_v1_InstanceTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor, @@ -29971,7 +30498,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(661); + getDescriptor().getMessageTypes().get(667); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor, @@ -29979,7 +30506,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplates", "Warning", }); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor = - getDescriptor().getMessageTypes().get(662); + getDescriptor().getMessageTypes().get(668); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor, @@ -29987,7 +30514,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "NamedPorts", "Status", }); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(663); + getDescriptor().getMessageTypes().get(669); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor, @@ -29995,7 +30522,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(664); + getDescriptor().getMessageTypes().get(670); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor, @@ -30013,7 +30540,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(665); + getDescriptor().getMessageTypes().get(671); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor, @@ -30021,7 +30548,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(666); + getDescriptor().getMessageTypes().get(672); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -30029,7 +30556,7 @@ private static void _clinit_autosplit_dinit_1() { "DisplayName", "Name", "Priority", "Rules", "ShortName", "Type", }); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(667); + getDescriptor().getMessageTypes().get(673); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor, @@ -30037,7 +30564,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(668); + getDescriptor().getMessageTypes().get(674); internal_static_google_cloud_compute_v1_InstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor, @@ -30045,7 +30572,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "Warning", }); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(669); + getDescriptor().getMessageTypes().get(675); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor, @@ -30063,7 +30590,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(670); + getDescriptor().getMessageTypes().get(676); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor, @@ -30071,7 +30598,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestAccelerators", }); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(671); + getDescriptor().getMessageTypes().get(677); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor, @@ -30079,7 +30606,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor = - getDescriptor().getMessageTypes().get(672); + getDescriptor().getMessageTypes().get(678); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor, @@ -30087,7 +30614,7 @@ private static void _clinit_autosplit_dinit_1() { "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor = - getDescriptor().getMessageTypes().get(673); + getDescriptor().getMessageTypes().get(679); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor, @@ -30095,7 +30622,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentName", "Name", }); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(674); + getDescriptor().getMessageTypes().get(680); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor, @@ -30103,7 +30630,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkInterfaces", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(675); + getDescriptor().getMessageTypes().get(681); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor, @@ -30111,7 +30638,7 @@ private static void _clinit_autosplit_dinit_1() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(676); + getDescriptor().getMessageTypes().get(682); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor, @@ -30119,7 +30646,7 @@ private static void _clinit_autosplit_dinit_1() { "Disks", }); internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor = - getDescriptor().getMessageTypes().get(677); + getDescriptor().getMessageTypes().get(683); internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor, @@ -30153,7 +30680,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(678); + getDescriptor().getMessageTypes().get(684); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor, @@ -30171,7 +30698,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor = - getDescriptor().getMessageTypes().get(679); + getDescriptor().getMessageTypes().get(685); internal_static_google_cloud_compute_v1_InstantSnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor, @@ -30179,7 +30706,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(680); + getDescriptor().getMessageTypes().get(686); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor, @@ -30187,7 +30714,7 @@ private static void _clinit_autosplit_dinit_1() { "StorageSizeBytes", }); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor = - getDescriptor().getMessageTypes().get(681); + getDescriptor().getMessageTypes().get(687); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor, @@ -30195,7 +30722,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshots", "Warning", }); internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor = - getDescriptor().getMessageTypes().get(682); + getDescriptor().getMessageTypes().get(688); internal_static_google_cloud_compute_v1_Int64RangeMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor, @@ -30203,7 +30730,7 @@ private static void _clinit_autosplit_dinit_1() { "RangeEnd", "RangeStart", }); internal_static_google_cloud_compute_v1_Interconnect_descriptor = - getDescriptor().getMessageTypes().get(683); + getDescriptor().getMessageTypes().get(689); internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Interconnect_descriptor, @@ -30248,7 +30775,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor = - getDescriptor().getMessageTypes().get(684); + getDescriptor().getMessageTypes().get(690); internal_static_google_cloud_compute_v1_InterconnectAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor, @@ -30305,7 +30832,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(685); + getDescriptor().getMessageTypes().get(691); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor, @@ -30323,7 +30850,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor = - getDescriptor().getMessageTypes().get(686); + getDescriptor().getMessageTypes().get(692); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor, @@ -30331,7 +30858,7 @@ private static void _clinit_autosplit_dinit_1() { "BgpMd5", "BgpPeerAsnRanges", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor = - getDescriptor().getMessageTypes().get(687); + getDescriptor().getMessageTypes().get(693); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor, @@ -30339,7 +30866,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(688); + getDescriptor().getMessageTypes().get(694); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor, @@ -30347,7 +30874,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor = - getDescriptor().getMessageTypes().get(689); + getDescriptor().getMessageTypes().get(695); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor, @@ -30355,7 +30882,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectName", "PartnerName", "PortalUrl", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor = - getDescriptor().getMessageTypes().get(690); + getDescriptor().getMessageTypes().get(696); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor, @@ -30363,7 +30890,7 @@ private static void _clinit_autosplit_dinit_1() { "Tag8021Q", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(691); + getDescriptor().getMessageTypes().get(697); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor, @@ -30371,7 +30898,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachments", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor = - getDescriptor().getMessageTypes().get(692); + getDescriptor().getMessageTypes().get(698); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor, @@ -30379,7 +30906,7 @@ private static void _clinit_autosplit_dinit_1() { "CustomerDemarcId", "GoogleCircuitId", "GoogleDemarcId", }); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor = - getDescriptor().getMessageTypes().get(693); + getDescriptor().getMessageTypes().get(699); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor, @@ -30391,7 +30918,7 @@ private static void _clinit_autosplit_dinit_1() { "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor = - getDescriptor().getMessageTypes().get(694); + getDescriptor().getMessageTypes().get(700); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor, @@ -30399,7 +30926,7 @@ private static void _clinit_autosplit_dinit_1() { "IpAddress", "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor = - getDescriptor().getMessageTypes().get(695); + getDescriptor().getMessageTypes().get(701); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor, @@ -30407,7 +30934,7 @@ private static void _clinit_autosplit_dinit_1() { "GoogleSystemId", "NeighborSystemId", "State", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor = - getDescriptor().getMessageTypes().get(696); + getDescriptor().getMessageTypes().get(702); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor, @@ -30415,7 +30942,7 @@ private static void _clinit_autosplit_dinit_1() { "State", "Value", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor = - getDescriptor().getMessageTypes().get(697); + getDescriptor().getMessageTypes().get(703); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor, @@ -30430,7 +30957,7 @@ private static void _clinit_autosplit_dinit_1() { "TransmittingOpticalPower", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor = - getDescriptor().getMessageTypes().get(698); + getDescriptor().getMessageTypes().get(704); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor, @@ -30438,7 +30965,7 @@ private static void _clinit_autosplit_dinit_1() { "Ckn", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectList_descriptor = - getDescriptor().getMessageTypes().get(699); + getDescriptor().getMessageTypes().get(705); internal_static_google_cloud_compute_v1_InterconnectList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectList_descriptor, @@ -30446,7 +30973,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor = - getDescriptor().getMessageTypes().get(700); + getDescriptor().getMessageTypes().get(706); internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor, @@ -30471,7 +30998,7 @@ private static void _clinit_autosplit_dinit_1() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor = - getDescriptor().getMessageTypes().get(701); + getDescriptor().getMessageTypes().get(707); internal_static_google_cloud_compute_v1_InterconnectLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor, @@ -30479,7 +31006,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor = - getDescriptor().getMessageTypes().get(702); + getDescriptor().getMessageTypes().get(708); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor, @@ -30487,7 +31014,7 @@ private static void _clinit_autosplit_dinit_1() { "ExpectedRttMs", "LocationPresence", "Region", }); internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor = - getDescriptor().getMessageTypes().get(703); + getDescriptor().getMessageTypes().get(709); internal_static_google_cloud_compute_v1_InterconnectMacsec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor, @@ -30495,7 +31022,7 @@ private static void _clinit_autosplit_dinit_1() { "FailOpen", "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor = - getDescriptor().getMessageTypes().get(704); + getDescriptor().getMessageTypes().get(710); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor, @@ -30503,7 +31030,7 @@ private static void _clinit_autosplit_dinit_1() { "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(705); + getDescriptor().getMessageTypes().get(711); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor, @@ -30511,7 +31038,7 @@ private static void _clinit_autosplit_dinit_1() { "Cak", "Ckn", "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(706); + getDescriptor().getMessageTypes().get(712); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor, @@ -30519,7 +31046,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor = - getDescriptor().getMessageTypes().get(707); + getDescriptor().getMessageTypes().get(713); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor, @@ -30534,7 +31061,7 @@ private static void _clinit_autosplit_dinit_1() { "State", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor = - getDescriptor().getMessageTypes().get(708); + getDescriptor().getMessageTypes().get(714); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor, @@ -30561,7 +31088,7 @@ private static void _clinit_autosplit_dinit_1() { "Status", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(709); + getDescriptor().getMessageTypes().get(715); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor, @@ -30569,7 +31096,7 @@ private static void _clinit_autosplit_dinit_1() { "PortPairRemoteLocation", "PortPairVlan", "SubnetLengthRange", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor = - getDescriptor().getMessageTypes().get(710); + getDescriptor().getMessageTypes().get(716); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor, @@ -30577,7 +31104,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor = - getDescriptor().getMessageTypes().get(711); + getDescriptor().getMessageTypes().get(717); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor, @@ -30585,7 +31112,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor = - getDescriptor().getMessageTypes().get(712); + getDescriptor().getMessageTypes().get(718); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor, @@ -30593,7 +31120,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectLocation", }); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor = - getDescriptor().getMessageTypes().get(713); + getDescriptor().getMessageTypes().get(719); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor, @@ -30601,7 +31128,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(714); + getDescriptor().getMessageTypes().get(720); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor, @@ -30609,7 +31136,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(715); + getDescriptor().getMessageTypes().get(721); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor, @@ -30617,7 +31144,7 @@ private static void _clinit_autosplit_dinit_1() { "CacheInvalidationRuleResource", "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_Items_descriptor = - getDescriptor().getMessageTypes().get(716); + getDescriptor().getMessageTypes().get(722); internal_static_google_cloud_compute_v1_Items_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Items_descriptor, @@ -30625,7 +31152,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_License_descriptor = - getDescriptor().getMessageTypes().get(717); + getDescriptor().getMessageTypes().get(723); internal_static_google_cloud_compute_v1_License_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_License_descriptor, @@ -30642,7 +31169,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCode_descriptor = - getDescriptor().getMessageTypes().get(718); + getDescriptor().getMessageTypes().get(724); internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCode_descriptor, @@ -30658,7 +31185,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor = - getDescriptor().getMessageTypes().get(719); + getDescriptor().getMessageTypes().get(725); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor, @@ -30666,7 +31193,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "SelfLink", }); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(720); + getDescriptor().getMessageTypes().get(726); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor, @@ -30674,7 +31201,7 @@ private static void _clinit_autosplit_dinit_1() { "Amount", "CoresPerLicense", "License", }); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(721); + getDescriptor().getMessageTypes().get(727); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor, @@ -30682,7 +31209,7 @@ private static void _clinit_autosplit_dinit_1() { "MinGuestCpuCount", "MinMemoryMb", }); internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor = - getDescriptor().getMessageTypes().get(722); + getDescriptor().getMessageTypes().get(728); internal_static_google_cloud_compute_v1_LicensesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor, @@ -30690,7 +31217,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(723); + getDescriptor().getMessageTypes().get(729); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor, @@ -30704,7 +31231,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(724); + getDescriptor().getMessageTypes().get(730); internal_static_google_cloud_compute_v1_ListAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor, @@ -30718,7 +31245,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(725); + getDescriptor().getMessageTypes().get(731); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor, @@ -30726,7 +31253,7 @@ private static void _clinit_autosplit_dinit_1() { "TargetResource", }); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(726); + getDescriptor().getMessageTypes().get(732); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor, @@ -30740,7 +31267,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(727); + getDescriptor().getMessageTypes().get(733); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor, @@ -30754,7 +31281,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(728); + getDescriptor().getMessageTypes().get(734); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor, @@ -30762,7 +31289,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(729); + getDescriptor().getMessageTypes().get(735); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor, @@ -30770,7 +31297,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(730); + getDescriptor().getMessageTypes().get(736); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor, @@ -30778,7 +31305,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(731); + getDescriptor().getMessageTypes().get(737); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor, @@ -30792,7 +31319,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(732); + getDescriptor().getMessageTypes().get(738); internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor, @@ -30806,7 +31333,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(733); + getDescriptor().getMessageTypes().get(739); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor, @@ -30821,7 +31348,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(734); + getDescriptor().getMessageTypes().get(740); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor, @@ -30836,7 +31363,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(735); + getDescriptor().getMessageTypes().get(741); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor, @@ -30851,7 +31378,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(736); + getDescriptor().getMessageTypes().get(742); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor, @@ -30859,7 +31386,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(737); + getDescriptor().getMessageTypes().get(743); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor, @@ -30867,7 +31394,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor = - getDescriptor().getMessageTypes().get(738); + getDescriptor().getMessageTypes().get(744); internal_static_google_cloud_compute_v1_ListFirewallsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor, @@ -30875,7 +31402,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(739); + getDescriptor().getMessageTypes().get(745); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor, @@ -30889,7 +31416,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(740); + getDescriptor().getMessageTypes().get(746); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor, @@ -30897,7 +31424,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(741); + getDescriptor().getMessageTypes().get(747); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor, @@ -30905,7 +31432,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(742); + getDescriptor().getMessageTypes().get(748); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor, @@ -30913,7 +31440,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(743); + getDescriptor().getMessageTypes().get(749); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor, @@ -30921,7 +31448,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(744); + getDescriptor().getMessageTypes().get(750); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor, @@ -30929,7 +31456,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(745); + getDescriptor().getMessageTypes().get(751); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor, @@ -30937,7 +31464,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor = - getDescriptor().getMessageTypes().get(746); + getDescriptor().getMessageTypes().get(752); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor, @@ -30945,7 +31472,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(747); + getDescriptor().getMessageTypes().get(753); internal_static_google_cloud_compute_v1_ListImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor, @@ -30953,7 +31480,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor = - getDescriptor().getMessageTypes().get(748); + getDescriptor().getMessageTypes().get(754); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor, @@ -30968,7 +31495,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(749); + getDescriptor().getMessageTypes().get(755); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor, @@ -30982,7 +31509,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(750); + getDescriptor().getMessageTypes().get(756); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor, @@ -30996,7 +31523,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(751); + getDescriptor().getMessageTypes().get(757); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor, @@ -31004,7 +31531,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(752); + getDescriptor().getMessageTypes().get(758); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor, @@ -31020,7 +31547,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(753); + getDescriptor().getMessageTypes().get(759); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor, @@ -31036,7 +31563,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(754); + getDescriptor().getMessageTypes().get(760); internal_static_google_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor, @@ -31050,7 +31577,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(755); + getDescriptor().getMessageTypes().get(761); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor, @@ -31064,7 +31591,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(756); + getDescriptor().getMessageTypes().get(762); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor, @@ -31078,7 +31605,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(757); + getDescriptor().getMessageTypes().get(763); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor, @@ -31086,7 +31613,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(758); + getDescriptor().getMessageTypes().get(764); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor, @@ -31094,7 +31621,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor = - getDescriptor().getMessageTypes().get(759); + getDescriptor().getMessageTypes().get(765); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor, @@ -31102,7 +31629,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor = - getDescriptor().getMessageTypes().get(760); + getDescriptor().getMessageTypes().get(766); internal_static_google_cloud_compute_v1_ListLicensesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor, @@ -31110,7 +31637,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(761); + getDescriptor().getMessageTypes().get(767); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor, @@ -31118,7 +31645,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(762); + getDescriptor().getMessageTypes().get(768); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor, @@ -31132,7 +31659,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(763); + getDescriptor().getMessageTypes().get(769); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor, @@ -31147,7 +31674,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(764); + getDescriptor().getMessageTypes().get(770); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor, @@ -31162,7 +31689,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(765); + getDescriptor().getMessageTypes().get(771); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor, @@ -31176,7 +31703,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(766); + getDescriptor().getMessageTypes().get(772); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor, @@ -31190,7 +31717,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(767); + getDescriptor().getMessageTypes().get(773); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor, @@ -31204,7 +31731,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(768); + getDescriptor().getMessageTypes().get(774); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor, @@ -31220,7 +31747,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(769); + getDescriptor().getMessageTypes().get(775); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor, @@ -31235,15 +31762,23 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(770); + getDescriptor().getMessageTypes().get(776); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor, new java.lang.String[] { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(777); + internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor, + new java.lang.String[] { + "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(771); + getDescriptor().getMessageTypes().get(778); internal_static_google_cloud_compute_v1_ListNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor, @@ -31251,7 +31786,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(772); + getDescriptor().getMessageTypes().get(779); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor, @@ -31265,7 +31800,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(773); + getDescriptor().getMessageTypes().get(780); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor, @@ -31279,7 +31814,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(774); + getDescriptor().getMessageTypes().get(781); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor, @@ -31293,7 +31828,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(775); + getDescriptor().getMessageTypes().get(782); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor, @@ -31308,7 +31843,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageTypes().get(776); + getDescriptor().getMessageTypes().get(783); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor, @@ -31322,7 +31857,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(777); + getDescriptor().getMessageTypes().get(784); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor, @@ -31339,7 +31874,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(778); + getDescriptor().getMessageTypes().get(785); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor, @@ -31354,7 +31889,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(779); + getDescriptor().getMessageTypes().get(786); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor, @@ -31369,7 +31904,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(780); + getDescriptor().getMessageTypes().get(787); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor, @@ -31377,7 +31912,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(781); + getDescriptor().getMessageTypes().get(788); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor, @@ -31385,7 +31920,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(782); + getDescriptor().getMessageTypes().get(789); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor, @@ -31399,7 +31934,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(783); + getDescriptor().getMessageTypes().get(790); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor, @@ -31414,7 +31949,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(784); + getDescriptor().getMessageTypes().get(791); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor, @@ -31428,7 +31963,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(785); + getDescriptor().getMessageTypes().get(792); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor, @@ -31442,7 +31977,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(786); + getDescriptor().getMessageTypes().get(793); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor, @@ -31456,7 +31991,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(787); + getDescriptor().getMessageTypes().get(794); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor, @@ -31470,7 +32005,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(788); + getDescriptor().getMessageTypes().get(795); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor, @@ -31484,7 +32019,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(789); + getDescriptor().getMessageTypes().get(796); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor, @@ -31498,7 +32033,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor = - getDescriptor().getMessageTypes().get(790); + getDescriptor().getMessageTypes().get(797); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor, @@ -31512,7 +32047,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(791); + getDescriptor().getMessageTypes().get(798); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor, @@ -31526,7 +32061,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(792); + getDescriptor().getMessageTypes().get(799); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor, @@ -31540,7 +32075,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(793); + getDescriptor().getMessageTypes().get(800); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor, @@ -31554,7 +32089,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(794); + getDescriptor().getMessageTypes().get(801); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor, @@ -31568,7 +32103,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(795); + getDescriptor().getMessageTypes().get(802); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor, @@ -31582,7 +32117,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(796); + getDescriptor().getMessageTypes().get(803); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor, @@ -31596,7 +32131,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(797); + getDescriptor().getMessageTypes().get(804); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor, @@ -31610,7 +32145,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(798); + getDescriptor().getMessageTypes().get(805); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor, @@ -31624,7 +32159,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(799); + getDescriptor().getMessageTypes().get(806); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor, @@ -31638,7 +32173,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(800); + getDescriptor().getMessageTypes().get(807); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor, @@ -31652,7 +32187,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(801); + getDescriptor().getMessageTypes().get(808); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor, @@ -31666,7 +32201,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(802); + getDescriptor().getMessageTypes().get(809); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor, @@ -31680,7 +32215,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(803); + getDescriptor().getMessageTypes().get(810); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor, @@ -31694,7 +32229,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(804); + getDescriptor().getMessageTypes().get(811); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor, @@ -31708,7 +32243,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(805); + getDescriptor().getMessageTypes().get(812); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor, @@ -31722,7 +32257,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(806); + getDescriptor().getMessageTypes().get(813); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor, @@ -31736,7 +32271,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor = - getDescriptor().getMessageTypes().get(807); + getDescriptor().getMessageTypes().get(814); internal_static_google_cloud_compute_v1_ListRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor, @@ -31744,7 +32279,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(808); + getDescriptor().getMessageTypes().get(815); internal_static_google_cloud_compute_v1_ListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor, @@ -31758,7 +32293,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(809); + getDescriptor().getMessageTypes().get(816); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor, @@ -31772,7 +32307,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(810); + getDescriptor().getMessageTypes().get(817); internal_static_google_cloud_compute_v1_ListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor, @@ -31786,7 +32321,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(811); + getDescriptor().getMessageTypes().get(818); internal_static_google_cloud_compute_v1_ListRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor, @@ -31794,7 +32329,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(812); + getDescriptor().getMessageTypes().get(819); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor, @@ -31802,7 +32337,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(813); + getDescriptor().getMessageTypes().get(820); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor, @@ -31816,7 +32351,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(814); + getDescriptor().getMessageTypes().get(821); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor, @@ -31824,7 +32359,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(815); + getDescriptor().getMessageTypes().get(822); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor, @@ -31832,7 +32367,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(816); + getDescriptor().getMessageTypes().get(823); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor, @@ -31840,7 +32375,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(817); + getDescriptor().getMessageTypes().get(824); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor, @@ -31854,7 +32389,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(818); + getDescriptor().getMessageTypes().get(825); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor, @@ -31868,7 +32403,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(819); + getDescriptor().getMessageTypes().get(826); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor, @@ -31882,7 +32417,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(820); + getDescriptor().getMessageTypes().get(827); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor, @@ -31890,7 +32425,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(821); + getDescriptor().getMessageTypes().get(828); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor, @@ -31898,7 +32433,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(822); + getDescriptor().getMessageTypes().get(829); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor, @@ -31906,7 +32441,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(823); + getDescriptor().getMessageTypes().get(830); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor, @@ -31920,7 +32455,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(824); + getDescriptor().getMessageTypes().get(831); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor, @@ -31934,7 +32469,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(825); + getDescriptor().getMessageTypes().get(832); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor, @@ -31942,7 +32477,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(826); + getDescriptor().getMessageTypes().get(833); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor, @@ -31950,7 +32485,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(827); + getDescriptor().getMessageTypes().get(834); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor, @@ -31964,7 +32499,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(828); + getDescriptor().getMessageTypes().get(835); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor, @@ -31972,7 +32507,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(829); + getDescriptor().getMessageTypes().get(836); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor, @@ -31980,7 +32515,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(830); + getDescriptor().getMessageTypes().get(837); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor, @@ -31994,7 +32529,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(831); + getDescriptor().getMessageTypes().get(838); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor, @@ -32002,7 +32537,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(832); + getDescriptor().getMessageTypes().get(839); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor, @@ -32016,7 +32551,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageTypes().get(833); + getDescriptor().getMessageTypes().get(840); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor, @@ -32030,7 +32565,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(834); + getDescriptor().getMessageTypes().get(841); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor, @@ -32044,7 +32579,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(835); + getDescriptor().getMessageTypes().get(842); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor, @@ -32058,7 +32593,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(836); + getDescriptor().getMessageTypes().get(843); internal_static_google_cloud_compute_v1_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor, @@ -32066,7 +32601,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_LocalDisk_descriptor = - getDescriptor().getMessageTypes().get(837); + getDescriptor().getMessageTypes().get(844); internal_static_google_cloud_compute_v1_LocalDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalDisk_descriptor, @@ -32074,7 +32609,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskCount", "DiskSizeGb", "DiskType", }); internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor = - getDescriptor().getMessageTypes().get(838); + getDescriptor().getMessageTypes().get(845); internal_static_google_cloud_compute_v1_LocalizedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor, @@ -32082,7 +32617,7 @@ private static void _clinit_autosplit_dinit_1() { "Locale", "Message", }); internal_static_google_cloud_compute_v1_LocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(839); + getDescriptor().getMessageTypes().get(846); internal_static_google_cloud_compute_v1_LocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicy_descriptor, @@ -32098,7 +32633,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor = - getDescriptor().getMessageTypes().get(840); + getDescriptor().getMessageTypes().get(847); internal_static_google_cloud_compute_v1_LocationPolicyLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor, @@ -32106,7 +32641,7 @@ private static void _clinit_autosplit_dinit_1() { "Constraints", "Preference", }); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(841); + getDescriptor().getMessageTypes().get(848); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor, @@ -32114,7 +32649,7 @@ private static void _clinit_autosplit_dinit_1() { "MaxCount", }); internal_static_google_cloud_compute_v1_MachineImage_descriptor = - getDescriptor().getMessageTypes().get(842); + getDescriptor().getMessageTypes().get(849); internal_static_google_cloud_compute_v1_MachineImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImage_descriptor, @@ -32139,7 +32674,7 @@ private static void _clinit_autosplit_dinit_1() { "TotalStorageBytes", }); internal_static_google_cloud_compute_v1_MachineImageList_descriptor = - getDescriptor().getMessageTypes().get(843); + getDescriptor().getMessageTypes().get(850); internal_static_google_cloud_compute_v1_MachineImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImageList_descriptor, @@ -32147,7 +32682,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineType_descriptor = - getDescriptor().getMessageTypes().get(844); + getDescriptor().getMessageTypes().get(851); internal_static_google_cloud_compute_v1_MachineType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineType_descriptor, @@ -32171,7 +32706,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(845); + getDescriptor().getMessageTypes().get(852); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor, @@ -32189,7 +32724,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineTypeList_descriptor = - getDescriptor().getMessageTypes().get(846); + getDescriptor().getMessageTypes().get(853); internal_static_google_cloud_compute_v1_MachineTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeList_descriptor, @@ -32197,7 +32732,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(847); + getDescriptor().getMessageTypes().get(854); internal_static_google_cloud_compute_v1_MachineTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor, @@ -32205,7 +32740,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Warning", }); internal_static_google_cloud_compute_v1_ManagedInstance_descriptor = - getDescriptor().getMessageTypes().get(848); + getDescriptor().getMessageTypes().get(855); internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstance_descriptor, @@ -32223,7 +32758,7 @@ private static void _clinit_autosplit_dinit_1() { "Version", }); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(849); + getDescriptor().getMessageTypes().get(856); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor, @@ -32231,7 +32766,7 @@ private static void _clinit_autosplit_dinit_1() { "DetailedHealthState", "HealthCheck", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(850); + getDescriptor().getMessageTypes().get(857); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor, @@ -32239,7 +32774,7 @@ private static void _clinit_autosplit_dinit_1() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(851); + getDescriptor().getMessageTypes().get(858); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor, @@ -32247,7 +32782,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor = - getDescriptor().getMessageTypes().get(852); + getDescriptor().getMessageTypes().get(859); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor, @@ -32255,7 +32790,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", }); internal_static_google_cloud_compute_v1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(853); + getDescriptor().getMessageTypes().get(860); internal_static_google_cloud_compute_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Metadata_descriptor, @@ -32263,7 +32798,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Items", "Kind", }); internal_static_google_cloud_compute_v1_MetadataFilter_descriptor = - getDescriptor().getMessageTypes().get(854); + getDescriptor().getMessageTypes().get(861); internal_static_google_cloud_compute_v1_MetadataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilter_descriptor, @@ -32271,7 +32806,7 @@ private static void _clinit_autosplit_dinit_1() { "FilterLabels", "FilterMatchCriteria", }); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor = - getDescriptor().getMessageTypes().get(855); + getDescriptor().getMessageTypes().get(862); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor, @@ -32279,7 +32814,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "Value", }); internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(856); + getDescriptor().getMessageTypes().get(863); internal_static_google_cloud_compute_v1_MoveAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor, @@ -32287,7 +32822,7 @@ private static void _clinit_autosplit_dinit_1() { "Address", "Project", "Region", "RegionAddressesMoveRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(857); + getDescriptor().getMessageTypes().get(864); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor, @@ -32295,7 +32830,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(858); + getDescriptor().getMessageTypes().get(865); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor, @@ -32303,7 +32838,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(859); + getDescriptor().getMessageTypes().get(866); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor, @@ -32311,7 +32846,7 @@ private static void _clinit_autosplit_dinit_1() { "Address", "GlobalAddressesMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(860); + getDescriptor().getMessageTypes().get(867); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor, @@ -32319,7 +32854,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_NamedPort_descriptor = - getDescriptor().getMessageTypes().get(861); + getDescriptor().getMessageTypes().get(868); internal_static_google_cloud_compute_v1_NamedPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NamedPort_descriptor, @@ -32327,7 +32862,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "Port", }); internal_static_google_cloud_compute_v1_NatIpInfo_descriptor = - getDescriptor().getMessageTypes().get(862); + getDescriptor().getMessageTypes().get(869); internal_static_google_cloud_compute_v1_NatIpInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfo_descriptor, @@ -32335,7 +32870,7 @@ private static void _clinit_autosplit_dinit_1() { "NatIpInfoMappings", "NatName", }); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor = - getDescriptor().getMessageTypes().get(863); + getDescriptor().getMessageTypes().get(870); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor, @@ -32343,7 +32878,7 @@ private static void _clinit_autosplit_dinit_1() { "Mode", "NatIp", "Usage", }); internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(864); + getDescriptor().getMessageTypes().get(871); internal_static_google_cloud_compute_v1_NatIpInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor, @@ -32351,7 +32886,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_Network_descriptor = - getDescriptor().getMessageTypes().get(865); + getDescriptor().getMessageTypes().get(872); internal_static_google_cloud_compute_v1_Network_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Network_descriptor, @@ -32369,6 +32904,7 @@ private static void _clinit_autosplit_dinit_1() { "Mtu", "Name", "NetworkFirewallPolicyEnforcementOrder", + "NetworkProfile", "Peerings", "RoutingConfig", "SelfLink", @@ -32376,7 +32912,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor = - getDescriptor().getMessageTypes().get(866); + getDescriptor().getMessageTypes().get(873); internal_static_google_cloud_compute_v1_NetworkAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor, @@ -32398,7 +32934,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(867); + getDescriptor().getMessageTypes().get(874); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor, @@ -32416,7 +32952,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(868); + getDescriptor().getMessageTypes().get(875); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor, @@ -32430,7 +32966,7 @@ private static void _clinit_autosplit_dinit_1() { "SubnetworkCidrRange", }); internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(869); + getDescriptor().getMessageTypes().get(876); internal_static_google_cloud_compute_v1_NetworkAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor, @@ -32438,7 +32974,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(870); + getDescriptor().getMessageTypes().get(877); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor, @@ -32446,7 +32982,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachments", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor = - getDescriptor().getMessageTypes().get(871); + getDescriptor().getMessageTypes().get(878); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor, @@ -32463,7 +32999,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(872); + getDescriptor().getMessageTypes().get(879); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor, @@ -32481,7 +33017,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor = - getDescriptor().getMessageTypes().get(873); + getDescriptor().getMessageTypes().get(880); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor, @@ -32489,7 +33025,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEdgeSecurityServices", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(874); + getDescriptor().getMessageTypes().get(881); internal_static_google_cloud_compute_v1_NetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor, @@ -32511,7 +33047,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor = - getDescriptor().getMessageTypes().get(875); + getDescriptor().getMessageTypes().get(882); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor, @@ -32547,7 +33083,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(876); + getDescriptor().getMessageTypes().get(883); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor, @@ -32565,7 +33101,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor = - getDescriptor().getMessageTypes().get(877); + getDescriptor().getMessageTypes().get(884); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor, @@ -32573,7 +33109,7 @@ private static void _clinit_autosplit_dinit_1() { "Service", "UrlMask", "Version", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor = - getDescriptor().getMessageTypes().get(878); + getDescriptor().getMessageTypes().get(885); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor, @@ -32581,7 +33117,7 @@ private static void _clinit_autosplit_dinit_1() { "Function", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor = - getDescriptor().getMessageTypes().get(879); + getDescriptor().getMessageTypes().get(886); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor, @@ -32589,7 +33125,7 @@ private static void _clinit_autosplit_dinit_1() { "Service", "Tag", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor = - getDescriptor().getMessageTypes().get(880); + getDescriptor().getMessageTypes().get(887); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor, @@ -32597,7 +33133,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor = - getDescriptor().getMessageTypes().get(881); + getDescriptor().getMessageTypes().get(888); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor, @@ -32605,7 +33141,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumerPscAddress", "ProducerPort", "PscConnectionId", "PscConnectionStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(882); + getDescriptor().getMessageTypes().get(889); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -32613,7 +33149,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(883); + getDescriptor().getMessageTypes().get(890); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -32621,7 +33157,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(884); + getDescriptor().getMessageTypes().get(891); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor, @@ -32629,7 +33165,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor = - getDescriptor().getMessageTypes().get(885); + getDescriptor().getMessageTypes().get(892); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor, @@ -32637,7 +33173,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(886); + getDescriptor().getMessageTypes().get(893); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor, @@ -32645,7 +33181,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroups", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor = - getDescriptor().getMessageTypes().get(887); + getDescriptor().getMessageTypes().get(894); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor, @@ -32653,7 +33189,7 @@ private static void _clinit_autosplit_dinit_1() { "Healths", "NetworkEndpoint", }); internal_static_google_cloud_compute_v1_NetworkInterface_descriptor = - getDescriptor().getMessageTypes().get(888); + getDescriptor().getMessageTypes().get(895); internal_static_google_cloud_compute_v1_NetworkInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkInterface_descriptor, @@ -32676,7 +33212,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetwork", }); internal_static_google_cloud_compute_v1_NetworkList_descriptor = - getDescriptor().getMessageTypes().get(889); + getDescriptor().getMessageTypes().get(896); internal_static_google_cloud_compute_v1_NetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkList_descriptor, @@ -32684,7 +33220,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkPeering_descriptor = - getDescriptor().getMessageTypes().get(890); + getDescriptor().getMessageTypes().get(897); internal_static_google_cloud_compute_v1_NetworkPeering_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeering_descriptor, @@ -32703,23 +33239,88 @@ private static void _clinit_autosplit_dinit_1() { "StateDetails", }); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor = - getDescriptor().getMessageTypes().get(891); + getDescriptor().getMessageTypes().get(898); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor, new java.lang.String[] { "TotalEgressBandwidthTier", }); + internal_static_google_cloud_compute_v1_NetworkProfile_descriptor = + getDescriptor().getMessageTypes().get(899); + internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkProfile_descriptor, + new java.lang.String[] { + "CreationTimestamp", + "Description", + "Features", + "Id", + "Kind", + "Location", + "Name", + "SelfLink", + "SelfLinkWithId", + "Zone", + }); + internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor = + getDescriptor().getMessageTypes().get(900); + internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor, + new java.lang.String[] { + "Name", "Scope", + }); + internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor = + getDescriptor().getMessageTypes().get(901); + internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor, + new java.lang.String[] { + "AddressPurposes", + "AllowAliasIpRanges", + "AllowAutoModeSubnet", + "AllowClassDFirewalls", + "AllowCloudNat", + "AllowCloudRouter", + "AllowExternalIpAccess", + "AllowInterconnect", + "AllowLoadBalancing", + "AllowMultiNicInSameNetwork", + "AllowPacketMirroring", + "AllowPrivateGoogleAccess", + "AllowPsc", + "AllowSameNetworkUnicast", + "AllowStaticRoutes", + "AllowSubInterfaces", + "AllowVpcPeering", + "AllowVpn", + "InterfaceTypes", + "SubnetPurposes", + "SubnetStackTypes", + "Unicast", + }); + internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor = + getDescriptor().getMessageTypes().get(902); + internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor, + new java.lang.String[] { + "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", + }); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor = - getDescriptor().getMessageTypes().get(892); + getDescriptor().getMessageTypes().get(903); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor, new java.lang.String[] { + "BgpAlwaysCompareMed", + "BgpBestPathSelectionMode", + "BgpInterRegionCost", "RoutingMode", }); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(893); + getDescriptor().getMessageTypes().get(904); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor, @@ -32727,7 +33328,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoCreateRoutes", "Name", "NetworkPeering", "PeerNetwork", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(894); + getDescriptor().getMessageTypes().get(905); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor, @@ -32735,7 +33336,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(895); + getDescriptor().getMessageTypes().get(906); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -32743,7 +33344,7 @@ private static void _clinit_autosplit_dinit_1() { "DisplayName", "Name", "Priority", "Rules", "ShortName", "Type", }); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(896); + getDescriptor().getMessageTypes().get(907); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor, @@ -32751,7 +33352,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", }); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(897); + getDescriptor().getMessageTypes().get(908); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor, @@ -32759,7 +33360,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkPeering", }); internal_static_google_cloud_compute_v1_NodeGroup_descriptor = - getDescriptor().getMessageTypes().get(898); + getDescriptor().getMessageTypes().get(909); internal_static_google_cloud_compute_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroup_descriptor, @@ -32782,8 +33383,12 @@ private static void _clinit_autosplit_dinit_1() { "Status", "Zone", }); + _clinit_autosplit_dinit_2(); + } + + private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(899); + getDescriptor().getMessageTypes().get(910); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor, @@ -32801,7 +33406,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor = - getDescriptor().getMessageTypes().get(900); + getDescriptor().getMessageTypes().get(911); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor, @@ -32809,7 +33414,7 @@ private static void _clinit_autosplit_dinit_1() { "MaxNodes", "MinNodes", "Mode", }); internal_static_google_cloud_compute_v1_NodeGroupList_descriptor = - getDescriptor().getMessageTypes().get(901); + getDescriptor().getMessageTypes().get(912); internal_static_google_cloud_compute_v1_NodeGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupList_descriptor, @@ -32817,7 +33422,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(902); + getDescriptor().getMessageTypes().get(913); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor, @@ -32825,7 +33430,7 @@ private static void _clinit_autosplit_dinit_1() { "MaintenanceDuration", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor = - getDescriptor().getMessageTypes().get(903); + getDescriptor().getMessageTypes().get(914); internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor, @@ -32846,7 +33451,7 @@ private static void _clinit_autosplit_dinit_1() { "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(904); + getDescriptor().getMessageTypes().get(915); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor, @@ -32854,7 +33459,7 @@ private static void _clinit_autosplit_dinit_1() { "AdditionalNodeCount", }); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(905); + getDescriptor().getMessageTypes().get(916); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor, @@ -32862,7 +33467,7 @@ private static void _clinit_autosplit_dinit_1() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor = - getDescriptor().getMessageTypes().get(906); + getDescriptor().getMessageTypes().get(917); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor, @@ -32870,7 +33475,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(907); + getDescriptor().getMessageTypes().get(918); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor, @@ -32878,19 +33483,15 @@ private static void _clinit_autosplit_dinit_1() { "Nodes", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(908); + getDescriptor().getMessageTypes().get(919); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor, new java.lang.String[] { "NodeGroups", "Warning", }); - _clinit_autosplit_dinit_2(); - } - - private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(909); + getDescriptor().getMessageTypes().get(920); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor, @@ -32898,7 +33499,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplate", }); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor = - getDescriptor().getMessageTypes().get(910); + getDescriptor().getMessageTypes().get(921); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor, @@ -32906,7 +33507,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeTemplate_descriptor = - getDescriptor().getMessageTypes().get(911); + getDescriptor().getMessageTypes().get(922); internal_static_google_cloud_compute_v1_NodeTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplate_descriptor, @@ -32937,7 +33538,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(912); + getDescriptor().getMessageTypes().get(923); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor, @@ -32955,7 +33556,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor = - getDescriptor().getMessageTypes().get(913); + getDescriptor().getMessageTypes().get(924); internal_static_google_cloud_compute_v1_NodeTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor, @@ -32963,7 +33564,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor = - getDescriptor().getMessageTypes().get(914); + getDescriptor().getMessageTypes().get(925); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor, @@ -32971,7 +33572,7 @@ private static void _clinit_autosplit_dinit_2() { "Cpus", "LocalSsd", "Memory", }); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(915); + getDescriptor().getMessageTypes().get(926); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor, @@ -32979,7 +33580,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplates", "Warning", }); internal_static_google_cloud_compute_v1_NodeType_descriptor = - getDescriptor().getMessageTypes().get(916); + getDescriptor().getMessageTypes().get(927); internal_static_google_cloud_compute_v1_NodeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeType_descriptor, @@ -32998,7 +33599,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(917); + getDescriptor().getMessageTypes().get(928); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor, @@ -33016,7 +33617,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTypeList_descriptor = - getDescriptor().getMessageTypes().get(918); + getDescriptor().getMessageTypes().get(929); internal_static_google_cloud_compute_v1_NodeTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeList_descriptor, @@ -33024,7 +33625,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(919); + getDescriptor().getMessageTypes().get(930); internal_static_google_cloud_compute_v1_NodeTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor, @@ -33032,7 +33633,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTypes", "Warning", }); internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor = - getDescriptor().getMessageTypes().get(920); + getDescriptor().getMessageTypes().get(931); internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor, @@ -33047,7 +33648,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor = - getDescriptor().getMessageTypes().get(921); + getDescriptor().getMessageTypes().get(932); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor, @@ -33055,7 +33656,7 @@ private static void _clinit_autosplit_dinit_2() { "Authority", "Endpoint", "PayloadName", "ResendInterval", "RetryDurationSec", }); internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor = - getDescriptor().getMessageTypes().get(922); + getDescriptor().getMessageTypes().get(933); internal_static_google_cloud_compute_v1_NotificationEndpointList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor, @@ -33063,7 +33664,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_Operation_descriptor = - getDescriptor().getMessageTypes().get(923); + getDescriptor().getMessageTypes().get(934); internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Operation_descriptor, @@ -33096,7 +33697,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(924); + getDescriptor().getMessageTypes().get(935); internal_static_google_cloud_compute_v1_OperationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor, @@ -33114,7 +33715,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_OperationList_descriptor = - getDescriptor().getMessageTypes().get(925); + getDescriptor().getMessageTypes().get(936); internal_static_google_cloud_compute_v1_OperationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationList_descriptor, @@ -33122,7 +33723,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor = - getDescriptor().getMessageTypes().get(926); + getDescriptor().getMessageTypes().get(937); internal_static_google_cloud_compute_v1_OperationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor, @@ -33130,7 +33731,7 @@ private static void _clinit_autosplit_dinit_2() { "Operations", "Warning", }); internal_static_google_cloud_compute_v1_OutlierDetection_descriptor = - getDescriptor().getMessageTypes().get(927); + getDescriptor().getMessageTypes().get(938); internal_static_google_cloud_compute_v1_OutlierDetection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OutlierDetection_descriptor, @@ -33148,7 +33749,7 @@ private static void _clinit_autosplit_dinit_2() { "SuccessRateStdevFactor", }); internal_static_google_cloud_compute_v1_PacketIntervals_descriptor = - getDescriptor().getMessageTypes().get(928); + getDescriptor().getMessageTypes().get(939); internal_static_google_cloud_compute_v1_PacketIntervals_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketIntervals_descriptor, @@ -33156,7 +33757,7 @@ private static void _clinit_autosplit_dinit_2() { "AvgMs", "Duration", "MaxMs", "MinMs", "NumIntervals", "Type", }); internal_static_google_cloud_compute_v1_PacketMirroring_descriptor = - getDescriptor().getMessageTypes().get(929); + getDescriptor().getMessageTypes().get(940); internal_static_google_cloud_compute_v1_PacketMirroring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroring_descriptor, @@ -33176,7 +33777,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(930); + getDescriptor().getMessageTypes().get(941); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor, @@ -33194,7 +33795,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor = - getDescriptor().getMessageTypes().get(931); + getDescriptor().getMessageTypes().get(942); internal_static_google_cloud_compute_v1_PacketMirroringFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor, @@ -33202,7 +33803,7 @@ private static void _clinit_autosplit_dinit_2() { "IPProtocols", "CidrRanges", "Direction", }); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor = - getDescriptor().getMessageTypes().get(932); + getDescriptor().getMessageTypes().get(943); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor, @@ -33210,7 +33811,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor = - getDescriptor().getMessageTypes().get(933); + getDescriptor().getMessageTypes().get(944); internal_static_google_cloud_compute_v1_PacketMirroringList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor, @@ -33218,7 +33819,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(934); + getDescriptor().getMessageTypes().get(945); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor, @@ -33226,7 +33827,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "Subnetworks", "Tags", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(935); + getDescriptor().getMessageTypes().get(946); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor, @@ -33234,7 +33835,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor = - getDescriptor().getMessageTypes().get(936); + getDescriptor().getMessageTypes().get(947); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor, @@ -33242,7 +33843,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor = - getDescriptor().getMessageTypes().get(937); + getDescriptor().getMessageTypes().get(948); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor, @@ -33250,7 +33851,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor = - getDescriptor().getMessageTypes().get(938); + getDescriptor().getMessageTypes().get(949); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor, @@ -33258,7 +33859,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirrorings", "Warning", }); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(939); + getDescriptor().getMessageTypes().get(950); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor, @@ -33266,7 +33867,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(940); + getDescriptor().getMessageTypes().get(951); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor, @@ -33274,7 +33875,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(941); + getDescriptor().getMessageTypes().get(952); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor, @@ -33282,7 +33883,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(942); + getDescriptor().getMessageTypes().get(953); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor, @@ -33290,7 +33891,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(943); + getDescriptor().getMessageTypes().get(954); internal_static_google_cloud_compute_v1_PatchFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor, @@ -33298,7 +33899,7 @@ private static void _clinit_autosplit_dinit_2() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(944); + getDescriptor().getMessageTypes().get(955); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor, @@ -33306,7 +33907,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(945); + getDescriptor().getMessageTypes().get(956); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor, @@ -33314,7 +33915,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(946); + getDescriptor().getMessageTypes().get(957); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -33322,7 +33923,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicDelegatedPrefix", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(947); + getDescriptor().getMessageTypes().get(958); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor, @@ -33330,7 +33931,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor = - getDescriptor().getMessageTypes().get(948); + getDescriptor().getMessageTypes().get(959); internal_static_google_cloud_compute_v1_PatchImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor, @@ -33338,7 +33939,7 @@ private static void _clinit_autosplit_dinit_2() { "Image", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(949); + getDescriptor().getMessageTypes().get(960); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor, @@ -33350,7 +33951,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(950); + getDescriptor().getMessageTypes().get(961); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor, @@ -33358,7 +33959,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSettingsResource", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(951); + getDescriptor().getMessageTypes().get(962); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor, @@ -33370,7 +33971,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(952); + getDescriptor().getMessageTypes().get(963); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor, @@ -33378,7 +33979,7 @@ private static void _clinit_autosplit_dinit_2() { "Interconnect", "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(953); + getDescriptor().getMessageTypes().get(964); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor, @@ -33386,7 +33987,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachment", "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(954); + getDescriptor().getMessageTypes().get(965); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor, @@ -33400,7 +34001,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(955); + getDescriptor().getMessageTypes().get(966); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor, @@ -33408,7 +34009,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(956); + getDescriptor().getMessageTypes().get(967); internal_static_google_cloud_compute_v1_PatchNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor, @@ -33416,7 +34017,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(957); + getDescriptor().getMessageTypes().get(968); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor, @@ -33424,7 +34025,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroup", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(958); + getDescriptor().getMessageTypes().get(969); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor, @@ -33432,7 +34033,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirroring", "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(959); + getDescriptor().getMessageTypes().get(970); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -33444,7 +34045,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(960); + getDescriptor().getMessageTypes().get(971); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -33456,7 +34057,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(961); + getDescriptor().getMessageTypes().get(972); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor, @@ -33464,7 +34065,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicAdvertisedPrefix", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(962); + getDescriptor().getMessageTypes().get(973); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor, @@ -33476,7 +34077,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(963); + getDescriptor().getMessageTypes().get(974); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor, @@ -33484,7 +34085,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(964); + getDescriptor().getMessageTypes().get(975); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor, @@ -33492,7 +34093,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(965); + getDescriptor().getMessageTypes().get(976); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor, @@ -33500,7 +34101,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(966); + getDescriptor().getMessageTypes().get(977); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor, @@ -33508,7 +34109,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheckService", "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(967); + getDescriptor().getMessageTypes().get(978); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor, @@ -33520,7 +34121,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(968); + getDescriptor().getMessageTypes().get(979); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor, @@ -33528,7 +34129,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(969); + getDescriptor().getMessageTypes().get(980); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor, @@ -33541,7 +34142,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(970); + getDescriptor().getMessageTypes().get(981); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor, @@ -33549,7 +34150,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(971); + getDescriptor().getMessageTypes().get(982); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor, @@ -33557,7 +34158,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(972); + getDescriptor().getMessageTypes().get(983); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor, @@ -33565,7 +34166,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(973); + getDescriptor().getMessageTypes().get(984); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor, @@ -33578,7 +34179,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(974); + getDescriptor().getMessageTypes().get(985); internal_static_google_cloud_compute_v1_PatchRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor, @@ -33586,7 +34187,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(975); + getDescriptor().getMessageTypes().get(986); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor, @@ -33594,7 +34195,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(976); + getDescriptor().getMessageTypes().get(987); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor, @@ -33602,7 +34203,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(977); + getDescriptor().getMessageTypes().get(988); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -33615,7 +34216,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(978); + getDescriptor().getMessageTypes().get(989); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor, @@ -33629,7 +34230,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(979); + getDescriptor().getMessageTypes().get(990); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor, @@ -33642,7 +34243,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(980); + getDescriptor().getMessageTypes().get(991); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor, @@ -33650,7 +34251,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicy", "SecurityPolicyResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(981); + getDescriptor().getMessageTypes().get(992); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor, @@ -33658,7 +34259,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "ServiceAttachment", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(982); + getDescriptor().getMessageTypes().get(993); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor, @@ -33666,7 +34267,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SnapshotSettingsResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(983); + getDescriptor().getMessageTypes().get(994); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor, @@ -33674,7 +34275,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(984); + getDescriptor().getMessageTypes().get(995); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor, @@ -33687,7 +34288,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworkResource", }); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(985); + getDescriptor().getMessageTypes().get(996); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor, @@ -33695,7 +34296,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetGrpcProxy", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(986); + getDescriptor().getMessageTypes().get(997); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor, @@ -33703,7 +34304,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(987); + getDescriptor().getMessageTypes().get(998); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor, @@ -33711,7 +34312,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(988); + getDescriptor().getMessageTypes().get(999); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor, @@ -33719,7 +34320,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PathMatcher_descriptor = - getDescriptor().getMessageTypes().get(989); + getDescriptor().getMessageTypes().get(1000); internal_static_google_cloud_compute_v1_PathMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathMatcher_descriptor, @@ -33735,7 +34336,7 @@ private static void _clinit_autosplit_dinit_2() { "RouteRules", }); internal_static_google_cloud_compute_v1_PathRule_descriptor = - getDescriptor().getMessageTypes().get(990); + getDescriptor().getMessageTypes().get(1001); internal_static_google_cloud_compute_v1_PathRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathRule_descriptor, @@ -33743,7 +34344,7 @@ private static void _clinit_autosplit_dinit_2() { "CustomErrorResponsePolicy", "Paths", "RouteAction", "Service", "UrlRedirect", }); internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(991); + getDescriptor().getMessageTypes().get(1002); internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor, @@ -33751,7 +34352,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Name", "PreservedState", "Status", }); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(992); + getDescriptor().getMessageTypes().get(1003); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor, @@ -33759,7 +34360,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(993); + getDescriptor().getMessageTypes().get(1004); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor, @@ -33771,7 +34372,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_Policy_descriptor = - getDescriptor().getMessageTypes().get(994); + getDescriptor().getMessageTypes().get(1005); internal_static_google_cloud_compute_v1_Policy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Policy_descriptor, @@ -33779,7 +34380,7 @@ private static void _clinit_autosplit_dinit_2() { "AuditConfigs", "Bindings", "Etag", "IamOwned", "Version", }); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor = - getDescriptor().getMessageTypes().get(995); + getDescriptor().getMessageTypes().get(1006); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor, @@ -33787,7 +34388,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpressionSets", }); internal_static_google_cloud_compute_v1_PreservedState_descriptor = - getDescriptor().getMessageTypes().get(996); + getDescriptor().getMessageTypes().get(1007); internal_static_google_cloud_compute_v1_PreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedState_descriptor, @@ -33827,7 +34428,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor = - getDescriptor().getMessageTypes().get(997); + getDescriptor().getMessageTypes().get(1008); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor, @@ -33835,7 +34436,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "Mode", "Source", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(998); + getDescriptor().getMessageTypes().get(1009); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor, @@ -33843,7 +34444,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "IpAddress", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor = - getDescriptor().getMessageTypes().get(999); + getDescriptor().getMessageTypes().get(1010); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor, @@ -33851,7 +34452,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Literal", }); internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1000); + getDescriptor().getMessageTypes().get(1011); internal_static_google_cloud_compute_v1_PreviewRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor, @@ -33859,7 +34460,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_Project_descriptor = - getDescriptor().getMessageTypes().get(1001); + getDescriptor().getMessageTypes().get(1012); internal_static_google_cloud_compute_v1_Project_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Project_descriptor, @@ -33881,7 +34482,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnProjectStatus", }); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1002); + getDescriptor().getMessageTypes().get(1013); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor, @@ -33889,7 +34490,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1003); + getDescriptor().getMessageTypes().get(1014); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor, @@ -33897,7 +34498,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor = - getDescriptor().getMessageTypes().get(1004); + getDescriptor().getMessageTypes().get(1015); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor, @@ -33905,7 +34506,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "NextPageToken", "Resources", }); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor = - getDescriptor().getMessageTypes().get(1005); + getDescriptor().getMessageTypes().get(1016); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor, @@ -33913,7 +34514,7 @@ private static void _clinit_autosplit_dinit_2() { "Organization", }); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1006); + getDescriptor().getMessageTypes().get(1017); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor, @@ -33921,7 +34522,7 @@ private static void _clinit_autosplit_dinit_2() { "CloudArmorTier", }); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1007); + getDescriptor().getMessageTypes().get(1018); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor, @@ -33929,7 +34530,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkTier", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1008); + getDescriptor().getMessageTypes().get(1019); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor, @@ -33950,7 +34551,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1009); + getDescriptor().getMessageTypes().get(1020); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor, @@ -33958,7 +34559,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1010); + getDescriptor().getMessageTypes().get(1021); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor, @@ -33966,7 +34567,7 @@ private static void _clinit_autosplit_dinit_2() { "IpRange", "Name", "Project", "Region", "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1011); + getDescriptor().getMessageTypes().get(1022); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor, @@ -33989,7 +34590,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1012); + getDescriptor().getMessageTypes().get(1023); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor, @@ -34007,7 +34608,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1013); + getDescriptor().getMessageTypes().get(1024); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor, @@ -34015,7 +34616,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor = - getDescriptor().getMessageTypes().get(1014); + getDescriptor().getMessageTypes().get(1025); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor, @@ -34031,7 +34632,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1015); + getDescriptor().getMessageTypes().get(1026); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor, @@ -34039,7 +34640,7 @@ private static void _clinit_autosplit_dinit_2() { "PublicDelegatedPrefixes", "Warning", }); internal_static_google_cloud_compute_v1_Quota_descriptor = - getDescriptor().getMessageTypes().get(1016); + getDescriptor().getMessageTypes().get(1027); internal_static_google_cloud_compute_v1_Quota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Quota_descriptor, @@ -34047,7 +34648,7 @@ private static void _clinit_autosplit_dinit_2() { "Limit", "Metric", "Owner", "Usage", }); internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor = - getDescriptor().getMessageTypes().get(1017); + getDescriptor().getMessageTypes().get(1028); internal_static_google_cloud_compute_v1_QuotaExceededInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor, @@ -34065,7 +34666,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor = - getDescriptor().getMessageTypes().get(1018); + getDescriptor().getMessageTypes().get(1029); internal_static_google_cloud_compute_v1_QuotaStatusWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor, @@ -34073,7 +34674,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_RawDisk_descriptor = - getDescriptor().getMessageTypes().get(1019); + getDescriptor().getMessageTypes().get(1030); internal_static_google_cloud_compute_v1_RawDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RawDisk_descriptor, @@ -34081,7 +34682,7 @@ private static void _clinit_autosplit_dinit_2() { "ContainerType", "Sha1Checksum", "Source", }); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1020); + getDescriptor().getMessageTypes().get(1031); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor, @@ -34093,7 +34694,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1021); + getDescriptor().getMessageTypes().get(1032); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -34105,7 +34706,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Reference_descriptor = - getDescriptor().getMessageTypes().get(1022); + getDescriptor().getMessageTypes().get(1033); internal_static_google_cloud_compute_v1_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reference_descriptor, @@ -34113,7 +34714,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "ReferenceType", "Referrer", "Target", }); internal_static_google_cloud_compute_v1_Region_descriptor = - getDescriptor().getMessageTypes().get(1023); + getDescriptor().getMessageTypes().get(1034); internal_static_google_cloud_compute_v1_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Region_descriptor, @@ -34132,7 +34733,7 @@ private static void _clinit_autosplit_dinit_2() { "Zones", }); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(1024); + getDescriptor().getMessageTypes().get(1035); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor, @@ -34140,7 +34741,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor = - getDescriptor().getMessageTypes().get(1025); + getDescriptor().getMessageTypes().get(1036); internal_static_google_cloud_compute_v1_RegionAutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor, @@ -34148,7 +34749,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor = - getDescriptor().getMessageTypes().get(1026); + getDescriptor().getMessageTypes().get(1037); internal_static_google_cloud_compute_v1_RegionDiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor, @@ -34156,7 +34757,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1027); + getDescriptor().getMessageTypes().get(1038); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor, @@ -34164,7 +34765,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1028); + getDescriptor().getMessageTypes().get(1039); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor, @@ -34172,7 +34773,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1029); + getDescriptor().getMessageTypes().get(1040); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor, @@ -34180,7 +34781,7 @@ private static void _clinit_autosplit_dinit_2() { "SizeGb", }); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(1030); + getDescriptor().getMessageTypes().get(1041); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor, @@ -34188,7 +34789,7 @@ private static void _clinit_autosplit_dinit_2() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(1031); + getDescriptor().getMessageTypes().get(1042); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor, @@ -34196,7 +34797,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1032); + getDescriptor().getMessageTypes().get(1043); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor, @@ -34204,7 +34805,7 @@ private static void _clinit_autosplit_dinit_2() { "Names", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(1033); + getDescriptor().getMessageTypes().get(1044); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor, @@ -34212,7 +34813,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1034); + getDescriptor().getMessageTypes().get(1045); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor, @@ -34220,7 +34821,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1035); + getDescriptor().getMessageTypes().get(1046); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor, @@ -34228,7 +34829,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1036); + getDescriptor().getMessageTypes().get(1047); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -34236,7 +34837,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1037); + getDescriptor().getMessageTypes().get(1048); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -34244,7 +34845,7 @@ private static void _clinit_autosplit_dinit_2() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1038); + getDescriptor().getMessageTypes().get(1049); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor, @@ -34252,7 +34853,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1039); + getDescriptor().getMessageTypes().get(1050); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -34260,7 +34861,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1040); + getDescriptor().getMessageTypes().get(1051); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor, @@ -34268,7 +34869,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(1041); + getDescriptor().getMessageTypes().get(1052); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor, @@ -34276,7 +34877,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(1042); + getDescriptor().getMessageTypes().get(1053); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor, @@ -34284,15 +34885,23 @@ private static void _clinit_autosplit_dinit_2() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor = - getDescriptor().getMessageTypes().get(1043); + getDescriptor().getMessageTypes().get(1054); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor, new java.lang.String[] { "Instances", }); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1055); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor, + new java.lang.String[] { + "Instances", + }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(1044); + getDescriptor().getMessageTypes().get(1056); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -34300,15 +34909,39 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1045); + getDescriptor().getMessageTypes().get(1057); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplate", }); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1058); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor, + new java.lang.String[] { + "Instances", + }); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1059); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor, + new java.lang.String[] { + "ForceStop", "Instances", + }); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1060); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor, + new java.lang.String[] { + "ForceSuspend", "Instances", + }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(1046); + getDescriptor().getMessageTypes().get(1061); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor, @@ -34316,7 +34949,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1047); + getDescriptor().getMessageTypes().get(1062); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor, @@ -34324,7 +34957,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceState", "PortName", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(1048); + getDescriptor().getMessageTypes().get(1063); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor, @@ -34332,7 +34965,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_RegionList_descriptor = - getDescriptor().getMessageTypes().get(1049); + getDescriptor().getMessageTypes().get(1064); internal_static_google_cloud_compute_v1_RegionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionList_descriptor, @@ -34340,7 +34973,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(1050); + getDescriptor().getMessageTypes().get(1065); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -34348,7 +34981,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(1051); + getDescriptor().getMessageTypes().get(1066); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -34356,7 +34989,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(1052); + getDescriptor().getMessageTypes().get(1067); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor, @@ -34364,7 +34997,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(1053); + getDescriptor().getMessageTypes().get(1068); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -34372,7 +35005,7 @@ private static void _clinit_autosplit_dinit_2() { "DisplayName", "Name", "Rules", "Type", }); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1054); + getDescriptor().getMessageTypes().get(1069); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor, @@ -34390,7 +35023,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1055); + getDescriptor().getMessageTypes().get(1070); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor, @@ -34398,7 +35031,7 @@ private static void _clinit_autosplit_dinit_2() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1056); + getDescriptor().getMessageTypes().get(1071); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -34406,7 +35039,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", }); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1057); + getDescriptor().getMessageTypes().get(1072); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor, @@ -34414,7 +35047,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1058); + getDescriptor().getMessageTypes().get(1073); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor, @@ -34422,7 +35055,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1059); + getDescriptor().getMessageTypes().get(1074); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor, @@ -34430,7 +35063,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1060); + getDescriptor().getMessageTypes().get(1075); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -34438,7 +35071,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1061); + getDescriptor().getMessageTypes().get(1076); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor, @@ -34450,7 +35083,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveHealthCheckRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1062); + getDescriptor().getMessageTypes().get(1077); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor, @@ -34462,7 +35095,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveInstanceRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1063); + getDescriptor().getMessageTypes().get(1078); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor, @@ -34474,7 +35107,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1064); + getDescriptor().getMessageTypes().get(1079); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor, @@ -34482,7 +35115,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworksRemovePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1065); + getDescriptor().getMessageTypes().get(1080); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor, @@ -34490,7 +35123,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksRemoveResourcePoliciesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1066); + getDescriptor().getMessageTypes().get(1081); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor, @@ -34502,7 +35135,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1067); + getDescriptor().getMessageTypes().get(1082); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor, @@ -34514,7 +35147,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1068); + getDescriptor().getMessageTypes().get(1083); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor, @@ -34522,7 +35155,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1069); + getDescriptor().getMessageTypes().get(1084); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor, @@ -34530,7 +35163,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1070); + getDescriptor().getMessageTypes().get(1085); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -34538,7 +35171,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1071); + getDescriptor().getMessageTypes().get(1086); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor, @@ -34546,7 +35179,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1072); + getDescriptor().getMessageTypes().get(1087); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor, @@ -34554,7 +35187,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor = - getDescriptor().getMessageTypes().get(1073); + getDescriptor().getMessageTypes().get(1088); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor, @@ -34562,7 +35195,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", }); internal_static_google_cloud_compute_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(1074); + getDescriptor().getMessageTypes().get(1089); internal_static_google_cloud_compute_v1_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reservation_descriptor, @@ -34593,7 +35226,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(1075); + getDescriptor().getMessageTypes().get(1090); internal_static_google_cloud_compute_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor, @@ -34601,7 +35234,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumeReservationType", "Key", "Values", }); internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1076); + getDescriptor().getMessageTypes().get(1091); internal_static_google_cloud_compute_v1_ReservationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor, @@ -34619,7 +35252,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationList_descriptor = - getDescriptor().getMessageTypes().get(1077); + getDescriptor().getMessageTypes().get(1092); internal_static_google_cloud_compute_v1_ReservationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationList_descriptor, @@ -34627,7 +35260,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1078); + getDescriptor().getMessageTypes().get(1093); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor, @@ -34635,7 +35268,7 @@ private static void _clinit_autosplit_dinit_2() { "SpecificSkuCount", }); internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1079); + getDescriptor().getMessageTypes().get(1094); internal_static_google_cloud_compute_v1_ReservationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor, @@ -34643,7 +35276,7 @@ private static void _clinit_autosplit_dinit_2() { "Reservations", "Warning", }); internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1080); + getDescriptor().getMessageTypes().get(1095); internal_static_google_cloud_compute_v1_ResetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor, @@ -34651,7 +35284,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1081); + getDescriptor().getMessageTypes().get(1096); internal_static_google_cloud_compute_v1_ResizeDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor, @@ -34659,7 +35292,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksResizeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1082); + getDescriptor().getMessageTypes().get(1097); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor, @@ -34667,7 +35300,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "RequestId", "Size", "Zone", }); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1083); + getDescriptor().getMessageTypes().get(1098); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor, @@ -34675,7 +35308,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "Region", "RegionDisksResizeRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1084); + getDescriptor().getMessageTypes().get(1099); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor, @@ -34683,7 +35316,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "Region", "RequestId", "Size", }); internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1085); + getDescriptor().getMessageTypes().get(1100); internal_static_google_cloud_compute_v1_ResizeReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor, @@ -34691,7 +35324,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Reservation", "ReservationsResizeRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(1086); + getDescriptor().getMessageTypes().get(1101); internal_static_google_cloud_compute_v1_ResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor, @@ -34699,7 +35332,7 @@ private static void _clinit_autosplit_dinit_2() { "AcceleratorType", "Amount", "Type", }); internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor = - getDescriptor().getMessageTypes().get(1087); + getDescriptor().getMessageTypes().get(1102); internal_static_google_cloud_compute_v1_ResourceGroupReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor, @@ -34707,7 +35340,7 @@ private static void _clinit_autosplit_dinit_2() { "Group", }); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1088); + getDescriptor().getMessageTypes().get(1103); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor, @@ -34715,7 +35348,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor = - getDescriptor().getMessageTypes().get(1089); + getDescriptor().getMessageTypes().get(1104); internal_static_google_cloud_compute_v1_ResourcePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor, @@ -34735,7 +35368,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1090); + getDescriptor().getMessageTypes().get(1105); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor, @@ -34753,7 +35386,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor = - getDescriptor().getMessageTypes().get(1091); + getDescriptor().getMessageTypes().get(1106); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor, @@ -34761,13 +35394,13 @@ private static void _clinit_autosplit_dinit_2() { "DaysInCycle", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor = - getDescriptor().getMessageTypes().get(1092); + getDescriptor().getMessageTypes().get(1107); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor = - getDescriptor().getMessageTypes().get(1093); + getDescriptor().getMessageTypes().get(1108); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor, @@ -34775,7 +35408,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomainCount", "Collocation", "VmCount", }); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor = - getDescriptor().getMessageTypes().get(1094); + getDescriptor().getMessageTypes().get(1109); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor, @@ -34783,7 +35416,7 @@ private static void _clinit_autosplit_dinit_2() { "Duration", "HoursInCycle", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1095); + getDescriptor().getMessageTypes().get(1110); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor, @@ -34791,7 +35424,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpirationTime", "StartTime", "TimeZone", "VmStartSchedule", "VmStopSchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1096); + getDescriptor().getMessageTypes().get(1111); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor, @@ -34799,7 +35432,7 @@ private static void _clinit_autosplit_dinit_2() { "Schedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor = - getDescriptor().getMessageTypes().get(1097); + getDescriptor().getMessageTypes().get(1112); internal_static_google_cloud_compute_v1_ResourcePolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor, @@ -34807,7 +35440,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1098); + getDescriptor().getMessageTypes().get(1113); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor, @@ -34815,7 +35448,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSchedulePolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor = - getDescriptor().getMessageTypes().get(1099); + getDescriptor().getMessageTypes().get(1114); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor, @@ -34823,7 +35456,7 @@ private static void _clinit_autosplit_dinit_2() { "LastRunStartTime", "NextRunStartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1100); + getDescriptor().getMessageTypes().get(1115); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor, @@ -34831,7 +35464,7 @@ private static void _clinit_autosplit_dinit_2() { "RetentionPolicy", "Schedule", "SnapshotProperties", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor = - getDescriptor().getMessageTypes().get(1101); + getDescriptor().getMessageTypes().get(1116); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor, @@ -34839,7 +35472,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxRetentionDays", "OnSourceDiskDelete", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1102); + getDescriptor().getMessageTypes().get(1117); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor, @@ -34847,7 +35480,7 @@ private static void _clinit_autosplit_dinit_2() { "DailySchedule", "HourlySchedule", "WeeklySchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor = - getDescriptor().getMessageTypes().get(1103); + getDescriptor().getMessageTypes().get(1118); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor, @@ -34865,7 +35498,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor = - getDescriptor().getMessageTypes().get(1104); + getDescriptor().getMessageTypes().get(1119); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor, @@ -34873,7 +35506,7 @@ private static void _clinit_autosplit_dinit_2() { "DayOfWeeks", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor = - getDescriptor().getMessageTypes().get(1105); + getDescriptor().getMessageTypes().get(1120); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor, @@ -34881,7 +35514,7 @@ private static void _clinit_autosplit_dinit_2() { "Day", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1106); + getDescriptor().getMessageTypes().get(1121); internal_static_google_cloud_compute_v1_ResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatus_descriptor, @@ -34889,7 +35522,7 @@ private static void _clinit_autosplit_dinit_2() { "PhysicalHost", "Scheduling", "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor = - getDescriptor().getMessageTypes().get(1107); + getDescriptor().getMessageTypes().get(1122); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor, @@ -34897,15 +35530,39 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomain", }); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1108); + getDescriptor().getMessageTypes().get(1123); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor, new java.lang.String[] { "Instance", "Project", "RequestId", "Zone", }); + internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1124); + internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "InstanceGroupManagersResumeInstancesRequestResource", + "Project", + "RequestId", + "Zone", + }); + internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1125); + internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "Project", + "Region", + "RegionInstanceGroupManagersResumeInstancesRequestResource", + "RequestId", + }); internal_static_google_cloud_compute_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(1109); + getDescriptor().getMessageTypes().get(1126); internal_static_google_cloud_compute_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Route_descriptor, @@ -34922,8 +35579,11 @@ private static void _clinit_autosplit_dinit_2() { "NextHopHub", "NextHopIlb", "NextHopInstance", + "NextHopInterRegionCost", "NextHopIp", + "NextHopMed", "NextHopNetwork", + "NextHopOrigin", "NextHopPeering", "NextHopVpnTunnel", "Priority", @@ -34934,7 +35594,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_RouteAsPath_descriptor = - getDescriptor().getMessageTypes().get(1110); + getDescriptor().getMessageTypes().get(1127); internal_static_google_cloud_compute_v1_RouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteAsPath_descriptor, @@ -34942,7 +35602,7 @@ private static void _clinit_autosplit_dinit_2() { "AsLists", "PathSegmentType", }); internal_static_google_cloud_compute_v1_RouteList_descriptor = - getDescriptor().getMessageTypes().get(1111); + getDescriptor().getMessageTypes().get(1128); internal_static_google_cloud_compute_v1_RouteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteList_descriptor, @@ -34950,7 +35610,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_Router_descriptor = - getDescriptor().getMessageTypes().get(1112); + getDescriptor().getMessageTypes().get(1129); internal_static_google_cloud_compute_v1_Router_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Router_descriptor, @@ -34971,7 +35631,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1113); + getDescriptor().getMessageTypes().get(1130); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor, @@ -34979,7 +35639,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Range", }); internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1114); + getDescriptor().getMessageTypes().get(1131); internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor, @@ -34997,7 +35657,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterBgp_descriptor = - getDescriptor().getMessageTypes().get(1115); + getDescriptor().getMessageTypes().get(1132); internal_static_google_cloud_compute_v1_RouterBgp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgp_descriptor, @@ -35010,7 +35670,7 @@ private static void _clinit_autosplit_dinit_2() { "KeepaliveInterval", }); internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor = - getDescriptor().getMessageTypes().get(1116); + getDescriptor().getMessageTypes().get(1133); internal_static_google_cloud_compute_v1_RouterBgpPeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor, @@ -35041,7 +35701,7 @@ private static void _clinit_autosplit_dinit_2() { "RouterApplianceInstance", }); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor = - getDescriptor().getMessageTypes().get(1117); + getDescriptor().getMessageTypes().get(1134); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor, @@ -35052,7 +35712,7 @@ private static void _clinit_autosplit_dinit_2() { "SessionInitializationMode", }); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1118); + getDescriptor().getMessageTypes().get(1135); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor, @@ -35060,7 +35720,7 @@ private static void _clinit_autosplit_dinit_2() { "Range", }); internal_static_google_cloud_compute_v1_RouterInterface_descriptor = - getDescriptor().getMessageTypes().get(1119); + getDescriptor().getMessageTypes().get(1136); internal_static_google_cloud_compute_v1_RouterInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterInterface_descriptor, @@ -35076,7 +35736,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetwork", }); internal_static_google_cloud_compute_v1_RouterList_descriptor = - getDescriptor().getMessageTypes().get(1120); + getDescriptor().getMessageTypes().get(1137); internal_static_google_cloud_compute_v1_RouterList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterList_descriptor, @@ -35084,7 +35744,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor = - getDescriptor().getMessageTypes().get(1121); + getDescriptor().getMessageTypes().get(1138); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor, @@ -35092,7 +35752,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Name", }); internal_static_google_cloud_compute_v1_RouterNat_descriptor = - getDescriptor().getMessageTypes().get(1122); + getDescriptor().getMessageTypes().get(1139); internal_static_google_cloud_compute_v1_RouterNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNat_descriptor, @@ -35119,7 +35779,7 @@ private static void _clinit_autosplit_dinit_2() { "UdpIdleTimeoutSec", }); internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1123); + getDescriptor().getMessageTypes().get(1140); internal_static_google_cloud_compute_v1_RouterNatLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor, @@ -35127,7 +35787,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "Filter", }); internal_static_google_cloud_compute_v1_RouterNatRule_descriptor = - getDescriptor().getMessageTypes().get(1124); + getDescriptor().getMessageTypes().get(1141); internal_static_google_cloud_compute_v1_RouterNatRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRule_descriptor, @@ -35135,7 +35795,7 @@ private static void _clinit_autosplit_dinit_2() { "Action", "Description", "Match", "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor = - getDescriptor().getMessageTypes().get(1125); + getDescriptor().getMessageTypes().get(1142); internal_static_google_cloud_compute_v1_RouterNatRuleAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor, @@ -35146,7 +35806,7 @@ private static void _clinit_autosplit_dinit_2() { "SourceNatDrainRanges", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor = - getDescriptor().getMessageTypes().get(1126); + getDescriptor().getMessageTypes().get(1143); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor, @@ -35154,7 +35814,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "SecondaryIpRangeNames", "SourceIpRangesToNat", }); internal_static_google_cloud_compute_v1_RouterStatus_descriptor = - getDescriptor().getMessageTypes().get(1127); + getDescriptor().getMessageTypes().get(1144); internal_static_google_cloud_compute_v1_RouterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatus_descriptor, @@ -35162,7 +35822,7 @@ private static void _clinit_autosplit_dinit_2() { "BestRoutes", "BestRoutesForRouter", "BgpPeerStatus", "NatStatus", "Network", }); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor = - getDescriptor().getMessageTypes().get(1128); + getDescriptor().getMessageTypes().get(1145); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor, @@ -35189,7 +35849,7 @@ private static void _clinit_autosplit_dinit_2() { "UptimeSeconds", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor = - getDescriptor().getMessageTypes().get(1129); + getDescriptor().getMessageTypes().get(1146); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor, @@ -35205,7 +35865,7 @@ private static void _clinit_autosplit_dinit_2() { "UserAllocatedNatIps", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor = - getDescriptor().getMessageTypes().get(1130); + getDescriptor().getMessageTypes().get(1147); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor, @@ -35217,7 +35877,7 @@ private static void _clinit_autosplit_dinit_2() { "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1131); + getDescriptor().getMessageTypes().get(1148); internal_static_google_cloud_compute_v1_RouterStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor, @@ -35225,7 +35885,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "Result", }); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor = - getDescriptor().getMessageTypes().get(1132); + getDescriptor().getMessageTypes().get(1149); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor, @@ -35233,7 +35893,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor = - getDescriptor().getMessageTypes().get(1133); + getDescriptor().getMessageTypes().get(1150); internal_static_google_cloud_compute_v1_RoutersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor, @@ -35241,7 +35901,7 @@ private static void _clinit_autosplit_dinit_2() { "Routers", "Warning", }); internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1134); + getDescriptor().getMessageTypes().get(1151); internal_static_google_cloud_compute_v1_SSLHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor, @@ -35249,7 +35909,7 @@ private static void _clinit_autosplit_dinit_2() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor = - getDescriptor().getMessageTypes().get(1135); + getDescriptor().getMessageTypes().get(1152); internal_static_google_cloud_compute_v1_SavedAttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor, @@ -35272,7 +35932,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SavedDisk_descriptor = - getDescriptor().getMessageTypes().get(1136); + getDescriptor().getMessageTypes().get(1153); internal_static_google_cloud_compute_v1_SavedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedDisk_descriptor, @@ -35280,7 +35940,7 @@ private static void _clinit_autosplit_dinit_2() { "Architecture", "Kind", "SourceDisk", "StorageBytes", "StorageBytesStatus", }); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor = - getDescriptor().getMessageTypes().get(1137); + getDescriptor().getMessageTypes().get(1154); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor, @@ -35288,7 +35948,7 @@ private static void _clinit_autosplit_dinit_2() { "LastStartTime", "NextStartTime", "State", }); internal_static_google_cloud_compute_v1_Scheduling_descriptor = - getDescriptor().getMessageTypes().get(1138); + getDescriptor().getMessageTypes().get(1155); internal_static_google_cloud_compute_v1_Scheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Scheduling_descriptor, @@ -35308,7 +35968,7 @@ private static void _clinit_autosplit_dinit_2() { "TerminationTime", }); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor = - getDescriptor().getMessageTypes().get(1139); + getDescriptor().getMessageTypes().get(1156); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor, @@ -35316,7 +35976,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Operator", "Values", }); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor = - getDescriptor().getMessageTypes().get(1140); + getDescriptor().getMessageTypes().get(1157); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor, @@ -35324,7 +35984,7 @@ private static void _clinit_autosplit_dinit_2() { "DiscardLocalSsd", }); internal_static_google_cloud_compute_v1_ScratchDisks_descriptor = - getDescriptor().getMessageTypes().get(1141); + getDescriptor().getMessageTypes().get(1158); internal_static_google_cloud_compute_v1_ScratchDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScratchDisks_descriptor, @@ -35332,7 +35992,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskGb", }); internal_static_google_cloud_compute_v1_Screenshot_descriptor = - getDescriptor().getMessageTypes().get(1142); + getDescriptor().getMessageTypes().get(1159); internal_static_google_cloud_compute_v1_Screenshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Screenshot_descriptor, @@ -35340,7 +36000,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", }); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1143); + getDescriptor().getMessageTypes().get(1160); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor, @@ -35358,7 +36018,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1144); + getDescriptor().getMessageTypes().get(1161); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor, @@ -35366,7 +36026,7 @@ private static void _clinit_autosplit_dinit_2() { "PreconfiguredExpressionSets", }); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1145); + getDescriptor().getMessageTypes().get(1162); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor, @@ -35374,7 +36034,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1146); + getDescriptor().getMessageTypes().get(1163); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor, @@ -35382,7 +36042,7 @@ private static void _clinit_autosplit_dinit_2() { "WafRules", }); internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1147); + getDescriptor().getMessageTypes().get(1164); internal_static_google_cloud_compute_v1_SecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor, @@ -35414,7 +36074,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1148); + getDescriptor().getMessageTypes().get(1165); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor, @@ -35422,7 +36082,7 @@ private static void _clinit_autosplit_dinit_2() { "Layer7DdosDefenseConfig", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor = - getDescriptor().getMessageTypes().get(1149); + getDescriptor().getMessageTypes().get(1166); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor, @@ -35430,7 +36090,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "RuleVisibility", "ThresholdConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor = - getDescriptor().getMessageTypes().get(1150); + getDescriptor().getMessageTypes().get(1167); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor, @@ -35446,7 +36106,7 @@ private static void _clinit_autosplit_dinit_2() { "TrafficGranularityConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor = - getDescriptor().getMessageTypes().get(1151); + getDescriptor().getMessageTypes().get(1168); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor, @@ -35454,7 +36114,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableEachUniqueValue", "Type", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1152); + getDescriptor().getMessageTypes().get(1169); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor, @@ -35462,7 +36122,7 @@ private static void _clinit_autosplit_dinit_2() { "JsonCustomConfig", "JsonParsing", "LogLevel", "UserIpRequestHeaders", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor = - getDescriptor().getMessageTypes().get(1153); + getDescriptor().getMessageTypes().get(1170); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor, @@ -35470,7 +36130,7 @@ private static void _clinit_autosplit_dinit_2() { "ContentTypes", }); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1154); + getDescriptor().getMessageTypes().get(1171); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor, @@ -35478,7 +36138,7 @@ private static void _clinit_autosplit_dinit_2() { "DdosProtection", }); internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor = - getDescriptor().getMessageTypes().get(1155); + getDescriptor().getMessageTypes().get(1172); internal_static_google_cloud_compute_v1_SecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor, @@ -35486,7 +36146,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1156); + getDescriptor().getMessageTypes().get(1173); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor, @@ -35494,7 +36154,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectSiteKey", }); internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1157); + getDescriptor().getMessageTypes().get(1174); internal_static_google_cloud_compute_v1_SecurityPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor, @@ -35502,7 +36162,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1158); + getDescriptor().getMessageTypes().get(1175); internal_static_google_cloud_compute_v1_SecurityPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor, @@ -35520,7 +36180,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(1159); + getDescriptor().getMessageTypes().get(1176); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor, @@ -35528,7 +36188,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestHeadersToAdds", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(1160); + getDescriptor().getMessageTypes().get(1177); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor, @@ -35536,7 +36196,7 @@ private static void _clinit_autosplit_dinit_2() { "HeaderName", "HeaderValue", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(1161); + getDescriptor().getMessageTypes().get(1178); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor, @@ -35544,7 +36204,7 @@ private static void _clinit_autosplit_dinit_2() { "Config", "Expr", "ExprOptions", "VersionedExpr", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor = - getDescriptor().getMessageTypes().get(1162); + getDescriptor().getMessageTypes().get(1179); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor, @@ -35552,7 +36212,7 @@ private static void _clinit_autosplit_dinit_2() { "SrcIpRanges", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor = - getDescriptor().getMessageTypes().get(1163); + getDescriptor().getMessageTypes().get(1180); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor, @@ -35560,7 +36220,7 @@ private static void _clinit_autosplit_dinit_2() { "RecaptchaOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor = - getDescriptor().getMessageTypes().get(1164); + getDescriptor().getMessageTypes().get(1181); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor, @@ -35568,7 +36228,7 @@ private static void _clinit_autosplit_dinit_2() { "ActionTokenSiteKeys", "SessionTokenSiteKeys", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor = - getDescriptor().getMessageTypes().get(1165); + getDescriptor().getMessageTypes().get(1182); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor, @@ -35583,7 +36243,7 @@ private static void _clinit_autosplit_dinit_2() { "UserDefinedFields", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor = - getDescriptor().getMessageTypes().get(1166); + getDescriptor().getMessageTypes().get(1183); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor, @@ -35591,7 +36251,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Values", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1167); + getDescriptor().getMessageTypes().get(1184); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor, @@ -35599,7 +36259,7 @@ private static void _clinit_autosplit_dinit_2() { "Exclusions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor = - getDescriptor().getMessageTypes().get(1168); + getDescriptor().getMessageTypes().get(1185); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor, @@ -35612,7 +36272,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetRuleSet", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor = - getDescriptor().getMessageTypes().get(1169); + getDescriptor().getMessageTypes().get(1186); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor, @@ -35620,7 +36280,7 @@ private static void _clinit_autosplit_dinit_2() { "Op", "Val", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor = - getDescriptor().getMessageTypes().get(1170); + getDescriptor().getMessageTypes().get(1187); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor, @@ -35636,7 +36296,7 @@ private static void _clinit_autosplit_dinit_2() { "RateLimitThreshold", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor = - getDescriptor().getMessageTypes().get(1171); + getDescriptor().getMessageTypes().get(1188); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor, @@ -35644,7 +36304,7 @@ private static void _clinit_autosplit_dinit_2() { "EnforceOnKeyName", "EnforceOnKeyType", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor = - getDescriptor().getMessageTypes().get(1172); + getDescriptor().getMessageTypes().get(1189); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor, @@ -35652,7 +36312,7 @@ private static void _clinit_autosplit_dinit_2() { "Count", "IntervalSec", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor = - getDescriptor().getMessageTypes().get(1173); + getDescriptor().getMessageTypes().get(1190); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor, @@ -35660,7 +36320,7 @@ private static void _clinit_autosplit_dinit_2() { "Target", "Type", }); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor = - getDescriptor().getMessageTypes().get(1174); + getDescriptor().getMessageTypes().get(1191); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor, @@ -35668,7 +36328,7 @@ private static void _clinit_autosplit_dinit_2() { "Base", "Mask", "Name", "Offset", "Size", }); internal_static_google_cloud_compute_v1_SecuritySettings_descriptor = - getDescriptor().getMessageTypes().get(1175); + getDescriptor().getMessageTypes().get(1192); internal_static_google_cloud_compute_v1_SecuritySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecuritySettings_descriptor, @@ -35676,7 +36336,7 @@ private static void _clinit_autosplit_dinit_2() { "AwsV4Authentication", "ClientTlsPolicy", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1176); + getDescriptor().getMessageTypes().get(1193); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor, @@ -35684,13 +36344,13 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1177); + getDescriptor().getMessageTypes().get(1194); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor = - getDescriptor().getMessageTypes().get(1178); + getDescriptor().getMessageTypes().get(1195); internal_static_google_cloud_compute_v1_SerialPortOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor, @@ -35698,7 +36358,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", "Next", "SelfLink", "Start", }); internal_static_google_cloud_compute_v1_ServerBinding_descriptor = - getDescriptor().getMessageTypes().get(1179); + getDescriptor().getMessageTypes().get(1196); internal_static_google_cloud_compute_v1_ServerBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServerBinding_descriptor, @@ -35706,7 +36366,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(1180); + getDescriptor().getMessageTypes().get(1197); internal_static_google_cloud_compute_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAccount_descriptor, @@ -35714,7 +36374,7 @@ private static void _clinit_autosplit_dinit_2() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor = - getDescriptor().getMessageTypes().get(1181); + getDescriptor().getMessageTypes().get(1198); internal_static_google_cloud_compute_v1_ServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor, @@ -35741,7 +36401,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetService", }); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1182); + getDescriptor().getMessageTypes().get(1199); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor, @@ -35759,7 +36419,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1183); + getDescriptor().getMessageTypes().get(1200); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor, @@ -35771,7 +36431,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor = - getDescriptor().getMessageTypes().get(1184); + getDescriptor().getMessageTypes().get(1201); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor, @@ -35779,7 +36439,7 @@ private static void _clinit_autosplit_dinit_2() { "ConnectionLimit", "NetworkUrl", "ProjectIdOrNum", }); internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(1185); + getDescriptor().getMessageTypes().get(1202); internal_static_google_cloud_compute_v1_ServiceAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor, @@ -35787,7 +36447,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1186); + getDescriptor().getMessageTypes().get(1203); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor, @@ -35795,7 +36455,7 @@ private static void _clinit_autosplit_dinit_2() { "ServiceAttachments", "Warning", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1187); + getDescriptor().getMessageTypes().get(1204); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor, @@ -35806,7 +36466,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1188); + getDescriptor().getMessageTypes().get(1205); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor, @@ -35817,7 +36477,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1189); + getDescriptor().getMessageTypes().get(1206); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor, @@ -35830,7 +36490,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1190); + getDescriptor().getMessageTypes().get(1207); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor, @@ -35841,7 +36501,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1191); + getDescriptor().getMessageTypes().get(1208); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor, @@ -35852,7 +36512,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1192); + getDescriptor().getMessageTypes().get(1209); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor, @@ -35860,7 +36520,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetCloudArmorTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1193); + getDescriptor().getMessageTypes().get(1210); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor, @@ -35878,7 +36538,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor = - getDescriptor().getMessageTypes().get(1194); + getDescriptor().getMessageTypes().get(1211); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor, @@ -35886,7 +36546,7 @@ private static void _clinit_autosplit_dinit_2() { "Error", "State", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1195); + getDescriptor().getMessageTypes().get(1212); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor, @@ -35894,7 +36554,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1196); + getDescriptor().getMessageTypes().get(1213); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor, @@ -35902,7 +36562,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetDefaultNetworkTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1197); + getDescriptor().getMessageTypes().get(1214); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor, @@ -35910,7 +36570,7 @@ private static void _clinit_autosplit_dinit_2() { "DeletionProtection", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1198); + getDescriptor().getMessageTypes().get(1215); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor, @@ -35918,7 +36578,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1199); + getDescriptor().getMessageTypes().get(1216); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor, @@ -35926,7 +36586,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1200); + getDescriptor().getMessageTypes().get(1217); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor, @@ -35934,7 +36594,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1201); + getDescriptor().getMessageTypes().get(1218); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor, @@ -35942,7 +36602,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1202); + getDescriptor().getMessageTypes().get(1219); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor, @@ -35950,7 +36610,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1203); + getDescriptor().getMessageTypes().get(1220); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor, @@ -35958,7 +36618,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1204); + getDescriptor().getMessageTypes().get(1221); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor, @@ -35966,7 +36626,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalOrganizationSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1205); + getDescriptor().getMessageTypes().get(1222); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor, @@ -35974,7 +36634,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1206); + getDescriptor().getMessageTypes().get(1223); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor, @@ -35982,7 +36642,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1207); + getDescriptor().getMessageTypes().get(1224); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor, @@ -35990,7 +36650,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1208); + getDescriptor().getMessageTypes().get(1225); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor, @@ -35998,7 +36658,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1209); + getDescriptor().getMessageTypes().get(1226); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor, @@ -36006,7 +36666,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1210); + getDescriptor().getMessageTypes().get(1227); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor, @@ -36014,7 +36674,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1211); + getDescriptor().getMessageTypes().get(1228); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor, @@ -36022,7 +36682,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1212); + getDescriptor().getMessageTypes().get(1229); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -36030,7 +36690,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1213); + getDescriptor().getMessageTypes().get(1230); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor, @@ -36038,7 +36698,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1214); + getDescriptor().getMessageTypes().get(1231); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor, @@ -36046,7 +36706,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1215); + getDescriptor().getMessageTypes().get(1232); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor, @@ -36054,7 +36714,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1216); + getDescriptor().getMessageTypes().get(1233); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor, @@ -36062,7 +36722,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1217); + getDescriptor().getMessageTypes().get(1234); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -36070,7 +36730,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1218); + getDescriptor().getMessageTypes().get(1235); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -36078,7 +36738,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1219); + getDescriptor().getMessageTypes().get(1236); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor, @@ -36086,7 +36746,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1220); + getDescriptor().getMessageTypes().get(1237); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor, @@ -36094,7 +36754,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1221); + getDescriptor().getMessageTypes().get(1238); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor, @@ -36102,7 +36762,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1222); + getDescriptor().getMessageTypes().get(1239); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor, @@ -36110,7 +36770,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1223); + getDescriptor().getMessageTypes().get(1240); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor, @@ -36118,7 +36778,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1224); + getDescriptor().getMessageTypes().get(1241); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor, @@ -36126,7 +36786,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1225); + getDescriptor().getMessageTypes().get(1242); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor, @@ -36138,7 +36798,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1226); + getDescriptor().getMessageTypes().get(1243); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor, @@ -36150,7 +36810,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1227); + getDescriptor().getMessageTypes().get(1244); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor, @@ -36158,7 +36818,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1228); + getDescriptor().getMessageTypes().get(1245); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor, @@ -36166,7 +36826,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1229); + getDescriptor().getMessageTypes().get(1246); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor, @@ -36174,7 +36834,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1230); + getDescriptor().getMessageTypes().get(1247); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor, @@ -36182,7 +36842,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1231); + getDescriptor().getMessageTypes().get(1248); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor, @@ -36190,7 +36850,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1232); + getDescriptor().getMessageTypes().get(1249); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor, @@ -36198,7 +36858,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1233); + getDescriptor().getMessageTypes().get(1250); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor, @@ -36206,7 +36866,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1234); + getDescriptor().getMessageTypes().get(1251); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor, @@ -36214,7 +36874,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetLabelsRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1235); + getDescriptor().getMessageTypes().get(1252); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor, @@ -36222,7 +36882,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1236); + getDescriptor().getMessageTypes().get(1253); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor, @@ -36230,7 +36890,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(1237); + getDescriptor().getMessageTypes().get(1254); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor, @@ -36238,7 +36898,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1238); + getDescriptor().getMessageTypes().get(1255); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor, @@ -36246,15 +36906,23 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1239); + getDescriptor().getMessageTypes().get(1256); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor, new java.lang.String[] { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); + internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1257); + internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", + }); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1240); + getDescriptor().getMessageTypes().get(1258); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor, @@ -36262,7 +36930,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1241); + getDescriptor().getMessageTypes().get(1259); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor, @@ -36270,7 +36938,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1242); + getDescriptor().getMessageTypes().get(1260); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor, @@ -36278,7 +36946,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1243); + getDescriptor().getMessageTypes().get(1261); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor, @@ -36286,7 +36954,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(1244); + getDescriptor().getMessageTypes().get(1262); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor, @@ -36294,7 +36962,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1245); + getDescriptor().getMessageTypes().get(1263); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor, @@ -36306,7 +36974,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1246); + getDescriptor().getMessageTypes().get(1264); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor, @@ -36314,7 +36982,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetMachineTypeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1247); + getDescriptor().getMessageTypes().get(1265); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor, @@ -36322,7 +36990,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "MetadataResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1248); + getDescriptor().getMessageTypes().get(1266); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor, @@ -36334,7 +37002,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1249); + getDescriptor().getMessageTypes().get(1267); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor, @@ -36342,7 +37010,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetNameRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1250); + getDescriptor().getMessageTypes().get(1268); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor, @@ -36354,7 +37022,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1251); + getDescriptor().getMessageTypes().get(1269); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor, @@ -36366,7 +37034,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1252); + getDescriptor().getMessageTypes().get(1270); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor, @@ -36378,7 +37046,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1253); + getDescriptor().getMessageTypes().get(1271); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor, @@ -36390,7 +37058,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworksSetPrivateIpGoogleAccessRequestResource", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1254); + getDescriptor().getMessageTypes().get(1272); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor, @@ -36401,7 +37069,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1255); + getDescriptor().getMessageTypes().get(1273); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor, @@ -36412,7 +37080,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1256); + getDescriptor().getMessageTypes().get(1274); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor, @@ -36423,7 +37091,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1257); + getDescriptor().getMessageTypes().get(1275); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor, @@ -36431,7 +37099,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "SchedulingResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1258); + getDescriptor().getMessageTypes().get(1276); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor, @@ -36439,7 +37107,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1259); + getDescriptor().getMessageTypes().get(1277); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor, @@ -36451,7 +37119,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1260); + getDescriptor().getMessageTypes().get(1278); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor, @@ -36459,7 +37127,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1261); + getDescriptor().getMessageTypes().get(1279); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor, @@ -36467,7 +37135,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicyReferenceResource", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1262); + getDescriptor().getMessageTypes().get(1280); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor, @@ -36475,7 +37143,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", "TargetPool", }); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1263); + getDescriptor().getMessageTypes().get(1281); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor, @@ -36487,7 +37155,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1264); + getDescriptor().getMessageTypes().get(1282); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor, @@ -36495,7 +37163,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "ShieldedInstanceIntegrityPolicyResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1265); + getDescriptor().getMessageTypes().get(1283); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor, @@ -36507,7 +37175,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1266); + getDescriptor().getMessageTypes().get(1284); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor, @@ -36518,7 +37186,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1267); + getDescriptor().getMessageTypes().get(1285); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor, @@ -36529,7 +37197,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1268); + getDescriptor().getMessageTypes().get(1286); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor, @@ -36537,7 +37205,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1269); + getDescriptor().getMessageTypes().get(1287); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor, @@ -36545,7 +37213,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1270); + getDescriptor().getMessageTypes().get(1288); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor, @@ -36553,7 +37221,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "TagsResource", "Zone", }); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1271); + getDescriptor().getMessageTypes().get(1289); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor, @@ -36561,7 +37229,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "Project", "Region", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1272); + getDescriptor().getMessageTypes().get(1290); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor, @@ -36569,7 +37237,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "Project", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1273); + getDescriptor().getMessageTypes().get(1291); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor, @@ -36581,7 +37249,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1274); + getDescriptor().getMessageTypes().get(1292); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor, @@ -36593,7 +37261,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1275); + getDescriptor().getMessageTypes().get(1293); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor, @@ -36601,7 +37269,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1276); + getDescriptor().getMessageTypes().get(1294); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor, @@ -36609,7 +37277,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1277); + getDescriptor().getMessageTypes().get(1295); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor, @@ -36617,7 +37285,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1278); + getDescriptor().getMessageTypes().get(1296); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor, @@ -36625,7 +37293,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1279); + getDescriptor().getMessageTypes().get(1297); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor, @@ -36633,7 +37301,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UsageExportLocationResource", }); internal_static_google_cloud_compute_v1_ShareSettings_descriptor = - getDescriptor().getMessageTypes().get(1280); + getDescriptor().getMessageTypes().get(1298); internal_static_google_cloud_compute_v1_ShareSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettings_descriptor, @@ -36649,7 +37317,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor = - getDescriptor().getMessageTypes().get(1281); + getDescriptor().getMessageTypes().get(1299); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor, @@ -36657,7 +37325,7 @@ private static void _clinit_autosplit_dinit_2() { "ProjectId", }); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1282); + getDescriptor().getMessageTypes().get(1300); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor, @@ -36665,7 +37333,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableIntegrityMonitoring", "EnableSecureBoot", "EnableVtpm", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor = - getDescriptor().getMessageTypes().get(1283); + getDescriptor().getMessageTypes().get(1301); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor, @@ -36673,7 +37341,7 @@ private static void _clinit_autosplit_dinit_2() { "EncryptionKey", "Kind", "SigningKey", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor = - getDescriptor().getMessageTypes().get(1284); + getDescriptor().getMessageTypes().get(1302); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor, @@ -36681,7 +37349,7 @@ private static void _clinit_autosplit_dinit_2() { "EkCert", "EkPub", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1285); + getDescriptor().getMessageTypes().get(1303); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor, @@ -36689,7 +37357,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateAutoLearnPolicy", }); internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor = - getDescriptor().getMessageTypes().get(1286); + getDescriptor().getMessageTypes().get(1304); internal_static_google_cloud_compute_v1_SignedUrlKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor, @@ -36697,7 +37365,7 @@ private static void _clinit_autosplit_dinit_2() { "KeyName", "KeyValue", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1287); + getDescriptor().getMessageTypes().get(1305); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor, @@ -36705,7 +37373,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "WithExtendedNotifications", "Zone", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1288); + getDescriptor().getMessageTypes().get(1306); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor, @@ -36717,7 +37385,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(1289); + getDescriptor().getMessageTypes().get(1307); internal_static_google_cloud_compute_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Snapshot_descriptor, @@ -36768,7 +37436,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotList_descriptor = - getDescriptor().getMessageTypes().get(1290); + getDescriptor().getMessageTypes().get(1308); internal_static_google_cloud_compute_v1_SnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotList_descriptor, @@ -36776,7 +37444,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor = - getDescriptor().getMessageTypes().get(1291); + getDescriptor().getMessageTypes().get(1309); internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor, @@ -36784,7 +37452,7 @@ private static void _clinit_autosplit_dinit_2() { "StorageLocation", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor = - getDescriptor().getMessageTypes().get(1292); + getDescriptor().getMessageTypes().get(1310); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor, @@ -36802,7 +37470,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor = - getDescriptor().getMessageTypes().get(1293); + getDescriptor().getMessageTypes().get(1311); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor, @@ -36810,7 +37478,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(1294); + getDescriptor().getMessageTypes().get(1312); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor, @@ -36818,7 +37486,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskEncryptionKey", "SourceDisk", }); internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor = - getDescriptor().getMessageTypes().get(1295); + getDescriptor().getMessageTypes().get(1313); internal_static_google_cloud_compute_v1_SourceInstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor, @@ -36826,7 +37494,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskConfigs", }); internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(1296); + getDescriptor().getMessageTypes().get(1314); internal_static_google_cloud_compute_v1_SourceInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor, @@ -36857,7 +37525,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1297); + getDescriptor().getMessageTypes().get(1315); internal_static_google_cloud_compute_v1_SslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificate_descriptor, @@ -36878,7 +37546,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1298); + getDescriptor().getMessageTypes().get(1316); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor, @@ -36896,7 +37564,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateList_descriptor = - getDescriptor().getMessageTypes().get(1299); + getDescriptor().getMessageTypes().get(1317); internal_static_google_cloud_compute_v1_SslCertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateList_descriptor, @@ -36904,7 +37572,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1300); + getDescriptor().getMessageTypes().get(1318); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor, @@ -36922,7 +37590,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1301); + getDescriptor().getMessageTypes().get(1319); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor, @@ -36930,7 +37598,7 @@ private static void _clinit_autosplit_dinit_2() { "Certificate", "PrivateKey", }); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1302); + getDescriptor().getMessageTypes().get(1320); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor, @@ -36938,7 +37606,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1303); + getDescriptor().getMessageTypes().get(1321); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor, @@ -36956,7 +37624,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor = - getDescriptor().getMessageTypes().get(1304); + getDescriptor().getMessageTypes().get(1322); internal_static_google_cloud_compute_v1_SslPoliciesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor, @@ -36964,7 +37632,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1305); + getDescriptor().getMessageTypes().get(1323); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor, @@ -36972,7 +37640,7 @@ private static void _clinit_autosplit_dinit_2() { "Features", }); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1306); + getDescriptor().getMessageTypes().get(1324); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor, @@ -36980,7 +37648,7 @@ private static void _clinit_autosplit_dinit_2() { "SslPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SslPolicy_descriptor = - getDescriptor().getMessageTypes().get(1307); + getDescriptor().getMessageTypes().get(1325); internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicy_descriptor, @@ -37000,7 +37668,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1308); + getDescriptor().getMessageTypes().get(1326); internal_static_google_cloud_compute_v1_SslPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor, @@ -37008,7 +37676,7 @@ private static void _clinit_autosplit_dinit_2() { "SslPolicy", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1309); + getDescriptor().getMessageTypes().get(1327); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor, @@ -37016,7 +37684,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksStartAsyncReplicationRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1310); + getDescriptor().getMessageTypes().get(1328); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor, @@ -37028,15 +37696,39 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1311); + getDescriptor().getMessageTypes().get(1329); internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor, new java.lang.String[] { "Instance", "Project", "RequestId", "Zone", }); + internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1330); + internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "InstanceGroupManagersStartInstancesRequestResource", + "Project", + "RequestId", + "Zone", + }); + internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1331); + internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "Project", + "Region", + "RegionInstanceGroupManagersStartInstancesRequestResource", + "RequestId", + }); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1312); + getDescriptor().getMessageTypes().get(1332); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor, @@ -37048,7 +37740,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor = - getDescriptor().getMessageTypes().get(1313); + getDescriptor().getMessageTypes().get(1333); internal_static_google_cloud_compute_v1_StatefulPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor, @@ -37056,7 +37748,7 @@ private static void _clinit_autosplit_dinit_2() { "PreservedState", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor = - getDescriptor().getMessageTypes().get(1314); + getDescriptor().getMessageTypes().get(1334); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor, @@ -37094,7 +37786,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor = - getDescriptor().getMessageTypes().get(1315); + getDescriptor().getMessageTypes().get(1335); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor, @@ -37102,7 +37794,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1316); + getDescriptor().getMessageTypes().get(1336); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor, @@ -37110,7 +37802,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", }); internal_static_google_cloud_compute_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(1317); + getDescriptor().getMessageTypes().get(1337); internal_static_google_cloud_compute_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Status_descriptor, @@ -37118,7 +37810,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Details", "Message", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1318); + getDescriptor().getMessageTypes().get(1338); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor, @@ -37126,7 +37818,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1319); + getDescriptor().getMessageTypes().get(1339); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor, @@ -37134,7 +37826,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1320); + getDescriptor().getMessageTypes().get(1340); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor, @@ -37142,7 +37834,7 @@ private static void _clinit_autosplit_dinit_2() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1321); + getDescriptor().getMessageTypes().get(1341); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor, @@ -37150,15 +37842,39 @@ private static void _clinit_autosplit_dinit_2() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1322); + getDescriptor().getMessageTypes().get(1342); internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor, new java.lang.String[] { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); + internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1343); + internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "InstanceGroupManagersStopInstancesRequestResource", + "Project", + "RequestId", + "Zone", + }); + internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1344); + internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "Project", + "Region", + "RegionInstanceGroupManagersStopInstancesRequestResource", + "RequestId", + }); internal_static_google_cloud_compute_v1_StoragePool_descriptor = - getDescriptor().getMessageTypes().get(1323); + getDescriptor().getMessageTypes().get(1345); internal_static_google_cloud_compute_v1_StoragePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePool_descriptor, @@ -37192,7 +37908,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1324); + getDescriptor().getMessageTypes().get(1346); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor, @@ -37210,7 +37926,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor = - getDescriptor().getMessageTypes().get(1325); + getDescriptor().getMessageTypes().get(1347); internal_static_google_cloud_compute_v1_StoragePoolDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor, @@ -37228,7 +37944,7 @@ private static void _clinit_autosplit_dinit_2() { "UsedBytes", }); internal_static_google_cloud_compute_v1_StoragePoolList_descriptor = - getDescriptor().getMessageTypes().get(1326); + getDescriptor().getMessageTypes().get(1348); internal_static_google_cloud_compute_v1_StoragePoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolList_descriptor, @@ -37236,7 +37952,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor = - getDescriptor().getMessageTypes().get(1327); + getDescriptor().getMessageTypes().get(1349); internal_static_google_cloud_compute_v1_StoragePoolListDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor, @@ -37244,7 +37960,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1328); + getDescriptor().getMessageTypes().get(1350); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor, @@ -37261,7 +37977,7 @@ private static void _clinit_autosplit_dinit_2() { "TotalProvisionedDiskThroughput", }); internal_static_google_cloud_compute_v1_StoragePoolType_descriptor = - getDescriptor().getMessageTypes().get(1329); + getDescriptor().getMessageTypes().get(1351); internal_static_google_cloud_compute_v1_StoragePoolType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolType_descriptor, @@ -37285,7 +38001,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1330); + getDescriptor().getMessageTypes().get(1352); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor, @@ -37303,7 +38019,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor = - getDescriptor().getMessageTypes().get(1331); + getDescriptor().getMessageTypes().get(1353); internal_static_google_cloud_compute_v1_StoragePoolTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor, @@ -37311,7 +38027,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1332); + getDescriptor().getMessageTypes().get(1354); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor, @@ -37319,7 +38035,7 @@ private static void _clinit_autosplit_dinit_2() { "StoragePoolTypes", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1333); + getDescriptor().getMessageTypes().get(1355); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor, @@ -37327,7 +38043,7 @@ private static void _clinit_autosplit_dinit_2() { "StoragePools", "Warning", }); internal_static_google_cloud_compute_v1_Subnetwork_descriptor = - getDescriptor().getMessageTypes().get(1334); + getDescriptor().getMessageTypes().get(1356); internal_static_google_cloud_compute_v1_Subnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subnetwork_descriptor, @@ -37359,7 +38075,7 @@ private static void _clinit_autosplit_dinit_2() { "State", }); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1335); + getDescriptor().getMessageTypes().get(1357); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor, @@ -37377,7 +38093,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkList_descriptor = - getDescriptor().getMessageTypes().get(1336); + getDescriptor().getMessageTypes().get(1358); internal_static_google_cloud_compute_v1_SubnetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkList_descriptor, @@ -37385,7 +38101,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1337); + getDescriptor().getMessageTypes().get(1359); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor, @@ -37398,7 +38114,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataFields", }); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1338); + getDescriptor().getMessageTypes().get(1360); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor, @@ -37406,7 +38122,7 @@ private static void _clinit_autosplit_dinit_2() { "IpCidrRange", "RangeName", "ReservedInternalRange", }); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor = - getDescriptor().getMessageTypes().get(1339); + getDescriptor().getMessageTypes().get(1361); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor, @@ -37414,7 +38130,7 @@ private static void _clinit_autosplit_dinit_2() { "IpCidrRange", }); internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor = - getDescriptor().getMessageTypes().get(1340); + getDescriptor().getMessageTypes().get(1362); internal_static_google_cloud_compute_v1_SubnetworksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor, @@ -37422,7 +38138,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor = - getDescriptor().getMessageTypes().get(1341); + getDescriptor().getMessageTypes().get(1363); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor, @@ -37430,23 +38146,51 @@ private static void _clinit_autosplit_dinit_2() { "PrivateIpGoogleAccess", }); internal_static_google_cloud_compute_v1_Subsetting_descriptor = - getDescriptor().getMessageTypes().get(1342); + getDescriptor().getMessageTypes().get(1364); internal_static_google_cloud_compute_v1_Subsetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subsetting_descriptor, new java.lang.String[] { "Policy", }); + _clinit_autosplit_dinit_3(); + } + + private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1343); + getDescriptor().getMessageTypes().get(1365); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor, new java.lang.String[] { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); + internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1366); + internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "InstanceGroupManagersSuspendInstancesRequestResource", + "Project", + "RequestId", + "Zone", + }); + internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor = + getDescriptor().getMessageTypes().get(1367); + internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "Project", + "Region", + "RegionInstanceGroupManagersSuspendInstancesRequestResource", + "RequestId", + }); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1344); + getDescriptor().getMessageTypes().get(1368); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor, @@ -37454,7 +38198,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1345); + getDescriptor().getMessageTypes().get(1369); internal_static_google_cloud_compute_v1_TCPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor, @@ -37462,7 +38206,7 @@ private static void _clinit_autosplit_dinit_2() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_Tags_descriptor = - getDescriptor().getMessageTypes().get(1346); + getDescriptor().getMessageTypes().get(1370); internal_static_google_cloud_compute_v1_Tags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Tags_descriptor, @@ -37470,7 +38214,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Items", }); internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor = - getDescriptor().getMessageTypes().get(1347); + getDescriptor().getMessageTypes().get(1371); internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor, @@ -37487,7 +38231,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateForProxyless", }); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor = - getDescriptor().getMessageTypes().get(1348); + getDescriptor().getMessageTypes().get(1372); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor, @@ -37495,7 +38239,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1349); + getDescriptor().getMessageTypes().get(1373); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor, @@ -37503,7 +38247,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor = - getDescriptor().getMessageTypes().get(1350); + getDescriptor().getMessageTypes().get(1374); internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor, @@ -37521,7 +38265,7 @@ private static void _clinit_autosplit_dinit_2() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1351); + getDescriptor().getMessageTypes().get(1375); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor, @@ -37539,7 +38283,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1352); + getDescriptor().getMessageTypes().get(1376); internal_static_google_cloud_compute_v1_TargetHttpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor, @@ -37547,7 +38291,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1353); + getDescriptor().getMessageTypes().get(1377); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor, @@ -37555,7 +38299,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1354); + getDescriptor().getMessageTypes().get(1378); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor, @@ -37563,7 +38307,7 @@ private static void _clinit_autosplit_dinit_2() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor = - getDescriptor().getMessageTypes().get(1355); + getDescriptor().getMessageTypes().get(1379); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor, @@ -37571,7 +38315,7 @@ private static void _clinit_autosplit_dinit_2() { "QuicOverride", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1356); + getDescriptor().getMessageTypes().get(1380); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -37579,7 +38323,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor = - getDescriptor().getMessageTypes().get(1357); + getDescriptor().getMessageTypes().get(1381); internal_static_google_cloud_compute_v1_TargetHttpsProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor, @@ -37604,7 +38348,7 @@ private static void _clinit_autosplit_dinit_2() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1358); + getDescriptor().getMessageTypes().get(1382); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor, @@ -37622,7 +38366,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor = - getDescriptor().getMessageTypes().get(1359); + getDescriptor().getMessageTypes().get(1383); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor, @@ -37630,7 +38374,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstance_descriptor = - getDescriptor().getMessageTypes().get(1360); + getDescriptor().getMessageTypes().get(1384); internal_static_google_cloud_compute_v1_TargetInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstance_descriptor, @@ -37645,14 +38389,10 @@ private static void _clinit_autosplit_dinit_2() { "Network", "SecurityPolicy", "SelfLink", - "Zone", - }); - _clinit_autosplit_dinit_3(); - } - - private static void _clinit_autosplit_dinit_3() { + "Zone", + }); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1361); + getDescriptor().getMessageTypes().get(1385); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor, @@ -37670,7 +38410,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor = - getDescriptor().getMessageTypes().get(1362); + getDescriptor().getMessageTypes().get(1386); internal_static_google_cloud_compute_v1_TargetInstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor, @@ -37678,7 +38418,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1363); + getDescriptor().getMessageTypes().get(1387); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor, @@ -37686,7 +38426,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetInstances", "Warning", }); internal_static_google_cloud_compute_v1_TargetPool_descriptor = - getDescriptor().getMessageTypes().get(1364); + getDescriptor().getMessageTypes().get(1388); internal_static_google_cloud_compute_v1_TargetPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPool_descriptor, @@ -37706,7 +38446,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionAffinity", }); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1365); + getDescriptor().getMessageTypes().get(1389); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor, @@ -37724,7 +38464,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(1366); + getDescriptor().getMessageTypes().get(1390); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor, @@ -37732,7 +38472,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthStatus", "Kind", }); internal_static_google_cloud_compute_v1_TargetPoolList_descriptor = - getDescriptor().getMessageTypes().get(1367); + getDescriptor().getMessageTypes().get(1391); internal_static_google_cloud_compute_v1_TargetPoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolList_descriptor, @@ -37740,7 +38480,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1368); + getDescriptor().getMessageTypes().get(1392); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor, @@ -37748,7 +38488,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1369); + getDescriptor().getMessageTypes().get(1393); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor, @@ -37756,7 +38496,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1370); + getDescriptor().getMessageTypes().get(1394); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor, @@ -37764,7 +38504,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1371); + getDescriptor().getMessageTypes().get(1395); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor, @@ -37772,7 +38512,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1372); + getDescriptor().getMessageTypes().get(1396); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor, @@ -37780,7 +38520,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetPools", "Warning", }); internal_static_google_cloud_compute_v1_TargetReference_descriptor = - getDescriptor().getMessageTypes().get(1373); + getDescriptor().getMessageTypes().get(1397); internal_static_google_cloud_compute_v1_TargetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetReference_descriptor, @@ -37788,7 +38528,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1374); + getDescriptor().getMessageTypes().get(1398); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor, @@ -37796,7 +38536,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1375); + getDescriptor().getMessageTypes().get(1399); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor, @@ -37804,7 +38544,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1376); + getDescriptor().getMessageTypes().get(1400); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor, @@ -37812,7 +38552,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1377); + getDescriptor().getMessageTypes().get(1401); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor, @@ -37820,7 +38560,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor = - getDescriptor().getMessageTypes().get(1378); + getDescriptor().getMessageTypes().get(1402); internal_static_google_cloud_compute_v1_TargetSslProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor, @@ -37838,7 +38578,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor = - getDescriptor().getMessageTypes().get(1379); + getDescriptor().getMessageTypes().get(1403); internal_static_google_cloud_compute_v1_TargetSslProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor, @@ -37846,7 +38586,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1380); + getDescriptor().getMessageTypes().get(1404); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor, @@ -37854,7 +38594,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1381); + getDescriptor().getMessageTypes().get(1405); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor, @@ -37862,7 +38602,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1382); + getDescriptor().getMessageTypes().get(1406); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor, @@ -37870,7 +38610,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor = - getDescriptor().getMessageTypes().get(1383); + getDescriptor().getMessageTypes().get(1407); internal_static_google_cloud_compute_v1_TargetTcpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor, @@ -37887,7 +38627,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1384); + getDescriptor().getMessageTypes().get(1408); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor, @@ -37905,7 +38645,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1385); + getDescriptor().getMessageTypes().get(1409); internal_static_google_cloud_compute_v1_TargetTcpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor, @@ -37913,7 +38653,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1386); + getDescriptor().getMessageTypes().get(1410); internal_static_google_cloud_compute_v1_TargetVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor, @@ -37941,7 +38681,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1387); + getDescriptor().getMessageTypes().get(1411); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor, @@ -37959,7 +38699,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1388); + getDescriptor().getMessageTypes().get(1412); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor, @@ -37967,7 +38707,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1389); + getDescriptor().getMessageTypes().get(1413); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor, @@ -37975,7 +38715,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetVpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_TestFailure_descriptor = - getDescriptor().getMessageTypes().get(1390); + getDescriptor().getMessageTypes().get(1414); internal_static_google_cloud_compute_v1_TestFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestFailure_descriptor, @@ -37991,7 +38731,7 @@ private static void _clinit_autosplit_dinit_3() { "Path", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1391); + getDescriptor().getMessageTypes().get(1415); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor, @@ -37999,7 +38739,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1392); + getDescriptor().getMessageTypes().get(1416); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor, @@ -38007,7 +38747,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1393); + getDescriptor().getMessageTypes().get(1417); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor, @@ -38015,7 +38755,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1394); + getDescriptor().getMessageTypes().get(1418); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor, @@ -38023,7 +38763,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1395); + getDescriptor().getMessageTypes().get(1419); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor, @@ -38031,7 +38771,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1396); + getDescriptor().getMessageTypes().get(1420); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor, @@ -38039,7 +38779,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1397); + getDescriptor().getMessageTypes().get(1421); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor, @@ -38047,7 +38787,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1398); + getDescriptor().getMessageTypes().get(1422); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor, @@ -38055,7 +38795,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1399); + getDescriptor().getMessageTypes().get(1423); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor, @@ -38063,7 +38803,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(1400); + getDescriptor().getMessageTypes().get(1424); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor, @@ -38071,7 +38811,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1401); + getDescriptor().getMessageTypes().get(1425); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor, @@ -38079,7 +38819,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1402); + getDescriptor().getMessageTypes().get(1426); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor, @@ -38087,7 +38827,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1403); + getDescriptor().getMessageTypes().get(1427); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor, @@ -38095,7 +38835,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1404); + getDescriptor().getMessageTypes().get(1428); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor, @@ -38103,7 +38843,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1405); + getDescriptor().getMessageTypes().get(1429); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor, @@ -38111,7 +38851,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1406); + getDescriptor().getMessageTypes().get(1430); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor, @@ -38119,7 +38859,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1407); + getDescriptor().getMessageTypes().get(1431); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor, @@ -38127,7 +38867,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(1408); + getDescriptor().getMessageTypes().get(1432); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor, @@ -38135,7 +38875,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1409); + getDescriptor().getMessageTypes().get(1433); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor, @@ -38143,7 +38883,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1410); + getDescriptor().getMessageTypes().get(1434); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor, @@ -38151,7 +38891,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1411); + getDescriptor().getMessageTypes().get(1435); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor, @@ -38159,7 +38899,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1412); + getDescriptor().getMessageTypes().get(1436); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor, @@ -38167,7 +38907,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1413); + getDescriptor().getMessageTypes().get(1437); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor, @@ -38175,7 +38915,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1414); + getDescriptor().getMessageTypes().get(1438); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor, @@ -38183,7 +38923,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1415); + getDescriptor().getMessageTypes().get(1439); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor, @@ -38191,7 +38931,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1416); + getDescriptor().getMessageTypes().get(1440); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor, @@ -38199,7 +38939,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1417); + getDescriptor().getMessageTypes().get(1441); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor, @@ -38207,7 +38947,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1418); + getDescriptor().getMessageTypes().get(1442); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor, @@ -38215,7 +38955,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1419); + getDescriptor().getMessageTypes().get(1443); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor, @@ -38223,7 +38963,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1420); + getDescriptor().getMessageTypes().get(1444); internal_static_google_cloud_compute_v1_TestPermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor, @@ -38231,7 +38971,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1421); + getDescriptor().getMessageTypes().get(1445); internal_static_google_cloud_compute_v1_TestPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor, @@ -38239,7 +38979,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_Uint128_descriptor = - getDescriptor().getMessageTypes().get(1422); + getDescriptor().getMessageTypes().get(1446); internal_static_google_cloud_compute_v1_Uint128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Uint128_descriptor, @@ -38247,7 +38987,7 @@ private static void _clinit_autosplit_dinit_3() { "High", "Low", }); internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor = - getDescriptor().getMessageTypes().get(1423); + getDescriptor().getMessageTypes().get(1447); internal_static_google_cloud_compute_v1_UpcomingMaintenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor, @@ -38260,7 +39000,7 @@ private static void _clinit_autosplit_dinit_3() { "WindowStartTime", }); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1424); + getDescriptor().getMessageTypes().get(1448); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor, @@ -38273,7 +39013,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1425); + getDescriptor().getMessageTypes().get(1449); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor, @@ -38281,7 +39021,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1426); + getDescriptor().getMessageTypes().get(1450); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor, @@ -38289,7 +39029,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1427); + getDescriptor().getMessageTypes().get(1451); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor, @@ -38297,7 +39037,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1428); + getDescriptor().getMessageTypes().get(1452); internal_static_google_cloud_compute_v1_UpdateDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor, @@ -38305,7 +39045,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1429); + getDescriptor().getMessageTypes().get(1453); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor, @@ -38313,7 +39053,7 @@ private static void _clinit_autosplit_dinit_3() { "DisplayDeviceResource", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(1430); + getDescriptor().getMessageTypes().get(1454); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor, @@ -38321,7 +39061,7 @@ private static void _clinit_autosplit_dinit_3() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1431); + getDescriptor().getMessageTypes().get(1455); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor, @@ -38329,7 +39069,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1432); + getDescriptor().getMessageTypes().get(1456); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor, @@ -38343,7 +39083,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1433); + getDescriptor().getMessageTypes().get(1457); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor, @@ -38356,7 +39096,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1434); + getDescriptor().getMessageTypes().get(1458); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor, @@ -38364,7 +39104,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "NetworksUpdatePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1435); + getDescriptor().getMessageTypes().get(1459); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -38376,7 +39116,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1436); + getDescriptor().getMessageTypes().get(1460); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -38388,7 +39128,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1437); + getDescriptor().getMessageTypes().get(1461); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor, @@ -38396,7 +39136,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1438); + getDescriptor().getMessageTypes().get(1462); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor, @@ -38404,7 +39144,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1439); + getDescriptor().getMessageTypes().get(1463); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor, @@ -38418,7 +39158,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1440); + getDescriptor().getMessageTypes().get(1464); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor, @@ -38426,7 +39166,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "Region", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1441); + getDescriptor().getMessageTypes().get(1465); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor, @@ -38434,7 +39174,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1442); + getDescriptor().getMessageTypes().get(1466); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor, @@ -38442,7 +39182,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1443); + getDescriptor().getMessageTypes().get(1467); internal_static_google_cloud_compute_v1_UpdateReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor, @@ -38456,7 +39196,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1444); + getDescriptor().getMessageTypes().get(1468); internal_static_google_cloud_compute_v1_UpdateRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor, @@ -38464,7 +39204,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1445); + getDescriptor().getMessageTypes().get(1469); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor, @@ -38472,7 +39212,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceConfigResource", "Zone", }); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1446); + getDescriptor().getMessageTypes().get(1470); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor, @@ -38480,7 +39220,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "StoragePool", "StoragePoolResource", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1447); + getDescriptor().getMessageTypes().get(1471); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor, @@ -38488,7 +39228,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UrlMap_descriptor = - getDescriptor().getMessageTypes().get(1448); + getDescriptor().getMessageTypes().get(1472); internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMap_descriptor, @@ -38511,7 +39251,7 @@ private static void _clinit_autosplit_dinit_3() { "Tests", }); internal_static_google_cloud_compute_v1_UrlMapList_descriptor = - getDescriptor().getMessageTypes().get(1449); + getDescriptor().getMessageTypes().get(1473); internal_static_google_cloud_compute_v1_UrlMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapList_descriptor, @@ -38519,7 +39259,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapReference_descriptor = - getDescriptor().getMessageTypes().get(1450); + getDescriptor().getMessageTypes().get(1474); internal_static_google_cloud_compute_v1_UrlMapReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapReference_descriptor, @@ -38527,7 +39267,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_UrlMapTest_descriptor = - getDescriptor().getMessageTypes().get(1451); + getDescriptor().getMessageTypes().get(1475); internal_static_google_cloud_compute_v1_UrlMapTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTest_descriptor, @@ -38541,7 +39281,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor = - getDescriptor().getMessageTypes().get(1452); + getDescriptor().getMessageTypes().get(1476); internal_static_google_cloud_compute_v1_UrlMapTestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor, @@ -38549,7 +39289,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Value", }); internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor = - getDescriptor().getMessageTypes().get(1453); + getDescriptor().getMessageTypes().get(1477); internal_static_google_cloud_compute_v1_UrlMapValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor, @@ -38557,7 +39297,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadErrors", "LoadSucceeded", "TestFailures", "TestPassed", }); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1454); + getDescriptor().getMessageTypes().get(1478); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor, @@ -38575,7 +39315,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1455); + getDescriptor().getMessageTypes().get(1479); internal_static_google_cloud_compute_v1_UrlMapsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor, @@ -38583,7 +39323,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMaps", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1456); + getDescriptor().getMessageTypes().get(1480); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor, @@ -38591,7 +39331,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadBalancingSchemes", "Resource", }); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor = - getDescriptor().getMessageTypes().get(1457); + getDescriptor().getMessageTypes().get(1481); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor, @@ -38599,7 +39339,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_UrlRewrite_descriptor = - getDescriptor().getMessageTypes().get(1458); + getDescriptor().getMessageTypes().get(1482); internal_static_google_cloud_compute_v1_UrlRewrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlRewrite_descriptor, @@ -38607,7 +39347,7 @@ private static void _clinit_autosplit_dinit_3() { "HostRewrite", "PathPrefixRewrite", "PathTemplateRewrite", }); internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor = - getDescriptor().getMessageTypes().get(1459); + getDescriptor().getMessageTypes().get(1483); internal_static_google_cloud_compute_v1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor, @@ -38624,7 +39364,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1460); + getDescriptor().getMessageTypes().get(1484); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor, @@ -38632,7 +39372,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", }); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1461); + getDescriptor().getMessageTypes().get(1485); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor, @@ -38640,7 +39380,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor = - getDescriptor().getMessageTypes().get(1462); + getDescriptor().getMessageTypes().get(1486); internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor, @@ -38648,7 +39388,7 @@ private static void _clinit_autosplit_dinit_3() { "BucketName", "ReportNamePrefix", }); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1463); + getDescriptor().getMessageTypes().get(1487); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor, @@ -38656,7 +39396,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionUrlMapsValidateRequestResource", "UrlMap", }); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1464); + getDescriptor().getMessageTypes().get(1488); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor, @@ -38664,7 +39404,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "UrlMap", "UrlMapsValidateRequestResource", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1465); + getDescriptor().getMessageTypes().get(1489); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor, @@ -38672,7 +39412,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceName", "InterfaceNatMappings", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1466); + getDescriptor().getMessageTypes().get(1490); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor, @@ -38686,7 +39426,7 @@ private static void _clinit_autosplit_dinit_3() { "SourceVirtualIp", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor = - getDescriptor().getMessageTypes().get(1467); + getDescriptor().getMessageTypes().get(1491); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor, @@ -38698,7 +39438,7 @@ private static void _clinit_autosplit_dinit_3() { "RuleNumber", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor = - getDescriptor().getMessageTypes().get(1468); + getDescriptor().getMessageTypes().get(1492); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor, @@ -38706,7 +39446,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Kind", "NextPageToken", "Result", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1469); + getDescriptor().getMessageTypes().get(1493); internal_static_google_cloud_compute_v1_VpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGateway_descriptor, @@ -38734,7 +39474,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1470); + getDescriptor().getMessageTypes().get(1494); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor, @@ -38752,7 +39492,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1471); + getDescriptor().getMessageTypes().get(1495); internal_static_google_cloud_compute_v1_VpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor, @@ -38760,7 +39500,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor = - getDescriptor().getMessageTypes().get(1472); + getDescriptor().getMessageTypes().get(1496); internal_static_google_cloud_compute_v1_VpnGatewayStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor, @@ -38768,7 +39508,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnConnections", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor = - getDescriptor().getMessageTypes().get(1473); + getDescriptor().getMessageTypes().get(1497); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor, @@ -38776,7 +39516,7 @@ private static void _clinit_autosplit_dinit_3() { "State", "UnsatisfiedReason", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor = - getDescriptor().getMessageTypes().get(1474); + getDescriptor().getMessageTypes().get(1498); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor, @@ -38784,7 +39524,7 @@ private static void _clinit_autosplit_dinit_3() { "LocalGatewayInterface", "PeerGatewayInterface", "TunnelUrl", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor = - getDescriptor().getMessageTypes().get(1475); + getDescriptor().getMessageTypes().get(1499); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor, @@ -38792,7 +39532,7 @@ private static void _clinit_autosplit_dinit_3() { "PeerExternalGateway", "PeerGcpGateway", "State", "Tunnels", }); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(1476); + getDescriptor().getMessageTypes().get(1500); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor, @@ -38800,7 +39540,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "InterconnectAttachment", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1477); + getDescriptor().getMessageTypes().get(1501); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor, @@ -38808,7 +39548,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1478); + getDescriptor().getMessageTypes().get(1502); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor, @@ -38816,7 +39556,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnel_descriptor = - getDescriptor().getMessageTypes().get(1479); + getDescriptor().getMessageTypes().get(1503); internal_static_google_cloud_compute_v1_VpnTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnel_descriptor, @@ -38855,7 +39595,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1480); + getDescriptor().getMessageTypes().get(1504); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor, @@ -38873,7 +39613,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor = - getDescriptor().getMessageTypes().get(1481); + getDescriptor().getMessageTypes().get(1505); internal_static_google_cloud_compute_v1_VpnTunnelList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor, @@ -38881,7 +39621,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1482); + getDescriptor().getMessageTypes().get(1506); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor, @@ -38889,7 +39629,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnTunnels", "Warning", }); internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor = - getDescriptor().getMessageTypes().get(1483); + getDescriptor().getMessageTypes().get(1507); internal_static_google_cloud_compute_v1_WafExpressionSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor, @@ -38897,7 +39637,7 @@ private static void _clinit_autosplit_dinit_3() { "Aliases", "Expressions", "Id", }); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor = - getDescriptor().getMessageTypes().get(1484); + getDescriptor().getMessageTypes().get(1508); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor, @@ -38905,7 +39645,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Sensitivity", }); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1485); + getDescriptor().getMessageTypes().get(1509); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor, @@ -38913,7 +39653,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1486); + getDescriptor().getMessageTypes().get(1510); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor, @@ -38921,7 +39661,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1487); + getDescriptor().getMessageTypes().get(1511); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor, @@ -38929,7 +39669,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_Warning_descriptor = - getDescriptor().getMessageTypes().get(1488); + getDescriptor().getMessageTypes().get(1512); internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warning_descriptor, @@ -38937,7 +39677,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_Warnings_descriptor = - getDescriptor().getMessageTypes().get(1489); + getDescriptor().getMessageTypes().get(1513); internal_static_google_cloud_compute_v1_Warnings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warnings_descriptor, @@ -38945,7 +39685,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor = - getDescriptor().getMessageTypes().get(1490); + getDescriptor().getMessageTypes().get(1514); internal_static_google_cloud_compute_v1_WeightedBackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor, @@ -38953,7 +39693,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "HeaderAction", "Weight", }); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1491); + getDescriptor().getMessageTypes().get(1515); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor, @@ -38961,7 +39701,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1492); + getDescriptor().getMessageTypes().get(1516); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor, @@ -38969,7 +39709,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_XpnHostList_descriptor = - getDescriptor().getMessageTypes().get(1493); + getDescriptor().getMessageTypes().get(1517); internal_static_google_cloud_compute_v1_XpnHostList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnHostList_descriptor, @@ -38977,7 +39717,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_XpnResourceId_descriptor = - getDescriptor().getMessageTypes().get(1494); + getDescriptor().getMessageTypes().get(1518); internal_static_google_cloud_compute_v1_XpnResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnResourceId_descriptor, @@ -38985,7 +39725,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Type", }); internal_static_google_cloud_compute_v1_Zone_descriptor = - getDescriptor().getMessageTypes().get(1495); + getDescriptor().getMessageTypes().get(1519); internal_static_google_cloud_compute_v1_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Zone_descriptor, @@ -39003,7 +39743,7 @@ private static void _clinit_autosplit_dinit_3() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_ZoneList_descriptor = - getDescriptor().getMessageTypes().get(1496); + getDescriptor().getMessageTypes().get(1520); internal_static_google_cloud_compute_v1_ZoneList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneList_descriptor, @@ -39011,7 +39751,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1497); + getDescriptor().getMessageTypes().get(1521); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor, @@ -39029,7 +39769,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1498); + getDescriptor().getMessageTypes().get(1522); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor, @@ -39050,12 +39790,12 @@ private static void _clinit_autosplit_dinit_3() { registry.add(com.google.cloud.ExtendedOperationsProto.operationService); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ExtendedOperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequest.java new file mode 100644 index 000000000000..40f3eead1303 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequest.java @@ -0,0 +1,807 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for NetworkProfiles.Get. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.GetNetworkProfileRequest} + */ +public final class GetNetworkProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetNetworkProfileRequest) + GetNetworkProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNetworkProfileRequest.newBuilder() to construct. + private GetNetworkProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNetworkProfileRequest() { + networkProfile_ = ""; + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNetworkProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetNetworkProfileRequest.class, + com.google.cloud.compute.v1.GetNetworkProfileRequest.Builder.class); + } + + public static final int NETWORK_PROFILE_FIELD_NUMBER = 173112472; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkProfile_ = ""; + /** + * + * + *
    +   * Name of the network profile to return.
    +   * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkProfile. + */ + @java.lang.Override + public java.lang.String getNetworkProfile() { + java.lang.Object ref = networkProfile_; + 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(); + networkProfile_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the network profile to return.
    +   * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkProfileBytes() { + java.lang.Object ref = networkProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + 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(networkProfile_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 173112472, networkProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + 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(networkProfile_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(173112472, networkProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + 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.compute.v1.GetNetworkProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetNetworkProfileRequest other = + (com.google.cloud.compute.v1.GetNetworkProfileRequest) obj; + + if (!getNetworkProfile().equals(other.getNetworkProfile())) return false; + if (!getProject().equals(other.getProject())) 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) + NETWORK_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkProfile().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest 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 request message for NetworkProfiles.Get. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.GetNetworkProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetNetworkProfileRequest) + com.google.cloud.compute.v1.GetNetworkProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetNetworkProfileRequest.class, + com.google.cloud.compute.v1.GetNetworkProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetNetworkProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkProfile_ = ""; + project_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetNetworkProfileRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetNetworkProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetNetworkProfileRequest build() { + com.google.cloud.compute.v1.GetNetworkProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetNetworkProfileRequest buildPartial() { + com.google.cloud.compute.v1.GetNetworkProfileRequest result = + new com.google.cloud.compute.v1.GetNetworkProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetNetworkProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkProfile_ = networkProfile_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + } + + @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.compute.v1.GetNetworkProfileRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetNetworkProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetNetworkProfileRequest other) { + if (other == com.google.cloud.compute.v1.GetNetworkProfileRequest.getDefaultInstance()) + return this; + if (!other.getNetworkProfile().isEmpty()) { + networkProfile_ = other.networkProfile_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + 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 1384899778: + { + networkProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1384899778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 networkProfile_ = ""; + /** + * + * + *
    +     * Name of the network profile to return.
    +     * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkProfile. + */ + public java.lang.String getNetworkProfile() { + java.lang.Object ref = networkProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the network profile to return.
    +     * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkProfile. + */ + public com.google.protobuf.ByteString getNetworkProfileBytes() { + java.lang.Object ref = networkProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the network profile to return.
    +     * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The networkProfile to set. + * @return This builder for chaining. + */ + public Builder setNetworkProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the network profile to return.
    +     * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkProfile() { + networkProfile_ = getDefaultInstance().getNetworkProfile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the network profile to return.
    +     * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for networkProfile to set. + * @return This builder for chaining. + */ + public Builder setNetworkProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 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.compute.v1.GetNetworkProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetNetworkProfileRequest) + private static final com.google.cloud.compute.v1.GetNetworkProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetNetworkProfileRequest(); + } + + public static com.google.cloud.compute.v1.GetNetworkProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkProfileRequest 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.compute.v1.GetNetworkProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequestOrBuilder.java new file mode 100644 index 000000000000..ba606d1af29a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetNetworkProfileRequestOrBuilder.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/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface GetNetworkProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetNetworkProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Name of the network profile to return.
    +   * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkProfile. + */ + java.lang.String getNetworkProfile(); + /** + * + * + *
    +   * Name of the network profile to return.
    +   * 
    + * + * string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkProfile. + */ + com.google.protobuf.ByteString getNetworkProfileBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequest.java index 92be5af9b0f0..b668c11bc61b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequest.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequest.java @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
        * 
    * * optional int64 start = 109757538; @@ -223,7 +223,7 @@ public boolean hasStart() { * * *
    -   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
        * 
    * * optional int64 start = 109757538; @@ -1023,7 +1023,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
    -     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
          * 
    * * optional int64 start = 109757538; @@ -1038,7 +1038,7 @@ public boolean hasStart() { * * *
    -     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
          * 
    * * optional int64 start = 109757538; @@ -1053,7 +1053,7 @@ public long getStart() { * * *
    -     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
          * 
    * * optional int64 start = 109757538; @@ -1072,7 +1072,7 @@ public Builder setStart(long value) { * * *
    -     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +     * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
          * 
    * * optional int64 start = 109757538; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequestOrBuilder.java index dea60351a833..e4cede3ca033 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequestOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceRequestOrBuilder.java @@ -103,7 +103,7 @@ public interface GetSerialPortOutputInstanceRequestOrBuilder * * *
    -   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
        * 
    * * optional int64 start = 109757538; @@ -115,7 +115,7 @@ public interface GetSerialPortOutputInstanceRequestOrBuilder * * *
    -   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
    +   * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
        * 
    * * optional int64 start = 109757538; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRule.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRule.java index 297e44ef83a5..9e7b9aeb5cbf 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRule.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRule.java @@ -349,7 +349,7 @@ public int getPriority() { * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -364,7 +364,7 @@ public boolean hasRouteAction() { * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -381,7 +381,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getRouteAction() { * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -401,7 +401,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -416,7 +416,7 @@ public boolean hasService() { * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -439,7 +439,7 @@ public java.lang.String getService() { * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -465,7 +465,7 @@ public com.google.protobuf.ByteString getServiceBytes() { * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -480,7 +480,7 @@ public boolean hasUrlRedirect() { * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -497,7 +497,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getUrlRedirect() { * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2085,7 +2085,7 @@ public Builder clearPriority() { * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2099,7 +2099,7 @@ public boolean hasRouteAction() { * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2119,7 +2119,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getRouteAction() { * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2141,7 +2141,7 @@ public Builder setRouteAction(com.google.cloud.compute.v1.HttpRouteAction value) * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2161,7 +2161,7 @@ public Builder setRouteAction( * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2188,7 +2188,7 @@ public Builder mergeRouteAction(com.google.cloud.compute.v1.HttpRouteAction valu * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2207,7 +2207,7 @@ public Builder clearRouteAction() { * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2221,7 +2221,7 @@ public com.google.cloud.compute.v1.HttpRouteAction.Builder getRouteActionBuilder * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2239,7 +2239,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +     * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -2266,7 +2266,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2280,7 +2280,7 @@ public boolean hasService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2302,7 +2302,7 @@ public java.lang.String getService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2324,7 +2324,7 @@ public com.google.protobuf.ByteString getServiceBytes() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2345,7 +2345,7 @@ public Builder setService(java.lang.String value) { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2362,7 +2362,7 @@ public Builder clearService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -2391,7 +2391,7 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2405,7 +2405,7 @@ public boolean hasUrlRedirect() { * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2425,7 +2425,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getUrlRedirect() { * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2447,7 +2447,7 @@ public Builder setUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction val * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2467,7 +2467,7 @@ public Builder setUrlRedirect( * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2495,7 +2495,7 @@ public Builder mergeUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction v * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2514,7 +2514,7 @@ public Builder clearUrlRedirect() { * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2528,7 +2528,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getUrlRedirectBuil * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -2546,7 +2546,7 @@ public com.google.cloud.compute.v1.HttpRedirectActionOrBuilder getUrlRedirectOrB * * *
    -     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRuleOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRuleOrBuilder.java index 76847b7231e1..51a5a17f5a31 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRuleOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HttpRouteRuleOrBuilder.java @@ -219,7 +219,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -231,7 +231,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -243,7 +243,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
    +   * In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -254,7 +254,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -266,7 +266,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -278,7 +278,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -291,7 +291,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -303,7 +303,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -315,7 +315,7 @@ public interface HttpRouteRuleOrBuilder * * *
    -   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java index 14a57333016e..539d036e707e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java @@ -1514,6 +1514,63 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { } } + public static final int STANDBY_POLICY_FIELD_NUMBER = 499352324; + private com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standbyPolicy_; + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return Whether the standbyPolicy field is set. + */ + @java.lang.Override + public boolean hasStandbyPolicy() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return The standbyPolicy. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy getStandbyPolicy() { + return standbyPolicy_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance() + : standbyPolicy_; + } + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder + getStandbyPolicyOrBuilder() { + return standbyPolicy_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance() + : standbyPolicy_; + } + public static final int STATEFUL_POLICY_FIELD_NUMBER = 47538565; private com.google.cloud.compute.v1.StatefulPolicy statefulPolicy_; /** @@ -1529,7 +1586,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasStatefulPolicy() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -1579,7 +1636,7 @@ public com.google.cloud.compute.v1.StatefulPolicyOrBuilder getStatefulPolicyOrBu */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -1693,7 +1750,7 @@ public com.google.protobuf.ByteString getTargetPoolsBytes(int index) { */ @java.lang.Override public boolean hasTargetSize() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -1711,6 +1768,72 @@ public int getTargetSize() { return targetSize_; } + public static final int TARGET_STOPPED_SIZE_FIELD_NUMBER = 2419489; + private int targetStoppedSize_ = 0; + /** + * + * + *
    +   * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +   * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return Whether the targetStoppedSize field is set. + */ + @java.lang.Override + public boolean hasTargetStoppedSize() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
    +   * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +   * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return The targetStoppedSize. + */ + @java.lang.Override + public int getTargetStoppedSize() { + return targetStoppedSize_; + } + + public static final int TARGET_SUSPENDED_SIZE_FIELD_NUMBER = 308085843; + private int targetSuspendedSize_ = 0; + /** + * + * + *
    +   * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +   * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return Whether the targetSuspendedSize field is set. + */ + @java.lang.Override + public boolean hasTargetSuspendedSize() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * + * + *
    +   * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +   * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return The targetSuspendedSize. + */ + @java.lang.Override + public int getTargetSuspendedSize() { + return targetSuspendedSize_; + } + public static final int UPDATE_POLICY_FIELD_NUMBER = 175809896; private com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy updatePolicy_; /** @@ -1728,7 +1851,7 @@ public int getTargetSize() { */ @java.lang.Override public boolean hasUpdatePolicy() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -1862,7 +1985,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerVersionOrBuilder getVersi */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -1928,13 +2051,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt64(3355, id_); } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeInt32(2419489, targetStoppedSize_); + } if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1943,10 +2069,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { output.writeMessage(47538565, getStatefulPolicy()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { output.writeInt32(62880239, targetSize_); } if (((bitField0_ & 0x00000200) != 0)) { @@ -1964,10 +2090,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(164045879, getCurrentActions()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(175809896, getUpdatePolicy()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeMessage(181260274, getStatus()); } if (((bitField0_ & 0x00000040) != 0)) { @@ -1977,6 +2103,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 296047156, listManagedInstancesResults_); } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeInt32(308085843, targetSuspendedSize_); + } if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 309248228, instanceTemplate_); } @@ -2007,6 +2136,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00020000) != 0)) { output.writeBool(480964267, satisfiesPzs_); } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(499352324, getStandbyPolicy()); + } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(534558541, getDistributionPolicy()); } @@ -2022,13 +2154,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2419489, targetStoppedSize_); + } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); } if (((bitField0_ & 0x00000100) != 0)) { @@ -2040,11 +2175,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(47538565, getStatefulPolicy()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(62880239, targetSize_); } if (((bitField0_ & 0x00000200) != 0)) { @@ -2065,11 +2200,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(164045879, getCurrentActions()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(175809896, getUpdatePolicy()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(181260274, getStatus()); } if (((bitField0_ & 0x00000040) != 0)) { @@ -2080,6 +2215,10 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 296047156, listManagedInstancesResults_); } + if (((bitField0_ & 0x01000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(308085843, targetSuspendedSize_); + } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(309248228, instanceTemplate_); @@ -2122,6 +2261,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); } + if (((bitField0_ & 0x00080000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(499352324, getStandbyPolicy()); + } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2223,6 +2366,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; } + if (hasStandbyPolicy() != other.hasStandbyPolicy()) return false; + if (hasStandbyPolicy()) { + if (!getStandbyPolicy().equals(other.getStandbyPolicy())) return false; + } if (hasStatefulPolicy() != other.hasStatefulPolicy()) return false; if (hasStatefulPolicy()) { if (!getStatefulPolicy().equals(other.getStatefulPolicy())) return false; @@ -2236,6 +2383,14 @@ public boolean equals(final java.lang.Object obj) { if (hasTargetSize()) { if (getTargetSize() != other.getTargetSize()) return false; } + if (hasTargetStoppedSize() != other.hasTargetStoppedSize()) return false; + if (hasTargetStoppedSize()) { + if (getTargetStoppedSize() != other.getTargetStoppedSize()) return false; + } + if (hasTargetSuspendedSize() != other.hasTargetSuspendedSize()) return false; + if (hasTargetSuspendedSize()) { + if (getTargetSuspendedSize() != other.getTargetSuspendedSize()) return false; + } if (hasUpdatePolicy() != other.hasUpdatePolicy()) return false; if (hasUpdatePolicy()) { if (!getUpdatePolicy().equals(other.getUpdatePolicy())) return false; @@ -2340,6 +2495,10 @@ public int hashCode() { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); } + if (hasStandbyPolicy()) { + hash = (37 * hash) + STANDBY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getStandbyPolicy().hashCode(); + } if (hasStatefulPolicy()) { hash = (37 * hash) + STATEFUL_POLICY_FIELD_NUMBER; hash = (53 * hash) + getStatefulPolicy().hashCode(); @@ -2356,6 +2515,14 @@ public int hashCode() { hash = (37 * hash) + TARGET_SIZE_FIELD_NUMBER; hash = (53 * hash) + getTargetSize(); } + if (hasTargetStoppedSize()) { + hash = (37 * hash) + TARGET_STOPPED_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTargetStoppedSize(); + } + if (hasTargetSuspendedSize()) { + hash = (37 * hash) + TARGET_SUSPENDED_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTargetSuspendedSize(); + } if (hasUpdatePolicy()) { hash = (37 * hash) + UPDATE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getUpdatePolicy().hashCode(); @@ -2515,6 +2682,7 @@ private void maybeForceBuilderInitialization() { getInstanceFlexibilityPolicyFieldBuilder(); getInstanceLifecyclePolicyFieldBuilder(); getNamedPortsFieldBuilder(); + getStandbyPolicyFieldBuilder(); getStatefulPolicyFieldBuilder(); getStatusFieldBuilder(); getUpdatePolicyFieldBuilder(); @@ -2579,6 +2747,11 @@ public Builder clear() { satisfiesPzi_ = false; satisfiesPzs_ = false; selfLink_ = ""; + standbyPolicy_ = null; + if (standbyPolicyBuilder_ != null) { + standbyPolicyBuilder_.dispose(); + standbyPolicyBuilder_ = null; + } statefulPolicy_ = null; if (statefulPolicyBuilder_ != null) { statefulPolicyBuilder_.dispose(); @@ -2591,6 +2764,8 @@ public Builder clear() { } targetPools_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetSize_ = 0; + targetStoppedSize_ = 0; + targetSuspendedSize_ = 0; updatePolicy_ = null; if (updatePolicyBuilder_ != null) { updatePolicyBuilder_.dispose(); @@ -2602,7 +2777,7 @@ public Builder clear() { versions_ = null; versionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); zone_ = ""; return this; } @@ -2660,9 +2835,9 @@ private void buildPartialRepeatedFields( result.namedPorts_ = namedPortsBuilder_.build(); } if (versionsBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); } result.versions_ = versions_; } else { @@ -2763,30 +2938,43 @@ private void buildPartial0(com.google.cloud.compute.v1.InstanceGroupManager resu to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.statefulPolicy_ = - statefulPolicyBuilder_ == null ? statefulPolicy_ : statefulPolicyBuilder_.build(); + result.standbyPolicy_ = + standbyPolicyBuilder_ == null ? standbyPolicy_ : standbyPolicyBuilder_.build(); to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.statefulPolicy_ = + statefulPolicyBuilder_ == null ? statefulPolicy_ : statefulPolicyBuilder_.build(); to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { targetPools_.makeImmutable(); result.targetPools_ = targetPools_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.targetSize_ = targetSize_; - to_bitField0_ |= 0x00200000; + to_bitField0_ |= 0x00400000; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { + result.targetStoppedSize_ = targetStoppedSize_; + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.targetSuspendedSize_ = targetSuspendedSize_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { result.updatePolicy_ = updatePolicyBuilder_ == null ? updatePolicy_ : updatePolicyBuilder_.build(); - to_bitField0_ |= 0x00400000; + to_bitField0_ |= 0x02000000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.zone_ = zone_; - to_bitField0_ |= 0x00800000; + to_bitField0_ |= 0x04000000; } result.bitField0_ |= to_bitField0_; } @@ -2970,6 +3158,9 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) bitField0_ |= 0x00100000; onChanged(); } + if (other.hasStandbyPolicy()) { + mergeStandbyPolicy(other.getStandbyPolicy()); + } if (other.hasStatefulPolicy()) { mergeStatefulPolicy(other.getStatefulPolicy()); } @@ -2979,7 +3170,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) if (!other.targetPools_.isEmpty()) { if (targetPools_.isEmpty()) { targetPools_ = other.targetPools_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; } else { ensureTargetPoolsIsMutable(); targetPools_.addAll(other.targetPools_); @@ -2989,6 +3180,12 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) if (other.hasTargetSize()) { setTargetSize(other.getTargetSize()); } + if (other.hasTargetStoppedSize()) { + setTargetStoppedSize(other.getTargetStoppedSize()); + } + if (other.hasTargetSuspendedSize()) { + setTargetSuspendedSize(other.getTargetSuspendedSize()); + } if (other.hasUpdatePolicy()) { mergeUpdatePolicy(other.getUpdatePolicy()); } @@ -2996,7 +3193,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); } else { ensureVersionsIsMutable(); versions_.addAll(other.versions_); @@ -3009,7 +3206,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) versionsBuilder_.dispose(); versionsBuilder_ = null; versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); versionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionsFieldBuilder() @@ -3021,7 +3218,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManager other) } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3056,6 +3253,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 26840 + case 19355912: + { + targetStoppedSize_ = input.readInt32(); + bitField0_ |= 0x04000000; + break; + } // case 19355912 case 26336418: { kind_ = input.readStringRequireUtf8(); @@ -3071,7 +3274,7 @@ public Builder mergeFrom( case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; break; } // case 29957474 case 215496722: @@ -3090,13 +3293,13 @@ public Builder mergeFrom( case 380308522: { input.readMessage(getStatefulPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 380308522 case 503041912: { targetSize_ = input.readInt32(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 503041912 case 648762026: @@ -3141,13 +3344,13 @@ public Builder mergeFrom( case 1406479170: { input.readMessage(getUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; break; } // case 1406479170 case 1450082194: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 1450082194 case 1877428002: @@ -3162,6 +3365,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case -1926590046 + case -1830280552: + { + targetSuspendedSize_ = input.readInt32(); + bitField0_ |= 0x08000000; + break; + } // case -1830280552 case -1820981470: { instanceTemplate_ = input.readStringRequireUtf8(); @@ -3239,6 +3448,12 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case -447253160 + case -300148702: + { + input.readMessage(getStandbyPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case -300148702 case -18498966: { input.readMessage( @@ -6606,6 +6821,216 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standbyPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder> + standbyPolicyBuilder_; + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return Whether the standbyPolicy field is set. + */ + public boolean hasStandbyPolicy() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return The standbyPolicy. + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy getStandbyPolicy() { + if (standbyPolicyBuilder_ == null) { + return standbyPolicy_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance() + : standbyPolicy_; + } else { + return standbyPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public Builder setStandbyPolicy( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy value) { + if (standbyPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + standbyPolicy_ = value; + } else { + standbyPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public Builder setStandbyPolicy( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder builderForValue) { + if (standbyPolicyBuilder_ == null) { + standbyPolicy_ = builderForValue.build(); + } else { + standbyPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public Builder mergeStandbyPolicy( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy value) { + if (standbyPolicyBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && standbyPolicy_ != null + && standbyPolicy_ + != com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy + .getDefaultInstance()) { + getStandbyPolicyBuilder().mergeFrom(value); + } else { + standbyPolicy_ = value; + } + } else { + standbyPolicyBuilder_.mergeFrom(value); + } + if (standbyPolicy_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public Builder clearStandbyPolicy() { + bitField0_ = (bitField0_ & ~0x00200000); + standbyPolicy_ = null; + if (standbyPolicyBuilder_ != null) { + standbyPolicyBuilder_.dispose(); + standbyPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder + getStandbyPolicyBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getStandbyPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder + getStandbyPolicyOrBuilder() { + if (standbyPolicyBuilder_ != null) { + return standbyPolicyBuilder_.getMessageOrBuilder(); + } else { + return standbyPolicy_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance() + : standbyPolicy_; + } + } + /** + * + * + *
    +     * Standby policy for stopped and suspended instances.
    +     * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder> + getStandbyPolicyFieldBuilder() { + if (standbyPolicyBuilder_ == null) { + standbyPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder>( + getStandbyPolicy(), getParentForChildren(), isClean()); + standbyPolicy_ = null; + } + return standbyPolicyBuilder_; + } + private com.google.cloud.compute.v1.StatefulPolicy statefulPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.StatefulPolicy, @@ -6624,7 +7049,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the statefulPolicy field is set. */ public boolean hasStatefulPolicy() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -6664,7 +7089,7 @@ public Builder setStatefulPolicy(com.google.cloud.compute.v1.StatefulPolicy valu } else { statefulPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6684,7 +7109,7 @@ public Builder setStatefulPolicy( } else { statefulPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6699,7 +7124,7 @@ public Builder setStatefulPolicy( */ public Builder mergeStatefulPolicy(com.google.cloud.compute.v1.StatefulPolicy value) { if (statefulPolicyBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && statefulPolicy_ != null && statefulPolicy_ != com.google.cloud.compute.v1.StatefulPolicy.getDefaultInstance()) { getStatefulPolicyBuilder().mergeFrom(value); @@ -6710,7 +7135,7 @@ public Builder mergeStatefulPolicy(com.google.cloud.compute.v1.StatefulPolicy va statefulPolicyBuilder_.mergeFrom(value); } if (statefulPolicy_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -6725,7 +7150,7 @@ public Builder mergeStatefulPolicy(com.google.cloud.compute.v1.StatefulPolicy va * optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565; */ public Builder clearStatefulPolicy() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); statefulPolicy_ = null; if (statefulPolicyBuilder_ != null) { statefulPolicyBuilder_.dispose(); @@ -6744,7 +7169,7 @@ public Builder clearStatefulPolicy() { * optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565; */ public com.google.cloud.compute.v1.StatefulPolicy.Builder getStatefulPolicyBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return getStatefulPolicyFieldBuilder().getBuilder(); } @@ -6810,7 +7235,7 @@ public com.google.cloud.compute.v1.StatefulPolicyOrBuilder getStatefulPolicyOrBu * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -6850,7 +7275,7 @@ public Builder setStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatus } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6870,7 +7295,7 @@ public Builder setStatus( } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6885,7 +7310,7 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && status_ != null && status_ != com.google.cloud.compute.v1.InstanceGroupManagerStatus.getDefaultInstance()) { @@ -6897,7 +7322,7 @@ public Builder mergeStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatu statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -6912,7 +7337,7 @@ public Builder mergeStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatu * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6931,7 +7356,7 @@ public Builder clearStatus() { * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; */ public com.google.cloud.compute.v1.InstanceGroupManagerStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6986,7 +7411,7 @@ private void ensureTargetPoolsIsMutable() { if (!targetPools_.isModifiable()) { targetPools_ = new com.google.protobuf.LazyStringArrayList(targetPools_); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; } /** * @@ -7066,7 +7491,7 @@ public Builder setTargetPools(int index, java.lang.String value) { } ensureTargetPoolsIsMutable(); targetPools_.set(index, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7088,7 +7513,7 @@ public Builder addTargetPools(java.lang.String value) { } ensureTargetPoolsIsMutable(); targetPools_.add(value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7107,7 +7532,7 @@ public Builder addTargetPools(java.lang.String value) { public Builder addAllTargetPools(java.lang.Iterable values) { ensureTargetPoolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetPools_); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7124,7 +7549,7 @@ public Builder addAllTargetPools(java.lang.Iterable values) { */ public Builder clearTargetPools() { targetPools_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); ; onChanged(); return this; @@ -7148,7 +7573,7 @@ public Builder addTargetPoolsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTargetPoolsIsMutable(); targetPools_.add(value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7167,7 +7592,7 @@ public Builder addTargetPoolsBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasTargetSize() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -7199,7 +7624,7 @@ public int getTargetSize() { public Builder setTargetSize(int value) { targetSize_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7215,12 +7640,148 @@ public Builder setTargetSize(int value) { * @return This builder for chaining. */ public Builder clearTargetSize() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); targetSize_ = 0; onChanged(); return this; } + private int targetStoppedSize_; + /** + * + * + *
    +     * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +     * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return Whether the targetStoppedSize field is set. + */ + @java.lang.Override + public boolean hasTargetStoppedSize() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * + * + *
    +     * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +     * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return The targetStoppedSize. + */ + @java.lang.Override + public int getTargetStoppedSize() { + return targetStoppedSize_; + } + /** + * + * + *
    +     * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +     * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @param value The targetStoppedSize to set. + * @return This builder for chaining. + */ + public Builder setTargetStoppedSize(int value) { + + targetStoppedSize_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
    +     * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +     * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return This builder for chaining. + */ + public Builder clearTargetStoppedSize() { + bitField0_ = (bitField0_ & ~0x04000000); + targetStoppedSize_ = 0; + onChanged(); + return this; + } + + private int targetSuspendedSize_; + /** + * + * + *
    +     * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +     * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return Whether the targetSuspendedSize field is set. + */ + @java.lang.Override + public boolean hasTargetSuspendedSize() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * + * + *
    +     * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +     * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return The targetSuspendedSize. + */ + @java.lang.Override + public int getTargetSuspendedSize() { + return targetSuspendedSize_; + } + /** + * + * + *
    +     * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +     * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @param value The targetSuspendedSize to set. + * @return This builder for chaining. + */ + public Builder setTargetSuspendedSize(int value) { + + targetSuspendedSize_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
    +     * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +     * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return This builder for chaining. + */ + public Builder clearTargetSuspendedSize() { + bitField0_ = (bitField0_ & ~0x08000000); + targetSuspendedSize_ = 0; + onChanged(); + return this; + } + private com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy updatePolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy, @@ -7241,7 +7802,7 @@ public Builder clearTargetSize() { * @return Whether the updatePolicy field is set. */ public boolean hasUpdatePolicy() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -7286,7 +7847,7 @@ public Builder setUpdatePolicy( } else { updatePolicyBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7308,7 +7869,7 @@ public Builder setUpdatePolicy( } else { updatePolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7326,7 +7887,7 @@ public Builder setUpdatePolicy( public Builder mergeUpdatePolicy( com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy value) { if (updatePolicyBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && updatePolicy_ != null && updatePolicy_ != com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy @@ -7339,7 +7900,7 @@ public Builder mergeUpdatePolicy( updatePolicyBuilder_.mergeFrom(value); } if (updatePolicy_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7356,7 +7917,7 @@ public Builder mergeUpdatePolicy( * */ public Builder clearUpdatePolicy() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x10000000); updatePolicy_ = null; if (updatePolicyBuilder_ != null) { updatePolicyBuilder_.dispose(); @@ -7378,7 +7939,7 @@ public Builder clearUpdatePolicy() { */ public com.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy.Builder getUpdatePolicyBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); return getUpdatePolicyFieldBuilder().getBuilder(); } @@ -7435,11 +7996,11 @@ public Builder clearUpdatePolicy() { java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { + if (!((bitField0_ & 0x20000000) != 0)) { versions_ = new java.util.ArrayList( versions_); - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; } } @@ -7672,7 +8233,7 @@ public Builder addAllVersions( public Builder clearVersions() { if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); } else { versionsBuilder_.clear(); @@ -7806,7 +8367,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerVersion.Builder addVersio com.google.cloud.compute.v1.InstanceGroupManagerVersion, com.google.cloud.compute.v1.InstanceGroupManagerVersion.Builder, com.google.cloud.compute.v1.InstanceGroupManagerVersionOrBuilder>( - versions_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + versions_, ((bitField0_ & 0x20000000) != 0), getParentForChildren(), isClean()); versions_ = null; } return versionsBuilder_; @@ -7825,7 +8386,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerVersion.Builder addVersio * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** * @@ -7888,7 +8449,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7905,7 +8466,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -7927,7 +8488,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java index 41b89918e694..19b95b264c55 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java @@ -835,6 +835,48 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing */ com.google.protobuf.ByteString getSelfLinkBytes(); + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return Whether the standbyPolicy field is set. + */ + boolean hasStandbyPolicy(); + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + * + * @return The standbyPolicy. + */ + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy getStandbyPolicy(); + /** + * + * + *
    +   * Standby policy for stopped and suspended instances.
    +   * 
    + * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder + getStandbyPolicyOrBuilder(); + /** * * @@ -981,6 +1023,56 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing */ int getTargetSize(); + /** + * + * + *
    +   * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +   * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return Whether the targetStoppedSize field is set. + */ + boolean hasTargetStoppedSize(); + /** + * + * + *
    +   * The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method.
    +   * 
    + * + * optional int32 target_stopped_size = 2419489; + * + * @return The targetStoppedSize. + */ + int getTargetStoppedSize(); + + /** + * + * + *
    +   * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +   * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return Whether the targetSuspendedSize field is set. + */ + boolean hasTargetSuspendedSize(); + /** + * + * + *
    +   * The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method.
    +   * 
    + * + * optional int32 target_suspended_size = 308085843; + * + * @return The targetSuspendedSize. + */ + int getTargetSuspendedSize(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicy.java new file mode 100644 index 000000000000..4c817ab49b48 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicy.java @@ -0,0 +1,964 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy} + */ +public final class InstanceGroupManagerStandbyPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) + InstanceGroupManagerStandbyPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceGroupManagerStandbyPolicy.newBuilder() to construct. + private InstanceGroupManagerStandbyPolicy( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceGroupManagerStandbyPolicy() { + mode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceGroupManagerStandbyPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.class, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder.class); + } + + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_MODE = 0; + */ + UNDEFINED_MODE(0), + /** + * + * + *
    +     * MIG does not automatically resume or start VMs in the standby pool when the group scales out.
    +     * 
    + * + * MANUAL = 119397318; + */ + MANUAL(119397318), + /** + * + * + *
    +     * MIG automatically resumes or starts VMs in the standby pool when the group scales out, and replenishes the standby pool afterwards.
    +     * 
    + * + * SCALE_OUT_POOL = 635394; + */ + SCALE_OUT_POOL(635394), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_MODE = 0; + */ + public static final int UNDEFINED_MODE_VALUE = 0; + /** + * + * + *
    +     * MIG does not automatically resume or start VMs in the standby pool when the group scales out.
    +     * 
    + * + * MANUAL = 119397318; + */ + public static final int MANUAL_VALUE = 119397318; + /** + * + * + *
    +     * MIG automatically resumes or starts VMs in the standby pool when the group scales out, and replenishes the standby pool afterwards.
    +     * 
    + * + * SCALE_OUT_POOL = 635394; + */ + public static final int SCALE_OUT_POOL_VALUE = 635394; + + 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 UNDEFINED_MODE; + case 119397318: + return MANUAL; + case 635394: + return SCALE_OUT_POOL; + 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.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.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.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Mode) + } + + private int bitField0_; + public static final int INITIAL_DELAY_SEC_FIELD_NUMBER = 263207002; + private int initialDelaySec_ = 0; + /** + * + * + *
    +   * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +   * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return Whether the initialDelaySec field is set. + */ + @java.lang.Override + public boolean hasInitialDelaySec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +   * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return The initialDelaySec. + */ + @java.lang.Override + public int getInitialDelaySec() { + return initialDelaySec_; + } + + public static final int MODE_FIELD_NUMBER = 3357091; + + @SuppressWarnings("serial") + private volatile java.lang.Object mode_ = ""; + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return Whether the mode field is set. + */ + @java.lang.Override + public boolean hasMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return The mode. + */ + @java.lang.Override + public java.lang.String getMode() { + java.lang.Object ref = mode_; + 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(); + mode_ = s; + return s; + } + } + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return The bytes for mode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModeBytes() { + java.lang.Object ref = mode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mode_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3357091, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(263207002, initialDelaySec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3357091, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(263207002, initialDelaySec_); + } + 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.compute.v1.InstanceGroupManagerStandbyPolicy)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy other = + (com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) obj; + + if (hasInitialDelaySec() != other.hasInitialDelaySec()) return false; + if (hasInitialDelaySec()) { + if (getInitialDelaySec() != other.getInitialDelaySec()) return false; + } + if (hasMode() != other.hasMode()) return false; + if (hasMode()) { + if (!getMode().equals(other.getMode())) 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 (hasInitialDelaySec()) { + hash = (37 * hash) + INITIAL_DELAY_SEC_FIELD_NUMBER; + hash = (53 * hash) + getInitialDelaySec(); + } + if (hasMode()) { + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + getMode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.class, + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + initialDelaySec_ = 0; + mode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy build() { + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy result = + new com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.initialDelaySec_ = initialDelaySec_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mode_ = mode_; + 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.compute.v1.InstanceGroupManagerStandbyPolicy) { + return mergeFrom((com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy.getDefaultInstance()) + return this; + if (other.hasInitialDelaySec()) { + setInitialDelaySec(other.getInitialDelaySec()); + } + if (other.hasMode()) { + mode_ = other.mode_; + 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 26856730: + { + mode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26856730 + case 2105656016: + { + initialDelaySec_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 2105656016 + 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 initialDelaySec_; + /** + * + * + *
    +     * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +     * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return Whether the initialDelaySec field is set. + */ + @java.lang.Override + public boolean hasInitialDelaySec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +     * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return The initialDelaySec. + */ + @java.lang.Override + public int getInitialDelaySec() { + return initialDelaySec_; + } + /** + * + * + *
    +     * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +     * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @param value The initialDelaySec to set. + * @return This builder for chaining. + */ + public Builder setInitialDelaySec(int value) { + + initialDelaySec_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +     * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return This builder for chaining. + */ + public Builder clearInitialDelaySec() { + bitField0_ = (bitField0_ & ~0x00000001); + initialDelaySec_ = 0; + onChanged(); + return this; + } + + private java.lang.Object mode_ = ""; + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @return Whether the mode field is set. + */ + public boolean hasMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @return The mode. + */ + public java.lang.String getMode() { + java.lang.Object ref = mode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @return The bytes for mode. + */ + public com.google.protobuf.ByteString getModeBytes() { + java.lang.Object ref = mode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + mode_ = getDefaultInstance().getMode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +     * Check the Mode enum for the list of possible values.
    +     * 
    + * + * optional string mode = 3357091; + * + * @param value The bytes for mode to set. + * @return This builder for chaining. + */ + public Builder setModeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mode_ = 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.compute.v1.InstanceGroupManagerStandbyPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) + private static final com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupManagerStandbyPolicy 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.compute.v1.InstanceGroupManagerStandbyPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicyOrBuilder.java new file mode 100644 index 000000000000..1775952685c5 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStandbyPolicyOrBuilder.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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface InstanceGroupManagerStandbyPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +   * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return Whether the initialDelaySec field is set. + */ + boolean hasInitialDelaySec(); + /** + * + * + *
    +   * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
    +   * 
    + * + * optional int32 initial_delay_sec = 263207002; + * + * @return The initialDelaySec. + */ + int getInitialDelaySec(); + + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return Whether the mode field is set. + */ + boolean hasMode(); + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return The mode. + */ + java.lang.String getMode(); + /** + * + * + *
    +   * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`.
    +   * Check the Mode enum for the list of possible values.
    +   * 
    + * + * optional string mode = 3357091; + * + * @return The bytes for mode. + */ + com.google.protobuf.ByteString getModeBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequest.java new file mode 100644 index 000000000000..2531289cf7db --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequest.java @@ -0,0 +1,739 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest} + */ +public final class InstanceGroupManagersResumeInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) + InstanceGroupManagersResumeInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceGroupManagersResumeInstancesRequest.newBuilder() to construct. + private InstanceGroupManagersResumeInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceGroupManagersResumeInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceGroupManagersResumeInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder.class); + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.InstanceGroupManagersResumeInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest other = + (com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) obj; + + if (!getInstancesList().equals(other.getInstancesList())) 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 (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest 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.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest 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.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest 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.compute.v1.InstanceGroupManagersResumeInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + 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.compute.v1.InstanceGroupManagersResumeInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest 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.compute.v1.InstanceGroupManagersResumeInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest build() { + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest result = + new com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + } + + @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.compute.v1.InstanceGroupManagersResumeInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance()) return this; + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000001; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.add(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.compute.v1.InstanceGroupManagersResumeInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) + private static final com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupManagersResumeInstancesRequest 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.compute.v1.InstanceGroupManagersResumeInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..603f1deb17ec --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersResumeInstancesRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface InstanceGroupManagersResumeInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequest.java new file mode 100644 index 000000000000..49e27c84d13b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequest.java @@ -0,0 +1,735 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest} + */ +public final class InstanceGroupManagersStartInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) + InstanceGroupManagersStartInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceGroupManagersStartInstancesRequest.newBuilder() to construct. + private InstanceGroupManagersStartInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceGroupManagersStartInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceGroupManagersStartInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder.class); + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.InstanceGroupManagersStartInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest other = + (com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) obj; + + if (!getInstancesList().equals(other.getInstancesList())) 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 (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest 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.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest 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.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest 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.compute.v1.InstanceGroupManagersStartInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + 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.compute.v1.InstanceGroupManagersStartInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest 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.compute.v1.InstanceGroupManagersStartInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest build() { + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest result = + new com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + } + + @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.compute.v1.InstanceGroupManagersStartInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance()) return this; + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000001; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.add(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.compute.v1.InstanceGroupManagersStartInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) + private static final com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupManagersStartInstancesRequest 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.compute.v1.InstanceGroupManagersStartInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..3b5b24d682b7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStartInstancesRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface InstanceGroupManagersStartInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequest.java new file mode 100644 index 000000000000..4024cbfdb352 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequest.java @@ -0,0 +1,866 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest} + */ +public final class InstanceGroupManagersStopInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) + InstanceGroupManagersStopInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceGroupManagersStopInstancesRequest.newBuilder() to construct. + private InstanceGroupManagersStopInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceGroupManagersStopInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceGroupManagersStopInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder.class); + } + + private int bitField0_; + public static final int FORCE_STOP_FIELD_NUMBER = 134762710; + private boolean forceStop_ = false; + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + @java.lang.Override + public boolean hasForceStop() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + @java.lang.Override + public boolean getForceStop() { + return forceStop_; + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(134762710, forceStop_); + } + 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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(134762710, forceStop_); + } + 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.compute.v1.InstanceGroupManagersStopInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest other = + (com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) obj; + + if (hasForceStop() != other.hasForceStop()) return false; + if (hasForceStop()) { + if (getForceStop() != other.getForceStop()) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasForceStop()) { + hash = (37 * hash) + FORCE_STOP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceStop()); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest 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.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest 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.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest 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.compute.v1.InstanceGroupManagersStopInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + 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.compute.v1.InstanceGroupManagersStopInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest 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.compute.v1.InstanceGroupManagersStopInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + forceStop_ = false; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest build() { + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest result = + new com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.forceStop_ = forceStop_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + 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.compute.v1.InstanceGroupManagersStopInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + .getDefaultInstance()) return this; + if (other.hasForceStop()) { + setForceStop(other.getForceStop()); + } + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000002; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + case 1078101680: + { + forceStop_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 1078101680 + 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 forceStop_; + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + @java.lang.Override + public boolean hasForceStop() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + @java.lang.Override + public boolean getForceStop() { + return forceStop_; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @param value The forceStop to set. + * @return This builder for chaining. + */ + public Builder setForceStop(boolean value) { + + forceStop_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return This builder for chaining. + */ + public Builder clearForceStop() { + bitField0_ = (bitField0_ & ~0x00000001); + forceStop_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.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.compute.v1.InstanceGroupManagersStopInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) + private static final com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupManagersStopInstancesRequest 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.compute.v1.InstanceGroupManagersStopInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..a139650f1ef4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersStopInstancesRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface InstanceGroupManagersStopInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + boolean hasForceStop(); + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + boolean getForceStop(); + + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequest.java new file mode 100644 index 000000000000..1ad1784b43ef --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequest.java @@ -0,0 +1,872 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest} + */ +public final class InstanceGroupManagersSuspendInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) + InstanceGroupManagersSuspendInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InstanceGroupManagersSuspendInstancesRequest.newBuilder() to construct. + private InstanceGroupManagersSuspendInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceGroupManagersSuspendInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceGroupManagersSuspendInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder.class); + } + + private int bitField0_; + public static final int FORCE_SUSPEND_FIELD_NUMBER = 27637480; + private boolean forceSuspend_ = false; + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + @java.lang.Override + public boolean hasForceSuspend() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + @java.lang.Override + public boolean getForceSuspend() { + return forceSuspend_; + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(27637480, forceSuspend_); + } + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(i)); + } + 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(27637480, forceSuspend_); + } + { + int dataSize = 0; + for (int i = 0; i < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.InstanceGroupManagersSuspendInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest other = + (com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) obj; + + if (hasForceSuspend() != other.hasForceSuspend()) return false; + if (hasForceSuspend()) { + if (getForceSuspend() != other.getForceSuspend()) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasForceSuspend()) { + hash = (37 * hash) + FORCE_SUSPEND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceSuspend()); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.class, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + forceSuspend_ = false; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest build() { + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest result = + new com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.forceSuspend_ = forceSuspend_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance()) return this; + if (other.hasForceSuspend()) { + setForceSuspend(other.getForceSuspend()); + } + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000002; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 221099840: + { + forceSuspend_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 221099840 + case 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 forceSuspend_; + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + @java.lang.Override + public boolean hasForceSuspend() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + @java.lang.Override + public boolean getForceSuspend() { + return forceSuspend_; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @param value The forceSuspend to set. + * @return This builder for chaining. + */ + public Builder setForceSuspend(boolean value) { + + forceSuspend_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return This builder for chaining. + */ + public Builder clearForceSuspend() { + bitField0_ = (bitField0_ & ~0x00000001); + forceSuspend_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.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.compute.v1.InstanceGroupManagersSuspendInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) + private static final com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceGroupManagersSuspendInstancesRequest 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.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..64bb3a2bc1a3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSuspendInstancesRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface InstanceGroupManagersSuspendInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + boolean hasForceSuspend(); + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + boolean getForceSuspend(); + + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java index b5e55d8bacfc..95cbb08736b0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java @@ -846,7 +846,7 @@ public com.google.protobuf.ByteString getAvailabilityZoneBytes() { * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -861,7 +861,7 @@ public com.google.protobuf.ProtocolStringList getAvailableFeaturesList() { * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -876,7 +876,7 @@ public int getAvailableFeaturesCount() { * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -892,7 +892,7 @@ public java.lang.String getAvailableFeatures(int index) { * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -3034,7 +3034,7 @@ private void ensureAvailableFeaturesIsMutable() { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3050,7 +3050,7 @@ public com.google.protobuf.ProtocolStringList getAvailableFeaturesList() { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3065,7 +3065,7 @@ public int getAvailableFeaturesCount() { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3081,7 +3081,7 @@ public java.lang.String getAvailableFeatures(int index) { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3097,7 +3097,7 @@ public com.google.protobuf.ByteString getAvailableFeaturesBytes(int index) { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3121,7 +3121,7 @@ public Builder setAvailableFeatures(int index, java.lang.String value) { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3144,7 +3144,7 @@ public Builder addAvailableFeatures(java.lang.String value) { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3164,7 +3164,7 @@ public Builder addAllAvailableFeatures(java.lang.Iterable valu * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * @@ -3183,7 +3183,7 @@ public Builder clearAvailableFeatures() { * * *
    -     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +     * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
          * Check the AvailableFeatures enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocationOrBuilder.java index 37bc88322edb..dbfed1161600 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocationOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectLocationOrBuilder.java @@ -102,7 +102,7 @@ public interface InterconnectLocationOrBuilder * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -115,7 +115,7 @@ public interface InterconnectLocationOrBuilder * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -128,7 +128,7 @@ public interface InterconnectLocationOrBuilder * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * @@ -142,7 +142,7 @@ public interface InterconnectLocationOrBuilder * * *
    -   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC
    +   * [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC
        * Check the AvailableFeatures enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/License.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/License.java index 32ce9e201bd2..b8e0fc6b5692 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/License.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/License.java @@ -434,6 +434,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int RESOURCE_REQUIREMENTS_FIELD_NUMBER = 214292769; private com.google.cloud.compute.v1.LicenseResourceRequirements resourceRequirements_; /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -445,6 +451,12 @@ public boolean hasResourceRequirements() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -458,6 +470,12 @@ public com.google.cloud.compute.v1.LicenseResourceRequirements getResourceRequir : resourceRequirements_; } /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1886,6 +1904,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.cloud.compute.v1.LicenseResourceRequirementsOrBuilder> resourceRequirementsBuilder_; /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1896,6 +1920,12 @@ public boolean hasResourceRequirements() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1912,6 +1942,12 @@ public com.google.cloud.compute.v1.LicenseResourceRequirements getResourceRequir } } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1931,6 +1967,12 @@ public Builder setResourceRequirements( return this; } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1947,6 +1989,12 @@ public Builder setResourceRequirements( return this; } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1972,6 +2020,12 @@ public Builder mergeResourceRequirements( return this; } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1987,6 +2041,12 @@ public Builder clearResourceRequirements() { return this; } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -1998,6 +2058,12 @@ public Builder clearResourceRequirements() { return getResourceRequirementsFieldBuilder().getBuilder(); } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -2013,6 +2079,12 @@ public Builder clearResourceRequirements() { } } /** + * + * + *
    +     * [Input Only] Deprecated.
    +     * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseOrBuilder.java index a9ea338d59d0..b054fe6c0b59 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseOrBuilder.java @@ -248,6 +248,12 @@ public interface LicenseOrBuilder com.google.protobuf.ByteString getNameBytes(); /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -256,6 +262,12 @@ public interface LicenseOrBuilder */ boolean hasResourceRequirements(); /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * @@ -264,6 +276,12 @@ public interface LicenseOrBuilder */ com.google.cloud.compute.v1.LicenseResourceRequirements getResourceRequirements(); /** + * + * + *
    +   * [Input Only] Deprecated.
    +   * 
    + * * * optional .google.cloud.compute.v1.LicenseResourceRequirements resource_requirements = 214292769; * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java index 91ecc2eed6bb..1fae1df3d338 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
        * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -82,7 +82,7 @@ public boolean hasMinGuestCpuCount() { * * *
    -   * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
        * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -100,7 +100,7 @@ public int getMinGuestCpuCount() { * * *
    -   * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
        * 
    * * optional int32 min_memory_mb = 504785894; @@ -115,7 +115,7 @@ public boolean hasMinMemoryMb() { * * *
    -   * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
        * 
    * * optional int32 min_memory_mb = 504785894; @@ -508,7 +508,7 @@ public Builder mergeFrom( * * *
    -     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
          * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -523,7 +523,7 @@ public boolean hasMinGuestCpuCount() { * * *
    -     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
          * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -538,7 +538,7 @@ public int getMinGuestCpuCount() { * * *
    -     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
          * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -557,7 +557,7 @@ public Builder setMinGuestCpuCount(int value) { * * *
    -     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
          * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -576,7 +576,7 @@ public Builder clearMinGuestCpuCount() { * * *
    -     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
          * 
    * * optional int32 min_memory_mb = 504785894; @@ -591,7 +591,7 @@ public boolean hasMinMemoryMb() { * * *
    -     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
          * 
    * * optional int32 min_memory_mb = 504785894; @@ -606,7 +606,7 @@ public int getMinMemoryMb() { * * *
    -     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
          * 
    * * optional int32 min_memory_mb = 504785894; @@ -625,7 +625,7 @@ public Builder setMinMemoryMb(int value) { * * *
    -     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +     * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
          * 
    * * optional int32 min_memory_mb = 504785894; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirementsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirementsOrBuilder.java index f14068331a17..7ae49359cbc8 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirementsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirementsOrBuilder.java @@ -28,7 +28,7 @@ public interface LicenseResourceRequirementsOrBuilder * * *
    -   * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
        * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -40,7 +40,7 @@ public interface LicenseResourceRequirementsOrBuilder * * *
    -   * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance.
        * 
    * * optional int32 min_guest_cpu_count = 477964836; @@ -53,7 +53,7 @@ public interface LicenseResourceRequirementsOrBuilder * * *
    -   * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
        * 
    * * optional int32 min_memory_mb = 504785894; @@ -65,7 +65,7 @@ public interface LicenseResourceRequirementsOrBuilder * * *
    -   * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    +   * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance.
        * 
    * * optional int32 min_memory_mb = 504785894; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequest.java new file mode 100644 index 000000000000..7f90ce991a19 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequest.java @@ -0,0 +1,1539 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for NetworkProfiles.List. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ListNetworkProfilesRequest} + */ +public final class ListNetworkProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListNetworkProfilesRequest) + ListNetworkProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkProfilesRequest.newBuilder() to construct. + private ListNetworkProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNetworkProfilesRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNetworkProfilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListNetworkProfilesRequest.class, + com.google.cloud.compute.v1.ListNetworkProfilesRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @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; + } + } + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @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; + } + } + + public static final int MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + /** + * + * + *
    +   * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +   * 
    + * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +   * 
    + * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @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; + } + } + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @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 PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @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; + } + } + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + /** + * + * + *
    +   * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +   * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +   * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListNetworkProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListNetworkProfilesRequest other = + (com.google.cloud.compute.v1.ListNetworkProfilesRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest 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 request message for NetworkProfiles.List. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ListNetworkProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListNetworkProfilesRequest) + com.google.cloud.compute.v1.ListNetworkProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListNetworkProfilesRequest.class, + com.google.cloud.compute.v1.ListNetworkProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListNetworkProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListNetworkProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListNetworkProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListNetworkProfilesRequest build() { + com.google.cloud.compute.v1.ListNetworkProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListNetworkProfilesRequest buildPartial() { + com.google.cloud.compute.v1.ListNetworkProfilesRequest result = + new com.google.cloud.compute.v1.ListNetworkProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.ListNetworkProfilesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + 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.compute.v1.ListNetworkProfilesRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListNetworkProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListNetworkProfilesRequest other) { + if (other == com.google.cloud.compute.v1.ListNetworkProfilesRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case -157380176 + 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 filter_ = ""; + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @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; + } + } + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @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; + } + } + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +     * 
    + * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + /** + * + * + *
    +     * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +     * 
    + * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +     * 
    + * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + /** + * + * + *
    +     * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +     * 
    + * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +     * 
    + * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @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; + } + } + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @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; + } + } + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +     * 
    + * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @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; + } + } + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @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; + } + } + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +     * 
    + * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 boolean returnPartialSuccess_; + /** + * + * + *
    +     * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +     * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +     * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + /** + * + * + *
    +     * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +     * 
    + * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +     * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = 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.compute.v1.ListNetworkProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListNetworkProfilesRequest) + private static final com.google.cloud.compute.v1.ListNetworkProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListNetworkProfilesRequest(); + } + + public static com.google.cloud.compute.v1.ListNetworkProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkProfilesRequest 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.compute.v1.ListNetworkProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..5d8fe43bf95b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListNetworkProfilesRequestOrBuilder.java @@ -0,0 +1,212 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface ListNetworkProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListNetworkProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
    +   * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
    +   * 
    + * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +   * 
    + * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + /** + * + * + *
    +   * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
    +   * 
    + * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
    +   * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
    +   * 
    + * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
    +   * 
    + * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +   * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + /** + * + * + *
    +   * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
    +   * 
    + * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Network.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Network.java index 525247646660..e76d2e465ec6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Network.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Network.java @@ -48,6 +48,7 @@ private Network() { kind_ = ""; name_ = ""; networkFirewallPolicyEnforcementOrder_ = ""; + networkProfile_ = ""; peerings_ = java.util.Collections.emptyList(); selfLink_ = ""; selfLinkWithId_ = ""; @@ -935,6 +936,72 @@ public com.google.protobuf.ByteString getNetworkFirewallPolicyEnforcementOrderBy } } + public static final int NETWORK_PROFILE_FIELD_NUMBER = 173112472; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkProfile_ = ""; + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return Whether the networkProfile field is set. + */ + @java.lang.Override + public boolean hasNetworkProfile() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return The networkProfile. + */ + @java.lang.Override + public java.lang.String getNetworkProfile() { + java.lang.Object ref = networkProfile_; + 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(); + networkProfile_ = s; + return s; + } + } + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return The bytes for networkProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkProfileBytes() { + java.lang.Object ref = networkProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PEERINGS_FIELD_NUMBER = 69883187; @SuppressWarnings("serial") @@ -1021,7 +1088,7 @@ public com.google.cloud.compute.v1.NetworkPeeringOrBuilder getPeeringsOrBuilder( */ @java.lang.Override public boolean hasRoutingConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -1073,7 +1140,7 @@ public com.google.cloud.compute.v1.NetworkRoutingConfigOrBuilder getRoutingConfi */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -1139,7 +1206,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -1285,7 +1352,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -1294,6 +1361,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < peerings_.size(); i++) { output.writeMessage(69883187, peerings_.get(i)); } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 173112472, networkProfile_); + } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 178678877, gatewayIPv4_); } @@ -1312,13 +1382,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(423757720, enableUlaInternalIpv6_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 498173265, firewallPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(523556059, getRoutingConfig()); } getUnknownFields().writeTo(output); @@ -1351,7 +1421,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -1360,6 +1430,9 @@ public int getSerializedSize() { for (int i = 0; i < peerings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(69883187, peerings_.get(i)); } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(173112472, networkProfile_); + } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(178678877, gatewayIPv4_); } @@ -1386,13 +1459,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(423757720, enableUlaInternalIpv6_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(498173265, firewallPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(523556059, getRoutingConfig()); } @@ -1465,6 +1538,10 @@ public boolean equals(final java.lang.Object obj) { if (!getNetworkFirewallPolicyEnforcementOrder() .equals(other.getNetworkFirewallPolicyEnforcementOrder())) return false; } + if (hasNetworkProfile() != other.hasNetworkProfile()) return false; + if (hasNetworkProfile()) { + if (!getNetworkProfile().equals(other.getNetworkProfile())) return false; + } if (!getPeeringsList().equals(other.getPeeringsList())) return false; if (hasRoutingConfig() != other.hasRoutingConfig()) return false; if (hasRoutingConfig()) { @@ -1542,6 +1619,10 @@ public int hashCode() { hash = (37 * hash) + NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER_FIELD_NUMBER; hash = (53 * hash) + getNetworkFirewallPolicyEnforcementOrder().hashCode(); } + if (hasNetworkProfile()) { + hash = (37 * hash) + NETWORK_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkProfile().hashCode(); + } if (getPeeringsCount() > 0) { hash = (37 * hash) + PEERINGS_FIELD_NUMBER; hash = (53 * hash) + getPeeringsList().hashCode(); @@ -1723,13 +1804,14 @@ public Builder clear() { mtu_ = 0; name_ = ""; networkFirewallPolicyEnforcementOrder_ = ""; + networkProfile_ = ""; if (peeringsBuilder_ == null) { peerings_ = java.util.Collections.emptyList(); } else { peerings_ = null; peeringsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); routingConfig_ = null; if (routingConfigBuilder_ != null) { routingConfigBuilder_.dispose(); @@ -1774,9 +1856,9 @@ public com.google.cloud.compute.v1.Network buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Network result) { if (peeringsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { peerings_ = java.util.Collections.unmodifiableList(peerings_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.peerings_ = peerings_; } else { @@ -1839,20 +1921,24 @@ private void buildPartial0(com.google.cloud.compute.v1.Network result) { result.networkFirewallPolicyEnforcementOrder_ = networkFirewallPolicyEnforcementOrder_; to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.routingConfig_ = - routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build(); + if (((from_bitField0_ & 0x00002000) != 0)) { + result.networkProfile_ = networkProfile_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.selfLink_ = selfLink_; + result.routingConfig_ = + routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build(); to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.selfLinkWithId_ = selfLinkWithId_; + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00020000) != 0)) { + result.selfLinkWithId_ = selfLinkWithId_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { subnetworks_.makeImmutable(); result.subnetworks_ = subnetworks_; } @@ -1961,11 +2047,16 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Network other) { bitField0_ |= 0x00001000; onChanged(); } + if (other.hasNetworkProfile()) { + networkProfile_ = other.networkProfile_; + bitField0_ |= 0x00002000; + onChanged(); + } if (peeringsBuilder_ == null) { if (!other.peerings_.isEmpty()) { if (peerings_.isEmpty()) { peerings_ = other.peerings_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensurePeeringsIsMutable(); peerings_.addAll(other.peerings_); @@ -1978,7 +2069,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Network other) { peeringsBuilder_.dispose(); peeringsBuilder_ = null; peerings_ = other.peerings_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); peeringsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPeeringsFieldBuilder() @@ -1993,18 +2084,18 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Network other) { } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasSelfLinkWithId()) { selfLinkWithId_ = other.selfLinkWithId_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (!other.subnetworks_.isEmpty()) { if (subnetworks_.isEmpty()) { subnetworks_ = other.subnetworks_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureSubnetworksIsMutable(); subnetworks_.addAll(other.subnetworks_); @@ -2076,7 +2167,7 @@ public Builder mergeFrom( case 356167698: { selfLinkWithId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 356167698 case 473874866: @@ -2098,6 +2189,12 @@ public Builder mergeFrom( } break; } // case 559065498 + case 1384899778: + { + networkProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 1384899778 case 1429431018: { gatewayIPv4_ = input.readStringRequireUtf8(); @@ -2138,7 +2235,7 @@ public Builder mergeFrom( case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case -645248918 case -309581174: @@ -2150,7 +2247,7 @@ public Builder mergeFrom( case -106518822: { input.readMessage(getRoutingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case -106518822 default: @@ -3532,13 +3629,133 @@ public Builder setNetworkFirewallPolicyEnforcementOrderBytes( return this; } + private java.lang.Object networkProfile_ = ""; + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @return Whether the networkProfile field is set. + */ + public boolean hasNetworkProfile() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @return The networkProfile. + */ + public java.lang.String getNetworkProfile() { + java.lang.Object ref = networkProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @return The bytes for networkProfile. + */ + public com.google.protobuf.ByteString getNetworkProfileBytes() { + java.lang.Object ref = networkProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @param value The networkProfile to set. + * @return This builder for chaining. + */ + public Builder setNetworkProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkProfile_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @return This builder for chaining. + */ + public Builder clearNetworkProfile() { + networkProfile_ = getDefaultInstance().getNetworkProfile(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * + * + *
    +     * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +     * 
    + * + * optional string network_profile = 173112472; + * + * @param value The bytes for networkProfile to set. + * @return This builder for chaining. + */ + public Builder setNetworkProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkProfile_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + private java.util.List peerings_ = java.util.Collections.emptyList(); private void ensurePeeringsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { peerings_ = new java.util.ArrayList(peerings_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -3753,7 +3970,7 @@ public Builder addAllPeerings( public Builder clearPeerings() { if (peeringsBuilder_ == null) { peerings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { peeringsBuilder_.clear(); @@ -3875,7 +4092,7 @@ public com.google.cloud.compute.v1.NetworkPeering.Builder addPeeringsBuilder(int com.google.cloud.compute.v1.NetworkPeering, com.google.cloud.compute.v1.NetworkPeering.Builder, com.google.cloud.compute.v1.NetworkPeeringOrBuilder>( - peerings_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + peerings_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); peerings_ = null; } return peeringsBuilder_; @@ -3900,7 +4117,7 @@ public com.google.cloud.compute.v1.NetworkPeering.Builder addPeeringsBuilder(int * @return Whether the routingConfig field is set. */ public boolean hasRoutingConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -3942,7 +4159,7 @@ public Builder setRoutingConfig(com.google.cloud.compute.v1.NetworkRoutingConfig } else { routingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3963,7 +4180,7 @@ public Builder setRoutingConfig( } else { routingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3979,7 +4196,7 @@ public Builder setRoutingConfig( */ public Builder mergeRoutingConfig(com.google.cloud.compute.v1.NetworkRoutingConfig value) { if (routingConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && routingConfig_ != null && routingConfig_ != com.google.cloud.compute.v1.NetworkRoutingConfig.getDefaultInstance()) { @@ -3991,7 +4208,7 @@ public Builder mergeRoutingConfig(com.google.cloud.compute.v1.NetworkRoutingConf routingConfigBuilder_.mergeFrom(value); } if (routingConfig_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -4007,7 +4224,7 @@ public Builder mergeRoutingConfig(com.google.cloud.compute.v1.NetworkRoutingConf * */ public Builder clearRoutingConfig() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); routingConfig_ = null; if (routingConfigBuilder_ != null) { routingConfigBuilder_.dispose(); @@ -4027,7 +4244,7 @@ public Builder clearRoutingConfig() { * */ public com.google.cloud.compute.v1.NetworkRoutingConfig.Builder getRoutingConfigBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getRoutingConfigFieldBuilder().getBuilder(); } @@ -4090,7 +4307,7 @@ public com.google.cloud.compute.v1.NetworkRoutingConfigOrBuilder getRoutingConfi * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4153,7 +4370,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4170,7 +4387,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -4192,7 +4409,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4210,7 +4427,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLinkWithId field is set. */ public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -4273,7 +4490,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { throw new NullPointerException(); } selfLinkWithId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4290,7 +4507,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { */ public Builder clearSelfLinkWithId() { selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -4312,7 +4529,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLinkWithId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4324,7 +4541,7 @@ private void ensureSubnetworksIsMutable() { if (!subnetworks_.isModifiable()) { subnetworks_ = new com.google.protobuf.LazyStringArrayList(subnetworks_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** * @@ -4404,7 +4621,7 @@ public Builder setSubnetworks(int index, java.lang.String value) { } ensureSubnetworksIsMutable(); subnetworks_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4426,7 +4643,7 @@ public Builder addSubnetworks(java.lang.String value) { } ensureSubnetworksIsMutable(); subnetworks_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4445,7 +4662,7 @@ public Builder addSubnetworks(java.lang.String value) { public Builder addAllSubnetworks(java.lang.Iterable values) { ensureSubnetworksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetworks_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4462,7 +4679,7 @@ public Builder addAllSubnetworks(java.lang.Iterable values) { */ public Builder clearSubnetworks() { subnetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -4486,7 +4703,7 @@ public Builder addSubnetworksBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSubnetworksIsMutable(); subnetworks_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java index ef27e2959874..651f7ad84e4c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java @@ -279,6 +279,26 @@ public enum NicType implements com.google.protobuf.ProtocolMessageEnum { * IDPF = 2242641; */ IDPF(2242641), + /** + * + * + *
    +     * IRDMA
    +     * 
    + * + * IRDMA = 69927695; + */ + IRDMA(69927695), + /** + * + * + *
    +     * MRDMA
    +     * 
    + * + * MRDMA = 73621779; + */ + MRDMA(73621779), /** * * @@ -332,6 +352,26 @@ public enum NicType implements com.google.protobuf.ProtocolMessageEnum { * IDPF = 2242641; */ public static final int IDPF_VALUE = 2242641; + /** + * + * + *
    +     * IRDMA
    +     * 
    + * + * IRDMA = 69927695; + */ + public static final int IRDMA_VALUE = 69927695; + /** + * + * + *
    +     * MRDMA
    +     * 
    + * + * MRDMA = 73621779; + */ + public static final int MRDMA_VALUE = 73621779; /** * * @@ -383,6 +423,10 @@ public static NicType forNumber(int value) { return GVNIC; case 2242641: return IDPF; + case 69927695: + return IRDMA; + case 73621779: + return MRDMA; case 67411801: return UNSPECIFIED_NIC_TYPE; case 452123481: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkOrBuilder.java index 3aa527e39c3b..49d126d31398 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkOrBuilder.java @@ -460,6 +460,43 @@ public interface NetworkOrBuilder */ com.google.protobuf.ByteString getNetworkFirewallPolicyEnforcementOrderBytes(); + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return Whether the networkProfile field is set. + */ + boolean hasNetworkProfile(); + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return The networkProfile. + */ + java.lang.String getNetworkProfile(); + /** + * + * + *
    +   * A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name}
    +   * 
    + * + * optional string network_profile = 173112472; + * + * @return The bytes for networkProfile. + */ + com.google.protobuf.ByteString getNetworkProfileBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfile.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfile.java new file mode 100644 index 000000000000..f60be9697761 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfile.java @@ -0,0 +1,2655 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * NetworkProfile represents a Google managed network profile resource.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfile} + */ +public final class NetworkProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkProfile) + NetworkProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkProfile.newBuilder() to construct. + private NetworkProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkProfile() { + creationTimestamp_ = ""; + description_ = ""; + kind_ = ""; + name_ = ""; + selfLink_ = ""; + selfLinkWithId_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkProfile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfile.class, + com.google.cloud.compute.v1.NetworkProfile.Builder.class); + } + + private int bitField0_; + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; + + @SuppressWarnings("serial") + private volatile java.lang.Object creationTimestamp_ = ""; + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + @java.lang.Override + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + @java.lang.Override + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + 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(); + creationTimestamp_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 422937596; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @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; + } + } + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @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; + } + } + + public static final int FEATURES_FIELD_NUMBER = 246211645; + private com.google.cloud.compute.v1.NetworkProfileNetworkFeatures features_; + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return Whether the features field is set. + */ + @java.lang.Override + public boolean hasFeatures() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return The features. + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures getFeatures() { + return features_ == null + ? com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance() + : features_; + } + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder getFeaturesOrBuilder() { + return features_ == null + ? com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance() + : features_; + } + + public static final int ID_FIELD_NUMBER = 3355; + private long id_ = 0L; + /** + * + * + *
    +   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +   * 
    + * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +   * 
    + * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 290430901; + private com.google.cloud.compute.v1.NetworkProfileLocation location_; + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return Whether the location field is set. + */ + @java.lang.Override + public boolean hasLocation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return The location. + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileLocation getLocation() { + return location_ == null + ? com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance() + : location_; + } + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder getLocationOrBuilder() { + return location_ == null + ? com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance() + : location_; + } + + public static final int NAME_FIELD_NUMBER = 3373707; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @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; + } + } + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_WITH_ID_FIELD_NUMBER = 44520962; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLinkWithId_ = ""; + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + @java.lang.Override + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + @java.lang.Override + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + 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(); + selfLinkWithId_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + @java.lang.Override + public boolean hasZone() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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 (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt64(3355, id_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(246211645, getFeatures()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(290430901, getLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(246211645, getFeatures()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(290430901, getLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.NetworkProfile)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.NetworkProfile other = + (com.google.cloud.compute.v1.NetworkProfile) obj; + + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasFeatures() != other.hasFeatures()) return false; + if (hasFeatures()) { + if (!getFeatures().equals(other.getFeatures())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (getId() != other.getId()) return false; + } + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation().equals(other.getLocation())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (hasSelfLinkWithId() != other.hasSelfLinkWithId()) return false; + if (hasSelfLinkWithId()) { + if (!getSelfLinkWithId().equals(other.getSelfLinkWithId())) return false; + } + if (hasZone() != other.hasZone()) return false; + if (hasZone()) { + if (!getZone().equals(other.getZone())) 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 (hasCreationTimestamp()) { + hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasFeatures()) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeatures().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (hasSelfLinkWithId()) { + hash = (37 * hash) + SELF_LINK_WITH_ID_FIELD_NUMBER; + hash = (53 * hash) + getSelfLinkWithId().hashCode(); + } + if (hasZone()) { + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.NetworkProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfile 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.compute.v1.NetworkProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfile 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.compute.v1.NetworkProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.NetworkProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfile 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.compute.v1.NetworkProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfile 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.compute.v1.NetworkProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfile 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.compute.v1.NetworkProfile 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; + } + /** + * + * + *
    +   * NetworkProfile represents a Google managed network profile resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkProfile) + com.google.cloud.compute.v1.NetworkProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfile.class, + com.google.cloud.compute.v1.NetworkProfile.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.NetworkProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeaturesFieldBuilder(); + getLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + creationTimestamp_ = ""; + description_ = ""; + features_ = null; + if (featuresBuilder_ != null) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + } + id_ = 0L; + kind_ = ""; + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; + } + name_ = ""; + selfLink_ = ""; + selfLinkWithId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfile getDefaultInstanceForType() { + return com.google.cloud.compute.v1.NetworkProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfile build() { + com.google.cloud.compute.v1.NetworkProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfile buildPartial() { + com.google.cloud.compute.v1.NetworkProfile result = + new com.google.cloud.compute.v1.NetworkProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.NetworkProfile result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.creationTimestamp_ = creationTimestamp_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.features_ = featuresBuilder_ == null ? features_ : featuresBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.selfLinkWithId_ = selfLinkWithId_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x00000200; + } + 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.compute.v1.NetworkProfile) { + return mergeFrom((com.google.cloud.compute.v1.NetworkProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.NetworkProfile other) { + if (other == com.google.cloud.compute.v1.NetworkProfile.getDefaultInstance()) return this; + if (other.hasCreationTimestamp()) { + creationTimestamp_ = other.creationTimestamp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFeatures()) { + mergeFeatures(other.getFeatures()); + } + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasSelfLinkWithId()) { + selfLinkWithId_ = other.selfLinkWithId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasZone()) { + zone_ = other.zone_; + bitField0_ |= 0x00000200; + 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 26840: + { + id_ = input.readUInt64(); + bitField0_ |= 0x00000008; + break; + } // case 26840 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26336418 + case 26989658: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 26989658 + case 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 29957474 + case 244202930: + { + creationTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 244202930 + case 356167698: + { + selfLinkWithId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 356167698 + case 1969693162: + { + input.readMessage(getFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 1969693162 + case -1971520086: + { + input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case -1971520086 + case -911466526: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -911466526 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case -645248918 + 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 creationTimestamp_ = ""; + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creationTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @param value The creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestamp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return This builder for chaining. + */ + public Builder clearCreationTimestamp() { + creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Creation timestamp in RFC3339 text format.
    +     * 
    + * + * optional string creation_timestamp = 30525366; + * + * @param value The bytes for creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] An optional description of this resource.
    +     * 
    + * + * optional string description = 422937596; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.NetworkProfileNetworkFeatures features_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures, + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder, + com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder> + featuresBuilder_; + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return Whether the features field is set. + */ + public boolean hasFeatures() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return The features. + */ + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures getFeatures() { + if (featuresBuilder_ == null) { + return features_ == null + ? com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance() + : features_; + } else { + return featuresBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public Builder setFeatures(com.google.cloud.compute.v1.NetworkProfileNetworkFeatures value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + features_ = value; + } else { + featuresBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public Builder setFeatures( + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder builderForValue) { + if (featuresBuilder_ == null) { + features_ = builderForValue.build(); + } else { + featuresBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public Builder mergeFeatures(com.google.cloud.compute.v1.NetworkProfileNetworkFeatures value) { + if (featuresBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && features_ != null + && features_ + != com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance()) { + getFeaturesBuilder().mergeFrom(value); + } else { + features_ = value; + } + } else { + featuresBuilder_.mergeFrom(value); + } + if (features_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public Builder clearFeatures() { + bitField0_ = (bitField0_ & ~0x00000004); + features_ = null; + if (featuresBuilder_ != null) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder getFeaturesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + public com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder + getFeaturesOrBuilder() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilder(); + } else { + return features_ == null + ? com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance() + : features_; + } + } + /** + * + * + *
    +     * [Output Only] Features supported by the network.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures, + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder, + com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures, + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder, + com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder>( + getFeatures(), getParentForChildren(), isClean()); + features_ = null; + } + return featuresBuilder_; + } + + private long id_; + /** + * + * + *
    +     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +     * 
    + * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +     * 
    + * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + * + * + *
    +     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +     * 
    + * + * optional uint64 id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +     * 
    + * + * optional uint64 id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000008); + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.NetworkProfileLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileLocation, + com.google.cloud.compute.v1.NetworkProfileLocation.Builder, + com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder> + locationBuilder_; + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return Whether the location field is set. + */ + public boolean hasLocation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return The location. + */ + public com.google.cloud.compute.v1.NetworkProfileLocation getLocation() { + if (locationBuilder_ == null) { + return location_ == null + ? com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance() + : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public Builder setLocation(com.google.cloud.compute.v1.NetworkProfileLocation value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + } else { + locationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public Builder setLocation( + com.google.cloud.compute.v1.NetworkProfileLocation.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public Builder mergeLocation(com.google.cloud.compute.v1.NetworkProfileLocation value) { + if (locationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && location_ != null + && location_ + != com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance()) { + getLocationBuilder().mergeFrom(value); + } else { + location_ = value; + } + } else { + locationBuilder_.mergeFrom(value); + } + if (location_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public Builder clearLocation() { + bitField0_ = (bitField0_ & ~0x00000020); + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public com.google.cloud.compute.v1.NetworkProfileLocation.Builder getLocationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + public com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null + ? com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance() + : location_; + } + } + /** + * + * + *
    +     * [Output Only] Location to which the network is restricted.
    +     * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileLocation, + com.google.cloud.compute.v1.NetworkProfileLocation.Builder, + com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfileLocation, + com.google.cloud.compute.v1.NetworkProfileLocation.Builder, + com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); + location_ = null; + } + return locationBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Name of the resource.
    +     * 
    + * + * optional string name = 3373707; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for the resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object selfLinkWithId_ = ""; + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLinkWithId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @param value The selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLinkWithId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return This builder for chaining. + */ + public Builder clearSelfLinkWithId() { + selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource with the resource id.
    +     * 
    + * + * optional string self_link_with_id = 44520962; + * + * @param value The bytes for selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLinkWithId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Zone to which the network is restricted.
    +     * 
    + * + * optional string zone = 3744684; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000200; + 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.compute.v1.NetworkProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkProfile) + private static final com.google.cloud.compute.v1.NetworkProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkProfile(); + } + + public static com.google.cloud.compute.v1.NetworkProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkProfile 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.compute.v1.NetworkProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocation.java new file mode 100644 index 000000000000..9db97fd48404 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocation.java @@ -0,0 +1,959 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfileLocation} + */ +public final class NetworkProfileLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkProfileLocation) + NetworkProfileLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkProfileLocation.newBuilder() to construct. + private NetworkProfileLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkProfileLocation() { + name_ = ""; + scope_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkProfileLocation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfileLocation.class, + com.google.cloud.compute.v1.NetworkProfileLocation.Builder.class); + } + + /** + * + * + *
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileLocation.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SCOPE = 0; + */ + UNDEFINED_SCOPE(0), + /** REGION = 266017524; */ + REGION(266017524), + /** ZONE = 2759596; */ + ZONE(2759596), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SCOPE = 0; + */ + public static final int UNDEFINED_SCOPE_VALUE = 0; + /** REGION = 266017524; */ + public static final int REGION_VALUE = 266017524; + /** ZONE = 2759596; */ + public static final int ZONE_VALUE = 2759596; + + 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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_SCOPE; + case 266017524: + return REGION; + case 2759596: + return ZONE; + 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 Scope findValueByNumber(int number) { + return Scope.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.compute.v1.NetworkProfileLocation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope 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 Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileLocation.Scope) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 3373707; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 3373707; + * + * @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; + } + } + /** + * optional string name = 3373707; + * + * @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 SCOPE_FIELD_NUMBER = 109264468; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + 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(); + scope_ = s; + return s; + } + } + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 109264468, scope_); + } + 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.GeneratedMessageV3.computeStringSize(3373707, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109264468, scope_); + } + 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.compute.v1.NetworkProfileLocation)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.NetworkProfileLocation other = + (com.google.cloud.compute.v1.NetworkProfileLocation) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) 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 (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation 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.compute.v1.NetworkProfileLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation 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.compute.v1.NetworkProfileLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation 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.compute.v1.NetworkProfileLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation 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.compute.v1.NetworkProfileLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation 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.compute.v1.NetworkProfileLocation 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfileLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkProfileLocation) + com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfileLocation.class, + com.google.cloud.compute.v1.NetworkProfileLocation.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.NetworkProfileLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + scope_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileLocation getDefaultInstanceForType() { + return com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileLocation build() { + com.google.cloud.compute.v1.NetworkProfileLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileLocation buildPartial() { + com.google.cloud.compute.v1.NetworkProfileLocation result = + new com.google.cloud.compute.v1.NetworkProfileLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.NetworkProfileLocation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scope_ = scope_; + 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.compute.v1.NetworkProfileLocation) { + return mergeFrom((com.google.cloud.compute.v1.NetworkProfileLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.NetworkProfileLocation other) { + if (other == com.google.cloud.compute.v1.NetworkProfileLocation.getDefaultInstance()) + return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScope()) { + scope_ = other.scope_; + 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 26989658: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26989658 + case 874115746: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 874115746 + 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_ = ""; + /** + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string name = 3373707; + * + * @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; + } + } + /** + * optional string name = 3373707; + * + * @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; + } + } + /** + * optional string name = 3373707; + * + * @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; + } + /** + * optional string name = 3373707; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string name = 3373707; + * + * @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 scope_ = ""; + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     *
    +     * Check the Scope enum for the list of possible values.
    +     * 
    + * + * optional string scope = 109264468; + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = 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.compute.v1.NetworkProfileLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkProfileLocation) + private static final com.google.cloud.compute.v1.NetworkProfileLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkProfileLocation(); + } + + public static com.google.cloud.compute.v1.NetworkProfileLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkProfileLocation 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.compute.v1.NetworkProfileLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocationOrBuilder.java new file mode 100644 index 000000000000..c33db898a76b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileLocationOrBuilder.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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface NetworkProfileLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkProfileLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * optional string name = 3373707; + * + * @return The name. + */ + java.lang.String getName(); + /** + * optional string name = 3373707; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return The scope. + */ + java.lang.String getScope(); + /** + * + * + *
    +   *
    +   * Check the Scope enum for the list of possible values.
    +   * 
    + * + * optional string scope = 109264468; + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeatures.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeatures.java new file mode 100644 index 000000000000..02f21a08c2c7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeatures.java @@ -0,0 +1,8830 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures} + */ +public final class NetworkProfileNetworkFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkProfileNetworkFeatures) + NetworkProfileNetworkFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkProfileNetworkFeatures.newBuilder() to construct. + private NetworkProfileNetworkFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkProfileNetworkFeatures() { + addressPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowAliasIpRanges_ = ""; + allowAutoModeSubnet_ = ""; + allowClassDFirewalls_ = ""; + allowCloudNat_ = ""; + allowCloudRouter_ = ""; + allowExternalIpAccess_ = ""; + allowInterconnect_ = ""; + allowLoadBalancing_ = ""; + allowMultiNicInSameNetwork_ = ""; + allowPacketMirroring_ = ""; + allowPrivateGoogleAccess_ = ""; + allowPsc_ = ""; + allowSameNetworkUnicast_ = ""; + allowStaticRoutes_ = ""; + allowSubInterfaces_ = ""; + allowVpcPeering_ = ""; + allowVpn_ = ""; + interfaceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subnetPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subnetStackTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unicast_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkProfileNetworkFeatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.class, + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder.class); + } + + /** + * + * + *
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AddressPurposes} + */ + public enum AddressPurposes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ADDRESS_PURPOSES = 0; + */ + UNDEFINED_ADDRESS_PURPOSES(0), + /** + * + * + *
    +     * DNS resolver address in the subnetwork.
    +     * 
    + * + * DNS_RESOLVER = 476114556; + */ + DNS_RESOLVER(476114556), + /** + * + * + *
    +     * VM internal/alias IP, Internal LB service IP, etc.
    +     * 
    + * + * GCE_ENDPOINT = 230515243; + */ + GCE_ENDPOINT(230515243), + /** + * + * + *
    +     * A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range.
    +     * 
    + * + * IPSEC_INTERCONNECT = 340437251; + */ + IPSEC_INTERCONNECT(340437251), + /** + * + * + *
    +     * External IP automatically reserved for Cloud NAT.
    +     * 
    + * + * NAT_AUTO = 163666477; + */ + NAT_AUTO(163666477), + /** + * + * + *
    +     * A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL
    +     * 
    + * + * PRIVATE_SERVICE_CONNECT = 48134724; + */ + PRIVATE_SERVICE_CONNECT(48134724), + /** + * + * + *
    +     * A regional internal IP address range reserved for Serverless.
    +     * 
    + * + * SERVERLESS = 270492508; + */ + SERVERLESS(270492508), + /** + * + * + *
    +     * A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.
    +     * 
    + * + * SHARED_LOADBALANCER_VIP = 294447572; + */ + SHARED_LOADBALANCER_VIP(294447572), + /** + * + * + *
    +     * IP range for peer networks.
    +     * 
    + * + * VPC_PEERING = 400800170; + */ + VPC_PEERING(400800170), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ADDRESS_PURPOSES = 0; + */ + public static final int UNDEFINED_ADDRESS_PURPOSES_VALUE = 0; + /** + * + * + *
    +     * DNS resolver address in the subnetwork.
    +     * 
    + * + * DNS_RESOLVER = 476114556; + */ + public static final int DNS_RESOLVER_VALUE = 476114556; + /** + * + * + *
    +     * VM internal/alias IP, Internal LB service IP, etc.
    +     * 
    + * + * GCE_ENDPOINT = 230515243; + */ + public static final int GCE_ENDPOINT_VALUE = 230515243; + /** + * + * + *
    +     * A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range.
    +     * 
    + * + * IPSEC_INTERCONNECT = 340437251; + */ + public static final int IPSEC_INTERCONNECT_VALUE = 340437251; + /** + * + * + *
    +     * External IP automatically reserved for Cloud NAT.
    +     * 
    + * + * NAT_AUTO = 163666477; + */ + public static final int NAT_AUTO_VALUE = 163666477; + /** + * + * + *
    +     * A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL
    +     * 
    + * + * PRIVATE_SERVICE_CONNECT = 48134724; + */ + public static final int PRIVATE_SERVICE_CONNECT_VALUE = 48134724; + /** + * + * + *
    +     * A regional internal IP address range reserved for Serverless.
    +     * 
    + * + * SERVERLESS = 270492508; + */ + public static final int SERVERLESS_VALUE = 270492508; + /** + * + * + *
    +     * A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules.
    +     * 
    + * + * SHARED_LOADBALANCER_VIP = 294447572; + */ + public static final int SHARED_LOADBALANCER_VIP_VALUE = 294447572; + /** + * + * + *
    +     * IP range for peer networks.
    +     * 
    + * + * VPC_PEERING = 400800170; + */ + public static final int VPC_PEERING_VALUE = 400800170; + + 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 AddressPurposes 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 AddressPurposes forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ADDRESS_PURPOSES; + case 476114556: + return DNS_RESOLVER; + case 230515243: + return GCE_ENDPOINT; + case 340437251: + return IPSEC_INTERCONNECT; + case 163666477: + return NAT_AUTO; + case 48134724: + return PRIVATE_SERVICE_CONNECT; + case 270492508: + return SERVERLESS; + case 294447572: + return SHARED_LOADBALANCER_VIP; + case 400800170: + return VPC_PEERING; + 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 AddressPurposes findValueByNumber(int number) { + return AddressPurposes.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AddressPurposes[] VALUES = values(); + + public static AddressPurposes 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 AddressPurposes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AddressPurposes) + } + + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowAliasIpRanges} + */ + public enum AllowAliasIpRanges implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_ALIAS_IP_RANGES = 0; + */ + UNDEFINED_ALLOW_ALIAS_IP_RANGES(0), + /** ALIAS_IP_RANGES_ALLOWED = 464867048; */ + ALIAS_IP_RANGES_ALLOWED(464867048), + /** ALIAS_IP_RANGES_BLOCKED = 281030444; */ + ALIAS_IP_RANGES_BLOCKED(281030444), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_ALIAS_IP_RANGES = 0; + */ + public static final int UNDEFINED_ALLOW_ALIAS_IP_RANGES_VALUE = 0; + /** ALIAS_IP_RANGES_ALLOWED = 464867048; */ + public static final int ALIAS_IP_RANGES_ALLOWED_VALUE = 464867048; + /** ALIAS_IP_RANGES_BLOCKED = 281030444; */ + public static final int ALIAS_IP_RANGES_BLOCKED_VALUE = 281030444; + + 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 AllowAliasIpRanges 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 AllowAliasIpRanges forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_ALIAS_IP_RANGES; + case 464867048: + return ALIAS_IP_RANGES_ALLOWED; + case 281030444: + return ALIAS_IP_RANGES_BLOCKED; + 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 AllowAliasIpRanges findValueByNumber(int number) { + return AllowAliasIpRanges.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final AllowAliasIpRanges[] VALUES = values(); + + public static AllowAliasIpRanges 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 AllowAliasIpRanges(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowAliasIpRanges) + } + + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowAutoModeSubnet} + */ + public enum AllowAutoModeSubnet implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_AUTO_MODE_SUBNET = 0; + */ + UNDEFINED_ALLOW_AUTO_MODE_SUBNET(0), + /** AUTO_MODE_SUBNET_ALLOWED = 391042610; */ + AUTO_MODE_SUBNET_ALLOWED(391042610), + /** AUTO_MODE_SUBNET_BLOCKED = 207206006; */ + AUTO_MODE_SUBNET_BLOCKED(207206006), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_AUTO_MODE_SUBNET = 0; + */ + public static final int UNDEFINED_ALLOW_AUTO_MODE_SUBNET_VALUE = 0; + /** AUTO_MODE_SUBNET_ALLOWED = 391042610; */ + public static final int AUTO_MODE_SUBNET_ALLOWED_VALUE = 391042610; + /** AUTO_MODE_SUBNET_BLOCKED = 207206006; */ + public static final int AUTO_MODE_SUBNET_BLOCKED_VALUE = 207206006; + + 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 AllowAutoModeSubnet 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 AllowAutoModeSubnet forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_AUTO_MODE_SUBNET; + case 391042610: + return AUTO_MODE_SUBNET_ALLOWED; + case 207206006: + return AUTO_MODE_SUBNET_BLOCKED; + 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 AllowAutoModeSubnet findValueByNumber(int number) { + return AllowAutoModeSubnet.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final AllowAutoModeSubnet[] VALUES = values(); + + public static AllowAutoModeSubnet 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 AllowAutoModeSubnet(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowAutoModeSubnet) + } + + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowClassDFirewalls} + */ + public enum AllowClassDFirewalls implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLASS_D_FIREWALLS = 0; + */ + UNDEFINED_ALLOW_CLASS_D_FIREWALLS(0), + /** CLASS_D_FIREWALLS_ALLOWED = 348219386; */ + CLASS_D_FIREWALLS_ALLOWED(348219386), + /** CLASS_D_FIREWALLS_BLOCKED = 164382782; */ + CLASS_D_FIREWALLS_BLOCKED(164382782), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLASS_D_FIREWALLS = 0; + */ + public static final int UNDEFINED_ALLOW_CLASS_D_FIREWALLS_VALUE = 0; + /** CLASS_D_FIREWALLS_ALLOWED = 348219386; */ + public static final int CLASS_D_FIREWALLS_ALLOWED_VALUE = 348219386; + /** CLASS_D_FIREWALLS_BLOCKED = 164382782; */ + public static final int CLASS_D_FIREWALLS_BLOCKED_VALUE = 164382782; + + 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 AllowClassDFirewalls 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 AllowClassDFirewalls forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_CLASS_D_FIREWALLS; + case 348219386: + return CLASS_D_FIREWALLS_ALLOWED; + case 164382782: + return CLASS_D_FIREWALLS_BLOCKED; + 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 AllowClassDFirewalls findValueByNumber(int number) { + return AllowClassDFirewalls.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final AllowClassDFirewalls[] VALUES = values(); + + public static AllowClassDFirewalls 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 AllowClassDFirewalls(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowClassDFirewalls) + } + + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowCloudNat} + */ + public enum AllowCloudNat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLOUD_NAT = 0; + */ + UNDEFINED_ALLOW_CLOUD_NAT(0), + /** CLOUD_NAT_ALLOWED = 245931296; */ + CLOUD_NAT_ALLOWED(245931296), + /** CLOUD_NAT_BLOCKED = 62094692; */ + CLOUD_NAT_BLOCKED(62094692), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLOUD_NAT = 0; + */ + public static final int UNDEFINED_ALLOW_CLOUD_NAT_VALUE = 0; + /** CLOUD_NAT_ALLOWED = 245931296; */ + public static final int CLOUD_NAT_ALLOWED_VALUE = 245931296; + /** CLOUD_NAT_BLOCKED = 62094692; */ + public static final int CLOUD_NAT_BLOCKED_VALUE = 62094692; + + 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 AllowCloudNat 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 AllowCloudNat forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_CLOUD_NAT; + case 245931296: + return CLOUD_NAT_ALLOWED; + case 62094692: + return CLOUD_NAT_BLOCKED; + 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 AllowCloudNat findValueByNumber(int number) { + return AllowCloudNat.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final AllowCloudNat[] VALUES = values(); + + public static AllowCloudNat 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 AllowCloudNat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowCloudNat) + } + + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowCloudRouter} + */ + public enum AllowCloudRouter implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLOUD_ROUTER = 0; + */ + UNDEFINED_ALLOW_CLOUD_ROUTER(0), + /** CLOUD_ROUTER_ALLOWED = 365388284; */ + CLOUD_ROUTER_ALLOWED(365388284), + /** CLOUD_ROUTER_BLOCKED = 181551680; */ + CLOUD_ROUTER_BLOCKED(181551680), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_CLOUD_ROUTER = 0; + */ + public static final int UNDEFINED_ALLOW_CLOUD_ROUTER_VALUE = 0; + /** CLOUD_ROUTER_ALLOWED = 365388284; */ + public static final int CLOUD_ROUTER_ALLOWED_VALUE = 365388284; + /** CLOUD_ROUTER_BLOCKED = 181551680; */ + public static final int CLOUD_ROUTER_BLOCKED_VALUE = 181551680; + + 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 AllowCloudRouter 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 AllowCloudRouter forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_CLOUD_ROUTER; + case 365388284: + return CLOUD_ROUTER_ALLOWED; + case 181551680: + return CLOUD_ROUTER_BLOCKED; + 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 AllowCloudRouter findValueByNumber(int number) { + return AllowCloudRouter.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final AllowCloudRouter[] VALUES = values(); + + public static AllowCloudRouter 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 AllowCloudRouter(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowCloudRouter) + } + + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowExternalIpAccess} + */ + public enum AllowExternalIpAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS = 0; + */ + UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS(0), + /** EXTERNAL_IP_ACCESS_ALLOWED = 109530193; */ + EXTERNAL_IP_ACCESS_ALLOWED(109530193), + /** EXTERNAL_IP_ACCESS_BLOCKED = 462564501; */ + EXTERNAL_IP_ACCESS_BLOCKED(462564501), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS = 0; + */ + public static final int UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS_VALUE = 0; + /** EXTERNAL_IP_ACCESS_ALLOWED = 109530193; */ + public static final int EXTERNAL_IP_ACCESS_ALLOWED_VALUE = 109530193; + /** EXTERNAL_IP_ACCESS_BLOCKED = 462564501; */ + public static final int EXTERNAL_IP_ACCESS_BLOCKED_VALUE = 462564501; + + 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 AllowExternalIpAccess 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 AllowExternalIpAccess forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS; + case 109530193: + return EXTERNAL_IP_ACCESS_ALLOWED; + case 462564501: + return EXTERNAL_IP_ACCESS_BLOCKED; + 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 AllowExternalIpAccess findValueByNumber(int number) { + return AllowExternalIpAccess.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(6); + } + + private static final AllowExternalIpAccess[] VALUES = values(); + + public static AllowExternalIpAccess 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 AllowExternalIpAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowExternalIpAccess) + } + + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowInterconnect} + */ + public enum AllowInterconnect implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_INTERCONNECT = 0; + */ + UNDEFINED_ALLOW_INTERCONNECT(0), + /** INTERCONNECT_ALLOWED = 162845399; */ + INTERCONNECT_ALLOWED(162845399), + /** INTERCONNECT_BLOCKED = 515879707; */ + INTERCONNECT_BLOCKED(515879707), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_INTERCONNECT = 0; + */ + public static final int UNDEFINED_ALLOW_INTERCONNECT_VALUE = 0; + /** INTERCONNECT_ALLOWED = 162845399; */ + public static final int INTERCONNECT_ALLOWED_VALUE = 162845399; + /** INTERCONNECT_BLOCKED = 515879707; */ + public static final int INTERCONNECT_BLOCKED_VALUE = 515879707; + + 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 AllowInterconnect 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 AllowInterconnect forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_INTERCONNECT; + case 162845399: + return INTERCONNECT_ALLOWED; + case 515879707: + return INTERCONNECT_BLOCKED; + 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 AllowInterconnect findValueByNumber(int number) { + return AllowInterconnect.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(7); + } + + private static final AllowInterconnect[] VALUES = values(); + + public static AllowInterconnect 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 AllowInterconnect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowInterconnect) + } + + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowLoadBalancing} + */ + public enum AllowLoadBalancing implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_LOAD_BALANCING = 0; + */ + UNDEFINED_ALLOW_LOAD_BALANCING(0), + /** LOAD_BALANCING_ALLOWED = 28407977; */ + LOAD_BALANCING_ALLOWED(28407977), + /** LOAD_BALANCING_BLOCKED = 381442285; */ + LOAD_BALANCING_BLOCKED(381442285), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_LOAD_BALANCING = 0; + */ + public static final int UNDEFINED_ALLOW_LOAD_BALANCING_VALUE = 0; + /** LOAD_BALANCING_ALLOWED = 28407977; */ + public static final int LOAD_BALANCING_ALLOWED_VALUE = 28407977; + /** LOAD_BALANCING_BLOCKED = 381442285; */ + public static final int LOAD_BALANCING_BLOCKED_VALUE = 381442285; + + 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 AllowLoadBalancing 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 AllowLoadBalancing forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_LOAD_BALANCING; + case 28407977: + return LOAD_BALANCING_ALLOWED; + case 381442285: + return LOAD_BALANCING_BLOCKED; + 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 AllowLoadBalancing findValueByNumber(int number) { + return AllowLoadBalancing.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(8); + } + + private static final AllowLoadBalancing[] VALUES = values(); + + public static AllowLoadBalancing 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 AllowLoadBalancing(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowLoadBalancing) + } + + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowMultiNicInSameNetwork} + */ + public enum AllowMultiNicInSameNetwork implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK = 0; + */ + UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK(0), + /** MULTI_NIC_IN_SAME_NETWORK_ALLOWED = 457555419; */ + MULTI_NIC_IN_SAME_NETWORK_ALLOWED(457555419), + /** MULTI_NIC_IN_SAME_NETWORK_BLOCKED = 273718815; */ + MULTI_NIC_IN_SAME_NETWORK_BLOCKED(273718815), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK = 0; + */ + public static final int UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK_VALUE = 0; + /** MULTI_NIC_IN_SAME_NETWORK_ALLOWED = 457555419; */ + public static final int MULTI_NIC_IN_SAME_NETWORK_ALLOWED_VALUE = 457555419; + /** MULTI_NIC_IN_SAME_NETWORK_BLOCKED = 273718815; */ + public static final int MULTI_NIC_IN_SAME_NETWORK_BLOCKED_VALUE = 273718815; + + 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 AllowMultiNicInSameNetwork 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 AllowMultiNicInSameNetwork forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK; + case 457555419: + return MULTI_NIC_IN_SAME_NETWORK_ALLOWED; + case 273718815: + return MULTI_NIC_IN_SAME_NETWORK_BLOCKED; + 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 AllowMultiNicInSameNetwork findValueByNumber(int number) { + return AllowMultiNicInSameNetwork.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(9); + } + + private static final AllowMultiNicInSameNetwork[] VALUES = values(); + + public static AllowMultiNicInSameNetwork 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 AllowMultiNicInSameNetwork(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowMultiNicInSameNetwork) + } + + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPacketMirroring} + */ + public enum AllowPacketMirroring implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PACKET_MIRRORING = 0; + */ + UNDEFINED_ALLOW_PACKET_MIRRORING(0), + /** PACKET_MIRRORING_ALLOWED = 92416245; */ + PACKET_MIRRORING_ALLOWED(92416245), + /** PACKET_MIRRORING_BLOCKED = 445450553; */ + PACKET_MIRRORING_BLOCKED(445450553), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PACKET_MIRRORING = 0; + */ + public static final int UNDEFINED_ALLOW_PACKET_MIRRORING_VALUE = 0; + /** PACKET_MIRRORING_ALLOWED = 92416245; */ + public static final int PACKET_MIRRORING_ALLOWED_VALUE = 92416245; + /** PACKET_MIRRORING_BLOCKED = 445450553; */ + public static final int PACKET_MIRRORING_BLOCKED_VALUE = 445450553; + + 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 AllowPacketMirroring 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 AllowPacketMirroring forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_PACKET_MIRRORING; + case 92416245: + return PACKET_MIRRORING_ALLOWED; + case 445450553: + return PACKET_MIRRORING_BLOCKED; + 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 AllowPacketMirroring findValueByNumber(int number) { + return AllowPacketMirroring.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(10); + } + + private static final AllowPacketMirroring[] VALUES = values(); + + public static AllowPacketMirroring 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 AllowPacketMirroring(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPacketMirroring) + } + + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPrivateGoogleAccess} + */ + public enum AllowPrivateGoogleAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS = 0; + */ + UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS(0), + /** PRIVATE_GOOGLE_ACCESS_ALLOWED = 220787351; */ + PRIVATE_GOOGLE_ACCESS_ALLOWED(220787351), + /** PRIVATE_GOOGLE_ACCESS_BLOCKED = 36950747; */ + PRIVATE_GOOGLE_ACCESS_BLOCKED(36950747), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS = 0; + */ + public static final int UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS_VALUE = 0; + /** PRIVATE_GOOGLE_ACCESS_ALLOWED = 220787351; */ + public static final int PRIVATE_GOOGLE_ACCESS_ALLOWED_VALUE = 220787351; + /** PRIVATE_GOOGLE_ACCESS_BLOCKED = 36950747; */ + public static final int PRIVATE_GOOGLE_ACCESS_BLOCKED_VALUE = 36950747; + + 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 AllowPrivateGoogleAccess 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 AllowPrivateGoogleAccess forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS; + case 220787351: + return PRIVATE_GOOGLE_ACCESS_ALLOWED; + case 36950747: + return PRIVATE_GOOGLE_ACCESS_BLOCKED; + 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 AllowPrivateGoogleAccess findValueByNumber(int number) { + return AllowPrivateGoogleAccess.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(11); + } + + private static final AllowPrivateGoogleAccess[] VALUES = values(); + + public static AllowPrivateGoogleAccess 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 AllowPrivateGoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPrivateGoogleAccess) + } + + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPsc} + */ + public enum AllowPsc implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PSC = 0; + */ + UNDEFINED_ALLOW_PSC(0), + /** PSC_ALLOWED = 171559657; */ + PSC_ALLOWED(171559657), + /** PSC_BLOCKED = 524593965; */ + PSC_BLOCKED(524593965), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_PSC = 0; + */ + public static final int UNDEFINED_ALLOW_PSC_VALUE = 0; + /** PSC_ALLOWED = 171559657; */ + public static final int PSC_ALLOWED_VALUE = 171559657; + /** PSC_BLOCKED = 524593965; */ + public static final int PSC_BLOCKED_VALUE = 524593965; + + 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 AllowPsc 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 AllowPsc forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_PSC; + case 171559657: + return PSC_ALLOWED; + case 524593965: + return PSC_BLOCKED; + 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 AllowPsc findValueByNumber(int number) { + return AllowPsc.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(12); + } + + private static final AllowPsc[] VALUES = values(); + + public static AllowPsc 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 AllowPsc(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowPsc) + } + + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowSameNetworkUnicast} + */ + public enum AllowSameNetworkUnicast implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_SAME_NETWORK_UNICAST = 0; + */ + UNDEFINED_ALLOW_SAME_NETWORK_UNICAST(0), + /** SAME_NETWORK_UNICAST_ALLOWED = 159732814; */ + SAME_NETWORK_UNICAST_ALLOWED(159732814), + /** SAME_NETWORK_UNICAST_BLOCKED = 512767122; */ + SAME_NETWORK_UNICAST_BLOCKED(512767122), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_SAME_NETWORK_UNICAST = 0; + */ + public static final int UNDEFINED_ALLOW_SAME_NETWORK_UNICAST_VALUE = 0; + /** SAME_NETWORK_UNICAST_ALLOWED = 159732814; */ + public static final int SAME_NETWORK_UNICAST_ALLOWED_VALUE = 159732814; + /** SAME_NETWORK_UNICAST_BLOCKED = 512767122; */ + public static final int SAME_NETWORK_UNICAST_BLOCKED_VALUE = 512767122; + + 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 AllowSameNetworkUnicast 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 AllowSameNetworkUnicast forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_SAME_NETWORK_UNICAST; + case 159732814: + return SAME_NETWORK_UNICAST_ALLOWED; + case 512767122: + return SAME_NETWORK_UNICAST_BLOCKED; + 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 AllowSameNetworkUnicast findValueByNumber(int number) { + return AllowSameNetworkUnicast.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(13); + } + + private static final AllowSameNetworkUnicast[] VALUES = values(); + + public static AllowSameNetworkUnicast 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 AllowSameNetworkUnicast(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowSameNetworkUnicast) + } + + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowStaticRoutes} + */ + public enum AllowStaticRoutes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_STATIC_ROUTES = 0; + */ + UNDEFINED_ALLOW_STATIC_ROUTES(0), + /** STATIC_ROUTES_ALLOWED = 409048964; */ + STATIC_ROUTES_ALLOWED(409048964), + /** STATIC_ROUTES_BLOCKED = 225212360; */ + STATIC_ROUTES_BLOCKED(225212360), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_STATIC_ROUTES = 0; + */ + public static final int UNDEFINED_ALLOW_STATIC_ROUTES_VALUE = 0; + /** STATIC_ROUTES_ALLOWED = 409048964; */ + public static final int STATIC_ROUTES_ALLOWED_VALUE = 409048964; + /** STATIC_ROUTES_BLOCKED = 225212360; */ + public static final int STATIC_ROUTES_BLOCKED_VALUE = 225212360; + + 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 AllowStaticRoutes 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 AllowStaticRoutes forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_STATIC_ROUTES; + case 409048964: + return STATIC_ROUTES_ALLOWED; + case 225212360: + return STATIC_ROUTES_BLOCKED; + 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 AllowStaticRoutes findValueByNumber(int number) { + return AllowStaticRoutes.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(14); + } + + private static final AllowStaticRoutes[] VALUES = values(); + + public static AllowStaticRoutes 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 AllowStaticRoutes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowStaticRoutes) + } + + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowSubInterfaces} + */ + public enum AllowSubInterfaces implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_SUB_INTERFACES = 0; + */ + UNDEFINED_ALLOW_SUB_INTERFACES(0), + /** SUBINTERFACES_ALLOWED = 158685891; */ + SUBINTERFACES_ALLOWED(158685891), + /** SUBINTERFACES_BLOCKED = 511720199; */ + SUBINTERFACES_BLOCKED(511720199), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_SUB_INTERFACES = 0; + */ + public static final int UNDEFINED_ALLOW_SUB_INTERFACES_VALUE = 0; + /** SUBINTERFACES_ALLOWED = 158685891; */ + public static final int SUBINTERFACES_ALLOWED_VALUE = 158685891; + /** SUBINTERFACES_BLOCKED = 511720199; */ + public static final int SUBINTERFACES_BLOCKED_VALUE = 511720199; + + 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 AllowSubInterfaces 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 AllowSubInterfaces forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_SUB_INTERFACES; + case 158685891: + return SUBINTERFACES_ALLOWED; + case 511720199: + return SUBINTERFACES_BLOCKED; + 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 AllowSubInterfaces findValueByNumber(int number) { + return AllowSubInterfaces.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(15); + } + + private static final AllowSubInterfaces[] VALUES = values(); + + public static AllowSubInterfaces 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 AllowSubInterfaces(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowSubInterfaces) + } + + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowVpcPeering} + */ + public enum AllowVpcPeering implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_VPC_PEERING = 0; + */ + UNDEFINED_ALLOW_VPC_PEERING(0), + /** VPC_PEERING_ALLOWED = 261465075; */ + VPC_PEERING_ALLOWED(261465075), + /** VPC_PEERING_BLOCKED = 77628471; */ + VPC_PEERING_BLOCKED(77628471), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_VPC_PEERING = 0; + */ + public static final int UNDEFINED_ALLOW_VPC_PEERING_VALUE = 0; + /** VPC_PEERING_ALLOWED = 261465075; */ + public static final int VPC_PEERING_ALLOWED_VALUE = 261465075; + /** VPC_PEERING_BLOCKED = 77628471; */ + public static final int VPC_PEERING_BLOCKED_VALUE = 77628471; + + 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 AllowVpcPeering 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 AllowVpcPeering forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_VPC_PEERING; + case 261465075: + return VPC_PEERING_ALLOWED; + case 77628471: + return VPC_PEERING_BLOCKED; + 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 AllowVpcPeering findValueByNumber(int number) { + return AllowVpcPeering.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(16); + } + + private static final AllowVpcPeering[] VALUES = values(); + + public static AllowVpcPeering 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 AllowVpcPeering(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowVpcPeering) + } + + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowVpn} + */ + public enum AllowVpn implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_VPN = 0; + */ + UNDEFINED_ALLOW_VPN(0), + /** VPN_ALLOWED = 162163997; */ + VPN_ALLOWED(162163997), + /** VPN_BLOCKED = 515198305; */ + VPN_BLOCKED(515198305), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_ALLOW_VPN = 0; + */ + public static final int UNDEFINED_ALLOW_VPN_VALUE = 0; + /** VPN_ALLOWED = 162163997; */ + public static final int VPN_ALLOWED_VALUE = 162163997; + /** VPN_BLOCKED = 515198305; */ + public static final int VPN_BLOCKED_VALUE = 515198305; + + 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 AllowVpn 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 AllowVpn forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_ALLOW_VPN; + case 162163997: + return VPN_ALLOWED; + case 515198305: + return VPN_BLOCKED; + 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 AllowVpn findValueByNumber(int number) { + return AllowVpn.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(17); + } + + private static final AllowVpn[] VALUES = values(); + + public static AllowVpn 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 AllowVpn(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.AllowVpn) + } + + /** + * + * + *
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.InterfaceTypes} + */ + public enum InterfaceTypes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_INTERFACE_TYPES = 0; + */ + UNDEFINED_INTERFACE_TYPES(0), + /** + * + * + *
    +     * GVNIC
    +     * 
    + * + * GVNIC = 68209305; + */ + GVNIC(68209305), + /** + * + * + *
    +     * IDPF
    +     * 
    + * + * IDPF = 2242641; + */ + IDPF(2242641), + /** + * + * + *
    +     * IRDMA
    +     * 
    + * + * IRDMA = 69927695; + */ + IRDMA(69927695), + /** + * + * + *
    +     * MRDMA
    +     * 
    + * + * MRDMA = 73621779; + */ + MRDMA(73621779), + /** + * + * + *
    +     * No type specified.
    +     * 
    + * + * UNSPECIFIED_NIC_TYPE = 67411801; + */ + UNSPECIFIED_NIC_TYPE(67411801), + /** + * + * + *
    +     * VIRTIO
    +     * 
    + * + * VIRTIO_NET = 452123481; + */ + VIRTIO_NET(452123481), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_INTERFACE_TYPES = 0; + */ + public static final int UNDEFINED_INTERFACE_TYPES_VALUE = 0; + /** + * + * + *
    +     * GVNIC
    +     * 
    + * + * GVNIC = 68209305; + */ + public static final int GVNIC_VALUE = 68209305; + /** + * + * + *
    +     * IDPF
    +     * 
    + * + * IDPF = 2242641; + */ + public static final int IDPF_VALUE = 2242641; + /** + * + * + *
    +     * IRDMA
    +     * 
    + * + * IRDMA = 69927695; + */ + public static final int IRDMA_VALUE = 69927695; + /** + * + * + *
    +     * MRDMA
    +     * 
    + * + * MRDMA = 73621779; + */ + public static final int MRDMA_VALUE = 73621779; + /** + * + * + *
    +     * No type specified.
    +     * 
    + * + * UNSPECIFIED_NIC_TYPE = 67411801; + */ + public static final int UNSPECIFIED_NIC_TYPE_VALUE = 67411801; + /** + * + * + *
    +     * VIRTIO
    +     * 
    + * + * VIRTIO_NET = 452123481; + */ + public static final int VIRTIO_NET_VALUE = 452123481; + + 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 InterfaceTypes 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 InterfaceTypes forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_INTERFACE_TYPES; + case 68209305: + return GVNIC; + case 2242641: + return IDPF; + case 69927695: + return IRDMA; + case 73621779: + return MRDMA; + case 67411801: + return UNSPECIFIED_NIC_TYPE; + case 452123481: + return VIRTIO_NET; + 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 InterfaceTypes findValueByNumber(int number) { + return InterfaceTypes.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(18); + } + + private static final InterfaceTypes[] VALUES = values(); + + public static InterfaceTypes 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 InterfaceTypes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.InterfaceTypes) + } + + /** + * + * + *
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.SubnetPurposes} + */ + public enum SubnetPurposes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SUBNET_PURPOSES = 0; + */ + UNDEFINED_SUBNET_PURPOSES(0), + /** SUBNET_PURPOSE_CUSTOM_HARDWARE = 283160275; */ + SUBNET_PURPOSE_CUSTOM_HARDWARE(283160275), + /** SUBNET_PURPOSE_PRIVATE = 404371008; */ + SUBNET_PURPOSE_PRIVATE(404371008), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SUBNET_PURPOSES = 0; + */ + public static final int UNDEFINED_SUBNET_PURPOSES_VALUE = 0; + /** SUBNET_PURPOSE_CUSTOM_HARDWARE = 283160275; */ + public static final int SUBNET_PURPOSE_CUSTOM_HARDWARE_VALUE = 283160275; + /** SUBNET_PURPOSE_PRIVATE = 404371008; */ + public static final int SUBNET_PURPOSE_PRIVATE_VALUE = 404371008; + + 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 SubnetPurposes 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 SubnetPurposes forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_SUBNET_PURPOSES; + case 283160275: + return SUBNET_PURPOSE_CUSTOM_HARDWARE; + case 404371008: + return SUBNET_PURPOSE_PRIVATE; + 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 SubnetPurposes findValueByNumber(int number) { + return SubnetPurposes.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(19); + } + + private static final SubnetPurposes[] VALUES = values(); + + public static SubnetPurposes 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 SubnetPurposes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.SubnetPurposes) + } + + /** + * + * + *
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.SubnetStackTypes} + */ + public enum SubnetStackTypes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SUBNET_STACK_TYPES = 0; + */ + UNDEFINED_SUBNET_STACK_TYPES(0), + /** SUBNET_STACK_TYPE_IPV4_IPV6 = 41454485; */ + SUBNET_STACK_TYPE_IPV4_IPV6(41454485), + /** SUBNET_STACK_TYPE_IPV4_ONLY = 41631034; */ + SUBNET_STACK_TYPE_IPV4_ONLY(41631034), + /** SUBNET_STACK_TYPE_IPV6_ONLY = 98889336; */ + SUBNET_STACK_TYPE_IPV6_ONLY(98889336), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_SUBNET_STACK_TYPES = 0; + */ + public static final int UNDEFINED_SUBNET_STACK_TYPES_VALUE = 0; + /** SUBNET_STACK_TYPE_IPV4_IPV6 = 41454485; */ + public static final int SUBNET_STACK_TYPE_IPV4_IPV6_VALUE = 41454485; + /** SUBNET_STACK_TYPE_IPV4_ONLY = 41631034; */ + public static final int SUBNET_STACK_TYPE_IPV4_ONLY_VALUE = 41631034; + /** SUBNET_STACK_TYPE_IPV6_ONLY = 98889336; */ + public static final int SUBNET_STACK_TYPE_IPV6_ONLY_VALUE = 98889336; + + 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 SubnetStackTypes 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 SubnetStackTypes forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_SUBNET_STACK_TYPES; + case 41454485: + return SUBNET_STACK_TYPE_IPV4_IPV6; + case 41631034: + return SUBNET_STACK_TYPE_IPV4_ONLY; + case 98889336: + return SUBNET_STACK_TYPE_IPV6_ONLY; + 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 SubnetStackTypes findValueByNumber(int number) { + return SubnetStackTypes.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(20); + } + + private static final SubnetStackTypes[] VALUES = values(); + + public static SubnetStackTypes 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 SubnetStackTypes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.SubnetStackTypes) + } + + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures.Unicast} + */ + public enum Unicast implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_UNICAST = 0; + */ + UNDEFINED_UNICAST(0), + /** UNICAST_SDN = 379954157; */ + UNICAST_SDN(379954157), + /** UNICAST_ULL = 379956325; */ + UNICAST_ULL(379956325), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_UNICAST = 0; + */ + public static final int UNDEFINED_UNICAST_VALUE = 0; + /** UNICAST_SDN = 379954157; */ + public static final int UNICAST_SDN_VALUE = 379954157; + /** UNICAST_ULL = 379956325; */ + public static final int UNICAST_ULL_VALUE = 379956325; + + 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 Unicast 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 Unicast forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_UNICAST; + case 379954157: + return UNICAST_SDN; + case 379956325: + return UNICAST_ULL; + 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 Unicast findValueByNumber(int number) { + return Unicast.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.compute.v1.NetworkProfileNetworkFeatures.getDescriptor() + .getEnumTypes() + .get(21); + } + + private static final Unicast[] VALUES = values(); + + public static Unicast 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 Unicast(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures.Unicast) + } + + private int bitField0_; + public static final int ADDRESS_PURPOSES_FIELD_NUMBER = 433024768; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList addressPurposes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @return A list containing the addressPurposes. + */ + public com.google.protobuf.ProtocolStringList getAddressPurposesList() { + return addressPurposes_; + } + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @return The count of addressPurposes. + */ + public int getAddressPurposesCount() { + return addressPurposes_.size(); + } + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the element to return. + * @return The addressPurposes at the given index. + */ + public java.lang.String getAddressPurposes(int index) { + return addressPurposes_.get(index); + } + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the value to return. + * @return The bytes of the addressPurposes at the given index. + */ + public com.google.protobuf.ByteString getAddressPurposesBytes(int index) { + return addressPurposes_.getByteString(index); + } + + public static final int ALLOW_ALIAS_IP_RANGES_FIELD_NUMBER = 457984201; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowAliasIpRanges_ = ""; + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return Whether the allowAliasIpRanges field is set. + */ + @java.lang.Override + public boolean hasAllowAliasIpRanges() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The allowAliasIpRanges. + */ + @java.lang.Override + public java.lang.String getAllowAliasIpRanges() { + java.lang.Object ref = allowAliasIpRanges_; + 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(); + allowAliasIpRanges_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The bytes for allowAliasIpRanges. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowAliasIpRangesBytes() { + java.lang.Object ref = allowAliasIpRanges_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowAliasIpRanges_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_AUTO_MODE_SUBNET_FIELD_NUMBER = 152191263; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowAutoModeSubnet_ = ""; + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return Whether the allowAutoModeSubnet field is set. + */ + @java.lang.Override + public boolean hasAllowAutoModeSubnet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The allowAutoModeSubnet. + */ + @java.lang.Override + public java.lang.String getAllowAutoModeSubnet() { + java.lang.Object ref = allowAutoModeSubnet_; + 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(); + allowAutoModeSubnet_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The bytes for allowAutoModeSubnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowAutoModeSubnetBytes() { + java.lang.Object ref = allowAutoModeSubnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowAutoModeSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_CLASS_D_FIREWALLS_FIELD_NUMBER = 131608987; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowClassDFirewalls_ = ""; + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return Whether the allowClassDFirewalls field is set. + */ + @java.lang.Override + public boolean hasAllowClassDFirewalls() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The allowClassDFirewalls. + */ + @java.lang.Override + public java.lang.String getAllowClassDFirewalls() { + java.lang.Object ref = allowClassDFirewalls_; + 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(); + allowClassDFirewalls_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The bytes for allowClassDFirewalls. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowClassDFirewallsBytes() { + java.lang.Object ref = allowClassDFirewalls_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowClassDFirewalls_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_CLOUD_NAT_FIELD_NUMBER = 254831265; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowCloudNat_ = ""; + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return Whether the allowCloudNat field is set. + */ + @java.lang.Override + public boolean hasAllowCloudNat() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The allowCloudNat. + */ + @java.lang.Override + public java.lang.String getAllowCloudNat() { + java.lang.Object ref = allowCloudNat_; + 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(); + allowCloudNat_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The bytes for allowCloudNat. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowCloudNatBytes() { + java.lang.Object ref = allowCloudNat_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowCloudNat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_CLOUD_ROUTER_FIELD_NUMBER = 451110345; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowCloudRouter_ = ""; + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return Whether the allowCloudRouter field is set. + */ + @java.lang.Override + public boolean hasAllowCloudRouter() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The allowCloudRouter. + */ + @java.lang.Override + public java.lang.String getAllowCloudRouter() { + java.lang.Object ref = allowCloudRouter_; + 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(); + allowCloudRouter_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The bytes for allowCloudRouter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowCloudRouterBytes() { + java.lang.Object ref = allowCloudRouter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowCloudRouter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_EXTERNAL_IP_ACCESS_FIELD_NUMBER = 131538110; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowExternalIpAccess_ = ""; + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return Whether the allowExternalIpAccess field is set. + */ + @java.lang.Override + public boolean hasAllowExternalIpAccess() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The allowExternalIpAccess. + */ + @java.lang.Override + public java.lang.String getAllowExternalIpAccess() { + java.lang.Object ref = allowExternalIpAccess_; + 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(); + allowExternalIpAccess_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The bytes for allowExternalIpAccess. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowExternalIpAccessBytes() { + java.lang.Object ref = allowExternalIpAccess_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowExternalIpAccess_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_INTERCONNECT_FIELD_NUMBER = 280512964; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowInterconnect_ = ""; + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return Whether the allowInterconnect field is set. + */ + @java.lang.Override + public boolean hasAllowInterconnect() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The allowInterconnect. + */ + @java.lang.Override + public java.lang.String getAllowInterconnect() { + java.lang.Object ref = allowInterconnect_; + 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(); + allowInterconnect_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The bytes for allowInterconnect. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowInterconnectBytes() { + java.lang.Object ref = allowInterconnect_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowInterconnect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_LOAD_BALANCING_FIELD_NUMBER = 223366198; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowLoadBalancing_ = ""; + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return Whether the allowLoadBalancing field is set. + */ + @java.lang.Override + public boolean hasAllowLoadBalancing() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The allowLoadBalancing. + */ + @java.lang.Override + public java.lang.String getAllowLoadBalancing() { + java.lang.Object ref = allowLoadBalancing_; + 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(); + allowLoadBalancing_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The bytes for allowLoadBalancing. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowLoadBalancingBytes() { + java.lang.Object ref = allowLoadBalancing_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowLoadBalancing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MULTI_NIC_IN_SAME_NETWORK_FIELD_NUMBER = 88251004; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowMultiNicInSameNetwork_ = ""; + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return Whether the allowMultiNicInSameNetwork field is set. + */ + @java.lang.Override + public boolean hasAllowMultiNicInSameNetwork() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The allowMultiNicInSameNetwork. + */ + @java.lang.Override + public java.lang.String getAllowMultiNicInSameNetwork() { + java.lang.Object ref = allowMultiNicInSameNetwork_; + 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(); + allowMultiNicInSameNetwork_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The bytes for allowMultiNicInSameNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowMultiNicInSameNetworkBytes() { + java.lang.Object ref = allowMultiNicInSameNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowMultiNicInSameNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_PACKET_MIRRORING_FIELD_NUMBER = 512227074; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowPacketMirroring_ = ""; + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return Whether the allowPacketMirroring field is set. + */ + @java.lang.Override + public boolean hasAllowPacketMirroring() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The allowPacketMirroring. + */ + @java.lang.Override + public java.lang.String getAllowPacketMirroring() { + java.lang.Object ref = allowPacketMirroring_; + 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(); + allowPacketMirroring_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The bytes for allowPacketMirroring. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowPacketMirroringBytes() { + java.lang.Object ref = allowPacketMirroring_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPacketMirroring_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_PRIVATE_GOOGLE_ACCESS_FIELD_NUMBER = 374702072; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowPrivateGoogleAccess_ = ""; + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return Whether the allowPrivateGoogleAccess field is set. + */ + @java.lang.Override + public boolean hasAllowPrivateGoogleAccess() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The allowPrivateGoogleAccess. + */ + @java.lang.Override + public java.lang.String getAllowPrivateGoogleAccess() { + java.lang.Object ref = allowPrivateGoogleAccess_; + 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(); + allowPrivateGoogleAccess_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The bytes for allowPrivateGoogleAccess. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowPrivateGoogleAccessBytes() { + java.lang.Object ref = allowPrivateGoogleAccess_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPrivateGoogleAccess_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_PSC_FIELD_NUMBER = 372357322; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowPsc_ = ""; + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return Whether the allowPsc field is set. + */ + @java.lang.Override + public boolean hasAllowPsc() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return The allowPsc. + */ + @java.lang.Override + public java.lang.String getAllowPsc() { + java.lang.Object ref = allowPsc_; + 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(); + allowPsc_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return The bytes for allowPsc. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowPscBytes() { + java.lang.Object ref = allowPsc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPsc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_SAME_NETWORK_UNICAST_FIELD_NUMBER = 167531643; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowSameNetworkUnicast_ = ""; + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return Whether the allowSameNetworkUnicast field is set. + */ + @java.lang.Override + public boolean hasAllowSameNetworkUnicast() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The allowSameNetworkUnicast. + */ + @java.lang.Override + public java.lang.String getAllowSameNetworkUnicast() { + java.lang.Object ref = allowSameNetworkUnicast_; + 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(); + allowSameNetworkUnicast_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The bytes for allowSameNetworkUnicast. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowSameNetworkUnicastBytes() { + java.lang.Object ref = allowSameNetworkUnicast_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowSameNetworkUnicast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_STATIC_ROUTES_FIELD_NUMBER = 185257925; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowStaticRoutes_ = ""; + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return Whether the allowStaticRoutes field is set. + */ + @java.lang.Override + public boolean hasAllowStaticRoutes() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The allowStaticRoutes. + */ + @java.lang.Override + public java.lang.String getAllowStaticRoutes() { + java.lang.Object ref = allowStaticRoutes_; + 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(); + allowStaticRoutes_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The bytes for allowStaticRoutes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowStaticRoutesBytes() { + java.lang.Object ref = allowStaticRoutes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowStaticRoutes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_SUB_INTERFACES_FIELD_NUMBER = 247208303; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowSubInterfaces_ = ""; + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return Whether the allowSubInterfaces field is set. + */ + @java.lang.Override + public boolean hasAllowSubInterfaces() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The allowSubInterfaces. + */ + @java.lang.Override + public java.lang.String getAllowSubInterfaces() { + java.lang.Object ref = allowSubInterfaces_; + 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(); + allowSubInterfaces_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The bytes for allowSubInterfaces. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowSubInterfacesBytes() { + java.lang.Object ref = allowSubInterfaces_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowSubInterfaces_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_VPC_PEERING_FIELD_NUMBER = 115402228; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowVpcPeering_ = ""; + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return Whether the allowVpcPeering field is set. + */ + @java.lang.Override + public boolean hasAllowVpcPeering() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The allowVpcPeering. + */ + @java.lang.Override + public java.lang.String getAllowVpcPeering() { + java.lang.Object ref = allowVpcPeering_; + 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(); + allowVpcPeering_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The bytes for allowVpcPeering. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowVpcPeeringBytes() { + java.lang.Object ref = allowVpcPeering_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowVpcPeering_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_VPN_FIELD_NUMBER = 372363006; + + @SuppressWarnings("serial") + private volatile java.lang.Object allowVpn_ = ""; + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return Whether the allowVpn field is set. + */ + @java.lang.Override + public boolean hasAllowVpn() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The allowVpn. + */ + @java.lang.Override + public java.lang.String getAllowVpn() { + java.lang.Object ref = allowVpn_; + 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(); + allowVpn_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The bytes for allowVpn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllowVpnBytes() { + java.lang.Object ref = allowVpn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowVpn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACE_TYPES_FIELD_NUMBER = 157981171; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList interfaceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @return A list containing the interfaceTypes. + */ + public com.google.protobuf.ProtocolStringList getInterfaceTypesList() { + return interfaceTypes_; + } + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @return The count of interfaceTypes. + */ + public int getInterfaceTypesCount() { + return interfaceTypes_.size(); + } + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the element to return. + * @return The interfaceTypes at the given index. + */ + public java.lang.String getInterfaceTypes(int index) { + return interfaceTypes_.get(index); + } + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the value to return. + * @return The bytes of the interfaceTypes at the given index. + */ + public com.google.protobuf.ByteString getInterfaceTypesBytes(int index) { + return interfaceTypes_.getByteString(index); + } + + public static final int SUBNET_PURPOSES_FIELD_NUMBER = 301338039; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subnetPurposes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return A list containing the subnetPurposes. + */ + public com.google.protobuf.ProtocolStringList getSubnetPurposesList() { + return subnetPurposes_; + } + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return The count of subnetPurposes. + */ + public int getSubnetPurposesCount() { + return subnetPurposes_.size(); + } + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the element to return. + * @return The subnetPurposes at the given index. + */ + public java.lang.String getSubnetPurposes(int index) { + return subnetPurposes_.get(index); + } + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the value to return. + * @return The bytes of the subnetPurposes at the given index. + */ + public com.google.protobuf.ByteString getSubnetPurposesBytes(int index) { + return subnetPurposes_.getByteString(index); + } + + public static final int SUBNET_STACK_TYPES_FIELD_NUMBER = 521008672; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subnetStackTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return A list containing the subnetStackTypes. + */ + public com.google.protobuf.ProtocolStringList getSubnetStackTypesList() { + return subnetStackTypes_; + } + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return The count of subnetStackTypes. + */ + public int getSubnetStackTypesCount() { + return subnetStackTypes_.size(); + } + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the element to return. + * @return The subnetStackTypes at the given index. + */ + public java.lang.String getSubnetStackTypes(int index) { + return subnetStackTypes_.get(index); + } + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the value to return. + * @return The bytes of the subnetStackTypes at the given index. + */ + public com.google.protobuf.ByteString getSubnetStackTypesBytes(int index) { + return subnetStackTypes_.getByteString(index); + } + + public static final int UNICAST_FIELD_NUMBER = 249841711; + + @SuppressWarnings("serial") + private volatile java.lang.Object unicast_ = ""; + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return Whether the unicast field is set. + */ + @java.lang.Override + public boolean hasUnicast() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return The unicast. + */ + @java.lang.Override + public java.lang.String getUnicast() { + java.lang.Object ref = unicast_; + 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(); + unicast_ = s; + return s; + } + } + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return The bytes for unicast. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnicastBytes() { + java.lang.Object ref = unicast_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unicast_ = 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 (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 88251004, allowMultiNicInSameNetwork_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 115402228, allowVpcPeering_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 131538110, allowExternalIpAccess_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 131608987, allowClassDFirewalls_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 152191263, allowAutoModeSubnet_); + } + for (int i = 0; i < interfaceTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 157981171, interfaceTypes_.getRaw(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 167531643, allowSameNetworkUnicast_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 185257925, allowStaticRoutes_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 223366198, allowLoadBalancing_); + } + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 247208303, allowSubInterfaces_); + } + if (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249841711, unicast_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 254831265, allowCloudNat_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 280512964, allowInterconnect_); + } + for (int i = 0; i < subnetPurposes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 301338039, subnetPurposes_.getRaw(i)); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 372357322, allowPsc_); + } + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 372363006, allowVpn_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 374702072, allowPrivateGoogleAccess_); + } + for (int i = 0; i < addressPurposes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 433024768, addressPurposes_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 451110345, allowCloudRouter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 457984201, allowAliasIpRanges_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 512227074, allowPacketMirroring_); + } + for (int i = 0; i < subnetStackTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 521008672, subnetStackTypes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 88251004, allowMultiNicInSameNetwork_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115402228, allowVpcPeering_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 131538110, allowExternalIpAccess_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 131608987, allowClassDFirewalls_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(152191263, allowAutoModeSubnet_); + } + { + int dataSize = 0; + for (int i = 0; i < interfaceTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(interfaceTypes_.getRaw(i)); + } + size += dataSize; + size += 5 * getInterfaceTypesList().size(); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 167531643, allowSameNetworkUnicast_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(185257925, allowStaticRoutes_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(223366198, allowLoadBalancing_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(247208303, allowSubInterfaces_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(249841711, unicast_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(254831265, allowCloudNat_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(280512964, allowInterconnect_); + } + { + int dataSize = 0; + for (int i = 0; i < subnetPurposes_.size(); i++) { + dataSize += computeStringSizeNoTag(subnetPurposes_.getRaw(i)); + } + size += dataSize; + size += 5 * getSubnetPurposesList().size(); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(372357322, allowPsc_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(372363006, allowVpn_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 374702072, allowPrivateGoogleAccess_); + } + { + int dataSize = 0; + for (int i = 0; i < addressPurposes_.size(); i++) { + dataSize += computeStringSizeNoTag(addressPurposes_.getRaw(i)); + } + size += dataSize; + size += 5 * getAddressPurposesList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(451110345, allowCloudRouter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(457984201, allowAliasIpRanges_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 512227074, allowPacketMirroring_); + } + { + int dataSize = 0; + for (int i = 0; i < subnetStackTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(subnetStackTypes_.getRaw(i)); + } + size += dataSize; + size += 5 * getSubnetStackTypesList().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.compute.v1.NetworkProfileNetworkFeatures)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures other = + (com.google.cloud.compute.v1.NetworkProfileNetworkFeatures) obj; + + if (!getAddressPurposesList().equals(other.getAddressPurposesList())) return false; + if (hasAllowAliasIpRanges() != other.hasAllowAliasIpRanges()) return false; + if (hasAllowAliasIpRanges()) { + if (!getAllowAliasIpRanges().equals(other.getAllowAliasIpRanges())) return false; + } + if (hasAllowAutoModeSubnet() != other.hasAllowAutoModeSubnet()) return false; + if (hasAllowAutoModeSubnet()) { + if (!getAllowAutoModeSubnet().equals(other.getAllowAutoModeSubnet())) return false; + } + if (hasAllowClassDFirewalls() != other.hasAllowClassDFirewalls()) return false; + if (hasAllowClassDFirewalls()) { + if (!getAllowClassDFirewalls().equals(other.getAllowClassDFirewalls())) return false; + } + if (hasAllowCloudNat() != other.hasAllowCloudNat()) return false; + if (hasAllowCloudNat()) { + if (!getAllowCloudNat().equals(other.getAllowCloudNat())) return false; + } + if (hasAllowCloudRouter() != other.hasAllowCloudRouter()) return false; + if (hasAllowCloudRouter()) { + if (!getAllowCloudRouter().equals(other.getAllowCloudRouter())) return false; + } + if (hasAllowExternalIpAccess() != other.hasAllowExternalIpAccess()) return false; + if (hasAllowExternalIpAccess()) { + if (!getAllowExternalIpAccess().equals(other.getAllowExternalIpAccess())) return false; + } + if (hasAllowInterconnect() != other.hasAllowInterconnect()) return false; + if (hasAllowInterconnect()) { + if (!getAllowInterconnect().equals(other.getAllowInterconnect())) return false; + } + if (hasAllowLoadBalancing() != other.hasAllowLoadBalancing()) return false; + if (hasAllowLoadBalancing()) { + if (!getAllowLoadBalancing().equals(other.getAllowLoadBalancing())) return false; + } + if (hasAllowMultiNicInSameNetwork() != other.hasAllowMultiNicInSameNetwork()) return false; + if (hasAllowMultiNicInSameNetwork()) { + if (!getAllowMultiNicInSameNetwork().equals(other.getAllowMultiNicInSameNetwork())) + return false; + } + if (hasAllowPacketMirroring() != other.hasAllowPacketMirroring()) return false; + if (hasAllowPacketMirroring()) { + if (!getAllowPacketMirroring().equals(other.getAllowPacketMirroring())) return false; + } + if (hasAllowPrivateGoogleAccess() != other.hasAllowPrivateGoogleAccess()) return false; + if (hasAllowPrivateGoogleAccess()) { + if (!getAllowPrivateGoogleAccess().equals(other.getAllowPrivateGoogleAccess())) return false; + } + if (hasAllowPsc() != other.hasAllowPsc()) return false; + if (hasAllowPsc()) { + if (!getAllowPsc().equals(other.getAllowPsc())) return false; + } + if (hasAllowSameNetworkUnicast() != other.hasAllowSameNetworkUnicast()) return false; + if (hasAllowSameNetworkUnicast()) { + if (!getAllowSameNetworkUnicast().equals(other.getAllowSameNetworkUnicast())) return false; + } + if (hasAllowStaticRoutes() != other.hasAllowStaticRoutes()) return false; + if (hasAllowStaticRoutes()) { + if (!getAllowStaticRoutes().equals(other.getAllowStaticRoutes())) return false; + } + if (hasAllowSubInterfaces() != other.hasAllowSubInterfaces()) return false; + if (hasAllowSubInterfaces()) { + if (!getAllowSubInterfaces().equals(other.getAllowSubInterfaces())) return false; + } + if (hasAllowVpcPeering() != other.hasAllowVpcPeering()) return false; + if (hasAllowVpcPeering()) { + if (!getAllowVpcPeering().equals(other.getAllowVpcPeering())) return false; + } + if (hasAllowVpn() != other.hasAllowVpn()) return false; + if (hasAllowVpn()) { + if (!getAllowVpn().equals(other.getAllowVpn())) return false; + } + if (!getInterfaceTypesList().equals(other.getInterfaceTypesList())) return false; + if (!getSubnetPurposesList().equals(other.getSubnetPurposesList())) return false; + if (!getSubnetStackTypesList().equals(other.getSubnetStackTypesList())) return false; + if (hasUnicast() != other.hasUnicast()) return false; + if (hasUnicast()) { + if (!getUnicast().equals(other.getUnicast())) 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 (getAddressPurposesCount() > 0) { + hash = (37 * hash) + ADDRESS_PURPOSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressPurposesList().hashCode(); + } + if (hasAllowAliasIpRanges()) { + hash = (37 * hash) + ALLOW_ALIAS_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getAllowAliasIpRanges().hashCode(); + } + if (hasAllowAutoModeSubnet()) { + hash = (37 * hash) + ALLOW_AUTO_MODE_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getAllowAutoModeSubnet().hashCode(); + } + if (hasAllowClassDFirewalls()) { + hash = (37 * hash) + ALLOW_CLASS_D_FIREWALLS_FIELD_NUMBER; + hash = (53 * hash) + getAllowClassDFirewalls().hashCode(); + } + if (hasAllowCloudNat()) { + hash = (37 * hash) + ALLOW_CLOUD_NAT_FIELD_NUMBER; + hash = (53 * hash) + getAllowCloudNat().hashCode(); + } + if (hasAllowCloudRouter()) { + hash = (37 * hash) + ALLOW_CLOUD_ROUTER_FIELD_NUMBER; + hash = (53 * hash) + getAllowCloudRouter().hashCode(); + } + if (hasAllowExternalIpAccess()) { + hash = (37 * hash) + ALLOW_EXTERNAL_IP_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getAllowExternalIpAccess().hashCode(); + } + if (hasAllowInterconnect()) { + hash = (37 * hash) + ALLOW_INTERCONNECT_FIELD_NUMBER; + hash = (53 * hash) + getAllowInterconnect().hashCode(); + } + if (hasAllowLoadBalancing()) { + hash = (37 * hash) + ALLOW_LOAD_BALANCING_FIELD_NUMBER; + hash = (53 * hash) + getAllowLoadBalancing().hashCode(); + } + if (hasAllowMultiNicInSameNetwork()) { + hash = (37 * hash) + ALLOW_MULTI_NIC_IN_SAME_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getAllowMultiNicInSameNetwork().hashCode(); + } + if (hasAllowPacketMirroring()) { + hash = (37 * hash) + ALLOW_PACKET_MIRRORING_FIELD_NUMBER; + hash = (53 * hash) + getAllowPacketMirroring().hashCode(); + } + if (hasAllowPrivateGoogleAccess()) { + hash = (37 * hash) + ALLOW_PRIVATE_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getAllowPrivateGoogleAccess().hashCode(); + } + if (hasAllowPsc()) { + hash = (37 * hash) + ALLOW_PSC_FIELD_NUMBER; + hash = (53 * hash) + getAllowPsc().hashCode(); + } + if (hasAllowSameNetworkUnicast()) { + hash = (37 * hash) + ALLOW_SAME_NETWORK_UNICAST_FIELD_NUMBER; + hash = (53 * hash) + getAllowSameNetworkUnicast().hashCode(); + } + if (hasAllowStaticRoutes()) { + hash = (37 * hash) + ALLOW_STATIC_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getAllowStaticRoutes().hashCode(); + } + if (hasAllowSubInterfaces()) { + hash = (37 * hash) + ALLOW_SUB_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getAllowSubInterfaces().hashCode(); + } + if (hasAllowVpcPeering()) { + hash = (37 * hash) + ALLOW_VPC_PEERING_FIELD_NUMBER; + hash = (53 * hash) + getAllowVpcPeering().hashCode(); + } + if (hasAllowVpn()) { + hash = (37 * hash) + ALLOW_VPN_FIELD_NUMBER; + hash = (53 * hash) + getAllowVpn().hashCode(); + } + if (getInterfaceTypesCount() > 0) { + hash = (37 * hash) + INTERFACE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getInterfaceTypesList().hashCode(); + } + if (getSubnetPurposesCount() > 0) { + hash = (37 * hash) + SUBNET_PURPOSES_FIELD_NUMBER; + hash = (53 * hash) + getSubnetPurposesList().hashCode(); + } + if (getSubnetStackTypesCount() > 0) { + hash = (37 * hash) + SUBNET_STACK_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getSubnetStackTypesList().hashCode(); + } + if (hasUnicast()) { + hash = (37 * hash) + UNICAST_FIELD_NUMBER; + hash = (53 * hash) + getUnicast().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfileNetworkFeatures} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkProfileNetworkFeatures) + com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.class, + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowAliasIpRanges_ = ""; + allowAutoModeSubnet_ = ""; + allowClassDFirewalls_ = ""; + allowCloudNat_ = ""; + allowCloudRouter_ = ""; + allowExternalIpAccess_ = ""; + allowInterconnect_ = ""; + allowLoadBalancing_ = ""; + allowMultiNicInSameNetwork_ = ""; + allowPacketMirroring_ = ""; + allowPrivateGoogleAccess_ = ""; + allowPsc_ = ""; + allowSameNetworkUnicast_ = ""; + allowStaticRoutes_ = ""; + allowSubInterfaces_ = ""; + allowVpcPeering_ = ""; + allowVpn_ = ""; + interfaceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subnetPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subnetStackTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unicast_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures getDefaultInstanceForType() { + return com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures build() { + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileNetworkFeatures buildPartial() { + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures result = + new com.google.cloud.compute.v1.NetworkProfileNetworkFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.NetworkProfileNetworkFeatures result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + addressPurposes_.makeImmutable(); + result.addressPurposes_ = addressPurposes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowAliasIpRanges_ = allowAliasIpRanges_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowAutoModeSubnet_ = allowAutoModeSubnet_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowClassDFirewalls_ = allowClassDFirewalls_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.allowCloudNat_ = allowCloudNat_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.allowCloudRouter_ = allowCloudRouter_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.allowExternalIpAccess_ = allowExternalIpAccess_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.allowInterconnect_ = allowInterconnect_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.allowLoadBalancing_ = allowLoadBalancing_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.allowMultiNicInSameNetwork_ = allowMultiNicInSameNetwork_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.allowPacketMirroring_ = allowPacketMirroring_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.allowPrivateGoogleAccess_ = allowPrivateGoogleAccess_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.allowPsc_ = allowPsc_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.allowSameNetworkUnicast_ = allowSameNetworkUnicast_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.allowStaticRoutes_ = allowStaticRoutes_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.allowSubInterfaces_ = allowSubInterfaces_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.allowVpcPeering_ = allowVpcPeering_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.allowVpn_ = allowVpn_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + interfaceTypes_.makeImmutable(); + result.interfaceTypes_ = interfaceTypes_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + subnetPurposes_.makeImmutable(); + result.subnetPurposes_ = subnetPurposes_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + subnetStackTypes_.makeImmutable(); + result.subnetStackTypes_ = subnetStackTypes_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.unicast_ = unicast_; + to_bitField0_ |= 0x00020000; + } + 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.compute.v1.NetworkProfileNetworkFeatures) { + return mergeFrom((com.google.cloud.compute.v1.NetworkProfileNetworkFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.NetworkProfileNetworkFeatures other) { + if (other == com.google.cloud.compute.v1.NetworkProfileNetworkFeatures.getDefaultInstance()) + return this; + if (!other.addressPurposes_.isEmpty()) { + if (addressPurposes_.isEmpty()) { + addressPurposes_ = other.addressPurposes_; + bitField0_ |= 0x00000001; + } else { + ensureAddressPurposesIsMutable(); + addressPurposes_.addAll(other.addressPurposes_); + } + onChanged(); + } + if (other.hasAllowAliasIpRanges()) { + allowAliasIpRanges_ = other.allowAliasIpRanges_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAllowAutoModeSubnet()) { + allowAutoModeSubnet_ = other.allowAutoModeSubnet_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAllowClassDFirewalls()) { + allowClassDFirewalls_ = other.allowClassDFirewalls_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAllowCloudNat()) { + allowCloudNat_ = other.allowCloudNat_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasAllowCloudRouter()) { + allowCloudRouter_ = other.allowCloudRouter_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasAllowExternalIpAccess()) { + allowExternalIpAccess_ = other.allowExternalIpAccess_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasAllowInterconnect()) { + allowInterconnect_ = other.allowInterconnect_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasAllowLoadBalancing()) { + allowLoadBalancing_ = other.allowLoadBalancing_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasAllowMultiNicInSameNetwork()) { + allowMultiNicInSameNetwork_ = other.allowMultiNicInSameNetwork_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasAllowPacketMirroring()) { + allowPacketMirroring_ = other.allowPacketMirroring_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasAllowPrivateGoogleAccess()) { + allowPrivateGoogleAccess_ = other.allowPrivateGoogleAccess_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasAllowPsc()) { + allowPsc_ = other.allowPsc_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasAllowSameNetworkUnicast()) { + allowSameNetworkUnicast_ = other.allowSameNetworkUnicast_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasAllowStaticRoutes()) { + allowStaticRoutes_ = other.allowStaticRoutes_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasAllowSubInterfaces()) { + allowSubInterfaces_ = other.allowSubInterfaces_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasAllowVpcPeering()) { + allowVpcPeering_ = other.allowVpcPeering_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasAllowVpn()) { + allowVpn_ = other.allowVpn_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (!other.interfaceTypes_.isEmpty()) { + if (interfaceTypes_.isEmpty()) { + interfaceTypes_ = other.interfaceTypes_; + bitField0_ |= 0x00040000; + } else { + ensureInterfaceTypesIsMutable(); + interfaceTypes_.addAll(other.interfaceTypes_); + } + onChanged(); + } + if (!other.subnetPurposes_.isEmpty()) { + if (subnetPurposes_.isEmpty()) { + subnetPurposes_ = other.subnetPurposes_; + bitField0_ |= 0x00080000; + } else { + ensureSubnetPurposesIsMutable(); + subnetPurposes_.addAll(other.subnetPurposes_); + } + onChanged(); + } + if (!other.subnetStackTypes_.isEmpty()) { + if (subnetStackTypes_.isEmpty()) { + subnetStackTypes_ = other.subnetStackTypes_; + bitField0_ |= 0x00100000; + } else { + ensureSubnetStackTypesIsMutable(); + subnetStackTypes_.addAll(other.subnetStackTypes_); + } + onChanged(); + } + if (other.hasUnicast()) { + unicast_ = other.unicast_; + bitField0_ |= 0x00200000; + 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 706008034: + { + allowMultiNicInSameNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 706008034 + case 923217826: + { + allowVpcPeering_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 923217826 + case 1052304882: + { + allowExternalIpAccess_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 1052304882 + case 1052871898: + { + allowClassDFirewalls_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1052871898 + case 1217530106: + { + allowAutoModeSubnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1217530106 + case 1263849370: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInterfaceTypesIsMutable(); + interfaceTypes_.add(s); + break; + } // case 1263849370 + case 1340253146: + { + allowSameNetworkUnicast_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 1340253146 + case 1482063402: + { + allowStaticRoutes_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 1482063402 + case 1786929586: + { + allowLoadBalancing_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 1786929586 + case 1977666426: + { + allowSubInterfaces_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 1977666426 + case 1998733690: + { + unicast_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 1998733690 + case 2038650122: + { + allowCloudNat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 2038650122 + case -2050863582: + { + allowInterconnect_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case -2050863582 + case -1884262982: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubnetPurposesIsMutable(); + subnetPurposes_.add(s); + break; + } // case -1884262982 + case -1316108718: + { + allowPsc_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case -1316108718 + case -1316063246: + { + allowVpn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case -1316063246 + case -1297350718: + { + allowPrivateGoogleAccess_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case -1297350718 + case -830769150: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAddressPurposesIsMutable(); + addressPurposes_.add(s); + break; + } // case -830769150 + case -686084534: + { + allowCloudRouter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -686084534 + case -631093686: + { + allowAliasIpRanges_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -631093686 + case -197150702: + { + allowPacketMirroring_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case -197150702 + case -126897918: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubnetStackTypesIsMutable(); + subnetStackTypes_.add(s); + break; + } // case -126897918 + 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 addressPurposes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAddressPurposesIsMutable() { + if (!addressPurposes_.isModifiable()) { + addressPurposes_ = new com.google.protobuf.LazyStringArrayList(addressPurposes_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @return A list containing the addressPurposes. + */ + public com.google.protobuf.ProtocolStringList getAddressPurposesList() { + addressPurposes_.makeImmutable(); + return addressPurposes_; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @return The count of addressPurposes. + */ + public int getAddressPurposesCount() { + return addressPurposes_.size(); + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the element to return. + * @return The addressPurposes at the given index. + */ + public java.lang.String getAddressPurposes(int index) { + return addressPurposes_.get(index); + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the value to return. + * @return The bytes of the addressPurposes at the given index. + */ + public com.google.protobuf.ByteString getAddressPurposesBytes(int index) { + return addressPurposes_.getByteString(index); + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index to set the value at. + * @param value The addressPurposes to set. + * @return This builder for chaining. + */ + public Builder setAddressPurposes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressPurposesIsMutable(); + addressPurposes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param value The addressPurposes to add. + * @return This builder for chaining. + */ + public Builder addAddressPurposes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressPurposesIsMutable(); + addressPurposes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param values The addressPurposes to add. + * @return This builder for chaining. + */ + public Builder addAllAddressPurposes(java.lang.Iterable values) { + ensureAddressPurposesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressPurposes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @return This builder for chaining. + */ + public Builder clearAddressPurposes() { + addressPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +     * Check the AddressPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string address_purposes = 433024768; + * + * @param value The bytes of the addressPurposes to add. + * @return This builder for chaining. + */ + public Builder addAddressPurposesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAddressPurposesIsMutable(); + addressPurposes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object allowAliasIpRanges_ = ""; + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return Whether the allowAliasIpRanges field is set. + */ + public boolean hasAllowAliasIpRanges() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The allowAliasIpRanges. + */ + public java.lang.String getAllowAliasIpRanges() { + java.lang.Object ref = allowAliasIpRanges_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowAliasIpRanges_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The bytes for allowAliasIpRanges. + */ + public com.google.protobuf.ByteString getAllowAliasIpRangesBytes() { + java.lang.Object ref = allowAliasIpRanges_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowAliasIpRanges_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @param value The allowAliasIpRanges to set. + * @return This builder for chaining. + */ + public Builder setAllowAliasIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowAliasIpRanges_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return This builder for chaining. + */ + public Builder clearAllowAliasIpRanges() { + allowAliasIpRanges_ = getDefaultInstance().getAllowAliasIpRanges(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +     * Check the AllowAliasIpRanges enum for the list of possible values.
    +     * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @param value The bytes for allowAliasIpRanges to set. + * @return This builder for chaining. + */ + public Builder setAllowAliasIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowAliasIpRanges_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object allowAutoModeSubnet_ = ""; + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return Whether the allowAutoModeSubnet field is set. + */ + public boolean hasAllowAutoModeSubnet() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The allowAutoModeSubnet. + */ + public java.lang.String getAllowAutoModeSubnet() { + java.lang.Object ref = allowAutoModeSubnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowAutoModeSubnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The bytes for allowAutoModeSubnet. + */ + public com.google.protobuf.ByteString getAllowAutoModeSubnetBytes() { + java.lang.Object ref = allowAutoModeSubnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowAutoModeSubnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @param value The allowAutoModeSubnet to set. + * @return This builder for chaining. + */ + public Builder setAllowAutoModeSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowAutoModeSubnet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return This builder for chaining. + */ + public Builder clearAllowAutoModeSubnet() { + allowAutoModeSubnet_ = getDefaultInstance().getAllowAutoModeSubnet(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether auto mode subnet creation is allowed.
    +     * Check the AllowAutoModeSubnet enum for the list of possible values.
    +     * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @param value The bytes for allowAutoModeSubnet to set. + * @return This builder for chaining. + */ + public Builder setAllowAutoModeSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowAutoModeSubnet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object allowClassDFirewalls_ = ""; + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return Whether the allowClassDFirewalls field is set. + */ + public boolean hasAllowClassDFirewalls() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The allowClassDFirewalls. + */ + public java.lang.String getAllowClassDFirewalls() { + java.lang.Object ref = allowClassDFirewalls_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowClassDFirewalls_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The bytes for allowClassDFirewalls. + */ + public com.google.protobuf.ByteString getAllowClassDFirewallsBytes() { + java.lang.Object ref = allowClassDFirewalls_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowClassDFirewalls_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @param value The allowClassDFirewalls to set. + * @return This builder for chaining. + */ + public Builder setAllowClassDFirewalls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowClassDFirewalls_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return This builder for chaining. + */ + public Builder clearAllowClassDFirewalls() { + allowClassDFirewalls_ = getDefaultInstance().getAllowClassDFirewalls(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether firewalls for Class D address ranges are supported.
    +     * Check the AllowClassDFirewalls enum for the list of possible values.
    +     * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @param value The bytes for allowClassDFirewalls to set. + * @return This builder for chaining. + */ + public Builder setAllowClassDFirewallsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowClassDFirewalls_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object allowCloudNat_ = ""; + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return Whether the allowCloudNat field is set. + */ + public boolean hasAllowCloudNat() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The allowCloudNat. + */ + public java.lang.String getAllowCloudNat() { + java.lang.Object ref = allowCloudNat_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowCloudNat_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The bytes for allowCloudNat. + */ + public com.google.protobuf.ByteString getAllowCloudNatBytes() { + java.lang.Object ref = allowCloudNat_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowCloudNat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @param value The allowCloudNat to set. + * @return This builder for chaining. + */ + public Builder setAllowCloudNat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowCloudNat_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return This builder for chaining. + */ + public Builder clearAllowCloudNat() { + allowCloudNat_ = getDefaultInstance().getAllowCloudNat(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud NAT creation is allowed.
    +     * Check the AllowCloudNat enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @param value The bytes for allowCloudNat to set. + * @return This builder for chaining. + */ + public Builder setAllowCloudNatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowCloudNat_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object allowCloudRouter_ = ""; + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return Whether the allowCloudRouter field is set. + */ + public boolean hasAllowCloudRouter() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The allowCloudRouter. + */ + public java.lang.String getAllowCloudRouter() { + java.lang.Object ref = allowCloudRouter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowCloudRouter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The bytes for allowCloudRouter. + */ + public com.google.protobuf.ByteString getAllowCloudRouterBytes() { + java.lang.Object ref = allowCloudRouter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowCloudRouter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @param value The allowCloudRouter to set. + * @return This builder for chaining. + */ + public Builder setAllowCloudRouter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowCloudRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return This builder for chaining. + */ + public Builder clearAllowCloudRouter() { + allowCloudRouter_ = getDefaultInstance().getAllowCloudRouter(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud router creation is allowed.
    +     * Check the AllowCloudRouter enum for the list of possible values.
    +     * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @param value The bytes for allowCloudRouter to set. + * @return This builder for chaining. + */ + public Builder setAllowCloudRouterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowCloudRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object allowExternalIpAccess_ = ""; + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return Whether the allowExternalIpAccess field is set. + */ + public boolean hasAllowExternalIpAccess() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The allowExternalIpAccess. + */ + public java.lang.String getAllowExternalIpAccess() { + java.lang.Object ref = allowExternalIpAccess_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowExternalIpAccess_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The bytes for allowExternalIpAccess. + */ + public com.google.protobuf.ByteString getAllowExternalIpAccessBytes() { + java.lang.Object ref = allowExternalIpAccess_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowExternalIpAccess_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @param value The allowExternalIpAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowExternalIpAccess(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowExternalIpAccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return This builder for chaining. + */ + public Builder clearAllowExternalIpAccess() { + allowExternalIpAccess_ = getDefaultInstance().getAllowExternalIpAccess(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +     * Check the AllowExternalIpAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @param value The bytes for allowExternalIpAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowExternalIpAccessBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowExternalIpAccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object allowInterconnect_ = ""; + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return Whether the allowInterconnect field is set. + */ + public boolean hasAllowInterconnect() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The allowInterconnect. + */ + public java.lang.String getAllowInterconnect() { + java.lang.Object ref = allowInterconnect_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowInterconnect_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The bytes for allowInterconnect. + */ + public com.google.protobuf.ByteString getAllowInterconnectBytes() { + java.lang.Object ref = allowInterconnect_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowInterconnect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @param value The allowInterconnect to set. + * @return This builder for chaining. + */ + public Builder setAllowInterconnect(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowInterconnect_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return This builder for chaining. + */ + public Builder clearAllowInterconnect() { + allowInterconnect_ = getDefaultInstance().getAllowInterconnect(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether Cloud Interconnect creation is allowed.
    +     * Check the AllowInterconnect enum for the list of possible values.
    +     * 
    + * + * optional string allow_interconnect = 280512964; + * + * @param value The bytes for allowInterconnect to set. + * @return This builder for chaining. + */ + public Builder setAllowInterconnectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowInterconnect_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object allowLoadBalancing_ = ""; + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return Whether the allowLoadBalancing field is set. + */ + public boolean hasAllowLoadBalancing() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The allowLoadBalancing. + */ + public java.lang.String getAllowLoadBalancing() { + java.lang.Object ref = allowLoadBalancing_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowLoadBalancing_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The bytes for allowLoadBalancing. + */ + public com.google.protobuf.ByteString getAllowLoadBalancingBytes() { + java.lang.Object ref = allowLoadBalancing_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowLoadBalancing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @param value The allowLoadBalancing to set. + * @return This builder for chaining. + */ + public Builder setAllowLoadBalancing(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowLoadBalancing_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return This builder for chaining. + */ + public Builder clearAllowLoadBalancing() { + allowLoadBalancing_ = getDefaultInstance().getAllowLoadBalancing(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether cloud load balancing is allowed.
    +     * Check the AllowLoadBalancing enum for the list of possible values.
    +     * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @param value The bytes for allowLoadBalancing to set. + * @return This builder for chaining. + */ + public Builder setAllowLoadBalancingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowLoadBalancing_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object allowMultiNicInSameNetwork_ = ""; + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return Whether the allowMultiNicInSameNetwork field is set. + */ + public boolean hasAllowMultiNicInSameNetwork() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The allowMultiNicInSameNetwork. + */ + public java.lang.String getAllowMultiNicInSameNetwork() { + java.lang.Object ref = allowMultiNicInSameNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowMultiNicInSameNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The bytes for allowMultiNicInSameNetwork. + */ + public com.google.protobuf.ByteString getAllowMultiNicInSameNetworkBytes() { + java.lang.Object ref = allowMultiNicInSameNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowMultiNicInSameNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @param value The allowMultiNicInSameNetwork to set. + * @return This builder for chaining. + */ + public Builder setAllowMultiNicInSameNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowMultiNicInSameNetwork_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return This builder for chaining. + */ + public Builder clearAllowMultiNicInSameNetwork() { + allowMultiNicInSameNetwork_ = getDefaultInstance().getAllowMultiNicInSameNetwork(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether multi-nic in the same network is allowed.
    +     * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +     * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @param value The bytes for allowMultiNicInSameNetwork to set. + * @return This builder for chaining. + */ + public Builder setAllowMultiNicInSameNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowMultiNicInSameNetwork_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object allowPacketMirroring_ = ""; + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return Whether the allowPacketMirroring field is set. + */ + public boolean hasAllowPacketMirroring() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The allowPacketMirroring. + */ + public java.lang.String getAllowPacketMirroring() { + java.lang.Object ref = allowPacketMirroring_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowPacketMirroring_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The bytes for allowPacketMirroring. + */ + public com.google.protobuf.ByteString getAllowPacketMirroringBytes() { + java.lang.Object ref = allowPacketMirroring_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPacketMirroring_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @param value The allowPacketMirroring to set. + * @return This builder for chaining. + */ + public Builder setAllowPacketMirroring(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowPacketMirroring_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return This builder for chaining. + */ + public Builder clearAllowPacketMirroring() { + allowPacketMirroring_ = getDefaultInstance().getAllowPacketMirroring(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether Packet Mirroring 1.0 is supported.
    +     * Check the AllowPacketMirroring enum for the list of possible values.
    +     * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @param value The bytes for allowPacketMirroring to set. + * @return This builder for chaining. + */ + public Builder setAllowPacketMirroringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowPacketMirroring_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object allowPrivateGoogleAccess_ = ""; + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return Whether the allowPrivateGoogleAccess field is set. + */ + public boolean hasAllowPrivateGoogleAccess() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The allowPrivateGoogleAccess. + */ + public java.lang.String getAllowPrivateGoogleAccess() { + java.lang.Object ref = allowPrivateGoogleAccess_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowPrivateGoogleAccess_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The bytes for allowPrivateGoogleAccess. + */ + public com.google.protobuf.ByteString getAllowPrivateGoogleAccessBytes() { + java.lang.Object ref = allowPrivateGoogleAccess_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPrivateGoogleAccess_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @param value The allowPrivateGoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowPrivateGoogleAccess(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowPrivateGoogleAccess_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return This builder for chaining. + */ + public Builder clearAllowPrivateGoogleAccess() { + allowPrivateGoogleAccess_ = getDefaultInstance().getAllowPrivateGoogleAccess(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether private Google access is allowed.
    +     * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +     * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @param value The bytes for allowPrivateGoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowPrivateGoogleAccessBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowPrivateGoogleAccess_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object allowPsc_ = ""; + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @return Whether the allowPsc field is set. + */ + public boolean hasAllowPsc() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @return The allowPsc. + */ + public java.lang.String getAllowPsc() { + java.lang.Object ref = allowPsc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowPsc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @return The bytes for allowPsc. + */ + public com.google.protobuf.ByteString getAllowPscBytes() { + java.lang.Object ref = allowPsc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowPsc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @param value The allowPsc to set. + * @return This builder for chaining. + */ + public Builder setAllowPsc(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowPsc_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @return This builder for chaining. + */ + public Builder clearAllowPsc() { + allowPsc_ = getDefaultInstance().getAllowPsc(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether PSC creation is allowed.
    +     * Check the AllowPsc enum for the list of possible values.
    +     * 
    + * + * optional string allow_psc = 372357322; + * + * @param value The bytes for allowPsc to set. + * @return This builder for chaining. + */ + public Builder setAllowPscBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowPsc_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object allowSameNetworkUnicast_ = ""; + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return Whether the allowSameNetworkUnicast field is set. + */ + public boolean hasAllowSameNetworkUnicast() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The allowSameNetworkUnicast. + */ + public java.lang.String getAllowSameNetworkUnicast() { + java.lang.Object ref = allowSameNetworkUnicast_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowSameNetworkUnicast_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The bytes for allowSameNetworkUnicast. + */ + public com.google.protobuf.ByteString getAllowSameNetworkUnicastBytes() { + java.lang.Object ref = allowSameNetworkUnicast_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowSameNetworkUnicast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @param value The allowSameNetworkUnicast to set. + * @return This builder for chaining. + */ + public Builder setAllowSameNetworkUnicast(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowSameNetworkUnicast_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return This builder for chaining. + */ + public Builder clearAllowSameNetworkUnicast() { + allowSameNetworkUnicast_ = getDefaultInstance().getAllowSameNetworkUnicast(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether unicast within the same network is allowed.
    +     * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +     * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @param value The bytes for allowSameNetworkUnicast to set. + * @return This builder for chaining. + */ + public Builder setAllowSameNetworkUnicastBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowSameNetworkUnicast_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object allowStaticRoutes_ = ""; + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return Whether the allowStaticRoutes field is set. + */ + public boolean hasAllowStaticRoutes() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The allowStaticRoutes. + */ + public java.lang.String getAllowStaticRoutes() { + java.lang.Object ref = allowStaticRoutes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowStaticRoutes_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The bytes for allowStaticRoutes. + */ + public com.google.protobuf.ByteString getAllowStaticRoutesBytes() { + java.lang.Object ref = allowStaticRoutes_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowStaticRoutes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @param value The allowStaticRoutes to set. + * @return This builder for chaining. + */ + public Builder setAllowStaticRoutes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowStaticRoutes_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return This builder for chaining. + */ + public Builder clearAllowStaticRoutes() { + allowStaticRoutes_ = getDefaultInstance().getAllowStaticRoutes(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether static route creation is allowed.
    +     * Check the AllowStaticRoutes enum for the list of possible values.
    +     * 
    + * + * optional string allow_static_routes = 185257925; + * + * @param value The bytes for allowStaticRoutes to set. + * @return This builder for chaining. + */ + public Builder setAllowStaticRoutesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowStaticRoutes_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object allowSubInterfaces_ = ""; + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return Whether the allowSubInterfaces field is set. + */ + public boolean hasAllowSubInterfaces() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The allowSubInterfaces. + */ + public java.lang.String getAllowSubInterfaces() { + java.lang.Object ref = allowSubInterfaces_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowSubInterfaces_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The bytes for allowSubInterfaces. + */ + public com.google.protobuf.ByteString getAllowSubInterfacesBytes() { + java.lang.Object ref = allowSubInterfaces_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowSubInterfaces_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @param value The allowSubInterfaces to set. + * @return This builder for chaining. + */ + public Builder setAllowSubInterfaces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowSubInterfaces_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return This builder for chaining. + */ + public Builder clearAllowSubInterfaces() { + allowSubInterfaces_ = getDefaultInstance().getAllowSubInterfaces(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether sub interfaces are allowed.
    +     * Check the AllowSubInterfaces enum for the list of possible values.
    +     * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @param value The bytes for allowSubInterfaces to set. + * @return This builder for chaining. + */ + public Builder setAllowSubInterfacesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowSubInterfaces_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object allowVpcPeering_ = ""; + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return Whether the allowVpcPeering field is set. + */ + public boolean hasAllowVpcPeering() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The allowVpcPeering. + */ + public java.lang.String getAllowVpcPeering() { + java.lang.Object ref = allowVpcPeering_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowVpcPeering_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The bytes for allowVpcPeering. + */ + public com.google.protobuf.ByteString getAllowVpcPeeringBytes() { + java.lang.Object ref = allowVpcPeering_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowVpcPeering_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @param value The allowVpcPeering to set. + * @return This builder for chaining. + */ + public Builder setAllowVpcPeering(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowVpcPeering_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return This builder for chaining. + */ + public Builder clearAllowVpcPeering() { + allowVpcPeering_ = getDefaultInstance().getAllowVpcPeering(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VPC peering is allowed.
    +     * Check the AllowVpcPeering enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @param value The bytes for allowVpcPeering to set. + * @return This builder for chaining. + */ + public Builder setAllowVpcPeeringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowVpcPeering_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object allowVpn_ = ""; + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @return Whether the allowVpn field is set. + */ + public boolean hasAllowVpn() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The allowVpn. + */ + public java.lang.String getAllowVpn() { + java.lang.Object ref = allowVpn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowVpn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The bytes for allowVpn. + */ + public com.google.protobuf.ByteString getAllowVpnBytes() { + java.lang.Object ref = allowVpn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allowVpn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @param value The allowVpn to set. + * @return This builder for chaining. + */ + public Builder setAllowVpn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allowVpn_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @return This builder for chaining. + */ + public Builder clearAllowVpn() { + allowVpn_ = getDefaultInstance().getAllowVpn(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies whether VPN creation is allowed.
    +     * Check the AllowVpn enum for the list of possible values.
    +     * 
    + * + * optional string allow_vpn = 372363006; + * + * @param value The bytes for allowVpn to set. + * @return This builder for chaining. + */ + public Builder setAllowVpnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowVpn_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList interfaceTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInterfaceTypesIsMutable() { + if (!interfaceTypes_.isModifiable()) { + interfaceTypes_ = new com.google.protobuf.LazyStringArrayList(interfaceTypes_); + } + bitField0_ |= 0x00040000; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @return A list containing the interfaceTypes. + */ + public com.google.protobuf.ProtocolStringList getInterfaceTypesList() { + interfaceTypes_.makeImmutable(); + return interfaceTypes_; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @return The count of interfaceTypes. + */ + public int getInterfaceTypesCount() { + return interfaceTypes_.size(); + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the element to return. + * @return The interfaceTypes at the given index. + */ + public java.lang.String getInterfaceTypes(int index) { + return interfaceTypes_.get(index); + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the value to return. + * @return The bytes of the interfaceTypes at the given index. + */ + public com.google.protobuf.ByteString getInterfaceTypesBytes(int index) { + return interfaceTypes_.getByteString(index); + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index to set the value at. + * @param value The interfaceTypes to set. + * @return This builder for chaining. + */ + public Builder setInterfaceTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfaceTypesIsMutable(); + interfaceTypes_.set(index, value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param value The interfaceTypes to add. + * @return This builder for chaining. + */ + public Builder addInterfaceTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfaceTypesIsMutable(); + interfaceTypes_.add(value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param values The interfaceTypes to add. + * @return This builder for chaining. + */ + public Builder addAllInterfaceTypes(java.lang.Iterable values) { + ensureInterfaceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaceTypes_); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @return This builder for chaining. + */ + public Builder clearInterfaceTypes() { + interfaceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +     * Check the InterfaceTypes enum for the list of possible values.
    +     * 
    + * + * repeated string interface_types = 157981171; + * + * @param value The bytes of the interfaceTypes to add. + * @return This builder for chaining. + */ + public Builder addInterfaceTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInterfaceTypesIsMutable(); + interfaceTypes_.add(value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subnetPurposes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubnetPurposesIsMutable() { + if (!subnetPurposes_.isModifiable()) { + subnetPurposes_ = new com.google.protobuf.LazyStringArrayList(subnetPurposes_); + } + bitField0_ |= 0x00080000; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return A list containing the subnetPurposes. + */ + public com.google.protobuf.ProtocolStringList getSubnetPurposesList() { + subnetPurposes_.makeImmutable(); + return subnetPurposes_; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return The count of subnetPurposes. + */ + public int getSubnetPurposesCount() { + return subnetPurposes_.size(); + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the element to return. + * @return The subnetPurposes at the given index. + */ + public java.lang.String getSubnetPurposes(int index) { + return subnetPurposes_.get(index); + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the value to return. + * @return The bytes of the subnetPurposes at the given index. + */ + public com.google.protobuf.ByteString getSubnetPurposesBytes(int index) { + return subnetPurposes_.getByteString(index); + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index to set the value at. + * @param value The subnetPurposes to set. + * @return This builder for chaining. + */ + public Builder setSubnetPurposes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetPurposesIsMutable(); + subnetPurposes_.set(index, value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param value The subnetPurposes to add. + * @return This builder for chaining. + */ + public Builder addSubnetPurposes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetPurposesIsMutable(); + subnetPurposes_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param values The subnetPurposes to add. + * @return This builder for chaining. + */ + public Builder addAllSubnetPurposes(java.lang.Iterable values) { + ensureSubnetPurposesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetPurposes_); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return This builder for chaining. + */ + public Builder clearSubnetPurposes() { + subnetPurposes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork purposes are supported.
    +     * Check the SubnetPurposes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param value The bytes of the subnetPurposes to add. + * @return This builder for chaining. + */ + public Builder addSubnetPurposesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubnetPurposesIsMutable(); + subnetPurposes_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subnetStackTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubnetStackTypesIsMutable() { + if (!subnetStackTypes_.isModifiable()) { + subnetStackTypes_ = new com.google.protobuf.LazyStringArrayList(subnetStackTypes_); + } + bitField0_ |= 0x00100000; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return A list containing the subnetStackTypes. + */ + public com.google.protobuf.ProtocolStringList getSubnetStackTypesList() { + subnetStackTypes_.makeImmutable(); + return subnetStackTypes_; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return The count of subnetStackTypes. + */ + public int getSubnetStackTypesCount() { + return subnetStackTypes_.size(); + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the element to return. + * @return The subnetStackTypes at the given index. + */ + public java.lang.String getSubnetStackTypes(int index) { + return subnetStackTypes_.get(index); + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the value to return. + * @return The bytes of the subnetStackTypes at the given index. + */ + public com.google.protobuf.ByteString getSubnetStackTypesBytes(int index) { + return subnetStackTypes_.getByteString(index); + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index to set the value at. + * @param value The subnetStackTypes to set. + * @return This builder for chaining. + */ + public Builder setSubnetStackTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetStackTypesIsMutable(); + subnetStackTypes_.set(index, value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param value The subnetStackTypes to add. + * @return This builder for chaining. + */ + public Builder addSubnetStackTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetStackTypesIsMutable(); + subnetStackTypes_.add(value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param values The subnetStackTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSubnetStackTypes(java.lang.Iterable values) { + ensureSubnetStackTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetStackTypes_); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return This builder for chaining. + */ + public Builder clearSubnetStackTypes() { + subnetStackTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which subnetwork stack types are supported.
    +     * Check the SubnetStackTypes enum for the list of possible values.
    +     * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param value The bytes of the subnetStackTypes to add. + * @return This builder for chaining. + */ + public Builder addSubnetStackTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubnetStackTypesIsMutable(); + subnetStackTypes_.add(value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private java.lang.Object unicast_ = ""; + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @return Whether the unicast field is set. + */ + public boolean hasUnicast() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @return The unicast. + */ + public java.lang.String getUnicast() { + java.lang.Object ref = unicast_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unicast_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @return The bytes for unicast. + */ + public com.google.protobuf.ByteString getUnicastBytes() { + java.lang.Object ref = unicast_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unicast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @param value The unicast to set. + * @return This builder for chaining. + */ + public Builder setUnicast(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unicast_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @return This builder for chaining. + */ + public Builder clearUnicast() { + unicast_ = getDefaultInstance().getUnicast(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Specifies which type of unicast is supported.
    +     * Check the Unicast enum for the list of possible values.
    +     * 
    + * + * optional string unicast = 249841711; + * + * @param value The bytes for unicast to set. + * @return This builder for chaining. + */ + public Builder setUnicastBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unicast_ = value; + bitField0_ |= 0x00200000; + 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.compute.v1.NetworkProfileNetworkFeatures) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkProfileNetworkFeatures) + private static final com.google.cloud.compute.v1.NetworkProfileNetworkFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkProfileNetworkFeatures(); + } + + public static com.google.cloud.compute.v1.NetworkProfileNetworkFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkProfileNetworkFeatures 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.compute.v1.NetworkProfileNetworkFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeaturesOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeaturesOrBuilder.java new file mode 100644 index 000000000000..9f6404c7ff6f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileNetworkFeaturesOrBuilder.java @@ -0,0 +1,966 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface NetworkProfileNetworkFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkProfileNetworkFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @return A list containing the addressPurposes. + */ + java.util.List getAddressPurposesList(); + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @return The count of addressPurposes. + */ + int getAddressPurposesCount(); + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the element to return. + * @return The addressPurposes at the given index. + */ + java.lang.String getAddressPurposes(int index); + /** + * + * + *
    +   * Specifies what address purposes are supported. If empty, all address purposes are supported.
    +   * Check the AddressPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string address_purposes = 433024768; + * + * @param index The index of the value to return. + * @return The bytes of the addressPurposes at the given index. + */ + com.google.protobuf.ByteString getAddressPurposesBytes(int index); + + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return Whether the allowAliasIpRanges field is set. + */ + boolean hasAllowAliasIpRanges(); + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The allowAliasIpRanges. + */ + java.lang.String getAllowAliasIpRanges(); + /** + * + * + *
    +   * Specifies whether alias IP ranges (and secondary address ranges) are allowed.
    +   * Check the AllowAliasIpRanges enum for the list of possible values.
    +   * 
    + * + * optional string allow_alias_ip_ranges = 457984201; + * + * @return The bytes for allowAliasIpRanges. + */ + com.google.protobuf.ByteString getAllowAliasIpRangesBytes(); + + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return Whether the allowAutoModeSubnet field is set. + */ + boolean hasAllowAutoModeSubnet(); + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The allowAutoModeSubnet. + */ + java.lang.String getAllowAutoModeSubnet(); + /** + * + * + *
    +   * Specifies whether auto mode subnet creation is allowed.
    +   * Check the AllowAutoModeSubnet enum for the list of possible values.
    +   * 
    + * + * optional string allow_auto_mode_subnet = 152191263; + * + * @return The bytes for allowAutoModeSubnet. + */ + com.google.protobuf.ByteString getAllowAutoModeSubnetBytes(); + + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return Whether the allowClassDFirewalls field is set. + */ + boolean hasAllowClassDFirewalls(); + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The allowClassDFirewalls. + */ + java.lang.String getAllowClassDFirewalls(); + /** + * + * + *
    +   * Specifies whether firewalls for Class D address ranges are supported.
    +   * Check the AllowClassDFirewalls enum for the list of possible values.
    +   * 
    + * + * optional string allow_class_d_firewalls = 131608987; + * + * @return The bytes for allowClassDFirewalls. + */ + com.google.protobuf.ByteString getAllowClassDFirewallsBytes(); + + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return Whether the allowCloudNat field is set. + */ + boolean hasAllowCloudNat(); + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The allowCloudNat. + */ + java.lang.String getAllowCloudNat(); + /** + * + * + *
    +   * Specifies whether cloud NAT creation is allowed.
    +   * Check the AllowCloudNat enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_nat = 254831265; + * + * @return The bytes for allowCloudNat. + */ + com.google.protobuf.ByteString getAllowCloudNatBytes(); + + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return Whether the allowCloudRouter field is set. + */ + boolean hasAllowCloudRouter(); + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The allowCloudRouter. + */ + java.lang.String getAllowCloudRouter(); + /** + * + * + *
    +   * Specifies whether cloud router creation is allowed.
    +   * Check the AllowCloudRouter enum for the list of possible values.
    +   * 
    + * + * optional string allow_cloud_router = 451110345; + * + * @return The bytes for allowCloudRouter. + */ + com.google.protobuf.ByteString getAllowCloudRouterBytes(); + + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return Whether the allowExternalIpAccess field is set. + */ + boolean hasAllowExternalIpAccess(); + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The allowExternalIpAccess. + */ + java.lang.String getAllowExternalIpAccess(); + /** + * + * + *
    +   * Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.
    +   * Check the AllowExternalIpAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_external_ip_access = 131538110; + * + * @return The bytes for allowExternalIpAccess. + */ + com.google.protobuf.ByteString getAllowExternalIpAccessBytes(); + + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return Whether the allowInterconnect field is set. + */ + boolean hasAllowInterconnect(); + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The allowInterconnect. + */ + java.lang.String getAllowInterconnect(); + /** + * + * + *
    +   * Specifies whether Cloud Interconnect creation is allowed.
    +   * Check the AllowInterconnect enum for the list of possible values.
    +   * 
    + * + * optional string allow_interconnect = 280512964; + * + * @return The bytes for allowInterconnect. + */ + com.google.protobuf.ByteString getAllowInterconnectBytes(); + + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return Whether the allowLoadBalancing field is set. + */ + boolean hasAllowLoadBalancing(); + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The allowLoadBalancing. + */ + java.lang.String getAllowLoadBalancing(); + /** + * + * + *
    +   * Specifies whether cloud load balancing is allowed.
    +   * Check the AllowLoadBalancing enum for the list of possible values.
    +   * 
    + * + * optional string allow_load_balancing = 223366198; + * + * @return The bytes for allowLoadBalancing. + */ + com.google.protobuf.ByteString getAllowLoadBalancingBytes(); + + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return Whether the allowMultiNicInSameNetwork field is set. + */ + boolean hasAllowMultiNicInSameNetwork(); + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The allowMultiNicInSameNetwork. + */ + java.lang.String getAllowMultiNicInSameNetwork(); + /** + * + * + *
    +   * Specifies whether multi-nic in the same network is allowed.
    +   * Check the AllowMultiNicInSameNetwork enum for the list of possible values.
    +   * 
    + * + * optional string allow_multi_nic_in_same_network = 88251004; + * + * @return The bytes for allowMultiNicInSameNetwork. + */ + com.google.protobuf.ByteString getAllowMultiNicInSameNetworkBytes(); + + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return Whether the allowPacketMirroring field is set. + */ + boolean hasAllowPacketMirroring(); + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The allowPacketMirroring. + */ + java.lang.String getAllowPacketMirroring(); + /** + * + * + *
    +   * Specifies whether Packet Mirroring 1.0 is supported.
    +   * Check the AllowPacketMirroring enum for the list of possible values.
    +   * 
    + * + * optional string allow_packet_mirroring = 512227074; + * + * @return The bytes for allowPacketMirroring. + */ + com.google.protobuf.ByteString getAllowPacketMirroringBytes(); + + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return Whether the allowPrivateGoogleAccess field is set. + */ + boolean hasAllowPrivateGoogleAccess(); + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The allowPrivateGoogleAccess. + */ + java.lang.String getAllowPrivateGoogleAccess(); + /** + * + * + *
    +   * Specifies whether private Google access is allowed.
    +   * Check the AllowPrivateGoogleAccess enum for the list of possible values.
    +   * 
    + * + * optional string allow_private_google_access = 374702072; + * + * @return The bytes for allowPrivateGoogleAccess. + */ + com.google.protobuf.ByteString getAllowPrivateGoogleAccessBytes(); + + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return Whether the allowPsc field is set. + */ + boolean hasAllowPsc(); + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return The allowPsc. + */ + java.lang.String getAllowPsc(); + /** + * + * + *
    +   * Specifies whether PSC creation is allowed.
    +   * Check the AllowPsc enum for the list of possible values.
    +   * 
    + * + * optional string allow_psc = 372357322; + * + * @return The bytes for allowPsc. + */ + com.google.protobuf.ByteString getAllowPscBytes(); + + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return Whether the allowSameNetworkUnicast field is set. + */ + boolean hasAllowSameNetworkUnicast(); + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The allowSameNetworkUnicast. + */ + java.lang.String getAllowSameNetworkUnicast(); + /** + * + * + *
    +   * Specifies whether unicast within the same network is allowed.
    +   * Check the AllowSameNetworkUnicast enum for the list of possible values.
    +   * 
    + * + * optional string allow_same_network_unicast = 167531643; + * + * @return The bytes for allowSameNetworkUnicast. + */ + com.google.protobuf.ByteString getAllowSameNetworkUnicastBytes(); + + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return Whether the allowStaticRoutes field is set. + */ + boolean hasAllowStaticRoutes(); + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The allowStaticRoutes. + */ + java.lang.String getAllowStaticRoutes(); + /** + * + * + *
    +   * Specifies whether static route creation is allowed.
    +   * Check the AllowStaticRoutes enum for the list of possible values.
    +   * 
    + * + * optional string allow_static_routes = 185257925; + * + * @return The bytes for allowStaticRoutes. + */ + com.google.protobuf.ByteString getAllowStaticRoutesBytes(); + + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return Whether the allowSubInterfaces field is set. + */ + boolean hasAllowSubInterfaces(); + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The allowSubInterfaces. + */ + java.lang.String getAllowSubInterfaces(); + /** + * + * + *
    +   * Specifies whether sub interfaces are allowed.
    +   * Check the AllowSubInterfaces enum for the list of possible values.
    +   * 
    + * + * optional string allow_sub_interfaces = 247208303; + * + * @return The bytes for allowSubInterfaces. + */ + com.google.protobuf.ByteString getAllowSubInterfacesBytes(); + + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return Whether the allowVpcPeering field is set. + */ + boolean hasAllowVpcPeering(); + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The allowVpcPeering. + */ + java.lang.String getAllowVpcPeering(); + /** + * + * + *
    +   * Specifies whether VPC peering is allowed.
    +   * Check the AllowVpcPeering enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpc_peering = 115402228; + * + * @return The bytes for allowVpcPeering. + */ + com.google.protobuf.ByteString getAllowVpcPeeringBytes(); + + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return Whether the allowVpn field is set. + */ + boolean hasAllowVpn(); + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The allowVpn. + */ + java.lang.String getAllowVpn(); + /** + * + * + *
    +   * Specifies whether VPN creation is allowed.
    +   * Check the AllowVpn enum for the list of possible values.
    +   * 
    + * + * optional string allow_vpn = 372363006; + * + * @return The bytes for allowVpn. + */ + com.google.protobuf.ByteString getAllowVpnBytes(); + + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @return A list containing the interfaceTypes. + */ + java.util.List getInterfaceTypesList(); + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @return The count of interfaceTypes. + */ + int getInterfaceTypesCount(); + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the element to return. + * @return The interfaceTypes at the given index. + */ + java.lang.String getInterfaceTypes(int index); + /** + * + * + *
    +   * If set, limits the interface types that the network supports. If empty, all interface types are supported.
    +   * Check the InterfaceTypes enum for the list of possible values.
    +   * 
    + * + * repeated string interface_types = 157981171; + * + * @param index The index of the value to return. + * @return The bytes of the interfaceTypes at the given index. + */ + com.google.protobuf.ByteString getInterfaceTypesBytes(int index); + + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return A list containing the subnetPurposes. + */ + java.util.List getSubnetPurposesList(); + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @return The count of subnetPurposes. + */ + int getSubnetPurposesCount(); + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the element to return. + * @return The subnetPurposes at the given index. + */ + java.lang.String getSubnetPurposes(int index); + /** + * + * + *
    +   * Specifies which subnetwork purposes are supported.
    +   * Check the SubnetPurposes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_purposes = 301338039; + * + * @param index The index of the value to return. + * @return The bytes of the subnetPurposes at the given index. + */ + com.google.protobuf.ByteString getSubnetPurposesBytes(int index); + + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return A list containing the subnetStackTypes. + */ + java.util.List getSubnetStackTypesList(); + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @return The count of subnetStackTypes. + */ + int getSubnetStackTypesCount(); + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the element to return. + * @return The subnetStackTypes at the given index. + */ + java.lang.String getSubnetStackTypes(int index); + /** + * + * + *
    +   * Specifies which subnetwork stack types are supported.
    +   * Check the SubnetStackTypes enum for the list of possible values.
    +   * 
    + * + * repeated string subnet_stack_types = 521008672; + * + * @param index The index of the value to return. + * @return The bytes of the subnetStackTypes at the given index. + */ + com.google.protobuf.ByteString getSubnetStackTypesBytes(int index); + + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return Whether the unicast field is set. + */ + boolean hasUnicast(); + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return The unicast. + */ + java.lang.String getUnicast(); + /** + * + * + *
    +   * Specifies which type of unicast is supported.
    +   * Check the Unicast enum for the list of possible values.
    +   * 
    + * + * optional string unicast = 249841711; + * + * @return The bytes for unicast. + */ + com.google.protobuf.ByteString getUnicastBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileOrBuilder.java new file mode 100644 index 000000000000..94a1bcca7fcc --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfileOrBuilder.java @@ -0,0 +1,383 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface NetworkProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + boolean hasCreationTimestamp(); + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + java.lang.String getCreationTimestamp(); + /** + * + * + *
    +   * [Output Only] Creation timestamp in RFC3339 text format.
    +   * 
    + * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + com.google.protobuf.ByteString getCreationTimestampBytes(); + + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
    +   * [Output Only] An optional description of this resource.
    +   * 
    + * + * optional string description = 422937596; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return Whether the features field is set. + */ + boolean hasFeatures(); + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + * + * @return The features. + */ + com.google.cloud.compute.v1.NetworkProfileNetworkFeatures getFeatures(); + /** + * + * + *
    +   * [Output Only] Features supported by the network.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileNetworkFeatures features = 246211645; + * + */ + com.google.cloud.compute.v1.NetworkProfileNetworkFeaturesOrBuilder getFeaturesOrBuilder(); + + /** + * + * + *
    +   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +   * 
    + * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + /** + * + * + *
    +   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    +   * 
    + * + * optional uint64 id = 3355; + * + * @return The id. + */ + long getId(); + + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
    +   * [Output Only] Type of the resource. Always compute#networkProfile for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return Whether the location field is set. + */ + boolean hasLocation(); + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + * + * @return The location. + */ + com.google.cloud.compute.v1.NetworkProfileLocation getLocation(); + /** + * + * + *
    +   * [Output Only] Location to which the network is restricted.
    +   * 
    + * + * optional .google.cloud.compute.v1.NetworkProfileLocation location = 290430901; + */ + com.google.cloud.compute.v1.NetworkProfileLocationOrBuilder getLocationOrBuilder(); + + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * [Output Only] Name of the resource.
    +   * 
    + * + * optional string name = 3373707; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for the resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + boolean hasSelfLinkWithId(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + java.lang.String getSelfLinkWithId(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource with the resource id.
    +   * 
    + * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + com.google.protobuf.ByteString getSelfLinkWithIdBytes(); + + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + boolean hasZone(); + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
    +   * [Output Only] Zone to which the network is restricted.
    +   * 
    + * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponse.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponse.java new file mode 100644 index 000000000000..1c7606c507f9 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponse.java @@ -0,0 +1,2522 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * Contains a list of network profiles.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfilesListResponse} + */ +public final class NetworkProfilesListResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkProfilesListResponse) + NetworkProfilesListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkProfilesListResponse.newBuilder() to construct. + private NetworkProfilesListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkProfilesListResponse() { + etag_ = ""; + id_ = ""; + items_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkProfilesListResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfilesListResponse.class, + com.google.cloud.compute.v1.NetworkProfilesListResponse.Builder.class); + } + + private int bitField0_; + public static final int ETAG_FIELD_NUMBER = 3123477; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @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; + } + } + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @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 ITEMS_FIELD_NUMBER = 100526016; + + @SuppressWarnings("serial") + private java.util.List items_; + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfile getItems(int index) { + return items_.get(index); + } + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfileOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @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; + } + } + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLES_FIELD_NUMBER = 243372063; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + return unreachables_; + } + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(100526016, items_.get(i)); + } + for (int i = 0; i < unreachables_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 243372063, unreachables_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachables_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); + } + size += dataSize; + size += 5 * getUnreachablesList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.NetworkProfilesListResponse)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.NetworkProfilesListResponse other = + (com.google.cloud.compute.v1.NetworkProfilesListResponse) obj; + + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!getItemsList().equals(other.getItemsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (getUnreachablesCount() > 0) { + hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; + hash = (53 * hash) + getUnreachablesList().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse 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 a list of network profiles.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.NetworkProfilesListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkProfilesListResponse) + com.google.cloud.compute.v1.NetworkProfilesListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkProfilesListResponse.class, + com.google.cloud.compute.v1.NetworkProfilesListResponse.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.NetworkProfilesListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + getWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + etag_ = ""; + id_ = ""; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfilesListResponse getDefaultInstanceForType() { + return com.google.cloud.compute.v1.NetworkProfilesListResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfilesListResponse build() { + com.google.cloud.compute.v1.NetworkProfilesListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkProfilesListResponse buildPartial() { + com.google.cloud.compute.v1.NetworkProfilesListResponse result = + new com.google.cloud.compute.v1.NetworkProfilesListResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.NetworkProfilesListResponse result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.NetworkProfilesListResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unreachables_.makeImmutable(); + result.unreachables_ = unreachables_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + 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.compute.v1.NetworkProfilesListResponse) { + return mergeFrom((com.google.cloud.compute.v1.NetworkProfilesListResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.NetworkProfilesListResponse other) { + if (other == com.google.cloud.compute.v1.NetworkProfilesListResponse.getDefaultInstance()) + return this; + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.unreachables_.isEmpty()) { + if (unreachables_.isEmpty()) { + unreachables_ = other.unreachables_; + bitField0_ |= 0x00000040; + } else { + ensureUnreachablesIsMutable(); + unreachables_.addAll(other.unreachables_); + } + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26842 + case 24987818: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24987818 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 638380202 + case 804208130: + { + com.google.cloud.compute.v1.NetworkProfile m = + input.readMessage( + com.google.cloud.compute.v1.NetworkProfile.parser(), extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 804208130 + case 1946976506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachablesIsMutable(); + unreachables_.add(s); + break; + } // case 1946976506 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -645248918 + 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 etag_ = ""; + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string etag = 3123477; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string etag = 3123477; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string etag = 3123477; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @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; + } + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Unique identifier for the resource; defined by the server.
    +     * 
    + * + * optional string id = 3355; + * + * @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.util.List items_ = + java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfile, + com.google.cloud.compute.v1.NetworkProfile.Builder, + com.google.cloud.compute.v1.NetworkProfileOrBuilder> + itemsBuilder_; + + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public com.google.cloud.compute.v1.NetworkProfile getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder setItems(int index, com.google.cloud.compute.v1.NetworkProfile value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder setItems( + int index, com.google.cloud.compute.v1.NetworkProfile.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.NetworkProfile value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder addItems(int index, com.google.cloud.compute.v1.NetworkProfile value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.NetworkProfile.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder addItems( + int index, com.google.cloud.compute.v1.NetworkProfile.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public com.google.cloud.compute.v1.NetworkProfile.Builder getItemsBuilder(int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public com.google.cloud.compute.v1.NetworkProfileOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public com.google.cloud.compute.v1.NetworkProfile.Builder addItemsBuilder() { + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.NetworkProfile.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public com.google.cloud.compute.v1.NetworkProfile.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.NetworkProfile.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of NetworkProfile resources.
    +     * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfile, + com.google.cloud.compute.v1.NetworkProfile.Builder, + com.google.cloud.compute.v1.NetworkProfileOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.NetworkProfile, + com.google.cloud.compute.v1.NetworkProfile.Builder, + com.google.cloud.compute.v1.NetworkProfileOrBuilder>( + items_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private java.lang.Object kind_ = ""; + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +     * 
    + * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @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; + } + } + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +     * 
    + * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Server-defined URL for this resource.
    +     * 
    + * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachablesIsMutable() { + if (!unreachables_.isModifiable()) { + unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); + } + bitField0_ |= 0x00000040; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + unreachables_.makeImmutable(); + return unreachables_; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index to set the value at. + * @param value The unreachables to set. + * @return This builder for chaining. + */ + public Builder setUnreachables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param value The unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param values The unreachables to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachables(java.lang.Iterable values) { + ensureUnreachablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @return This builder for chaining. + */ + public Builder clearUnreachables() { + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +     * 
    + * + * repeated string unreachables = 243372063; + * + * @param value The bytes of the unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000080); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getWarningFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + /** + * + * + *
    +     * [Output Only] Informational warning message.
    +     * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + getWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + @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.compute.v1.NetworkProfilesListResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkProfilesListResponse) + private static final com.google.cloud.compute.v1.NetworkProfilesListResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkProfilesListResponse(); + } + + public static com.google.cloud.compute.v1.NetworkProfilesListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkProfilesListResponse 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.compute.v1.NetworkProfilesListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponseOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponseOrBuilder.java new file mode 100644 index 000000000000..943bfadbb249 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkProfilesListResponseOrBuilder.java @@ -0,0 +1,331 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface NetworkProfilesListResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkProfilesListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
    +   * [Output Only] Unique identifier for the resource; defined by the server.
    +   * 
    + * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + java.util.List getItemsList(); + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + com.google.cloud.compute.v1.NetworkProfile getItems(int index); + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + int getItemsCount(); + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + java.util.List + getItemsOrBuilderList(); + /** + * + * + *
    +   * A list of NetworkProfile resources.
    +   * 
    + * + * repeated .google.cloud.compute.v1.NetworkProfile items = 100526016; + */ + com.google.cloud.compute.v1.NetworkProfileOrBuilder getItemsOrBuilder(int index); + + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
    +   * [Output Only] Type of resource. Always compute#networkProfileList for network profiles.
    +   * 
    + * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
    +   * 
    + * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
    +   * [Output Only] Server-defined URL for this resource.
    +   * 
    + * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + java.util.List getUnreachablesList(); + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + int getUnreachablesCount(); + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + java.lang.String getUnreachables(int index); + /** + * + * + *
    +   * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder
    +   * 
    + * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + com.google.protobuf.ByteString getUnreachablesBytes(int index); + + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + /** + * + * + *
    +   * [Output Only] Informational warning message.
    +   * 
    + * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java index 645b9f536418..4ae8ef984c3b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java @@ -39,6 +39,8 @@ private NetworkRoutingConfig(com.google.protobuf.GeneratedMessageV3.Builder b } private NetworkRoutingConfig() { + bgpBestPathSelectionMode_ = ""; + bgpInterRegionCost_ = ""; routingMode_ = ""; } @@ -63,6 +65,262 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.compute.v1.NetworkRoutingConfig.Builder.class); } + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkRoutingConfig.BgpBestPathSelectionMode} + */ + public enum BgpBestPathSelectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_BGP_BEST_PATH_SELECTION_MODE = 0; + */ + UNDEFINED_BGP_BEST_PATH_SELECTION_MODE(0), + /** LEGACY = 94234569; */ + LEGACY(94234569), + /** STANDARD = 484642493; */ + STANDARD(484642493), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_BGP_BEST_PATH_SELECTION_MODE = 0; + */ + public static final int UNDEFINED_BGP_BEST_PATH_SELECTION_MODE_VALUE = 0; + /** LEGACY = 94234569; */ + public static final int LEGACY_VALUE = 94234569; + /** STANDARD = 484642493; */ + public static final int STANDARD_VALUE = 484642493; + + 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 BgpBestPathSelectionMode 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 BgpBestPathSelectionMode forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_BGP_BEST_PATH_SELECTION_MODE; + case 94234569: + return LEGACY; + case 484642493: + return STANDARD; + 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 BgpBestPathSelectionMode findValueByNumber(int number) { + return BgpBestPathSelectionMode.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.compute.v1.NetworkRoutingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final BgpBestPathSelectionMode[] VALUES = values(); + + public static BgpBestPathSelectionMode 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 BgpBestPathSelectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkRoutingConfig.BgpBestPathSelectionMode) + } + + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.NetworkRoutingConfig.BgpInterRegionCost} + */ + public enum BgpInterRegionCost implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_BGP_INTER_REGION_COST = 0; + */ + UNDEFINED_BGP_INTER_REGION_COST(0), + /** ADD_COST_TO_MED = 490583004; */ + ADD_COST_TO_MED(490583004), + /** DEFAULT = 115302945; */ + DEFAULT(115302945), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_BGP_INTER_REGION_COST = 0; + */ + public static final int UNDEFINED_BGP_INTER_REGION_COST_VALUE = 0; + /** ADD_COST_TO_MED = 490583004; */ + public static final int ADD_COST_TO_MED_VALUE = 490583004; + /** DEFAULT = 115302945; */ + public static final int DEFAULT_VALUE = 115302945; + + 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 BgpInterRegionCost 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 BgpInterRegionCost forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_BGP_INTER_REGION_COST; + case 490583004: + return ADD_COST_TO_MED; + case 115302945: + return DEFAULT; + 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 BgpInterRegionCost findValueByNumber(int number) { + return BgpInterRegionCost.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.compute.v1.NetworkRoutingConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final BgpInterRegionCost[] VALUES = values(); + + public static BgpInterRegionCost 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 BgpInterRegionCost(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkRoutingConfig.BgpInterRegionCost) + } + /** * * @@ -164,7 +422,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.NetworkRoutingConfig.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.compute.v1.NetworkRoutingConfig.getDescriptor().getEnumTypes().get(2); } private static final RoutingMode[] VALUES = values(); @@ -188,7 +446,178 @@ private RoutingMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkRoutingConfig.RoutingMode) } - private int bitField0_; + private int bitField0_; + public static final int BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER = 213102902; + private boolean bgpAlwaysCompareMed_ = false; + /** + * + * + *
    +   * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +   * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return Whether the bgpAlwaysCompareMed field is set. + */ + @java.lang.Override + public boolean hasBgpAlwaysCompareMed() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +   * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return The bgpAlwaysCompareMed. + */ + @java.lang.Override + public boolean getBgpAlwaysCompareMed() { + return bgpAlwaysCompareMed_; + } + + public static final int BGP_BEST_PATH_SELECTION_MODE_FIELD_NUMBER = 317816297; + + @SuppressWarnings("serial") + private volatile java.lang.Object bgpBestPathSelectionMode_ = ""; + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return Whether the bgpBestPathSelectionMode field is set. + */ + @java.lang.Override + public boolean hasBgpBestPathSelectionMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bgpBestPathSelectionMode. + */ + @java.lang.Override + public java.lang.String getBgpBestPathSelectionMode() { + java.lang.Object ref = bgpBestPathSelectionMode_; + 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(); + bgpBestPathSelectionMode_ = s; + return s; + } + } + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bytes for bgpBestPathSelectionMode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBgpBestPathSelectionModeBytes() { + java.lang.Object ref = bgpBestPathSelectionMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bgpBestPathSelectionMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BGP_INTER_REGION_COST_FIELD_NUMBER = 462142689; + + @SuppressWarnings("serial") + private volatile java.lang.Object bgpInterRegionCost_ = ""; + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return Whether the bgpInterRegionCost field is set. + */ + @java.lang.Override + public boolean hasBgpInterRegionCost() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bgpInterRegionCost. + */ + @java.lang.Override + public java.lang.String getBgpInterRegionCost() { + java.lang.Object ref = bgpInterRegionCost_; + 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(); + bgpInterRegionCost_ = s; + return s; + } + } + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bytes for bgpInterRegionCost. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBgpInterRegionCostBytes() { + java.lang.Object ref = bgpInterRegionCost_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bgpInterRegionCost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ROUTING_MODE_FIELD_NUMBER = 475143548; @SuppressWarnings("serial") @@ -207,7 +636,7 @@ private RoutingMode(int value) { */ @java.lang.Override public boolean hasRoutingMode() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -273,6 +702,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(213102902, bgpAlwaysCompareMed_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 317816297, bgpBestPathSelectionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 462142689, bgpInterRegionCost_); + } + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 475143548, routingMode_); } getUnknownFields().writeTo(output); @@ -285,6 +724,19 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(213102902, bgpAlwaysCompareMed_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 317816297, bgpBestPathSelectionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(462142689, bgpInterRegionCost_); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(475143548, routingMode_); } size += getUnknownFields().getSerializedSize(); @@ -303,6 +755,18 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.compute.v1.NetworkRoutingConfig other = (com.google.cloud.compute.v1.NetworkRoutingConfig) obj; + if (hasBgpAlwaysCompareMed() != other.hasBgpAlwaysCompareMed()) return false; + if (hasBgpAlwaysCompareMed()) { + if (getBgpAlwaysCompareMed() != other.getBgpAlwaysCompareMed()) return false; + } + if (hasBgpBestPathSelectionMode() != other.hasBgpBestPathSelectionMode()) return false; + if (hasBgpBestPathSelectionMode()) { + if (!getBgpBestPathSelectionMode().equals(other.getBgpBestPathSelectionMode())) return false; + } + if (hasBgpInterRegionCost() != other.hasBgpInterRegionCost()) return false; + if (hasBgpInterRegionCost()) { + if (!getBgpInterRegionCost().equals(other.getBgpInterRegionCost())) return false; + } if (hasRoutingMode() != other.hasRoutingMode()) return false; if (hasRoutingMode()) { if (!getRoutingMode().equals(other.getRoutingMode())) return false; @@ -318,6 +782,18 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBgpAlwaysCompareMed()) { + hash = (37 * hash) + BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBgpAlwaysCompareMed()); + } + if (hasBgpBestPathSelectionMode()) { + hash = (37 * hash) + BGP_BEST_PATH_SELECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + getBgpBestPathSelectionMode().hashCode(); + } + if (hasBgpInterRegionCost()) { + hash = (37 * hash) + BGP_INTER_REGION_COST_FIELD_NUMBER; + hash = (53 * hash) + getBgpInterRegionCost().hashCode(); + } if (hasRoutingMode()) { hash = (37 * hash) + ROUTING_MODE_FIELD_NUMBER; hash = (53 * hash) + getRoutingMode().hashCode(); @@ -461,6 +937,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + bgpAlwaysCompareMed_ = false; + bgpBestPathSelectionMode_ = ""; + bgpInterRegionCost_ = ""; routingMode_ = ""; return this; } @@ -500,9 +979,21 @@ private void buildPartial0(com.google.cloud.compute.v1.NetworkRoutingConfig resu int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.routingMode_ = routingMode_; + result.bgpAlwaysCompareMed_ = bgpAlwaysCompareMed_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bgpBestPathSelectionMode_ = bgpBestPathSelectionMode_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bgpInterRegionCost_ = bgpInterRegionCost_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.routingMode_ = routingMode_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -552,9 +1043,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.compute.v1.NetworkRoutingConfig other) { if (other == com.google.cloud.compute.v1.NetworkRoutingConfig.getDefaultInstance()) return this; + if (other.hasBgpAlwaysCompareMed()) { + setBgpAlwaysCompareMed(other.getBgpAlwaysCompareMed()); + } + if (other.hasBgpBestPathSelectionMode()) { + bgpBestPathSelectionMode_ = other.bgpBestPathSelectionMode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBgpInterRegionCost()) { + bgpInterRegionCost_ = other.bgpInterRegionCost_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasRoutingMode()) { routingMode_ = other.routingMode_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -583,10 +1087,28 @@ public Builder mergeFrom( case 0: done = true; break; + case 1704823216: + { + bgpAlwaysCompareMed_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 1704823216 + case -1752436918: + { + bgpBestPathSelectionMode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -1752436918 + case -597825782: + { + bgpInterRegionCost_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case -597825782 case -493818910: { routingMode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; break; } // case -493818910 default: @@ -608,6 +1130,326 @@ public Builder mergeFrom( private int bitField0_; + private boolean bgpAlwaysCompareMed_; + /** + * + * + *
    +     * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +     * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return Whether the bgpAlwaysCompareMed field is set. + */ + @java.lang.Override + public boolean hasBgpAlwaysCompareMed() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +     * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return The bgpAlwaysCompareMed. + */ + @java.lang.Override + public boolean getBgpAlwaysCompareMed() { + return bgpAlwaysCompareMed_; + } + /** + * + * + *
    +     * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +     * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @param value The bgpAlwaysCompareMed to set. + * @return This builder for chaining. + */ + public Builder setBgpAlwaysCompareMed(boolean value) { + + bgpAlwaysCompareMed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +     * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return This builder for chaining. + */ + public Builder clearBgpAlwaysCompareMed() { + bitField0_ = (bitField0_ & ~0x00000001); + bgpAlwaysCompareMed_ = false; + onChanged(); + return this; + } + + private java.lang.Object bgpBestPathSelectionMode_ = ""; + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return Whether the bgpBestPathSelectionMode field is set. + */ + public boolean hasBgpBestPathSelectionMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bgpBestPathSelectionMode. + */ + public java.lang.String getBgpBestPathSelectionMode() { + java.lang.Object ref = bgpBestPathSelectionMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bgpBestPathSelectionMode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bytes for bgpBestPathSelectionMode. + */ + public com.google.protobuf.ByteString getBgpBestPathSelectionModeBytes() { + java.lang.Object ref = bgpBestPathSelectionMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bgpBestPathSelectionMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @param value The bgpBestPathSelectionMode to set. + * @return This builder for chaining. + */ + public Builder setBgpBestPathSelectionMode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bgpBestPathSelectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return This builder for chaining. + */ + public Builder clearBgpBestPathSelectionMode() { + bgpBestPathSelectionMode_ = getDefaultInstance().getBgpBestPathSelectionMode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +     * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +     * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @param value The bytes for bgpBestPathSelectionMode to set. + * @return This builder for chaining. + */ + public Builder setBgpBestPathSelectionModeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bgpBestPathSelectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object bgpInterRegionCost_ = ""; + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return Whether the bgpInterRegionCost field is set. + */ + public boolean hasBgpInterRegionCost() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bgpInterRegionCost. + */ + public java.lang.String getBgpInterRegionCost() { + java.lang.Object ref = bgpInterRegionCost_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bgpInterRegionCost_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bytes for bgpInterRegionCost. + */ + public com.google.protobuf.ByteString getBgpInterRegionCostBytes() { + java.lang.Object ref = bgpInterRegionCost_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bgpInterRegionCost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @param value The bgpInterRegionCost to set. + * @return This builder for chaining. + */ + public Builder setBgpInterRegionCost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bgpInterRegionCost_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return This builder for chaining. + */ + public Builder clearBgpInterRegionCost() { + bgpInterRegionCost_ = getDefaultInstance().getBgpInterRegionCost(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +     * Check the BgpInterRegionCost enum for the list of possible values.
    +     * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @param value The bytes for bgpInterRegionCost to set. + * @return This builder for chaining. + */ + public Builder setBgpInterRegionCostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bgpInterRegionCost_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object routingMode_ = ""; /** * @@ -622,7 +1464,7 @@ public Builder mergeFrom( * @return Whether the routingMode field is set. */ public boolean hasRoutingMode() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -688,7 +1530,7 @@ public Builder setRoutingMode(java.lang.String value) { throw new NullPointerException(); } routingMode_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -706,7 +1548,7 @@ public Builder setRoutingMode(java.lang.String value) { */ public Builder clearRoutingMode() { routingMode_ = getDefaultInstance().getRoutingMode(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -729,7 +1571,7 @@ public Builder setRoutingModeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); routingMode_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfigOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfigOrBuilder.java index b24291248252..0fa1533f9fbe 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfigOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfigOrBuilder.java @@ -24,6 +24,111 @@ public interface NetworkRoutingConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkRoutingConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
    +   * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +   * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return Whether the bgpAlwaysCompareMed field is set. + */ + boolean hasBgpAlwaysCompareMed(); + /** + * + * + *
    +   * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.
    +   * 
    + * + * optional bool bgp_always_compare_med = 213102902; + * + * @return The bgpAlwaysCompareMed. + */ + boolean getBgpAlwaysCompareMed(); + + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return Whether the bgpBestPathSelectionMode field is set. + */ + boolean hasBgpBestPathSelectionMode(); + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bgpBestPathSelectionMode. + */ + java.lang.String getBgpBestPathSelectionMode(); + /** + * + * + *
    +   * The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.
    +   * Check the BgpBestPathSelectionMode enum for the list of possible values.
    +   * 
    + * + * optional string bgp_best_path_selection_mode = 317816297; + * + * @return The bytes for bgpBestPathSelectionMode. + */ + com.google.protobuf.ByteString getBgpBestPathSelectionModeBytes(); + + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return Whether the bgpInterRegionCost field is set. + */ + boolean hasBgpInterRegionCost(); + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bgpInterRegionCost. + */ + java.lang.String getBgpInterRegionCost(); + /** + * + * + *
    +   * Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.
    +   * Check the BgpInterRegionCost enum for the list of possible values.
    +   * 
    + * + * optional string bgp_inter_region_cost = 462142689; + * + * @return The bytes for bgpInterRegionCost. + */ + com.google.protobuf.ByteString getBgpInterRegionCostBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcher.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcher.java index 0eff1edf02a9..a858edc85145 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcher.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcher.java @@ -132,7 +132,7 @@ public boolean hasDefaultCustomErrorResponsePolicy() { * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -148,7 +148,7 @@ public boolean hasDefaultRouteAction() { * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -166,7 +166,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() { * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -187,7 +187,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -202,7 +202,7 @@ public boolean hasDefaultService() { * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -225,7 +225,7 @@ public java.lang.String getDefaultService() { * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -251,7 +251,7 @@ public com.google.protobuf.ByteString getDefaultServiceBytes() { * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -267,7 +267,7 @@ public boolean hasDefaultUrlRedirect() { * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -285,7 +285,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() { * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1555,7 +1555,7 @@ public Builder clearDefaultCustomErrorResponsePolicy() { * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1570,7 +1570,7 @@ public boolean hasDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1591,7 +1591,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1614,7 +1614,7 @@ public Builder setDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1635,7 +1635,7 @@ public Builder setDefaultRouteAction( * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1664,7 +1664,7 @@ public Builder mergeDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteActi * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1684,7 +1684,7 @@ public Builder clearDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1699,7 +1699,7 @@ public com.google.cloud.compute.v1.HttpRouteAction.Builder getDefaultRouteAction * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1718,7 +1718,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +     * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -1746,7 +1746,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1760,7 +1760,7 @@ public boolean hasDefaultService() { * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1782,7 +1782,7 @@ public java.lang.String getDefaultService() { * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1804,7 +1804,7 @@ public com.google.protobuf.ByteString getDefaultServiceBytes() { * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1825,7 +1825,7 @@ public Builder setDefaultService(java.lang.String value) { * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1842,7 +1842,7 @@ public Builder clearDefaultService() { * * *
    -     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +     * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
          * 
    * * optional string default_service = 370242231; @@ -1871,7 +1871,7 @@ public Builder setDefaultServiceBytes(com.google.protobuf.ByteString value) { * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1886,7 +1886,7 @@ public boolean hasDefaultUrlRedirect() { * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1907,7 +1907,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() { * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1930,7 +1930,7 @@ public Builder setDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAct * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1951,7 +1951,7 @@ public Builder setDefaultUrlRedirect( * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -1980,7 +1980,7 @@ public Builder mergeDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectA * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2000,7 +2000,7 @@ public Builder clearDefaultUrlRedirect() { * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2015,7 +2015,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getDefaultUrlRedir * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2035,7 +2035,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getDefaultUrlRedir * * *
    -     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcherOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcherOrBuilder.java index d9e27f0c5dde..abab4b484cac 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcherOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathMatcherOrBuilder.java @@ -70,7 +70,7 @@ public interface PathMatcherOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -83,7 +83,7 @@ public interface PathMatcherOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -96,7 +96,7 @@ public interface PathMatcherOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
    +   * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -108,7 +108,7 @@ public interface PathMatcherOrBuilder * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -120,7 +120,7 @@ public interface PathMatcherOrBuilder * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -132,7 +132,7 @@ public interface PathMatcherOrBuilder * * *
    -   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
    +   * The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use
        * 
    * * optional string default_service = 370242231; @@ -145,7 +145,7 @@ public interface PathMatcherOrBuilder * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -158,7 +158,7 @@ public interface PathMatcherOrBuilder * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -171,7 +171,7 @@ public interface PathMatcherOrBuilder * * *
    -   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRule.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRule.java index 898a4f19405f..ed470003273e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRule.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRule.java @@ -192,7 +192,7 @@ public com.google.protobuf.ByteString getPathsBytes(int index) { * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -207,7 +207,7 @@ public boolean hasRouteAction() { * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -224,7 +224,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getRouteAction() { * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -244,7 +244,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -259,7 +259,7 @@ public boolean hasService() { * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -282,7 +282,7 @@ public java.lang.String getService() { * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -308,7 +308,7 @@ public com.google.protobuf.ByteString getServiceBytes() { * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -323,7 +323,7 @@ public boolean hasUrlRedirect() { * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -340,7 +340,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getUrlRedirect() { * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1245,7 +1245,7 @@ public Builder addPathsBytes(com.google.protobuf.ByteString value) { * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1259,7 +1259,7 @@ public boolean hasRouteAction() { * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1279,7 +1279,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getRouteAction() { * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1301,7 +1301,7 @@ public Builder setRouteAction(com.google.cloud.compute.v1.HttpRouteAction value) * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1321,7 +1321,7 @@ public Builder setRouteAction( * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1348,7 +1348,7 @@ public Builder mergeRouteAction(com.google.cloud.compute.v1.HttpRouteAction valu * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1367,7 +1367,7 @@ public Builder clearRouteAction() { * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1381,7 +1381,7 @@ public com.google.cloud.compute.v1.HttpRouteAction.Builder getRouteActionBuilder * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1399,7 +1399,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +     * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -1426,7 +1426,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getRouteActionOrBuil * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1440,7 +1440,7 @@ public boolean hasService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1462,7 +1462,7 @@ public java.lang.String getService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1484,7 +1484,7 @@ public com.google.protobuf.ByteString getServiceBytes() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1505,7 +1505,7 @@ public Builder setService(java.lang.String value) { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1522,7 +1522,7 @@ public Builder clearService() { * * *
    -     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +     * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
          * 
    * * optional string service = 373540533; @@ -1551,7 +1551,7 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1565,7 +1565,7 @@ public boolean hasUrlRedirect() { * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1585,7 +1585,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getUrlRedirect() { * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1607,7 +1607,7 @@ public Builder setUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction val * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1627,7 +1627,7 @@ public Builder setUrlRedirect( * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1655,7 +1655,7 @@ public Builder mergeUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction v * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1674,7 +1674,7 @@ public Builder clearUrlRedirect() { * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1688,7 +1688,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getUrlRedirectBuil * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -1706,7 +1706,7 @@ public com.google.cloud.compute.v1.HttpRedirectActionOrBuilder getUrlRedirectOrB * * *
    -     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRuleOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRuleOrBuilder.java index c5527064089a..5ae47167921d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRuleOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PathRuleOrBuilder.java @@ -121,7 +121,7 @@ public interface PathRuleOrBuilder * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -133,7 +133,7 @@ public interface PathRuleOrBuilder * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -145,7 +145,7 @@ public interface PathRuleOrBuilder * * *
    -   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
    +   * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction route_action = 424563948; @@ -156,7 +156,7 @@ public interface PathRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -168,7 +168,7 @@ public interface PathRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -180,7 +180,7 @@ public interface PathRuleOrBuilder * * *
    -   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
    +   * The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set.
        * 
    * * optional string service = 373540533; @@ -193,7 +193,7 @@ public interface PathRuleOrBuilder * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -205,7 +205,7 @@ public interface PathRuleOrBuilder * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; @@ -217,7 +217,7 @@ public interface PathRuleOrBuilder * * *
    -   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction url_redirect = 405147820; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfig.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfig.java index e3438e0d1a6c..6d5090034445 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfig.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfig.java @@ -384,7 +384,7 @@ public com.google.protobuf.ByteString getFingerprintBytes() { * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; @@ -399,7 +399,7 @@ public boolean hasName() { * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; @@ -422,7 +422,7 @@ public java.lang.String getName() { * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; @@ -1137,7 +1137,7 @@ public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; @@ -1151,7 +1151,7 @@ public boolean hasName() { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; @@ -1173,7 +1173,7 @@ public java.lang.String getName() { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; @@ -1195,7 +1195,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; @@ -1216,7 +1216,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; @@ -1233,7 +1233,7 @@ public Builder clearName() { * * *
    -     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +     * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
          * 
    * * optional string name = 3373707; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfigOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfigOrBuilder.java index d022d3ed33a9..560c3b3c946f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfigOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerInstanceConfigOrBuilder.java @@ -65,7 +65,7 @@ public interface PerInstanceConfigOrBuilder * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; @@ -77,7 +77,7 @@ public interface PerInstanceConfigOrBuilder * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; @@ -89,7 +89,7 @@ public interface PerInstanceConfigOrBuilder * * *
    -   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error.
    +   * The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
        * 
    * * optional string name = 3373707; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Project.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Project.java index b9cd4dace2a6..2221fee2947a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Project.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Project.java @@ -1117,7 +1117,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -1131,7 +1131,7 @@ public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -1145,7 +1145,7 @@ public int getEnabledFeaturesCount() { * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -1160,7 +1160,7 @@ public java.lang.String getEnabledFeatures(int index) { * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -1480,7 +1480,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; @@ -1496,7 +1496,7 @@ public boolean hasUsageExportLocation() { * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; @@ -1514,7 +1514,7 @@ public com.google.cloud.compute.v1.UsageExportLocation getUsageExportLocation() * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; @@ -3324,7 +3324,7 @@ private void ensureEnabledFeaturesIsMutable() { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3339,7 +3339,7 @@ public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3353,7 +3353,7 @@ public int getEnabledFeaturesCount() { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3368,7 +3368,7 @@ public java.lang.String getEnabledFeatures(int index) { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3383,7 +3383,7 @@ public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3406,7 +3406,7 @@ public Builder setEnabledFeatures(int index, java.lang.String value) { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3428,7 +3428,7 @@ public Builder addEnabledFeatures(java.lang.String value) { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3447,7 +3447,7 @@ public Builder addAllEnabledFeatures(java.lang.Iterable values * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -3465,7 +3465,7 @@ public Builder clearEnabledFeatures() { * * *
    -     * Restricted features enabled for use on this project.
    +     * An optional list of restricted features enabled for use on this project.
          * 
    * * repeated string enabled_features = 469017467; @@ -4269,7 +4269,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4285,7 +4285,7 @@ public boolean hasUsageExportLocation() { * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4307,7 +4307,7 @@ public com.google.cloud.compute.v1.UsageExportLocation getUsageExportLocation() * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4331,7 +4331,7 @@ public Builder setUsageExportLocation(com.google.cloud.compute.v1.UsageExportLoc * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4353,7 +4353,7 @@ public Builder setUsageExportLocation( * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4383,7 +4383,7 @@ public Builder mergeUsageExportLocation(com.google.cloud.compute.v1.UsageExportL * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4404,7 +4404,7 @@ public Builder clearUsageExportLocation() { * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4420,7 +4420,7 @@ public com.google.cloud.compute.v1.UsageExportLocation.Builder getUsageExportLoc * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * @@ -4441,7 +4441,7 @@ public com.google.cloud.compute.v1.UsageExportLocation.Builder getUsageExportLoc * * *
    -     * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +     * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
          * 
    * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ProjectOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ProjectOrBuilder.java index 110d41fd94cd..a262c1180656 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ProjectOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ProjectOrBuilder.java @@ -254,7 +254,7 @@ public interface ProjectOrBuilder * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -266,7 +266,7 @@ public interface ProjectOrBuilder * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -278,7 +278,7 @@ public interface ProjectOrBuilder * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -291,7 +291,7 @@ public interface ProjectOrBuilder * * *
    -   * Restricted features enabled for use on this project.
    +   * An optional list of restricted features enabled for use on this project.
        * 
    * * repeated string enabled_features = 469017467; @@ -492,7 +492,7 @@ public interface ProjectOrBuilder * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; @@ -505,7 +505,7 @@ public interface ProjectOrBuilder * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; @@ -518,7 +518,7 @@ public interface ProjectOrBuilder * * *
    -   * The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
    +   * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
        * 
    * * optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/QuotaStatusWarning.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/QuotaStatusWarning.java index d2e6d74a7cc4..8073c8ebd98b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/QuotaStatusWarning.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/QuotaStatusWarning.java @@ -295,6 +295,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ PARTIAL_SUCCESS(39966469), + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + QUOTA_INFO_UNAVAILABLE(304294182), /** * * @@ -588,6 +598,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ public static final int PARTIAL_SUCCESS_VALUE = 39966469; + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + public static final int QUOTA_INFO_UNAVAILABLE_VALUE = 304294182; /** * * @@ -727,6 +747,8 @@ public static Code forNumber(int value) { return NO_RESULTS_ON_PAGE; case 39966469: return PARTIAL_SUCCESS; + case 304294182: + return QUOTA_INFO_UNAVAILABLE; case 3745539: return REQUIRED_TOS_AGREEMENT; case 496728641: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequest.java new file mode 100644 index 000000000000..42b7e9b62dce --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequest.java @@ -0,0 +1,750 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest} + */ +public final class RegionInstanceGroupManagersResumeInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) + RegionInstanceGroupManagersResumeInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionInstanceGroupManagersResumeInstancesRequest.newBuilder() to construct. + private RegionInstanceGroupManagersResumeInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegionInstanceGroupManagersResumeInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegionInstanceGroupManagersResumeInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder + .class); + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest other = + (com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) obj; + + if (!getInstancesList().equals(other.getInstancesList())) 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 (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest build() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + buildPartial() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest result = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + } + + @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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance()) return this; + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000001; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.add(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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) + private static final com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest(); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + RegionInstanceGroupManagersResumeInstancesRequest>() { + @java.lang.Override + public RegionInstanceGroupManagersResumeInstancesRequest 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.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..b27d81593452 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersResumeInstancesRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface RegionInstanceGroupManagersResumeInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequest.java new file mode 100644 index 000000000000..3599473e8ce0 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequest.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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest} + */ +public final class RegionInstanceGroupManagersStartInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) + RegionInstanceGroupManagersStartInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionInstanceGroupManagersStartInstancesRequest.newBuilder() to construct. + private RegionInstanceGroupManagersStartInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegionInstanceGroupManagersStartInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegionInstanceGroupManagersStartInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder + .class); + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest other = + (com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) obj; + + if (!getInstancesList().equals(other.getInstancesList())) 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 (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest build() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + buildPartial() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest result = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + } + + @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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance()) return this; + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000001; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.add(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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) + private static final com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest(); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + RegionInstanceGroupManagersStartInstancesRequest>() { + @java.lang.Override + public RegionInstanceGroupManagersStartInstancesRequest 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.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..da808ffbfca1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStartInstancesRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface RegionInstanceGroupManagersStartInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequest.java new file mode 100644 index 000000000000..a9249f1e4941 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequest.java @@ -0,0 +1,881 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest} + */ +public final class RegionInstanceGroupManagersStopInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) + RegionInstanceGroupManagersStopInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionInstanceGroupManagersStopInstancesRequest.newBuilder() to construct. + private RegionInstanceGroupManagersStopInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegionInstanceGroupManagersStopInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegionInstanceGroupManagersStopInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder + .class); + } + + private int bitField0_; + public static final int FORCE_STOP_FIELD_NUMBER = 134762710; + private boolean forceStop_ = false; + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + @java.lang.Override + public boolean hasForceStop() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + @java.lang.Override + public boolean getForceStop() { + return forceStop_; + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 { + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(134762710, forceStop_); + } + 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 < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(134762710, forceStop_); + } + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest other = + (com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) obj; + + if (hasForceStop() != other.hasForceStop()) return false; + if (hasForceStop()) { + if (getForceStop() != other.getForceStop()) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasForceStop()) { + hash = (37 * hash) + FORCE_STOP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceStop()); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + forceStop_ = false; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest build() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + buildPartial() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest result = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.forceStop_ = forceStop_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance()) return this; + if (other.hasForceStop()) { + setForceStop(other.getForceStop()); + } + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000002; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + case 1078101680: + { + forceStop_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 1078101680 + 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 forceStop_; + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + @java.lang.Override + public boolean hasForceStop() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + @java.lang.Override + public boolean getForceStop() { + return forceStop_; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @param value The forceStop to set. + * @return This builder for chaining. + */ + public Builder setForceStop(boolean value) { + + forceStop_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_stop = 134762710; + * + * @return This builder for chaining. + */ + public Builder clearForceStop() { + bitField0_ = (bitField0_ & ~0x00000001); + forceStop_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) + private static final com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest(); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + RegionInstanceGroupManagersStopInstancesRequest>() { + @java.lang.Override + public RegionInstanceGroupManagersStopInstancesRequest 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.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..be7261dc326b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersStopInstancesRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface RegionInstanceGroupManagersStopInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return Whether the forceStop field is set. + */ + boolean hasForceStop(); + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_stop = 134762710; + * + * @return The forceStop. + */ + boolean getForceStop(); + + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequest.java new file mode 100644 index 000000000000..3cd8cee06093 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequest.java @@ -0,0 +1,886 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest} + */ +public final class RegionInstanceGroupManagersSuspendInstancesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) + RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder() to construct. + private RegionInstanceGroupManagersSuspendInstancesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegionInstanceGroupManagersSuspendInstancesRequest() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegionInstanceGroupManagersSuspendInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder + .class); + } + + private int bitField0_; + public static final int FORCE_SUSPEND_FIELD_NUMBER = 27637480; + private boolean forceSuspend_ = false; + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + @java.lang.Override + public boolean hasForceSuspend() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + @java.lang.Override + public boolean getForceSuspend() { + return forceSuspend_; + } + + public static final int INSTANCES_FIELD_NUMBER = 29097598; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + return instances_; + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(27637480, forceSuspend_); + } + for (int i = 0; i < instances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(i)); + } + 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(27637480, forceSuspend_); + } + { + int dataSize = 0; + for (int i = 0; i < instances_.size(); i++) { + dataSize += computeStringSizeNoTag(instances_.getRaw(i)); + } + size += dataSize; + size += 4 * getInstancesList().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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest other = + (com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) obj; + + if (hasForceSuspend() != other.hasForceSuspend()) return false; + if (hasForceSuspend()) { + if (getForceSuspend() != other.getForceSuspend()) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) 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 (hasForceSuspend()) { + hash = (37 * hash) + FORCE_SUSPEND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceSuspend()); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest 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; + } + /** + * + * + *
    +   * 
    + * + * Protobuf type {@code + * google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + forceSuspend_ = false; + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest build() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + buildPartial() { + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest result = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.forceSuspend_ = forceSuspend_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + instances_.makeImmutable(); + result.instances_ = instances_; + } + 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest other) { + if (other + == com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance()) return this; + if (other.hasForceSuspend()) { + setForceSuspend(other.getForceSuspend()); + } + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ |= 0x00000002; + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + 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 221099840: + { + forceSuspend_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 221099840 + case 232780786: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 232780786 + 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 forceSuspend_; + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + @java.lang.Override + public boolean hasForceSuspend() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + @java.lang.Override + public boolean getForceSuspend() { + return forceSuspend_; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @param value The forceSuspend to set. + * @return This builder for chaining. + */ + public Builder setForceSuspend(boolean value) { + + forceSuspend_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +     * 
    + * + * optional bool force_suspend = 27637480; + * + * @return This builder for chaining. + */ + public Builder clearForceSuspend() { + bitField0_ = (bitField0_ & ~0x00000001); + forceSuspend_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInstancesIsMutable() { + if (!instances_.isModifiable()) { + instances_ = new com.google.protobuf.LazyStringArrayList(instances_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + public com.google.protobuf.ProtocolStringList getInstancesList() { + instances_.makeImmutable(); + return instances_; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + public java.lang.String getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + public com.google.protobuf.ByteString getInstancesBytes(int index) { + return instances_.getByteString(index); + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param index The index to set the value at. + * @param value The instances to set. + * @return This builder for chaining. + */ + public Builder setInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The instances to add. + * @return This builder for chaining. + */ + public Builder addInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param values The instances to add. + * @return This builder for chaining. + */ + public Builder addAllInstances(java.lang.Iterable values) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @return This builder for chaining. + */ + public Builder clearInstances() { + instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +     * 
    + * + * repeated string instances = 29097598; + * + * @param value The bytes of the instances to add. + * @return This builder for chaining. + */ + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstancesIsMutable(); + instances_.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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) + private static final com.google.cloud.compute.v1 + .RegionInstanceGroupManagersSuspendInstancesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest(); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + RegionInstanceGroupManagersSuspendInstancesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + RegionInstanceGroupManagersSuspendInstancesRequest>() { + @java.lang.Override + public RegionInstanceGroupManagersSuspendInstancesRequest 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.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..7dec8475c5d6 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return Whether the forceSuspend field is set. + */ + boolean hasForceSuspend(); + /** + * + * + *
    +   * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them.
    +   * 
    + * + * optional bool force_suspend = 27637480; + * + * @return The forceSuspend. + */ + boolean getForceSuspend(); + + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return A list containing the instances. + */ + java.util.List getInstancesList(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @return The count of instances. + */ + int getInstancesCount(); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the element to return. + * @return The instances at the given index. + */ + java.lang.String getInstances(int index); + /** + * + * + *
    +   * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
    +   * 
    + * + * repeated string instances = 29097598; + * + * @param index The index of the value to return. + * @return The bytes of the instances at the given index. + */ + com.google.protobuf.ByteString getInstancesBytes(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java index 7bfc22e764ca..a8a45cfa7470 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; @@ -87,7 +87,7 @@ public boolean hasPhysicalHost() { * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; @@ -110,7 +110,7 @@ public java.lang.String getPhysicalHost() { * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; @@ -632,7 +632,7 @@ public Builder mergeFrom( * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; @@ -646,7 +646,7 @@ public boolean hasPhysicalHost() { * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; @@ -668,7 +668,7 @@ public java.lang.String getPhysicalHost() { * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; @@ -690,7 +690,7 @@ public com.google.protobuf.ByteString getPhysicalHostBytes() { * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; @@ -711,7 +711,7 @@ public Builder setPhysicalHost(java.lang.String value) { * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; @@ -728,7 +728,7 @@ public Builder clearPhysicalHost() { * * *
    -     * [Output Only] An opaque ID of the host on which the VM is running.
    +     * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
          * 
    * * optional string physical_host = 464370704; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java index 1611bbf79219..12294aa3f8fb 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java @@ -28,7 +28,7 @@ public interface ResourceStatusOrBuilder * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; @@ -40,7 +40,7 @@ public interface ResourceStatusOrBuilder * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; @@ -52,7 +52,7 @@ public interface ResourceStatusOrBuilder * * *
    -   * [Output Only] An opaque ID of the host on which the VM is running.
    +   * [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
        * 
    * * optional string physical_host = 464370704; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..32338bdbfb26 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequest.java @@ -0,0 +1,1595 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for InstanceGroupManagers.ResumeInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest} + */ +public final class ResumeInstancesInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) + ResumeInstancesInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeInstancesInstanceGroupManagerRequest.newBuilder() to construct. + private ResumeInstancesInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResumeInstancesInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResumeInstancesInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_MANAGERS_RESUME_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = + 129015618; + private com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersResumeInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasInstanceGroupManagersResumeInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersResumeInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + getInstanceGroupManagersResumeInstancesRequestResource() { + return instanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : instanceGroupManagersResumeInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder + getInstanceGroupManagersResumeInstancesRequestResourceOrBuilder() { + return instanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : instanceGroupManagersResumeInstancesRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(129015618, getInstanceGroupManagersResumeInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + 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(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 129015618, getInstanceGroupManagersResumeInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasInstanceGroupManagersResumeInstancesRequestResource() + != other.hasInstanceGroupManagersResumeInstancesRequestResource()) return false; + if (hasInstanceGroupManagersResumeInstancesRequestResource()) { + if (!getInstanceGroupManagersResumeInstancesRequestResource() + .equals(other.getInstanceGroupManagersResumeInstancesRequestResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasInstanceGroupManagersResumeInstancesRequestResource()) { + hash = (37 * hash) + INSTANCE_GROUP_MANAGERS_RESUME_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManagersResumeInstancesRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest 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 request message for InstanceGroupManagers.ResumeInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + instanceGroupManagersResumeInstancesRequestResource_ = null; + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersResumeInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersResumeInstancesRequestResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest buildPartial() { + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManagersResumeInstancesRequestResource_ = + instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null + ? instanceGroupManagersResumeInstancesRequestResource_ + : instanceGroupManagersResumeInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInstanceGroupManagersResumeInstancesRequestResource()) { + mergeInstanceGroupManagersResumeInstancesRequestResource( + other.getInstanceGroupManagersResumeInstancesRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1032124946: + { + input.readMessage( + getInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 1032124946 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder> + instanceGroupManagersResumeInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersResumeInstancesRequestResource field is set. + */ + public boolean hasInstanceGroupManagersResumeInstancesRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersResumeInstancesRequestResource. + */ + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + getInstanceGroupManagersResumeInstancesRequestResource() { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + return instanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : instanceGroupManagersResumeInstancesRequestResource_; + } else { + return instanceGroupManagersResumeInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest value) { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManagersResumeInstancesRequestResource_ = value; + } else { + instanceGroupManagersResumeInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder + builderForValue) { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersResumeInstancesRequestResource_ = builderForValue.build(); + } else { + instanceGroupManagersResumeInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest value) { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instanceGroupManagersResumeInstancesRequestResource_ != null + && instanceGroupManagersResumeInstancesRequestResource_ + != com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance()) { + getInstanceGroupManagersResumeInstancesRequestResourceBuilder().mergeFrom(value); + } else { + instanceGroupManagersResumeInstancesRequestResource_ = value; + } + } else { + instanceGroupManagersResumeInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (instanceGroupManagersResumeInstancesRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstanceGroupManagersResumeInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceGroupManagersResumeInstancesRequestResource_ = null; + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersResumeInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersResumeInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder + getInstanceGroupManagersResumeInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder + getInstanceGroupManagersResumeInstancesRequestResourceOrBuilder() { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + return instanceGroupManagersResumeInstancesRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return instanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : instanceGroupManagersResumeInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder> + getInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder() { + if (instanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersResumeInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder>( + getInstanceGroupManagersResumeInstancesRequestResource(), + getParentForChildren(), + isClean()); + instanceGroupManagersResumeInstancesRequestResource_ = null; + } + return instanceGroupManagersResumeInstancesRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeInstancesInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..ca7ed5679fc8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface ResumeInstancesInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersResumeInstancesRequestResource field is set. + */ + boolean hasInstanceGroupManagersResumeInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersResumeInstancesRequestResource. + */ + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest + getInstanceGroupManagersResumeInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestOrBuilder + getInstanceGroupManagersResumeInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..2a72157cf06e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequest.java @@ -0,0 +1,1618 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for RegionInstanceGroupManagers.ResumeInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest} + */ +public final class ResumeInstancesRegionInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) + ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() to construct. + private ResumeInstancesRegionInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResumeInstancesRegionInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResumeInstancesRegionInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int + REGION_INSTANCE_GROUP_MANAGERS_RESUME_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = 463471031; + private com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersResumeInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionInstanceGroupManagersResumeInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersResumeInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getRegionInstanceGroupManagersResumeInstancesRequestResource() { + return regionInstanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersResumeInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder + getRegionInstanceGroupManagersResumeInstancesRequestResourceOrBuilder() { + return regionInstanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersResumeInstancesRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage( + 463471031, getRegionInstanceGroupManagersResumeInstancesRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 463471031, getRegionInstanceGroupManagersResumeInstancesRequestResource()); + } + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionInstanceGroupManagersResumeInstancesRequestResource() + != other.hasRegionInstanceGroupManagersResumeInstancesRequestResource()) return false; + if (hasRegionInstanceGroupManagersResumeInstancesRequestResource()) { + if (!getRegionInstanceGroupManagersResumeInstancesRequestResource() + .equals(other.getRegionInstanceGroupManagersResumeInstancesRequestResource())) + return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionInstanceGroupManagersResumeInstancesRequestResource()) { + hash = + (37 * hash) + + REGION_INSTANCE_GROUP_MANAGERS_RESUME_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = + (53 * hash) + getRegionInstanceGroupManagersResumeInstancesRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest 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 request message for RegionInstanceGroupManagers.ResumeInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRegionInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + regionInstanceGroupManagersResumeInstancesRequestResource_ = null; + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + buildPartial() { + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regionInstanceGroupManagersResumeInstancesRequestResource_ = + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null + ? regionInstanceGroupManagersResumeInstancesRequestResource_ + : regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegionInstanceGroupManagersResumeInstancesRequestResource()) { + mergeRegionInstanceGroupManagersResumeInstancesRequestResource( + other.getRegionInstanceGroupManagersResumeInstancesRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + case -587199046: + { + input.readMessage( + getRegionInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -587199046 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder> + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersResumeInstancesRequestResource field is set. + */ + public boolean hasRegionInstanceGroupManagersResumeInstancesRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersResumeInstancesRequestResource. + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getRegionInstanceGroupManagersResumeInstancesRequestResource() { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + return regionInstanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersResumeInstancesRequestResource_; + } else { + return regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest value) { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionInstanceGroupManagersResumeInstancesRequestResource_ = value; + } else { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder + builderForValue) { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersResumeInstancesRequestResource_ = builderForValue.build(); + } else { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionInstanceGroupManagersResumeInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest value) { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && regionInstanceGroupManagersResumeInstancesRequestResource_ != null + && regionInstanceGroupManagersResumeInstancesRequestResource_ + != com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance()) { + getRegionInstanceGroupManagersResumeInstancesRequestResourceBuilder().mergeFrom(value); + } else { + regionInstanceGroupManagersResumeInstancesRequestResource_ = value; + } + } else { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (regionInstanceGroupManagersResumeInstancesRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionInstanceGroupManagersResumeInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + regionInstanceGroupManagersResumeInstancesRequestResource_ = null; + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder + getRegionInstanceGroupManagersResumeInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRegionInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder() + .getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder + getRegionInstanceGroupManagersResumeInstancesRequestResourceOrBuilder() { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ != null) { + return regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ + .getMessageOrBuilder(); + } else { + return regionInstanceGroupManagersResumeInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersResumeInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder> + getRegionInstanceGroupManagersResumeInstancesRequestResourceFieldBuilder() { + if (regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + .Builder, + com.google.cloud.compute.v1 + .RegionInstanceGroupManagersResumeInstancesRequestOrBuilder>( + getRegionInstanceGroupManagersResumeInstancesRequestResource(), + getParentForChildren(), + isClean()); + regionInstanceGroupManagersResumeInstancesRequestResource_ = null; + } + return regionInstanceGroupManagersResumeInstancesRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ResumeInstancesRegionInstanceGroupManagerRequest>() { + @java.lang.Override + public ResumeInstancesRegionInstanceGroupManagerRequest 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.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..85e197a17dc2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface ResumeInstancesRegionInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersResumeInstancesRequestResource field is set. + */ + boolean hasRegionInstanceGroupManagersResumeInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersResumeInstancesRequestResource. + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest + getRegionInstanceGroupManagersResumeInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestOrBuilder + getRegionInstanceGroupManagersResumeInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Route.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Route.java index 989640511df4..3977c3370d9c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Route.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Route.java @@ -52,6 +52,7 @@ private Route() { nextHopInstance_ = ""; nextHopIp_ = ""; nextHopNetwork_ = ""; + nextHopOrigin_ = ""; nextHopPeering_ = ""; nextHopVpnTunnel_ = ""; routeStatus_ = ""; @@ -82,6 +83,137 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.compute.v1.Route.Builder.class); } + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * 
    + * + * Protobuf enum {@code google.cloud.compute.v1.Route.NextHopOrigin} + */ + public enum NextHopOrigin implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_NEXT_HOP_ORIGIN = 0; + */ + UNDEFINED_NEXT_HOP_ORIGIN(0), + /** EGP = 68590; */ + EGP(68590), + /** IGP = 72434; */ + IGP(72434), + /** INCOMPLETE = 11941214; */ + INCOMPLETE(11941214), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * A value indicating that the enum field is not set.
    +     * 
    + * + * UNDEFINED_NEXT_HOP_ORIGIN = 0; + */ + public static final int UNDEFINED_NEXT_HOP_ORIGIN_VALUE = 0; + /** EGP = 68590; */ + public static final int EGP_VALUE = 68590; + /** IGP = 72434; */ + public static final int IGP_VALUE = 72434; + /** INCOMPLETE = 11941214; */ + public static final int INCOMPLETE_VALUE = 11941214; + + 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 NextHopOrigin 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 NextHopOrigin forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_NEXT_HOP_ORIGIN; + case 68590: + return EGP; + case 72434: + return IGP; + case 11941214: + return INCOMPLETE; + 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 NextHopOrigin findValueByNumber(int number) { + return NextHopOrigin.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.compute.v1.Route.getDescriptor().getEnumTypes().get(0); + } + + private static final NextHopOrigin[] VALUES = values(); + + public static NextHopOrigin 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 NextHopOrigin(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Route.NextHopOrigin) + } + /** * * @@ -259,7 +391,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Route.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.compute.v1.Route.getDescriptor().getEnumTypes().get(1); } private static final RouteStatus[] VALUES = values(); @@ -396,7 +528,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Route.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.compute.v1.Route.getDescriptor().getEnumTypes().get(2); } private static final RouteType[] VALUES = values(); @@ -1185,6 +1317,39 @@ public com.google.protobuf.ByteString getNextHopInstanceBytes() { } } + public static final int NEXT_HOP_INTER_REGION_COST_FIELD_NUMBER = 24442003; + private int nextHopInterRegionCost_ = 0; + /** + * + * + *
    +   * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +   * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return Whether the nextHopInterRegionCost field is set. + */ + @java.lang.Override + public boolean hasNextHopInterRegionCost() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
    +   * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +   * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return The nextHopInterRegionCost. + */ + @java.lang.Override + public int getNextHopInterRegionCost() { + return nextHopInterRegionCost_; + } + public static final int NEXT_HOP_IP_FIELD_NUMBER = 110319529; @SuppressWarnings("serial") @@ -1202,7 +1367,7 @@ public com.google.protobuf.ByteString getNextHopInstanceBytes() { */ @java.lang.Override public boolean hasNextHopIp() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -1251,6 +1416,39 @@ public com.google.protobuf.ByteString getNextHopIpBytes() { } } + public static final int NEXT_HOP_MED_FIELD_NUMBER = 198683530; + private int nextHopMed_ = 0; + /** + * + * + *
    +   * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +   * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return Whether the nextHopMed field is set. + */ + @java.lang.Override + public boolean hasNextHopMed() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +   * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +   * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return The nextHopMed. + */ + @java.lang.Override + public int getNextHopMed() { + return nextHopMed_; + } + public static final int NEXT_HOP_NETWORK_FIELD_NUMBER = 262295788; @SuppressWarnings("serial") @@ -1268,7 +1466,7 @@ public com.google.protobuf.ByteString getNextHopIpBytes() { */ @java.lang.Override public boolean hasNextHopNetwork() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -1317,6 +1515,75 @@ public com.google.protobuf.ByteString getNextHopNetworkBytes() { } } + public static final int NEXT_HOP_ORIGIN_FIELD_NUMBER = 48752808; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextHopOrigin_ = ""; + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return Whether the nextHopOrigin field is set. + */ + @java.lang.Override + public boolean hasNextHopOrigin() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The nextHopOrigin. + */ + @java.lang.Override + public java.lang.String getNextHopOrigin() { + java.lang.Object ref = nextHopOrigin_; + 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(); + nextHopOrigin_ = s; + return s; + } + } + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The bytes for nextHopOrigin. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextHopOriginBytes() { + java.lang.Object ref = nextHopOrigin_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextHopOrigin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int NEXT_HOP_PEERING_FIELD_NUMBER = 412682750; @SuppressWarnings("serial") @@ -1334,7 +1601,7 @@ public com.google.protobuf.ByteString getNextHopNetworkBytes() { */ @java.lang.Override public boolean hasNextHopPeering() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -1400,7 +1667,7 @@ public com.google.protobuf.ByteString getNextHopPeeringBytes() { */ @java.lang.Override public boolean hasNextHopVpnTunnel() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -1464,7 +1731,7 @@ public com.google.protobuf.ByteString getNextHopVpnTunnelBytes() { */ @java.lang.Override public boolean hasPriority() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -1500,7 +1767,7 @@ public int getPriority() { */ @java.lang.Override public boolean hasRouteStatus() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -1569,7 +1836,7 @@ public com.google.protobuf.ByteString getRouteStatusBytes() { */ @java.lang.Override public boolean hasRouteType() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -1637,7 +1904,7 @@ public com.google.protobuf.ByteString getRouteTypeBytes() { */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -1847,10 +2114,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3552281, tags_.getRaw(i)); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeUInt32(24442003, nextHopInterRegionCost_); + } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 48752808, nextHopOrigin_); + } + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 110319529, nextHopIp_); } for (int i = 0; i < asPaths_.size(); i++) { @@ -1862,13 +2135,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 198679901, nextHopIlb_); } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeUInt32(198683530, nextHopMed_); + } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 232872494, network_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 262295788, nextHopNetwork_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 375888752, routeType_); } if (((bitField0_ & 0x00000080) != 0)) { @@ -1880,25 +2156,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 393508247, nextHopInstance_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 412682750, nextHopPeering_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 418162344, routeStatus_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { output.writeUInt32(445151652, priority_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } for (int i = 0; i < warnings_.size(); i++) { output.writeMessage(498091095, warnings_.get(i)); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 519844501, nextHopVpnTunnel_); } getUnknownFields().writeTo(output); @@ -1927,11 +2203,19 @@ public int getSerializedSize() { size += dataSize; size += 4 * getTagsList().size(); } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 24442003, nextHopInterRegionCost_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(48752808, nextHopOrigin_); + } + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110319529, nextHopIp_); } for (int i = 0; i < asPaths_.size(); i++) { @@ -1943,13 +2227,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(198679901, nextHopIlb_); } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(198683530, nextHopMed_); + } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(232872494, network_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(262295788, nextHopNetwork_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(375888752, routeType_); } if (((bitField0_ & 0x00000080) != 0)) { @@ -1961,25 +2248,25 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(393508247, nextHopInstance_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(412682750, nextHopPeering_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(418162344, routeStatus_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(445151652, priority_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } for (int i = 0; i < warnings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(498091095, warnings_.get(i)); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(519844501, nextHopVpnTunnel_); } @@ -2043,14 +2330,26 @@ public boolean equals(final java.lang.Object obj) { if (hasNextHopInstance()) { if (!getNextHopInstance().equals(other.getNextHopInstance())) return false; } + if (hasNextHopInterRegionCost() != other.hasNextHopInterRegionCost()) return false; + if (hasNextHopInterRegionCost()) { + if (getNextHopInterRegionCost() != other.getNextHopInterRegionCost()) return false; + } if (hasNextHopIp() != other.hasNextHopIp()) return false; if (hasNextHopIp()) { if (!getNextHopIp().equals(other.getNextHopIp())) return false; } + if (hasNextHopMed() != other.hasNextHopMed()) return false; + if (hasNextHopMed()) { + if (getNextHopMed() != other.getNextHopMed()) return false; + } if (hasNextHopNetwork() != other.hasNextHopNetwork()) return false; if (hasNextHopNetwork()) { if (!getNextHopNetwork().equals(other.getNextHopNetwork())) return false; } + if (hasNextHopOrigin() != other.hasNextHopOrigin()) return false; + if (hasNextHopOrigin()) { + if (!getNextHopOrigin().equals(other.getNextHopOrigin())) return false; + } if (hasNextHopPeering() != other.hasNextHopPeering()) return false; if (hasNextHopPeering()) { if (!getNextHopPeering().equals(other.getNextHopPeering())) return false; @@ -2136,14 +2435,26 @@ public int hashCode() { hash = (37 * hash) + NEXT_HOP_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getNextHopInstance().hashCode(); } + if (hasNextHopInterRegionCost()) { + hash = (37 * hash) + NEXT_HOP_INTER_REGION_COST_FIELD_NUMBER; + hash = (53 * hash) + getNextHopInterRegionCost(); + } if (hasNextHopIp()) { hash = (37 * hash) + NEXT_HOP_IP_FIELD_NUMBER; hash = (53 * hash) + getNextHopIp().hashCode(); } + if (hasNextHopMed()) { + hash = (37 * hash) + NEXT_HOP_MED_FIELD_NUMBER; + hash = (53 * hash) + getNextHopMed(); + } if (hasNextHopNetwork()) { hash = (37 * hash) + NEXT_HOP_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNextHopNetwork().hashCode(); } + if (hasNextHopOrigin()) { + hash = (37 * hash) + NEXT_HOP_ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + getNextHopOrigin().hashCode(); + } if (hasNextHopPeering()) { hash = (37 * hash) + NEXT_HOP_PEERING_FIELD_NUMBER; hash = (53 * hash) + getNextHopPeering().hashCode(); @@ -2332,8 +2643,11 @@ public Builder clear() { nextHopHub_ = ""; nextHopIlb_ = ""; nextHopInstance_ = ""; + nextHopInterRegionCost_ = 0; nextHopIp_ = ""; + nextHopMed_ = 0; nextHopNetwork_ = ""; + nextHopOrigin_ = ""; nextHopPeering_ = ""; nextHopVpnTunnel_ = ""; priority_ = 0; @@ -2347,7 +2661,7 @@ public Builder clear() { warnings_ = null; warningsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); return this; } @@ -2393,9 +2707,9 @@ private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Route result result.asPaths_ = asPathsBuilder_.build(); } if (warningsBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { warnings_ = java.util.Collections.unmodifiableList(warnings_); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); } result.warnings_ = warnings_; } else { @@ -2451,38 +2765,50 @@ private void buildPartial0(com.google.cloud.compute.v1.Route result) { to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.nextHopIp_ = nextHopIp_; + result.nextHopInterRegionCost_ = nextHopInterRegionCost_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.nextHopNetwork_ = nextHopNetwork_; + result.nextHopIp_ = nextHopIp_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.nextHopPeering_ = nextHopPeering_; + result.nextHopMed_ = nextHopMed_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.nextHopVpnTunnel_ = nextHopVpnTunnel_; + result.nextHopNetwork_ = nextHopNetwork_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.priority_ = priority_; + result.nextHopOrigin_ = nextHopOrigin_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.routeStatus_ = routeStatus_; + result.nextHopPeering_ = nextHopPeering_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.routeType_ = routeType_; + result.nextHopVpnTunnel_ = nextHopVpnTunnel_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.selfLink_ = selfLink_; + result.priority_ = priority_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00100000) != 0)) { + result.routeStatus_ = routeStatus_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.routeType_ = routeType_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } @@ -2614,24 +2940,35 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Route other) { bitField0_ |= 0x00000800; onChanged(); } + if (other.hasNextHopInterRegionCost()) { + setNextHopInterRegionCost(other.getNextHopInterRegionCost()); + } if (other.hasNextHopIp()) { nextHopIp_ = other.nextHopIp_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } + if (other.hasNextHopMed()) { + setNextHopMed(other.getNextHopMed()); + } if (other.hasNextHopNetwork()) { nextHopNetwork_ = other.nextHopNetwork_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasNextHopOrigin()) { + nextHopOrigin_ = other.nextHopOrigin_; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasNextHopPeering()) { nextHopPeering_ = other.nextHopPeering_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasNextHopVpnTunnel()) { nextHopVpnTunnel_ = other.nextHopVpnTunnel_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasPriority()) { @@ -2639,23 +2976,23 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Route other) { } if (other.hasRouteStatus()) { routeStatus_ = other.routeStatus_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasRouteType()) { routeType_ = other.routeType_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -2666,7 +3003,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Route other) { if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); @@ -2679,7 +3016,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Route other) { warningsBuilder_.dispose(); warningsBuilder_ = null; warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); warningsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWarningsFieldBuilder() @@ -2740,16 +3077,28 @@ public Builder mergeFrom( tags_.add(s); break; } // case 28418250 + case 195536024: + { + nextHopInterRegionCost_ = input.readUInt32(); + bitField0_ |= 0x00001000; + break; + } // case 195536024 case 244202930: { creationTimestamp_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 244202930 + case 390022466: + { + nextHopOrigin_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 390022466 case 882556234: { nextHopIp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 882556234 case 1100551434: @@ -2777,6 +3126,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 1589439210 + case 1589468240: + { + nextHopMed_ = input.readUInt32(); + bitField0_ |= 0x00004000; + break; + } // case 1589468240 case 1862979954: { network_ = input.readStringRequireUtf8(); @@ -2786,13 +3141,13 @@ public Builder mergeFrom( case 2098366306: { nextHopNetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 2098366306 case -1287857278: { routeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; break; } // case -1287857278 case -1277564910: @@ -2816,13 +3171,13 @@ public Builder mergeFrom( case -993505294: { nextHopPeering_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; break; } // case -993505294 case -949668542: { routeStatus_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; break; } // case -949668542 case -911466526: @@ -2834,13 +3189,13 @@ public Builder mergeFrom( case -733754080: { priority_ = input.readUInt32(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case -733754080 case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; break; } // case -645248918 case -310238534: @@ -2859,7 +3214,7 @@ public Builder mergeFrom( case -136211286: { nextHopVpnTunnel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; break; } // case -136211286 default: @@ -4497,6 +4852,74 @@ public Builder setNextHopInstanceBytes(com.google.protobuf.ByteString value) { return this; } + private int nextHopInterRegionCost_; + /** + * + * + *
    +     * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +     * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return Whether the nextHopInterRegionCost field is set. + */ + @java.lang.Override + public boolean hasNextHopInterRegionCost() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
    +     * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +     * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return The nextHopInterRegionCost. + */ + @java.lang.Override + public int getNextHopInterRegionCost() { + return nextHopInterRegionCost_; + } + /** + * + * + *
    +     * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +     * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @param value The nextHopInterRegionCost to set. + * @return This builder for chaining. + */ + public Builder setNextHopInterRegionCost(int value) { + + nextHopInterRegionCost_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +     * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return This builder for chaining. + */ + public Builder clearNextHopInterRegionCost() { + bitField0_ = (bitField0_ & ~0x00001000); + nextHopInterRegionCost_ = 0; + onChanged(); + return this; + } + private java.lang.Object nextHopIp_ = ""; /** * @@ -4510,7 +4933,7 @@ public Builder setNextHopInstanceBytes(com.google.protobuf.ByteString value) { * @return Whether the nextHopIp field is set. */ public boolean hasNextHopIp() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4573,7 +4996,7 @@ public Builder setNextHopIp(java.lang.String value) { throw new NullPointerException(); } nextHopIp_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4590,7 +5013,7 @@ public Builder setNextHopIp(java.lang.String value) { */ public Builder clearNextHopIp() { nextHopIp_ = getDefaultInstance().getNextHopIp(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4612,7 +5035,75 @@ public Builder setNextHopIpBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHopIp_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private int nextHopMed_; + /** + * + * + *
    +     * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +     * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return Whether the nextHopMed field is set. + */ + @java.lang.Override + public boolean hasNextHopMed() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
    +     * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +     * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return The nextHopMed. + */ + @java.lang.Override + public int getNextHopMed() { + return nextHopMed_; + } + /** + * + * + *
    +     * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +     * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @param value The nextHopMed to set. + * @return This builder for chaining. + */ + public Builder setNextHopMed(int value) { + + nextHopMed_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +     * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return This builder for chaining. + */ + public Builder clearNextHopMed() { + bitField0_ = (bitField0_ & ~0x00004000); + nextHopMed_ = 0; onChanged(); return this; } @@ -4630,7 +5121,7 @@ public Builder setNextHopIpBytes(com.google.protobuf.ByteString value) { * @return Whether the nextHopNetwork field is set. */ public boolean hasNextHopNetwork() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4693,7 +5184,7 @@ public Builder setNextHopNetwork(java.lang.String value) { throw new NullPointerException(); } nextHopNetwork_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4710,7 +5201,7 @@ public Builder setNextHopNetwork(java.lang.String value) { */ public Builder clearNextHopNetwork() { nextHopNetwork_ = getDefaultInstance().getNextHopNetwork(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4732,7 +5223,133 @@ public Builder setNextHopNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHopNetwork_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object nextHopOrigin_ = ""; + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return Whether the nextHopOrigin field is set. + */ + public boolean hasNextHopOrigin() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The nextHopOrigin. + */ + public java.lang.String getNextHopOrigin() { + java.lang.Object ref = nextHopOrigin_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHopOrigin_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The bytes for nextHopOrigin. + */ + public com.google.protobuf.ByteString getNextHopOriginBytes() { + java.lang.Object ref = nextHopOrigin_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextHopOrigin_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @param value The nextHopOrigin to set. + * @return This builder for chaining. + */ + public Builder setNextHopOrigin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextHopOrigin_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return This builder for chaining. + */ + public Builder clearNextHopOrigin() { + nextHopOrigin_ = getDefaultInstance().getNextHopOrigin(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
    +     * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +     * Check the NextHopOrigin enum for the list of possible values.
    +     * 
    + * + * optional string next_hop_origin = 48752808; + * + * @param value The bytes for nextHopOrigin to set. + * @return This builder for chaining. + */ + public Builder setNextHopOriginBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextHopOrigin_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4750,7 +5367,7 @@ public Builder setNextHopNetworkBytes(com.google.protobuf.ByteString value) { * @return Whether the nextHopPeering field is set. */ public boolean hasNextHopPeering() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -4813,7 +5430,7 @@ public Builder setNextHopPeering(java.lang.String value) { throw new NullPointerException(); } nextHopPeering_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4830,7 +5447,7 @@ public Builder setNextHopPeering(java.lang.String value) { */ public Builder clearNextHopPeering() { nextHopPeering_ = getDefaultInstance().getNextHopPeering(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -4852,7 +5469,7 @@ public Builder setNextHopPeeringBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHopPeering_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4870,7 +5487,7 @@ public Builder setNextHopPeeringBytes(com.google.protobuf.ByteString value) { * @return Whether the nextHopVpnTunnel field is set. */ public boolean hasNextHopVpnTunnel() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -4933,7 +5550,7 @@ public Builder setNextHopVpnTunnel(java.lang.String value) { throw new NullPointerException(); } nextHopVpnTunnel_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4950,7 +5567,7 @@ public Builder setNextHopVpnTunnel(java.lang.String value) { */ public Builder clearNextHopVpnTunnel() { nextHopVpnTunnel_ = getDefaultInstance().getNextHopVpnTunnel(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -4972,7 +5589,7 @@ public Builder setNextHopVpnTunnelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); nextHopVpnTunnel_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4991,7 +5608,7 @@ public Builder setNextHopVpnTunnelBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasPriority() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -5023,7 +5640,7 @@ public int getPriority() { public Builder setPriority(int value) { priority_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5039,7 +5656,7 @@ public Builder setPriority(int value) { * @return This builder for chaining. */ public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00080000); priority_ = 0; onChanged(); return this; @@ -5059,7 +5676,7 @@ public Builder clearPriority() { * @return Whether the routeStatus field is set. */ public boolean hasRouteStatus() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -5125,7 +5742,7 @@ public Builder setRouteStatus(java.lang.String value) { throw new NullPointerException(); } routeStatus_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5143,7 +5760,7 @@ public Builder setRouteStatus(java.lang.String value) { */ public Builder clearRouteStatus() { routeStatus_ = getDefaultInstance().getRouteStatus(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -5166,7 +5783,7 @@ public Builder setRouteStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); routeStatus_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5185,7 +5802,7 @@ public Builder setRouteStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the routeType field is set. */ public boolean hasRouteType() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -5251,7 +5868,7 @@ public Builder setRouteType(java.lang.String value) { throw new NullPointerException(); } routeType_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5269,7 +5886,7 @@ public Builder setRouteType(java.lang.String value) { */ public Builder clearRouteType() { routeType_ = getDefaultInstance().getRouteType(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -5292,7 +5909,7 @@ public Builder setRouteTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); routeType_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5310,7 +5927,7 @@ public Builder setRouteTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -5373,7 +5990,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -5390,7 +6007,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -5412,7 +6029,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -5424,7 +6041,7 @@ private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; } /** * @@ -5504,7 +6121,7 @@ public Builder setTags(int index, java.lang.String value) { } ensureTagsIsMutable(); tags_.set(index, value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5526,7 +6143,7 @@ public Builder addTags(java.lang.String value) { } ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5545,7 +6162,7 @@ public Builder addTags(java.lang.String value) { public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5562,7 +6179,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00800000); ; onChanged(); return this; @@ -5586,7 +6203,7 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5595,9 +6212,9 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { + if (!((bitField0_ & 0x01000000) != 0)) { warnings_ = new java.util.ArrayList(warnings_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x01000000; } } @@ -5812,7 +6429,7 @@ public Builder addAllWarnings( public Builder clearWarnings() { if (warningsBuilder_ == null) { warnings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); } else { warningsBuilder_.clear(); @@ -5933,7 +6550,7 @@ public java.util.List getWarningsB com.google.cloud.compute.v1.Warnings, com.google.cloud.compute.v1.Warnings.Builder, com.google.cloud.compute.v1.WarningsOrBuilder>( - warnings_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); + warnings_, ((bitField0_ & 0x01000000) != 0), getParentForChildren(), isClean()); warnings_ = null; } return warningsBuilder_; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RouteOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RouteOrBuilder.java index fe240a9480dc..e4695aa48730 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RouteOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RouteOrBuilder.java @@ -471,6 +471,31 @@ public interface RouteOrBuilder */ com.google.protobuf.ByteString getNextHopInstanceBytes(); + /** + * + * + *
    +   * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +   * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return Whether the nextHopInterRegionCost field is set. + */ + boolean hasNextHopInterRegionCost(); + /** + * + * + *
    +   * [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
    +   * 
    + * + * optional uint32 next_hop_inter_region_cost = 24442003; + * + * @return The nextHopInterRegionCost. + */ + int getNextHopInterRegionCost(); + /** * * @@ -508,6 +533,31 @@ public interface RouteOrBuilder */ com.google.protobuf.ByteString getNextHopIpBytes(); + /** + * + * + *
    +   * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +   * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return Whether the nextHopMed field is set. + */ + boolean hasNextHopMed(); + /** + * + * + *
    +   * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
    +   * 
    + * + * optional uint32 next_hop_med = 198683530; + * + * @return The nextHopMed. + */ + int getNextHopMed(); + /** * * @@ -545,6 +595,46 @@ public interface RouteOrBuilder */ com.google.protobuf.ByteString getNextHopNetworkBytes(); + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return Whether the nextHopOrigin field is set. + */ + boolean hasNextHopOrigin(); + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The nextHopOrigin. + */ + java.lang.String getNextHopOrigin(); + /** + * + * + *
    +   * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
    +   * Check the NextHopOrigin enum for the list of possible values.
    +   * 
    + * + * optional string next_hop_origin = 48752808; + * + * @return The bytes for nextHopOrigin. + */ + com.google.protobuf.ByteString getNextHopOriginBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java index d0939162c1f4..6aa3b22a3522 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * 
    * * Protobuf enum {@code google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.EnforceOnKey} @@ -103,6 +103,8 @@ public enum EnforceOnKey implements com.google.protobuf.ProtocolMessageEnum { SNI(82254), /** TLS_JA3_FINGERPRINT = 327127933; */ TLS_JA3_FINGERPRINT(327127933), + /** TLS_JA4_FINGERPRINT = 33724926; */ + TLS_JA4_FINGERPRINT(33724926), /** USER_IP = 34009627; */ USER_IP(34009627), /** XFF_IP = 438707118; */ @@ -136,6 +138,8 @@ public enum EnforceOnKey implements com.google.protobuf.ProtocolMessageEnum { public static final int SNI_VALUE = 82254; /** TLS_JA3_FINGERPRINT = 327127933; */ public static final int TLS_JA3_FINGERPRINT_VALUE = 327127933; + /** TLS_JA4_FINGERPRINT = 33724926; */ + public static final int TLS_JA4_FINGERPRINT_VALUE = 33724926; /** USER_IP = 34009627; */ public static final int USER_IP_VALUE = 34009627; /** XFF_IP = 438707118; */ @@ -183,6 +187,8 @@ public static EnforceOnKey forNumber(int value) { return SNI; case 327127933: return TLS_JA3_FINGERPRINT; + case 33724926: + return TLS_JA4_FINGERPRINT; case 34009627: return USER_IP; case 438707118: @@ -409,7 +415,7 @@ public com.google.protobuf.ByteString getConformActionBytes() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * @@ -425,7 +431,7 @@ public boolean hasEnforceOnKey() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * @@ -449,7 +455,7 @@ public java.lang.String getEnforceOnKey() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * @@ -1887,7 +1893,7 @@ public Builder setConformActionBytes(com.google.protobuf.ByteString value) { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * @@ -1902,7 +1908,7 @@ public boolean hasEnforceOnKey() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * @@ -1925,7 +1931,7 @@ public java.lang.String getEnforceOnKey() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * @@ -1948,7 +1954,7 @@ public com.google.protobuf.ByteString getEnforceOnKeyBytes() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * @@ -1970,7 +1976,7 @@ public Builder setEnforceOnKey(java.lang.String value) { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * @@ -1988,7 +1994,7 @@ public Builder clearEnforceOnKey() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKey enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java index 1639d60d4965..d35101c87797 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * 
    * * Protobuf enum {@code @@ -104,6 +104,8 @@ public enum EnforceOnKeyType implements com.google.protobuf.ProtocolMessageEnum SNI(82254), /** TLS_JA3_FINGERPRINT = 327127933; */ TLS_JA3_FINGERPRINT(327127933), + /** TLS_JA4_FINGERPRINT = 33724926; */ + TLS_JA4_FINGERPRINT(33724926), /** USER_IP = 34009627; */ USER_IP(34009627), /** XFF_IP = 438707118; */ @@ -137,6 +139,8 @@ public enum EnforceOnKeyType implements com.google.protobuf.ProtocolMessageEnum public static final int SNI_VALUE = 82254; /** TLS_JA3_FINGERPRINT = 327127933; */ public static final int TLS_JA3_FINGERPRINT_VALUE = 327127933; + /** TLS_JA4_FINGERPRINT = 33724926; */ + public static final int TLS_JA4_FINGERPRINT_VALUE = 33724926; /** USER_IP = 34009627; */ public static final int USER_IP_VALUE = 34009627; /** XFF_IP = 438707118; */ @@ -184,6 +188,8 @@ public static EnforceOnKeyType forNumber(int value) { return SNI; case 327127933: return TLS_JA3_FINGERPRINT; + case 33724926: + return TLS_JA4_FINGERPRINT; case 34009627: return USER_IP; case 438707118: @@ -321,7 +327,7 @@ public com.google.protobuf.ByteString getEnforceOnKeyNameBytes() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * @@ -337,7 +343,7 @@ public boolean hasEnforceOnKeyType() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * @@ -361,7 +367,7 @@ public java.lang.String getEnforceOnKeyType() { * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * @@ -914,7 +920,7 @@ public Builder setEnforceOnKeyNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * @@ -929,7 +935,7 @@ public boolean hasEnforceOnKeyType() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * @@ -952,7 +958,7 @@ public java.lang.String getEnforceOnKeyType() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * @@ -975,7 +981,7 @@ public com.google.protobuf.ByteString getEnforceOnKeyTypeBytes() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * @@ -997,7 +1003,7 @@ public Builder setEnforceOnKeyType(java.lang.String value) { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * @@ -1015,7 +1021,7 @@ public Builder clearEnforceOnKeyType() { * * *
    -     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
          * Check the EnforceOnKeyType enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder.java index 121b71bfb516..be8dd37c3f53 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder.java @@ -65,7 +65,7 @@ public interface SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * @@ -78,7 +78,7 @@ public interface SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * @@ -91,7 +91,7 @@ public interface SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKeyType enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java index 6dbe4c7416a0..207ce0fc6db7 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java @@ -132,7 +132,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * @@ -145,7 +145,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * @@ -158,7 +158,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
    -   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP.
    +   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
        * Check the EnforceOnKey enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequest.java new file mode 100644 index 000000000000..532341819d22 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequest.java @@ -0,0 +1,1563 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for RegionSecurityPolicies.SetLabels. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest} + */ +public final class SetLabelsRegionSecurityPolicyRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) + SetLabelsRegionSecurityPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLabelsRegionSecurityPolicyRequest.newBuilder() to construct. + private SetLabelsRegionSecurityPolicyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLabelsRegionSecurityPolicyRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLabelsRegionSecurityPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.class, + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
    +   * The region for this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
    +   * The region for this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SET_LABELS_REQUEST_RESOURCE_FIELD_NUMBER = 259357782; + private com.google.cloud.compute.v1.RegionSetLabelsRequest regionSetLabelsRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSetLabelsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource() { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder() { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + * + * + *
    +   * Name or id of the resource for this request.
    +   * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + /** + * + * + *
    +   * Name or id of the resource for this request.
    +   * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(259357782, getRegionSetLabelsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 259357782, getRegionSetLabelsRequestResource()); + } + 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.compute.v1.SetLabelsRegionSecurityPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest other = + (com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSetLabelsRequestResource() != other.hasRegionSetLabelsRequestResource()) + return false; + if (hasRegionSetLabelsRequestResource()) { + if (!getRegionSetLabelsRequestResource().equals(other.getRegionSetLabelsRequestResource())) + return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getResource().equals(other.getResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSetLabelsRequestResource()) { + hash = (37 * hash) + REGION_SET_LABELS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSetLabelsRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest 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 request message for RegionSecurityPolicies.SetLabels. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.class, + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRegionSetLabelsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSetLabelsRequestResource_ = null; + if (regionSetLabelsRequestResourceBuilder_ != null) { + regionSetLabelsRequestResourceBuilder_.dispose(); + regionSetLabelsRequestResourceBuilder_ = null; + } + requestId_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest build() { + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest buildPartial() { + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest result = + new com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSetLabelsRequestResource_ = + regionSetLabelsRequestResourceBuilder_ == null + ? regionSetLabelsRequestResource_ + : regionSetLabelsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resource_ = resource_; + } + 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.compute.v1.SetLabelsRegionSecurityPolicyRequest) { + return mergeFrom((com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest other) { + if (other + == com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSetLabelsRequestResource()) { + mergeRegionSetLabelsRequestResource(other.getRegionSetLabelsRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case 2074862258: + { + input.readMessage( + getRegionSetLabelsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 2074862258 + 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 project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
    +     * The region for this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The region for this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The region for this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The region for this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * The region for this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSetLabelsRequest regionSetLabelsRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder> + regionSetLabelsRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + public boolean hasRegionSetLabelsRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource() { + if (regionSetLabelsRequestResourceBuilder_ == null) { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } else { + return regionSetLabelsRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest value) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSetLabelsRequestResource_ = value; + } else { + regionSetLabelsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder builderForValue) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + regionSetLabelsRequestResource_ = builderForValue.build(); + } else { + regionSetLabelsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest value) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSetLabelsRequestResource_ != null + && regionSetLabelsRequestResource_ + != com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance()) { + getRegionSetLabelsRequestResourceBuilder().mergeFrom(value); + } else { + regionSetLabelsRequestResource_ = value; + } + } else { + regionSetLabelsRequestResourceBuilder_.mergeFrom(value); + } + if (regionSetLabelsRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSetLabelsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSetLabelsRequestResource_ = null; + if (regionSetLabelsRequestResourceBuilder_ != null) { + regionSetLabelsRequestResourceBuilder_.dispose(); + regionSetLabelsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder + getRegionSetLabelsRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRegionSetLabelsRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder() { + if (regionSetLabelsRequestResourceBuilder_ != null) { + return regionSetLabelsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder> + getRegionSetLabelsRequestResourceFieldBuilder() { + if (regionSetLabelsRequestResourceBuilder_ == null) { + regionSetLabelsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder>( + getRegionSetLabelsRequestResource(), getParentForChildren(), isClean()); + regionSetLabelsRequestResource_ = null; + } + return regionSetLabelsRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
    +     * Name or id of the resource for this request.
    +     * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name or id of the resource for this request.
    +     * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name or id of the resource for this request.
    +     * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name or id of the resource for this request.
    +     * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name or id of the resource for this request.
    +     * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = 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.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) + private static final com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest(); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLabelsRegionSecurityPolicyRequest 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.compute.v1.SetLabelsRegionSecurityPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..be717d96a117 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSecurityPolicyRequestOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface SetLabelsRegionSecurityPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * The region for this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
    +   * The region for this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + boolean hasRegionSetLabelsRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Name or id of the resource for this request.
    +   * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
    +   * Name or id of the resource for this request.
    +   * 
    + * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..09ba77c1824d --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequest.java @@ -0,0 +1,1594 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for InstanceGroupManagers.StartInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest} + */ +public final class StartInstancesInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) + StartInstancesInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StartInstancesInstanceGroupManagerRequest.newBuilder() to construct. + private StartInstancesInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StartInstancesInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StartInstancesInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_MANAGERS_START_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = + 261083819; + private com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + instanceGroupManagersStartInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStartInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasInstanceGroupManagersStartInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStartInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + getInstanceGroupManagersStartInstancesRequestResource() { + return instanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStartInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder + getInstanceGroupManagersStartInstancesRequestResourceOrBuilder() { + return instanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStartInstancesRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(261083819, getInstanceGroupManagersStartInstancesRequestResource()); + } + 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(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 261083819, getInstanceGroupManagersStartInstancesRequestResource()); + } + 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.compute.v1.StartInstancesInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasInstanceGroupManagersStartInstancesRequestResource() + != other.hasInstanceGroupManagersStartInstancesRequestResource()) return false; + if (hasInstanceGroupManagersStartInstancesRequestResource()) { + if (!getInstanceGroupManagersStartInstancesRequestResource() + .equals(other.getInstanceGroupManagersStartInstancesRequestResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasInstanceGroupManagersStartInstancesRequestResource()) { + hash = (37 * hash) + INSTANCE_GROUP_MANAGERS_START_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManagersStartInstancesRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest 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.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest 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.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest 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.compute.v1.StartInstancesInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + 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.compute.v1.StartInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest 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.compute.v1.StartInstancesInstanceGroupManagerRequest 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 request message for InstanceGroupManagers.StartInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceGroupManagersStartInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + instanceGroupManagersStartInstancesRequestResource_ = null; + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersStartInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersStartInstancesRequestResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest buildPartial() { + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManagersStartInstancesRequestResource_ = + instanceGroupManagersStartInstancesRequestResourceBuilder_ == null + ? instanceGroupManagersStartInstancesRequestResource_ + : instanceGroupManagersStartInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + 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.compute.v1.StartInstancesInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInstanceGroupManagersStartInstancesRequestResource()) { + mergeInstanceGroupManagersStartInstancesRequestResource( + other.getInstanceGroupManagersStartInstancesRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + case 2088670554: + { + input.readMessage( + getInstanceGroupManagersStartInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 2088670554 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + instanceGroupManagersStartInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder> + instanceGroupManagersStartInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStartInstancesRequestResource field is set. + */ + public boolean hasInstanceGroupManagersStartInstancesRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStartInstancesRequestResource. + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + getInstanceGroupManagersStartInstancesRequestResource() { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + return instanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStartInstancesRequestResource_; + } else { + return instanceGroupManagersStartInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest value) { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManagersStartInstancesRequestResource_ = value; + } else { + instanceGroupManagersStartInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder + builderForValue) { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersStartInstancesRequestResource_ = builderForValue.build(); + } else { + instanceGroupManagersStartInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest value) { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instanceGroupManagersStartInstancesRequestResource_ != null + && instanceGroupManagersStartInstancesRequestResource_ + != com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance()) { + getInstanceGroupManagersStartInstancesRequestResourceBuilder().mergeFrom(value); + } else { + instanceGroupManagersStartInstancesRequestResource_ = value; + } + } else { + instanceGroupManagersStartInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (instanceGroupManagersStartInstancesRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstanceGroupManagersStartInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceGroupManagersStartInstancesRequestResource_ = null; + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersStartInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersStartInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder + getInstanceGroupManagersStartInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceGroupManagersStartInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder + getInstanceGroupManagersStartInstancesRequestResourceOrBuilder() { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + return instanceGroupManagersStartInstancesRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return instanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStartInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder> + getInstanceGroupManagersStartInstancesRequestResourceFieldBuilder() { + if (instanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersStartInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder>( + getInstanceGroupManagersStartInstancesRequestResource(), + getParentForChildren(), + isClean()); + instanceGroupManagersStartInstancesRequestResource_ = null; + } + return instanceGroupManagersStartInstancesRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstancesInstanceGroupManagerRequest 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.compute.v1.StartInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..19693c07cde8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface StartInstancesInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStartInstancesRequestResource field is set. + */ + boolean hasInstanceGroupManagersStartInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStartInstancesRequestResource. + */ + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest + getInstanceGroupManagersStartInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestOrBuilder + getInstanceGroupManagersStartInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..0b8f1b6eeb1c --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequest.java @@ -0,0 +1,1615 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for RegionInstanceGroupManagers.StartInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest} + */ +public final class StartInstancesRegionInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) + StartInstancesRegionInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StartInstancesRegionInstanceGroupManagerRequest.newBuilder() to construct. + private StartInstancesRegionInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StartInstancesRegionInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StartInstancesRegionInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int + REGION_INSTANCE_GROUP_MANAGERS_START_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = 497012118; + private com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStartInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionInstanceGroupManagersStartInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStartInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getRegionInstanceGroupManagersStartInstancesRequestResource() { + return regionInstanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStartInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder + getRegionInstanceGroupManagersStartInstancesRequestResourceOrBuilder() { + return regionInstanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStartInstancesRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(497012118, getRegionInstanceGroupManagersStartInstancesRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 497012118, getRegionInstanceGroupManagersStartInstancesRequestResource()); + } + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionInstanceGroupManagersStartInstancesRequestResource() + != other.hasRegionInstanceGroupManagersStartInstancesRequestResource()) return false; + if (hasRegionInstanceGroupManagersStartInstancesRequestResource()) { + if (!getRegionInstanceGroupManagersStartInstancesRequestResource() + .equals(other.getRegionInstanceGroupManagersStartInstancesRequestResource())) + return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionInstanceGroupManagersStartInstancesRequestResource()) { + hash = + (37 * hash) + + REGION_INSTANCE_GROUP_MANAGERS_START_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionInstanceGroupManagersStartInstancesRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest 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 request message for RegionInstanceGroupManagers.StartInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRegionInstanceGroupManagersStartInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + regionInstanceGroupManagersStartInstancesRequestResource_ = null; + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + buildPartial() { + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regionInstanceGroupManagersStartInstancesRequestResource_ = + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null + ? regionInstanceGroupManagersStartInstancesRequestResource_ + : regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegionInstanceGroupManagersStartInstancesRequestResource()) { + mergeRegionInstanceGroupManagersStartInstancesRequestResource( + other.getRegionInstanceGroupManagersStartInstancesRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + case -318870350: + { + input.readMessage( + getRegionInstanceGroupManagersStartInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -318870350 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder> + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStartInstancesRequestResource field is set. + */ + public boolean hasRegionInstanceGroupManagersStartInstancesRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStartInstancesRequestResource. + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getRegionInstanceGroupManagersStartInstancesRequestResource() { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + return regionInstanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStartInstancesRequestResource_; + } else { + return regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest value) { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionInstanceGroupManagersStartInstancesRequestResource_ = value; + } else { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder + builderForValue) { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersStartInstancesRequestResource_ = builderForValue.build(); + } else { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionInstanceGroupManagersStartInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest value) { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && regionInstanceGroupManagersStartInstancesRequestResource_ != null + && regionInstanceGroupManagersStartInstancesRequestResource_ + != com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance()) { + getRegionInstanceGroupManagersStartInstancesRequestResourceBuilder().mergeFrom(value); + } else { + regionInstanceGroupManagersStartInstancesRequestResource_ = value; + } + } else { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (regionInstanceGroupManagersStartInstancesRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionInstanceGroupManagersStartInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + regionInstanceGroupManagersStartInstancesRequestResource_ = null; + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder + getRegionInstanceGroupManagersStartInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRegionInstanceGroupManagersStartInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder + getRegionInstanceGroupManagersStartInstancesRequestResourceOrBuilder() { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ != null) { + return regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ + .getMessageOrBuilder(); + } else { + return regionInstanceGroupManagersStartInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStartInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder> + getRegionInstanceGroupManagersStartInstancesRequestResourceFieldBuilder() { + if (regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersStartInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + .Builder, + com.google.cloud.compute.v1 + .RegionInstanceGroupManagersStartInstancesRequestOrBuilder>( + getRegionInstanceGroupManagersStartInstancesRequestResource(), + getParentForChildren(), + isClean()); + regionInstanceGroupManagersStartInstancesRequestResource_ = null; + } + return regionInstanceGroupManagersStartInstancesRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + StartInstancesRegionInstanceGroupManagerRequest>() { + @java.lang.Override + public StartInstancesRegionInstanceGroupManagerRequest 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.compute.v1.StartInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..77d401e2be34 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StartInstancesRegionInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface StartInstancesRegionInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStartInstancesRequestResource field is set. + */ + boolean hasRegionInstanceGroupManagersStartInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStartInstancesRequestResource. + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest + getRegionInstanceGroupManagersStartInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestOrBuilder + getRegionInstanceGroupManagersStartInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..244ac1bdc4d4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequest.java @@ -0,0 +1,1589 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for InstanceGroupManagers.StopInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest} + */ +public final class StopInstancesInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) + StopInstancesInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopInstancesInstanceGroupManagerRequest.newBuilder() to construct. + private StopInstancesInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StopInstancesInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopInstancesInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_MANAGERS_STOP_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = + 37556877; + private com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + instanceGroupManagersStopInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStopInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasInstanceGroupManagersStopInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStopInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + getInstanceGroupManagersStopInstancesRequestResource() { + return instanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.getDefaultInstance() + : instanceGroupManagersStopInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder + getInstanceGroupManagersStopInstancesRequestResourceOrBuilder() { + return instanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.getDefaultInstance() + : instanceGroupManagersStopInstancesRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(37556877, getInstanceGroupManagersStopInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + 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(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 37556877, getInstanceGroupManagersStopInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + 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.compute.v1.StopInstancesInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasInstanceGroupManagersStopInstancesRequestResource() + != other.hasInstanceGroupManagersStopInstancesRequestResource()) return false; + if (hasInstanceGroupManagersStopInstancesRequestResource()) { + if (!getInstanceGroupManagersStopInstancesRequestResource() + .equals(other.getInstanceGroupManagersStopInstancesRequestResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasInstanceGroupManagersStopInstancesRequestResource()) { + hash = (37 * hash) + INSTANCE_GROUP_MANAGERS_STOP_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManagersStopInstancesRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest 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.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest 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.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest 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.compute.v1.StopInstancesInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + 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.compute.v1.StopInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest 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.compute.v1.StopInstancesInstanceGroupManagerRequest 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 request message for InstanceGroupManagers.StopInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceGroupManagersStopInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + instanceGroupManagersStopInstancesRequestResource_ = null; + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersStopInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersStopInstancesRequestResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest buildPartial() { + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManagersStopInstancesRequestResource_ = + instanceGroupManagersStopInstancesRequestResourceBuilder_ == null + ? instanceGroupManagersStopInstancesRequestResource_ + : instanceGroupManagersStopInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + 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.compute.v1.StopInstancesInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInstanceGroupManagersStopInstancesRequestResource()) { + mergeInstanceGroupManagersStopInstancesRequestResource( + other.getInstanceGroupManagersStopInstancesRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 300455018: + { + input.readMessage( + getInstanceGroupManagersStopInstancesRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 300455018 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + instanceGroupManagersStopInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder> + instanceGroupManagersStopInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStopInstancesRequestResource field is set. + */ + public boolean hasInstanceGroupManagersStopInstancesRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStopInstancesRequestResource. + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + getInstanceGroupManagersStopInstancesRequestResource() { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + return instanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStopInstancesRequestResource_; + } else { + return instanceGroupManagersStopInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest value) { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManagersStopInstancesRequestResource_ = value; + } else { + instanceGroupManagersStopInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder + builderForValue) { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersStopInstancesRequestResource_ = builderForValue.build(); + } else { + instanceGroupManagersStopInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest value) { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instanceGroupManagersStopInstancesRequestResource_ != null + && instanceGroupManagersStopInstancesRequestResource_ + != com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + .getDefaultInstance()) { + getInstanceGroupManagersStopInstancesRequestResourceBuilder().mergeFrom(value); + } else { + instanceGroupManagersStopInstancesRequestResource_ = value; + } + } else { + instanceGroupManagersStopInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (instanceGroupManagersStopInstancesRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstanceGroupManagersStopInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceGroupManagersStopInstancesRequestResource_ = null; + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersStopInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersStopInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder + getInstanceGroupManagersStopInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceGroupManagersStopInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder + getInstanceGroupManagersStopInstancesRequestResourceOrBuilder() { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + return instanceGroupManagersStopInstancesRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return instanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : instanceGroupManagersStopInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder> + getInstanceGroupManagersStopInstancesRequestResourceFieldBuilder() { + if (instanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersStopInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder>( + getInstanceGroupManagersStopInstancesRequestResource(), + getParentForChildren(), + isClean()); + instanceGroupManagersStopInstancesRequestResource_ = null; + } + return instanceGroupManagersStopInstancesRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstancesInstanceGroupManagerRequest 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.compute.v1.StopInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..d517ce745aeb --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface StopInstancesInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersStopInstancesRequestResource field is set. + */ + boolean hasInstanceGroupManagersStopInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersStopInstancesRequestResource. + */ + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest + getInstanceGroupManagersStopInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestOrBuilder + getInstanceGroupManagersStopInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..baf186dd3887 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequest.java @@ -0,0 +1,1611 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for RegionInstanceGroupManagers.StopInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest} + */ +public final class StopInstancesRegionInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) + StopInstancesRegionInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopInstancesRegionInstanceGroupManagerRequest.newBuilder() to construct. + private StopInstancesRegionInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StopInstancesRegionInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopInstancesRegionInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int + REGION_INSTANCE_GROUP_MANAGERS_STOP_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = 270306882; + private com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStopInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionInstanceGroupManagersStopInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStopInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getRegionInstanceGroupManagersStopInstancesRequestResource() { + return regionInstanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStopInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder + getRegionInstanceGroupManagersStopInstancesRequestResourceOrBuilder() { + return regionInstanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStopInstancesRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(270306882, getRegionInstanceGroupManagersStopInstancesRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 270306882, getRegionInstanceGroupManagersStopInstancesRequestResource()); + } + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionInstanceGroupManagersStopInstancesRequestResource() + != other.hasRegionInstanceGroupManagersStopInstancesRequestResource()) return false; + if (hasRegionInstanceGroupManagersStopInstancesRequestResource()) { + if (!getRegionInstanceGroupManagersStopInstancesRequestResource() + .equals(other.getRegionInstanceGroupManagersStopInstancesRequestResource())) return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionInstanceGroupManagersStopInstancesRequestResource()) { + hash = + (37 * hash) + REGION_INSTANCE_GROUP_MANAGERS_STOP_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionInstanceGroupManagersStopInstancesRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest 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 request message for RegionInstanceGroupManagers.StopInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRegionInstanceGroupManagersStopInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + regionInstanceGroupManagersStopInstancesRequestResource_ = null; + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + buildPartial() { + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regionInstanceGroupManagersStopInstancesRequestResource_ = + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null + ? regionInstanceGroupManagersStopInstancesRequestResource_ + : regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegionInstanceGroupManagersStopInstancesRequestResource()) { + mergeRegionInstanceGroupManagersStopInstancesRequestResource( + other.getRegionInstanceGroupManagersStopInstancesRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + case -2132512238: + { + input.readMessage( + getRegionInstanceGroupManagersStopInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -2132512238 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder> + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStopInstancesRequestResource field is set. + */ + public boolean hasRegionInstanceGroupManagersStopInstancesRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStopInstancesRequestResource. + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getRegionInstanceGroupManagersStopInstancesRequestResource() { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + return regionInstanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStopInstancesRequestResource_; + } else { + return regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest value) { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionInstanceGroupManagersStopInstancesRequestResource_ = value; + } else { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder + builderForValue) { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersStopInstancesRequestResource_ = builderForValue.build(); + } else { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionInstanceGroupManagersStopInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest value) { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && regionInstanceGroupManagersStopInstancesRequestResource_ != null + && regionInstanceGroupManagersStopInstancesRequestResource_ + != com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance()) { + getRegionInstanceGroupManagersStopInstancesRequestResourceBuilder().mergeFrom(value); + } else { + regionInstanceGroupManagersStopInstancesRequestResource_ = value; + } + } else { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (regionInstanceGroupManagersStopInstancesRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionInstanceGroupManagersStopInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + regionInstanceGroupManagersStopInstancesRequestResource_ = null; + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder + getRegionInstanceGroupManagersStopInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRegionInstanceGroupManagersStopInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder + getRegionInstanceGroupManagersStopInstancesRequestResourceOrBuilder() { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ != null) { + return regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ + .getMessageOrBuilder(); + } else { + return regionInstanceGroupManagersStopInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersStopInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder> + getRegionInstanceGroupManagersStopInstancesRequestResourceFieldBuilder() { + if (regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersStopInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest.Builder, + com.google.cloud.compute.v1 + .RegionInstanceGroupManagersStopInstancesRequestOrBuilder>( + getRegionInstanceGroupManagersStopInstancesRequestResource(), + getParentForChildren(), + isClean()); + regionInstanceGroupManagersStopInstancesRequestResource_ = null; + } + return regionInstanceGroupManagersStopInstancesRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstancesRegionInstanceGroupManagerRequest 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.compute.v1.StopInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..575e96739107 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/StopInstancesRegionInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface StopInstancesRegionInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersStopInstancesRequestResource field is set. + */ + boolean hasRegionInstanceGroupManagersStopInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersStopInstancesRequestResource. + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest + getRegionInstanceGroupManagersStopInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequestOrBuilder + getRegionInstanceGroupManagersStopInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Subnetwork.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Subnetwork.java index 35ea53a1d634..99b7dac92a32 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Subnetwork.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Subnetwork.java @@ -432,7 +432,7 @@ private PrivateIpv6GoogleAccess(int value) { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * 
    * * Protobuf enum {@code google.cloud.compute.v1.Subnetwork.Purpose} @@ -468,6 +468,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * INTERNAL_HTTPS_LOAD_BALANCER = 248748889; */ INTERNAL_HTTPS_LOAD_BALANCER(248748889), + /** + * + * + *
    +     * Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another).
    +     * 
    + * + * PEER_MIGRATION = 491902225; + */ + PEER_MIGRATION(491902225), /** * * @@ -551,6 +561,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * INTERNAL_HTTPS_LOAD_BALANCER = 248748889; */ public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE = 248748889; + /** + * + * + *
    +     * Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another).
    +     * 
    + * + * PEER_MIGRATION = 491902225; + */ + public static final int PEER_MIGRATION_VALUE = 491902225; /** * * @@ -632,6 +652,8 @@ public static Purpose forNumber(int value) { return GLOBAL_MANAGED_PROXY; case 248748889: return INTERNAL_HTTPS_LOAD_BALANCER; + case 491902225: + return PEER_MIGRATION; case 403485027: return PRIVATE; case 367764517: @@ -2216,7 +2238,7 @@ public com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -2232,7 +2254,7 @@ public boolean hasPurpose() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -2256,7 +2278,7 @@ public java.lang.String getPurpose() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -5859,7 +5881,7 @@ public Builder setPrivateIpv6GoogleAccessBytes(com.google.protobuf.ByteString va * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -5874,7 +5896,7 @@ public boolean hasPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -5897,7 +5919,7 @@ public java.lang.String getPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -5920,7 +5942,7 @@ public com.google.protobuf.ByteString getPurposeBytes() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -5942,7 +5964,7 @@ public Builder setPurpose(java.lang.String value) { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -5960,7 +5982,7 @@ public Builder clearPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SubnetworkOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SubnetworkOrBuilder.java index eff27a19db83..b24daed1d0b8 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SubnetworkOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SubnetworkOrBuilder.java @@ -625,7 +625,7 @@ public interface SubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -638,7 +638,7 @@ public interface SubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -651,7 +651,7 @@ public interface SubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..13c8ddcc7b78 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequest.java @@ -0,0 +1,1599 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for InstanceGroupManagers.SuspendInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest} + */ +public final class SuspendInstancesInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) + SuspendInstancesInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuspendInstancesInstanceGroupManagerRequest.newBuilder() to construct. + private SuspendInstancesInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuspendInstancesInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuspendInstancesInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_MANAGERS_SUSPEND_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = + 46679761; + private com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersSuspendInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasInstanceGroupManagersSuspendInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersSuspendInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getInstanceGroupManagersSuspendInstancesRequestResource() { + return instanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : instanceGroupManagersSuspendInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder + getInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder() { + return instanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : instanceGroupManagersSuspendInstancesRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(46679761, getInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + 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(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46679761, getInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasInstanceGroupManagersSuspendInstancesRequestResource() + != other.hasInstanceGroupManagersSuspendInstancesRequestResource()) return false; + if (hasInstanceGroupManagersSuspendInstancesRequestResource()) { + if (!getInstanceGroupManagersSuspendInstancesRequestResource() + .equals(other.getInstanceGroupManagersSuspendInstancesRequestResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasInstanceGroupManagersSuspendInstancesRequestResource()) { + hash = (37 * hash) + INSTANCE_GROUP_MANAGERS_SUSPEND_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManagersSuspendInstancesRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest 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 request message for InstanceGroupManagers.SuspendInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + instanceGroupManagersSuspendInstancesRequestResource_ = null; + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersSuspendInstancesRequestResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest buildPartial() { + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManagersSuspendInstancesRequestResource_ = + instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null + ? instanceGroupManagersSuspendInstancesRequestResource_ + : instanceGroupManagersSuspendInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInstanceGroupManagersSuspendInstancesRequestResource()) { + mergeInstanceGroupManagersSuspendInstancesRequestResource( + other.getInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 373438090: + { + input.readMessage( + getInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 373438090 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder> + instanceGroupManagersSuspendInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersSuspendInstancesRequestResource field is set. + */ + public boolean hasInstanceGroupManagersSuspendInstancesRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersSuspendInstancesRequestResource. + */ + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getInstanceGroupManagersSuspendInstancesRequestResource() { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + return instanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : instanceGroupManagersSuspendInstancesRequestResource_; + } else { + return instanceGroupManagersSuspendInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest value) { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManagersSuspendInstancesRequestResource_ = value; + } else { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder + builderForValue) { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersSuspendInstancesRequestResource_ = builderForValue.build(); + } else { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest value) { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instanceGroupManagersSuspendInstancesRequestResource_ != null + && instanceGroupManagersSuspendInstancesRequestResource_ + != com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance()) { + getInstanceGroupManagersSuspendInstancesRequestResourceBuilder().mergeFrom(value); + } else { + instanceGroupManagersSuspendInstancesRequestResource_ = value; + } + } else { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (instanceGroupManagersSuspendInstancesRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstanceGroupManagersSuspendInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceGroupManagersSuspendInstancesRequestResource_ = null; + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_.dispose(); + instanceGroupManagersSuspendInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder + getInstanceGroupManagersSuspendInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder + getInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder() { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + return instanceGroupManagersSuspendInstancesRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return instanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : instanceGroupManagersSuspendInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder> + getInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder() { + if (instanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + instanceGroupManagersSuspendInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder>( + getInstanceGroupManagersSuspendInstancesRequestResource(), + getParentForChildren(), + isClean()); + instanceGroupManagersSuspendInstancesRequestResource_ = null; + } + return instanceGroupManagersSuspendInstancesRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the zone where the managed instance group is located.
    +     * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = 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.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendInstancesInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..a01aa89c2846 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface SuspendInstancesInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * The name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagersSuspendInstancesRequestResource field is set. + */ + boolean hasInstanceGroupManagersSuspendInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagersSuspendInstancesRequestResource. + */ + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest + getInstanceGroupManagersSuspendInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestOrBuilder + getInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
    +   * The name of the zone where the managed instance group is located.
    +   * 
    + * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequest.java new file mode 100644 index 000000000000..3326338c75fc --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequest.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/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
    + * A request message for RegionInstanceGroupManagers.SuspendInstances. See the method description for details.
    + * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest} + */ +public final class SuspendInstancesRegionInstanceGroupManagerRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) + SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() to construct. + private SuspendInstancesRegionInstanceGroupManagerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuspendInstancesRegionInstanceGroupManagerRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuspendInstancesRegionInstanceGroupManagerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int + REGION_INSTANCE_GROUP_MANAGERS_SUSPEND_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER = 214250236; + private com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource_; + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersSuspendInstancesRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionInstanceGroupManagersSuspendInstancesRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersSuspendInstancesRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getRegionInstanceGroupManagersSuspendInstancesRequestResource() { + return regionInstanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersSuspendInstancesRequestResource_; + } + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder + getRegionInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder() { + return regionInstanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersSuspendInstancesRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage( + 214250236, getRegionInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 249363395, instanceGroupManager_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 214250236, getRegionInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 249363395, instanceGroupManager_); + } + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest other = + (com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionInstanceGroupManagersSuspendInstancesRequestResource() + != other.hasRegionInstanceGroupManagersSuspendInstancesRequestResource()) return false; + if (hasRegionInstanceGroupManagersSuspendInstancesRequestResource()) { + if (!getRegionInstanceGroupManagersSuspendInstancesRequestResource() + .equals(other.getRegionInstanceGroupManagersSuspendInstancesRequestResource())) + return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionInstanceGroupManagersSuspendInstancesRequestResource()) { + hash = + (37 * hash) + + REGION_INSTANCE_GROUP_MANAGERS_SUSPEND_INSTANCES_REQUEST_RESOURCE_FIELD_NUMBER; + hash = + (53 * hash) + getRegionInstanceGroupManagersSuspendInstancesRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest 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 request message for RegionInstanceGroupManagers.SuspendInstances. See the method description for details.
    +   * 
    + * + * Protobuf type {@code google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest.class, + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRegionInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + regionInstanceGroupManagersSuspendInstancesRequestResource_ = null; + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest build() { + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + buildPartial() { + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest result = + new com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regionInstanceGroupManagersSuspendInstancesRequestResource_ = + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null + ? regionInstanceGroupManagersSuspendInstancesRequestResource_ + : regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest other) { + if (other + == com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegionInstanceGroupManagersSuspendInstancesRequestResource()) { + mergeRegionInstanceGroupManagersSuspendInstancesRequestResource( + other.getRegionInstanceGroupManagersSuspendInstancesRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1714001890: + { + input.readMessage( + getRegionInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder() + .getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 1714001890 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the managed instance group.
    +     * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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; + } + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Project ID for this request.
    +     * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the region scoping this request.
    +     * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder> + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_; + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersSuspendInstancesRequestResource field is set. + */ + public boolean hasRegionInstanceGroupManagersSuspendInstancesRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersSuspendInstancesRequestResource. + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getRegionInstanceGroupManagersSuspendInstancesRequestResource() { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + return regionInstanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersSuspendInstancesRequestResource_; + } else { + return regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest value) { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionInstanceGroupManagersSuspendInstancesRequestResource_ = value; + } else { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder + builderForValue) { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersSuspendInstancesRequestResource_ = builderForValue.build(); + } else { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.setMessage( + builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionInstanceGroupManagersSuspendInstancesRequestResource( + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest value) { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && regionInstanceGroupManagersSuspendInstancesRequestResource_ != null + && regionInstanceGroupManagersSuspendInstancesRequestResource_ + != com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance()) { + getRegionInstanceGroupManagersSuspendInstancesRequestResourceBuilder().mergeFrom(value); + } else { + regionInstanceGroupManagersSuspendInstancesRequestResource_ = value; + } + } else { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.mergeFrom(value); + } + if (regionInstanceGroupManagersSuspendInstancesRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionInstanceGroupManagersSuspendInstancesRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + regionInstanceGroupManagersSuspendInstancesRequestResource_ = null; + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_.dispose(); + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder + getRegionInstanceGroupManagersSuspendInstancesRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRegionInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder() + .getBuilder(); + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder + getRegionInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder() { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ != null) { + return regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ + .getMessageOrBuilder(); + } else { + return regionInstanceGroupManagersSuspendInstancesRequestResource_ == null + ? com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .getDefaultInstance() + : regionInstanceGroupManagersSuspendInstancesRequestResource_; + } + } + /** + * + * + *
    +     * The body resource for this request
    +     * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest.Builder, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder> + getRegionInstanceGroupManagersSuspendInstancesRequestResourceFieldBuilder() { + if (regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ == null) { + regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest, + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + .Builder, + com.google.cloud.compute.v1 + .RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder>( + getRegionInstanceGroupManagersSuspendInstancesRequestResource(), + getParentForChildren(), + isClean()); + regionInstanceGroupManagersSuspendInstancesRequestResource_ = null; + } + return regionInstanceGroupManagersSuspendInstancesRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * optional string request_id = 37109963; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) + private static final com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest(); + } + + public static com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + SuspendInstancesRegionInstanceGroupManagerRequest>() { + @java.lang.Override + public SuspendInstancesRegionInstanceGroupManagerRequest 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.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder.java new file mode 100644 index 000000000000..5eb05e4bceac --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface SuspendInstancesRegionInstanceGroupManagerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + /** + * + * + *
    +   * Name of the managed instance group.
    +   * 
    + * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
    +   * Project ID for this request.
    +   * 
    + * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
    +   * Name of the region scoping this request.
    +   * 
    + * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionInstanceGroupManagersSuspendInstancesRequestResource field is set. + */ + boolean hasRegionInstanceGroupManagersSuspendInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionInstanceGroupManagersSuspendInstancesRequestResource. + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest + getRegionInstanceGroupManagersSuspendInstancesRequestResource(); + /** + * + * + *
    +   * The body resource for this request
    +   * 
    + * + * + * .google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestOrBuilder + getRegionInstanceGroupManagersSuspendInstancesRequestResourceOrBuilder(); + + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java index 3a80bc54d918..0bc864a6dc9c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java @@ -23,7 +23,7 @@ * * *
    - * Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of GCP HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
    + * Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
      * 
    * * Protobuf type {@code google.cloud.compute.v1.TargetHttpsProxy} @@ -306,6 +306,16 @@ public enum TlsEarlyData implements com.google.protobuf.ProtocolMessageEnum { * STRICT = 308826825; */ STRICT(308826825), + /** + * + * + *
    +     * This enables TLS 1.3 Early Data for requests with any HTTP method including non-idempotent methods list POST. This mode does not enforce any other limitations. This may be valuable for gRPC use cases. However, we do not recommend this method unless you have evaluated your security stance and mitigated the risk of replay attacks using other mechanisms.
    +     * 
    + * + * UNRESTRICTED = 457266100; + */ + UNRESTRICTED(457266100), UNRECOGNIZED(-1), ; @@ -349,6 +359,16 @@ public enum TlsEarlyData implements com.google.protobuf.ProtocolMessageEnum { * STRICT = 308826825; */ public static final int STRICT_VALUE = 308826825; + /** + * + * + *
    +     * This enables TLS 1.3 Early Data for requests with any HTTP method including non-idempotent methods list POST. This mode does not enforce any other limitations. This may be valuable for gRPC use cases. However, we do not recommend this method unless you have evaluated your security stance and mitigated the risk of replay attacks using other mechanisms.
    +     * 
    + * + * UNRESTRICTED = 457266100; + */ + public static final int UNRESTRICTED_VALUE = 457266100; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -382,6 +402,8 @@ public static TlsEarlyData forNumber(int value) { return PERMISSIVE; case 308826825: return STRICT; + case 457266100: + return UNRESTRICTED; default: return null; } @@ -1942,7 +1964,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of GCP HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
    +   * Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts.
        * 
    * * Protobuf type {@code google.cloud.compute.v1.TargetHttpsProxy} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMap.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMap.java index 27b17be4615d..0ab7d8554acd 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMap.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMap.java @@ -204,7 +204,7 @@ public boolean hasDefaultCustomErrorResponsePolicy() { * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -220,7 +220,7 @@ public boolean hasDefaultRouteAction() { * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -238,7 +238,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() { * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -259,7 +259,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -274,7 +274,7 @@ public boolean hasDefaultService() { * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -297,7 +297,7 @@ public java.lang.String getDefaultService() { * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -323,7 +323,7 @@ public com.google.protobuf.ByteString getDefaultServiceBytes() { * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -339,7 +339,7 @@ public boolean hasDefaultUrlRedirect() { * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -357,7 +357,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() { * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2360,7 +2360,7 @@ public Builder clearDefaultCustomErrorResponsePolicy() { * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2375,7 +2375,7 @@ public boolean hasDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2396,7 +2396,7 @@ public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2419,7 +2419,7 @@ public Builder setDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2440,7 +2440,7 @@ public Builder setDefaultRouteAction( * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2469,7 +2469,7 @@ public Builder mergeDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteActi * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2489,7 +2489,7 @@ public Builder clearDefaultRouteAction() { * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2504,7 +2504,7 @@ public com.google.cloud.compute.v1.HttpRouteAction.Builder getDefaultRouteAction * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2523,7 +2523,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -2551,7 +2551,7 @@ public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActio * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2565,7 +2565,7 @@ public boolean hasDefaultService() { * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2587,7 +2587,7 @@ public java.lang.String getDefaultService() { * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2609,7 +2609,7 @@ public com.google.protobuf.ByteString getDefaultServiceBytes() { * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2630,7 +2630,7 @@ public Builder setDefaultService(java.lang.String value) { * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2647,7 +2647,7 @@ public Builder clearDefaultService() { * * *
    -     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +     * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
          * 
    * * optional string default_service = 370242231; @@ -2676,7 +2676,7 @@ public Builder setDefaultServiceBytes(com.google.protobuf.ByteString value) { * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2691,7 +2691,7 @@ public boolean hasDefaultUrlRedirect() { * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2712,7 +2712,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() { * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2735,7 +2735,7 @@ public Builder setDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAct * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2756,7 +2756,7 @@ public Builder setDefaultUrlRedirect( * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2785,7 +2785,7 @@ public Builder mergeDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectA * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2805,7 +2805,7 @@ public Builder clearDefaultUrlRedirect() { * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2820,7 +2820,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getDefaultUrlRedir * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -2840,7 +2840,7 @@ public com.google.cloud.compute.v1.HttpRedirectAction.Builder getDefaultUrlRedir * * *
    -     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +     * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
          * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMapOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMapOrBuilder.java index ed6391f3386d..0a43bec276d6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMapOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UrlMapOrBuilder.java @@ -107,7 +107,7 @@ public interface UrlMapOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -120,7 +120,7 @@ public interface UrlMapOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -133,7 +133,7 @@ public interface UrlMapOrBuilder * * *
    -   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466; @@ -145,7 +145,7 @@ public interface UrlMapOrBuilder * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -157,7 +157,7 @@ public interface UrlMapOrBuilder * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -169,7 +169,7 @@ public interface UrlMapOrBuilder * * *
    -   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
    +   * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        * 
    * * optional string default_service = 370242231; @@ -182,7 +182,7 @@ public interface UrlMapOrBuilder * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -195,7 +195,7 @@ public interface UrlMapOrBuilder * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; @@ -208,7 +208,7 @@ public interface UrlMapOrBuilder * * *
    -   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
    +   * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy.
        * 
    * * optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java index e50a6fbffb0d..78639de81d84 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java @@ -233,7 +233,7 @@ private Ipv6AccessType(int value) { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * 
    * * Protobuf enum {@code google.cloud.compute.v1.UsableSubnetwork.Purpose} @@ -269,6 +269,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * INTERNAL_HTTPS_LOAD_BALANCER = 248748889; */ INTERNAL_HTTPS_LOAD_BALANCER(248748889), + /** + * + * + *
    +     * Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another).
    +     * 
    + * + * PEER_MIGRATION = 491902225; + */ + PEER_MIGRATION(491902225), /** * * @@ -352,6 +362,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * INTERNAL_HTTPS_LOAD_BALANCER = 248748889; */ public static final int INTERNAL_HTTPS_LOAD_BALANCER_VALUE = 248748889; + /** + * + * + *
    +     * Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another).
    +     * 
    + * + * PEER_MIGRATION = 491902225; + */ + public static final int PEER_MIGRATION_VALUE = 491902225; /** * * @@ -433,6 +453,8 @@ public static Purpose forNumber(int value) { return GLOBAL_MANAGED_PROXY; case 248748889: return INTERNAL_HTTPS_LOAD_BALANCER; + case 491902225: + return PEER_MIGRATION; case 403485027: return PRIVATE; case 367764517: @@ -1174,7 +1196,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -1190,7 +1212,7 @@ public boolean hasPurpose() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -1214,7 +1236,7 @@ public java.lang.String getPurpose() { * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -2801,7 +2823,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -2816,7 +2838,7 @@ public boolean hasPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -2839,7 +2861,7 @@ public java.lang.String getPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -2862,7 +2884,7 @@ public com.google.protobuf.ByteString getPurposeBytes() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -2884,7 +2906,7 @@ public Builder setPurpose(java.lang.String value) { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * @@ -2902,7 +2924,7 @@ public Builder clearPurpose() { * * *
    -     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +     * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
          * Check the Purpose enum for the list of possible values.
          * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkOrBuilder.java index 8ce163ae68cc..91e718d174f1 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkOrBuilder.java @@ -216,7 +216,7 @@ public interface UsableSubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -229,7 +229,7 @@ public interface UsableSubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * @@ -242,7 +242,7 @@ public interface UsableSubnetworkOrBuilder * * *
    -   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
    +   * The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.
        * Check the Purpose enum for the list of possible values.
        * 
    * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warning.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warning.java index 1d639b004479..8a1ecd322d9c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warning.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warning.java @@ -295,6 +295,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ PARTIAL_SUCCESS(39966469), + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + QUOTA_INFO_UNAVAILABLE(304294182), /** * * @@ -588,6 +598,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ public static final int PARTIAL_SUCCESS_VALUE = 39966469; + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + public static final int QUOTA_INFO_UNAVAILABLE_VALUE = 304294182; /** * * @@ -727,6 +747,8 @@ public static Code forNumber(int value) { return NO_RESULTS_ON_PAGE; case 39966469: return PARTIAL_SUCCESS; + case 304294182: + return QUOTA_INFO_UNAVAILABLE; case 3745539: return REQUIRED_TOS_AGREEMENT; case 496728641: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warnings.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warnings.java index 6f04f378be61..8f97130e8c73 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warnings.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Warnings.java @@ -294,6 +294,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ PARTIAL_SUCCESS(39966469), + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + QUOTA_INFO_UNAVAILABLE(304294182), /** * * @@ -587,6 +597,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * PARTIAL_SUCCESS = 39966469; */ public static final int PARTIAL_SUCCESS_VALUE = 39966469; + /** + * + * + *
    +     * Quota information is not available to client requests (e.g: regions.list).
    +     * 
    + * + * QUOTA_INFO_UNAVAILABLE = 304294182; + */ + public static final int QUOTA_INFO_UNAVAILABLE_VALUE = 304294182; /** * * @@ -726,6 +746,8 @@ public static Code forNumber(int value) { return NO_RESULTS_ON_PAGE; case 39966469: return PARTIAL_SUCCESS; + case 304294182: + return QUOTA_INFO_UNAVAILABLE; case 3745539: return REQUIRED_TOS_AGREEMENT; case 496728641: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index 931d7fc19b78..093ddb17e92f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20241105 +// Source file revision: 20241201 // API name: compute // API version: v1 @@ -22,12 +22,12 @@ syntax = "proto3"; package google.cloud.compute.v1; -import "google/protobuf/any.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/extended_operations.proto"; +import "google/protobuf/any.proto"; // // File Options @@ -3319,7 +3319,7 @@ message BackendBucket { // Message containing Cloud CDN configuration for a backend bucket. message BackendBucketCdnPolicy { - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. enum CacheMode { // A value indicating that the enum field is not set. UNDEFINED_CACHE_MODE = 0; @@ -3343,7 +3343,7 @@ message BackendBucketCdnPolicy { // The CacheKeyPolicy for this CdnPolicy. optional BackendBucketCdnPolicyCacheKeyPolicy cache_key_policy = 159263727; - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; @@ -3747,7 +3747,7 @@ message BackendServiceAggregatedList { // Message containing Cloud CDN configuration for a backend service. message BackendServiceCdnPolicy { - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. enum CacheMode { // A value indicating that the enum field is not set. UNDEFINED_CACHE_MODE = 0; @@ -3771,7 +3771,7 @@ message BackendServiceCdnPolicy { // The CacheKeyPolicy for this CdnPolicy. optional CacheKeyPolicy cache_key_policy = 159263727; - // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. + // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; @@ -4691,6 +4691,12 @@ message Commitment { MEMORY_OPTIMIZED_M3 = 276301372; + MEMORY_OPTIMIZED_X4_16TB = 183089120; + + MEMORY_OPTIMIZED_X4_24TB = 183116989; + + MEMORY_OPTIMIZED_X4_32TB = 183144858; + STORAGE_OPTIMIZED_Z3 = 316796085; TYPE_UNSPECIFIED = 437714322; @@ -9565,6 +9571,16 @@ message GetNetworkFirewallPolicyRequest { } +// A request message for NetworkProfiles.Get. See the method description for details. +message GetNetworkProfileRequest { + // Name of the network profile to return. + string network_profile = 173112472 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Networks.Get. See the method description for details. message GetNetworkRequest { // Name of the network to return. @@ -10120,7 +10136,7 @@ message GetSerialPortOutputInstanceRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. + // Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size. optional int64 start = 109757538; // The name of the zone for this request. @@ -11332,13 +11348,13 @@ message HttpRouteRule { // For routeRules within a given pathMatcher, priority determines the order in which a load balancer interprets routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. optional int32 priority = 445151652; - // In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction. + // In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a route rule's routeAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. + // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. optional string service = 373540533; - // When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. + // When this rule is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } @@ -13533,6 +13549,9 @@ message InstanceGroupManager { // [Output Only] The URL for this managed instance group. The server defines this URL. optional string self_link = 456214797; + // Standby policy for stopped and suspended instances. + optional InstanceGroupManagerStandbyPolicy standby_policy = 499352324; + // Stateful configuration for this Instanced Group Manager optional StatefulPolicy stateful_policy = 47538565; @@ -13545,6 +13564,12 @@ message InstanceGroupManager { // The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number. optional int32 target_size = 62880239; + // The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method. + optional int32 target_stopped_size = 2419489; + + // The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method. + optional int32 target_suspended_size = 308085843; + // The update policy for this managed instance group. optional InstanceGroupManagerUpdatePolicy update_policy = 175809896; @@ -13821,6 +13846,30 @@ message InstanceGroupManagerResizeRequestsListResponse { } +// +message InstanceGroupManagerStandbyPolicy { + // Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`. + enum Mode { + // A value indicating that the enum field is not set. + UNDEFINED_MODE = 0; + + // MIG does not automatically resume or start VMs in the standby pool when the group scales out. + MANUAL = 119397318; + + // MIG automatically resumes or starts VMs in the standby pool when the group scales out, and replenishes the standby pool afterwards. + SCALE_OUT_POOL = 635394; + + } + + // Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0. + optional int32 initial_delay_sec = 263207002; + + // Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The default mode is `MANUAL`. + // Check the Mode enum for the list of possible values. + optional string mode = 3357091; + +} + // message InstanceGroupManagerStatus { // [Output only] Status of all-instances configuration on the group. @@ -14096,6 +14145,13 @@ message InstanceGroupManagersRecreateInstancesRequest { } +// +message InstanceGroupManagersResumeInstancesRequest { + // The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + // message InstanceGroupManagersScopedList { // [Output Only] The list of managed instance groups that are contained in the specified project and zone. @@ -14123,6 +14179,33 @@ message InstanceGroupManagersSetTargetPoolsRequest { } +// +message InstanceGroupManagersStartInstancesRequest { + // The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + +// +message InstanceGroupManagersStopInstancesRequest { + // If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them. + optional bool force_stop = 134762710; + + // The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + +// +message InstanceGroupManagersSuspendInstancesRequest { + // If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them. + optional bool force_suspend = 27637480; + + // The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + // InstanceGroupManagers.updatePerInstanceConfigs message InstanceGroupManagersUpdatePerInstanceConfigsReq { // The list of per-instance configurations to insert or patch on this managed instance group. @@ -15787,7 +15870,7 @@ message InterconnectLocation { // [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2". optional string availability_zone = 158459920; - // [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC + // [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC // Check the AvailableFeatures enum for the list of possible values. repeated string available_features = 496344307; @@ -16279,6 +16362,7 @@ message License { // Name of the resource. The name must be 1-63 characters long and comply with RFC1035. optional string name = 3373707; + // [Input Only] Deprecated. optional LicenseResourceRequirements resource_requirements = 214292769; // [Output Only] Server-defined URL for the resource. @@ -16367,10 +16451,10 @@ message LicenseResourceCommitment { // message LicenseResourceRequirements { - // Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start. + // [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus required to use the Instance. optional int32 min_guest_cpu_count = 477964836; - // Minimum memory required to use the Instance. Enforced at Instance creation and Instance start. + // [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the Instance. optional int32 min_memory_mb = 504785894; } @@ -17552,6 +17636,28 @@ message ListNetworkFirewallPoliciesRequest { } +// A request message for NetworkProfiles.List. See the method description for details. +message ListNetworkProfilesRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. + optional bool return_partial_success = 517198390; + +} + // A request message for Networks.List. See the method description for details. message ListNetworksRequest { // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. @@ -19930,6 +20036,9 @@ message Network { // Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values. optional string network_firewall_policy_enforcement_order = 6504784; + // A full or partial URL of the network profile to apply to this network. This field can be set only at resource creation time. For example, the following are valid URLs: - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} + optional string network_profile = 173112472; + // [Output Only] A list of network peerings for the resource. repeated NetworkPeering peerings = 69883187; @@ -20526,6 +20635,12 @@ message NetworkInterface { // IDPF IDPF = 2242641; + // IRDMA + IRDMA = 69927695; + + // MRDMA + MRDMA = 73621779; + // No type specified. UNSPECIFIED_NIC_TYPE = 67411801; @@ -20714,8 +20829,482 @@ message NetworkPerformanceConfig { } +// NetworkProfile represents a Google managed network profile resource. +message NetworkProfile { + // [Output Only] Creation timestamp in RFC3339 text format. + optional string creation_timestamp = 30525366; + + // [Output Only] An optional description of this resource. + optional string description = 422937596; + + // [Output Only] Features supported by the network. + optional NetworkProfileNetworkFeatures features = 246211645; + + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. + optional uint64 id = 3355; + + // [Output Only] Type of the resource. Always compute#networkProfile for network profiles. + optional string kind = 3292052; + + // [Output Only] Location to which the network is restricted. + optional NetworkProfileLocation location = 290430901; + + // [Output Only] Name of the resource. + optional string name = 3373707; + + // [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL for this resource with the resource id. + optional string self_link_with_id = 44520962; + + // [Output Only] Zone to which the network is restricted. + optional string zone = 3744684; + +} + +// +message NetworkProfileLocation { + // + enum Scope { + // A value indicating that the enum field is not set. + UNDEFINED_SCOPE = 0; + + REGION = 266017524; + + ZONE = 2759596; + + } + + optional string name = 3373707; + + // + // Check the Scope enum for the list of possible values. + optional string scope = 109264468; + +} + +// +message NetworkProfileNetworkFeatures { + // + enum AddressPurposes { + // A value indicating that the enum field is not set. + UNDEFINED_ADDRESS_PURPOSES = 0; + + // DNS resolver address in the subnetwork. + DNS_RESOLVER = 476114556; + + // VM internal/alias IP, Internal LB service IP, etc. + GCE_ENDPOINT = 230515243; + + // A regional internal IP address range reserved for the VLAN attachment that is used in HA VPN over Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range. + IPSEC_INTERCONNECT = 340437251; + + // External IP automatically reserved for Cloud NAT. + NAT_AUTO = 163666477; + + // A private network IP address that can be used to configure Private Service Connect. This purpose can be specified only for GLOBAL addresses of Type INTERNAL + PRIVATE_SERVICE_CONNECT = 48134724; + + // A regional internal IP address range reserved for Serverless. + SERVERLESS = 270492508; + + // A private network IP address that can be shared by multiple Internal Load Balancer forwarding rules. + SHARED_LOADBALANCER_VIP = 294447572; + + // IP range for peer networks. + VPC_PEERING = 400800170; + + } + + // Specifies whether alias IP ranges (and secondary address ranges) are allowed. + enum AllowAliasIpRanges { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_ALIAS_IP_RANGES = 0; + + ALIAS_IP_RANGES_ALLOWED = 464867048; + + ALIAS_IP_RANGES_BLOCKED = 281030444; + + } + + // Specifies whether auto mode subnet creation is allowed. + enum AllowAutoModeSubnet { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_AUTO_MODE_SUBNET = 0; + + AUTO_MODE_SUBNET_ALLOWED = 391042610; + + AUTO_MODE_SUBNET_BLOCKED = 207206006; + + } + + // Specifies whether firewalls for Class D address ranges are supported. + enum AllowClassDFirewalls { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_CLASS_D_FIREWALLS = 0; + + CLASS_D_FIREWALLS_ALLOWED = 348219386; + + CLASS_D_FIREWALLS_BLOCKED = 164382782; + + } + + // Specifies whether cloud NAT creation is allowed. + enum AllowCloudNat { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_CLOUD_NAT = 0; + + CLOUD_NAT_ALLOWED = 245931296; + + CLOUD_NAT_BLOCKED = 62094692; + + } + + // Specifies whether cloud router creation is allowed. + enum AllowCloudRouter { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_CLOUD_ROUTER = 0; + + CLOUD_ROUTER_ALLOWED = 365388284; + + CLOUD_ROUTER_BLOCKED = 181551680; + + } + + // Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. + enum AllowExternalIpAccess { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_EXTERNAL_IP_ACCESS = 0; + + EXTERNAL_IP_ACCESS_ALLOWED = 109530193; + + EXTERNAL_IP_ACCESS_BLOCKED = 462564501; + + } + + // Specifies whether Cloud Interconnect creation is allowed. + enum AllowInterconnect { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_INTERCONNECT = 0; + + INTERCONNECT_ALLOWED = 162845399; + + INTERCONNECT_BLOCKED = 515879707; + + } + + // Specifies whether cloud load balancing is allowed. + enum AllowLoadBalancing { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_LOAD_BALANCING = 0; + + LOAD_BALANCING_ALLOWED = 28407977; + + LOAD_BALANCING_BLOCKED = 381442285; + + } + + // Specifies whether multi-nic in the same network is allowed. + enum AllowMultiNicInSameNetwork { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_MULTI_NIC_IN_SAME_NETWORK = 0; + + MULTI_NIC_IN_SAME_NETWORK_ALLOWED = 457555419; + + MULTI_NIC_IN_SAME_NETWORK_BLOCKED = 273718815; + + } + + // Specifies whether Packet Mirroring 1.0 is supported. + enum AllowPacketMirroring { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_PACKET_MIRRORING = 0; + + PACKET_MIRRORING_ALLOWED = 92416245; + + PACKET_MIRRORING_BLOCKED = 445450553; + + } + + // Specifies whether private Google access is allowed. + enum AllowPrivateGoogleAccess { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS = 0; + + PRIVATE_GOOGLE_ACCESS_ALLOWED = 220787351; + + PRIVATE_GOOGLE_ACCESS_BLOCKED = 36950747; + + } + + // Specifies whether PSC creation is allowed. + enum AllowPsc { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_PSC = 0; + + PSC_ALLOWED = 171559657; + + PSC_BLOCKED = 524593965; + + } + + // Specifies whether unicast within the same network is allowed. + enum AllowSameNetworkUnicast { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_SAME_NETWORK_UNICAST = 0; + + SAME_NETWORK_UNICAST_ALLOWED = 159732814; + + SAME_NETWORK_UNICAST_BLOCKED = 512767122; + + } + + // Specifies whether static route creation is allowed. + enum AllowStaticRoutes { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_STATIC_ROUTES = 0; + + STATIC_ROUTES_ALLOWED = 409048964; + + STATIC_ROUTES_BLOCKED = 225212360; + + } + + // Specifies whether sub interfaces are allowed. + enum AllowSubInterfaces { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_SUB_INTERFACES = 0; + + SUBINTERFACES_ALLOWED = 158685891; + + SUBINTERFACES_BLOCKED = 511720199; + + } + + // Specifies whether VPC peering is allowed. + enum AllowVpcPeering { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_VPC_PEERING = 0; + + VPC_PEERING_ALLOWED = 261465075; + + VPC_PEERING_BLOCKED = 77628471; + + } + + // Specifies whether VPN creation is allowed. + enum AllowVpn { + // A value indicating that the enum field is not set. + UNDEFINED_ALLOW_VPN = 0; + + VPN_ALLOWED = 162163997; + + VPN_BLOCKED = 515198305; + + } + + // + enum InterfaceTypes { + // A value indicating that the enum field is not set. + UNDEFINED_INTERFACE_TYPES = 0; + + // GVNIC + GVNIC = 68209305; + + // IDPF + IDPF = 2242641; + + // IRDMA + IRDMA = 69927695; + + // MRDMA + MRDMA = 73621779; + + // No type specified. + UNSPECIFIED_NIC_TYPE = 67411801; + + // VIRTIO + VIRTIO_NET = 452123481; + + } + + // + enum SubnetPurposes { + // A value indicating that the enum field is not set. + UNDEFINED_SUBNET_PURPOSES = 0; + + SUBNET_PURPOSE_CUSTOM_HARDWARE = 283160275; + + SUBNET_PURPOSE_PRIVATE = 404371008; + + } + + // + enum SubnetStackTypes { + // A value indicating that the enum field is not set. + UNDEFINED_SUBNET_STACK_TYPES = 0; + + SUBNET_STACK_TYPE_IPV4_IPV6 = 41454485; + + SUBNET_STACK_TYPE_IPV4_ONLY = 41631034; + + SUBNET_STACK_TYPE_IPV6_ONLY = 98889336; + + } + + // Specifies which type of unicast is supported. + enum Unicast { + // A value indicating that the enum field is not set. + UNDEFINED_UNICAST = 0; + + UNICAST_SDN = 379954157; + + UNICAST_ULL = 379956325; + + } + + // Specifies what address purposes are supported. If empty, all address purposes are supported. + // Check the AddressPurposes enum for the list of possible values. + repeated string address_purposes = 433024768; + + // Specifies whether alias IP ranges (and secondary address ranges) are allowed. + // Check the AllowAliasIpRanges enum for the list of possible values. + optional string allow_alias_ip_ranges = 457984201; + + // Specifies whether auto mode subnet creation is allowed. + // Check the AllowAutoModeSubnet enum for the list of possible values. + optional string allow_auto_mode_subnet = 152191263; + + // Specifies whether firewalls for Class D address ranges are supported. + // Check the AllowClassDFirewalls enum for the list of possible values. + optional string allow_class_d_firewalls = 131608987; + + // Specifies whether cloud NAT creation is allowed. + // Check the AllowCloudNat enum for the list of possible values. + optional string allow_cloud_nat = 254831265; + + // Specifies whether cloud router creation is allowed. + // Check the AllowCloudRouter enum for the list of possible values. + optional string allow_cloud_router = 451110345; + + // Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. + // Check the AllowExternalIpAccess enum for the list of possible values. + optional string allow_external_ip_access = 131538110; + + // Specifies whether Cloud Interconnect creation is allowed. + // Check the AllowInterconnect enum for the list of possible values. + optional string allow_interconnect = 280512964; + + // Specifies whether cloud load balancing is allowed. + // Check the AllowLoadBalancing enum for the list of possible values. + optional string allow_load_balancing = 223366198; + + // Specifies whether multi-nic in the same network is allowed. + // Check the AllowMultiNicInSameNetwork enum for the list of possible values. + optional string allow_multi_nic_in_same_network = 88251004; + + // Specifies whether Packet Mirroring 1.0 is supported. + // Check the AllowPacketMirroring enum for the list of possible values. + optional string allow_packet_mirroring = 512227074; + + // Specifies whether private Google access is allowed. + // Check the AllowPrivateGoogleAccess enum for the list of possible values. + optional string allow_private_google_access = 374702072; + + // Specifies whether PSC creation is allowed. + // Check the AllowPsc enum for the list of possible values. + optional string allow_psc = 372357322; + + // Specifies whether unicast within the same network is allowed. + // Check the AllowSameNetworkUnicast enum for the list of possible values. + optional string allow_same_network_unicast = 167531643; + + // Specifies whether static route creation is allowed. + // Check the AllowStaticRoutes enum for the list of possible values. + optional string allow_static_routes = 185257925; + + // Specifies whether sub interfaces are allowed. + // Check the AllowSubInterfaces enum for the list of possible values. + optional string allow_sub_interfaces = 247208303; + + // Specifies whether VPC peering is allowed. + // Check the AllowVpcPeering enum for the list of possible values. + optional string allow_vpc_peering = 115402228; + + // Specifies whether VPN creation is allowed. + // Check the AllowVpn enum for the list of possible values. + optional string allow_vpn = 372363006; + + // If set, limits the interface types that the network supports. If empty, all interface types are supported. + // Check the InterfaceTypes enum for the list of possible values. + repeated string interface_types = 157981171; + + // Specifies which subnetwork purposes are supported. + // Check the SubnetPurposes enum for the list of possible values. + repeated string subnet_purposes = 301338039; + + // Specifies which subnetwork stack types are supported. + // Check the SubnetStackTypes enum for the list of possible values. + repeated string subnet_stack_types = 521008672; + + // Specifies which type of unicast is supported. + // Check the Unicast enum for the list of possible values. + optional string unicast = 249841711; + +} + +// Contains a list of network profiles. +message NetworkProfilesListResponse { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of NetworkProfile resources. + repeated NetworkProfile items = 100526016; + + // [Output Only] Type of resource. Always compute#networkProfileList for network profiles. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. message NetworkRoutingConfig { + // The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + enum BgpBestPathSelectionMode { + // A value indicating that the enum field is not set. + UNDEFINED_BGP_BEST_PATH_SELECTION_MODE = 0; + + LEGACY = 94234569; + + STANDARD = 484642493; + + } + + // Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + enum BgpInterRegionCost { + // A value indicating that the enum field is not set. + UNDEFINED_BGP_INTER_REGION_COST = 0; + + ADD_COST_TO_MED = 490583004; + + DEFAULT = 115302945; + + } + // The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. enum RoutingMode { // A value indicating that the enum field is not set. @@ -20727,6 +21316,17 @@ message NetworkRoutingConfig { } + // Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm. + optional bool bgp_always_compare_med = 213102902; + + // The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + // Check the BgpBestPathSelectionMode enum for the list of possible values. + optional string bgp_best_path_selection_mode = 317816297; + + // Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + // Check the BgpInterRegionCost enum for the list of possible values. + optional string bgp_inter_region_cost = 462142689; + // The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. // Check the RoutingMode enum for the list of possible values. optional string routing_mode = 475143548; @@ -23056,13 +23656,13 @@ message PathMatcher { // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. For example, consider a UrlMap with the following configuration: - UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - A RouteRule for /coming_soon/ is configured for the error code 404. If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; - // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. If defaultRouteAction is specified, don't set defaultUrlRedirect. If defaultRouteAction.weightedBackendServices is specified, don't set defaultService. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction. + // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path matcher's defaultRouteAction. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect or defaultRouteAction.weightedBackendService. Don't set both. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use + // The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use optional string default_service = 370242231; - // When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, then set either defaultService or defaultRouteAction. Don't set both. Not supported when the URL map is bound to a target gRPC proxy. + // When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; // An optional description of this resource. Provide this property when you create the resource. @@ -23090,13 +23690,13 @@ message PathRule { // The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. repeated string paths = 106438894; - // In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction. + // In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within a path rule's routeAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. + // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. optional string service = 373540533; - // When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. + // When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. Only one of urlRedirect, service or routeAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } @@ -23131,7 +23731,7 @@ message PerInstanceConfig { // Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset. optional string fingerprint = 234678500; - // The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configconfiguration for a VM instance that either doesn't exist or is not part of the group will result in an error. + // The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error. optional string name = 3373707; // The intended preserved state for the given instance. Does not contain preserved state generated from a stateful policy. @@ -23401,7 +24001,7 @@ message Project { // An optional textual description of the resource. optional string description = 422937596; - // Restricted features enabled for use on this project. + // An optional list of restricted features enabled for use on this project. repeated string enabled_features = 469017467; // [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. @@ -23419,7 +24019,7 @@ message Project { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. + // An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. optional UsageExportLocation usage_export_location = 347543874; // [Output Only] Default internal DNS setting used by VMs running in this project. @@ -24350,6 +24950,9 @@ message QuotaStatusWarning { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; + // Quota information is not available to client requests (e.g: regions.list). + QUOTA_INFO_UNAVAILABLE = 304294182; + // The user attempted to use a resource that requires a TOS they have not accepted. REQUIRED_TOS_AGREEMENT = 3745539; @@ -24779,6 +25382,13 @@ message RegionInstanceGroupManagersRecreateRequest { } +// +message RegionInstanceGroupManagersResumeInstancesRequest { + // The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + // message RegionInstanceGroupManagersSetTargetPoolsRequest { // Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional. @@ -24796,6 +25406,33 @@ message RegionInstanceGroupManagersSetTemplateRequest { } +// +message RegionInstanceGroupManagersStartInstancesRequest { + // The URLs of one or more instances to start. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + +// +message RegionInstanceGroupManagersStopInstancesRequest { + // If this flag is set to true, the Instance Group Manager will proceed to stop the instances, skipping initialization on them. + optional bool force_stop = 134762710; + + // The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + +// +message RegionInstanceGroupManagersSuspendInstancesRequest { + // If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, skipping initialization on them. + optional bool force_suspend = 27637480; + + // The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + repeated string instances = 29097598; + +} + // message RegionInstanceGroupsListInstances { // [Output Only] Unique identifier for the resource; defined by the server. @@ -25981,7 +26618,7 @@ message ResourcePolicyWeeklyCycleDayOfWeek { // Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls. message ResourceStatus { - // [Output Only] An opaque ID of the host on which the VM is running. + // [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. optional string physical_host = 464370704; optional ResourceStatusScheduling scheduling = 386688404; @@ -26019,8 +26656,71 @@ message ResumeInstanceRequest { } +// A request message for InstanceGroupManagers.ResumeInstances. See the method description for details. +message ResumeInstancesInstanceGroupManagerRequest { + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManagersResumeInstancesRequest instance_group_managers_resume_instances_request_resource = 129015618 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone where the managed instance group is located. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionInstanceGroupManagers.ResumeInstances. See the method description for details. +message ResumeInstancesRegionInstanceGroupManagerRequest { + // Name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionInstanceGroupManagersResumeInstancesRequest region_instance_group_managers_resume_instances_request_resource = 463471031 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. message Route { + // [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + enum NextHopOrigin { + // A value indicating that the enum field is not set. + UNDEFINED_NEXT_HOP_ORIGIN = 0; + + EGP = 68590; + + IGP = 72434; + + INCOMPLETE = 11941214; + + } + // [Output only] The status of the route. enum RouteStatus { // A value indicating that the enum field is not set. @@ -26091,12 +26791,22 @@ message Route { // The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ optional string next_hop_instance = 393508247; + // [Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions. + optional uint32 next_hop_inter_region_cost = 24442003; + // The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. optional string next_hop_ip = 110319529; + // [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network. + optional uint32 next_hop_med = 198683530; + // The URL of the local network if it should handle matching packets. optional string next_hop_network = 262295788; + // [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + // Check the NextHopOrigin enum for the list of possible values. + optional string next_hop_origin = 48752808; + // [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. optional string next_hop_peering = 412682750; @@ -27851,7 +28561,7 @@ message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { // message SecurityPolicyRuleRateLimitOptions { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. enum EnforceOnKey { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY = 0; @@ -27872,6 +28582,8 @@ message SecurityPolicyRuleRateLimitOptions { TLS_JA3_FINGERPRINT = 327127933; + TLS_JA4_FINGERPRINT = 33724926; + USER_IP = 34009627; XFF_IP = 438707118; @@ -27887,7 +28599,7 @@ message SecurityPolicyRuleRateLimitOptions { // Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only. optional string conform_action = 517612367; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. // Check the EnforceOnKey enum for the list of possible values. optional string enforce_on_key = 416648956; @@ -27910,7 +28622,7 @@ message SecurityPolicyRuleRateLimitOptions { // message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. enum EnforceOnKeyType { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY_TYPE = 0; @@ -27931,6 +28643,8 @@ message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { TLS_JA3_FINGERPRINT = 327127933; + TLS_JA4_FINGERPRINT = 33724926; + USER_IP = 34009627; XFF_IP = 438707118; @@ -27940,7 +28654,7 @@ message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { // Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. optional string enforce_on_key_name = 132555246; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. // Check the EnforceOnKeyType enum for the list of possible values. optional string enforce_on_key_type = 132757149; @@ -29259,6 +29973,31 @@ message SetLabelsRegionInstantSnapshotRequest { } +// A request message for RegionSecurityPolicies.SetLabels. See the method description for details. +message SetLabelsRegionSecurityPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for SecurityPolicies.SetLabels. See the method description for details. message SetLabelsSecurityPolicyRequest { // The body resource for this request @@ -31018,6 +31757,56 @@ message StartInstanceRequest { } +// A request message for InstanceGroupManagers.StartInstances. See the method description for details. +message StartInstancesInstanceGroupManagerRequest { + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManagersStartInstancesRequest instance_group_managers_start_instances_request_resource = 261083819 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone where the managed instance group is located. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionInstanceGroupManagers.StartInstances. See the method description for details. +message StartInstancesRegionInstanceGroupManagerRequest { + // Name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionInstanceGroupManagersStartInstancesRequest region_instance_group_managers_start_instances_request_resource = 497012118 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for Instances.StartWithEncryptionKey. See the method description for details. message StartWithEncryptionKeyInstanceRequest { // Name of the instance resource to start. @@ -31226,6 +32015,56 @@ message StopInstanceRequest { } +// A request message for InstanceGroupManagers.StopInstances. See the method description for details. +message StopInstancesInstanceGroupManagerRequest { + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManagersStopInstancesRequest instance_group_managers_stop_instances_request_resource = 37556877 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone where the managed instance group is located. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionInstanceGroupManagers.StopInstances. See the method description for details. +message StopInstancesRegionInstanceGroupManagerRequest { + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionInstanceGroupManagersStopInstancesRequest region_instance_group_managers_stop_instances_request_resource = 270306882 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // Represents a zonal storage pool resource. message StoragePool { // Provisioning type of the byte capacity of the pool. @@ -31661,7 +32500,7 @@ message Subnetwork { } - // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -31672,6 +32511,9 @@ message Subnetwork { // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; + // Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another). + PEER_MIGRATION = 491902225; + // Regular user created or automatically created subnet. PRIVATE = 403485027; @@ -31786,7 +32628,7 @@ message Subnetwork { // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; - // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; @@ -32001,6 +32843,56 @@ message SuspendInstanceRequest { } +// A request message for InstanceGroupManagers.SuspendInstances. See the method description for details. +message SuspendInstancesInstanceGroupManagerRequest { + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManagersSuspendInstancesRequest instance_group_managers_suspend_instances_request_resource = 46679761 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the zone where the managed instance group is located. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionInstanceGroupManagers.SuspendInstances. See the method description for details. +message SuspendInstancesRegionInstanceGroupManagerRequest { + // Name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionInstanceGroupManagersSuspendInstancesRequest region_instance_group_managers_suspend_instances_request_resource = 214250236 [(google.api.field_behavior) = REQUIRED]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for Networks.SwitchToCustomMode. See the method description for details. message SwitchToCustomModeNetworkRequest { // Name of the network to be updated. @@ -32273,7 +33165,7 @@ message TargetHttpsProxiesSetSslCertificatesRequest { } -// Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of GCP HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. +// Represents a Target HTTPS Proxy resource. Google Compute Engine has two Target HTTPS Proxy resources: * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. * targetHttpProxies are used by global external Application Load Balancers, classic Application Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional external Application Load Balancers. Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. For more information, read Using Target Proxies and Forwarding rule concepts. message TargetHttpsProxy { // Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, ENABLE, or DISABLE. - When quic-override is set to NONE, Google manages whether QUIC is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - If the quic-override flag is not specified, NONE is implied. enum QuicOverride { @@ -32305,6 +33197,9 @@ message TargetHttpsProxy { // This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query parameters. Requests that send Early Data with non-idempotent HTTP methods or with query parameters will be rejected with a HTTP 425. STRICT = 308826825; + // This enables TLS 1.3 Early Data for requests with any HTTP method including non-idempotent methods list POST. This mode does not enforce any other limitations. This may be valuable for gRPC use cases. However, we do not recommend this method unless you have evaluated your security stance and mitigated the risk of replay attacks using other mechanisms. + UNRESTRICTED = 457266100; + } // Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization policy. Refer to the AuthorizationPolicy resource for additional details. authorizationPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. Note: This field currently has no impact. @@ -34221,13 +35116,13 @@ message UrlMap { // defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers. optional CustomErrorResponsePolicy default_custom_error_response_policy = 81266089; - // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any defaultRouteAction.weightedBackendServices. Conversely, if defaultRouteAction specifies any defaultRouteAction.weightedBackendServices, defaultService must not be specified. If defaultService is specified, then set either defaultUrlRedirect , or defaultRouteAction.weightedBackendService Don't set both. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. + // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional string default_service = 370242231; - // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. + // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; // An optional description of this resource. Provide this property when you create the resource. @@ -34438,7 +35333,7 @@ message UsableSubnetwork { } - // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -34449,6 +35344,9 @@ message UsableSubnetwork { // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; + // Subnetwork will be used for Migration from one peered VPC to another. (a transient state of subnetwork while migrating resources from one project to another). + PEER_MIGRATION = 491902225; + // Regular user created or automatically created subnet. PRIVATE = 403485027; @@ -34511,7 +35409,7 @@ message UsableSubnetwork { // Network URL. optional string network = 232872494; - // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PEER_MIGRATION or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to PEER_MIGRATION is used for subnet migration from one peered VPC to another. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; @@ -35209,6 +36107,9 @@ message Warning { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; + // Quota information is not available to client requests (e.g: regions.list). + QUOTA_INFO_UNAVAILABLE = 304294182; + // The user attempted to use a resource that requires a TOS they have not accepted. REQUIRED_TOS_AGREEMENT = 3745539; @@ -35314,6 +36215,9 @@ message Warnings { // Success is reported, but some results may be missing due to errors PARTIAL_SUCCESS = 39966469; + // Quota information is not available to client requests (e.g: regions.list). + QUOTA_INFO_UNAVAILABLE = 304294182; + // The user attempted to use a resource that requires a TOS they have not accepted. REQUIRED_TOS_AGREEMENT = 3745539; @@ -37388,6 +38292,16 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } + // Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + rpc ResumeInstances(ResumeInstancesInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_managers_resume_instances_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/resumeInstances" + }; + option (google.api.method_signature) = "project,zone,instance_group_manager,instance_group_managers_resume_instances_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. rpc SetInstanceTemplate(SetInstanceTemplateInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { @@ -37408,6 +38322,36 @@ service InstanceGroupManagers { option (google.cloud.operation_service) = "ZoneOperations"; } + // Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + rpc StartInstances(StartInstancesInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_managers_start_instances_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/startInstances" + }; + option (google.api.method_signature) = "project,zone,instance_group_manager,instance_group_managers_start_instances_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + rpc StopInstances(StopInstancesInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_managers_stop_instances_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/stopInstances" + }; + option (google.api.method_signature) = "project,zone,instance_group_manager,instance_group_managers_stop_instances_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + rpc SuspendInstances(SuspendInstancesInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_managers_suspend_instances_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/suspendInstances" + }; + option (google.api.method_signature) = "project,zone,instance_group_manager,instance_group_managers_suspend_instances_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. rpc UpdatePerInstanceConfigs(UpdatePerInstanceConfigsInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { @@ -38981,6 +39925,34 @@ service NetworkFirewallPolicies { } +// The NetworkProfiles API. +service NetworkProfiles { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute.readonly," + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Returns the specified network profile. + rpc Get(GetNetworkProfileRequest) returns (NetworkProfile) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/networkProfiles/{network_profile}" + }; + option (google.api.method_signature) = "project,network_profile"; + } + + // Retrieves a list of network profiles available to the specified project. + rpc List(ListNetworkProfilesRequest) returns (NetworkProfilesListResponse) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/networkProfiles" + }; + option (google.api.method_signature) = "project"; + } + +} + // The Networks API. service Networks { option (google.api.default_host) = @@ -40445,6 +41417,16 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } + // Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request. + rpc ResumeInstances(ResumeInstancesRegionInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "region_instance_group_managers_resume_instances_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resumeInstances" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,region_instance_group_managers_resume_instances_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + // Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected. rpc SetInstanceTemplate(SetInstanceTemplateRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { @@ -40465,6 +41447,36 @@ service RegionInstanceGroupManagers { option (google.cloud.operation_service) = "RegionOperations"; } + // Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request. + rpc StartInstances(StartInstancesRegionInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "region_instance_group_managers_start_instances_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/startInstances" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,region_instance_group_managers_start_instances_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request. + rpc StopInstances(StopInstancesRegionInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "region_instance_group_managers_stop_instances_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/stopInstances" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,region_instance_group_managers_stop_instances_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request. + rpc SuspendInstances(SuspendInstancesRegionInstanceGroupManagerRequest) returns (Operation) { + option (google.api.http) = { + body: "region_instance_group_managers_suspend_instances_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/suspendInstances" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,region_instance_group_managers_suspend_instances_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + // Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. rpc UpdatePerInstanceConfigs(UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest) returns (Operation) { option (google.api.http) = { @@ -41090,6 +42102,16 @@ service RegionSecurityPolicies { option (google.cloud.operation_service) = "RegionOperations"; } + // Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + rpc SetLabels(SetLabelsRegionSecurityPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "region_set_labels_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels" + }; + option (google.api.method_signature) = "project,region,resource,region_set_labels_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionSslCertificates API. diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstances.java new file mode 100644 index 000000000000..a0b959aaa30b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_ResumeInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncResumeInstances { + + public static void main(String[] args) throws Exception { + asyncResumeInstances(); + } + + public static void asyncResumeInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + ResumeInstancesInstanceGroupManagerRequest request = + ResumeInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersResumeInstancesRequestResource( + InstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = + instanceGroupManagersClient.resumeInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_ResumeInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.java new file mode 100644 index 000000000000..1f093e9da0dd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_ResumeInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; + +public class AsyncResumeInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncResumeInstancesLRO(); + } + + public static void asyncResumeInstancesLRO() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + ResumeInstancesInstanceGroupManagerRequest request = + ResumeInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersResumeInstancesRequestResource( + InstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + instanceGroupManagersClient.resumeInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_ResumeInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstances.java new file mode 100644 index 000000000000..3b53afa58563 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_ResumeInstances_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ResumeInstancesInstanceGroupManagerRequest; + +public class SyncResumeInstances { + + public static void main(String[] args) throws Exception { + syncResumeInstances(); + } + + public static void syncResumeInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + ResumeInstancesInstanceGroupManagerRequest request = + ResumeInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersResumeInstancesRequestResource( + InstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = instanceGroupManagersClient.resumeInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_ResumeInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest.java new file mode 100644 index 000000000000..30a9e002589b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_ResumeInstances_StringStringStringInstancegroupmanagersresumeinstancesrequest_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.Operation; + +public class SyncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest { + + public static void main(String[] args) throws Exception { + syncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest(); + } + + public static void + syncResumeInstancesStringStringStringInstancegroupmanagersresumeinstancesrequest() + 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instanceGroupManager = "instanceGroupManager-388242077"; + InstanceGroupManagersResumeInstancesRequest + instanceGroupManagersResumeInstancesRequestResource = + InstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + Operation response = + instanceGroupManagersClient + .resumeInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersResumeInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_ResumeInstances_StringStringStringInstancegroupmanagersresumeinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstances.java new file mode 100644 index 000000000000..82fd77958172 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StartInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncStartInstances { + + public static void main(String[] args) throws Exception { + asyncStartInstances(); + } + + public static void asyncStartInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StartInstancesInstanceGroupManagerRequest request = + StartInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStartInstancesRequestResource( + InstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = + instanceGroupManagersClient.startInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StartInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstancesLRO.java new file mode 100644 index 000000000000..e826b81b2885 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/AsyncStartInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StartInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; + +public class AsyncStartInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncStartInstancesLRO(); + } + + public static void asyncStartInstancesLRO() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StartInstancesInstanceGroupManagerRequest request = + StartInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStartInstancesRequestResource( + InstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + instanceGroupManagersClient.startInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StartInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstances.java new file mode 100644 index 000000000000..23ede2a64e53 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StartInstances_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.StartInstancesInstanceGroupManagerRequest; + +public class SyncStartInstances { + + public static void main(String[] args) throws Exception { + syncStartInstances(); + } + + public static void syncStartInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StartInstancesInstanceGroupManagerRequest request = + StartInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStartInstancesRequestResource( + InstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = instanceGroupManagersClient.startInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StartInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest.java new file mode 100644 index 000000000000..f37e4bd74f88 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/startinstances/SyncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StartInstances_StringStringStringInstancegroupmanagersstartinstancesrequest_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.Operation; + +public class SyncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest { + + public static void main(String[] args) throws Exception { + syncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest(); + } + + public static void + syncStartInstancesStringStringStringInstancegroupmanagersstartinstancesrequest() + 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instanceGroupManager = "instanceGroupManager-388242077"; + InstanceGroupManagersStartInstancesRequest + instanceGroupManagersStartInstancesRequestResource = + InstanceGroupManagersStartInstancesRequest.newBuilder().build(); + Operation response = + instanceGroupManagersClient + .startInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStartInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StartInstances_StringStringStringInstancegroupmanagersstartinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstances.java new file mode 100644 index 000000000000..20dafa5ad515 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StopInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncStopInstances { + + public static void main(String[] args) throws Exception { + asyncStopInstances(); + } + + public static void asyncStopInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StopInstancesInstanceGroupManagerRequest request = + StopInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStopInstancesRequestResource( + InstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = + instanceGroupManagersClient.stopInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StopInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstancesLRO.java new file mode 100644 index 000000000000..5c47f82de045 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/AsyncStopInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StopInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; + +public class AsyncStopInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncStopInstancesLRO(); + } + + public static void asyncStopInstancesLRO() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StopInstancesInstanceGroupManagerRequest request = + StopInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStopInstancesRequestResource( + InstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + instanceGroupManagersClient.stopInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StopInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstances.java new file mode 100644 index 000000000000..61edf359ee60 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StopInstances_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.StopInstancesInstanceGroupManagerRequest; + +public class SyncStopInstances { + + public static void main(String[] args) throws Exception { + syncStopInstances(); + } + + public static void syncStopInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + StopInstancesInstanceGroupManagerRequest request = + StopInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersStopInstancesRequestResource( + InstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = instanceGroupManagersClient.stopInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StopInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest.java new file mode 100644 index 000000000000..24443903e5d9 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_StopInstances_StringStringStringInstancegroupmanagersstopinstancesrequest_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.Operation; + +public class SyncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest { + + public static void main(String[] args) throws Exception { + syncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest(); + } + + public static void syncStopInstancesStringStringStringInstancegroupmanagersstopinstancesrequest() + 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instanceGroupManager = "instanceGroupManager-388242077"; + InstanceGroupManagersStopInstancesRequest instanceGroupManagersStopInstancesRequestResource = + InstanceGroupManagersStopInstancesRequest.newBuilder().build(); + Operation response = + instanceGroupManagersClient + .stopInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersStopInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_StopInstances_StringStringStringInstancegroupmanagersstopinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstances.java new file mode 100644 index 000000000000..e2ec9f497a2d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_SuspendInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncSuspendInstances { + + public static void main(String[] args) throws Exception { + asyncSuspendInstances(); + } + + public static void asyncSuspendInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + SuspendInstancesInstanceGroupManagerRequest request = + SuspendInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersSuspendInstancesRequestResource( + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = + instanceGroupManagersClient.suspendInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_SuspendInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.java new file mode 100644 index 000000000000..35f029a40382 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_SuspendInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; + +public class AsyncSuspendInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncSuspendInstancesLRO(); + } + + public static void asyncSuspendInstancesLRO() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + SuspendInstancesInstanceGroupManagerRequest request = + SuspendInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersSuspendInstancesRequestResource( + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + instanceGroupManagersClient.suspendInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_SuspendInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstances.java new file mode 100644 index 000000000000..5b795bf47cfe --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstances.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_SuspendInstances_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.SuspendInstancesInstanceGroupManagerRequest; + +public class SyncSuspendInstances { + + public static void main(String[] args) throws Exception { + syncSuspendInstances(); + } + + public static void syncSuspendInstances() 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + SuspendInstancesInstanceGroupManagerRequest request = + SuspendInstancesInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagersSuspendInstancesRequestResource( + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = instanceGroupManagersClient.suspendInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_SuspendInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest.java new file mode 100644 index 000000000000..6e3dcc63c510 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_InstanceGroupManagers_SuspendInstances_StringStringStringInstancegroupmanagerssuspendinstancesrequest_sync] +import com.google.cloud.compute.v1.InstanceGroupManagersClient; +import com.google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.Operation; + +public class SyncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest { + + public static void main(String[] args) throws Exception { + syncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest(); + } + + public static void + syncSuspendInstancesStringStringStringInstancegroupmanagerssuspendinstancesrequest() + 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 (InstanceGroupManagersClient instanceGroupManagersClient = + InstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instanceGroupManager = "instanceGroupManager-388242077"; + InstanceGroupManagersSuspendInstancesRequest + instanceGroupManagersSuspendInstancesRequestResource = + InstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + Operation response = + instanceGroupManagersClient + .suspendInstancesAsync( + project, + zone, + instanceGroupManager, + instanceGroupManagersSuspendInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_InstanceGroupManagers_SuspendInstances_StringStringStringInstancegroupmanagerssuspendinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..585c4827cee0 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.NetworkProfilesClient; +import com.google.cloud.compute.v1.NetworkProfilesSettings; +import com.google.cloud.compute.v1.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 + NetworkProfilesSettings networkProfilesSettings = + NetworkProfilesSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + NetworkProfilesClient networkProfilesClient = + NetworkProfilesClient.create(networkProfilesSettings); + } +} +// [END compute_v1_generated_NetworkProfiles_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ecf8f1f385cf --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.NetworkProfilesClient; +import com.google.cloud.compute.v1.NetworkProfilesSettings; +import com.google.cloud.compute.v1.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 + NetworkProfilesSettings networkProfilesSettings = + NetworkProfilesSettings.newBuilder().setEndpoint(myEndpoint).build(); + NetworkProfilesClient networkProfilesClient = + NetworkProfilesClient.create(networkProfilesSettings); + } +} +// [END compute_v1_generated_NetworkProfiles_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/AsyncGet.java new file mode 100644 index 000000000000..034df79ac615 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/AsyncGet.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetNetworkProfileRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + GetNetworkProfileRequest request = + GetNetworkProfileRequest.newBuilder() + .setNetworkProfile("networkProfile-2013096037") + .setProject("project-309310695") + .build(); + ApiFuture future = networkProfilesClient.getCallable().futureCall(request); + // Do something. + NetworkProfile response = future.get(); + } + } +} +// [END compute_v1_generated_NetworkProfiles_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGet.java new file mode 100644 index 000000000000..cdd93eb46d0e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGet.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_Get_sync] +import com.google.cloud.compute.v1.GetNetworkProfileRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + GetNetworkProfileRequest request = + GetNetworkProfileRequest.newBuilder() + .setNetworkProfile("networkProfile-2013096037") + .setProject("project-309310695") + .build(); + NetworkProfile response = networkProfilesClient.get(request); + } + } +} +// [END compute_v1_generated_NetworkProfiles_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGetStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGetStringString.java new file mode 100644 index 000000000000..a18a2b071f11 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/get/SyncGetStringString.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_Get_StringString_sync] +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class SyncGetStringString { + + public static void main(String[] args) throws Exception { + syncGetStringString(); + } + + public static void syncGetStringString() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + String project = "project-309310695"; + String networkProfile = "networkProfile-2013096037"; + NetworkProfile response = networkProfilesClient.get(project, networkProfile); + } + } +} +// [END compute_v1_generated_NetworkProfiles_Get_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncList.java new file mode 100644 index 000000000000..79860399a281 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncList.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + ListNetworkProfilesRequest request = + ListNetworkProfilesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + networkProfilesClient.listPagedCallable().futureCall(request); + // Do something. + for (NetworkProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkProfiles_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncListPaged.java new file mode 100644 index 000000000000..7da6563ca8c4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/AsyncListPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_List_Paged_async] +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; +import com.google.cloud.compute.v1.NetworkProfilesListResponse; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + ListNetworkProfilesRequest request = + ListNetworkProfilesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + while (true) { + NetworkProfilesListResponse response = networkProfilesClient.listCallable().call(request); + for (NetworkProfile element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_NetworkProfiles_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncList.java new file mode 100644 index 000000000000..7ea029390573 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncList.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_List_sync] +import com.google.cloud.compute.v1.ListNetworkProfilesRequest; +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + ListNetworkProfilesRequest request = + ListNetworkProfilesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + for (NetworkProfile element : networkProfilesClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkProfiles_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncListString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncListString.java new file mode 100644 index 000000000000..2ceb0567c116 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofiles/list/SyncListString.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfiles_List_String_sync] +import com.google.cloud.compute.v1.NetworkProfile; +import com.google.cloud.compute.v1.NetworkProfilesClient; + +public class SyncListString { + + public static void main(String[] args) throws Exception { + syncListString(); + } + + public static void syncListString() 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 (NetworkProfilesClient networkProfilesClient = NetworkProfilesClient.create()) { + String project = "project-309310695"; + for (NetworkProfile element : networkProfilesClient.list(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkProfiles_List_String_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofilessettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofilessettings/get/SyncGet.java new file mode 100644 index 000000000000..88347540bfc4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkprofilessettings/get/SyncGet.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.compute.v1.samples; + +// [START compute_v1_generated_NetworkProfilesSettings_Get_sync] +import com.google.cloud.compute.v1.NetworkProfilesSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + NetworkProfilesSettings.Builder networkProfilesSettingsBuilder = + NetworkProfilesSettings.newBuilder(); + networkProfilesSettingsBuilder + .getSettings() + .setRetrySettings( + networkProfilesSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + NetworkProfilesSettings networkProfilesSettings = networkProfilesSettingsBuilder.build(); + } +} +// [END compute_v1_generated_NetworkProfilesSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstances.java new file mode 100644 index 000000000000..cc842c3140de --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncResumeInstances { + + public static void main(String[] args) throws Exception { + asyncResumeInstances(); + } + + public static void asyncResumeInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + ResumeInstancesRegionInstanceGroupManagerRequest request = + ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersResumeInstancesRequestResource( + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstanceGroupManagersClient.resumeInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.java new file mode 100644 index 000000000000..76c2827e42e1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/AsyncResumeInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; + +public class AsyncResumeInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncResumeInstancesLRO(); + } + + public static void asyncResumeInstancesLRO() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + ResumeInstancesRegionInstanceGroupManagerRequest request = + ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersResumeInstancesRequestResource( + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstanceGroupManagersClient.resumeInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstances.java new file mode 100644 index 000000000000..8a507054b09c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest; +import com.google.cloud.compute.v1.ResumeInstancesRegionInstanceGroupManagerRequest; + +public class SyncResumeInstances { + + public static void main(String[] args) throws Exception { + syncResumeInstances(); + } + + public static void syncResumeInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + ResumeInstancesRegionInstanceGroupManagerRequest request = + ResumeInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersResumeInstancesRequestResource( + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Operation response = regionInstanceGroupManagersClient.resumeInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest.java new file mode 100644 index 000000000000..d633bfc06a84 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/resumeinstances/SyncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_StringStringStringRegioninstancegroupmanagersresumeinstancesrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest; + +public +class SyncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest { + + public static void main(String[] args) throws Exception { + syncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest(); + } + + public static void + syncResumeInstancesStringStringStringRegioninstancegroupmanagersresumeinstancesrequest() + 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + RegionInstanceGroupManagersResumeInstancesRequest + regionInstanceGroupManagersResumeInstancesRequestResource = + RegionInstanceGroupManagersResumeInstancesRequest.newBuilder().build(); + Operation response = + regionInstanceGroupManagersClient + .resumeInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersResumeInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_StringStringStringRegioninstancegroupmanagersresumeinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstances.java new file mode 100644 index 000000000000..18a8b509a1ba --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StartInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncStartInstances { + + public static void main(String[] args) throws Exception { + asyncStartInstances(); + } + + public static void asyncStartInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StartInstancesRegionInstanceGroupManagerRequest request = + StartInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStartInstancesRequestResource( + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstanceGroupManagersClient.startInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StartInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstancesLRO.java new file mode 100644 index 000000000000..cd29a564a159 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/AsyncStartInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StartInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; + +public class AsyncStartInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncStartInstancesLRO(); + } + + public static void asyncStartInstancesLRO() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StartInstancesRegionInstanceGroupManagerRequest request = + StartInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStartInstancesRequestResource( + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstanceGroupManagersClient.startInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StartInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstances.java new file mode 100644 index 000000000000..c1d78b7cc143 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StartInstances_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest; +import com.google.cloud.compute.v1.StartInstancesRegionInstanceGroupManagerRequest; + +public class SyncStartInstances { + + public static void main(String[] args) throws Exception { + syncStartInstances(); + } + + public static void syncStartInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StartInstancesRegionInstanceGroupManagerRequest request = + StartInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStartInstancesRequestResource( + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Operation response = regionInstanceGroupManagersClient.startInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StartInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest.java new file mode 100644 index 000000000000..e87cb7d9cf63 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/startinstances/SyncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StartInstances_StringStringStringRegioninstancegroupmanagersstartinstancesrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest; + +public class SyncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest { + + public static void main(String[] args) throws Exception { + syncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest(); + } + + public static void + syncStartInstancesStringStringStringRegioninstancegroupmanagersstartinstancesrequest() + 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + RegionInstanceGroupManagersStartInstancesRequest + regionInstanceGroupManagersStartInstancesRequestResource = + RegionInstanceGroupManagersStartInstancesRequest.newBuilder().build(); + Operation response = + regionInstanceGroupManagersClient + .startInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStartInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StartInstances_StringStringStringRegioninstancegroupmanagersstartinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstances.java new file mode 100644 index 000000000000..2b2f396f4168 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StopInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncStopInstances { + + public static void main(String[] args) throws Exception { + asyncStopInstances(); + } + + public static void asyncStopInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StopInstancesRegionInstanceGroupManagerRequest request = + StopInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStopInstancesRequestResource( + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstanceGroupManagersClient.stopInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StopInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstancesLRO.java new file mode 100644 index 000000000000..dafaad8da8bd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/AsyncStopInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StopInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; + +public class AsyncStopInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncStopInstancesLRO(); + } + + public static void asyncStopInstancesLRO() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StopInstancesRegionInstanceGroupManagerRequest request = + StopInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStopInstancesRequestResource( + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstanceGroupManagersClient.stopInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StopInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstances.java new file mode 100644 index 000000000000..215f49893e17 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StopInstances_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest; +import com.google.cloud.compute.v1.StopInstancesRegionInstanceGroupManagerRequest; + +public class SyncStopInstances { + + public static void main(String[] args) throws Exception { + syncStopInstances(); + } + + public static void syncStopInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + StopInstancesRegionInstanceGroupManagerRequest request = + StopInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersStopInstancesRequestResource( + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Operation response = regionInstanceGroupManagersClient.stopInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StopInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest.java new file mode 100644 index 000000000000..e17a0d347b23 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/stopinstances/SyncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_StopInstances_StringStringStringRegioninstancegroupmanagersstopinstancesrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest; + +public class SyncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest { + + public static void main(String[] args) throws Exception { + syncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest(); + } + + public static void + syncStopInstancesStringStringStringRegioninstancegroupmanagersstopinstancesrequest() + 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + RegionInstanceGroupManagersStopInstancesRequest + regionInstanceGroupManagersStopInstancesRequestResource = + RegionInstanceGroupManagersStopInstancesRequest.newBuilder().build(); + Operation response = + regionInstanceGroupManagersClient + .stopInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersStopInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_StopInstances_StringStringStringRegioninstancegroupmanagersstopinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstances.java new file mode 100644 index 000000000000..0d26a1adc710 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; +import com.google.longrunning.Operation; + +public class AsyncSuspendInstances { + + public static void main(String[] args) throws Exception { + asyncSuspendInstances(); + } + + public static void asyncSuspendInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + SuspendInstancesRegionInstanceGroupManagerRequest request = + SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersSuspendInstancesRequestResource( + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstanceGroupManagersClient.suspendInstancesCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.java new file mode 100644 index 000000000000..b44c86d25d11 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/AsyncSuspendInstancesLRO.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; + +public class AsyncSuspendInstancesLRO { + + public static void main(String[] args) throws Exception { + asyncSuspendInstancesLRO(); + } + + public static void asyncSuspendInstancesLRO() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + SuspendInstancesRegionInstanceGroupManagerRequest request = + SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersSuspendInstancesRequestResource( + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstanceGroupManagersClient.suspendInstancesOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstances.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstances.java new file mode 100644 index 000000000000..242032ea37cc --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstances.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest; +import com.google.cloud.compute.v1.SuspendInstancesRegionInstanceGroupManagerRequest; + +public class SyncSuspendInstances { + + public static void main(String[] args) throws Exception { + syncSuspendInstances(); + } + + public static void syncSuspendInstances() 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + SuspendInstancesRegionInstanceGroupManagerRequest request = + SuspendInstancesRegionInstanceGroupManagerRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionInstanceGroupManagersSuspendInstancesRequestResource( + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Operation response = regionInstanceGroupManagersClient.suspendInstancesAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest.java new file mode 100644 index 000000000000..e8eb61d18758 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagers/suspendinstances/SyncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest.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.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_StringStringStringRegioninstancegroupmanagerssuspendinstancesrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest; + +public +class SyncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest { + + public static void main(String[] args) throws Exception { + syncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest(); + } + + public static void + syncSuspendInstancesStringStringStringRegioninstancegroupmanagerssuspendinstancesrequest() + 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 (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = + RegionInstanceGroupManagersClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + RegionInstanceGroupManagersSuspendInstancesRequest + regionInstanceGroupManagersSuspendInstancesRequestResource = + RegionInstanceGroupManagersSuspendInstancesRequest.newBuilder().build(); + Operation response = + regionInstanceGroupManagersClient + .suspendInstancesAsync( + project, + region, + instanceGroupManager, + regionInstanceGroupManagersSuspendInstancesRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_StringStringStringRegioninstancegroupmanagerssuspendinstancesrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabels.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabels.java new file mode 100644 index 000000000000..7bb6a745a857 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabels.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.compute.v1.samples; + +// [START compute_v1_generated_RegionSecurityPolicies_SetLabels_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionSecurityPoliciesClient; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; +import com.google.longrunning.Operation; + +public class AsyncSetLabels { + + public static void main(String[] args) throws Exception { + asyncSetLabels(); + } + + public static void asyncSetLabels() 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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient = + RegionSecurityPoliciesClient.create()) { + SetLabelsRegionSecurityPolicyRequest request = + SetLabelsRegionSecurityPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + ApiFuture future = + regionSecurityPoliciesClient.setLabelsCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSecurityPolicies_SetLabels_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabelsLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabelsLRO.java new file mode 100644 index 000000000000..0e261213e1c1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/AsyncSetLabelsLRO.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.compute.v1.samples; + +// [START compute_v1_generated_RegionSecurityPolicies_SetLabels_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSecurityPoliciesClient; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; + +public class AsyncSetLabelsLRO { + + public static void main(String[] args) throws Exception { + asyncSetLabelsLRO(); + } + + public static void asyncSetLabelsLRO() 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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient = + RegionSecurityPoliciesClient.create()) { + SetLabelsRegionSecurityPolicyRequest request = + SetLabelsRegionSecurityPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + OperationFuture future = + regionSecurityPoliciesClient.setLabelsOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSecurityPolicies_SetLabels_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabels.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabels.java new file mode 100644 index 000000000000..97e1cace638c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabels.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.compute.v1.samples; + +// [START compute_v1_generated_RegionSecurityPolicies_SetLabels_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSecurityPoliciesClient; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSecurityPolicyRequest; + +public class SyncSetLabels { + + public static void main(String[] args) throws Exception { + syncSetLabels(); + } + + public static void syncSetLabels() 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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient = + RegionSecurityPoliciesClient.create()) { + SetLabelsRegionSecurityPolicyRequest request = + SetLabelsRegionSecurityPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + Operation response = regionSecurityPoliciesClient.setLabelsAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSecurityPolicies_SetLabels_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java new file mode 100644 index 000000000000..c69e56acf76e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsecuritypolicies/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.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.compute.v1.samples; + +// [START compute_v1_generated_RegionSecurityPolicies_SetLabels_StringStringStringRegionsetlabelsrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSecurityPoliciesClient; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; + +public class SyncSetLabelsStringStringStringRegionsetlabelsrequest { + + public static void main(String[] args) throws Exception { + syncSetLabelsStringStringStringRegionsetlabelsrequest(); + } + + public static void syncSetLabelsStringStringStringRegionsetlabelsrequest() 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 (RegionSecurityPoliciesClient regionSecurityPoliciesClient = + RegionSecurityPoliciesClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + Operation response = + regionSecurityPoliciesClient + .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionSecurityPolicies_SetLabels_StringStringStringRegionsetlabelsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/networkprofilesstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/networkprofilesstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..5e9fbb06a83c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/networkprofilesstubsettings/get/SyncGet.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.compute.v1.stub.samples; + +// [START compute_v1_generated_NetworkProfilesStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.NetworkProfilesStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + NetworkProfilesStubSettings.Builder networkProfilesSettingsBuilder = + NetworkProfilesStubSettings.newBuilder(); + networkProfilesSettingsBuilder + .getSettings() + .setRetrySettings( + networkProfilesSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + NetworkProfilesStubSettings networkProfilesSettings = networkProfilesSettingsBuilder.build(); + } +} +// [END compute_v1_generated_NetworkProfilesStubSettings_Get_sync] diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index ba04ec0ed136..ae755f740dbb 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.39.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.40.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index 5ba2f46acf71..856751fafb28 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -575,6 +575,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java index 97b7780dbdfe..af46f7000909 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,58 +148,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\036\n\021oidc_claims_token\030\002 \001(\tB\003\340A\003\022/\n\016part" + "ial_errors\030\003 \003(\0132\022.google.rpc.StatusB\003\340A" + "\003\"3\n\016GcpCredentials\022!\n\031service_account_i" - + "d_tokens\030\002 \003(\t\"\204\001\n\014TokenOptions\022\025\n\010audie" + + "d_tokens\030\002 \003(\t\"\246\005\n\014TokenOptions\022v\n\032aws_p" + + "rincipal_tags_options\030\004 \001(\0132K.google.clo" + + "ud.confidentialcomputing.v1.TokenOptions" + + ".AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n\010audie" + "nce\030\001 \001(\tB\003\340A\001\022\022\n\005nonce\030\002 \003(\tB\003\340A\001\022I\n\nto" + "ken_type\030\003 \001(\01620.google.cloud.confidenti" - + "alcomputing.v1.TokenTypeB\003\340A\001\"\217\003\n\016TpmAtt" - + "estation\022K\n\006quotes\030\001 \003(\0132;.google.cloud." - + "confidentialcomputing.v1.TpmAttestation." - + "Quote\022\025\n\rtcg_event_log\030\002 \001(\014\022\033\n\023canonica" - + "l_event_log\030\003 \001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\nce" - + "rt_chain\030\005 \003(\014\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 " - + "\001(\005\022^\n\npcr_values\030\002 \003(\0132J.google.cloud.c" - + "onfidentialcomputing.v1.TpmAttestation.Q" - + "uote.PcrValuesEntry\022\021\n\traw_quote\030\003 \001(\014\022\025" - + "\n\rraw_signature\030\004 \001(\014\0320\n\016PcrValuesEntry\022" - + "\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001\"j\n\025Confi" - + "dentialSpaceInfo\022Q\n\017signed_entities\030\001 \003(" - + "\01323.google.cloud.confidentialcomputing.v" - + "1.SignedEntityB\003\340A\001\"w\n\014SignedEntity\022g\n\032c" - + "ontainer_image_signatures\030\001 \003(\0132>.google" - + ".cloud.confidentialcomputing.v1.Containe" - + "rImageSignatureB\003\340A\001\"\257\001\n\027ContainerImageS" - + "ignature\022\024\n\007payload\030\001 \001(\014B\003\340A\001\022\026\n\tsignat" - + "ure\030\002 \001(\014B\003\340A\001\022\027\n\npublic_key\030\003 \001(\014B\003\340A\001\022" - + "M\n\007sig_alg\030\004 \001(\01627.google.cloud.confiden" - + "tialcomputing.v1.SigningAlgorithmB\003\340A\001*\177" - + "\n\020SigningAlgorithm\022!\n\035SIGNING_ALGORITHM_" - + "UNSPECIFIED\020\000\022\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026" - + "RSASSA_PKCS1V15_SHA256\020\002\022\025\n\021ECDSA_P256_S" - + "HA256\020\003*l\n\tTokenType\022\032\n\026TOKEN_TYPE_UNSPE" - + "CIFIED\020\000\022\023\n\017TOKEN_TYPE_OIDC\020\001\022\022\n\016TOKEN_T" - + "YPE_PKI\020\002\022\032\n\026TOKEN_TYPE_LIMITED_AWS\020\0032\267\004" - + "\n\025ConfidentialComputing\022\330\001\n\017CreateChalle" - + "nge\022=.google.cloud.confidentialcomputing" - + ".v1.CreateChallengeRequest\0320.google.clou" - + "d.confidentialcomputing.v1.Challenge\"T\332A" - + "\020parent,challenge\202\323\344\223\002;\"./v1/{parent=pro" - + "jects/*/locations/*}/challenges:\tchallen" - + "ge\022\350\001\n\021VerifyAttestation\022?.google.cloud." - + "confidentialcomputing.v1.VerifyAttestati" - + "onRequest\032@.google.cloud.confidentialcom" - + "puting.v1.VerifyAttestationResponse\"P\202\323\344" - + "\223\002J\"E/v1/{challenge=projects/*/locations" - + "/*/challenges/*}:verifyAttestation:\001*\032X\312" - + "A$confidentialcomputing.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\227\002\n)com.google.cloud.confidentia" - + "lcomputing.v1B\014ServiceProtoP\001Z_cloud.goo" - + "gle.com/go/confidentialcomputing/apiv1/c" - + "onfidentialcomputingpb;confidentialcompu" - + "tingpb\252\002%Google.Cloud.ConfidentialComput" - + "ing.V1\312\002%Google\\Cloud\\ConfidentialComput" - + "ing\\V1\352\002(Google::Cloud::ConfidentialComp" - + "uting::V1b\006proto3" + + "alcomputing.v1.TokenTypeB\003\340A\001\032\221\003\n\027AwsPri" + + "ncipalTagsOptions\022\205\001\n\026allowed_principal_" + + "tags\030\001 \001(\0132`.google.cloud.confidentialco" + + "mputing.v1.TokenOptions.AwsPrincipalTags" + + "Options.AllowedPrincipalTagsB\003\340A\001\032\355\001\n\024Al" + + "lowedPrincipalTags\022\242\001\n\032container_image_s" + + "ignatures\030\001 \001(\0132y.google.cloud.confident" + + "ialcomputing.v1.TokenOptions.AwsPrincipa" + + "lTagsOptions.AllowedPrincipalTags.Contai" + + "nerImageSignaturesB\003\340A\001\0320\n\030ContainerImag" + + "eSignatures\022\024\n\007key_ids\030\001 \003(\tB\003\340A\001B\024\n\022tok" + + "en_type_options\"\217\003\n\016TpmAttestation\022K\n\006qu" + + "otes\030\001 \003(\0132;.google.cloud.confidentialco" + + "mputing.v1.TpmAttestation.Quote\022\025\n\rtcg_e" + + "vent_log\030\002 \001(\014\022\033\n\023canonical_event_log\030\003 " + + "\001(\014\022\017\n\007ak_cert\030\004 \001(\014\022\022\n\ncert_chain\030\005 \003(\014" + + "\032\326\001\n\005Quote\022\021\n\thash_algo\030\001 \001(\005\022^\n\npcr_val" + + "ues\030\002 \003(\0132J.google.cloud.confidentialcom" + + "puting.v1.TpmAttestation.Quote.PcrValues" + + "Entry\022\021\n\traw_quote\030\003 \001(\014\022\025\n\rraw_signatur" + + "e\030\004 \001(\014\0320\n\016PcrValuesEntry\022\013\n\003key\030\001 \001(\005\022\r" + + "\n\005value\030\002 \001(\014:\0028\001\"j\n\025ConfidentialSpaceIn" + + "fo\022Q\n\017signed_entities\030\001 \003(\01323.google.clo" + + "ud.confidentialcomputing.v1.SignedEntity" + + "B\003\340A\001\"w\n\014SignedEntity\022g\n\032container_image" + + "_signatures\030\001 \003(\0132>.google.cloud.confide" + + "ntialcomputing.v1.ContainerImageSignatur" + + "eB\003\340A\001\"\257\001\n\027ContainerImageSignature\022\024\n\007pa" + + "yload\030\001 \001(\014B\003\340A\001\022\026\n\tsignature\030\002 \001(\014B\003\340A\001" + + "\022\027\n\npublic_key\030\003 \001(\014B\003\340A\001\022M\n\007sig_alg\030\004 \001" + + "(\01627.google.cloud.confidentialcomputing." + + "v1.SigningAlgorithmB\003\340A\001*\177\n\020SigningAlgor" + + "ithm\022!\n\035SIGNING_ALGORITHM_UNSPECIFIED\020\000\022" + + "\025\n\021RSASSA_PSS_SHA256\020\001\022\032\n\026RSASSA_PKCS1V1" + + "5_SHA256\020\002\022\025\n\021ECDSA_P256_SHA256\020\003*\216\001\n\tTo" + + "kenType\022\032\n\026TOKEN_TYPE_UNSPECIFIED\020\000\022\023\n\017T" + + "OKEN_TYPE_OIDC\020\001\022\022\n\016TOKEN_TYPE_PKI\020\002\022\032\n\026" + + "TOKEN_TYPE_LIMITED_AWS\020\003\022 \n\034TOKEN_TYPE_A" + + "WS_PRINCIPALTAGS\020\0042\267\004\n\025ConfidentialCompu" + + "ting\022\330\001\n\017CreateChallenge\022=.google.cloud." + + "confidentialcomputing.v1.CreateChallenge" + + "Request\0320.google.cloud.confidentialcompu" + + "ting.v1.Challenge\"T\332A\020parent,challenge\202\323" + + "\344\223\002;\"./v1/{parent=projects/*/locations/*" + + "}/challenges:\tchallenge\022\350\001\n\021VerifyAttest" + + "ation\022?.google.cloud.confidentialcomputi" + + "ng.v1.VerifyAttestationRequest\032@.google." + + "cloud.confidentialcomputing.v1.VerifyAtt" + + "estationResponse\"P\202\323\344\223\002J\"E/v1/{challenge" + + "=projects/*/locations/*/challenges/*}:ve" + + "rifyAttestation:\001*\032X\312A$confidentialcompu" + + "ting.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\227\002\n)com.goo" + + "gle.cloud.confidentialcomputing.v1B\014Serv" + + "iceProtoP\001Z_cloud.google.com/go/confiden" + + "tialcomputing/apiv1/confidentialcomputin" + + "gpb;confidentialcomputingpb\252\002%Google.Clo" + + "ud.ConfidentialComputing.V1\312\002%Google\\Clo" + + "ud\\ConfidentialComputing\\V1\352\002(Google::Cl" + + "oud::ConfidentialComputing::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -269,7 +295,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, new java.lang.String[] { - "Audience", "Nonce", "TokenType", + "AwsPrincipalTagsOptions", "Audience", "Nonce", "TokenType", "TokenTypeOptions", + }); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor, + new java.lang.String[] { + "AllowedPrincipalTags", + }); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor, + new java.lang.String[] { + "ContainerImageSignatures", + }); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor, + new java.lang.String[] { + "KeyIds", }); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = getDescriptor().getMessageTypes().get(8); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java index e4b7e2fdede7..010caec3ee04 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java @@ -65,6 +65,2748 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); } + public interface AwsPrincipalTagsOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + boolean hasAllowedPrincipalTags(); + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getAllowedPrincipalTags(); + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder(); + } + /** + * + * + *
    +   * Token options that only apply to the AWS Principal Tags token type.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions} + */ + public static final class AwsPrincipalTagsOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + AwsPrincipalTagsOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsPrincipalTagsOptions.newBuilder() to construct. + private AwsPrincipalTagsOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsPrincipalTagsOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsPrincipalTagsOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder + .class); + } + + public interface AllowedPrincipalTagsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + boolean hasContainerImageSignatures(); + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getContainerImageSignatures(); + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder(); + } + /** + * + * + *
    +     * Allowed principal tags is used to define what principal tags will be
    +     * placed in the token.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags} + */ + public static final class AllowedPrincipalTags extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) + AllowedPrincipalTagsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllowedPrincipalTags.newBuilder() to construct. + private AllowedPrincipalTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AllowedPrincipalTags() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllowedPrincipalTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder.class); + } + + public interface ContainerImageSignaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + java.util.List getKeyIdsList(); + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + int getKeyIdsCount(); + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + java.lang.String getKeyIds(int index); + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + com.google.protobuf.ByteString getKeyIdsBytes(int index); + } + /** + * + * + *
    +       * Allowed Container Image Signatures. Key IDs are required to allow this
    +       * claim to fit within the narrow AWS IAM restrictions.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} + */ + public static final class ContainerImageSignatures + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + ContainerImageSignaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerImageSignatures.newBuilder() to construct. + private ContainerImageSignatures( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContainerImageSignatures() { + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContainerImageSignatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); + } + + public static final int KEY_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList keyIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + public com.google.protobuf.ProtocolStringList getKeyIdsList() { + return keyIds_; + } + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + public int getKeyIdsCount() { + return keyIds_.size(); + } + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + public java.lang.String getKeyIds(int index) { + return keyIds_.get(index); + } + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only
    +         * keys that have been validated and added to the token will be filtered
    +         * into principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + public com.google.protobuf.ByteString getKeyIdsBytes(int index) { + return keyIds_.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 { + for (int i = 0; i < keyIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyIds_.getRaw(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 < keyIds_.size(); i++) { + dataSize += computeStringSizeNoTag(keyIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeyIdsList().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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + other = + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures) + obj; + + if (!getKeyIdsList().equals(other.getKeyIdsList())) 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 (getKeyIdsCount() > 0) { + hash = (37 * hash) + KEY_IDS_FIELD_NUMBER; + hash = (53 * hash) + getKeyIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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; + } + /** + * + * + *
    +         * Allowed Container Image Signatures. Key IDs are required to allow this
    +         * claim to fit within the narrow AWS IAM restrictions.
    +         * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + build() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + buildPartial() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + result = + new com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + keyIds_.makeImmutable(); + result.keyIds_ = keyIds_; + } + } + + @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance()) + return this; + if (!other.keyIds_.isEmpty()) { + if (keyIds_.isEmpty()) { + keyIds_ = other.keyIds_; + bitField0_ |= 0x00000001; + } else { + ensureKeyIdsIsMutable(); + keyIds_.addAll(other.keyIds_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKeyIdsIsMutable(); + keyIds_.add(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 bitField0_; + + private com.google.protobuf.LazyStringArrayList keyIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKeyIdsIsMutable() { + if (!keyIds_.isModifiable()) { + keyIds_ = new com.google.protobuf.LazyStringArrayList(keyIds_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + public com.google.protobuf.ProtocolStringList getKeyIdsList() { + keyIds_.makeImmutable(); + return keyIds_; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + public int getKeyIdsCount() { + return keyIds_.size(); + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + public java.lang.String getKeyIds(int index) { + return keyIds_.get(index); + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + public com.google.protobuf.ByteString getKeyIdsBytes(int index) { + return keyIds_.getByteString(index); + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The keyIds to set. + * @return This builder for chaining. + */ + public Builder setKeyIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyIdsIsMutable(); + keyIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyIds to add. + * @return This builder for chaining. + */ + public Builder addKeyIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyIdsIsMutable(); + keyIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The keyIds to add. + * @return This builder for chaining. + */ + public Builder addAllKeyIds(java.lang.Iterable values) { + ensureKeyIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyIds() { + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. List of key ids to filter into the Principal tags. Only
    +           * keys that have been validated and added to the token will be filtered
    +           * into principal tags. Unrecognized key ids will be ignored.
    +           * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the keyIds to add. + * @return This builder for chaining. + */ + public Builder addKeyIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeyIdsIsMutable(); + keyIds_.add(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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + private static final com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures(); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImageSignatures 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + containerImageSignatures_; + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + @java.lang.Override + public boolean hasContainerImageSignatures() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getContainerImageSignatures() { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder() { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + + 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, getContainerImageSignatures()); + } + 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, getContainerImageSignatures()); + } + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + other = + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags) + obj; + + if (hasContainerImageSignatures() != other.hasContainerImageSignatures()) return false; + if (hasContainerImageSignatures()) { + if (!getContainerImageSignatures().equals(other.getContainerImageSignatures())) + 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 (hasContainerImageSignatures()) { + hash = (37 * hash) + CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER; + hash = (53 * hash) + getContainerImageSignatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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; + } + /** + * + * + *
    +       * Allowed principal tags is used to define what principal tags will be
    +       * placed in the token.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContainerImageSignaturesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + containerImageSignatures_ = null; + if (containerImageSignaturesBuilder_ != null) { + containerImageSignaturesBuilder_.dispose(); + containerImageSignaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + build() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + buildPartial() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + result = + new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.containerImageSignatures_ = + containerImageSignaturesBuilder_ == null + ? containerImageSignatures_ + : containerImageSignaturesBuilder_.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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance()) return this; + if (other.hasContainerImageSignatures()) { + mergeContainerImageSignatures(other.getContainerImageSignatures()); + } + 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( + getContainerImageSignaturesFieldBuilder().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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + containerImageSignatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder> + containerImageSignaturesBuilder_; + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + public boolean hasContainerImageSignatures() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getContainerImageSignatures() { + if (containerImageSignaturesBuilder_ == null) { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } else { + return containerImageSignaturesBuilder_.getMessage(); + } + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + value) { + if (containerImageSignaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerImageSignatures_ = value; + } else { + containerImageSignaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder + builderForValue) { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignatures_ = builderForValue.build(); + } else { + containerImageSignaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + value) { + if (containerImageSignaturesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && containerImageSignatures_ != null + && containerImageSignatures_ + != com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures + .getDefaultInstance()) { + getContainerImageSignaturesBuilder().mergeFrom(value); + } else { + containerImageSignatures_ = value; + } + } else { + containerImageSignaturesBuilder_.mergeFrom(value); + } + if (containerImageSignatures_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContainerImageSignatures() { + bitField0_ = (bitField0_ & ~0x00000001); + containerImageSignatures_ = null; + if (containerImageSignaturesBuilder_ != null) { + containerImageSignaturesBuilder_.dispose(); + containerImageSignaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder + getContainerImageSignaturesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContainerImageSignaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder() { + if (containerImageSignaturesBuilder_ != null) { + return containerImageSignaturesBuilder_.getMessageOrBuilder(); + } else { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + } + /** + * + * + *
    +         * Optional. Container image signatures allowed in the token.
    +         * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder> + getContainerImageSignaturesFieldBuilder() { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder>( + getContainerImageSignatures(), getParentForChildren(), isClean()); + containerImageSignatures_ = null; + } + return containerImageSignaturesBuilder_; + } + + @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) + private static final com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions.AllowedPrincipalTags + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags(); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedPrincipalTags 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + allowedPrincipalTags_; + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + @java.lang.Override + public boolean hasAllowedPrincipalTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getAllowedPrincipalTags() { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance() + : allowedPrincipalTags_; + } + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder() { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance() + : allowedPrincipalTags_; + } + + 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, getAllowedPrincipalTags()); + } + 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, getAllowedPrincipalTags()); + } + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions other = + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) obj; + + if (hasAllowedPrincipalTags() != other.hasAllowedPrincipalTags()) return false; + if (hasAllowedPrincipalTags()) { + if (!getAllowedPrincipalTags().equals(other.getAllowedPrincipalTags())) 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 (hasAllowedPrincipalTags()) { + hash = (37 * hash) + ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedPrincipalTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions 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; + } + /** + * + * + *
    +     * Token options that only apply to the AWS Principal Tags token type.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .class, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAllowedPrincipalTagsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedPrincipalTags_ = null; + if (allowedPrincipalTagsBuilder_ != null) { + allowedPrincipalTagsBuilder_.dispose(); + allowedPrincipalTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + build() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + buildPartial() { + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result = + new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowedPrincipalTags_ = + allowedPrincipalTagsBuilder_ == null + ? allowedPrincipalTags_ + : allowedPrincipalTagsBuilder_.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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions other) { + if (other + == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance()) return this; + if (other.hasAllowedPrincipalTags()) { + mergeAllowedPrincipalTags(other.getAllowedPrincipalTags()); + } + 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( + getAllowedPrincipalTagsFieldBuilder().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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + allowedPrincipalTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder> + allowedPrincipalTagsBuilder_; + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + public boolean hasAllowedPrincipalTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getAllowedPrincipalTags() { + if (allowedPrincipalTagsBuilder_ == null) { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance() + : allowedPrincipalTags_; + } else { + return allowedPrincipalTagsBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + value) { + if (allowedPrincipalTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allowedPrincipalTags_ = value; + } else { + allowedPrincipalTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder + builderForValue) { + if (allowedPrincipalTagsBuilder_ == null) { + allowedPrincipalTags_ = builderForValue.build(); + } else { + allowedPrincipalTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags + value) { + if (allowedPrincipalTagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && allowedPrincipalTags_ != null + && allowedPrincipalTags_ + != com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance()) { + getAllowedPrincipalTagsBuilder().mergeFrom(value); + } else { + allowedPrincipalTags_ = value; + } + } else { + allowedPrincipalTagsBuilder_.mergeFrom(value); + } + if (allowedPrincipalTags_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAllowedPrincipalTags() { + bitField0_ = (bitField0_ & ~0x00000001); + allowedPrincipalTags_ = null; + if (allowedPrincipalTagsBuilder_ != null) { + allowedPrincipalTagsBuilder_.dispose(); + allowedPrincipalTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder + getAllowedPrincipalTagsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAllowedPrincipalTagsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder() { + if (allowedPrincipalTagsBuilder_ != null) { + return allowedPrincipalTagsBuilder_.getMessageOrBuilder(); + } else { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance() + : allowedPrincipalTags_; + } + } + /** + * + * + *
    +       * Optional. Principal tags to allow in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder> + getAllowedPrincipalTagsFieldBuilder() { + if (allowedPrincipalTagsBuilder_ == null) { + allowedPrincipalTagsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder>( + getAllowedPrincipalTags(), getParentForChildren(), isClean()); + allowedPrincipalTags_ = null; + } + return allowedPrincipalTagsBuilder_; + } + + @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + private static final com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions(); + } + + public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsPrincipalTagsOptions 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int tokenTypeOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object tokenTypeOptions_; + + public enum TokenTypeOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_PRINCIPAL_TAGS_OPTIONS(4), + TOKENTYPEOPTIONS_NOT_SET(0); + private final int value; + + private TokenTypeOptionsCase(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 TokenTypeOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static TokenTypeOptionsCase forNumber(int value) { + switch (value) { + case 4: + return AWS_PRINCIPAL_TAGS_OPTIONS; + case 0: + return TOKENTYPEOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TokenTypeOptionsCase getTokenTypeOptionsCase() { + return TokenTypeOptionsCase.forNumber(tokenTypeOptionsCase_); + } + + public static final int AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER = 4; + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + @java.lang.Override + public boolean hasAwsPrincipalTagsOptions() { + return tokenTypeOptionsCase_ == 4; + } + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getAwsPrincipalTagsOptions() { + if (tokenTypeOptionsCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_; + } + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder() { + if (tokenTypeOptionsCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_; + } + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + public static final int AUDIENCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -255,6 +2997,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.confidentialcomputing.v1.TokenType.TOKEN_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, tokenType_); } + if (tokenTypeOptionsCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_); + } getUnknownFields().writeTo(output); } @@ -279,6 +3027,13 @@ public int getSerializedSize() { != com.google.cloud.confidentialcomputing.v1.TokenType.TOKEN_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tokenType_); } + if (tokenTypeOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -298,6 +3053,14 @@ public boolean equals(final java.lang.Object obj) { if (!getAudience().equals(other.getAudience())) return false; if (!getNonceList().equals(other.getNonceList())) return false; if (tokenType_ != other.tokenType_) return false; + if (!getTokenTypeOptionsCase().equals(other.getTokenTypeOptionsCase())) return false; + switch (tokenTypeOptionsCase_) { + case 4: + if (!getAwsPrincipalTagsOptions().equals(other.getAwsPrincipalTagsOptions())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,6 +3080,14 @@ public int hashCode() { } hash = (37 * hash) + TOKEN_TYPE_FIELD_NUMBER; hash = (53 * hash) + tokenType_; + switch (tokenTypeOptionsCase_) { + case 4: + hash = (37 * hash) + AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAwsPrincipalTagsOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -457,9 +3228,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (awsPrincipalTagsOptionsBuilder_ != null) { + awsPrincipalTagsOptionsBuilder_.clear(); + } audience_ = ""; nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); tokenType_ = 0; + tokenTypeOptionsCase_ = 0; + tokenTypeOptions_ = null; return this; } @@ -490,24 +3266,33 @@ public com.google.cloud.confidentialcomputing.v1.TokenOptions buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.confidentialcomputing.v1.TokenOptions result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.audience_ = audience_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { nonce_.makeImmutable(); result.nonce_ = nonce_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.tokenType_ = tokenType_; } } + private void buildPartialOneofs(com.google.cloud.confidentialcomputing.v1.TokenOptions result) { + result.tokenTypeOptionsCase_ = tokenTypeOptionsCase_; + result.tokenTypeOptions_ = this.tokenTypeOptions_; + if (tokenTypeOptionsCase_ == 4 && awsPrincipalTagsOptionsBuilder_ != null) { + result.tokenTypeOptions_ = awsPrincipalTagsOptionsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,13 +3341,13 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TokenOptions return this; if (!other.getAudience().isEmpty()) { audience_ = other.audience_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (!other.nonce_.isEmpty()) { if (nonce_.isEmpty()) { nonce_ = other.nonce_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } else { ensureNonceIsMutable(); nonce_.addAll(other.nonce_); @@ -572,6 +3357,17 @@ public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.TokenOptions if (other.tokenType_ != 0) { setTokenTypeValue(other.getTokenTypeValue()); } + switch (other.getTokenTypeOptionsCase()) { + case AWS_PRINCIPAL_TAGS_OPTIONS: + { + mergeAwsPrincipalTagsOptions(other.getAwsPrincipalTagsOptions()); + break; + } + case TOKENTYPEOPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -601,7 +3397,7 @@ public Builder mergeFrom( case 10: { audience_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: @@ -614,9 +3410,16 @@ public Builder mergeFrom( case 24: { tokenType_ = input.readEnum(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 24 + case 34: + { + input.readMessage( + getAwsPrincipalTagsOptionsFieldBuilder().getBuilder(), extensionRegistry); + tokenTypeOptionsCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -634,8 +3437,270 @@ public Builder mergeFrom( return this; } + private int tokenTypeOptionsCase_ = 0; + private java.lang.Object tokenTypeOptions_; + + public TokenTypeOptionsCase getTokenTypeOptionsCase() { + return TokenTypeOptionsCase.forNumber(tokenTypeOptionsCase_); + } + + public Builder clearTokenTypeOptions() { + tokenTypeOptionsCase_ = 0; + tokenTypeOptions_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder> + awsPrincipalTagsOptionsBuilder_; + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + @java.lang.Override + public boolean hasAwsPrincipalTagsOptions() { + return tokenTypeOptionsCase_ == 4; + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getAwsPrincipalTagsOptions() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenTypeOptionsCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_; + } + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } else { + if (tokenTypeOptionsCase_ == 4) { + return awsPrincipalTagsOptionsBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions value) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenTypeOptions_ = value; + onChanged(); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(value); + } + tokenTypeOptionsCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder + builderForValue) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + tokenTypeOptions_ = builderForValue.build(); + onChanged(); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(builderForValue.build()); + } + tokenTypeOptionsCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions value) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenTypeOptionsCase_ == 4 + && tokenTypeOptions_ + != com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance()) { + tokenTypeOptions_ = + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .newBuilder( + (com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptions) + tokenTypeOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + tokenTypeOptions_ = value; + } + onChanged(); + } else { + if (tokenTypeOptionsCase_ == 4) { + awsPrincipalTagsOptionsBuilder_.mergeFrom(value); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(value); + } + } + tokenTypeOptionsCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsPrincipalTagsOptions() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenTypeOptionsCase_ == 4) { + tokenTypeOptionsCase_ = 0; + tokenTypeOptions_ = null; + onChanged(); + } + } else { + if (tokenTypeOptionsCase_ == 4) { + tokenTypeOptionsCase_ = 0; + tokenTypeOptions_ = null; + } + awsPrincipalTagsOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder + getAwsPrincipalTagsOptionsBuilder() { + return getAwsPrincipalTagsOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder() { + if ((tokenTypeOptionsCase_ == 4) && (awsPrincipalTagsOptionsBuilder_ != null)) { + return awsPrincipalTagsOptionsBuilder_.getMessageOrBuilder(); + } else { + if (tokenTypeOptionsCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_; + } + return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Options for the Limited AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder> + getAwsPrincipalTagsOptionsFieldBuilder() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (!(tokenTypeOptionsCase_ == 4)) { + tokenTypeOptions_ = + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + awsPrincipalTagsOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + .Builder, + com.google.cloud.confidentialcomputing.v1.TokenOptions + .AwsPrincipalTagsOptionsOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + tokenTypeOptions_, + getParentForChildren(), + isClean()); + tokenTypeOptions_ = null; + } + tokenTypeOptionsCase_ = 4; + onChanged(); + return awsPrincipalTagsOptionsBuilder_; + } + private java.lang.Object audience_ = ""; /** * @@ -701,7 +3766,7 @@ public Builder setAudience(java.lang.String value) { throw new NullPointerException(); } audience_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -719,7 +3784,7 @@ public Builder setAudience(java.lang.String value) { */ public Builder clearAudience() { audience_ = getDefaultInstance().getAudience(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -742,7 +3807,7 @@ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); audience_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -754,7 +3819,7 @@ private void ensureNonceIsMutable() { if (!nonce_.isModifiable()) { nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } /** * @@ -844,7 +3909,7 @@ public Builder setNonce(int index, java.lang.String value) { } ensureNonceIsMutable(); nonce_.set(index, value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -868,7 +3933,7 @@ public Builder addNonce(java.lang.String value) { } ensureNonceIsMutable(); nonce_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -889,7 +3954,7 @@ public Builder addNonce(java.lang.String value) { public Builder addAllNonce(java.lang.Iterable values) { ensureNonceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonce_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -908,7 +3973,7 @@ public Builder addAllNonce(java.lang.Iterable values) { */ public Builder clearNonce() { nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; @@ -934,7 +3999,7 @@ public Builder addNonceBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureNonceIsMutable(); nonce_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -973,7 +4038,7 @@ public int getTokenTypeValue() { */ public Builder setTokenTypeValue(int value) { tokenType_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1016,7 +4081,7 @@ public Builder setTokenType(com.google.cloud.confidentialcomputing.v1.TokenType if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tokenType_ = value.getNumber(); onChanged(); return this; @@ -1035,7 +4100,7 @@ public Builder setTokenType(com.google.cloud.confidentialcomputing.v1.TokenType * @return This builder for chaining. */ public Builder clearTokenType() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); tokenType_ = 0; onChanged(); return this; diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java index 82677546a81b..2f9d9d3815c1 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java @@ -24,6 +24,49 @@ public interface TokenOptionsOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + boolean hasAwsPrincipalTagsOptions(); + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + getAwsPrincipalTagsOptions(); + /** + * + * + *
    +   * Optional. Options for the Limited AWS token type.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder(); + /** * * @@ -138,4 +181,7 @@ public interface TokenOptionsOrBuilder * @return The tokenType. */ com.google.cloud.confidentialcomputing.v1.TokenType getTokenType(); + + com.google.cloud.confidentialcomputing.v1.TokenOptions.TokenTypeOptionsCase + getTokenTypeOptionsCase(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenType.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenType.java index e964019eb38a..62f2b158b65a 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenType.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenType.java @@ -70,6 +70,16 @@ public enum TokenType implements com.google.protobuf.ProtocolMessageEnum { * TOKEN_TYPE_LIMITED_AWS = 3; */ TOKEN_TYPE_LIMITED_AWS(3), + /** + * + * + *
    +   * Principal-tag-based token for AWS integration
    +   * 
    + * + * TOKEN_TYPE_AWS_PRINCIPALTAGS = 4; + */ + TOKEN_TYPE_AWS_PRINCIPALTAGS(4), UNRECOGNIZED(-1), ; @@ -113,6 +123,16 @@ public enum TokenType implements com.google.protobuf.ProtocolMessageEnum { * TOKEN_TYPE_LIMITED_AWS = 3; */ public static final int TOKEN_TYPE_LIMITED_AWS_VALUE = 3; + /** + * + * + *
    +   * Principal-tag-based token for AWS integration
    +   * 
    + * + * TOKEN_TYPE_AWS_PRINCIPALTAGS = 4; + */ + public static final int TOKEN_TYPE_AWS_PRINCIPALTAGS_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -146,6 +166,8 @@ public static TokenType forNumber(int value) { return TOKEN_TYPE_PKI; case 3: return TOKEN_TYPE_LIMITED_AWS; + case 4: + return TOKEN_TYPE_AWS_PRINCIPALTAGS; default: return null; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto index 89e6a2394b82..03b70d6de5b6 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto @@ -85,6 +85,9 @@ enum TokenType { // Limited claim token type for AWS integration TOKEN_TYPE_LIMITED_AWS = 3; + + // Principal-tag-based token for AWS integration + TOKEN_TYPE_AWS_PRINCIPALTAGS = 4; } // A Challenge from the server used to guarantee freshness of attestations @@ -227,6 +230,37 @@ message GcpCredentials { // Options to modify claims in the token to generate custom-purpose tokens. message TokenOptions { + // Token options that only apply to the AWS Principal Tags token type. + message AwsPrincipalTagsOptions { + // Allowed principal tags is used to define what principal tags will be + // placed in the token. + message AllowedPrincipalTags { + // Allowed Container Image Signatures. Key IDs are required to allow this + // claim to fit within the narrow AWS IAM restrictions. + message ContainerImageSignatures { + // Optional. List of key ids to filter into the Principal tags. Only + // keys that have been validated and added to the token will be filtered + // into principal tags. Unrecognized key ids will be ignored. + repeated string key_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Container image signatures allowed in the token. + ContainerImageSignatures container_image_signatures = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Principal tags to allow in the token. + AllowedPrincipalTags allowed_principal_tags = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // An optional additional configuration per token type. + oneof token_type_options { + // Optional. Options for the Limited AWS token type. + AwsPrincipalTagsOptions aws_principal_tags_options = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Optional string to issue the token with a custom audience claim. // Required if one or more nonces are specified. string audience = 1 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 94e0d3ccb481..3d69f0841652 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.5.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.6.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 71d5c14dad24..6405d7d34af9 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.53.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/README.md b/java-container/README.md index 055423c127f1..ca658c1484ff 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.56.0' +implementation 'com.google.cloud:google-cloud-container:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.57.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index d4a08bbcd04a..db30df96c0d4 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.54.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 13242bb9f67c..5b508f2b87d8 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.49.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.50.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 1f7896381eb2..39999f678882 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.53.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 1719f0d77c52..bb6e8acb50fb 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.59.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.60.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java index ffd7ddfcfb88..22f33066ec8f 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java @@ -766,6 +766,48 @@ *
* * + * + *

SetConfig + *

Sets the configuration related to the migration to Dataplex for an organization or project. + * + *

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

+ *
    + *
  • setConfig(SetConfigRequest request) + *

+ *

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

+ *
    + *
  • setConfigCallable() + *

+ * + * + * + *

RetrieveConfig + *

Retrieves the configuration related to the migration from Data Catalog to Dataplex for a specific organization, including all the projects under it which have a separate configuration set. + * + *

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

+ *
    + *
  • retrieveConfig(RetrieveConfigRequest request) + *

+ *

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

+ *
    + *
  • retrieveConfigCallable() + *

+ * + * + * + *

RetrieveEffectiveConfig + *

Retrieves the effective configuration related to the migration from Data Catalog to Dataplex for a specific organization or project. If there is no specific configuration set for the resource, the setting is checked hierarchicahlly through the ancestors of the resource, starting from the resource itself. + * + *

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

+ *
    + *
  • retrieveEffectiveConfig(RetrieveEffectiveConfigRequest request) + *

+ *

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

+ *
    + *
  • retrieveEffectiveConfigCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -5867,6 +5909,170 @@ public final UnaryCallable importEntriesCallabl return stub.importEntriesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the configuration related to the migration to Dataplex for an organization or project. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build();
+   *   MigrationConfig response = dataCatalogClient.setConfig(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 MigrationConfig setConfig(SetConfigRequest request) { + return setConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the configuration related to the migration to Dataplex for an organization or project. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = dataCatalogClient.setConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MigrationConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setConfigCallable() { + return stub.setConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the configuration related to the migration from Data Catalog to Dataplex for a + * specific organization, including all the projects under it which have a separate configuration + * set. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   RetrieveConfigRequest request =
+   *       RetrieveConfigRequest.newBuilder().setName("name3373707").build();
+   *   OrganizationConfig response = dataCatalogClient.retrieveConfig(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 OrganizationConfig retrieveConfig(RetrieveConfigRequest request) { + return retrieveConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the configuration related to the migration from Data Catalog to Dataplex for a + * specific organization, including all the projects under it which have a separate configuration + * set. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   RetrieveConfigRequest request =
+   *       RetrieveConfigRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       dataCatalogClient.retrieveConfigCallable().futureCall(request);
+   *   // Do something.
+   *   OrganizationConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable retrieveConfigCallable() { + return stub.retrieveConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the effective configuration related to the migration from Data Catalog to Dataplex + * for a specific organization or project. If there is no specific configuration set for the + * resource, the setting is checked hierarchicahlly through the ancestors of the resource, + * starting from the resource itself. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   RetrieveEffectiveConfigRequest request =
+   *       RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build();
+   *   MigrationConfig response = dataCatalogClient.retrieveEffectiveConfig(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 MigrationConfig retrieveEffectiveConfig(RetrieveEffectiveConfigRequest request) { + return retrieveEffectiveConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the effective configuration related to the migration from Data Catalog to Dataplex + * for a specific organization or project. If there is no specific configuration set for the + * resource, the setting is checked hierarchicahlly through the ancestors of the resource, + * starting from the resource itself. + * + *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
+   *   RetrieveEffectiveConfigRequest request =
+   *       RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       dataCatalogClient.retrieveEffectiveConfigCallable().futureCall(request);
+   *   // Do something.
+   *   MigrationConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + retrieveEffectiveConfigCallable() { + return stub.retrieveEffectiveConfigCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java index 115fda749054..7a445f2d920d 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java @@ -316,6 +316,22 @@ public UnaryCallSettings importEntriesSettings( return ((DataCatalogStubSettings) getStubSettings()).importEntriesOperationSettings(); } + /** Returns the object with the settings used for calls to setConfig. */ + public UnaryCallSettings setConfigSettings() { + return ((DataCatalogStubSettings) getStubSettings()).setConfigSettings(); + } + + /** Returns the object with the settings used for calls to retrieveConfig. */ + public UnaryCallSettings retrieveConfigSettings() { + return ((DataCatalogStubSettings) getStubSettings()).retrieveConfigSettings(); + } + + /** Returns the object with the settings used for calls to retrieveEffectiveConfig. */ + public UnaryCallSettings + retrieveEffectiveConfigSettings() { + return ((DataCatalogStubSettings) getStubSettings()).retrieveEffectiveConfigSettings(); + } + public static final DataCatalogSettings create(DataCatalogStubSettings stub) throws IOException { return new DataCatalogSettings.Builder(stub.toBuilder()).build(); } @@ -631,6 +647,23 @@ public UnaryCallSettings.Builder importEntriesS return getStubSettingsBuilder().importEntriesOperationSettings(); } + /** Returns the builder for the settings used for calls to setConfig. */ + public UnaryCallSettings.Builder setConfigSettings() { + return getStubSettingsBuilder().setConfigSettings(); + } + + /** Returns the builder for the settings used for calls to retrieveConfig. */ + public UnaryCallSettings.Builder + retrieveConfigSettings() { + return getStubSettingsBuilder().retrieveConfigSettings(); + } + + /** Returns the builder for the settings used for calls to retrieveEffectiveConfig. */ + public UnaryCallSettings.Builder + retrieveEffectiveConfigSettings() { + return getStubSettingsBuilder().retrieveEffectiveConfigSettings(); + } + @Override public DataCatalogSettings build() throws IOException { return new DataCatalogSettings(this); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json index 53df997a0a75..d38999328726 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json @@ -82,9 +82,18 @@ "RenameTagTemplateFieldEnumValue": { "methods": ["renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValueCallable"] }, + "RetrieveConfig": { + "methods": ["retrieveConfig", "retrieveConfigCallable"] + }, + "RetrieveEffectiveConfig": { + "methods": ["retrieveEffectiveConfig", "retrieveEffectiveConfigCallable"] + }, "SearchCatalog": { "methods": ["searchCatalog", "searchCatalog", "searchCatalogPagedCallable", "searchCatalogCallable"] }, + "SetConfig": { + "methods": ["setConfig", "setConfigCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] }, diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java index 0c261a6cb963..5e8e8746cc12 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java @@ -51,15 +51,20 @@ import com.google.cloud.datacatalog.v1.ListTagsRequest; import com.google.cloud.datacatalog.v1.ListTagsResponse; import com.google.cloud.datacatalog.v1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.MigrationConfig; import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; +import com.google.cloud.datacatalog.v1.OrganizationConfig; import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; import com.google.cloud.datacatalog.v1.SearchCatalogRequest; import com.google.cloud.datacatalog.v1.SearchCatalogResponse; +import com.google.cloud.datacatalog.v1.SetConfigRequest; import com.google.cloud.datacatalog.v1.StarEntryRequest; import com.google.cloud.datacatalog.v1.StarEntryResponse; import com.google.cloud.datacatalog.v1.Tag; @@ -269,6 +274,19 @@ public UnaryCallable importEntriesCallable() { throw new UnsupportedOperationException("Not implemented: importEntriesCallable()"); } + public UnaryCallable setConfigCallable() { + throw new UnsupportedOperationException("Not implemented: setConfigCallable()"); + } + + public UnaryCallable retrieveConfigCallable() { + throw new UnsupportedOperationException("Not implemented: retrieveConfigCallable()"); + } + + public UnaryCallable + retrieveEffectiveConfigCallable() { + throw new UnsupportedOperationException("Not implemented: retrieveEffectiveConfigCallable()"); + } + @Override public abstract void close(); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java index 29a34489c974..c91051d20e78 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java @@ -78,16 +78,21 @@ import com.google.cloud.datacatalog.v1.ListTagsRequest; import com.google.cloud.datacatalog.v1.ListTagsResponse; import com.google.cloud.datacatalog.v1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.MigrationConfig; import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; +import com.google.cloud.datacatalog.v1.OrganizationConfig; import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; import com.google.cloud.datacatalog.v1.SearchCatalogRequest; import com.google.cloud.datacatalog.v1.SearchCatalogResponse; import com.google.cloud.datacatalog.v1.SearchCatalogResult; +import com.google.cloud.datacatalog.v1.SetConfigRequest; import com.google.cloud.datacatalog.v1.StarEntryRequest; import com.google.cloud.datacatalog.v1.StarEntryResponse; import com.google.cloud.datacatalog.v1.Tag; @@ -251,6 +256,10 @@ public class DataCatalogStubSettings extends StubSettings importEntriesOperationSettings; + private final UnaryCallSettings setConfigSettings; + private final UnaryCallSettings retrieveConfigSettings; + private final UnaryCallSettings + retrieveEffectiveConfigSettings; private static final PagedListDescriptor< SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult> @@ -654,6 +663,22 @@ public UnaryCallSettings importEntriesSettings( return importEntriesOperationSettings; } + /** Returns the object with the settings used for calls to setConfig. */ + public UnaryCallSettings setConfigSettings() { + return setConfigSettings; + } + + /** Returns the object with the settings used for calls to retrieveConfig. */ + public UnaryCallSettings retrieveConfigSettings() { + return retrieveConfigSettings; + } + + /** Returns the object with the settings used for calls to retrieveEffectiveConfig. */ + public UnaryCallSettings + retrieveEffectiveConfigSettings() { + return retrieveEffectiveConfigSettings; + } + public DataCatalogStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -802,6 +827,9 @@ protected DataCatalogStubSettings(Builder settingsBuilder) throws IOException { testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); importEntriesSettings = settingsBuilder.importEntriesSettings().build(); importEntriesOperationSettings = settingsBuilder.importEntriesOperationSettings().build(); + setConfigSettings = settingsBuilder.setConfigSettings().build(); + retrieveConfigSettings = settingsBuilder.retrieveConfigSettings().build(); + retrieveEffectiveConfigSettings = settingsBuilder.retrieveEffectiveConfigSettings().build(); } /** Builder for DataCatalogStubSettings. */ @@ -872,6 +900,11 @@ public static class Builder extends StubSettings.Builder importEntriesOperationSettings; + private final UnaryCallSettings.Builder setConfigSettings; + private final UnaryCallSettings.Builder + retrieveConfigSettings; + private final UnaryCallSettings.Builder + retrieveEffectiveConfigSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -950,6 +983,9 @@ protected Builder(ClientContext clientContext) { testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importEntriesOperationSettings = OperationCallSettings.newBuilder(); + setConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retrieveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retrieveEffectiveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -986,7 +1022,10 @@ protected Builder(ClientContext clientContext) { setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings, - importEntriesSettings); + importEntriesSettings, + setConfigSettings, + retrieveConfigSettings, + retrieveEffectiveConfigSettings); initDefaults(this); } @@ -1030,6 +1069,9 @@ protected Builder(DataCatalogStubSettings settings) { testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); importEntriesSettings = settings.importEntriesSettings.toBuilder(); importEntriesOperationSettings = settings.importEntriesOperationSettings.toBuilder(); + setConfigSettings = settings.setConfigSettings.toBuilder(); + retrieveConfigSettings = settings.retrieveConfigSettings.toBuilder(); + retrieveEffectiveConfigSettings = settings.retrieveEffectiveConfigSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1066,7 +1108,10 @@ protected Builder(DataCatalogStubSettings settings) { setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings, - importEntriesSettings); + importEntriesSettings, + setConfigSettings, + retrieveConfigSettings, + retrieveEffectiveConfigSettings); } private static Builder createDefault() { @@ -1264,6 +1309,21 @@ 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 + .setConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .retrieveConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .retrieveEffectiveConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .reconcileTagsOperationSettings() .setInitialCallSettings( @@ -1534,6 +1594,23 @@ public UnaryCallSettings.Builder importEntriesS return importEntriesOperationSettings; } + /** Returns the builder for the settings used for calls to setConfig. */ + public UnaryCallSettings.Builder setConfigSettings() { + return setConfigSettings; + } + + /** Returns the builder for the settings used for calls to retrieveConfig. */ + public UnaryCallSettings.Builder + retrieveConfigSettings() { + return retrieveConfigSettings; + } + + /** Returns the builder for the settings used for calls to retrieveEffectiveConfig. */ + public UnaryCallSettings.Builder + retrieveEffectiveConfigSettings() { + return retrieveEffectiveConfigSettings; + } + @Override public DataCatalogStubSettings build() throws IOException { return new DataCatalogStubSettings(this); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java index 9b923c068aef..55fa7006a0bd 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java @@ -56,15 +56,20 @@ import com.google.cloud.datacatalog.v1.ListTagsRequest; import com.google.cloud.datacatalog.v1.ListTagsResponse; import com.google.cloud.datacatalog.v1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.MigrationConfig; import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; +import com.google.cloud.datacatalog.v1.OrganizationConfig; import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; import com.google.cloud.datacatalog.v1.SearchCatalogRequest; import com.google.cloud.datacatalog.v1.SearchCatalogResponse; +import com.google.cloud.datacatalog.v1.SetConfigRequest; import com.google.cloud.datacatalog.v1.StarEntryRequest; import com.google.cloud.datacatalog.v1.StarEntryResponse; import com.google.cloud.datacatalog.v1.Tag; @@ -422,6 +427,35 @@ public class GrpcDataCatalogStub extends DataCatalogStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + setConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetConfig") + .setRequestMarshaller(ProtoUtils.marshaller(SetConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MigrationConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + retrieveConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(RetrieveConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(OrganizationConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + retrieveEffectiveConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveEffectiveConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(RetrieveEffectiveConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MigrationConfig.getDefaultInstance())) + .build(); + private final UnaryCallable searchCatalogCallable; private final UnaryCallable searchCatalogPagedCallable; @@ -476,6 +510,10 @@ public class GrpcDataCatalogStub extends DataCatalogStub { private final OperationCallable< ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> importEntriesOperationCallable; + private final UnaryCallable setConfigCallable; + private final UnaryCallable retrieveConfigCallable; + private final UnaryCallable + retrieveEffectiveConfigCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -856,6 +894,37 @@ protected GrpcDataCatalogStub( return builder.build(); }) .build(); + GrpcCallSettings setConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings retrieveConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retrieveConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + retrieveEffectiveConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retrieveEffectiveConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.searchCatalogCallable = callableFactory.createUnaryCallable( @@ -1005,6 +1074,17 @@ protected GrpcDataCatalogStub( settings.importEntriesOperationSettings(), clientContext, operationsStub); + this.setConfigCallable = + callableFactory.createUnaryCallable( + setConfigTransportSettings, settings.setConfigSettings(), clientContext); + this.retrieveConfigCallable = + callableFactory.createUnaryCallable( + retrieveConfigTransportSettings, settings.retrieveConfigSettings(), clientContext); + this.retrieveEffectiveConfigCallable = + callableFactory.createUnaryCallable( + retrieveEffectiveConfigTransportSettings, + settings.retrieveEffectiveConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1223,6 +1303,22 @@ public UnaryCallable importEntriesCallable() { return importEntriesOperationCallable; } + @Override + public UnaryCallable setConfigCallable() { + return setConfigCallable; + } + + @Override + public UnaryCallable retrieveConfigCallable() { + return retrieveConfigCallable; + } + + @Override + public UnaryCallable + retrieveEffectiveConfigCallable() { + return retrieveEffectiveConfigCallable; + } + @Override public final void close() { try { diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java index 7b5209cb7b8a..5e243fbf605b 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java @@ -64,15 +64,20 @@ import com.google.cloud.datacatalog.v1.ListTagsRequest; import com.google.cloud.datacatalog.v1.ListTagsResponse; import com.google.cloud.datacatalog.v1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.MigrationConfig; import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; +import com.google.cloud.datacatalog.v1.OrganizationConfig; import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; import com.google.cloud.datacatalog.v1.SearchCatalogRequest; import com.google.cloud.datacatalog.v1.SearchCatalogResponse; +import com.google.cloud.datacatalog.v1.SetConfigRequest; import com.google.cloud.datacatalog.v1.StarEntryRequest; import com.google.cloud.datacatalog.v1.StarEntryResponse; import com.google.cloud.datacatalog.v1.Tag; @@ -1343,6 +1348,111 @@ public class HttpJsonDataCatalogStub extends DataCatalogStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + setConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}:setConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}:setConfig") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MigrationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + retrieveConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}:retrieveConfig", + 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(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + retrieveEffectiveConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveEffectiveConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/locations/*}:retrieveEffectiveConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*}:retrieveEffectiveConfig") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MigrationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable searchCatalogCallable; private final UnaryCallable searchCatalogPagedCallable; @@ -1397,6 +1507,10 @@ public class HttpJsonDataCatalogStub extends DataCatalogStub { private final OperationCallable< ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> importEntriesOperationCallable; + private final UnaryCallable setConfigCallable; + private final UnaryCallable retrieveConfigCallable; + private final UnaryCallable + retrieveEffectiveConfigCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -1843,6 +1957,41 @@ protected HttpJsonDataCatalogStub( return builder.build(); }) .build(); + HttpJsonCallSettings setConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + retrieveConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(retrieveConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + retrieveEffectiveConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(retrieveEffectiveConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.searchCatalogCallable = callableFactory.createUnaryCallable( @@ -1992,6 +2141,17 @@ protected HttpJsonDataCatalogStub( settings.importEntriesOperationSettings(), clientContext, httpJsonOperationsStub); + this.setConfigCallable = + callableFactory.createUnaryCallable( + setConfigTransportSettings, settings.setConfigSettings(), clientContext); + this.retrieveConfigCallable = + callableFactory.createUnaryCallable( + retrieveConfigTransportSettings, settings.retrieveConfigSettings(), clientContext); + this.retrieveEffectiveConfigCallable = + callableFactory.createUnaryCallable( + retrieveEffectiveConfigTransportSettings, + settings.retrieveEffectiveConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -2034,6 +2194,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); methodDescriptors.add(importEntriesMethodDescriptor); + methodDescriptors.add(setConfigMethodDescriptor); + methodDescriptors.add(retrieveConfigMethodDescriptor); + methodDescriptors.add(retrieveEffectiveConfigMethodDescriptor); return methodDescriptors; } @@ -2250,6 +2413,22 @@ public UnaryCallable importEntriesCallable() { return importEntriesOperationCallable; } + @Override + public UnaryCallable setConfigCallable() { + return setConfigCallable; + } + + @Override + public UnaryCallable retrieveConfigCallable() { + return retrieveConfigCallable; + } + + @Override + public UnaryCallable + retrieveEffectiveConfigCallable() { + return retrieveEffectiveConfigCallable; + } + @Override public final void close() { try { diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json index 6253eb4e4715..3117a10593d2 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json +++ b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json @@ -512,6 +512,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.CatalogUIExperience", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec", "queryAllDeclaredConstructors": true, @@ -1880,6 +1889,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.MigrationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.MigrationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.ModelSpec", "queryAllDeclaredConstructors": true, @@ -1934,6 +1961,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.OrganizationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.OrganizationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.PersonalDetails", "queryAllDeclaredConstructors": true, @@ -2213,6 +2258,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.RetrieveConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.RetrieveConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.RoutineSpec", "queryAllDeclaredConstructors": true, @@ -2420,6 +2501,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.SetConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datacatalog.v1.SetConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec", "queryAllDeclaredConstructors": true, @@ -2636,6 +2735,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datacatalog.v1.TagTemplateMigration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datacatalog.v1.TaggedEntry", "queryAllDeclaredConstructors": true, diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java index 4ca7642b9043..de5990b14097 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java +++ b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java @@ -152,6 +152,7 @@ public void createEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -203,6 +204,7 @@ public void createEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -254,6 +256,7 @@ public void getEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -301,6 +304,7 @@ public void getEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -348,6 +352,7 @@ public void getEntryGroupTest3() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -397,6 +402,7 @@ public void getEntryGroupTest4() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -446,6 +452,7 @@ public void updateEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -455,6 +462,7 @@ public void updateEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); EntryGroup actualResponse = client.updateEntryGroup(entryGroup); @@ -489,6 +497,7 @@ public void updateEntryGroupExceptionTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); client.updateEntryGroup(entryGroup); Assert.fail("No exception raised"); @@ -505,6 +514,7 @@ public void updateEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockService.addResponse(expectedResponse); @@ -514,6 +524,7 @@ public void updateEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -549,6 +560,7 @@ public void updateEntryGroupExceptionTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateEntryGroup(entryGroup, updateMask); @@ -3499,4 +3511,156 @@ public void importEntriesExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void setConfigTest() throws Exception { + MigrationConfig expectedResponse = + MigrationConfig.newBuilder() + .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) + .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + SetConfigRequest request = + SetConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + MigrationConfig actualResponse = client.setConfig(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 setConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetConfigRequest request = + SetConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.setConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveConfigTest() throws Exception { + OrganizationConfig expectedResponse = + OrganizationConfig.newBuilder() + .putAllConfig(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + OrganizationConfig actualResponse = client.retrieveConfig(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 retrieveConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.retrieveConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveEffectiveConfigTest() throws Exception { + MigrationConfig expectedResponse = + MigrationConfig.newBuilder() + .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) + .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + + MigrationConfig actualResponse = client.retrieveEffectiveConfig(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 retrieveEffectiveConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder() + .setName("organizations/organization-7066/locations/location-7066") + .build(); + client.retrieveEffectiveConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java index 268f22073ba1..9133383579d9 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java +++ b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java @@ -156,6 +156,7 @@ public void createEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -203,6 +204,7 @@ public void createEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -250,6 +252,7 @@ public void getEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -291,6 +294,7 @@ public void getEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -332,6 +336,7 @@ public void getEntryGroupTest3() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -376,6 +381,7 @@ public void getEntryGroupTest4() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -420,6 +426,7 @@ public void updateEntryGroupTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -461,6 +468,7 @@ public void updateEntryGroupTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) + .setTransferredToDataplex(true) .build(); mockDataCatalog.addResponse(expectedResponse); @@ -3027,4 +3035,127 @@ public void importEntriesExceptionTest() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void setConfigTest() throws Exception { + MigrationConfig expectedResponse = + MigrationConfig.newBuilder() + .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) + .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) + .build(); + mockDataCatalog.addResponse(expectedResponse); + + SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); + + MigrationConfig actualResponse = client.setConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataCatalog.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetConfigRequest actualRequest = ((SetConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getTagTemplateMigration(), actualRequest.getTagTemplateMigration()); + Assert.assertEquals(request.getCatalogUiExperience(), actualRequest.getCatalogUiExperience()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataCatalog.addException(exception); + + try { + SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); + client.setConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveConfigTest() throws Exception { + OrganizationConfig expectedResponse = + OrganizationConfig.newBuilder() + .putAllConfig(new HashMap()) + .build(); + mockDataCatalog.addResponse(expectedResponse); + + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder().setName("name3373707").build(); + + OrganizationConfig actualResponse = client.retrieveConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataCatalog.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveConfigRequest actualRequest = ((RetrieveConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataCatalog.addException(exception); + + try { + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder().setName("name3373707").build(); + client.retrieveConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveEffectiveConfigTest() throws Exception { + MigrationConfig expectedResponse = + MigrationConfig.newBuilder() + .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) + .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) + .build(); + mockDataCatalog.addResponse(expectedResponse); + + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); + + MigrationConfig actualResponse = client.retrieveEffectiveConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataCatalog.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveEffectiveConfigRequest actualRequest = + ((RetrieveEffectiveConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveEffectiveConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataCatalog.addException(exception); + + try { + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); + client.retrieveEffectiveConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java index 06ae9a29db5f..1a0200ccda56 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java +++ b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java @@ -769,4 +769,67 @@ public void importEntries( Exception.class.getName()))); } } + + @Override + public void setConfig( + SetConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MigrationConfig) { + requests.add(request); + responseObserver.onNext(((MigrationConfig) 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 SetConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MigrationConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retrieveConfig( + RetrieveConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OrganizationConfig) { + requests.add(request); + responseObserver.onNext(((OrganizationConfig) 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 RetrieveConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OrganizationConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retrieveEffectiveConfig( + RetrieveEffectiveConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MigrationConfig) { + requests.add(request); + responseObserver.onNext(((MigrationConfig) 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 RetrieveEffectiveConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MigrationConfig.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java index d896ad01360c..dc12f1035942 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java @@ -1557,6 +1557,147 @@ private DataCatalogGrpc() {} return getImportEntriesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.SetConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getSetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetConfig", + requestType = com.google.cloud.datacatalog.v1.SetConfigRequest.class, + responseType = com.google.cloud.datacatalog.v1.MigrationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.SetConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getSetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.SetConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getSetConfigMethod; + if ((getSetConfigMethod = DataCatalogGrpc.getSetConfigMethod) == null) { + synchronized (DataCatalogGrpc.class) { + if ((getSetConfigMethod = DataCatalogGrpc.getSetConfigMethod) == null) { + DataCatalogGrpc.getSetConfigMethod = + getSetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.SetConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance())) + .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SetConfig")) + .build(); + } + } + } + return getSetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveConfigRequest, + com.google.cloud.datacatalog.v1.OrganizationConfig> + getRetrieveConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveConfig", + requestType = com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, + responseType = com.google.cloud.datacatalog.v1.OrganizationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveConfigRequest, + com.google.cloud.datacatalog.v1.OrganizationConfig> + getRetrieveConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveConfigRequest, + com.google.cloud.datacatalog.v1.OrganizationConfig> + getRetrieveConfigMethod; + if ((getRetrieveConfigMethod = DataCatalogGrpc.getRetrieveConfigMethod) == null) { + synchronized (DataCatalogGrpc.class) { + if ((getRetrieveConfigMethod = DataCatalogGrpc.getRetrieveConfigMethod) == null) { + DataCatalogGrpc.getRetrieveConfigMethod = + getRetrieveConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.OrganizationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataCatalogMethodDescriptorSupplier("RetrieveConfig")) + .build(); + } + } + } + return getRetrieveConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getRetrieveEffectiveConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveEffectiveConfig", + requestType = com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, + responseType = com.google.cloud.datacatalog.v1.MigrationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getRetrieveEffectiveConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig> + getRetrieveEffectiveConfigMethod; + if ((getRetrieveEffectiveConfigMethod = DataCatalogGrpc.getRetrieveEffectiveConfigMethod) + == null) { + synchronized (DataCatalogGrpc.class) { + if ((getRetrieveEffectiveConfigMethod = DataCatalogGrpc.getRetrieveEffectiveConfigMethod) + == null) { + DataCatalogGrpc.getRetrieveEffectiveConfigMethod = + getRetrieveEffectiveConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RetrieveEffectiveConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance())) + .setSchemaDescriptor( + new DataCatalogMethodDescriptorSupplier("RetrieveEffectiveConfig")) + .build(); + } + } + } + return getRetrieveEffectiveConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataCatalogStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2254,6 +2395,57 @@ default void importEntries( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getImportEntriesMethod(), responseObserver); } + + /** + * + * + *
+     * Sets the configuration related to the migration to Dataplex for an
+     * organization or project.
+     * 
+ */ + default void setConfig( + com.google.cloud.datacatalog.v1.SetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the configuration related to the migration from Data Catalog to
+     * Dataplex for a specific organization, including all the projects under it
+     * which have a separate configuration set.
+     * 
+ */ + default void retrieveConfig( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the effective configuration related to the migration from Data
+     * Catalog to Dataplex for a specific organization or project. If there is no
+     * specific configuration set for the resource, the setting is checked
+     * hierarchicahlly through the ancestors of the resource, starting from the
+     * resource itself.
+     * 
+ */ + default void retrieveEffectiveConfig( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveEffectiveConfigMethod(), responseObserver); + } } /** @@ -3001,6 +3193,62 @@ public void importEntries( request, responseObserver); } + + /** + * + * + *
+     * Sets the configuration related to the migration to Dataplex for an
+     * organization or project.
+     * 
+ */ + public void setConfig( + com.google.cloud.datacatalog.v1.SetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieves the configuration related to the migration from Data Catalog to
+     * Dataplex for a specific organization, including all the projects under it
+     * which have a separate configuration set.
+     * 
+ */ + public void retrieveConfig( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the effective configuration related to the migration from Data
+     * Catalog to Dataplex for a specific organization or project. If there is no
+     * specific configuration set for the resource, the setting is checked
+     * hierarchicahlly through the ancestors of the resource, starting from the
+     * resource itself.
+     * 
+ */ + public void retrieveEffectiveConfig( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveEffectiveConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3628,6 +3876,52 @@ public com.google.longrunning.Operation importEntries( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportEntriesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Sets the configuration related to the migration to Dataplex for an
+     * organization or project.
+     * 
+ */ + public com.google.cloud.datacatalog.v1.MigrationConfig setConfig( + com.google.cloud.datacatalog.v1.SetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the configuration related to the migration from Data Catalog to
+     * Dataplex for a specific organization, including all the projects under it
+     * which have a separate configuration set.
+     * 
+ */ + public com.google.cloud.datacatalog.v1.OrganizationConfig retrieveConfig( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the effective configuration related to the migration from Data
+     * Catalog to Dataplex for a specific organization or project. If there is no
+     * specific configuration set for the resource, the setting is checked
+     * hierarchicahlly through the ancestors of the resource, starting from the
+     * resource itself.
+     * 
+ */ + public com.google.cloud.datacatalog.v1.MigrationConfig retrieveEffectiveConfig( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveEffectiveConfigMethod(), getCallOptions(), request); + } } /** @@ -4282,6 +4576,56 @@ public com.google.common.util.concurrent.ListenableFuture + * Sets the configuration related to the migration to Dataplex for an + * organization or project. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datacatalog.v1.MigrationConfig> + setConfig(com.google.cloud.datacatalog.v1.SetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the configuration related to the migration from Data Catalog to
+     * Dataplex for a specific organization, including all the projects under it
+     * which have a separate configuration set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datacatalog.v1.OrganizationConfig> + retrieveConfig(com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the effective configuration related to the migration from Data
+     * Catalog to Dataplex for a specific organization or project. If there is no
+     * specific configuration set for the resource, the setting is checked
+     * hierarchicahlly through the ancestors of the resource, starting from the
+     * resource itself.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datacatalog.v1.MigrationConfig> + retrieveEffectiveConfig( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveEffectiveConfigMethod(), getCallOptions()), request); + } } private static final int METHODID_SEARCH_CATALOG = 0; @@ -4318,6 +4662,9 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4529,6 +4876,24 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.datacatalog.v1.ImportEntriesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SET_CONFIG: + serviceImpl.setConfig( + (com.google.cloud.datacatalog.v1.SetConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RETRIEVE_CONFIG: + serviceImpl.retrieveConfig( + (com.google.cloud.datacatalog.v1.RetrieveConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RETRIEVE_EFFECTIVE_CONFIG: + serviceImpl.retrieveEffectiveConfig( + (com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -4766,6 +5131,26 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.datacatalog.v1.ImportEntriesRequest, com.google.longrunning.Operation>(service, METHODID_IMPORT_ENTRIES))) + .addMethod( + getSetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datacatalog.v1.SetConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig>(service, METHODID_SET_CONFIG))) + .addMethod( + getRetrieveConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datacatalog.v1.RetrieveConfigRequest, + com.google.cloud.datacatalog.v1.OrganizationConfig>( + service, METHODID_RETRIEVE_CONFIG))) + .addMethod( + getRetrieveEffectiveConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, + com.google.cloud.datacatalog.v1.MigrationConfig>( + service, METHODID_RETRIEVE_EFFECTIVE_CONFIG))) .build(); } @@ -4851,6 +5236,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIamPolicyMethod()) .addMethod(getTestIamPermissionsMethod()) .addMethod(getImportEntriesMethod()) + .addMethod(getSetConfigMethod()) + .addMethod(getRetrieveConfigMethod()) + .addMethod(getRetrieveEffectiveConfigMethod()) .build(); } } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java index 9b556d1dccc5..81ee00e2e775 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java @@ -66,13 +66,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onSpec.DatabaseType\"F\n\014DatabaseType\022\035\n\031D" + "ATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES\020\001" + "\022\t\n\005MYSQL\020\002\"1\n\023BigQueryRoutineSpec\022\032\n\022im" - + "ported_libraries\030\001 \003(\tB\325\001\n\037com.google.cl" + + "ported_libraries\030\001 \003(\tB\322\001\n\037com.google.cl" + "oud.datacatalog.v1B\rBigQueryProtoP\001ZAclo" + "ud.google.com/go/datacatalog/apiv1/datac" - + "atalogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud" - + ".DataCatalog.V1\312\002\033Google\\Cloud\\DataCatal" - + "og\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006" - + "proto3" + + "atalogpb;datacatalogpb\252\002\033Google.Cloud.Da" + + "taCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\" + + "V1\352\002\036Google::Cloud::DataCatalog::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java new file mode 100644 index 000000000000..daffe156c1f2 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java @@ -0,0 +1,180 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Configuration related to the opt-in status for the UI switch to Dataplex.
+ * 
+ * + * Protobuf enum {@code google.cloud.datacatalog.v1.CatalogUIExperience} + */ +public enum CatalogUIExperience implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. The default UI is Dataplex.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; + */ + CATALOG_UI_EXPERIENCE_UNSPECIFIED(0), + /** + * + * + *
+   * The UI is Dataplex.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_ENABLED = 1; + */ + CATALOG_UI_EXPERIENCE_ENABLED(1), + /** + * + * + *
+   * The UI is Data Catalog.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_DISABLED = 2; + */ + CATALOG_UI_EXPERIENCE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. The default UI is Dataplex.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; + */ + public static final int CATALOG_UI_EXPERIENCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The UI is Dataplex.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_ENABLED = 1; + */ + public static final int CATALOG_UI_EXPERIENCE_ENABLED_VALUE = 1; + /** + * + * + *
+   * The UI is Data Catalog.
+   * 
+ * + * CATALOG_UI_EXPERIENCE_DISABLED = 2; + */ + public static final int CATALOG_UI_EXPERIENCE_DISABLED_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 CatalogUIExperience 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 CatalogUIExperience forNumber(int value) { + switch (value) { + case 0: + return CATALOG_UI_EXPERIENCE_UNSPECIFIED; + case 1: + return CATALOG_UI_EXPERIENCE_ENABLED; + case 2: + return CATALOG_UI_EXPERIENCE_DISABLED; + 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 CatalogUIExperience findValueByNumber(int number) { + return CatalogUIExperience.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.datacatalog.v1.Datacatalog.getDescriptor().getEnumTypes().get(2); + } + + private static final CatalogUIExperience[] VALUES = values(); + + public static CatalogUIExperience 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 CatalogUIExperience(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.CatalogUIExperience) +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java index be4c89fa847a..61d9856eef77 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java @@ -53,12 +53,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "D_SQL\020\010\022\n\n\006LOOKER\020\t\022\r\n\tVERTEX_AI\020\n*j\n\016Ma" + "nagingSystem\022\037\n\033MANAGING_SYSTEM_UNSPECIF" + "IED\020\000\022\034\n\030MANAGING_SYSTEM_DATAPLEX\020\001\022\031\n\025M" - + "ANAGING_SYSTEM_OTHER\020\002B\306\001\n\037com.google.cl" + + "ANAGING_SYSTEM_OTHER\020\002B\303\001\n\037com.google.cl" + "oud.datacatalog.v1P\001ZAcloud.google.com/g" + "o/datacatalog/apiv1/datacatalogpb;dataca" - + "talogpb\370\001\001\252\002\033Google.Cloud.DataCatalog.V1" - + "\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google:" - + ":Cloud::DataCatalog::V1b\006proto3" + + "talogpb\252\002\033Google.Cloud.DataCatalog.V1\312\002\033" + + "Google\\Cloud\\DataCatalog\\V1\352\002\036Google::Cl" + + "oud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java index 1446b36018c1..0feceeae7f17 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java @@ -56,13 +56,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vice\022\027\n\023SERVICE_UNSPECIFIED\020\000\022\021\n\rCLOUD_S" + "TORAGE\020\001\022\014\n\010BIGQUERY\020\002B\014\n\nproperties\"<\n\021" + "StorageProperties\022\024\n\014file_pattern\030\001 \003(\t\022" - + "\021\n\tfile_type\030\002 \001(\tB\327\001\n\037com.google.cloud." + + "\021\n\tfile_type\030\002 \001(\tB\324\001\n\037com.google.cloud." + "datacatalog.v1B\017DataSourceProtoP\001ZAcloud" + ".google.com/go/datacatalog/apiv1/datacat" - + "alogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.D" - + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" - + "\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006pr" - + "oto3" + + "alogpb;datacatalogpb\252\002\033Google.Cloud.Data" + + "Catalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1" + + "\352\002\036Google::Cloud::DataCatalog::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java index b2bde640c089..87c26d64c197 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java @@ -300,6 +300,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -527,323 +551,365 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ew\030\001 \001(\t\"v\n\010Contacts\022<\n\006people\030\001 \003(\0132,.g" + "oogle.cloud.datacatalog.v1.Contacts.Pers" + "on\032,\n\006Person\022\023\n\013designation\030\001 \001(\t\022\r\n\005ema" - + "il\030\002 \001(\t\"\216\002\n\nEntryGroup\022\021\n\004name\030\001 \001(\tB\003\340" + + "il\030\002 \001(\t\"\264\002\n\nEntryGroup\022\021\n\004name\030\001 \001(\tB\003\340" + "A\010\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030" + "\003 \001(\t\022S\n\027data_catalog_timestamps\030\004 \001(\0132-" + ".google.cloud.datacatalog.v1.SystemTimes" - + "tampsB\003\340A\003:m\352Aj\n%datacatalog.googleapis." - + "com/EntryGroup\022Aprojects/{project}/locat" - + "ions/{location}/entryGroups/{entry_group" - + "}\"\275\001\n\030CreateTagTemplateRequest\022>\n\006parent" - + "\030\001 \001(\tB.\340A\002\372A(\022&datacatalog.googleapis.c" - + "om/TagTemplate\022\034\n\017tag_template_id\030\003 \001(\tB" - + "\003\340A\002\022C\n\014tag_template\030\002 \001(\0132(.google.clou" - + "d.datacatalog.v1.TagTemplateB\003\340A\002\"U\n\025Get" - + "TagTemplateRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" - + "\n&datacatalog.googleapis.com/TagTemplate" - + "\"\220\001\n\030UpdateTagTemplateRequest\022C\n\014tag_tem" - + "plate\030\001 \001(\0132(.google.cloud.datacatalog.v" - + "1.TagTemplateB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"l\n\030DeleteTag" - + "TemplateRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&d" - + "atacatalog.googleapis.com/TagTemplate\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\002\"~\n\020CreateTagRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.googl" - + "eapis.com/Tag\0222\n\003tag\030\002 \001(\0132 .google.clou" - + "d.datacatalog.v1.TagB\003\340A\002\"w\n\020UpdateTagRe" - + "quest\0222\n\003tag\030\001 \001(\0132 .google.cloud.dataca" - + "talog.v1.TagB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMask\"H\n\020DeleteTagR" - + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \022\036datacatalo" - + "g.googleapis.com/Tag\"\323\001\n\035CreateTagTempla" - + "teFieldRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&" - + "datacatalog.googleapis.com/TagTemplate\022\"" - + "\n\025tag_template_field_id\030\002 \001(\tB\003\340A\002\022N\n\022ta" - + "g_template_field\030\003 \001(\0132-.google.cloud.da" - + "tacatalog.v1.TagTemplateFieldB\003\340A\002\"\350\001\n\035U" - + "pdateTagTemplateFieldRequest\022A\n\004name\030\001 \001" - + "(\tB3\340A\002\372A-\n+datacatalog.googleapis.com/T" - + "agTemplateField\022N\n\022tag_template_field\030\002 " - + "\001(\0132-.google.cloud.datacatalog.v1.TagTem" - + "plateFieldB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\001\"\212\001\n\035Rename" - + "TagTemplateFieldRequest\022A\n\004name\030\001 \001(\tB3\340" - + "A\002\372A-\n+datacatalog.googleapis.com/TagTem" - + "plateField\022&\n\031new_tag_template_field_id\030" - + "\002 \001(\tB\003\340A\002\"\236\001\n&RenameTagTemplateFieldEnu" - + "mValueRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4dat" - + "acatalog.googleapis.com/TagTemplateField" - + "EnumValue\022(\n\033new_enum_value_display_name" - + "\030\002 \001(\tB\003\340A\002\"v\n\035DeleteTagTemplateFieldReq" - + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datacatalog." - + "googleapis.com/TagTemplateField\022\022\n\005force" - + "\030\002 \001(\010B\003\340A\002\"p\n\017ListTagsRequest\0226\n\006parent" - + "\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.googleapis.c" - + "om/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"[\n\020ListTagsResponse\022.\n\004tags\030\001 \003(\0132" - + " .google.cloud.datacatalog.v1.Tag\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\344\001\n\024ReconcileTagsRequ" - + "est\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datacatalog" - + ".googleapis.com/Entry\022D\n\014tag_template\030\002 " - + "\001(\tB.\340A\002\372A(\n&datacatalog.googleapis.com/" - + "TagTemplate\022\034\n\024force_delete_missing\030\003 \001(" - + "\010\022.\n\004tags\030\004 \003(\0132 .google.cloud.datacatal" - + "og.v1.Tag\"k\n\025ReconcileTagsResponse\022\032\n\022cr" - + "eated_tags_count\030\001 \001(\003\022\032\n\022updated_tags_c" - + "ount\030\002 \001(\003\022\032\n\022deleted_tags_count\030\003 \001(\003\"\223" - + "\003\n\025ReconcileTagsMetadata\022U\n\005state\030\001 \001(\0162" - + "F.google.cloud.datacatalog.v1.ReconcileT" - + "agsMetadata.ReconciliationState\022N\n\006error" - + "s\030\002 \003(\0132>.google.cloud.datacatalog.v1.Re" - + "concileTagsMetadata.ErrorsEntry\032A\n\013Error" - + "sEntry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.goo" - + "gle.rpc.Status:\0028\001\"\217\001\n\023ReconciliationSta" - + "te\022$\n RECONCILIATION_STATE_UNSPECIFIED\020\000" - + "\022\031\n\025RECONCILIATION_QUEUED\020\001\022\036\n\032RECONCILI" - + "ATION_IN_PROGRESS\020\002\022\027\n\023RECONCILIATION_DO" - + "NE\020\003\"\251\001\n\022ListEntriesRequest\022=\n\006parent\030\001 " - + "\001(\tB-\340A\002\372A\'\n%datacatalog.googleapis.com/" - + "EntryGroup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022-\n\tread_mask\030\004 \001(\0132\032.google.pr" - + "otobuf.FieldMask\"c\n\023ListEntriesResponse\022" - + "3\n\007entries\030\001 \003(\0132\".google.cloud.datacata" - + "log.v1.Entry\022\027\n\017next_page_token\030\002 \001(\t\"J\n" - + "\020StarEntryRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"\023\n\021Sta" - + "rEntryResponse\"L\n\022UnstarEntryRequest\0226\n\004" - + "name\030\001 \001(\tB(\340A\002\372A\"\n datacatalog.googleap" - + "is.com/Entry\"\025\n\023UnstarEntryResponse\"\212\001\n\024" - + "ImportEntriesRequest\0228\n\006parent\030\001 \001(\tB(\340A" - + "\002\372A\"\022 datacatalog.googleapis.com/Entry\022\031" - + "\n\017gcs_bucket_path\030\002 \001(\tH\000\022\023\n\006job_id\030\003 \001(" - + "\tB\003\340A\001B\010\n\006source\"\225\001\n\025ImportEntriesRespon" - + "se\022#\n\026upserted_entries_count\030\005 \001(\003H\000\210\001\001\022" - + "\"\n\025deleted_entries_count\030\006 \001(\003H\001\210\001\001B\031\n\027_" - + "upserted_entries_countB\030\n\026_deleted_entri" - + "es_count\"\210\002\n\025ImportEntriesMetadata\022M\n\005st" - + "ate\030\001 \001(\0162>.google.cloud.datacatalog.v1." - + "ImportEntriesMetadata.ImportState\022\"\n\006err" - + "ors\030\002 \003(\0132\022.google.rpc.Status\"|\n\013ImportS" - + "tate\022\034\n\030IMPORT_STATE_UNSPECIFIED\020\000\022\021\n\rIM" - + "PORT_QUEUED\020\001\022\026\n\022IMPORT_IN_PROGRESS\020\002\022\017\n" - + "\013IMPORT_DONE\020\003\022\023\n\017IMPORT_OBSOLETE\020\004\"\235\001\n\032" - + "ModifyEntryOverviewRequest\0226\n\004name\030\001 \001(\t" - + "B(\340A\002\372A\"\n datacatalog.googleapis.com/Ent" - + "ry\022G\n\016entry_overview\030\002 \001(\0132*.google.clou" - + "d.datacatalog.v1.EntryOverviewB\003\340A\002\"\222\001\n\032" - + "ModifyEntryContactsRequest\0226\n\004name\030\001 \001(\t" - + "B(\340A\002\372A\"\n datacatalog.googleapis.com/Ent" - + "ry\022<\n\010contacts\030\002 \001(\0132%.google.cloud.data" - + "catalog.v1.ContactsB\003\340A\002*\272\002\n\tEntryType\022\032" - + "\n\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n\005TABLE\020\002\022\t\n" - + "\005MODEL\020\005\022\017\n\013DATA_STREAM\020\003\022\013\n\007FILESET\020\004\022\013" - + "\n\007CLUSTER\020\006\022\014\n\010DATABASE\020\007\022\032\n\026DATA_SOURCE" - + "_CONNECTION\020\010\022\013\n\007ROUTINE\020\t\022\010\n\004LAKE\020\n\022\010\n\004" - + "ZONE\020\013\022\013\n\007SERVICE\020\016\022\023\n\017DATABASE_SCHEMA\020\017" - + "\022\r\n\tDASHBOARD\020\020\022\013\n\007EXPLORE\020\021\022\010\n\004LOOK\020\022\022\030" - + "\n\024FEATURE_ONLINE_STORE\020\023\022\020\n\014FEATURE_VIEW" - + "\020\024\022\021\n\rFEATURE_GROUP\020\0252\300;\n\013DataCatalog\022\243\001" - + "\n\rSearchCatalog\0221.google.cloud.datacatal" - + "og.v1.SearchCatalogRequest\0322.google.clou" - + "d.datacatalog.v1.SearchCatalogResponse\"+" - + "\332A\013scope,query\202\323\344\223\002\027\"\022/v1/catalog:search" - + ":\001*\022\333\001\n\020CreateEntryGroup\0224.google.cloud." - + "datacatalog.v1.CreateEntryGroupRequest\032\'" - + ".google.cloud.datacatalog.v1.EntryGroup\"" - + "h\332A!parent,entry_group_id,entry_group\202\323\344" - + "\223\002>\"//v1/{parent=projects/*/locations/*}" - + "/entryGroups:\013entry_group\022\274\001\n\rGetEntryGr" - + "oup\0221.google.cloud.datacatalog.v1.GetEnt" - + "ryGroupRequest\032\'.google.cloud.datacatalo" - + "g.v1.EntryGroup\"O\332A\004name\332A\016name,read_mas" - + "k\202\323\344\223\0021\022//v1/{name=projects/*/locations/" - + "*/entryGroups/*}\022\353\001\n\020UpdateEntryGroup\0224." - + "google.cloud.datacatalog.v1.UpdateEntryG" - + "roupRequest\032\'.google.cloud.datacatalog.v" - + "1.EntryGroup\"x\332A\013entry_group\332A\027entry_gro" - + "up,update_mask\202\323\344\223\002J2;/v1/{entry_group.n" - + "ame=projects/*/locations/*/entryGroups/*" - + "}:\013entry_group\022\240\001\n\020DeleteEntryGroup\0224.go" - + "ogle.cloud.datacatalog.v1.DeleteEntryGro" - + "upRequest\032\026.google.protobuf.Empty\">\332A\004na" - + "me\202\323\344\223\0021*//v1/{name=projects/*/locations" - + "/*/entryGroups/*}\022\276\001\n\017ListEntryGroups\0223." - + "google.cloud.datacatalog.v1.ListEntryGro" - + "upsRequest\0324.google.cloud.datacatalog.v1" - + ".ListEntryGroupsResponse\"@\332A\006parent\202\323\344\223\002" - + "1\022//v1/{parent=projects/*/locations/*}/e" - + "ntryGroups\022\304\001\n\013CreateEntry\022/.google.clou" - + "d.datacatalog.v1.CreateEntryRequest\032\".go" - + "ogle.cloud.datacatalog.v1.Entry\"`\332A\025pare" - + "nt,entry_id,entry\202\323\344\223\002B\"9/v1/{parent=pro" - + "jects/*/locations/*/entryGroups/*}/entri" - + "es:\005entry\022\316\001\n\013UpdateEntry\022/.google.cloud" - + ".datacatalog.v1.UpdateEntryRequest\032\".goo" - + "gle.cloud.datacatalog.v1.Entry\"j\332A\005entry" - + "\332A\021entry,update_mask\202\323\344\223\002H2?/v1/{entry.n" - + "ame=projects/*/locations/*/entryGroups/*" - + "/entries/*}:\005entry\022\240\001\n\013DeleteEntry\022/.goo" - + "gle.cloud.datacatalog.v1.DeleteEntryRequ" - + "est\032\026.google.protobuf.Empty\"H\332A\004name\202\323\344\223" - + "\002;*9/v1/{name=projects/*/locations/*/ent" - + "ryGroups/*/entries/*}\022\246\001\n\010GetEntry\022,.goo" - + "gle.cloud.datacatalog.v1.GetEntryRequest" - + "\032\".google.cloud.datacatalog.v1.Entry\"H\332A" - + "\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locati" - + "ons/*/entryGroups/*/entries/*}\022~\n\013Lookup" - + "Entry\022/.google.cloud.datacatalog.v1.Look" - + "upEntryRequest\032\".google.cloud.datacatalo" - + "g.v1.Entry\"\032\202\323\344\223\002\024\022\022/v1/entries:lookup\022\274" - + "\001\n\013ListEntries\022/.google.cloud.datacatalo" - + "g.v1.ListEntriesRequest\0320.google.cloud.d" - + "atacatalog.v1.ListEntriesResponse\"J\332A\006pa" - + "rent\202\323\344\223\002;\0229/v1/{parent=projects/*/locat" - + "ions/*/entryGroups/*}/entries\022\324\001\n\023Modify" - + "EntryOverview\0227.google.cloud.datacatalog" - + ".v1.ModifyEntryOverviewRequest\032*.google." - + "cloud.datacatalog.v1.EntryOverview\"X\202\323\344\223" - + "\002R\"M/v1/{name=projects/*/locations/*/ent" - + "ryGroups/*/entries/*}:modifyEntryOvervie" - + "w:\001*\022\317\001\n\023ModifyEntryContacts\0227.google.cl" - + "oud.datacatalog.v1.ModifyEntryContactsRe" - + "quest\032%.google.cloud.datacatalog.v1.Cont" - + "acts\"X\202\323\344\223\002R\"M/v1/{name=projects/*/locat" - + "ions/*/entryGroups/*/entries/*}:modifyEn", - "tryContacts:\001*\022\342\001\n\021CreateTagTemplate\0225.g" - + "oogle.cloud.datacatalog.v1.CreateTagTemp" - + "lateRequest\032(.google.cloud.datacatalog.v" - + "1.TagTemplate\"l\332A#parent,tag_template_id" - + ",tag_template\202\323\344\223\002@\"0/v1/{parent=project" - + "s/*/locations/*}/tagTemplates:\014tag_templ" - + "ate\022\257\001\n\016GetTagTemplate\0222.google.cloud.da" - + "tacatalog.v1.GetTagTemplateRequest\032(.goo" - + "gle.cloud.datacatalog.v1.TagTemplate\"?\332A" - + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locati" - + "ons/*/tagTemplates/*}\022\363\001\n\021UpdateTagTempl" - + "ate\0225.google.cloud.datacatalog.v1.Update" - + "TagTemplateRequest\032(.google.cloud.dataca" - + "talog.v1.TagTemplate\"}\332A\014tag_template\332A\030" - + "tag_template,update_mask\202\323\344\223\002M2=/v1/{tag" - + "_template.name=projects/*/locations/*/ta" - + "gTemplates/*}:\014tag_template\022\251\001\n\021DeleteTa" - + "gTemplate\0225.google.cloud.datacatalog.v1." - + "DeleteTagTemplateRequest\032\026.google.protob" - + "uf.Empty\"E\332A\nname,force\202\323\344\223\0022*0/v1/{name" - + "=projects/*/locations/*/tagTemplates/*}\022" - + "\215\002\n\026CreateTagTemplateField\022:.google.clou" - + "d.datacatalog.v1.CreateTagTemplateFieldR" - + "equest\032-.google.cloud.datacatalog.v1.Tag" - + "TemplateField\"\207\001\332A/parent,tag_template_f" - + "ield_id,tag_template_field\202\323\344\223\002O\"9/v1/{p" - + "arent=projects/*/locations/*/tagTemplate" - + "s/*}/fields:\022tag_template_field\022\233\002\n\026Upda" - + "teTagTemplateField\022:.google.cloud.dataca" - + "talog.v1.UpdateTagTemplateFieldRequest\032-" - + ".google.cloud.datacatalog.v1.TagTemplate" - + "Field\"\225\001\332A\027name,tag_template_field\332A#nam" - + "e,tag_template_field,update_mask\202\323\344\223\002O29" + + "tampsB\003\340A\003\022$\n\027transferred_to_dataplex\030\t " + + "\001(\010B\003\340A\001:m\352Aj\n%datacatalog.googleapis.co" + + "m/EntryGroup\022Aprojects/{project}/locatio" + + "ns/{location}/entryGroups/{entry_group}\"" + + "\275\001\n\030CreateTagTemplateRequest\022>\n\006parent\030\001" + + " \001(\tB.\340A\002\372A(\022&datacatalog.googleapis.com" + + "/TagTemplate\022\034\n\017tag_template_id\030\003 \001(\tB\003\340" + + "A\002\022C\n\014tag_template\030\002 \001(\0132(.google.cloud." + + "datacatalog.v1.TagTemplateB\003\340A\002\"U\n\025GetTa" + + "gTemplateRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" + + "datacatalog.googleapis.com/TagTemplate\"\220" + + "\001\n\030UpdateTagTemplateRequest\022C\n\014tag_templ" + + "ate\030\001 \001(\0132(.google.cloud.datacatalog.v1." + + "TagTemplateB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"l\n\030DeleteTagTe" + + "mplateRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&dat" + + "acatalog.googleapis.com/TagTemplate\022\022\n\005f" + + "orce\030\002 \001(\010B\003\340A\002\"~\n\020CreateTagRequest\0226\n\006p" + + "arent\030\001 \001(\tB&\340A\002\372A \022\036datacatalog.googlea" + + "pis.com/Tag\0222\n\003tag\030\002 \001(\0132 .google.cloud." + + "datacatalog.v1.TagB\003\340A\002\"w\n\020UpdateTagRequ" + + "est\0222\n\003tag\030\001 \001(\0132 .google.cloud.datacata" + + "log.v1.TagB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\"H\n\020DeleteTagReq" + + "uest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \022\036datacatalog." + + "googleapis.com/Tag\"\323\001\n\035CreateTagTemplate" + + "FieldRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&da" + + "tacatalog.googleapis.com/TagTemplate\022\"\n\025" + + "tag_template_field_id\030\002 \001(\tB\003\340A\002\022N\n\022tag_" + + "template_field\030\003 \001(\0132-.google.cloud.data" + + "catalog.v1.TagTemplateFieldB\003\340A\002\"\350\001\n\035Upd" + + "ateTagTemplateFieldRequest\022A\n\004name\030\001 \001(\t" + + "B3\340A\002\372A-\n+datacatalog.googleapis.com/Tag" + + "TemplateField\022N\n\022tag_template_field\030\002 \001(" + + "\0132-.google.cloud.datacatalog.v1.TagTempl" + + "ateFieldB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\001\"\212\001\n\035RenameTa" + + "gTemplateFieldRequest\022A\n\004name\030\001 \001(\tB3\340A\002" + + "\372A-\n+datacatalog.googleapis.com/TagTempl" + + "ateField\022&\n\031new_tag_template_field_id\030\002 " + + "\001(\tB\003\340A\002\"\236\001\n&RenameTagTemplateFieldEnumV" + + "alueRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4datac" + + "atalog.googleapis.com/TagTemplateFieldEn" + + "umValue\022(\n\033new_enum_value_display_name\030\002" + + " \001(\tB\003\340A\002\"v\n\035DeleteTagTemplateFieldReque" + + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datacatalog.go" + + "ogleapis.com/TagTemplateField\022\022\n\005force\030\002" + + " \001(\010B\003\340A\002\"p\n\017ListTagsRequest\0226\n\006parent\030\001" + + " \001(\tB&\340A\002\372A \022\036datacatalog.googleapis.com" + + "/Tag\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"[\n\020ListTagsResponse\022.\n\004tags\030\001 \003(\0132 ." + + "google.cloud.datacatalog.v1.Tag\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\344\001\n\024ReconcileTagsReques" + + "t\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datacatalog.g" + + "oogleapis.com/Entry\022D\n\014tag_template\030\002 \001(" + + "\tB.\340A\002\372A(\n&datacatalog.googleapis.com/Ta" + + "gTemplate\022\034\n\024force_delete_missing\030\003 \001(\010\022" + + ".\n\004tags\030\004 \003(\0132 .google.cloud.datacatalog" + + ".v1.Tag\"k\n\025ReconcileTagsResponse\022\032\n\022crea" + + "ted_tags_count\030\001 \001(\003\022\032\n\022updated_tags_cou" + + "nt\030\002 \001(\003\022\032\n\022deleted_tags_count\030\003 \001(\003\"\223\003\n" + + "\025ReconcileTagsMetadata\022U\n\005state\030\001 \001(\0162F." + + "google.cloud.datacatalog.v1.ReconcileTag" + + "sMetadata.ReconciliationState\022N\n\006errors\030" + + "\002 \003(\0132>.google.cloud.datacatalog.v1.Reco" + + "ncileTagsMetadata.ErrorsEntry\032A\n\013ErrorsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.googl" + + "e.rpc.Status:\0028\001\"\217\001\n\023ReconciliationState" + + "\022$\n RECONCILIATION_STATE_UNSPECIFIED\020\000\022\031" + + "\n\025RECONCILIATION_QUEUED\020\001\022\036\n\032RECONCILIAT" + + "ION_IN_PROGRESS\020\002\022\027\n\023RECONCILIATION_DONE" + + "\020\003\"\251\001\n\022ListEntriesRequest\022=\n\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\n%datacatalog.googleapis.com/En" + + "tryGroup\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022-\n\tread_mask\030\004 \001(\0132\032.google.prot" + + "obuf.FieldMask\"c\n\023ListEntriesResponse\0223\n" + + "\007entries\030\001 \003(\0132\".google.cloud.datacatalo" + + "g.v1.Entry\022\027\n\017next_page_token\030\002 \001(\t\"J\n\020S" + + "tarEntryRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n d" + + "atacatalog.googleapis.com/Entry\"\023\n\021StarE" + + "ntryResponse\"L\n\022UnstarEntryRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n datacatalog.googleapis" + + ".com/Entry\"\025\n\023UnstarEntryResponse\"\212\001\n\024Im" + + "portEntriesRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372" + + "A\"\022 datacatalog.googleapis.com/Entry\022\031\n\017" + + "gcs_bucket_path\030\002 \001(\tH\000\022\023\n\006job_id\030\003 \001(\tB" + + "\003\340A\001B\010\n\006source\"\225\001\n\025ImportEntriesResponse" + + "\022#\n\026upserted_entries_count\030\005 \001(\003H\000\210\001\001\022\"\n" + + "\025deleted_entries_count\030\006 \001(\003H\001\210\001\001B\031\n\027_up" + + "serted_entries_countB\030\n\026_deleted_entries" + + "_count\"\210\002\n\025ImportEntriesMetadata\022M\n\005stat" + + "e\030\001 \001(\0162>.google.cloud.datacatalog.v1.Im" + + "portEntriesMetadata.ImportState\022\"\n\006error" + + "s\030\002 \003(\0132\022.google.rpc.Status\"|\n\013ImportSta" + + "te\022\034\n\030IMPORT_STATE_UNSPECIFIED\020\000\022\021\n\rIMPO" + + "RT_QUEUED\020\001\022\026\n\022IMPORT_IN_PROGRESS\020\002\022\017\n\013I" + + "MPORT_DONE\020\003\022\023\n\017IMPORT_OBSOLETE\020\004\"\235\001\n\032Mo" + + "difyEntryOverviewRequest\0226\n\004name\030\001 \001(\tB(" + + "\340A\002\372A\"\n datacatalog.googleapis.com/Entry" + + "\022G\n\016entry_overview\030\002 \001(\0132*.google.cloud." + + "datacatalog.v1.EntryOverviewB\003\340A\002\"\222\001\n\032Mo" + + "difyEntryContactsRequest\0226\n\004name\030\001 \001(\tB(" + + "\340A\002\372A\"\n datacatalog.googleapis.com/Entry" + + "\022<\n\010contacts\030\002 \001(\0132%.google.cloud.dataca" + + "talog.v1.ContactsB\003\340A\002\"\336\001\n\020SetConfigRequ" + + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022S\n\026tag_template_m" + + "igration\030\002 \001(\01621.google.cloud.datacatalo" + + "g.v1.TagTemplateMigrationH\000\022Q\n\025catalog_u" + + "i_experience\030\003 \001(\01620.google.cloud.dataca" + + "talog.v1.CatalogUIExperienceH\000B\017\n\rconfig" + + "uration\"*\n\025RetrieveConfigRequest\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\"3\n\036RetrieveEffectiveConfigRe" + + "quest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\276\001\n\022Organizatio" + + "nConfig\022K\n\006config\030\001 \003(\0132;.google.cloud.d" + + "atacatalog.v1.OrganizationConfig.ConfigE" + + "ntry\032[\n\013ConfigEntry\022\013\n\003key\030\001 \001(\t\022;\n\005valu" + + "e\030\002 \001(\0132,.google.cloud.datacatalog.v1.Mi" + + "grationConfig:\0028\001\"\265\001\n\017MigrationConfig\022Q\n" + + "\026tag_template_migration\030\001 \001(\01621.google.c" + + "loud.datacatalog.v1.TagTemplateMigration" + + "\022O\n\025catalog_ui_experience\030\002 \001(\01620.google" + + ".cloud.datacatalog.v1.CatalogUIExperienc" + + "e*\272\002\n\tEntryType\022\032\n\026ENTRY_TYPE_UNSPECIFIE" + + "D\020\000\022\t\n\005TABLE\020\002\022\t\n\005MODEL\020\005\022\017\n\013DATA_STREAM" + + "\020\003\022\013\n\007FILESET\020\004\022\013\n\007CLUSTER\020\006\022\014\n\010DATABASE" + + "\020\007\022\032\n\026DATA_SOURCE_CONNECTION\020\010\022\013\n\007ROUTIN" + + "E\020\t\022\010\n\004LAKE\020\n\022\010\n\004ZONE\020\013\022\013\n\007SERVICE\020\016\022\023\n\017" + + "DATABASE_SCHEMA\020\017\022\r\n\tDASHBOARD\020\020\022\013\n\007EXPL" + + "ORE\020\021\022\010\n\004LOOK\020\022\022\030\n\024FEATURE_ONLINE_STORE\020" + + "\023\022\020\n\014FEATURE_VIEW\020\024\022\021\n\rFEATURE_GROUP\020\025*\207" + + "\001\n\024TagTemplateMigration\022&\n\"TAG_TEMPLATE_" + + "MIGRATION_UNSPECIFIED\020\000\022\"\n\036TAG_TEMPLATE_" + + "MIGRATION_ENABLED\020\001\022#\n\037TAG_TEMPLATE_MIGR" + + "ATION_DISABLED\020\002*\203\001\n\023CatalogUIExperience" + + "\022%\n!CATALOG_UI_EXPERIENCE_UNSPECIFIED\020\000\022" + + "!\n\035CATALOG_UI_EXPERIENCE_ENABLED\020\001\022\"\n\036CA" + + "TALOG_UI_EXPERIENCE_DISABLED\020\0022\336@\n\013DataC" + + "atalog\022\243\001\n\rSearchCatalog\0221.google.cloud." + + "datacatalog.v1.SearchCatalogRequest\0322.go" + + "ogle.cloud.datacatalog.v1.SearchCatalogR" + + "esponse\"+\332A\013scope,query\202\323\344\223\002\027\"\022/v1/catal" + + "og:search:\001*\022\333\001\n\020CreateEntryGroup\0224.goog" + + "le.cloud.datacatalog.v1.CreateEntryGroup" + + "Request\032\'.google.cloud.datacatalog.v1.En" + + "tryGroup\"h\332A!parent,entry_group_id,entry" + + "_group\202\323\344\223\002>\"//v1/{parent=projects/*/loc" + + "ations/*}/entryGroups:\013entry_group\022\274\001\n\rG" + + "etEntryGroup\0221.google.cloud.datacatalog." + + "v1.GetEntryGroupRequest\032\'.google.cloud.d" + + "atacatalog.v1.EntryGroup\"O\332A\004name\332A\016name" + + ",read_mask\202\323\344\223\0021\022//v1/{name=projects/*/l" + + "ocations/*/entryGroups/*}\022\353\001\n\020UpdateEntr" + + "yGroup\0224.google.cloud.datacatalog.v1.Upd" + + "ateEntryGroupRequest\032\'.google.cloud.data" + + "catalog.v1.EntryGroup\"x\332A\013entry_group\332A\027" + + "entry_group,update_mask\202\323\344\223\002J2;/v1/{entr" + + "y_group.name=projects/*/locations/*/entr" + + "yGroups/*}:\013entry_group\022\240\001\n\020DeleteEntryG" + + "roup\0224.google.cloud.datacatalog.v1.Delet" + + "eEntryGroupRequest\032\026.google.protobuf.Emp" + + "ty\">\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/" + + "locations/*/entryGroups/*}\022\276\001\n\017ListEntry" + + "Groups\0223.google.cloud.datacatalog.v1.Lis" + + "tEntryGroupsRequest\0324.google.cloud.datac" + + "atalog.v1.ListEntryGroupsResponse\"@\332A\006pa" + + "rent\202\323\344\223\0021\022//v1/{parent=projects/*/locat" + + "ions/*}/entryGroups\022\304\001\n\013CreateEntry\022/.go" + + "ogle.cloud.datacatalog.v1.CreateEntryReq" + + "uest\032\".google.cloud.datacatalog.v1.Entry" + + "\"`\332A\025parent,entry_id,entry\202\323\344\223\002B\"9/v1/{p" + + "arent=projects/*/locations/*/entryGroups" + + "/*}/entries:\005entry\022\316\001\n\013UpdateEntry\022/.goo" + + "gle.cloud.datacatalog.v1.UpdateEntryRequ" + + "est\032\".google.cloud.datacatalog.v1.Entry\"" + + "j\332A\005entry\332A\021entry,update_mask\202\323\344\223\002H2?/v1" + + "/{entry.name=projects/*/locations/*/entr" + + "yGroups/*/entries/*}:\005entry\022\240\001\n\013DeleteEn" + + "try\022/.google.cloud.datacatalog.v1.Delete", + "EntryRequest\032\026.google.protobuf.Empty\"H\332A" + + "\004name\202\323\344\223\002;*9/v1/{name=projects/*/locati" + + "ons/*/entryGroups/*/entries/*}\022\246\001\n\010GetEn" + + "try\022,.google.cloud.datacatalog.v1.GetEnt" + + "ryRequest\032\".google.cloud.datacatalog.v1." + + "Entry\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" + + "/*/locations/*/entryGroups/*/entries/*}\022" + + "~\n\013LookupEntry\022/.google.cloud.datacatalo" + + "g.v1.LookupEntryRequest\032\".google.cloud.d" + + "atacatalog.v1.Entry\"\032\202\323\344\223\002\024\022\022/v1/entries" + + ":lookup\022\274\001\n\013ListEntries\022/.google.cloud.d" + + "atacatalog.v1.ListEntriesRequest\0320.googl" + + "e.cloud.datacatalog.v1.ListEntriesRespon" + + "se\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=project" + + "s/*/locations/*/entryGroups/*}/entries\022\324" + + "\001\n\023ModifyEntryOverview\0227.google.cloud.da" + + "tacatalog.v1.ModifyEntryOverviewRequest\032" + + "*.google.cloud.datacatalog.v1.EntryOverv" + + "iew\"X\202\323\344\223\002R\"M/v1/{name=projects/*/locati" + + "ons/*/entryGroups/*/entries/*}:modifyEnt" + + "ryOverview:\001*\022\317\001\n\023ModifyEntryContacts\0227." + + "google.cloud.datacatalog.v1.ModifyEntryC" + + "ontactsRequest\032%.google.cloud.datacatalo" + + "g.v1.Contacts\"X\202\323\344\223\002R\"M/v1/{name=project" + + "s/*/locations/*/entryGroups/*/entries/*}" + + ":modifyEntryContacts:\001*\022\342\001\n\021CreateTagTem" + + "plate\0225.google.cloud.datacatalog.v1.Crea" + + "teTagTemplateRequest\032(.google.cloud.data" + + "catalog.v1.TagTemplate\"l\332A#parent,tag_te" + + "mplate_id,tag_template\202\323\344\223\002@\"0/v1/{paren" + + "t=projects/*/locations/*}/tagTemplates:\014" + + "tag_template\022\257\001\n\016GetTagTemplate\0222.google" + + ".cloud.datacatalog.v1.GetTagTemplateRequ" + + "est\032(.google.cloud.datacatalog.v1.TagTem" + + "plate\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects" + + "/*/locations/*/tagTemplates/*}\022\363\001\n\021Updat" + + "eTagTemplate\0225.google.cloud.datacatalog." + + "v1.UpdateTagTemplateRequest\032(.google.clo" + + "ud.datacatalog.v1.TagTemplate\"}\332A\014tag_te" + + "mplate\332A\030tag_template,update_mask\202\323\344\223\002M2" + + "=/v1/{tag_template.name=projects/*/locat" + + "ions/*/tagTemplates/*}:\014tag_template\022\251\001\n" + + "\021DeleteTagTemplate\0225.google.cloud.dataca" + + "talog.v1.DeleteTagTemplateRequest\032\026.goog" + + "le.protobuf.Empty\"E\332A\nname,force\202\323\344\223\0022*0" + "/v1/{name=projects/*/locations/*/tagTemp" - + "lates/*/fields/*}:\022tag_template_field\022\361\001" - + "\n\026RenameTagTemplateField\022:.google.cloud." - + "datacatalog.v1.RenameTagTemplateFieldReq" - + "uest\032-.google.cloud.datacatalog.v1.TagTe" - + "mplateField\"l\332A\036name,new_tag_template_fi" - + "eld_id\202\323\344\223\002E\"@/v1/{name=projects/*/locat" - + "ions/*/tagTemplates/*/fields/*}:rename:\001" - + "*\022\222\002\n\037RenameTagTemplateFieldEnumValue\022C." - + "google.cloud.datacatalog.v1.RenameTagTem" - + "plateFieldEnumValueRequest\032-.google.clou" - + "d.datacatalog.v1.TagTemplateField\"{\332A na" - + "me,new_enum_value_display_name\202\323\344\223\002R\"M/v" - + "1/{name=projects/*/locations/*/tagTempla" - + "tes/*/fields/*/enumValues/*}:rename:\001*\022\274" - + "\001\n\026DeleteTagTemplateField\022:.google.cloud" - + ".datacatalog.v1.DeleteTagTemplateFieldRe" - + "quest\032\026.google.protobuf.Empty\"N\332A\nname,f" - + "orce\202\323\344\223\002;*9/v1/{name=projects/*/locatio" - + "ns/*/tagTemplates/*/fields/*}\022\371\001\n\tCreate" - + "Tag\022-.google.cloud.datacatalog.v1.Create" - + "TagRequest\032 .google.cloud.datacatalog.v1" - + ".Tag\"\232\001\332A\nparent,tag\202\323\344\223\002\206\001\"@/v1/{parent" - + "=projects/*/locations/*/entryGroups/*/en" - + "tries/*}/tags:\003tagZ=\"6/v1/{parent=projec" - + "ts/*/locations/*/entryGroups/*}/tags:\003ta" - + "g\022\214\002\n\tUpdateTag\022-.google.cloud.datacatal" - + "og.v1.UpdateTagRequest\032 .google.cloud.da" - + "tacatalog.v1.Tag\"\255\001\332A\003tag\332A\017tag,update_m" - + "ask\202\323\344\223\002\216\0012D/v1/{tag.name=projects/*/loc" - + "ations/*/entryGroups/*/entries/*/tags/*}" - + ":\003tagZA2:/v1/{tag.name=projects/*/locati" - + "ons/*/entryGroups/*/tags/*}:\003tag\022\336\001\n\tDel" - + "eteTag\022-.google.cloud.datacatalog.v1.Del" - + "eteTagRequest\032\026.google.protobuf.Empty\"\211\001" - + "\332A\004name\202\323\344\223\002|*@/v1/{name=projects/*/loca" - + "tions/*/entryGroups/*/entries/*/tags/*}Z" - + "8*6/v1/{name=projects/*/locations/*/entr" - + "yGroups/*/tags/*}\022\365\001\n\010ListTags\022,.google." - + "cloud.datacatalog.v1.ListTagsRequest\032-.g" - + "oogle.cloud.datacatalog.v1.ListTagsRespo" - + "nse\"\213\001\332A\006parent\202\323\344\223\002|\022@/v1/{parent=proje" + + "lates/*}\022\215\002\n\026CreateTagTemplateField\022:.go" + + "ogle.cloud.datacatalog.v1.CreateTagTempl" + + "ateFieldRequest\032-.google.cloud.datacatal" + + "og.v1.TagTemplateField\"\207\001\332A/parent,tag_t" + + "emplate_field_id,tag_template_field\202\323\344\223\002" + + "O\"9/v1/{parent=projects/*/locations/*/ta" + + "gTemplates/*}/fields:\022tag_template_field" + + "\022\233\002\n\026UpdateTagTemplateField\022:.google.clo" + + "ud.datacatalog.v1.UpdateTagTemplateField" + + "Request\032-.google.cloud.datacatalog.v1.Ta" + + "gTemplateField\"\225\001\332A\027name,tag_template_fi" + + "eld\332A#name,tag_template_field,update_mas" + + "k\202\323\344\223\002O29/v1/{name=projects/*/locations/" + + "*/tagTemplates/*/fields/*}:\022tag_template" + + "_field\022\361\001\n\026RenameTagTemplateField\022:.goog" + + "le.cloud.datacatalog.v1.RenameTagTemplat" + + "eFieldRequest\032-.google.cloud.datacatalog" + + ".v1.TagTemplateField\"l\332A\036name,new_tag_te" + + "mplate_field_id\202\323\344\223\002E\"@/v1/{name=project" + + "s/*/locations/*/tagTemplates/*/fields/*}" + + ":rename:\001*\022\222\002\n\037RenameTagTemplateFieldEnu" + + "mValue\022C.google.cloud.datacatalog.v1.Ren" + + "ameTagTemplateFieldEnumValueRequest\032-.go" + + "ogle.cloud.datacatalog.v1.TagTemplateFie" + + "ld\"{\332A name,new_enum_value_display_name\202" + + "\323\344\223\002R\"M/v1/{name=projects/*/locations/*/" + + "tagTemplates/*/fields/*/enumValues/*}:re" + + "name:\001*\022\274\001\n\026DeleteTagTemplateField\022:.goo" + + "gle.cloud.datacatalog.v1.DeleteTagTempla" + + "teFieldRequest\032\026.google.protobuf.Empty\"N" + + "\332A\nname,force\202\323\344\223\002;*9/v1/{name=projects/" + + "*/locations/*/tagTemplates/*/fields/*}\022\371" + + "\001\n\tCreateTag\022-.google.cloud.datacatalog." + + "v1.CreateTagRequest\032 .google.cloud.datac" + + "atalog.v1.Tag\"\232\001\332A\nparent,tag\202\323\344\223\002\206\001\"@/v" + + "1/{parent=projects/*/locations/*/entryGr" + + "oups/*/entries/*}/tags:\003tagZ=\"6/v1/{pare" + + "nt=projects/*/locations/*/entryGroups/*}" + + "/tags:\003tag\022\214\002\n\tUpdateTag\022-.google.cloud." + + "datacatalog.v1.UpdateTagRequest\032 .google" + + ".cloud.datacatalog.v1.Tag\"\255\001\332A\003tag\332A\017tag" + + ",update_mask\202\323\344\223\002\216\0012D/v1/{tag.name=proje" + "cts/*/locations/*/entryGroups/*/entries/" - + "*}/tagsZ8\0226/v1/{parent=projects/*/locati" - + "ons/*/entryGroups/*}/tags\022\352\001\n\rReconcileT" - + "ags\0221.google.cloud.datacatalog.v1.Reconc" - + "ileTagsRequest\032\035.google.longrunning.Oper" - + "ation\"\206\001\312A.\n\025ReconcileTagsResponse\022\025Reco" - + "ncileTagsMetadata\202\323\344\223\002O\"J/v1/{parent=pro" - + "jects/*/locations/*/entryGroups/*/entrie" - + "s/*}/tags:reconcile:\001*\022\274\001\n\tStarEntry\022-.g" - + "oogle.cloud.datacatalog.v1.StarEntryRequ" - + "est\032..google.cloud.datacatalog.v1.StarEn" - + "tryResponse\"P\332A\004name\202\323\344\223\002C\">/v1/{name=pr" - + "ojects/*/locations/*/entryGroups/*/entri" - + "es/*}:star:\001*\022\304\001\n\013UnstarEntry\022/.google.c" - + "loud.datacatalog.v1.UnstarEntryRequest\0320" + + "*/tags/*}:\003tagZA2:/v1/{tag.name=projects" + + "/*/locations/*/entryGroups/*/tags/*}:\003ta" + + "g\022\336\001\n\tDeleteTag\022-.google.cloud.datacatal" + + "og.v1.DeleteTagRequest\032\026.google.protobuf" + + ".Empty\"\211\001\332A\004name\202\323\344\223\002|*@/v1/{name=projec" + + "ts/*/locations/*/entryGroups/*/entries/*" + + "/tags/*}Z8*6/v1/{name=projects/*/locatio" + + "ns/*/entryGroups/*/tags/*}\022\365\001\n\010ListTags\022" + + ",.google.cloud.datacatalog.v1.ListTagsRe" + + "quest\032-.google.cloud.datacatalog.v1.List" + + "TagsResponse\"\213\001\332A\006parent\202\323\344\223\002|\022@/v1/{par" + + "ent=projects/*/locations/*/entryGroups/*" + + "/entries/*}/tagsZ8\0226/v1/{parent=projects" + + "/*/locations/*/entryGroups/*}/tags\022\352\001\n\rR" + + "econcileTags\0221.google.cloud.datacatalog." + + "v1.ReconcileTagsRequest\032\035.google.longrun" + + "ning.Operation\"\206\001\312A.\n\025ReconcileTagsRespo" + + "nse\022\025ReconcileTagsMetadata\202\323\344\223\002O\"J/v1/{p" + + "arent=projects/*/locations/*/entryGroups" + + "/*/entries/*}/tags:reconcile:\001*\022\274\001\n\tStar" + + "Entry\022-.google.cloud.datacatalog.v1.Star" + + "EntryRequest\032..google.cloud.datacatalog." + + "v1.StarEntryResponse\"P\332A\004name\202\323\344\223\002C\">/v1" + + "/{name=projects/*/locations/*/entryGroup" + + "s/*/entries/*}:star:\001*\022\304\001\n\013UnstarEntry\022/" + ".google.cloud.datacatalog.v1.UnstarEntry" - + "Response\"R\332A\004name\202\323\344\223\002E\"@/v1/{name=proje" - + "cts/*/locations/*/entryGroups/*/entries/" - + "*}:unstar:\001*\022\362\001\n\014SetIamPolicy\022\".google.i" - + "am.v1.SetIamPolicyRequest\032\025.google.iam.v" - + "1.Policy\"\246\001\332A\017resource,policy\202\323\344\223\002\215\001\"A/v" - + "1/{resource=projects/*/locations/*/tagTe" - + "mplates/*}:setIamPolicy:\001*ZE\"@/v1/{resou" - + "rce=projects/*/locations/*/entryGroups/*" - + "}:setIamPolicy:\001*\022\274\002\n\014GetIamPolicy\022\".goo" - + "gle.iam.v1.GetIamPolicyRequest\032\025.google." - + "iam.v1.Policy\"\360\001\332A\010resource\202\323\344\223\002\336\001\"A/v1/" - + "{resource=projects/*/locations/*/tagTemp" - + "lates/*}:getIamPolicy:\001*ZE\"@/v1/{resourc" - + "e=projects/*/locations/*/entryGroups/*}:" - + "getIamPolicy:\001*ZO\"J/v1/{resource=project" - + "s/*/locations/*/entryGroups/*/entries/*}" - + ":getIamPolicy:\001*\022\343\002\n\022TestIamPermissions\022" - + "(.google.iam.v1.TestIamPermissionsReques" - + "t\032).google.iam.v1.TestIamPermissionsResp" - + "onse\"\367\001\202\323\344\223\002\360\001\"G/v1/{resource=projects/*" - + "/locations/*/tagTemplates/*}:testIamPerm" - + "issions:\001*ZK\"F/v1/{resource=projects/*/l" - + "ocations/*/entryGroups/*}:testIamPermiss" - + "ions:\001*ZU\"P/v1/{resource=projects/*/loca" - + "tions/*/entryGroups/*/entries/*}:testIam" - + "Permissions:\001*\022\337\001\n\rImportEntries\0221.googl" - + "e.cloud.datacatalog.v1.ImportEntriesRequ" - + "est\032\035.google.longrunning.Operation\"|\312A.\n" - + "\025ImportEntriesResponse\022\025ImportEntriesMet" - + "adata\202\323\344\223\002E\"@/v1/{parent=projects/*/loca" - + "tions/*/entryGroups/*}/entries:import:\001*" - + "\032N\312A\032datacatalog.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\212\003\n\037com.google.cloud.datacatalog.v1P\001ZA" - + "cloud.google.com/go/datacatalog/apiv1/da" - + "tacatalogpb;datacatalogpb\370\001\001\252\002\033Google.Cl" - + "oud.DataCatalog.V1\312\002\033Google\\Cloud\\DataCa" - + "talog\\V1\352\002\036Google::Cloud::DataCatalog::V" - + "1\352A\300\001\n4datacatalog.googleapis.com/TagTem" - + "plateFieldEnumValue\022\207\001projects/{project}" - + "/locations/{location}/tagTemplates/{tag_" - + "template}/fields/{tag_template_field_id}" - + "/enumValues/{enum_value_display_name}b\006p" - + "roto3" + + "Request\0320.google.cloud.datacatalog.v1.Un" + + "starEntryResponse\"R\332A\004name\202\323\344\223\002E\"@/v1/{n" + + "ame=projects/*/locations/*/entryGroups/*" + + "/entries/*}:unstar:\001*\022\362\001\n\014SetIamPolicy\022\"" + + ".google.iam.v1.SetIamPolicyRequest\032\025.goo" + + "gle.iam.v1.Policy\"\246\001\332A\017resource,policy\202\323" + + "\344\223\002\215\001\"A/v1/{resource=projects/*/location" + + "s/*/tagTemplates/*}:setIamPolicy:\001*ZE\"@/" + + "v1/{resource=projects/*/locations/*/entr" + + "yGroups/*}:setIamPolicy:\001*\022\274\002\n\014GetIamPol" + + "icy\022\".google.iam.v1.GetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"\360\001\332A\010resource\202\323\344\223" + + "\002\336\001\"A/v1/{resource=projects/*/locations/" + + "*/tagTemplates/*}:getIamPolicy:\001*ZE\"@/v1" + + "/{resource=projects/*/locations/*/entryG" + + "roups/*}:getIamPolicy:\001*ZO\"J/v1/{resourc" + + "e=projects/*/locations/*/entryGroups/*/e" + + "ntries/*}:getIamPolicy:\001*\022\343\002\n\022TestIamPer" + + "missions\022(.google.iam.v1.TestIamPermissi" + + "onsRequest\032).google.iam.v1.TestIamPermis" + + "sionsResponse\"\367\001\202\323\344\223\002\360\001\"G/v1/{resource=p" + + "rojects/*/locations/*/tagTemplates/*}:te" + + "stIamPermissions:\001*ZK\"F/v1/{resource=pro" + + "jects/*/locations/*/entryGroups/*}:testI" + + "amPermissions:\001*ZU\"P/v1/{resource=projec" + + "ts/*/locations/*/entryGroups/*/entries/*" + + "}:testIamPermissions:\001*\022\337\001\n\rImportEntrie" + + "s\0221.google.cloud.datacatalog.v1.ImportEn" + + "triesRequest\032\035.google.longrunning.Operat" + + "ion\"|\312A.\n\025ImportEntriesResponse\022\025ImportE" + + "ntriesMetadata\202\323\344\223\002E\"@/v1/{parent=projec" + + "ts/*/locations/*/entryGroups/*}/entries:" + + "import:\001*\022\327\001\n\tSetConfig\022-.google.cloud.d" + + "atacatalog.v1.SetConfigRequest\032,.google." + + "cloud.datacatalog.v1.MigrationConfig\"m\202\323" + + "\344\223\002g\"0/v1/{name=organizations/*/location" + + "s/*}:setConfig:\001*Z0\"+/v1/{name=projects/" + + "*/locations/*}:setConfig:\001*\022\264\001\n\016Retrieve" + + "Config\0222.google.cloud.datacatalog.v1.Ret" + + "rieveConfigRequest\032/.google.cloud.dataca" + + "talog.v1.OrganizationConfig\"=\202\323\344\223\0027\0225/v1" + + "/{name=organizations/*/locations/*}:retr" + + "ieveConfig\022\212\002\n\027RetrieveEffectiveConfig\022;" + + ".google.cloud.datacatalog.v1.RetrieveEff" + + "ectiveConfigRequest\032,.google.cloud.datac" + + "atalog.v1.MigrationConfig\"\203\001\202\323\344\223\002}\022>/v1/" + + "{name=organizations/*/locations/*}:retri" + + "eveEffectiveConfigZ;\0229/v1/{name=projects" + + "/*/locations/*}:retrieveEffectiveConfig\032" + + "N\312A\032datacatalog.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\207\003\n\037com.google.cloud.datacatalog.v1P\001ZAc" + + "loud.google.com/go/datacatalog/apiv1/dat" + + "acatalogpb;datacatalogpb\252\002\033Google.Cloud." + + "DataCatalog.V1\312\002\033Google\\Cloud\\DataCatalo" + + "g\\V1\352\002\036Google::Cloud::DataCatalog::V1\352A\300" + + "\001\n4datacatalog.googleapis.com/TagTemplat" + + "eFieldEnumValue\022\207\001projects/{project}/loc" + + "ations/{location}/tagTemplates/{tag_temp" + + "late}/fields/{tag_template_field_id}/enu" + + "mValues/{enum_value_display_name}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1246,7 +1312,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Description", "DataCatalogTimestamps", + "Name", + "DisplayName", + "Description", + "DataCatalogTimestamps", + "TransferredToDataplex", }); internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor = getDescriptor().getMessageTypes().get(33); @@ -1478,6 +1548,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Contacts", }); + internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor, + new java.lang.String[] { + "Name", "TagTemplateMigration", "CatalogUiExperience", "Configuration", + }); + internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor, + new java.lang.String[] { + "Config", + }); + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor = + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor, + new java.lang.String[] { + "TagTemplateMigration", "CatalogUiExperience", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java index 59439c86460e..72c8dcf4086b 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java @@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.cloud.datacatalog.v1.IntegratedSyst" + "em\022\034\n\024fully_qualified_name\030\034 \001(\t\022\035\n\025goog" + "le_cloud_resource\030\003 \001(\t\022\032\n\022data_catalog_" - + "entry\030\004 \001(\tB\331\001\n\037com.google.cloud.datacat" + + "entry\030\004 \001(\tB\326\001\n\037com.google.cloud.datacat" + "alog.v1B\021DataplexSpecProtoP\001ZAcloud.goog" + "le.com/go/datacatalog/apiv1/datacatalogp" - + "b;datacatalogpb\370\001\001\252\002\033Google.Cloud.DataCa" - + "talog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002" - + "\036Google::Cloud::DataCatalog::V1b\006proto3" + + "b;datacatalogpb\252\002\033Google.Cloud.DataCatal" + + "og.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Go" + + "ogle::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java index 2a7e3e419e9f..48e7c6e9c956 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.datacatalog.v1.TagB\003\340A\001B\007\n\005entry\"" + "T\n\010DumpItem\022@\n\014tagged_entry\030\001 \001(\0132(.goog" + "le.cloud.datacatalog.v1.TaggedEntryH\000B\006\n" - + "\004itemB\330\001\n\037com.google.cloud.datacatalog.v" + + "\004itemB\325\001\n\037com.google.cloud.datacatalog.v" + "1B\020DumpContentProtoP\001ZAcloud.google.com/" + "go/datacatalog/apiv1/datacatalogpb;datac" - + "atalogpb\370\001\001\252\002\033Google.Cloud.DataCatalog.V" - + "1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google" - + "::Cloud::DataCatalog::V1b\006proto3" + + "atalogpb\252\002\033Google.Cloud.DataCatalog.V1\312\002" + + "\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google::C" + + "loud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java index 360d6076883a..9b9c7f294dec 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java @@ -25,8 +25,8 @@ *
  * Entry group metadata.
  *
- * An `EntryGroup` resource represents a logical grouping of zero or more
- * Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
+ *  An `EntryGroup` resource represents a logical grouping of zero or more
+ *  Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
  * 
* * Protobuf type {@code google.cloud.datacatalog.v1.EntryGroup} @@ -291,6 +291,28 @@ public com.google.cloud.datacatalog.v1.SystemTimestamps getDataCatalogTimestamps : dataCatalogTimestamps_; } + public static final int TRANSFERRED_TO_DATAPLEX_FIELD_NUMBER = 9; + private boolean transferredToDataplex_ = false; + /** + * + * + *
+   * Optional. When set to [true], it means DataCatalog EntryGroup was
+   * transferred to Dataplex Catalog Service. It makes EntryGroup and its
+   * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
+   * its Entries can be created. After setting the flag to [true] it cannot be
+   * unset.
+   * 
+ * + * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transferredToDataplex. + */ + @java.lang.Override + public boolean getTransferredToDataplex() { + return transferredToDataplex_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -317,6 +339,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getDataCatalogTimestamps()); } + if (transferredToDataplex_ != false) { + output.writeBool(9, transferredToDataplex_); + } getUnknownFields().writeTo(output); } @@ -339,6 +364,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataCatalogTimestamps()); } + if (transferredToDataplex_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, transferredToDataplex_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -362,6 +390,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDataCatalogTimestamps()) { if (!getDataCatalogTimestamps().equals(other.getDataCatalogTimestamps())) return false; } + if (getTransferredToDataplex() != other.getTransferredToDataplex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -383,6 +412,8 @@ public int hashCode() { hash = (37 * hash) + DATA_CATALOG_TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getDataCatalogTimestamps().hashCode(); } + hash = (37 * hash) + TRANSFERRED_TO_DATAPLEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransferredToDataplex()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -489,8 +520,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Entry group metadata.
    *
-   * An `EntryGroup` resource represents a logical grouping of zero or more
-   * Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
+   *  An `EntryGroup` resource represents a logical grouping of zero or more
+   *  Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
    * 
* * Protobuf type {@code google.cloud.datacatalog.v1.EntryGroup} @@ -542,6 +573,7 @@ public Builder clear() { dataCatalogTimestampsBuilder_.dispose(); dataCatalogTimestampsBuilder_ = null; } + transferredToDataplex_ = false; return this; } @@ -595,6 +627,9 @@ private void buildPartial0(com.google.cloud.datacatalog.v1.EntryGroup result) { : dataCatalogTimestampsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.transferredToDataplex_ = transferredToDataplex_; + } result.bitField0_ |= to_bitField0_; } @@ -661,6 +696,9 @@ public Builder mergeFrom(com.google.cloud.datacatalog.v1.EntryGroup other) { if (other.hasDataCatalogTimestamps()) { mergeDataCatalogTimestamps(other.getDataCatalogTimestamps()); } + if (other.getTransferredToDataplex() != false) { + setTransferredToDataplex(other.getTransferredToDataplex()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -712,6 +750,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 72: + { + transferredToDataplex_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1288,6 +1332,71 @@ public Builder clearDataCatalogTimestamps() { return dataCatalogTimestampsBuilder_; } + private boolean transferredToDataplex_; + /** + * + * + *
+     * Optional. When set to [true], it means DataCatalog EntryGroup was
+     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
+     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
+     * its Entries can be created. After setting the flag to [true] it cannot be
+     * unset.
+     * 
+ * + * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transferredToDataplex. + */ + @java.lang.Override + public boolean getTransferredToDataplex() { + return transferredToDataplex_; + } + /** + * + * + *
+     * Optional. When set to [true], it means DataCatalog EntryGroup was
+     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
+     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
+     * its Entries can be created. After setting the flag to [true] it cannot be
+     * unset.
+     * 
+ * + * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The transferredToDataplex to set. + * @return This builder for chaining. + */ + public Builder setTransferredToDataplex(boolean value) { + + transferredToDataplex_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When set to [true], it means DataCatalog EntryGroup was
+     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
+     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
+     * its Entries can be created. After setting the flag to [true] it cannot be
+     * unset.
+     * 
+ * + * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTransferredToDataplex() { + bitField0_ = (bitField0_ & ~0x00000010); + transferredToDataplex_ = 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java index bf53c37b1f9d..954bdab2034e 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java @@ -151,4 +151,21 @@ public interface EntryGroupOrBuilder *
*/ com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getDataCatalogTimestampsOrBuilder(); + + /** + * + * + *
+   * Optional. When set to [true], it means DataCatalog EntryGroup was
+   * transferred to Dataplex Catalog Service. It makes EntryGroup and its
+   * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
+   * its Entries can be created. After setting the flag to [true] it cannot be
+   * unset.
+   * 
+ * + * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transferredToDataplex. + */ + boolean getTransferredToDataplex(); } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java index ab7b958cda67..7dbd2a2e43b8 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java @@ -55,12 +55,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003\340A\003\"\212\001\n\013GcsFileSpec\022\026\n\tfile_path\030\001 \001(\tB" + "\003\340A\002\022J\n\016gcs_timestamps\030\002 \001(\0132-.google.cl" + "oud.datacatalog.v1.SystemTimestampsB\003\340A\003" - + "\022\027\n\nsize_bytes\030\004 \001(\003B\003\340A\003B\306\001\n\037com.google" + + "\022\027\n\nsize_bytes\030\004 \001(\003B\003\340A\003B\303\001\n\037com.google" + ".cloud.datacatalog.v1P\001ZAcloud.google.co" + "m/go/datacatalog/apiv1/datacatalogpb;dat" - + "acatalogpb\370\001\001\252\002\033Google.Cloud.DataCatalog" - + ".V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Goog" - + "le::Cloud::DataCatalog::V1b\006proto3" + + "acatalogpb\252\002\033Google.Cloud.DataCatalog.V1" + + "\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google:" + + ":Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java new file mode 100644 index 000000000000..f0a77e8895d0 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java @@ -0,0 +1,765 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * The configuration related to the migration to Dataplex applied to an
+ * organization or project.
+ * It is the response message for
+ * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and
+ * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.MigrationConfig} + */ +public final class MigrationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.MigrationConfig) + MigrationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MigrationConfig.newBuilder() to construct. + private MigrationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MigrationConfig() { + tagTemplateMigration_ = 0; + catalogUiExperience_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MigrationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.MigrationConfig.class, + com.google.cloud.datacatalog.v1.MigrationConfig.Builder.class); + } + + public static final int TAG_TEMPLATE_MIGRATION_FIELD_NUMBER = 1; + private int tagTemplateMigration_ = 0; + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + @java.lang.Override + public int getTagTemplateMigrationValue() { + return tagTemplateMigration_; + } + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The tagTemplateMigration. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { + com.google.cloud.datacatalog.v1.TagTemplateMigration result = + com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber(tagTemplateMigration_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED + : result; + } + + public static final int CATALOG_UI_EXPERIENCE_FIELD_NUMBER = 2; + private int catalogUiExperience_ = 0; + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + @java.lang.Override + public int getCatalogUiExperienceValue() { + return catalogUiExperience_; + } + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The catalogUiExperience. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { + com.google.cloud.datacatalog.v1.CatalogUIExperience result = + com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber(catalogUiExperience_); + return result == null + ? com.google.cloud.datacatalog.v1.CatalogUIExperience.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 (tagTemplateMigration_ + != com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, tagTemplateMigration_); + } + if (catalogUiExperience_ + != com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, catalogUiExperience_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tagTemplateMigration_ + != com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, tagTemplateMigration_); + } + if (catalogUiExperience_ + != com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, catalogUiExperience_); + } + 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.datacatalog.v1.MigrationConfig)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.v1.MigrationConfig other = + (com.google.cloud.datacatalog.v1.MigrationConfig) obj; + + if (tagTemplateMigration_ != other.tagTemplateMigration_) return false; + if (catalogUiExperience_ != other.catalogUiExperience_) 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) + TAG_TEMPLATE_MIGRATION_FIELD_NUMBER; + hash = (53 * hash) + tagTemplateMigration_; + hash = (37 * hash) + CATALOG_UI_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + catalogUiExperience_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig 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.datacatalog.v1.MigrationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig 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.datacatalog.v1.MigrationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig 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.datacatalog.v1.MigrationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig 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.datacatalog.v1.MigrationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig 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.datacatalog.v1.MigrationConfig 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 configuration related to the migration to Dataplex applied to an
+   * organization or project.
+   * It is the response message for
+   * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and
+   * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.MigrationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.MigrationConfig) + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.MigrationConfig.class, + com.google.cloud.datacatalog.v1.MigrationConfig.Builder.class); + } + + // Construct using com.google.cloud.datacatalog.v1.MigrationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tagTemplateMigration_ = 0; + catalogUiExperience_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig getDefaultInstanceForType() { + return com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig build() { + com.google.cloud.datacatalog.v1.MigrationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig buildPartial() { + com.google.cloud.datacatalog.v1.MigrationConfig result = + new com.google.cloud.datacatalog.v1.MigrationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datacatalog.v1.MigrationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tagTemplateMigration_ = tagTemplateMigration_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.catalogUiExperience_ = catalogUiExperience_; + } + } + + @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.datacatalog.v1.MigrationConfig) { + return mergeFrom((com.google.cloud.datacatalog.v1.MigrationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datacatalog.v1.MigrationConfig other) { + if (other == com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance()) + return this; + if (other.tagTemplateMigration_ != 0) { + setTagTemplateMigrationValue(other.getTagTemplateMigrationValue()); + } + if (other.catalogUiExperience_ != 0) { + setCatalogUiExperienceValue(other.getCatalogUiExperienceValue()); + } + 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: + { + tagTemplateMigration_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + catalogUiExperience_ = 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 int tagTemplateMigration_ = 0; + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + @java.lang.Override + public int getTagTemplateMigrationValue() { + return tagTemplateMigration_; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @param value The enum numeric value on the wire for tagTemplateMigration to set. + * @return This builder for chaining. + */ + public Builder setTagTemplateMigrationValue(int value) { + tagTemplateMigration_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The tagTemplateMigration. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { + com.google.cloud.datacatalog.v1.TagTemplateMigration result = + com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber(tagTemplateMigration_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @param value The tagTemplateMigration to set. + * @return This builder for chaining. + */ + public Builder setTagTemplateMigration( + com.google.cloud.datacatalog.v1.TagTemplateMigration value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + tagTemplateMigration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return This builder for chaining. + */ + public Builder clearTagTemplateMigration() { + bitField0_ = (bitField0_ & ~0x00000001); + tagTemplateMigration_ = 0; + onChanged(); + return this; + } + + private int catalogUiExperience_ = 0; + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + @java.lang.Override + public int getCatalogUiExperienceValue() { + return catalogUiExperience_; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @param value The enum numeric value on the wire for catalogUiExperience to set. + * @return This builder for chaining. + */ + public Builder setCatalogUiExperienceValue(int value) { + catalogUiExperience_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The catalogUiExperience. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { + com.google.cloud.datacatalog.v1.CatalogUIExperience result = + com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber(catalogUiExperience_); + return result == null + ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @param value The catalogUiExperience to set. + * @return This builder for chaining. + */ + public Builder setCatalogUiExperience( + com.google.cloud.datacatalog.v1.CatalogUIExperience value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + catalogUiExperience_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return This builder for chaining. + */ + public Builder clearCatalogUiExperience() { + bitField0_ = (bitField0_ & ~0x00000002); + catalogUiExperience_ = 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.datacatalog.v1.MigrationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.MigrationConfig) + private static final com.google.cloud.datacatalog.v1.MigrationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.MigrationConfig(); + } + + public static com.google.cloud.datacatalog.v1.MigrationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationConfig 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.datacatalog.v1.MigrationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java new file mode 100644 index 000000000000..6139290ec5a6 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.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/cloud/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +public interface MigrationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.MigrationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + int getTagTemplateMigrationValue(); + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; + * + * @return The tagTemplateMigration. + */ + com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration(); + + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + int getCatalogUiExperienceValue(); + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; + * + * @return The catalogUiExperience. + */ + com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience(); +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java new file mode 100644 index 000000000000..b39d8026a537 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java @@ -0,0 +1,894 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * The configuration related to the migration from Data Catalog to Dataplex that
+ * has been applied to an organization and any projects under it. It is the
+ * response message for
+ * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.OrganizationConfig} + */ +public final class OrganizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.OrganizationConfig) + OrganizationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrganizationConfig.newBuilder() to construct. + private OrganizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrganizationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrganizationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.OrganizationConfig.class, + com.google.cloud.datacatalog.v1.OrganizationConfig.Builder.class); + } + + public static final int CONFIG_FIELD_NUMBER = 1; + + private static final class ConfigDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + config_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + internalGetConfig() { + if (config_ == null) { + return com.google.protobuf.MapField.emptyMapField(ConfigDefaultEntryHolder.defaultEntry); + } + return config_; + } + + public int getConfigCount() { + return internalGetConfig().getMap().size(); + } + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public boolean containsConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConfig().getMap().containsKey(key); + } + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getConfig() { + return getConfigMap(); + } + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public java.util.Map + getConfigMap() { + return internalGetConfig().getMap(); + } + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.datacatalog.v1.MigrationConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConfig().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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetConfig(), ConfigDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetConfig().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + config__ = + ConfigDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, config__); + } + 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.datacatalog.v1.OrganizationConfig)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.v1.OrganizationConfig other = + (com.google.cloud.datacatalog.v1.OrganizationConfig) obj; + + if (!internalGetConfig().equals(other.internalGetConfig())) 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 (!internalGetConfig().getMap().isEmpty()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + internalGetConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig 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.datacatalog.v1.OrganizationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig 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.datacatalog.v1.OrganizationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig 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.datacatalog.v1.OrganizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig 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.datacatalog.v1.OrganizationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig 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.datacatalog.v1.OrganizationConfig 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 configuration related to the migration from Data Catalog to Dataplex that
+   * has been applied to an organization and any projects under it. It is the
+   * response message for
+   * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.OrganizationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.OrganizationConfig) + com.google.cloud.datacatalog.v1.OrganizationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableConfig(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.OrganizationConfig.class, + com.google.cloud.datacatalog.v1.OrganizationConfig.Builder.class); + } + + // Construct using com.google.cloud.datacatalog.v1.OrganizationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableConfig().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.OrganizationConfig getDefaultInstanceForType() { + return com.google.cloud.datacatalog.v1.OrganizationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.OrganizationConfig build() { + com.google.cloud.datacatalog.v1.OrganizationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.OrganizationConfig buildPartial() { + com.google.cloud.datacatalog.v1.OrganizationConfig result = + new com.google.cloud.datacatalog.v1.OrganizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datacatalog.v1.OrganizationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = internalGetConfig().build(ConfigDefaultEntryHolder.defaultEntry); + } + } + + @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.datacatalog.v1.OrganizationConfig) { + return mergeFrom((com.google.cloud.datacatalog.v1.OrganizationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datacatalog.v1.OrganizationConfig other) { + if (other == com.google.cloud.datacatalog.v1.OrganizationConfig.getDefaultInstance()) + return this; + internalGetMutableConfig().mergeFrom(other.internalGetConfig()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + config__ = + input.readMessage( + ConfigDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConfig() + .ensureBuilderMap() + .put(config__.getKey(), config__.getValue()); + 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 static final class ConfigConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, + com.google.cloud.datacatalog.v1.MigrationConfig> { + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig build( + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder val) { + if (val instanceof com.google.cloud.datacatalog.v1.MigrationConfig) { + return (com.google.cloud.datacatalog.v1.MigrationConfig) val; + } + return ((com.google.cloud.datacatalog.v1.MigrationConfig.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> + defaultEntry() { + return ConfigDefaultEntryHolder.defaultEntry; + } + }; + + private static final ConfigConverter configConverter = new ConfigConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, + com.google.cloud.datacatalog.v1.MigrationConfig, + com.google.cloud.datacatalog.v1.MigrationConfig.Builder> + config_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, + com.google.cloud.datacatalog.v1.MigrationConfig, + com.google.cloud.datacatalog.v1.MigrationConfig.Builder> + internalGetConfig() { + if (config_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(configConverter); + } + return config_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, + com.google.cloud.datacatalog.v1.MigrationConfig, + com.google.cloud.datacatalog.v1.MigrationConfig.Builder> + internalGetMutableConfig() { + if (config_ == null) { + config_ = new com.google.protobuf.MapFieldBuilder<>(configConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return config_; + } + + public int getConfigCount() { + return internalGetConfig().ensureBuilderMap().size(); + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public boolean containsConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConfig().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getConfig() { + return getConfigMap(); + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public java.util.Map + getConfigMap() { + return internalGetConfig().getImmutableMap(); + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public /* nullable */ com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.datacatalog.v1.MigrationConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableConfig().ensureBuilderMap(); + return map.containsKey(key) ? configConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableConfig().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return configConverter.build(map.get(key)); + } + + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableConfig().clear(); + return this; + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + public Builder removeConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConfig().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableConfig() { + bitField0_ |= 0x00000001; + return internalGetMutableConfig().ensureMessageMap(); + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + public Builder putConfig( + java.lang.String key, com.google.cloud.datacatalog.v1.MigrationConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConfig().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + public Builder putAllConfig( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableConfig().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * Map of organizations and project resource names and their configuration.
+     * The format for the map keys is `organizations/{organizationId}` or
+     * `projects/{projectId}`.
+     * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + public com.google.cloud.datacatalog.v1.MigrationConfig.Builder putConfigBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableConfig().ensureBuilderMap(); + com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.datacatalog.v1.MigrationConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.datacatalog.v1.MigrationConfig) { + entry = ((com.google.cloud.datacatalog.v1.MigrationConfig) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.datacatalog.v1.MigrationConfig.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.datacatalog.v1.OrganizationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.OrganizationConfig) + private static final com.google.cloud.datacatalog.v1.OrganizationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.OrganizationConfig(); + } + + public static com.google.cloud.datacatalog.v1.OrganizationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationConfig 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.datacatalog.v1.OrganizationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java new file mode 100644 index 000000000000..8058e7da4fbe --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +public interface OrganizationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.OrganizationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + int getConfigCount(); + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + boolean containsConfig(java.lang.String key); + /** Use {@link #getConfigMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConfig(); + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + java.util.Map getConfigMap(); + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + /* nullable */ + com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.datacatalog.v1.MigrationConfig defaultValue); + /** + * + * + *
+   * Map of organizations and project resource names and their configuration.
+   * The format for the map keys is `organizations/{organizationId}` or
+   * `projects/{projectId}`.
+   * 
+ * + * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; + */ + com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key); +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java index ba68df3bbe4a..e0306b536f70 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java @@ -82,12 +82,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014\n\004text\030\001 \001(\t\032\034\n\014ThriftSchema\022\014\n\004text\030\001 " + "\001(\t\032\036\n\016ProtobufSchema\022\014\n\004text\030\001 \001(\t\032\017\n\rP" + "arquetSchema\032\013\n\tOrcSchema\032\013\n\tCsvSchemaB\010" - + "\n\006schemaB\333\001\n\037com.google.cloud.datacatalo" + + "\n\006schemaB\330\001\n\037com.google.cloud.datacatalo" + "g.v1B\023PhysicalSchemaProtoP\001ZAcloud.googl" + "e.com/go/datacatalog/apiv1/datacatalogpb" - + ";datacatalogpb\370\001\001\252\002\033Google.Cloud.DataCat" - + "alog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036" - + "Google::Cloud::DataCatalog::V1b\006proto3" + + ";datacatalogpb\252\002\033Google.Cloud.DataCatalo" + + "g.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Goo" + + "gle::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java index 5236a4bb15d5..926170a78e57 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java @@ -232,13 +232,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rce=projects/*/locations/*/taxonomies/*/" + "policyTags/*}:testIamPermissions:\001*\032N\312A\032" + "datacatalog.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\335\001\n\037" + + ".googleapis.com/auth/cloud-platformB\332\001\n\037" + "com.google.cloud.datacatalog.v1B\025PolicyT" + "agManagerProtoP\001ZAcloud.google.com/go/da" + "tacatalog/apiv1/datacatalogpb;datacatalo" - + "gpb\370\001\001\252\002\033Google.Cloud.DataCatalog.V1\312\002\033G" - + "oogle\\Cloud\\DataCatalog\\V1\352\002\036Google::Clo" - + "ud::DataCatalog::V1b\006proto3" + + "gpb\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Goog" + + "le\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud:" + + ":DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java index fdd1fce31818..5cf0c72c6410 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java @@ -130,14 +130,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nomiesResponse\"=\202\323\344\223\0027\0225/v1/{parent=proj" + "ects/*/locations/*}/taxonomies:export\032N\312" + "A\032datacatalog.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\352\001" + + "ww.googleapis.com/auth/cloud-platformB\347\001" + "\n\037com.google.cloud.datacatalog.v1B\"Polic" + "yTagManagerSerializationProtoP\001ZAcloud.g" + "oogle.com/go/datacatalog/apiv1/datacatal" - + "ogpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Dat" - + "aCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V" - + "1\352\002\036Google::Cloud::DataCatalog::V1b\006prot" - + "o3" + + "ogpb;datacatalogpb\252\002\033Google.Cloud.DataCa" + + "talog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002" + + "\036Google::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java new file mode 100644 index 000000000000..4820ce6dca51 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveConfigRequest} + */ +public final class RetrieveConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RetrieveConfigRequest) + RetrieveConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrieveConfigRequest.newBuilder() to construct. + private RetrieveConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrieveConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrieveConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, + com.google.cloud.datacatalog.v1.RetrieveConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The organization whose config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization whose config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.datacatalog.v1.RetrieveConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.v1.RetrieveConfigRequest other = + (com.google.cloud.datacatalog.v1.RetrieveConfigRequest) 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.datacatalog.v1.RetrieveConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest 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
+   * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RetrieveConfigRequest) + com.google.cloud.datacatalog.v1.RetrieveConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, + com.google.cloud.datacatalog.v1.RetrieveConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.datacatalog.v1.RetrieveConfigRequest.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.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveConfigRequest getDefaultInstanceForType() { + return com.google.cloud.datacatalog.v1.RetrieveConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveConfigRequest build() { + com.google.cloud.datacatalog.v1.RetrieveConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveConfigRequest buildPartial() { + com.google.cloud.datacatalog.v1.RetrieveConfigRequest result = + new com.google.cloud.datacatalog.v1.RetrieveConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest) { + return mergeFrom((com.google.cloud.datacatalog.v1.RetrieveConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datacatalog.v1.RetrieveConfigRequest other) { + if (other == com.google.cloud.datacatalog.v1.RetrieveConfigRequest.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 organization whose config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization whose config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization whose config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization whose config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The organization whose config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.datacatalog.v1.RetrieveConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RetrieveConfigRequest) + private static final com.google.cloud.datacatalog.v1.RetrieveConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RetrieveConfigRequest(); + } + + public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java new file mode 100644 index 000000000000..cf8258239f89 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +public interface RetrieveConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RetrieveConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The organization whose config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The organization whose config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java new file mode 100644 index 000000000000..1407145f91ef --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java @@ -0,0 +1,635 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest} + */ +public final class RetrieveEffectiveConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) + RetrieveEffectiveConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrieveEffectiveConfigRequest.newBuilder() to construct. + private RetrieveEffectiveConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrieveEffectiveConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrieveEffectiveConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource whose effective config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 whose effective config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.datacatalog.v1.RetrieveEffectiveConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest other = + (com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest 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
+   * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.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.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest build() { + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest buildPartial() { + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest result = + new com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest) { + return mergeFrom((com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest other) { + if (other + == com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.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 whose effective config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 whose effective config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 whose effective config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 whose effective config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource whose effective config is being retrieved.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.datacatalog.v1.RetrieveEffectiveConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) + private static final com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest(); + } + + public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0fbc91bf7e88 --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +public interface RetrieveEffectiveConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource whose effective config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource whose effective config is being retrieved.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java index 5a2ef1ef83ac..34ac570856da 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java @@ -58,13 +58,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024\n\014display_name\030\014 \001(\t\022\023\n\013description\030\r \001" + "(\tB\010\n\006system*d\n\020SearchResultType\022\"\n\036SEAR" + "CH_RESULT_TYPE_UNSPECIFIED\020\000\022\t\n\005ENTRY\020\001\022" - + "\020\n\014TAG_TEMPLATE\020\002\022\017\n\013ENTRY_GROUP\020\003B\306\001\n\037c" + + "\020\n\014TAG_TEMPLATE\020\002\022\017\n\013ENTRY_GROUP\020\003B\303\001\n\037c" + "om.google.cloud.datacatalog.v1P\001ZAcloud." + "google.com/go/datacatalog/apiv1/datacata" - + "logpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Da" - + "taCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\" - + "V1\352\002\036Google::Cloud::DataCatalog::V1b\006pro" - + "to3" + + "logpb;datacatalogpb\252\002\033Google.Cloud.DataC" + + "atalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352" + + "\002\036Google::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java index c7ff1c087218..c2578e780a76 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java @@ -338,7 +338,7 @@ public interface ScopeOrBuilder * * @deprecated * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=677 + * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=713 * @return The includePublicTagTemplates. */ @java.lang.Deprecated @@ -708,7 +708,7 @@ public boolean getStarredOnly() { * * @deprecated * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=677 + * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=713 * @return The includePublicTagTemplates. */ @java.lang.Override @@ -2039,7 +2039,7 @@ public Builder clearStarredOnly() { * * @deprecated * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=677 + * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=713 * @return The includePublicTagTemplates. */ @java.lang.Override @@ -2061,7 +2061,7 @@ public boolean getIncludePublicTagTemplates() { * * @deprecated * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=677 + * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=713 * @param value The includePublicTagTemplates to set. * @return This builder for chaining. */ @@ -2087,7 +2087,7 @@ public Builder setIncludePublicTagTemplates(boolean value) { * * @deprecated * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=677 + * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=713 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java new file mode 100644 index 000000000000..0a133ce8e99e --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Request message for
+ * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig].
+ * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.SetConfigRequest} + */ +public final class SetConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SetConfigRequest) + SetConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetConfigRequest.newBuilder() to construct. + private SetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.SetConfigRequest.class, + com.google.cloud.datacatalog.v1.SetConfigRequest.Builder.class); + } + + private int configurationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object configuration_; + + public enum ConfigurationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TAG_TEMPLATE_MIGRATION(2), + CATALOG_UI_EXPERIENCE(3), + CONFIGURATION_NOT_SET(0); + private final int value; + + private ConfigurationCase(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 ConfigurationCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigurationCase forNumber(int value) { + switch (value) { + case 2: + return TAG_TEMPLATE_MIGRATION; + case 3: + return CATALOG_UI_EXPERIENCE; + case 0: + return CONFIGURATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigurationCase getConfigurationCase() { + return ConfigurationCase.forNumber(configurationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The organization or project whose config is being specified.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization or project whose config is being specified.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 TAG_TEMPLATE_MIGRATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return Whether the tagTemplateMigration field is set. + */ + public boolean hasTagTemplateMigration() { + return configurationCase_ == 2; + } + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + public int getTagTemplateMigrationValue() { + if (configurationCase_ == 2) { + return (java.lang.Integer) configuration_; + } + return 0; + } + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The tagTemplateMigration. + */ + public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { + if (configurationCase_ == 2) { + com.google.cloud.datacatalog.v1.TagTemplateMigration result = + com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber( + (java.lang.Integer) configuration_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED + : result; + } + return com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED; + } + + public static final int CATALOG_UI_EXPERIENCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return Whether the catalogUiExperience field is set. + */ + public boolean hasCatalogUiExperience() { + return configurationCase_ == 3; + } + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + public int getCatalogUiExperienceValue() { + if (configurationCase_ == 3) { + return (java.lang.Integer) configuration_; + } + return 0; + } + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The catalogUiExperience. + */ + public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { + if (configurationCase_ == 3) { + com.google.cloud.datacatalog.v1.CatalogUIExperience result = + com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber( + (java.lang.Integer) configuration_); + return result == null + ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED + : result; + } + return com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED; + } + + 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 (configurationCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) configuration_)); + } + if (configurationCase_ == 3) { + output.writeEnum(3, ((java.lang.Integer) configuration_)); + } + 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 (configurationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) configuration_)); + } + if (configurationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, ((java.lang.Integer) configuration_)); + } + 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.datacatalog.v1.SetConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.datacatalog.v1.SetConfigRequest other = + (com.google.cloud.datacatalog.v1.SetConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getConfigurationCase().equals(other.getConfigurationCase())) return false; + switch (configurationCase_) { + case 2: + if (getTagTemplateMigrationValue() != other.getTagTemplateMigrationValue()) return false; + break; + case 3: + if (getCatalogUiExperienceValue() != other.getCatalogUiExperienceValue()) 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(); + switch (configurationCase_) { + case 2: + hash = (37 * hash) + TAG_TEMPLATE_MIGRATION_FIELD_NUMBER; + hash = (53 * hash) + getTagTemplateMigrationValue(); + break; + case 3: + hash = (37 * hash) + CATALOG_UI_EXPERIENCE_FIELD_NUMBER; + hash = (53 * hash) + getCatalogUiExperienceValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest 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.datacatalog.v1.SetConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest 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.datacatalog.v1.SetConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest 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.datacatalog.v1.SetConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest 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.datacatalog.v1.SetConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest 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.datacatalog.v1.SetConfigRequest 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
+   * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig].
+   * 
+ * + * Protobuf type {@code google.cloud.datacatalog.v1.SetConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SetConfigRequest) + com.google.cloud.datacatalog.v1.SetConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datacatalog.v1.SetConfigRequest.class, + com.google.cloud.datacatalog.v1.SetConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.datacatalog.v1.SetConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + configurationCase_ = 0; + configuration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datacatalog.v1.Datacatalog + .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.SetConfigRequest getDefaultInstanceForType() { + return com.google.cloud.datacatalog.v1.SetConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.SetConfigRequest build() { + com.google.cloud.datacatalog.v1.SetConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datacatalog.v1.SetConfigRequest buildPartial() { + com.google.cloud.datacatalog.v1.SetConfigRequest result = + new com.google.cloud.datacatalog.v1.SetConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datacatalog.v1.SetConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.datacatalog.v1.SetConfigRequest result) { + result.configurationCase_ = configurationCase_; + result.configuration_ = this.configuration_; + } + + @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.datacatalog.v1.SetConfigRequest) { + return mergeFrom((com.google.cloud.datacatalog.v1.SetConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datacatalog.v1.SetConfigRequest other) { + if (other == com.google.cloud.datacatalog.v1.SetConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getConfigurationCase()) { + case TAG_TEMPLATE_MIGRATION: + { + setTagTemplateMigrationValue(other.getTagTemplateMigrationValue()); + break; + } + case CATALOG_UI_EXPERIENCE: + { + setCatalogUiExperienceValue(other.getCatalogUiExperienceValue()); + break; + } + case CONFIGURATION_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_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int rawValue = input.readEnum(); + configurationCase_ = 2; + configuration_ = rawValue; + break; + } // case 16 + case 24: + { + int rawValue = input.readEnum(); + configurationCase_ = 3; + configuration_ = rawValue; + 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 configurationCase_ = 0; + private java.lang.Object configuration_; + + public ConfigurationCase getConfigurationCase() { + return ConfigurationCase.forNumber(configurationCase_); + } + + public Builder clearConfiguration() { + configurationCase_ = 0; + configuration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The organization or project whose config is being specified.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization or project whose config is being specified.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization or project whose config is being specified.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 organization or project whose config is being specified.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The organization or project whose config is being specified.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return Whether the tagTemplateMigration field is set. + */ + @java.lang.Override + public boolean hasTagTemplateMigration() { + return configurationCase_ == 2; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + @java.lang.Override + public int getTagTemplateMigrationValue() { + if (configurationCase_ == 2) { + return ((java.lang.Integer) configuration_).intValue(); + } + return 0; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @param value The enum numeric value on the wire for tagTemplateMigration to set. + * @return This builder for chaining. + */ + public Builder setTagTemplateMigrationValue(int value) { + configurationCase_ = 2; + configuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The tagTemplateMigration. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { + if (configurationCase_ == 2) { + com.google.cloud.datacatalog.v1.TagTemplateMigration result = + com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber( + (java.lang.Integer) configuration_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED + : result; + } + return com.google.cloud.datacatalog.v1.TagTemplateMigration + .TAG_TEMPLATE_MIGRATION_UNSPECIFIED; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @param value The tagTemplateMigration to set. + * @return This builder for chaining. + */ + public Builder setTagTemplateMigration( + com.google.cloud.datacatalog.v1.TagTemplateMigration value) { + if (value == null) { + throw new NullPointerException(); + } + configurationCase_ = 2; + configuration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the migration of Tag Templates to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return This builder for chaining. + */ + public Builder clearTagTemplateMigration() { + if (configurationCase_ == 2) { + configurationCase_ = 0; + configuration_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return Whether the catalogUiExperience field is set. + */ + @java.lang.Override + public boolean hasCatalogUiExperience() { + return configurationCase_ == 3; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + @java.lang.Override + public int getCatalogUiExperienceValue() { + if (configurationCase_ == 3) { + return ((java.lang.Integer) configuration_).intValue(); + } + return 0; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @param value The enum numeric value on the wire for catalogUiExperience to set. + * @return This builder for chaining. + */ + public Builder setCatalogUiExperienceValue(int value) { + configurationCase_ = 3; + configuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The catalogUiExperience. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { + if (configurationCase_ == 3) { + com.google.cloud.datacatalog.v1.CatalogUIExperience result = + com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber( + (java.lang.Integer) configuration_); + return result == null + ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED + : result; + } + return com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @param value The catalogUiExperience to set. + * @return This builder for chaining. + */ + public Builder setCatalogUiExperience( + com.google.cloud.datacatalog.v1.CatalogUIExperience value) { + if (value == null) { + throw new NullPointerException(); + } + configurationCase_ = 3; + configuration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Opt-in status for the UI switch to Dataplex.
+     * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return This builder for chaining. + */ + public Builder clearCatalogUiExperience() { + if (configurationCase_ == 3) { + configurationCase_ = 0; + configuration_ = null; + 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.datacatalog.v1.SetConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SetConfigRequest) + private static final com.google.cloud.datacatalog.v1.SetConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SetConfigRequest(); + } + + public static com.google.cloud.datacatalog.v1.SetConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetConfigRequest 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.datacatalog.v1.SetConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..3f025fd47abf --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +public interface SetConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The organization or project whose config is being specified.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The organization or project whose config is being specified.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return Whether the tagTemplateMigration field is set. + */ + boolean hasTagTemplateMigration(); + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The enum numeric value on the wire for tagTemplateMigration. + */ + int getTagTemplateMigrationValue(); + /** + * + * + *
+   * Opt-in status for the migration of Tag Templates to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; + * + * @return The tagTemplateMigration. + */ + com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration(); + + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return Whether the catalogUiExperience field is set. + */ + boolean hasCatalogUiExperience(); + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The enum numeric value on the wire for catalogUiExperience. + */ + int getCatalogUiExperienceValue(); + /** + * + * + *
+   * Opt-in status for the UI switch to Dataplex.
+   * 
+ * + * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; + * + * @return The catalogUiExperience. + */ + com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience(); + + com.google.cloud.datacatalog.v1.SetConfigRequest.ConfigurationCase getConfigurationCase(); +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java index 9c35fc406675..f6b3320914d1 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java @@ -47,6 +47,7 @@ private Tag() { name_ = ""; template_ = ""; templateDisplayName_ = ""; + dataplexTransferStatus_ = 0; } @java.lang.Override @@ -512,6 +513,49 @@ public com.google.cloud.datacatalog.v1.TagField getFieldsOrThrow(java.lang.Strin return map.get(key); } + public static final int DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER = 7; + private int dataplexTransferStatus_ = 0; + /** + * + * + *
+   * Output only. Denotes the transfer status of the Tag Template.
+   * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + @java.lang.Override + public int getDataplexTransferStatusValue() { + return dataplexTransferStatus_; + } + /** + * + * + *
+   * Output only. Denotes the transfer status of the Tag Template.
+   * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus + getDataplexTransferStatus() { + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( + dataplexTransferStatus_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -540,6 +584,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, templateDisplayName_); } + if (dataplexTransferStatus_ + != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus + .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, dataplexTransferStatus_); + } getUnknownFields().writeTo(output); } @@ -572,6 +622,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, templateDisplayName_); } + if (dataplexTransferStatus_ + != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus + .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, dataplexTransferStatus_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -591,6 +647,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTemplate().equals(other.getTemplate())) return false; if (!getTemplateDisplayName().equals(other.getTemplateDisplayName())) return false; if (!internalGetFields().equals(other.internalGetFields())) return false; + if (dataplexTransferStatus_ != other.dataplexTransferStatus_) return false; if (!getScopeCase().equals(other.getScopeCase())) return false; switch (scopeCase_) { case 4: @@ -620,6 +677,8 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } + hash = (37 * hash) + DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + dataplexTransferStatus_; switch (scopeCase_) { case 4: hash = (37 * hash) + COLUMN_FIELD_NUMBER; @@ -797,6 +856,7 @@ public Builder clear() { template_ = ""; templateDisplayName_ = ""; internalGetMutableFields().clear(); + dataplexTransferStatus_ = 0; scopeCase_ = 0; scope_ = null; return this; @@ -847,6 +907,9 @@ private void buildPartial0(com.google.cloud.datacatalog.v1.Tag result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataplexTransferStatus_ = dataplexTransferStatus_; + } } private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Tag result) { @@ -916,6 +979,9 @@ public Builder mergeFrom(com.google.cloud.datacatalog.v1.Tag other) { } internalGetMutableFields().mergeFrom(other.internalGetFields()); bitField0_ |= 0x00000010; + if (other.dataplexTransferStatus_ != 0) { + setDataplexTransferStatusValue(other.getDataplexTransferStatusValue()); + } switch (other.getScopeCase()) { case COLUMN: { @@ -994,6 +1060,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 42 + case 56: + { + dataplexTransferStatus_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1824,6 +1896,111 @@ public com.google.cloud.datacatalog.v1.TagField.Builder putFieldsBuilderIfAbsent return (com.google.cloud.datacatalog.v1.TagField.Builder) entry; } + private int dataplexTransferStatus_ = 0; + /** + * + * + *
+     * Output only. Denotes the transfer status of the Tag Template.
+     * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + @java.lang.Override + public int getDataplexTransferStatusValue() { + return dataplexTransferStatus_; + } + /** + * + * + *
+     * Output only. Denotes the transfer status of the Tag Template.
+     * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataplexTransferStatus to set. + * @return This builder for chaining. + */ + public Builder setDataplexTransferStatusValue(int value) { + dataplexTransferStatus_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Denotes the transfer status of the Tag Template.
+     * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + @java.lang.Override + public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus + getDataplexTransferStatus() { + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( + dataplexTransferStatus_); + return result == null + ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Denotes the transfer status of the Tag Template.
+     * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataplexTransferStatus to set. + * @return This builder for chaining. + */ + public Builder setDataplexTransferStatus( + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + dataplexTransferStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Denotes the transfer status of the Tag Template.
+     * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataplexTransferStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + dataplexTransferStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java index 4e14314e4921..4c6cdeca4485 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java @@ -252,5 +252,34 @@ com.google.cloud.datacatalog.v1.TagField getFieldsOrDefault( */ com.google.cloud.datacatalog.v1.TagField getFieldsOrThrow(java.lang.String key); + /** + * + * + *
+   * Output only. Denotes the transfer status of the Tag Template.
+   * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataplexTransferStatus. + */ + int getDataplexTransferStatusValue(); + /** + * + * + *
+   * Output only. Denotes the transfer status of the Tag Template.
+   * 
+ * + * + * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataplexTransferStatus. + */ + com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus getDataplexTransferStatus(); + com.google.cloud.datacatalog.v1.Tag.ScopeCase getScopeCase(); } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java index 4699ec4fdc4b..acab1b723276 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java @@ -120,6 +120,17 @@ public enum DataplexTransferStatus implements com.google.protobuf.ProtocolMessag */ @java.lang.Deprecated MIGRATED(1), + /** + * + * + *
+     * TagTemplate and its tags are auto-copied to Dataplex service.
+     * Visible in both services. Editable in Dataplex, read-only in DataCatalog.
+     * 
+ * + * TRANSFERRED = 2; + */ + TRANSFERRED(2), UNRECOGNIZED(-1), ; @@ -147,6 +158,17 @@ public enum DataplexTransferStatus implements com.google.protobuf.ProtocolMessag * MIGRATED = 1 [deprecated = true]; */ @java.lang.Deprecated public static final int MIGRATED_VALUE = 1; + /** + * + * + *
+     * TagTemplate and its tags are auto-copied to Dataplex service.
+     * Visible in both services. Editable in Dataplex, read-only in DataCatalog.
+     * 
+ * + * TRANSFERRED = 2; + */ + public static final int TRANSFERRED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -176,6 +198,8 @@ public static DataplexTransferStatus forNumber(int value) { return DATAPLEX_TRANSFER_STATUS_UNSPECIFIED; case 1: return MIGRATED; + case 2: + return TRANSFERRED; default: return null; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java new file mode 100644 index 000000000000..14937938d26c --- /dev/null +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java @@ -0,0 +1,183 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datacatalog/v1/datacatalog.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datacatalog.v1; + +/** + * + * + *
+ * Configuration related to the opt-in status for the migration of TagTemplates
+ * to Dataplex.
+ * 
+ * + * Protobuf enum {@code google.cloud.datacatalog.v1.TagTemplateMigration} + */ +public enum TagTemplateMigration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Migration of Tag Templates from Data Catalog to Dataplex is
+   * not performed.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; + */ + TAG_TEMPLATE_MIGRATION_UNSPECIFIED(0), + /** + * + * + *
+   * Migration of Tag Templates from Data Catalog to Dataplex is enabled.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_ENABLED = 1; + */ + TAG_TEMPLATE_MIGRATION_ENABLED(1), + /** + * + * + *
+   * Migration of Tag Templates from Data Catalog to Dataplex is disabled.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_DISABLED = 2; + */ + TAG_TEMPLATE_MIGRATION_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Migration of Tag Templates from Data Catalog to Dataplex is
+   * not performed.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; + */ + public static final int TAG_TEMPLATE_MIGRATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Migration of Tag Templates from Data Catalog to Dataplex is enabled.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_ENABLED = 1; + */ + public static final int TAG_TEMPLATE_MIGRATION_ENABLED_VALUE = 1; + /** + * + * + *
+   * Migration of Tag Templates from Data Catalog to Dataplex is disabled.
+   * 
+ * + * TAG_TEMPLATE_MIGRATION_DISABLED = 2; + */ + public static final int TAG_TEMPLATE_MIGRATION_DISABLED_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 TagTemplateMigration 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 TagTemplateMigration forNumber(int value) { + switch (value) { + case 0: + return TAG_TEMPLATE_MIGRATION_UNSPECIFIED; + case 1: + return TAG_TEMPLATE_MIGRATION_ENABLED; + case 2: + return TAG_TEMPLATE_MIGRATION_DISABLED; + 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 TagTemplateMigration findValueByNumber(int number) { + return TagTemplateMigration.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.datacatalog.v1.Datacatalog.getDescriptor().getEnumTypes().get(1); + } + + private static final TagTemplateMigration[] VALUES = values(); + + public static TagTemplateMigration 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 TagTemplateMigration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.TagTemplateMigration) +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java index 7b4523f86078..0aee4c8e4381 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java @@ -81,62 +81,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\033google.cloud.datacatalog.v1\032\037google/ap" + "i/field_behavior.proto\032\031google/api/resou" + "rce.proto\032\037google/protobuf/timestamp.pro" - + "to\"\213\003\n\003Tag\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\025\n\010templat" + + "to\"\363\003\n\003Tag\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\025\n\010templat" + "e\030\002 \001(\tB\003\340A\002\022\"\n\025template_display_name\030\005 " + "\001(\tB\003\340A\003\022\020\n\006column\030\004 \001(\tH\000\022A\n\006fields\030\003 \003" + "(\0132,.google.cloud.datacatalog.v1.Tag.Fie" - + "ldsEntryB\003\340A\002\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(" - + "\t\0224\n\005value\030\002 \001(\0132%.google.cloud.datacata" - + "log.v1.TagField:\0028\001:\201\001\352A~\n\036datacatalog.g" - + "oogleapis.com/Tag\022\\projects/{project}/lo" - + "cations/{location}/entryGroups/{entry_gr" - + "oup}/entries/{entry}/tags/{tag}B\007\n\005scope" - + "\"\302\002\n\010TagField\022\031\n\014display_name\030\001 \001(\tB\003\340A\003" - + "\022\026\n\014double_value\030\002 \001(\001H\000\022\026\n\014string_value" - + "\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\0225\n\017timest" - + "amp_value\030\005 \001(\0132\032.google.protobuf.Timest" - + "ampH\000\022E\n\nenum_value\030\006 \001(\0132/.google.cloud" - + ".datacatalog.v1.TagField.EnumValueH\000\022\030\n\016" - + "richtext_value\030\010 \001(\tH\000\022\022\n\005order\030\007 \001(\005B\003\340" - + "A\003\032!\n\tEnumValue\022\024\n\014display_name\030\001 \001(\tB\006\n" - + "\004kind\"\255\004\n\013TagTemplate\022\021\n\004name\030\001 \001(\tB\003\340A\010" - + "\022\024\n\014display_name\030\002 \001(\t\022\034\n\024is_publicly_re" - + "adable\030\005 \001(\010\022I\n\006fields\030\003 \003(\01324.google.cl" - + "oud.datacatalog.v1.TagTemplate.FieldsEnt" - + "ryB\003\340A\002\022f\n\030dataplex_transfer_status\030\007 \001(" - + "\0162?.google.cloud.datacatalog.v1.TagTempl" - + "ate.DataplexTransferStatusB\003\340A\001\032\\\n\013Field" - + "sEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.goo" - + "gle.cloud.datacatalog.v1.TagTemplateFiel" - + "d:\0028\001\"T\n\026DataplexTransferStatus\022(\n$DATAP" - + "LEX_TRANSFER_STATUS_UNSPECIFIED\020\000\022\020\n\010MIG" - + "RATED\020\001\032\002\010\001:p\352Am\n&datacatalog.googleapis" - + ".com/TagTemplate\022Cprojects/{project}/loc" - + "ations/{location}/tagTemplates/{tag_temp" - + "late}\"\267\002\n\020TagTemplateField\022\021\n\004name\030\006 \001(\t" - + "B\003\340A\010\022\024\n\014display_name\030\001 \001(\t\0229\n\004type\030\002 \001(" - + "\0132&.google.cloud.datacatalog.v1.FieldTyp" - + "eB\003\340A\002\022\023\n\013is_required\030\003 \001(\010\022\023\n\013descripti" - + "on\030\004 \001(\t\022\r\n\005order\030\005 \001(\005:\205\001\352A\201\001\n+datacata" - + "log.googleapis.com/TagTemplateField\022Rpro" - + "jects/{project}/locations/{location}/tag" - + "Templates/{tag_template}/fields/{field}\"" - + "\246\003\n\tFieldType\022N\n\016primitive_type\030\001 \001(\01624." - + "google.cloud.datacatalog.v1.FieldType.Pr" - + "imitiveTypeH\000\022D\n\tenum_type\030\002 \001(\0132/.googl" - + "e.cloud.datacatalog.v1.FieldType.EnumTyp" - + "eH\000\032\205\001\n\010EnumType\022Q\n\016allowed_values\030\001 \003(\013" - + "29.google.cloud.datacatalog.v1.FieldType" - + ".EnumType.EnumValue\032&\n\tEnumValue\022\031\n\014disp" - + "lay_name\030\001 \001(\tB\003\340A\002\"n\n\rPrimitiveType\022\036\n\032" - + "PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006DOUBLE\020\001" - + "\022\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMESTAMP\020\004\022\014\n" - + "\010RICHTEXT\020\005B\013\n\ttype_declB\306\001\n\037com.google." - + "cloud.datacatalog.v1P\001ZAcloud.google.com" - + "/go/datacatalog/apiv1/datacatalogpb;data" - + "catalogpb\370\001\001\252\002\033Google.Cloud.DataCatalog." - + "V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Googl" - + "e::Cloud::DataCatalog::V1b\006proto3" + + "ldsEntryB\003\340A\002\022f\n\030dataplex_transfer_statu" + + "s\030\007 \001(\0162?.google.cloud.datacatalog.v1.Ta" + + "gTemplate.DataplexTransferStatusB\003\340A\003\032T\n" + + "\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005value\030\002 \001(\013" + + "2%.google.cloud.datacatalog.v1.TagField:" + + "\0028\001:\201\001\352A~\n\036datacatalog.googleapis.com/Ta" + + "g\022\\projects/{project}/locations/{locatio" + + "n}/entryGroups/{entry_group}/entries/{en" + + "try}/tags/{tag}B\007\n\005scope\"\302\002\n\010TagField\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\003\022\026\n\014double_value" + + "\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\024\n\nbool" + + "_value\030\004 \001(\010H\000\0225\n\017timestamp_value\030\005 \001(\0132" + + "\032.google.protobuf.TimestampH\000\022E\n\nenum_va" + + "lue\030\006 \001(\0132/.google.cloud.datacatalog.v1." + + "TagField.EnumValueH\000\022\030\n\016richtext_value\030\010" + + " \001(\tH\000\022\022\n\005order\030\007 \001(\005B\003\340A\003\032!\n\tEnumValue\022" + + "\024\n\014display_name\030\001 \001(\tB\006\n\004kind\"\276\004\n\013TagTem" + + "plate\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\024\n\014display_name" + + "\030\002 \001(\t\022\034\n\024is_publicly_readable\030\005 \001(\010\022I\n\006" + + "fields\030\003 \003(\01324.google.cloud.datacatalog." + + "v1.TagTemplate.FieldsEntryB\003\340A\002\022f\n\030datap" + + "lex_transfer_status\030\007 \001(\0162?.google.cloud" + + ".datacatalog.v1.TagTemplate.DataplexTran" + + "sferStatusB\003\340A\001\032\\\n\013FieldsEntry\022\013\n\003key\030\001 " + + "\001(\t\022<\n\005value\030\002 \001(\0132-.google.cloud.dataca" + + "talog.v1.TagTemplateField:\0028\001\"e\n\026Dataple" + + "xTransferStatus\022(\n$DATAPLEX_TRANSFER_STA" + + "TUS_UNSPECIFIED\020\000\022\020\n\010MIGRATED\020\001\032\002\010\001\022\017\n\013T" + + "RANSFERRED\020\002:p\352Am\n&datacatalog.googleapi" + + "s.com/TagTemplate\022Cprojects/{project}/lo" + + "cations/{location}/tagTemplates/{tag_tem" + + "plate}\"\267\002\n\020TagTemplateField\022\021\n\004name\030\006 \001(" + + "\tB\003\340A\010\022\024\n\014display_name\030\001 \001(\t\0229\n\004type\030\002 \001" + + "(\0132&.google.cloud.datacatalog.v1.FieldTy" + + "peB\003\340A\002\022\023\n\013is_required\030\003 \001(\010\022\023\n\013descript" + + "ion\030\004 \001(\t\022\r\n\005order\030\005 \001(\005:\205\001\352A\201\001\n+datacat" + + "alog.googleapis.com/TagTemplateField\022Rpr" + + "ojects/{project}/locations/{location}/ta" + + "gTemplates/{tag_template}/fields/{field}" + + "\"\246\003\n\tFieldType\022N\n\016primitive_type\030\001 \001(\01624" + + ".google.cloud.datacatalog.v1.FieldType.P" + + "rimitiveTypeH\000\022D\n\tenum_type\030\002 \001(\0132/.goog" + + "le.cloud.datacatalog.v1.FieldType.EnumTy" + + "peH\000\032\205\001\n\010EnumType\022Q\n\016allowed_values\030\001 \003(" + + "\01329.google.cloud.datacatalog.v1.FieldTyp" + + "e.EnumType.EnumValue\032&\n\tEnumValue\022\031\n\014dis" + + "play_name\030\001 \001(\tB\003\340A\002\"n\n\rPrimitiveType\022\036\n" + + "\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n\006DOUBLE\020" + + "\001\022\n\n\006STRING\020\002\022\010\n\004BOOL\020\003\022\r\n\tTIMESTAMP\020\004\022\014" + + "\n\010RICHTEXT\020\005B\013\n\ttype_declB\303\001\n\037com.google" + + ".cloud.datacatalog.v1P\001ZAcloud.google.co" + + "m/go/datacatalog/apiv1/datacatalogpb;dat" + + "acatalogpb\252\002\033Google.Cloud.DataCatalog.V1" + + "\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google:" + + ":Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -152,7 +155,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datacatalog_v1_Tag_descriptor, new java.lang.String[] { - "Name", "Template", "TemplateDisplayName", "Column", "Fields", "Scope", + "Name", + "Template", + "TemplateDisplayName", + "Column", + "Fields", + "DataplexTransferStatus", + "Scope", }); internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor = internal_static_google_cloud_datacatalog_v1_Tag_descriptor.getNestedTypes().get(0); diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java index 022ea6830620..dd71cb2d5d64 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java @@ -48,13 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ps\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\0224\n\013expire_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003B\306\001\n\037c" + + "\0132\032.google.protobuf.TimestampB\003\340A\003B\303\001\n\037c" + "om.google.cloud.datacatalog.v1P\001ZAcloud." + "google.com/go/datacatalog/apiv1/datacata" - + "logpb;datacatalogpb\370\001\001\252\002\033Google.Cloud.Da" - + "taCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\" - + "V1\352\002\036Google::Cloud::DataCatalog::V1b\006pro" - + "to3" + + "logpb;datacatalogpb\252\002\033Google.Cloud.DataC" + + "atalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352" + + "\002\036Google::Cloud::DataCatalog::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto index 2c673aaa2a60..3ca0caf073d8 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto @@ -18,7 +18,6 @@ package google.cloud.datacatalog.v1; import "google/api/field_behavior.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto index b7b9f7e65515..c43b226f001d 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto @@ -18,7 +18,6 @@ package google.cloud.datacatalog.v1; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto index 05aa0a473b88..7e9f43116b82 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto @@ -18,7 +18,6 @@ package google.cloud.datacatalog.v1; import "google/api/field_behavior.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto index 86a5ec166c58..e9581cb2809e 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto @@ -38,7 +38,6 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/rpc/status.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; @@ -628,6 +627,43 @@ service DataCatalog { metadata_type: "ImportEntriesMetadata" }; } + + // Sets the configuration related to the migration to Dataplex for an + // organization or project. + rpc SetConfig(SetConfigRequest) returns (MigrationConfig) { + option (google.api.http) = { + post: "/v1/{name=organizations/*/locations/*}:setConfig" + body: "*" + additional_bindings { + post: "/v1/{name=projects/*/locations/*}:setConfig" + body: "*" + } + }; + } + + // Retrieves the configuration related to the migration from Data Catalog to + // Dataplex for a specific organization, including all the projects under it + // which have a separate configuration set. + rpc RetrieveConfig(RetrieveConfigRequest) returns (OrganizationConfig) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*}:retrieveConfig" + }; + } + + // Retrieves the effective configuration related to the migration from Data + // Catalog to Dataplex for a specific organization or project. If there is no + // specific configuration set for the resource, the setting is checked + // hierarchicahlly through the ancestors of the resource, starting from the + // resource itself. + rpc RetrieveEffectiveConfig(RetrieveEffectiveConfigRequest) + returns (MigrationConfig) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*}:retrieveEffectiveConfig" + additional_bindings { + get: "/v1/{name=projects/*/locations/*}:retrieveEffectiveConfig" + } + }; + } } // Request message for @@ -1670,8 +1706,8 @@ message Contacts { // Entry group metadata. // -// An `EntryGroup` resource represents a logical grouping of zero or more -// Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources. +// An `EntryGroup` resource represents a logical grouping of zero or more +// Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources. message EntryGroup { option (google.api.resource) = { type: "datacatalog.googleapis.com/EntryGroup" @@ -1696,6 +1732,13 @@ message EntryGroup { // Output only. Timestamps of the entry group. Default value is empty. SystemTimestamps data_catalog_timestamps = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. When set to [true], it means DataCatalog EntryGroup was + // transferred to Dataplex Catalog Service. It makes EntryGroup and its + // Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and + // its Entries can be created. After setting the flag to [true] it cannot be + // unset. + bool transferred_to_dataplex = 9 [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -2287,3 +2330,83 @@ enum EntryType { // Feature Group resource in Vertex AI Feature Store. FEATURE_GROUP = 21; } + +// Request message for +// [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig]. +message SetConfigRequest { + // Required. The organization or project whose config is being specified. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The configuration field to set. + oneof configuration { + // Opt-in status for the migration of Tag Templates to Dataplex. + TagTemplateMigration tag_template_migration = 2; + + // Opt-in status for the UI switch to Dataplex. + CatalogUIExperience catalog_ui_experience = 3; + } +} + +// Request message for +// [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig]. +message RetrieveConfigRequest { + // Required. The organization whose config is being retrieved. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig]. +message RetrieveEffectiveConfigRequest { + // Required. The resource whose effective config is being retrieved. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration related to the opt-in status for the migration of TagTemplates +// to Dataplex. +enum TagTemplateMigration { + // Default value. Migration of Tag Templates from Data Catalog to Dataplex is + // not performed. + TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; + + // Migration of Tag Templates from Data Catalog to Dataplex is enabled. + TAG_TEMPLATE_MIGRATION_ENABLED = 1; + + // Migration of Tag Templates from Data Catalog to Dataplex is disabled. + TAG_TEMPLATE_MIGRATION_DISABLED = 2; +} + +// Configuration related to the opt-in status for the UI switch to Dataplex. +enum CatalogUIExperience { + // Default value. The default UI is Dataplex. + CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; + + // The UI is Dataplex. + CATALOG_UI_EXPERIENCE_ENABLED = 1; + + // The UI is Data Catalog. + CATALOG_UI_EXPERIENCE_DISABLED = 2; +} + +// The configuration related to the migration from Data Catalog to Dataplex that +// has been applied to an organization and any projects under it. It is the +// response message for +// [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig]. +message OrganizationConfig { + // Map of organizations and project resource names and their configuration. + // The format for the map keys is `organizations/{organizationId}` or + // `projects/{projectId}`. + map config = 1; +} + +// The configuration related to the migration to Dataplex applied to an +// organization or project. +// It is the response message for +// [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and +// [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig]. +message MigrationConfig { + // Opt-in status for the migration of Tag Templates to Dataplex. + TagTemplateMigration tag_template_migration = 1; + + // Opt-in status for the UI switch to Dataplex. + CatalogUIExperience catalog_ui_experience = 2; +} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto index 087470ec7c56..ce10b33eda78 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto @@ -19,7 +19,6 @@ package google.cloud.datacatalog.v1; import "google/cloud/datacatalog/v1/common.proto"; import "google/cloud/datacatalog/v1/physical_schema.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto index 8b090e28c2bf..87afabf0a484 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/cloud/datacatalog/v1/datacatalog.proto"; import "google/cloud/datacatalog/v1/tags.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto index 7fc9e9b847a2..67bedae49d59 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto @@ -19,7 +19,6 @@ package google.cloud.datacatalog.v1; import "google/api/field_behavior.proto"; import "google/cloud/datacatalog/v1/timestamps.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto index 364e40834c0e..89a9cd5e820b 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.datacatalog.v1; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto index 251e0b4c332c..e97ddb7cd1a3 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto @@ -27,7 +27,6 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto index c9d5e8c05a4c..aac2d469f23b 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/datacatalog/v1/policytagmanager.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto index d6a7ea099f06..2ebd88511233 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/cloud/datacatalog/v1/common.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto index efc28b0cac5a..d10959a707fe 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; @@ -79,6 +78,10 @@ message Tag { // Tag template defines valid field IDs. A tag // must have at least 1 field and at most 500 fields. map fields = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Denotes the transfer status of the Tag Template. + TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains the value and additional information on a field within @@ -158,6 +161,10 @@ message TagTemplate { // Deprecated: Individual TagTemplate migration is deprecated in favor of // organization or project wide TagTemplate migration opt-in. MIGRATED = 1 [deprecated = true]; + + // TagTemplate and its tags are auto-copied to Dataplex service. + // Visible in both services. Editable in Dataplex, read-only in DataCatalog. + TRANSFERRED = 2; } // Identifier. The resource name of the tag template in URL format. diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto index 658afa6cb89d..e14cf4321422 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto @@ -19,7 +19,6 @@ package google.cloud.datacatalog.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java new file mode 100644 index 000000000000..e8e0fe59f151 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_RetrieveConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.OrganizationConfig; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; + +public class AsyncRetrieveConfig { + + public static void main(String[] args) throws Exception { + asyncRetrieveConfig(); + } + + public static void asyncRetrieveConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + dataCatalogClient.retrieveConfigCallable().futureCall(request); + // Do something. + OrganizationConfig response = future.get(); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_RetrieveConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java new file mode 100644 index 000000000000..2d64a7d393df --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.OrganizationConfig; +import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; + +public class SyncRetrieveConfig { + + public static void main(String[] args) throws Exception { + syncRetrieveConfig(); + } + + public static void syncRetrieveConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + RetrieveConfigRequest request = + RetrieveConfigRequest.newBuilder().setName("name3373707").build(); + OrganizationConfig response = dataCatalogClient.retrieveConfig(request); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java new file mode 100644 index 000000000000..51d3016e029a --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.MigrationConfig; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; + +public class AsyncRetrieveEffectiveConfig { + + public static void main(String[] args) throws Exception { + asyncRetrieveEffectiveConfig(); + } + + public static void asyncRetrieveEffectiveConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + dataCatalogClient.retrieveEffectiveConfigCallable().futureCall(request); + // Do something. + MigrationConfig response = future.get(); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java new file mode 100644 index 000000000000..b9fba909b7dc --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_sync] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.MigrationConfig; +import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; + +public class SyncRetrieveEffectiveConfig { + + public static void main(String[] args) throws Exception { + syncRetrieveEffectiveConfig(); + } + + public static void syncRetrieveEffectiveConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + RetrieveEffectiveConfigRequest request = + RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); + MigrationConfig response = dataCatalogClient.retrieveEffectiveConfig(request); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java new file mode 100644 index 000000000000..37f5f0a67a21 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_SetConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.MigrationConfig; +import com.google.cloud.datacatalog.v1.SetConfigRequest; + +public class AsyncSetConfig { + + public static void main(String[] args) throws Exception { + asyncSetConfig(); + } + + public static void asyncSetConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = dataCatalogClient.setConfigCallable().futureCall(request); + // Do something. + MigrationConfig response = future.get(); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_SetConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java new file mode 100644 index 000000000000..79ebd3c0ac53 --- /dev/null +++ b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.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.datacatalog.v1.samples; + +// [START datacatalog_v1_generated_DataCatalog_SetConfig_sync] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.MigrationConfig; +import com.google.cloud.datacatalog.v1.SetConfigRequest; + +public class SyncSetConfig { + + public static void main(String[] args) throws Exception { + syncSetConfig(); + } + + public static void syncSetConfig() 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); + MigrationConfig response = dataCatalogClient.setConfig(request); + } + } +} +// [END datacatalog_v1_generated_DataCatalog_SetConfig_sync] diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 7723713acab3..0c784e124371 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.57.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.58.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/README.md b/java-dataform/README.md index 3b57de91022a..49d891ee7546 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.52.0' +implementation 'com.google.cloud:google-cloud-dataform:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.53.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 8d4dd1dc03d1..70803cb567c7 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.173.0 + 0.174.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.173.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.174.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.173.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.174.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.173.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.174.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/README.md b/java-datalineage/README.md index e007879046ab..6dbb6caa3bb6 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.45.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.46.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/README.md b/java-dataplex/README.md index db2c3befd804..b37dd5b9cc5d 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.51.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 3b3e2c488f16..b643419c4ac5 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.54.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 0d412cf9069f..914121b1a4bd 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.50.0 + 4.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.50.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/README.md b/java-datastream/README.md index 4dbefd512aba..2b54e46d005c 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.52.0' +implementation 'com.google.cloud:google-cloud-datastream:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index c5b6bb9582bd..49dfc2365d73 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -284,6 +284,21 @@ * * * + *

RunStream + *

Use this method to start, resume or recover a stream with a non default CDC strategy. + * + *

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

+ *
    + *
  • runStreamAsync(RunStreamRequest request) + *

+ *

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

+ *
    + *
  • runStreamOperationCallable() + *

  • runStreamCallable() + *

+ * + * + * *

GetStreamObject *

Use this method to get details about a stream object. * @@ -2256,6 +2271,96 @@ public final UnaryCallable deleteStreamCallable( return stub.deleteStreamCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start, resume or recover a stream with a non default CDC strategy. + * + *

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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   RunStreamRequest request =
+   *       RunStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setCdcStrategy(CdcStrategy.newBuilder().build())
+   *           .setForce(true)
+   *           .build();
+   *   Stream response = datastreamClient.runStreamAsync(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 runStreamAsync(RunStreamRequest request) { + return runStreamOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start, resume or recover a stream with a non default CDC strategy. + * + *

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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   RunStreamRequest request =
+   *       RunStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setCdcStrategy(CdcStrategy.newBuilder().build())
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.runStreamOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Stream response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + runStreamOperationCallable() { + return stub.runStreamOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start, resume or recover a stream with a non default CDC strategy. + * + *

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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   RunStreamRequest request =
+   *       RunStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setCdcStrategy(CdcStrategy.newBuilder().build())
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = datastreamClient.runStreamCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runStreamCallable() { + return stub.runStreamCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Use this method to get details about a stream object. diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index f0a842839fef..48712f276a47 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -226,6 +226,17 @@ public UnaryCallSettings deleteStreamSettings() return ((DatastreamStubSettings) getStubSettings()).deleteStreamOperationSettings(); } + /** Returns the object with the settings used for calls to runStream. */ + public UnaryCallSettings runStreamSettings() { + return ((DatastreamStubSettings) getStubSettings()).runStreamSettings(); + } + + /** Returns the object with the settings used for calls to runStream. */ + public OperationCallSettings + runStreamOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).runStreamOperationSettings(); + } + /** Returns the object with the settings used for calls to getStreamObject. */ public UnaryCallSettings getStreamObjectSettings() { return ((DatastreamStubSettings) getStubSettings()).getStreamObjectSettings(); @@ -561,6 +572,17 @@ public UnaryCallSettings.Builder deleteStreamSet return getStubSettingsBuilder().deleteStreamOperationSettings(); } + /** Returns the builder for the settings used for calls to runStream. */ + public UnaryCallSettings.Builder runStreamSettings() { + return getStubSettingsBuilder().runStreamSettings(); + } + + /** Returns the builder for the settings used for calls to runStream. */ + public OperationCallSettings.Builder + runStreamOperationSettings() { + return getStubSettingsBuilder().runStreamOperationSettings(); + } + /** Returns the builder for the settings used for calls to getStreamObject. */ public UnaryCallSettings.Builder getStreamObjectSettings() { diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json index 92f5a0e0556a..68840b1d52d4 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json @@ -79,6 +79,9 @@ "LookupStreamObject": { "methods": ["lookupStreamObject", "lookupStreamObjectCallable"] }, + "RunStream": { + "methods": ["runStreamAsync", "runStreamOperationCallable", "runStreamCallable"] + }, "StartBackfillJob": { "methods": ["startBackfillJob", "startBackfillJob", "startBackfillJob", "startBackfillJobCallable"] }, diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java index 7c800dfa3bc9..c4d4f429e87b 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java @@ -59,6 +59,7 @@ import com.google.cloud.datastream.v1.OperationMetadata; import com.google.cloud.datastream.v1.PrivateConnection; import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.RunStreamRequest; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StopBackfillJobRequest; @@ -186,6 +187,15 @@ public UnaryCallable deleteStreamCallable() { throw new UnsupportedOperationException("Not implemented: deleteStreamCallable()"); } + public OperationCallable + runStreamOperationCallable() { + throw new UnsupportedOperationException("Not implemented: runStreamOperationCallable()"); + } + + public UnaryCallable runStreamCallable() { + throw new UnsupportedOperationException("Not implemented: runStreamCallable()"); + } + public UnaryCallable getStreamObjectCallable() { throw new UnsupportedOperationException("Not implemented: getStreamObjectCallable()"); } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java index 88006236a2a8..279f6bd1547f 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java @@ -86,6 +86,7 @@ import com.google.cloud.datastream.v1.OperationMetadata; import com.google.cloud.datastream.v1.PrivateConnection; import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.RunStreamRequest; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StopBackfillJobRequest; @@ -225,6 +226,9 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings deleteStreamSettings; private final OperationCallSettings deleteStreamOperationSettings; + private final UnaryCallSettings runStreamSettings; + private final OperationCallSettings + runStreamOperationSettings; private final UnaryCallSettings getStreamObjectSettings; private final UnaryCallSettings lookupStreamObjectSettings; @@ -769,6 +773,17 @@ public UnaryCallSettings deleteStreamSettings() return deleteStreamOperationSettings; } + /** Returns the object with the settings used for calls to runStream. */ + public UnaryCallSettings runStreamSettings() { + return runStreamSettings; + } + + /** Returns the object with the settings used for calls to runStream. */ + public OperationCallSettings + runStreamOperationSettings() { + return runStreamOperationSettings; + } + /** Returns the object with the settings used for calls to getStreamObject. */ public UnaryCallSettings getStreamObjectSettings() { return getStreamObjectSettings; @@ -1019,6 +1034,8 @@ protected DatastreamStubSettings(Builder settingsBuilder) throws IOException { updateStreamOperationSettings = settingsBuilder.updateStreamOperationSettings().build(); deleteStreamSettings = settingsBuilder.deleteStreamSettings().build(); deleteStreamOperationSettings = settingsBuilder.deleteStreamOperationSettings().build(); + runStreamSettings = settingsBuilder.runStreamSettings().build(); + runStreamOperationSettings = settingsBuilder.runStreamOperationSettings().build(); getStreamObjectSettings = settingsBuilder.getStreamObjectSettings().build(); lookupStreamObjectSettings = settingsBuilder.lookupStreamObjectSettings().build(); listStreamObjectsSettings = settingsBuilder.listStreamObjectsSettings().build(); @@ -1084,6 +1101,9 @@ public static class Builder extends StubSettings.Builder deleteStreamSettings; private final OperationCallSettings.Builder deleteStreamOperationSettings; + private final UnaryCallSettings.Builder runStreamSettings; + private final OperationCallSettings.Builder + runStreamOperationSettings; private final UnaryCallSettings.Builder getStreamObjectSettings; private final UnaryCallSettings.Builder @@ -1195,6 +1215,8 @@ protected Builder(ClientContext clientContext) { updateStreamOperationSettings = OperationCallSettings.newBuilder(); deleteStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteStreamOperationSettings = OperationCallSettings.newBuilder(); + runStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runStreamOperationSettings = OperationCallSettings.newBuilder(); getStreamObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); lookupStreamObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listStreamObjectsSettings = PagedCallSettings.newBuilder(LIST_STREAM_OBJECTS_PAGE_STR_FACT); @@ -1230,6 +1252,7 @@ protected Builder(ClientContext clientContext) { createStreamSettings, updateStreamSettings, deleteStreamSettings, + runStreamSettings, getStreamObjectSettings, lookupStreamObjectSettings, listStreamObjectsSettings, @@ -1272,6 +1295,8 @@ protected Builder(DatastreamStubSettings settings) { updateStreamOperationSettings = settings.updateStreamOperationSettings.toBuilder(); deleteStreamSettings = settings.deleteStreamSettings.toBuilder(); deleteStreamOperationSettings = settings.deleteStreamOperationSettings.toBuilder(); + runStreamSettings = settings.runStreamSettings.toBuilder(); + runStreamOperationSettings = settings.runStreamOperationSettings.toBuilder(); getStreamObjectSettings = settings.getStreamObjectSettings.toBuilder(); lookupStreamObjectSettings = settings.lookupStreamObjectSettings.toBuilder(); listStreamObjectsSettings = settings.listStreamObjectsSettings.toBuilder(); @@ -1308,6 +1333,7 @@ protected Builder(DatastreamStubSettings settings) { createStreamSettings, updateStreamSettings, deleteStreamSettings, + runStreamSettings, getStreamObjectSettings, lookupStreamObjectSettings, listStreamObjectsSettings, @@ -1406,6 +1432,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .runStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getStreamObjectSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1630,6 +1661,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .runStreamOperationSettings() + .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(Stream.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .createPrivateConnectionOperationSettings() .setInitialCallSettings( @@ -1847,6 +1901,17 @@ public UnaryCallSettings.Builder deleteStreamSet return deleteStreamOperationSettings; } + /** Returns the builder for the settings used for calls to runStream. */ + public UnaryCallSettings.Builder runStreamSettings() { + return runStreamSettings; + } + + /** Returns the builder for the settings used for calls to runStream. */ + public OperationCallSettings.Builder + runStreamOperationSettings() { + return runStreamOperationSettings; + } + /** Returns the builder for the settings used for calls to getStreamObject. */ public UnaryCallSettings.Builder getStreamObjectSettings() { diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java index fa28e8674081..9d1573ac79d8 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java @@ -64,6 +64,7 @@ import com.google.cloud.datastream.v1.OperationMetadata; import com.google.cloud.datastream.v1.PrivateConnection; import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.RunStreamRequest; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StopBackfillJobRequest; @@ -204,6 +205,14 @@ public class GrpcDatastreamStub extends DatastreamStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor runStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/RunStream") + .setRequestMarshaller(ProtoUtils.marshaller(RunStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor getStreamObjectMethodDescriptor = MethodDescriptor.newBuilder() @@ -398,6 +407,9 @@ public class GrpcDatastreamStub extends DatastreamStub { private final UnaryCallable deleteStreamCallable; private final OperationCallable deleteStreamOperationCallable; + private final UnaryCallable runStreamCallable; + private final OperationCallable + runStreamOperationCallable; private final UnaryCallable getStreamObjectCallable; private final UnaryCallable lookupStreamObjectCallable; private final UnaryCallable @@ -602,6 +614,16 @@ protected GrpcDatastreamStub( return builder.build(); }) .build(); + GrpcCallSettings runStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getStreamObjectTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getStreamObjectMethodDescriptor) @@ -861,6 +883,15 @@ protected GrpcDatastreamStub( settings.deleteStreamOperationSettings(), clientContext, operationsStub); + this.runStreamCallable = + callableFactory.createUnaryCallable( + runStreamTransportSettings, settings.runStreamSettings(), clientContext); + this.runStreamOperationCallable = + callableFactory.createOperationCallable( + runStreamTransportSettings, + settings.runStreamOperationSettings(), + clientContext, + operationsStub); this.getStreamObjectCallable = callableFactory.createUnaryCallable( getStreamObjectTransportSettings, settings.getStreamObjectSettings(), clientContext); @@ -1081,6 +1112,17 @@ public UnaryCallable deleteStreamCallable() { return deleteStreamOperationCallable; } + @Override + public UnaryCallable runStreamCallable() { + return runStreamCallable; + } + + @Override + public OperationCallable + runStreamOperationCallable() { + return runStreamOperationCallable; + } + @Override public UnaryCallable getStreamObjectCallable() { return getStreamObjectCallable; diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java index 7fd5869b0d2c..437f032a3b1a 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java @@ -72,6 +72,7 @@ import com.google.cloud.datastream.v1.OperationMetadata; import com.google.cloud.datastream.v1.PrivateConnection; import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.RunStreamRequest; import com.google.cloud.datastream.v1.StartBackfillJobRequest; import com.google.cloud.datastream.v1.StartBackfillJobResponse; import com.google.cloud.datastream.v1.StopBackfillJobRequest; @@ -561,6 +562,45 @@ public class HttpJsonDatastreamStub extends DatastreamStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor runStreamMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.datastream.v1.Datastream/RunStream") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/streams/*}:run", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RunStreamRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor getStreamObjectMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1190,6 +1230,9 @@ public class HttpJsonDatastreamStub extends DatastreamStub { private final UnaryCallable deleteStreamCallable; private final OperationCallable deleteStreamOperationCallable; + private final UnaryCallable runStreamCallable; + private final OperationCallable + runStreamOperationCallable; private final UnaryCallable getStreamObjectCallable; private final UnaryCallable lookupStreamObjectCallable; private final UnaryCallable @@ -1433,6 +1476,17 @@ protected HttpJsonDatastreamStub( return builder.build(); }) .build(); + HttpJsonCallSettings runStreamTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runStreamMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getStreamObjectTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getStreamObjectMethodDescriptor) @@ -1710,6 +1764,15 @@ protected HttpJsonDatastreamStub( settings.deleteStreamOperationSettings(), clientContext, httpJsonOperationsStub); + this.runStreamCallable = + callableFactory.createUnaryCallable( + runStreamTransportSettings, settings.runStreamSettings(), clientContext); + this.runStreamOperationCallable = + callableFactory.createOperationCallable( + runStreamTransportSettings, + settings.runStreamOperationSettings(), + clientContext, + httpJsonOperationsStub); this.getStreamObjectCallable = callableFactory.createUnaryCallable( getStreamObjectTransportSettings, settings.getStreamObjectSettings(), clientContext); @@ -1832,6 +1895,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createStreamMethodDescriptor); methodDescriptors.add(updateStreamMethodDescriptor); methodDescriptors.add(deleteStreamMethodDescriptor); + methodDescriptors.add(runStreamMethodDescriptor); methodDescriptors.add(getStreamObjectMethodDescriptor); methodDescriptors.add(lookupStreamObjectMethodDescriptor); methodDescriptors.add(listStreamObjectsMethodDescriptor); @@ -1963,6 +2027,17 @@ public UnaryCallable deleteStreamCallable() { return deleteStreamOperationCallable; } + @Override + public UnaryCallable runStreamCallable() { + return runStreamCallable; + } + + @Override + public OperationCallable + runStreamOperationCallable() { + return runStreamOperationCallable; + } + @Override public UnaryCallable getStreamObjectCallable() { return getStreamObjectCallable; diff --git a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json index bcd96d36b1b1..46206ac0832a 100644 --- a/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json +++ b/java-datastream/google-cloud-datastream/src/main/resources/META-INF/native-image/com.google.cloud.datastream.v1/reflect-config.json @@ -476,6 +476,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$AppendOnly", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$AppendOnly$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$Builder", "queryAllDeclaredConstructors": true, @@ -485,6 +503,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$Merge", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$Merge$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.BigQueryDestinationConfig$SingleTargetDataset", "queryAllDeclaredConstructors": true, @@ -557,6 +593,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$MostRecentStartPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$MostRecentStartPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$NextAvailableStartPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$NextAvailableStartPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$SpecificStartPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.CdcStrategy$SpecificStartPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.ConnectionProfile", "queryAllDeclaredConstructors": true, @@ -1241,6 +1349,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.MysqlLogPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.MysqlLogPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.MysqlProfile", "queryAllDeclaredConstructors": true, @@ -1286,6 +1412,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.MysqlSourceConfig$BinaryLogPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.MysqlSourceConfig$BinaryLogPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.MysqlSourceConfig$Builder", "queryAllDeclaredConstructors": true, @@ -1295,6 +1439,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.MysqlSourceConfig$Gtid", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.MysqlSourceConfig$Gtid$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.MysqlSslConfig", "queryAllDeclaredConstructors": true, @@ -1349,6 +1511,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.OracleAsmConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleAsmConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.OracleColumn", "queryAllDeclaredConstructors": true, @@ -1421,6 +1601,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.OracleScnPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleScnPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.OracleSourceConfig", "queryAllDeclaredConstructors": true, @@ -1430,6 +1628,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser$LogFileDirectories", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser$LogFileDirectories$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser$OracleAsmLogFileAccess", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$BinaryLogParser$OracleAsmLogFileAccess$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.OracleSourceConfig$Builder", "queryAllDeclaredConstructors": true, @@ -1457,6 +1709,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$LogMiner", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSourceConfig$LogMiner$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.OracleSourceConfig$StreamLargeObjects", "queryAllDeclaredConstructors": true, @@ -1475,6 +1745,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.OracleSslConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.OracleSslConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.OracleTable", "queryAllDeclaredConstructors": true, @@ -1664,6 +1952,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.RunStreamRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.RunStreamRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.SourceConfig", "queryAllDeclaredConstructors": true, @@ -1754,6 +2060,186 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SqlServerObjectIdentifier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SourceObjectIdentifier$SqlServerObjectIdentifier$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerChangeTables", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerChangeTables$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerColumn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerColumn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerLsnPosition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerLsnPosition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerRdbms", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerRdbms$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerSchema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerSchema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerSourceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerSourceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerTable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerTable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerTransactionLogs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.SqlServerTransactionLogs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.StartBackfillJobRequest", "queryAllDeclaredConstructors": true, diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java index 9c0a58b3818f..175410ba7e7a 100644 --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java @@ -747,6 +747,7 @@ public void getStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -799,6 +800,7 @@ public void getStreamTest2() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -851,6 +853,7 @@ public void createStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -912,6 +915,7 @@ public void createStreamTest2() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -973,6 +977,7 @@ public void updateStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -993,6 +998,7 @@ public void updateStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1033,6 +1039,7 @@ public void updateStreamExceptionTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateStreamAsync(stream, updateMask).get(); @@ -1131,6 +1138,74 @@ public void deleteStreamExceptionTest2() throws Exception { } } + @Test + public void runStreamTest() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + + Stream actualResponse = client.runStreamAsync(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 runStreamExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + client.runStreamAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void getStreamObjectTest() throws Exception { StreamObject expectedResponse = diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java index 5af59c640273..f3982e91f861 100644 --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java @@ -577,6 +577,7 @@ public void discoverConnectionProfileTest() throws Exception { Assert.assertEquals(request.getOracleRdbms(), actualRequest.getOracleRdbms()); Assert.assertEquals(request.getMysqlRdbms(), actualRequest.getMysqlRdbms()); Assert.assertEquals(request.getPostgresqlRdbms(), actualRequest.getPostgresqlRdbms()); + Assert.assertEquals(request.getSqlServerRdbms(), actualRequest.getSqlServerRdbms()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -701,6 +702,7 @@ public void getStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); mockDatastream.addResponse(expectedResponse); @@ -747,6 +749,7 @@ public void getStreamTest2() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); mockDatastream.addResponse(expectedResponse); @@ -793,6 +796,7 @@ public void createStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -853,6 +857,7 @@ public void createStreamTest2() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -913,6 +918,7 @@ public void updateStreamTest() throws Exception { .setDestinationConfig(DestinationConfig.newBuilder().build()) .addAllErrors(new ArrayList()) .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1041,6 +1047,73 @@ public void deleteStreamExceptionTest2() throws Exception { } } + @Test + public void runStreamTest() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .setLastRecoveryTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + + Stream actualResponse = client.runStreamAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunStreamRequest actualRequest = ((RunStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCdcStrategy(), actualRequest.getCdcStrategy()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + client.runStreamAsync(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 getStreamObjectTest() throws Exception { StreamObject expectedResponse = diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java index 3cd165aa2f68..8ea793ae3e74 100644 --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java @@ -291,6 +291,26 @@ public void deleteStream( } } + @Override + public void runStream(RunStreamRequest 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 RunStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getStreamObject( GetStreamObjectRequest request, StreamObserver responseObserver) { diff --git a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java index 993305058c5c..225d39fedc1e 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java +++ b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -544,6 +544,47 @@ private DatastreamGrpc() {} return getDeleteStreamMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.RunStreamRequest, com.google.longrunning.Operation> + getRunStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunStream", + requestType = com.google.cloud.datastream.v1.RunStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.RunStreamRequest, com.google.longrunning.Operation> + getRunStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.RunStreamRequest, com.google.longrunning.Operation> + getRunStreamMethod; + if ((getRunStreamMethod = DatastreamGrpc.getRunStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getRunStreamMethod = DatastreamGrpc.getRunStreamMethod) == null) { + DatastreamGrpc.getRunStreamMethod = + getRunStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.RunStreamRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("RunStream")) + .build(); + } + } + } + return getRunStreamMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.datastream.v1.GetStreamObjectRequest, com.google.cloud.datastream.v1.StreamObject> @@ -1402,6 +1443,20 @@ default void deleteStream( getDeleteStreamMethod(), responseObserver); } + /** + * + * + *
+     * Use this method to start, resume or recover a stream with a non default CDC
+     * strategy.
+     * 
+ */ + default void runStream( + com.google.cloud.datastream.v1.RunStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunStreamMethod(), responseObserver); + } + /** * * @@ -1823,6 +1878,21 @@ public void deleteStream( responseObserver); } + /** + * + * + *
+     * Use this method to start, resume or recover a stream with a non default CDC
+     * strategy.
+     * 
+ */ + public void runStream( + com.google.cloud.datastream.v1.RunStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunStreamMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2222,6 +2292,20 @@ public com.google.longrunning.Operation deleteStream( getChannel(), getDeleteStreamMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Use this method to start, resume or recover a stream with a non default CDC
+     * strategy.
+     * 
+ */ + public com.google.longrunning.Operation runStream( + com.google.cloud.datastream.v1.RunStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunStreamMethod(), getCallOptions(), request); + } + /** * * @@ -2583,6 +2667,20 @@ protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Use this method to start, resume or recover a stream with a non default CDC
+     * strategy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runStream(com.google.cloud.datastream.v1.RunStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunStreamMethod(), getCallOptions()), request); + } + /** * * @@ -2793,20 +2891,21 @@ protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_CREATE_STREAM = 8; private static final int METHODID_UPDATE_STREAM = 9; private static final int METHODID_DELETE_STREAM = 10; - private static final int METHODID_GET_STREAM_OBJECT = 11; - private static final int METHODID_LOOKUP_STREAM_OBJECT = 12; - private static final int METHODID_LIST_STREAM_OBJECTS = 13; - private static final int METHODID_START_BACKFILL_JOB = 14; - private static final int METHODID_STOP_BACKFILL_JOB = 15; - private static final int METHODID_FETCH_STATIC_IPS = 16; - private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; - private static final int METHODID_GET_PRIVATE_CONNECTION = 18; - private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; - private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; - private static final int METHODID_CREATE_ROUTE = 21; - private static final int METHODID_GET_ROUTE = 22; - private static final int METHODID_LIST_ROUTES = 23; - private static final int METHODID_DELETE_ROUTE = 24; + private static final int METHODID_RUN_STREAM = 11; + private static final int METHODID_GET_STREAM_OBJECT = 12; + private static final int METHODID_LOOKUP_STREAM_OBJECT = 13; + private static final int METHODID_LIST_STREAM_OBJECTS = 14; + private static final int METHODID_START_BACKFILL_JOB = 15; + private static final int METHODID_STOP_BACKFILL_JOB = 16; + private static final int METHODID_FETCH_STATIC_IPS = 17; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 18; + private static final int METHODID_GET_PRIVATE_CONNECTION = 19; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 20; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 21; + private static final int METHODID_CREATE_ROUTE = 22; + private static final int METHODID_GET_ROUTE = 23; + private static final int METHODID_LIST_ROUTES = 24; + private static final int METHODID_DELETE_ROUTE = 25; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2887,6 +2986,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.datastream.v1.DeleteStreamRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_RUN_STREAM: + serviceImpl.runStream( + (com.google.cloud.datastream.v1.RunStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_STREAM_OBJECT: serviceImpl.getStreamObject( (com.google.cloud.datastream.v1.GetStreamObjectRequest) request, @@ -3056,6 +3160,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_STREAM))) + .addMethod( + getRunStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.RunStreamRequest, + com.google.longrunning.Operation>(service, METHODID_RUN_STREAM))) .addMethod( getGetStreamObjectMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3211,6 +3321,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateStreamMethod()) .addMethod(getUpdateStreamMethod()) .addMethod(getDeleteStreamMethod()) + .addMethod(getRunStreamMethod()) .addMethod(getGetStreamObjectMethod()) .addMethod(getLookupStreamObjectMethod()) .addMethod(getListStreamObjectsMethod()) diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java index 1a3d808c7e12..274e2c877745 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java @@ -504,10 +504,12 @@ private Trigger(int value) { * * *
-   * Backfill job state.
+   * Output only. Backfill job state.
    * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -519,10 +521,12 @@ public int getStateValue() { * * *
-   * Backfill job state.
+   * Output only. Backfill job state.
    * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1277,10 +1281,12 @@ public Builder mergeFrom( * * *
-     * Backfill job state.
+     * Output only. Backfill job state.
      * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -1292,10 +1298,12 @@ public int getStateValue() { * * *
-     * Backfill job state.
+     * Output only. Backfill job state.
      * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. @@ -1310,10 +1318,12 @@ public Builder setStateValue(int value) { * * *
-     * Backfill job state.
+     * Output only. Backfill job state.
      * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1329,10 +1339,12 @@ public com.google.cloud.datastream.v1.BackfillJob.State getState() { * * *
-     * Backfill job state.
+     * Output only. Backfill job state.
      * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The state to set. * @return This builder for chaining. @@ -1350,10 +1362,12 @@ public Builder setState(com.google.cloud.datastream.v1.BackfillJob.State value) * * *
-     * Backfill job state.
+     * Output only. Backfill job state.
      * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java index 645e4dba85dc..afdc459bd0c8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java @@ -28,10 +28,12 @@ public interface BackfillJobOrBuilder * * *
-   * Backfill job state.
+   * Output only. Backfill job state.
    * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -40,10 +42,12 @@ public interface BackfillJobOrBuilder * * *
-   * Backfill job state.
+   * Output only. Backfill job state.
    * 
* - * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * + * .google.cloud.datastream.v1.BackfillJob.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java index 09bbe58fa079..20376295bf84 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java @@ -71,6 +71,8 @@ public interface SingleTargetDatasetOrBuilder * *
      * The dataset ID of the target dataset.
+     * DatasetIds allowed characters:
+     * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
      * 
* * string dataset_id = 1; @@ -83,6 +85,8 @@ public interface SingleTargetDatasetOrBuilder * *
      * The dataset ID of the target dataset.
+     * DatasetIds allowed characters:
+     * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
      * 
* * string dataset_id = 1; @@ -145,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * The dataset ID of the target dataset.
+     * DatasetIds allowed characters:
+     * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
      * 
* * string dataset_id = 1; @@ -168,6 +174,8 @@ public java.lang.String getDatasetId() { * *
      * The dataset ID of the target dataset.
+     * DatasetIds allowed characters:
+     * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
      * 
* * string dataset_id = 1; @@ -561,6 +569,8 @@ public Builder mergeFrom( * *
        * The dataset ID of the target dataset.
+       * DatasetIds allowed characters:
+       * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
        * 
* * string dataset_id = 1; @@ -583,6 +593,8 @@ public java.lang.String getDatasetId() { * *
        * The dataset ID of the target dataset.
+       * DatasetIds allowed characters:
+       * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
        * 
* * string dataset_id = 1; @@ -605,6 +617,8 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * *
        * The dataset ID of the target dataset.
+       * DatasetIds allowed characters:
+       * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
        * 
* * string dataset_id = 1; @@ -626,6 +640,8 @@ public Builder setDatasetId(java.lang.String value) { * *
        * The dataset ID of the target dataset.
+       * DatasetIds allowed characters:
+       * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
        * 
* * string dataset_id = 1; @@ -643,6 +659,8 @@ public Builder clearDatasetId() { * *
        * The dataset ID of the target dataset.
+       * DatasetIds allowed characters:
+       * https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
        * 
* * string dataset_id = 1; @@ -2803,6 +2821,872 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface AppendOnlyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * AppendOnly mode defines that all changes to a table will be written to the
+   * destination table.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly} + */ + public static final class AppendOnly extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) + AppendOnlyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppendOnly.newBuilder() to construct. + private AppendOnly(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AppendOnly() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AppendOnly(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.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.datastream.v1.BigQueryDestinationConfig.AppendOnly)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) 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.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly 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.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly 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.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly 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.datastream.v1.BigQueryDestinationConfig.AppendOnly + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + 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.datastream.v1.BigQueryDestinationConfig.AppendOnly parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly 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.datastream.v1.BigQueryDestinationConfig.AppendOnly 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; + } + /** + * + * + *
+     * AppendOnly mode defines that all changes to a table will be written to the
+     * destination table.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly(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.datastream.v1.BigQueryDestinationConfig.AppendOnly) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .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.datastream.v1.BigQueryDestinationConfig.AppendOnly) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendOnly 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.datastream.v1.BigQueryDestinationConfig.AppendOnly + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Merge mode defines that all changes to a table will be merged at the
+   * destination table.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.Merge} + */ + public static final class Merge extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) + MergeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Merge.newBuilder() to construct. + private Merge(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Merge() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Merge(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.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.datastream.v1.BigQueryDestinationConfig.Merge)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) 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.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge 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.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge 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.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge 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.datastream.v1.BigQueryDestinationConfig.Merge parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge 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.datastream.v1.BigQueryDestinationConfig.Merge parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge 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.datastream.v1.BigQueryDestinationConfig.Merge 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; + } + /** + * + * + *
+     * Merge mode defines that all changes to a table will be merged at the
+     * destination table.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.Merge} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge(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.datastream.v1.BigQueryDestinationConfig.Merge) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.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.datastream.v1.BigQueryDestinationConfig.Merge) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Merge 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.datastream.v1.BigQueryDestinationConfig.Merge + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int datasetConfigCase_ = 0; @@ -2853,6 +3737,55 @@ public DatasetConfigCase getDatasetConfigCase() { return DatasetConfigCase.forNumber(datasetConfigCase_); } + private int writeModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object writeMode_; + + public enum WriteModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MERGE(301), + APPEND_ONLY(302), + WRITEMODE_NOT_SET(0); + private final int value; + + private WriteModeCase(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 WriteModeCase valueOf(int value) { + return forNumber(value); + } + + public static WriteModeCase forNumber(int value) { + switch (value) { + case 301: + return MERGE; + case 302: + return APPEND_ONLY; + case 0: + return WRITEMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public WriteModeCase getWriteModeCase() { + return WriteModeCase.forNumber(writeModeCase_); + } + public static final int SINGLE_TARGET_DATASET_FIELD_NUMBER = 201; /** * @@ -3038,6 +3971,113 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { : dataFreshness_; } + public static final int MERGE_FIELD_NUMBER = 301; + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return Whether the merge field is set. + */ + @java.lang.Override + public boolean hasMerge() { + return writeModeCase_ == 301; + } + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return The merge. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge getMerge() { + if (writeModeCase_ == 301) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder + getMergeOrBuilder() { + if (writeModeCase_ == 301) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + + public static final int APPEND_ONLY_FIELD_NUMBER = 302; + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return Whether the appendOnly field is set. + */ + @java.lang.Override + public boolean hasAppendOnly() { + return writeModeCase_ == 302; + } + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return The appendOnly. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly getAppendOnly() { + if (writeModeCase_ == 302) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.getDefaultInstance(); + } + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder + getAppendOnlyOrBuilder() { + if (writeModeCase_ == 302) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3067,6 +4107,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(300, getDataFreshness()); } + if (writeModeCase_ == 301) { + output.writeMessage( + 301, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_); + } + if (writeModeCase_ == 302) { + output.writeMessage( + 302, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_); + } getUnknownFields().writeTo(output); } @@ -3093,6 +4141,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(300, getDataFreshness()); } + if (writeModeCase_ == 301) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 301, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_); + } + if (writeModeCase_ == 302) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 302, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3124,6 +4183,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getWriteModeCase().equals(other.getWriteModeCase())) return false; + switch (writeModeCase_) { + case 301: + if (!getMerge().equals(other.getMerge())) return false; + break; + case 302: + if (!getAppendOnly().equals(other.getAppendOnly())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3151,6 +4221,18 @@ public int hashCode() { case 0: default: } + switch (writeModeCase_) { + case 301: + hash = (37 * hash) + MERGE_FIELD_NUMBER; + hash = (53 * hash) + getMerge().hashCode(); + break; + case 302: + hash = (37 * hash) + APPEND_ONLY_FIELD_NUMBER; + hash = (53 * hash) + getAppendOnly().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3311,8 +4393,16 @@ public Builder clear() { dataFreshnessBuilder_.dispose(); dataFreshnessBuilder_ = null; } + if (mergeBuilder_ != null) { + mergeBuilder_.clear(); + } + if (appendOnlyBuilder_ != null) { + appendOnlyBuilder_.clear(); + } datasetConfigCase_ = 0; datasetConfig_ = null; + writeModeCase_ = 0; + writeMode_ = null; return this; } @@ -3369,6 +4459,14 @@ private void buildPartialOneofs( if (datasetConfigCase_ == 202 && sourceHierarchyDatasetsBuilder_ != null) { result.datasetConfig_ = sourceHierarchyDatasetsBuilder_.build(); } + result.writeModeCase_ = writeModeCase_; + result.writeMode_ = this.writeMode_; + if (writeModeCase_ == 301 && mergeBuilder_ != null) { + result.writeMode_ = mergeBuilder_.build(); + } + if (writeModeCase_ == 302 && appendOnlyBuilder_ != null) { + result.writeMode_ = appendOnlyBuilder_.build(); + } } @java.lang.Override @@ -3436,6 +4534,22 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfi break; } } + switch (other.getWriteModeCase()) { + case MERGE: + { + mergeMerge(other.getMerge()); + break; + } + case APPEND_ONLY: + { + mergeAppendOnly(other.getAppendOnly()); + break; + } + case WRITEMODE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3482,6 +4596,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 2402 + case 2410: + { + input.readMessage(getMergeFieldBuilder().getBuilder(), extensionRegistry); + writeModeCase_ = 301; + break; + } // case 2410 + case 2418: + { + input.readMessage(getAppendOnlyFieldBuilder().getBuilder(), extensionRegistry); + writeModeCase_ = 302; + break; + } // case 2418 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3513,6 +4639,20 @@ public Builder clearDatasetConfig() { return this; } + private int writeModeCase_ = 0; + private java.lang.Object writeMode_; + + public WriteModeCase getWriteModeCase() { + return WriteModeCase.forNumber(writeModeCase_); + } + + public Builder clearWriteMode() { + writeModeCase_ = 0; + writeMode_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -4226,6 +5366,452 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { return dataFreshnessBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder> + mergeBuilder_; + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return Whether the merge field is set. + */ + @java.lang.Override + public boolean hasMerge() { + return writeModeCase_ == 301; + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return The merge. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge getMerge() { + if (mergeBuilder_ == null) { + if (writeModeCase_ == 301) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } else { + if (writeModeCase_ == 301) { + return mergeBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + public Builder setMerge(com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge value) { + if (mergeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writeMode_ = value; + onChanged(); + } else { + mergeBuilder_.setMessage(value); + } + writeModeCase_ = 301; + return this; + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + public Builder setMerge( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder builderForValue) { + if (mergeBuilder_ == null) { + writeMode_ = builderForValue.build(); + onChanged(); + } else { + mergeBuilder_.setMessage(builderForValue.build()); + } + writeModeCase_ = 301; + return this; + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + public Builder mergeMerge( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge value) { + if (mergeBuilder_ == null) { + if (writeModeCase_ == 301 + && writeMode_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge + .getDefaultInstance()) { + writeMode_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_) + .mergeFrom(value) + .buildPartial(); + } else { + writeMode_ = value; + } + onChanged(); + } else { + if (writeModeCase_ == 301) { + mergeBuilder_.mergeFrom(value); + } else { + mergeBuilder_.setMessage(value); + } + } + writeModeCase_ = 301; + return this; + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + public Builder clearMerge() { + if (mergeBuilder_ == null) { + if (writeModeCase_ == 301) { + writeModeCase_ = 0; + writeMode_ = null; + onChanged(); + } + } else { + if (writeModeCase_ == 301) { + writeModeCase_ = 0; + writeMode_ = null; + } + mergeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder + getMergeBuilder() { + return getMergeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder + getMergeOrBuilder() { + if ((writeModeCase_ == 301) && (mergeBuilder_ != null)) { + return mergeBuilder_.getMessageOrBuilder(); + } else { + if (writeModeCase_ == 301) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + } + /** + * + * + *
+     * The standard mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder> + getMergeFieldBuilder() { + if (mergeBuilder_ == null) { + if (!(writeModeCase_ == 301)) { + writeMode_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.getDefaultInstance(); + } + mergeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge) writeMode_, + getParentForChildren(), + isClean()); + writeMode_ = null; + } + writeModeCase_ = 301; + onChanged(); + return mergeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder> + appendOnlyBuilder_; + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return Whether the appendOnly field is set. + */ + @java.lang.Override + public boolean hasAppendOnly() { + return writeModeCase_ == 302; + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return The appendOnly. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly getAppendOnly() { + if (appendOnlyBuilder_ == null) { + if (writeModeCase_ == 302) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance(); + } else { + if (writeModeCase_ == 302) { + return appendOnlyBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + public Builder setAppendOnly( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly value) { + if (appendOnlyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + writeMode_ = value; + onChanged(); + } else { + appendOnlyBuilder_.setMessage(value); + } + writeModeCase_ = 302; + return this; + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + public Builder setAppendOnly( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder + builderForValue) { + if (appendOnlyBuilder_ == null) { + writeMode_ = builderForValue.build(); + onChanged(); + } else { + appendOnlyBuilder_.setMessage(builderForValue.build()); + } + writeModeCase_ = 302; + return this; + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + public Builder mergeAppendOnly( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly value) { + if (appendOnlyBuilder_ == null) { + if (writeModeCase_ == 302 + && writeMode_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance()) { + writeMode_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) + writeMode_) + .mergeFrom(value) + .buildPartial(); + } else { + writeMode_ = value; + } + onChanged(); + } else { + if (writeModeCase_ == 302) { + appendOnlyBuilder_.mergeFrom(value); + } else { + appendOnlyBuilder_.setMessage(value); + } + } + writeModeCase_ = 302; + return this; + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + public Builder clearAppendOnly() { + if (appendOnlyBuilder_ == null) { + if (writeModeCase_ == 302) { + writeModeCase_ = 0; + writeMode_ = null; + onChanged(); + } + } else { + if (writeModeCase_ == 302) { + writeModeCase_ = 0; + writeMode_ = null; + } + appendOnlyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder + getAppendOnlyBuilder() { + return getAppendOnlyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder + getAppendOnlyOrBuilder() { + if ((writeModeCase_ == 302) && (appendOnlyBuilder_ != null)) { + return appendOnlyBuilder_.getMessageOrBuilder(); + } else { + if (writeModeCase_ == 302) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Append only mode
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder> + getAppendOnlyFieldBuilder() { + if (appendOnlyBuilder_ == null) { + if (!(writeModeCase_ == 302)) { + writeMode_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly + .getDefaultInstance(); + } + appendOnlyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly) writeMode_, + getParentForChildren(), + isClean()); + writeMode_ = null; + } + writeModeCase_ = 302; + onChanged(); + return appendOnlyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java index b1704a87710e..0a9d5dd69468 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java @@ -154,5 +154,81 @@ public interface BigQueryDestinationConfigOrBuilder */ com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder(); + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return Whether the merge field is set. + */ + boolean hasMerge(); + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + * + * @return The merge. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Merge getMerge(); + /** + * + * + *
+   * The standard mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.Merge merge = 301; + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.MergeOrBuilder getMergeOrBuilder(); + + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return Whether the appendOnly field is set. + */ + boolean hasAppendOnly(); + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + * + * @return The appendOnly. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly getAppendOnly(); + /** + * + * + *
+   * Append only mode
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnly append_only = 302; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.AppendOnlyOrBuilder + getAppendOnlyOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase getDatasetConfigCase(); + + com.google.cloud.datastream.v1.BigQueryDestinationConfig.WriteModeCase getWriteModeCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java new file mode 100644 index 000000000000..b2496f7c7375 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategy.java @@ -0,0 +1,3973 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * The strategy that the stream uses for CDC replication.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy} + */ +public final class CdcStrategy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CdcStrategy) + CdcStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CdcStrategy.newBuilder() to construct. + private CdcStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CdcStrategy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CdcStrategy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.class, + com.google.cloud.datastream.v1.CdcStrategy.Builder.class); + } + + public interface MostRecentStartPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * CDC strategy to start replicating from the most recent position in the
+   * source.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition} + */ + public static final class MostRecentStartPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + MostRecentStartPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MostRecentStartPosition.newBuilder() to construct. + private MostRecentStartPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MostRecentStartPosition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MostRecentStartPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.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.datastream.v1.CdcStrategy.MostRecentStartPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition other = + (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) 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.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition 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.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition 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.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition 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.datastream.v1.CdcStrategy.MostRecentStartPosition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + 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.datastream.v1.CdcStrategy.MostRecentStartPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition 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.datastream.v1.CdcStrategy.MostRecentStartPosition 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; + } + /** + * + * + *
+     * CDC strategy to start replicating from the most recent position in the
+     * source.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition build() { + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition buildPartial() { + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition result = + new com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition(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.datastream.v1.CdcStrategy.MostRecentStartPosition) { + return mergeFrom( + (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition other) { + if (other + == com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .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.datastream.v1.CdcStrategy.MostRecentStartPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + private static final com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition(); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MostRecentStartPosition 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.datastream.v1.CdcStrategy.MostRecentStartPosition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NextAvailableStartPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * CDC strategy to resume replication from the next available position in the
+   * source.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition} + */ + public static final class NextAvailableStartPosition + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + NextAvailableStartPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NextAvailableStartPosition.newBuilder() to construct. + private NextAvailableStartPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NextAvailableStartPosition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NextAvailableStartPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.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.datastream.v1.CdcStrategy.NextAvailableStartPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition other = + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) 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.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition 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.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition 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.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition 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.datastream.v1.CdcStrategy.NextAvailableStartPosition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + 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.datastream.v1.CdcStrategy.NextAvailableStartPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition 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.datastream.v1.CdcStrategy.NextAvailableStartPosition 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; + } + /** + * + * + *
+     * CDC strategy to resume replication from the next available position in the
+     * source.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition build() { + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition buildPartial() { + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition result = + new com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition(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.datastream.v1.CdcStrategy.NextAvailableStartPosition) { + return mergeFrom( + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition other) { + if (other + == com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .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.datastream.v1.CdcStrategy.NextAvailableStartPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + private static final com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition(); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NextAvailableStartPosition 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.datastream.v1.CdcStrategy.NextAvailableStartPosition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SpecificStartPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return Whether the mysqlLogPosition field is set. + */ + boolean hasMysqlLogPosition(); + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return The mysqlLogPosition. + */ + com.google.cloud.datastream.v1.MysqlLogPosition getMysqlLogPosition(); + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder getMysqlLogPositionOrBuilder(); + + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return Whether the oracleScnPosition field is set. + */ + boolean hasOracleScnPosition(); + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return The oracleScnPosition. + */ + com.google.cloud.datastream.v1.OracleScnPosition getOracleScnPosition(); + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + com.google.cloud.datastream.v1.OracleScnPositionOrBuilder getOracleScnPositionOrBuilder(); + + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * @return Whether the sqlServerLsnPosition field is set. + */ + boolean hasSqlServerLsnPosition(); + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * @return The sqlServerLsnPosition. + */ + com.google.cloud.datastream.v1.SqlServerLsnPosition getSqlServerLsnPosition(); + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + */ + com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder getSqlServerLsnPositionOrBuilder(); + + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.PositionCase getPositionCase(); + } + /** + * + * + *
+   * CDC strategy to start replicating from a specific position in the source.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition} + */ + public static final class SpecificStartPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) + SpecificStartPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpecificStartPosition.newBuilder() to construct. + private SpecificStartPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpecificStartPosition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpecificStartPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder.class); + } + + private int positionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object position_; + + public enum PositionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MYSQL_LOG_POSITION(101), + ORACLE_SCN_POSITION(102), + SQL_SERVER_LSN_POSITION(103), + POSITION_NOT_SET(0); + private final int value; + + private PositionCase(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 PositionCase valueOf(int value) { + return forNumber(value); + } + + public static PositionCase forNumber(int value) { + switch (value) { + case 101: + return MYSQL_LOG_POSITION; + case 102: + return ORACLE_SCN_POSITION; + case 103: + return SQL_SERVER_LSN_POSITION; + case 0: + return POSITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PositionCase getPositionCase() { + return PositionCase.forNumber(positionCase_); + } + + public static final int MYSQL_LOG_POSITION_FIELD_NUMBER = 101; + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return Whether the mysqlLogPosition field is set. + */ + @java.lang.Override + public boolean hasMysqlLogPosition() { + return positionCase_ == 101; + } + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return The mysqlLogPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPosition getMysqlLogPosition() { + if (positionCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlLogPosition) position_; + } + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + /** + * + * + *
+     * MySQL specific log position to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder getMysqlLogPositionOrBuilder() { + if (positionCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlLogPosition) position_; + } + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + + public static final int ORACLE_SCN_POSITION_FIELD_NUMBER = 102; + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return Whether the oracleScnPosition field is set. + */ + @java.lang.Override + public boolean hasOracleScnPosition() { + return positionCase_ == 102; + } + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return The oracleScnPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPosition getOracleScnPosition() { + if (positionCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleScnPosition) position_; + } + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + /** + * + * + *
+     * Oracle SCN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPositionOrBuilder + getOracleScnPositionOrBuilder() { + if (positionCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleScnPosition) position_; + } + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + + public static final int SQL_SERVER_LSN_POSITION_FIELD_NUMBER = 103; + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * @return Whether the sqlServerLsnPosition field is set. + */ + @java.lang.Override + public boolean hasSqlServerLsnPosition() { + return positionCase_ == 103; + } + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * @return The sqlServerLsnPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPosition getSqlServerLsnPosition() { + if (positionCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_; + } + return com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } + /** + * + * + *
+     * SqlServer LSN to start replicating from.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder + getSqlServerLsnPositionOrBuilder() { + if (positionCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_; + } + return com.google.cloud.datastream.v1.SqlServerLsnPosition.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 (positionCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlLogPosition) position_); + } + if (positionCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.OracleScnPosition) position_); + } + if (positionCase_ == 103) { + output.writeMessage(103, (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (positionCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.MysqlLogPosition) position_); + } + if (positionCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.OracleScnPosition) position_); + } + if (positionCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_); + } + 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.datastream.v1.CdcStrategy.SpecificStartPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition other = + (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) obj; + + if (!getPositionCase().equals(other.getPositionCase())) return false; + switch (positionCase_) { + case 101: + if (!getMysqlLogPosition().equals(other.getMysqlLogPosition())) return false; + break; + case 102: + if (!getOracleScnPosition().equals(other.getOracleScnPosition())) return false; + break; + case 103: + if (!getSqlServerLsnPosition().equals(other.getSqlServerLsnPosition())) 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 (positionCase_) { + case 101: + hash = (37 * hash) + MYSQL_LOG_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getMysqlLogPosition().hashCode(); + break; + case 102: + hash = (37 * hash) + ORACLE_SCN_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getOracleScnPosition().hashCode(); + break; + case 103: + hash = (37 * hash) + SQL_SERVER_LSN_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerLsnPosition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition 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.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition 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.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition 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.datastream.v1.CdcStrategy.SpecificStartPosition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + 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.datastream.v1.CdcStrategy.SpecificStartPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition 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.datastream.v1.CdcStrategy.SpecificStartPosition 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; + } + /** + * + * + *
+     * CDC strategy to start replicating from a specific position in the source.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.class, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mysqlLogPositionBuilder_ != null) { + mysqlLogPositionBuilder_.clear(); + } + if (oracleScnPositionBuilder_ != null) { + oracleScnPositionBuilder_.clear(); + } + if (sqlServerLsnPositionBuilder_ != null) { + sqlServerLsnPositionBuilder_.clear(); + } + positionCase_ = 0; + position_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition build() { + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition buildPartial() { + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition result = + new com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition result) { + result.positionCase_ = positionCase_; + result.position_ = this.position_; + if (positionCase_ == 101 && mysqlLogPositionBuilder_ != null) { + result.position_ = mysqlLogPositionBuilder_.build(); + } + if (positionCase_ == 102 && oracleScnPositionBuilder_ != null) { + result.position_ = oracleScnPositionBuilder_.build(); + } + if (positionCase_ == 103 && sqlServerLsnPositionBuilder_ != null) { + result.position_ = sqlServerLsnPositionBuilder_.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.datastream.v1.CdcStrategy.SpecificStartPosition) { + return mergeFrom( + (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition other) { + if (other + == com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance()) return this; + switch (other.getPositionCase()) { + case MYSQL_LOG_POSITION: + { + mergeMysqlLogPosition(other.getMysqlLogPosition()); + break; + } + case ORACLE_SCN_POSITION: + { + mergeOracleScnPosition(other.getOracleScnPosition()); + break; + } + case SQL_SERVER_LSN_POSITION: + { + mergeSqlServerLsnPosition(other.getSqlServerLsnPosition()); + break; + } + case POSITION_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 810: + { + input.readMessage( + getMysqlLogPositionFieldBuilder().getBuilder(), extensionRegistry); + positionCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getOracleScnPositionFieldBuilder().getBuilder(), extensionRegistry); + positionCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getSqlServerLsnPositionFieldBuilder().getBuilder(), extensionRegistry); + positionCase_ = 103; + break; + } // case 826 + 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 positionCase_ = 0; + private java.lang.Object position_; + + public PositionCase getPositionCase() { + return PositionCase.forNumber(positionCase_); + } + + public Builder clearPosition() { + positionCase_ = 0; + position_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlLogPosition, + com.google.cloud.datastream.v1.MysqlLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder> + mysqlLogPositionBuilder_; + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return Whether the mysqlLogPosition field is set. + */ + @java.lang.Override + public boolean hasMysqlLogPosition() { + return positionCase_ == 101; + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + * + * @return The mysqlLogPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPosition getMysqlLogPosition() { + if (mysqlLogPositionBuilder_ == null) { + if (positionCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlLogPosition) position_; + } + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } else { + if (positionCase_ == 101) { + return mysqlLogPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + public Builder setMysqlLogPosition(com.google.cloud.datastream.v1.MysqlLogPosition value) { + if (mysqlLogPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + mysqlLogPositionBuilder_.setMessage(value); + } + positionCase_ = 101; + return this; + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + public Builder setMysqlLogPosition( + com.google.cloud.datastream.v1.MysqlLogPosition.Builder builderForValue) { + if (mysqlLogPositionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + mysqlLogPositionBuilder_.setMessage(builderForValue.build()); + } + positionCase_ = 101; + return this; + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + public Builder mergeMysqlLogPosition(com.google.cloud.datastream.v1.MysqlLogPosition value) { + if (mysqlLogPositionBuilder_ == null) { + if (positionCase_ == 101 + && position_ + != com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance()) { + position_ = + com.google.cloud.datastream.v1.MysqlLogPosition.newBuilder( + (com.google.cloud.datastream.v1.MysqlLogPosition) position_) + .mergeFrom(value) + .buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + if (positionCase_ == 101) { + mysqlLogPositionBuilder_.mergeFrom(value); + } else { + mysqlLogPositionBuilder_.setMessage(value); + } + } + positionCase_ = 101; + return this; + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + public Builder clearMysqlLogPosition() { + if (mysqlLogPositionBuilder_ == null) { + if (positionCase_ == 101) { + positionCase_ = 0; + position_ = null; + onChanged(); + } + } else { + if (positionCase_ == 101) { + positionCase_ = 0; + position_ = null; + } + mysqlLogPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + public com.google.cloud.datastream.v1.MysqlLogPosition.Builder getMysqlLogPositionBuilder() { + return getMysqlLogPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder + getMysqlLogPositionOrBuilder() { + if ((positionCase_ == 101) && (mysqlLogPositionBuilder_ != null)) { + return mysqlLogPositionBuilder_.getMessageOrBuilder(); + } else { + if (positionCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlLogPosition) position_; + } + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * MySQL specific log position to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlLogPosition mysql_log_position = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlLogPosition, + com.google.cloud.datastream.v1.MysqlLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder> + getMysqlLogPositionFieldBuilder() { + if (mysqlLogPositionBuilder_ == null) { + if (!(positionCase_ == 101)) { + position_ = com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + mysqlLogPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlLogPosition, + com.google.cloud.datastream.v1.MysqlLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder>( + (com.google.cloud.datastream.v1.MysqlLogPosition) position_, + getParentForChildren(), + isClean()); + position_ = null; + } + positionCase_ = 101; + onChanged(); + return mysqlLogPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleScnPosition, + com.google.cloud.datastream.v1.OracleScnPosition.Builder, + com.google.cloud.datastream.v1.OracleScnPositionOrBuilder> + oracleScnPositionBuilder_; + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return Whether the oracleScnPosition field is set. + */ + @java.lang.Override + public boolean hasOracleScnPosition() { + return positionCase_ == 102; + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + * + * @return The oracleScnPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPosition getOracleScnPosition() { + if (oracleScnPositionBuilder_ == null) { + if (positionCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleScnPosition) position_; + } + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } else { + if (positionCase_ == 102) { + return oracleScnPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + public Builder setOracleScnPosition(com.google.cloud.datastream.v1.OracleScnPosition value) { + if (oracleScnPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + oracleScnPositionBuilder_.setMessage(value); + } + positionCase_ = 102; + return this; + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + public Builder setOracleScnPosition( + com.google.cloud.datastream.v1.OracleScnPosition.Builder builderForValue) { + if (oracleScnPositionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + oracleScnPositionBuilder_.setMessage(builderForValue.build()); + } + positionCase_ = 102; + return this; + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + public Builder mergeOracleScnPosition( + com.google.cloud.datastream.v1.OracleScnPosition value) { + if (oracleScnPositionBuilder_ == null) { + if (positionCase_ == 102 + && position_ + != com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance()) { + position_ = + com.google.cloud.datastream.v1.OracleScnPosition.newBuilder( + (com.google.cloud.datastream.v1.OracleScnPosition) position_) + .mergeFrom(value) + .buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + if (positionCase_ == 102) { + oracleScnPositionBuilder_.mergeFrom(value); + } else { + oracleScnPositionBuilder_.setMessage(value); + } + } + positionCase_ = 102; + return this; + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + public Builder clearOracleScnPosition() { + if (oracleScnPositionBuilder_ == null) { + if (positionCase_ == 102) { + positionCase_ = 0; + position_ = null; + onChanged(); + } + } else { + if (positionCase_ == 102) { + positionCase_ = 0; + position_ = null; + } + oracleScnPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + public com.google.cloud.datastream.v1.OracleScnPosition.Builder + getOracleScnPositionBuilder() { + return getOracleScnPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPositionOrBuilder + getOracleScnPositionOrBuilder() { + if ((positionCase_ == 102) && (oracleScnPositionBuilder_ != null)) { + return oracleScnPositionBuilder_.getMessageOrBuilder(); + } else { + if (positionCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleScnPosition) position_; + } + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * Oracle SCN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.OracleScnPosition oracle_scn_position = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleScnPosition, + com.google.cloud.datastream.v1.OracleScnPosition.Builder, + com.google.cloud.datastream.v1.OracleScnPositionOrBuilder> + getOracleScnPositionFieldBuilder() { + if (oracleScnPositionBuilder_ == null) { + if (!(positionCase_ == 102)) { + position_ = com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + oracleScnPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleScnPosition, + com.google.cloud.datastream.v1.OracleScnPosition.Builder, + com.google.cloud.datastream.v1.OracleScnPositionOrBuilder>( + (com.google.cloud.datastream.v1.OracleScnPosition) position_, + getParentForChildren(), + isClean()); + position_ = null; + } + positionCase_ = 102; + onChanged(); + return oracleScnPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerLsnPosition, + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder, + com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder> + sqlServerLsnPositionBuilder_; + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * + * @return Whether the sqlServerLsnPosition field is set. + */ + @java.lang.Override + public boolean hasSqlServerLsnPosition() { + return positionCase_ == 103; + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + * + * @return The sqlServerLsnPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPosition getSqlServerLsnPosition() { + if (sqlServerLsnPositionBuilder_ == null) { + if (positionCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_; + } + return com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } else { + if (positionCase_ == 103) { + return sqlServerLsnPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + public Builder setSqlServerLsnPosition( + com.google.cloud.datastream.v1.SqlServerLsnPosition value) { + if (sqlServerLsnPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + onChanged(); + } else { + sqlServerLsnPositionBuilder_.setMessage(value); + } + positionCase_ = 103; + return this; + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + public Builder setSqlServerLsnPosition( + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder builderForValue) { + if (sqlServerLsnPositionBuilder_ == null) { + position_ = builderForValue.build(); + onChanged(); + } else { + sqlServerLsnPositionBuilder_.setMessage(builderForValue.build()); + } + positionCase_ = 103; + return this; + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + public Builder mergeSqlServerLsnPosition( + com.google.cloud.datastream.v1.SqlServerLsnPosition value) { + if (sqlServerLsnPositionBuilder_ == null) { + if (positionCase_ == 103 + && position_ + != com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance()) { + position_ = + com.google.cloud.datastream.v1.SqlServerLsnPosition.newBuilder( + (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_) + .mergeFrom(value) + .buildPartial(); + } else { + position_ = value; + } + onChanged(); + } else { + if (positionCase_ == 103) { + sqlServerLsnPositionBuilder_.mergeFrom(value); + } else { + sqlServerLsnPositionBuilder_.setMessage(value); + } + } + positionCase_ = 103; + return this; + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + public Builder clearSqlServerLsnPosition() { + if (sqlServerLsnPositionBuilder_ == null) { + if (positionCase_ == 103) { + positionCase_ = 0; + position_ = null; + onChanged(); + } + } else { + if (positionCase_ == 103) { + positionCase_ = 0; + position_ = null; + } + sqlServerLsnPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + public com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder + getSqlServerLsnPositionBuilder() { + return getSqlServerLsnPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder + getSqlServerLsnPositionOrBuilder() { + if ((positionCase_ == 103) && (sqlServerLsnPositionBuilder_ != null)) { + return sqlServerLsnPositionBuilder_.getMessageOrBuilder(); + } else { + if (positionCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_; + } + return com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } + } + /** + * + * + *
+       * SqlServer LSN to start replicating from.
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerLsnPosition sql_server_lsn_position = 103; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerLsnPosition, + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder, + com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder> + getSqlServerLsnPositionFieldBuilder() { + if (sqlServerLsnPositionBuilder_ == null) { + if (!(positionCase_ == 103)) { + position_ = com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } + sqlServerLsnPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerLsnPosition, + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder, + com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerLsnPosition) position_, + getParentForChildren(), + isClean()); + position_ = null; + } + positionCase_ = 103; + onChanged(); + return sqlServerLsnPositionBuilder_; + } + + @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.datastream.v1.CdcStrategy.SpecificStartPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) + private static final com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition(); + } + + public static com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpecificStartPosition 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.datastream.v1.CdcStrategy.SpecificStartPosition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int startPositionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object startPosition_; + + public enum StartPositionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MOST_RECENT_START_POSITION(101), + NEXT_AVAILABLE_START_POSITION(102), + SPECIFIC_START_POSITION(103), + STARTPOSITION_NOT_SET(0); + private final int value; + + private StartPositionCase(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 StartPositionCase valueOf(int value) { + return forNumber(value); + } + + public static StartPositionCase forNumber(int value) { + switch (value) { + case 101: + return MOST_RECENT_START_POSITION; + case 102: + return NEXT_AVAILABLE_START_POSITION; + case 103: + return SPECIFIC_START_POSITION; + case 0: + return STARTPOSITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StartPositionCase getStartPositionCase() { + return StartPositionCase.forNumber(startPositionCase_); + } + + public static final int MOST_RECENT_START_POSITION_FIELD_NUMBER = 101; + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mostRecentStartPosition field is set. + */ + @java.lang.Override + public boolean hasMostRecentStartPosition() { + return startPositionCase_ == 101; + } + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mostRecentStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + getMostRecentStartPosition() { + if (startPositionCase_ == 101) { + return (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder + getMostRecentStartPositionOrBuilder() { + if (startPositionCase_ == 101) { + return (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.getDefaultInstance(); + } + + public static final int NEXT_AVAILABLE_START_POSITION_FIELD_NUMBER = 102; + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextAvailableStartPosition field is set. + */ + @java.lang.Override + public boolean hasNextAvailableStartPosition() { + return startPositionCase_ == 102; + } + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextAvailableStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + getNextAvailableStartPosition() { + if (startPositionCase_ == 102) { + return (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder + getNextAvailableStartPositionOrBuilder() { + if (startPositionCase_ == 102) { + return (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + + public static final int SPECIFIC_START_POSITION_FIELD_NUMBER = 103; + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the specificStartPosition field is set. + */ + @java.lang.Override + public boolean hasSpecificStartPosition() { + return startPositionCase_ == 103; + } + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The specificStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + getSpecificStartPosition() { + if (startPositionCase_ == 103) { + return (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder + getSpecificStartPositionOrBuilder() { + if (startPositionCase_ == 103) { + return (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.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 (startPositionCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) startPosition_); + } + if (startPositionCase_ == 102) { + output.writeMessage( + 102, + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) startPosition_); + } + if (startPositionCase_ == 103) { + output.writeMessage( + 103, (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startPositionCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) startPosition_); + } + if (startPositionCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + startPosition_); + } + if (startPositionCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, + (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_); + } + 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.datastream.v1.CdcStrategy)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.CdcStrategy other = + (com.google.cloud.datastream.v1.CdcStrategy) obj; + + if (!getStartPositionCase().equals(other.getStartPositionCase())) return false; + switch (startPositionCase_) { + case 101: + if (!getMostRecentStartPosition().equals(other.getMostRecentStartPosition())) return false; + break; + case 102: + if (!getNextAvailableStartPosition().equals(other.getNextAvailableStartPosition())) + return false; + break; + case 103: + if (!getSpecificStartPosition().equals(other.getSpecificStartPosition())) 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 (startPositionCase_) { + case 101: + hash = (37 * hash) + MOST_RECENT_START_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getMostRecentStartPosition().hashCode(); + break; + case 102: + hash = (37 * hash) + NEXT_AVAILABLE_START_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getNextAvailableStartPosition().hashCode(); + break; + case 103: + hash = (37 * hash) + SPECIFIC_START_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getSpecificStartPosition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.CdcStrategy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy 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.datastream.v1.CdcStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy 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.datastream.v1.CdcStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.CdcStrategy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.CdcStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy 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.datastream.v1.CdcStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy 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.datastream.v1.CdcStrategy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.CdcStrategy 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.datastream.v1.CdcStrategy 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 strategy that the stream uses for CDC replication.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.CdcStrategy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CdcStrategy) + com.google.cloud.datastream.v1.CdcStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CdcStrategy.class, + com.google.cloud.datastream.v1.CdcStrategy.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.CdcStrategy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mostRecentStartPositionBuilder_ != null) { + mostRecentStartPositionBuilder_.clear(); + } + if (nextAvailableStartPositionBuilder_ != null) { + nextAvailableStartPositionBuilder_.clear(); + } + if (specificStartPositionBuilder_ != null) { + specificStartPositionBuilder_.clear(); + } + startPositionCase_ = 0; + startPosition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy build() { + com.google.cloud.datastream.v1.CdcStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy buildPartial() { + com.google.cloud.datastream.v1.CdcStrategy result = + new com.google.cloud.datastream.v1.CdcStrategy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.CdcStrategy result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.CdcStrategy result) { + result.startPositionCase_ = startPositionCase_; + result.startPosition_ = this.startPosition_; + if (startPositionCase_ == 101 && mostRecentStartPositionBuilder_ != null) { + result.startPosition_ = mostRecentStartPositionBuilder_.build(); + } + if (startPositionCase_ == 102 && nextAvailableStartPositionBuilder_ != null) { + result.startPosition_ = nextAvailableStartPositionBuilder_.build(); + } + if (startPositionCase_ == 103 && specificStartPositionBuilder_ != null) { + result.startPosition_ = specificStartPositionBuilder_.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.datastream.v1.CdcStrategy) { + return mergeFrom((com.google.cloud.datastream.v1.CdcStrategy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.CdcStrategy other) { + if (other == com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance()) return this; + switch (other.getStartPositionCase()) { + case MOST_RECENT_START_POSITION: + { + mergeMostRecentStartPosition(other.getMostRecentStartPosition()); + break; + } + case NEXT_AVAILABLE_START_POSITION: + { + mergeNextAvailableStartPosition(other.getNextAvailableStartPosition()); + break; + } + case SPECIFIC_START_POSITION: + { + mergeSpecificStartPosition(other.getSpecificStartPosition()); + break; + } + case STARTPOSITION_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 810: + { + input.readMessage( + getMostRecentStartPositionFieldBuilder().getBuilder(), extensionRegistry); + startPositionCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getNextAvailableStartPositionFieldBuilder().getBuilder(), extensionRegistry); + startPositionCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getSpecificStartPositionFieldBuilder().getBuilder(), extensionRegistry); + startPositionCase_ = 103; + break; + } // case 826 + 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 startPositionCase_ = 0; + private java.lang.Object startPosition_; + + public StartPositionCase getStartPositionCase() { + return StartPositionCase.forNumber(startPositionCase_); + } + + public Builder clearStartPosition() { + startPositionCase_ = 0; + startPosition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder> + mostRecentStartPositionBuilder_; + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mostRecentStartPosition field is set. + */ + @java.lang.Override + public boolean hasMostRecentStartPosition() { + return startPositionCase_ == 101; + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mostRecentStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + getMostRecentStartPosition() { + if (mostRecentStartPositionBuilder_ == null) { + if (startPositionCase_ == 101) { + return (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance(); + } else { + if (startPositionCase_ == 101) { + return mostRecentStartPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMostRecentStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition value) { + if (mostRecentStartPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startPosition_ = value; + onChanged(); + } else { + mostRecentStartPositionBuilder_.setMessage(value); + } + startPositionCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMostRecentStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder + builderForValue) { + if (mostRecentStartPositionBuilder_ == null) { + startPosition_ = builderForValue.build(); + onChanged(); + } else { + mostRecentStartPositionBuilder_.setMessage(builderForValue.build()); + } + startPositionCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMostRecentStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition value) { + if (mostRecentStartPositionBuilder_ == null) { + if (startPositionCase_ == 101 + && startPosition_ + != com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance()) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.newBuilder( + (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + startPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + startPosition_ = value; + } + onChanged(); + } else { + if (startPositionCase_ == 101) { + mostRecentStartPositionBuilder_.mergeFrom(value); + } else { + mostRecentStartPositionBuilder_.setMessage(value); + } + } + startPositionCase_ = 101; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMostRecentStartPosition() { + if (mostRecentStartPositionBuilder_ == null) { + if (startPositionCase_ == 101) { + startPositionCase_ = 0; + startPosition_ = null; + onChanged(); + } + } else { + if (startPositionCase_ == 101) { + startPositionCase_ = 0; + startPosition_ = null; + } + mostRecentStartPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder + getMostRecentStartPositionBuilder() { + return getMostRecentStartPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder + getMostRecentStartPositionOrBuilder() { + if ((startPositionCase_ == 101) && (mostRecentStartPositionBuilder_ != null)) { + return mostRecentStartPositionBuilder_.getMessageOrBuilder(); + } else { + if (startPositionCase_ == 101) { + return (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) + startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Start replicating from the most recent position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder> + getMostRecentStartPositionFieldBuilder() { + if (mostRecentStartPositionBuilder_ == null) { + if (!(startPositionCase_ == 101)) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition + .getDefaultInstance(); + } + mostRecentStartPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder>( + (com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition) startPosition_, + getParentForChildren(), + isClean()); + startPosition_ = null; + } + startPositionCase_ = 101; + onChanged(); + return mostRecentStartPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder> + nextAvailableStartPositionBuilder_; + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextAvailableStartPosition field is set. + */ + @java.lang.Override + public boolean hasNextAvailableStartPosition() { + return startPositionCase_ == 102; + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextAvailableStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + getNextAvailableStartPosition() { + if (nextAvailableStartPositionBuilder_ == null) { + if (startPositionCase_ == 102) { + return (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } else { + if (startPositionCase_ == 102) { + return nextAvailableStartPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNextAvailableStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition value) { + if (nextAvailableStartPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startPosition_ = value; + onChanged(); + } else { + nextAvailableStartPositionBuilder_.setMessage(value); + } + startPositionCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNextAvailableStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder + builderForValue) { + if (nextAvailableStartPositionBuilder_ == null) { + startPosition_ = builderForValue.build(); + onChanged(); + } else { + nextAvailableStartPositionBuilder_.setMessage(builderForValue.build()); + } + startPositionCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNextAvailableStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition value) { + if (nextAvailableStartPositionBuilder_ == null) { + if (startPositionCase_ == 102 + && startPosition_ + != com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance()) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.newBuilder( + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + startPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + startPosition_ = value; + } + onChanged(); + } else { + if (startPositionCase_ == 102) { + nextAvailableStartPositionBuilder_.mergeFrom(value); + } else { + nextAvailableStartPositionBuilder_.setMessage(value); + } + } + startPositionCase_ = 102; + return this; + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNextAvailableStartPosition() { + if (nextAvailableStartPositionBuilder_ == null) { + if (startPositionCase_ == 102) { + startPositionCase_ = 0; + startPosition_ = null; + onChanged(); + } + } else { + if (startPositionCase_ == 102) { + startPositionCase_ = 0; + startPosition_ = null; + } + nextAvailableStartPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder + getNextAvailableStartPositionBuilder() { + return getNextAvailableStartPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder + getNextAvailableStartPositionOrBuilder() { + if ((startPositionCase_ == 102) && (nextAvailableStartPositionBuilder_ != null)) { + return nextAvailableStartPositionBuilder_.getMessageOrBuilder(); + } else { + if (startPositionCase_ == 102) { + return (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Resume replication from the next available position in the
+     * source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder> + getNextAvailableStartPositionFieldBuilder() { + if (nextAvailableStartPositionBuilder_ == null) { + if (!(startPositionCase_ == 102)) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + .getDefaultInstance(); + } + nextAvailableStartPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder>( + (com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition) + startPosition_, + getParentForChildren(), + isClean()); + startPosition_ = null; + } + startPositionCase_ = 102; + onChanged(); + return nextAvailableStartPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder> + specificStartPositionBuilder_; + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the specificStartPosition field is set. + */ + @java.lang.Override + public boolean hasSpecificStartPosition() { + return startPositionCase_ == 103; + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The specificStartPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + getSpecificStartPosition() { + if (specificStartPositionBuilder_ == null) { + if (startPositionCase_ == 103) { + return (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance(); + } else { + if (startPositionCase_ == 103) { + return specificStartPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpecificStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition value) { + if (specificStartPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startPosition_ = value; + onChanged(); + } else { + specificStartPositionBuilder_.setMessage(value); + } + startPositionCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpecificStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder builderForValue) { + if (specificStartPositionBuilder_ == null) { + startPosition_ = builderForValue.build(); + onChanged(); + } else { + specificStartPositionBuilder_.setMessage(builderForValue.build()); + } + startPositionCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpecificStartPosition( + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition value) { + if (specificStartPositionBuilder_ == null) { + if (startPositionCase_ == 103 + && startPosition_ + != com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance()) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.newBuilder( + (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) + startPosition_) + .mergeFrom(value) + .buildPartial(); + } else { + startPosition_ = value; + } + onChanged(); + } else { + if (startPositionCase_ == 103) { + specificStartPositionBuilder_.mergeFrom(value); + } else { + specificStartPositionBuilder_.setMessage(value); + } + } + startPositionCase_ = 103; + return this; + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpecificStartPosition() { + if (specificStartPositionBuilder_ == null) { + if (startPositionCase_ == 103) { + startPositionCase_ = 0; + startPosition_ = null; + onChanged(); + } + } else { + if (startPositionCase_ == 103) { + startPositionCase_ = 0; + startPosition_ = null; + } + specificStartPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder + getSpecificStartPositionBuilder() { + return getSpecificStartPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder + getSpecificStartPositionOrBuilder() { + if ((startPositionCase_ == 103) && (specificStartPositionBuilder_ != null)) { + return specificStartPositionBuilder_.getMessageOrBuilder(); + } else { + if (startPositionCase_ == 103) { + return (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_; + } + return com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Start replicating from a specific position in the source.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder> + getSpecificStartPositionFieldBuilder() { + if (specificStartPositionBuilder_ == null) { + if (!(startPositionCase_ == 103)) { + startPosition_ = + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.getDefaultInstance(); + } + specificStartPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition.Builder, + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder>( + (com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition) startPosition_, + getParentForChildren(), + isClean()); + startPosition_ = null; + } + startPositionCase_ = 103; + onChanged(); + return specificStartPositionBuilder_; + } + + @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.datastream.v1.CdcStrategy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CdcStrategy) + private static final com.google.cloud.datastream.v1.CdcStrategy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CdcStrategy(); + } + + public static com.google.cloud.datastream.v1.CdcStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CdcStrategy 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.datastream.v1.CdcStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategyOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategyOrBuilder.java new file mode 100644 index 000000000000..bb5c83ef0da7 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CdcStrategyOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface CdcStrategyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CdcStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mostRecentStartPosition field is set. + */ + boolean hasMostRecentStartPosition(); + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mostRecentStartPosition. + */ + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition getMostRecentStartPosition(); + /** + * + * + *
+   * Optional. Start replicating from the most recent position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.MostRecentStartPosition most_recent_start_position = 101 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.CdcStrategy.MostRecentStartPositionOrBuilder + getMostRecentStartPositionOrBuilder(); + + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextAvailableStartPosition field is set. + */ + boolean hasNextAvailableStartPosition(); + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextAvailableStartPosition. + */ + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition + getNextAvailableStartPosition(); + /** + * + * + *
+   * Optional. Resume replication from the next available position in the
+   * source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPosition next_available_start_position = 102 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.CdcStrategy.NextAvailableStartPositionOrBuilder + getNextAvailableStartPositionOrBuilder(); + + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the specificStartPosition field is set. + */ + boolean hasSpecificStartPosition(); + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The specificStartPosition. + */ + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition getSpecificStartPosition(); + /** + * + * + *
+   * Optional. Start replicating from a specific position in the source.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy.SpecificStartPosition specific_start_position = 103 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.CdcStrategy.SpecificStartPositionOrBuilder + getSpecificStartPositionOrBuilder(); + + com.google.cloud.datastream.v1.CdcStrategy.StartPositionCase getStartPositionCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index c5d313825521..71df2c8d452f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -92,6 +92,7 @@ public enum ProfileCase MYSQL_PROFILE(102), BIGQUERY_PROFILE(103), POSTGRESQL_PROFILE(104), + SQL_SERVER_PROFILE(105), PROFILE_NOT_SET(0); private final int value; @@ -120,6 +121,8 @@ public static ProfileCase forNumber(int value) { return BIGQUERY_PROFILE; case 104: return POSTGRESQL_PROFILE; + case 105: + return SQL_SERVER_PROFILE; case 0: return PROFILE_NOT_SET; default: @@ -745,6 +748,57 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } + public static final int SQL_SERVER_PROFILE_FIELD_NUMBER = 105; + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return Whether the sqlServerProfile field is set. + */ + @java.lang.Override + public boolean hasSqlServerProfile() { + return profileCase_ == 105; + } + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return The sqlServerProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfile getSqlServerProfile() { + if (profileCase_ == 105) { + return (com.google.cloud.datastream.v1.SqlServerProfile) profile_; + } + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProfileOrBuilder() { + if (profileCase_ == 105) { + return (com.google.cloud.datastream.v1.SqlServerProfile) profile_; + } + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** * @@ -954,6 +1008,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (profileCase_ == 104) { output.writeMessage(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } + if (profileCase_ == 105) { + output.writeMessage(105, (com.google.cloud.datastream.v1.SqlServerProfile) profile_); + } if (connectivityCase_ == 200) { output.writeMessage( 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); @@ -1021,6 +1078,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } + if (profileCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, (com.google.cloud.datastream.v1.SqlServerProfile) profile_); + } if (connectivityCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1080,6 +1142,9 @@ public boolean equals(final java.lang.Object obj) { case 104: if (!getPostgresqlProfile().equals(other.getPostgresqlProfile())) return false; break; + case 105: + if (!getSqlServerProfile().equals(other.getSqlServerProfile())) return false; + break; case 0: default: } @@ -1146,6 +1211,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlProfile().hashCode(); break; + case 105: + hash = (37 * hash) + SQL_SERVER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerProfile().hashCode(); + break; case 0: default: } @@ -1365,6 +1434,9 @@ public Builder clear() { if (postgresqlProfileBuilder_ != null) { postgresqlProfileBuilder_.clear(); } + if (sqlServerProfileBuilder_ != null) { + sqlServerProfileBuilder_.clear(); + } if (staticServiceIpConnectivityBuilder_ != null) { staticServiceIpConnectivityBuilder_.clear(); } @@ -1455,6 +1527,9 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile if (profileCase_ == 104 && postgresqlProfileBuilder_ != null) { result.profile_ = postgresqlProfileBuilder_.build(); } + if (profileCase_ == 105 && sqlServerProfileBuilder_ != null) { + result.profile_ = sqlServerProfileBuilder_.build(); + } result.connectivityCase_ = connectivityCase_; result.connectivity_ = this.connectivity_; if (connectivityCase_ == 200 && staticServiceIpConnectivityBuilder_ != null) { @@ -1558,6 +1633,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) mergePostgresqlProfile(other.getPostgresqlProfile()); break; } + case SQL_SERVER_PROFILE: + { + mergeSqlServerProfile(other.getSqlServerProfile()); + break; + } case PROFILE_NOT_SET: { break; @@ -1677,6 +1757,13 @@ public Builder mergeFrom( profileCase_ = 104; break; } // case 834 + case 842: + { + input.readMessage( + getSqlServerProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 105; + break; + } // case 842 case 1602: { input.readMessage( @@ -3572,6 +3659,215 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro return postgresqlProfileBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerProfile, + com.google.cloud.datastream.v1.SqlServerProfile.Builder, + com.google.cloud.datastream.v1.SqlServerProfileOrBuilder> + sqlServerProfileBuilder_; + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return Whether the sqlServerProfile field is set. + */ + @java.lang.Override + public boolean hasSqlServerProfile() { + return profileCase_ == 105; + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return The sqlServerProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfile getSqlServerProfile() { + if (sqlServerProfileBuilder_ == null) { + if (profileCase_ == 105) { + return (com.google.cloud.datastream.v1.SqlServerProfile) profile_; + } + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } else { + if (profileCase_ == 105) { + return sqlServerProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + public Builder setSqlServerProfile(com.google.cloud.datastream.v1.SqlServerProfile value) { + if (sqlServerProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + sqlServerProfileBuilder_.setMessage(value); + } + profileCase_ = 105; + return this; + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + public Builder setSqlServerProfile( + com.google.cloud.datastream.v1.SqlServerProfile.Builder builderForValue) { + if (sqlServerProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + sqlServerProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 105; + return this; + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + public Builder mergeSqlServerProfile(com.google.cloud.datastream.v1.SqlServerProfile value) { + if (sqlServerProfileBuilder_ == null) { + if (profileCase_ == 105 + && profile_ != com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.SqlServerProfile.newBuilder( + (com.google.cloud.datastream.v1.SqlServerProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 105) { + sqlServerProfileBuilder_.mergeFrom(value); + } else { + sqlServerProfileBuilder_.setMessage(value); + } + } + profileCase_ = 105; + return this; + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + public Builder clearSqlServerProfile() { + if (sqlServerProfileBuilder_ == null) { + if (profileCase_ == 105) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 105) { + profileCase_ = 0; + profile_ = null; + } + sqlServerProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + public com.google.cloud.datastream.v1.SqlServerProfile.Builder getSqlServerProfileBuilder() { + return getSqlServerProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProfileOrBuilder() { + if ((profileCase_ == 105) && (sqlServerProfileBuilder_ != null)) { + return sqlServerProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 105) { + return (com.google.cloud.datastream.v1.SqlServerProfile) profile_; + } + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerProfile, + com.google.cloud.datastream.v1.SqlServerProfile.Builder, + com.google.cloud.datastream.v1.SqlServerProfileOrBuilder> + getSqlServerProfileFieldBuilder() { + if (sqlServerProfileBuilder_ == null) { + if (!(profileCase_ == 105)) { + profile_ = com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + sqlServerProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerProfile, + com.google.cloud.datastream.v1.SqlServerProfile.Builder, + com.google.cloud.datastream.v1.SqlServerProfileOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 105; + onChanged(); + return sqlServerProfileBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 5e9ba7cc428b..13b346a8fbc9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -383,6 +383,41 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder(); + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return Whether the sqlServerProfile field is set. + */ + boolean hasSqlServerProfile(); + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + * + * @return The sqlServerProfile. + */ + com.google.cloud.datastream.v1.SqlServerProfile getSqlServerProfile(); + /** + * + * + *
+   * SQLServer Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerProfile sql_server_profile = 105; + */ + com.google.cloud.datastream.v1.SqlServerProfileOrBuilder getSqlServerProfileOrBuilder(); + /** * * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java index a254c470536d..e0c97afb01fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_RunStreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -186,7 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032#google/longrunning/operations.proto" + "\032\033google/protobuf/empty.proto\032 google/pr" + "otobuf/field_mask.proto\032\037google/protobuf" - + "/timestamp.proto\"\375\003\n DiscoverConnectionP" + + "/timestamp.proto\"\305\004\n DiscoverConnectionP" + "rofileRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+d" + "atastream.googleapis.com/ConnectionProfi" + "le\022L\n\022connection_profile\030\310\001 \001(\0132-.google" @@ -198,279 +202,291 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sql_rdbms\030e \001(\0132&.google.cloud.datastrea" + "m.v1.MysqlRdbmsH\002\022G\n\020postgresql_rdbms\030f " + "\001(\0132+.google.cloud.datastream.v1.Postgre" - + "sqlRdbmsH\002B\010\n\006targetB\013\n\thierarchyB\r\n\013dat" - + "a_object\"\373\001\n!DiscoverConnectionProfileRe" - + "sponse\022?\n\014oracle_rdbms\030d \001(\0132\'.google.cl" - + "oud.datastream.v1.OracleRdbmsH\000\022=\n\013mysql" - + "_rdbms\030e \001(\0132&.google.cloud.datastream.v" - + "1.MysqlRdbmsH\000\022G\n\020postgresql_rdbms\030f \001(\013" - + "2+.google.cloud.datastream.v1.Postgresql" - + "RdbmsH\000B\r\n\013data_object\"w\n\025FetchStaticIps" - + "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026FetchStaticIp" - + "sResponse\022\022\n\nstatic_ips\030\001 \003(\t\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\255\001\n\035ListConnectionProfile" - + "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datast" - + "ream.googleapis.com/ConnectionProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListC" - + "onnectionProfilesResponse\022J\n\023connection_" - + "profiles\030\001 \003(\0132-.google.cloud.datastream" - + ".v1.ConnectionProfile\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\033GetConnec" - + "tionProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" - + "\n+datastream.googleapis.com/ConnectionPr" - + "ofile\"\242\002\n\036CreateConnectionProfileRequest" - + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.goo" - + "gleapis.com/ConnectionProfile\022\"\n\025connect" - + "ion_profile_id\030\002 \001(\tB\003\340A\002\022N\n\022connection_" - + "profile\030\003 \001(\0132-.google.cloud.datastream." - + "v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022" - + "\n\005force\030\006 \001(\010B\003\340A\001\"\357\001\n\036UpdateConnectionP" - + "rofileRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\001\022N\n\022connectio" - + "n_profile\030\002 \001(\0132-.google.cloud.datastrea" - + "m.v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_i" - + "d\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" - + "\022\022\n\005force\030\005 \001(\010B\003\340A\001\"|\n\036DeleteConnection" - + "ProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+da" - + "tastream.googleapis.com/ConnectionProfil" - + "e\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStrea" - + "msRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datas" - + "tream.googleapis.com/Stream\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\"x\n\023ListStreamsRespo" - + "nse\0223\n\007streams\030\001 \003(\0132\".google.cloud.data" - + "stream.v1.Stream\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"J\n\020GetStreamReque" - + "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream.goo" - + "gleapis.com/Stream\"\351\001\n\023CreateStreamReque" - + "st\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.g" - + "oogleapis.com/Stream\022\026\n\tstream_id\030\002 \001(\tB" - + "\003\340A\002\0227\n\006stream\030\003 \001(\0132\".google.cloud.data" - + "stream.v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" - + "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005fo" - + "rce\030\006 \001(\010B\003\340A\001\"\315\001\n\023UpdateStreamRequest\0224" - + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\0227\n\006stream\030\002 \001(\0132\".google.cl" - + "oud.datastream.v1.StreamB\003\340A\002\022\027\n\nrequest" - + "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" - + "A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamRe" - + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream." - + "googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001(" - + "\tB\003\340A\001\"V\n\026GetStreamObjectRequest\022<\n\004name" - + "\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.co" - + "m/StreamObject\"\260\001\n\031LookupStreamObjectReq" - + "uest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datastream" - + ".googleapis.com/Stream\022Y\n\030source_object_" - + "identifier\030\002 \001(\01322.google.cloud.datastre" - + "am.v1.SourceObjectIdentifierB\003\340A\002\"Y\n\027Sta" - + "rtBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340A" - + "\002\372A(\n&datastream.googleapis.com/StreamOb" - + "ject\"T\n\030StartBackfillJobResponse\0228\n\006obje" - + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" - + "reamObject\"X\n\026StopBackfillJobRequest\022>\n\006" - + "object\030\001 \001(\tB.\340A\002\372A(\n&datastream.googlea" - + "pis.com/StreamObject\"S\n\027StopBackfillJobR" - + "esponse\0228\n\006object\030\001 \001(\0132(.google.cloud.d" - + "atastream.v1.StreamObject\"\201\001\n\030ListStream" - + "ObjectsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&" - + "datastream.googleapis.com/StreamObject\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n" - + "\031ListStreamObjectsResponse\022@\n\016stream_obj" - + "ects\030\001 \003(\0132(.google.cloud.datastream.v1." - + "StreamObject\022\027\n\017next_page_token\030\002 \001(\t\"\316\002" - + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" - + "_time\030\002 \001(\0132\032.google.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_message\030\005 \001(\tB\003\340A\003\022#\n\026req" - + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" - + "rsion\030\007 \001(\tB\003\340A\003\022L\n\021validation_result\030\010 " - + "\001(\0132,.google.cloud.datastream.v1.Validat" - + "ionResultB\003\340A\003\"\206\002\n\036CreatePrivateConnecti" - + "onRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datas" - + "tream.googleapis.com/PrivateConnection\022\"" - + "\n\025private_connection_id\030\002 \001(\tB\003\340A\002\022N\n\022pr" - + "ivate_connection\030\003 \001(\0132-.google.cloud.da" - + "tastream.v1.PrivateConnectionB\003\340A\002\022\027\n\nre" - + "quest_id\030\004 \001(\tB\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" - + "\255\001\n\035ListPrivateConnectionsRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" - + ".com/PrivateConnection\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\"\232\001\n\036ListPrivateConnectio" - + "nsResponse\022J\n\023private_connections\030\001 \003(\0132" - + "-.google.cloud.datastream.v1.PrivateConn" - + "ection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"\220\001\n\036DeletePrivateConnection" - + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastrea" - + "m.googleapis.com/PrivateConnection\022\027\n\nre" - + "quest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"" - + "`\n\033GetPrivateConnectionRequest\022A\n\004name\030\001" - + " \001(\tB3\340A\002\372A-\n+datastream.googleapis.com/" - + "PrivateConnection\"\264\001\n\022CreateRouteRequest" - + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.goo" - + "gleapis.com/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002" - + "\0225\n\005route\030\003 \001(\0132!.google.cloud.datastrea" - + "m.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" - + "\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 \001(\tB\'" - + "\340A\002\372A!\022\037datastream.googleapis.com/Route\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\"u\n\022List" - + "RoutesResponse\0221\n\006routes\030\001 \003(\0132!.google." - + "cloud.datastream.v1.Route\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022Delet" - + "eRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dat" - + "astream.googleapis.com/Route\022\027\n\nrequest_" - + "id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.co" - + "m/Route2\375*\n\nDatastream\022\330\001\n\026ListConnectio" - + "nProfiles\0229.google.cloud.datastream.v1.L" - + "istConnectionProfilesRequest\032:.google.cl" - + "oud.datastream.v1.ListConnectionProfiles" - + "Response\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=p" - + "rojects/*/locations/*}/connectionProfile" - + "s\022\305\001\n\024GetConnectionProfile\0227.google.clou" - + "d.datastream.v1.GetConnectionProfileRequ" - + "est\032-.google.cloud.datastream.v1.Connect" - + "ionProfile\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=pro" - + "jects/*/locations/*/connectionProfiles/*" - + "}\022\244\002\n\027CreateConnectionProfile\022:.google.c" - + "loud.datastream.v1.CreateConnectionProfi" - + "leRequest\032\035.google.longrunning.Operation" - + "\"\255\001\312A&\n\021ConnectionProfile\022\021OperationMeta" - + "data\332A/parent,connection_profile,connect" - + "ion_profile_id\202\323\344\223\002L\"6/v1/{parent=projec" - + "ts/*/locations/*}/connectionProfiles:\022co" - + "nnection_profile\022\246\002\n\027UpdateConnectionPro" - + "file\022:.google.cloud.datastream.v1.Update" - + "ConnectionProfileRequest\032\035.google.longru" - + "nning.Operation\"\257\001\312A&\n\021ConnectionProfile" - + "\022\021OperationMetadata\332A\036connection_profile" - + ",update_mask\202\323\344\223\002_2I/v1/{connection_prof" - + "ile.name=projects/*/locations/*/connecti" - + "onProfiles/*}:\022connection_profile\022\350\001\n\027De" - + "leteConnectionProfile\022:.google.cloud.dat" - + "astream.v1.DeleteConnectionProfileReques" + + "sqlRdbmsH\002\022F\n\020sql_server_rdbms\030g \001(\0132*.g" + + "oogle.cloud.datastream.v1.SqlServerRdbms" + + "H\002B\010\n\006targetB\013\n\thierarchyB\r\n\013data_object" + + "\"\303\002\n!DiscoverConnectionProfileResponse\022?" + + "\n\014oracle_rdbms\030d \001(\0132\'.google.cloud.data" + + "stream.v1.OracleRdbmsH\000\022=\n\013mysql_rdbms\030e" + + " \001(\0132&.google.cloud.datastream.v1.MysqlR" + + "dbmsH\000\022G\n\020postgresql_rdbms\030f \001(\0132+.googl" + + "e.cloud.datastream.v1.PostgresqlRdbmsH\000\022" + + "F\n\020sql_server_rdbms\030g \001(\0132*.google.cloud" + + ".datastream.v1.SqlServerRdbmsH\000B\r\n\013data_" + + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" + + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\255" + + "\001\n\035ListConnectionProfilesRequest\022C\n\006pare" + + "nt\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis." + + "com/ConnectionProfile\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\010" + + "order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfile" + + "sResponse\022J\n\023connection_profiles\030\001 \003(\0132-" + + ".google.cloud.datastream.v1.ConnectionPr" + + "ofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"`\n\033GetConnectionProfileReque" + + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.goo" + + "gleapis.com/ConnectionProfile\"\242\002\n\036Create" + + "ConnectionProfileRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\022+datastream.googleapis.com/Conn" + + "ectionProfile\022\"\n\025connection_profile_id\030\002" + + " \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-." + + "google.cloud.datastream.v1.ConnectionPro" + + "fileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rva" + + "lidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340" + + "A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\0132" + + "-.google.cloud.datastream.v1.ConnectionP" + + "rofileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + + "validate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010B" + + "\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/ConnectionProfile\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006par" + + "ent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis" + + ".com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005" + + " \001(\t\"x\n\023ListStreamsResponse\0223\n\007streams\030\001" + + " \003(\0132\".google.cloud.datastream.v1.Stream" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(\t" + + "B(\340A\002\372A\"\n datastream.googleapis.com/Stre" + + "am\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 \001" + + "(\tB(\340A\002\372A\"\022 datastream.googleapis.com/St" + + "ream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030\003" + + " \001(\0132\".google.cloud.datastream.v1.Stream" + + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalida" + + "te_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"\315" + + "\001\n\023UpdateStreamRequest\0224\n\013update_mask\030\001 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0227\n\006" + + "stream\030\002 \001(\0132\".google.cloud.datastream.v" + + "1.StreamB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032" + + "\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(" + + "\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001 " + + "\001(\tB(\340A\002\372A\"\n datastream.googleapis.com/S" + + "tream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\242\001\n\020RunSt" + + "reamRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datas" + + "tream.googleapis.com/Stream\022B\n\014cdc_strat" + + "egy\030\002 \001(\0132\'.google.cloud.datastream.v1.C" + + "dcStrategyB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"V\n\026G" + + "etStreamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002" + + "\372A(\n&datastream.googleapis.com/StreamObj" + + "ect\"\260\001\n\031LookupStreamObjectRequest\0228\n\006par" + + "ent\030\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis" + + ".com/Stream\022Y\n\030source_object_identifier\030" + + "\002 \001(\01322.google.cloud.datastream.v1.Sourc" + + "eObjectIdentifierB\003\340A\002\"Y\n\027StartBackfillJ" + + "obRequest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datas" + + "tream.googleapis.com/StreamObject\"T\n\030Sta" + + "rtBackfillJobResponse\0228\n\006object\030\001 \001(\0132(." + + "google.cloud.datastream.v1.StreamObject\"" + + "X\n\026StopBackfillJobRequest\022>\n\006object\030\001 \001(" + + "\tB.\340A\002\372A(\n&datastream.googleapis.com/Str" + + "eamObject\"S\n\027StopBackfillJobResponse\0228\n\006" + + "object\030\001 \001(\0132(.google.cloud.datastream.v" + + "1.StreamObject\"\201\001\n\030ListStreamObjectsRequ" + + "est\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream." + + "googleapis.com/StreamObject\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStream" + + "ObjectsResponse\022@\n\016stream_objects\030\001 \003(\0132" + + "(.google.cloud.datastream.v1.StreamObjec" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"\316\002\n\021Operation" + + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006tar" + + "get\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016sta" + + "tus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_canc" + + "ellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\t" + + "B\003\340A\003\022L\n\021validation_result\030\010 \001(\0132,.googl" + + "e.cloud.datastream.v1.ValidationResultB\003" + + "\340A\003\"\206\002\n\036CreatePrivateConnectionRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" + + "eapis.com/PrivateConnection\022\"\n\025private_c" + + "onnection_id\030\002 \001(\tB\003\340A\002\022N\n\022private_conne" + + "ction\030\003 \001(\0132-.google.cloud.datastream.v1" + + ".PrivateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"\255\001\n\035ListPri" + + "vateConnectionsRequest\022C\n\006parent\030\001 \001(\tB3" + + "\340A\002\372A-\022+datastream.googleapis.com/Privat" + + "eConnection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005" + + " \001(\t\"\232\001\n\036ListPrivateConnectionsResponse\022" + + "J\n\023private_connections\030\001 \003(\0132-.google.cl" + + "oud.datastream.v1.PrivateConnection\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"\220\001\n\036DeletePrivateConnectionRequest\022A\n\004" + + "name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapi" + + "s.com/PrivateConnection\022\027\n\nrequest_id\030\002 " + + "\001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"`\n\033GetPriva" + + "teConnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A" + + "-\n+datastream.googleapis.com/PrivateConn" + + "ection\"\264\001\n\022CreateRouteRequest\0227\n\006parent\030" + + "\001 \001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com" + + "/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002\0225\n\005route\030\003" + + " \001(\0132!.google.cloud.datastream.v1.RouteB" + + "\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRo" + + "utesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dat" + + "astream.googleapis.com/Route\022\021\n\tpage_siz" + + "e\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\"u\n\022ListRoutesRespo" + + "nse\0221\n\006routes\030\001 \003(\0132!.google.cloud.datas" + + "tream.v1.Route\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"d\n\022DeleteRouteReque" + + "st\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.goo" + + "gleapis.com/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + + "A\001\"H\n\017GetRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + + "\372A!\n\037datastream.googleapis.com/Route2\262,\n" + + "\nDatastream\022\330\001\n\026ListConnectionProfiles\0229" + + ".google.cloud.datastream.v1.ListConnecti" + + "onProfilesRequest\032:.google.cloud.datastr" + + "eam.v1.ListConnectionProfilesResponse\"G\332" + + "A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/l" + + "ocations/*}/connectionProfiles\022\305\001\n\024GetCo" + + "nnectionProfile\0227.google.cloud.datastrea" + + "m.v1.GetConnectionProfileRequest\032-.googl" + + "e.cloud.datastream.v1.ConnectionProfile\"" + + "E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/loc" + + "ations/*/connectionProfiles/*}\022\244\002\n\027Creat" + + "eConnectionProfile\022:.google.cloud.datast" + + "ream.v1.CreateConnectionProfileRequest\032\035" + + ".google.longrunning.Operation\"\255\001\312A&\n\021Con" + + "nectionProfile\022\021OperationMetadata\332A/pare" + + "nt,connection_profile,connection_profile" + + "_id\202\323\344\223\002L\"6/v1/{parent=projects/*/locati" + + "ons/*}/connectionProfiles:\022connection_pr" + + "ofile\022\246\002\n\027UpdateConnectionProfile\022:.goog" + + "le.cloud.datastream.v1.UpdateConnectionP" + + "rofileRequest\032\035.google.longrunning.Opera" + + "tion\"\257\001\312A&\n\021ConnectionProfile\022\021Operation" + + "Metadata\332A\036connection_profile,update_mas" + + "k\202\323\344\223\002_2I/v1/{connection_profile.name=pr" + + "ojects/*/locations/*/connectionProfiles/" + + "*}:\022connection_profile\022\350\001\n\027DeleteConnect" + + "ionProfile\022:.google.cloud.datastream.v1." + + "DeleteConnectionProfileRequest\032\035.google." + + "longrunning.Operation\"r\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "8*6/v1/{name=projects/*/locations/*/conn" + + "ectionProfiles/*}\022\344\001\n\031DiscoverConnection" + + "Profile\022<.google.cloud.datastream.v1.Dis" + + "coverConnectionProfileRequest\032=.google.c" + + "loud.datastream.v1.DiscoverConnectionPro" + + "fileResponse\"J\202\323\344\223\002D\"?/v1/{parent=projec" + + "ts/*/locations/*}/connectionProfiles:dis" + + "cover:\001*\022\254\001\n\013ListStreams\022..google.cloud." + + "datastream.v1.ListStreamsRequest\032/.googl" + + "e.cloud.datastream.v1.ListStreamsRespons" + + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=projects" + + "/*/locations/*}/streams\022\231\001\n\tGetStream\022,." + + "google.cloud.datastream.v1.GetStreamRequ" + + "est\032\".google.cloud.datastream.v1.Stream\"" + + ":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/loc" + + "ations/*/streams/*}\022\323\001\n\014CreateStream\022/.g" + + "oogle.cloud.datastream.v1.CreateStreamRe" + + "quest\032\035.google.longrunning.Operation\"s\312A" + + "\033\n\006Stream\022\021OperationMetadata\332A\027parent,st" + + "ream,stream_id\202\323\344\223\0025\"+/v1/{parent=projec" + + "ts/*/locations/*}/streams:\006stream\022\325\001\n\014Up" + + "dateStream\022/.google.cloud.datastream.v1." + + "UpdateStreamRequest\032\035.google.longrunning" + + ".Operation\"u\312A\033\n\006Stream\022\021OperationMetada" + + "ta\332A\022stream,update_mask\202\323\344\223\002<22/v1/{stre" + + "am.name=projects/*/locations/*/streams/*" + + "}:\006stream\022\307\001\n\014DeleteStream\022/.google.clou" + + "d.datastream.v1.DeleteStreamRequest\032\035.go" + + "ogle.longrunning.Operation\"g\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002-*+/v1/{name=projects/*/locations/*" + + "/streams/*}\022\262\001\n\tRunStream\022,.google.cloud" + + ".datastream.v1.RunStreamRequest\032\035.google" + + ".longrunning.Operation\"X\312A\033\n\006Stream\022\021Ope" + + "rationMetadata\202\323\344\223\0024\"//v1/{name=projects" + + "/*/locations/*/streams/*}:run:\001*\022\265\001\n\017Get" + + "StreamObject\0222.google.cloud.datastream.v" + + "1.GetStreamObjectRequest\032(.google.cloud." + + "datastream.v1.StreamObject\"D\332A\004name\202\323\344\223\002" + + "7\0225/v1/{name=projects/*/locations/*/stre" + + "ams/*/objects/*}\022\276\001\n\022LookupStreamObject\022" + + "5.google.cloud.datastream.v1.LookupStrea" + + "mObjectRequest\032(.google.cloud.datastream" + + ".v1.StreamObject\"G\202\323\344\223\002A\"cloud.google.com/go/datastream/ap" - + "iv1/datastreampb;datastreampb\252\002\032Google.C" - + "loud.Datastream.V1\312\002\032Google\\Cloud\\Datast" - + "ream\\V1\352\002\035Google::Cloud::Datastream::V1b" - + "\006proto3" + + "data\332A\004name\202\323\344\223\002A*?/v1/{name=projects/*/" + + "locations/*/privateConnections/*/routes/" + + "*}\032M\312A\031datastream.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\315\001\n\036com.google.cloud.datastream.v1B\017Da" + + "tastreamProtoP\001Z>cloud.google.com/go/dat" + + "astream/apiv1/datastreampb;datastreampb\252" + + "\002\032Google.Cloud.Datastream.V1\312\002\032Google\\Cl" + + "oud\\Datastream\\V1\352\002\035Google::Cloud::Datas" + + "tream::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -500,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", + "SqlServerRdbms", "Target", "Hierarchy", "DataObject", @@ -510,7 +527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor, new java.lang.String[] { - "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "DataObject", + "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "SqlServerRdbms", "DataObject", }); internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -629,8 +646,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = + internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1_RunStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor, + new java.lang.String[] { + "Name", "CdcStrategy", "Force", + }); + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor, @@ -638,7 +663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor, @@ -646,7 +671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SourceObjectIdentifier", }); internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, @@ -654,7 +679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Object", }); internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor, @@ -662,7 +687,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Object", }); internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor, @@ -670,7 +695,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Object", }); internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor, @@ -678,7 +703,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Object", }); internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor, @@ -686,7 +711,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor, @@ -694,7 +719,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StreamObjects", "NextPageToken", }); internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor, @@ -709,7 +734,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValidationResult", }); internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor, @@ -717,7 +742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "Force", }); internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor, @@ -725,7 +750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor, @@ -733,7 +758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor, @@ -741,7 +766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor, @@ -749,7 +774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor, @@ -757,7 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RouteId", "Route", "RequestId", }); internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor, @@ -765,7 +790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor, @@ -773,7 +798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Routes", "NextPageToken", "Unreachable", }); internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor, @@ -781,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor, diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java index 75702646e76d..fa94c34fd9cd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java @@ -36,6 +36,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleAsmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -44,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerProfile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -88,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSslConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -124,6 +140,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -144,6 +176,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -164,6 +224,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -196,6 +264,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -236,6 +312,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -264,6 +344,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CdcStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleScnPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlLogPosition_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -278,307 +386,409 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1\032\037google/api/field_behavior.proto\032\031go" + "ogle/api/resource.proto\032\036google/protobuf" + "/duration.proto\032\037google/protobuf/timesta" - + "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" + + "mp.proto\"\351\003\n\rOracleProfile\022\025\n\010hostname\030\001" + " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" - + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" + + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\001\022\035\n\020databas" + "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" + "butes\030\006 \003(\0132C.google.cloud.datastream.v1" + ".OracleProfile.ConnectionAttributesEntry" - + "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" - + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" - + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" - + "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." - + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" - + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" - + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" - + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" - + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" - + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" - + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" - + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" - + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" - + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" - + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" - + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" - + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" - + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" - + "bels\030\004 \003(\01329.google.cloud.datastream.v1." - + "PrivateConnection.LabelsEntry\022\031\n\014display" - + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" - + ".cloud.datastream.v1.PrivateConnection.S" - + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." - + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" - + "config\030d \001(\0132,.google.cloud.datastream.v" - + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" - + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" - + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" - + "s.com/PrivateConnection\022Oprojects/{proje" - + "ct}/locations/{location}/privateConnecti" - + "ons/{private_connection}\"f\n\023PrivateConne" - + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" - + "\372A-\n+datastream.googleapis.com/PrivateCo" - + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" - + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" - + "\0132-.google.cloud.datastream.v1.Route.Lab" - + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" - + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" - + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" - + "m.googleapis.com/Route\022^projects/{projec" - + "t}/locations/{location}/privateConnectio" - + "ns/{private_connection}/routes/{route}\"\312" - + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" - + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" - + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" - + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" - + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" - + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" - + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" - + "nnectionProfile.LabelsEntry\022\031\n\014display_n" - + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" - + ".google.cloud.datastream.v1.OracleProfil" - + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." - + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" - + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" - + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" - + "+.google.cloud.datastream.v1.BigQueryPro" - + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" - + "gle.cloud.datastream.v1.PostgresqlProfil" - + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" - + " \001(\01327.google.cloud.datastream.v1.Static" - + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" - + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" - + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" - + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" - + "loud.datastream.v1.PrivateConnectivityH\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" - + "/ConnectionProfile\022Oprojects/{project}/l" - + "ocations/{location}/connectionProfiles/{" - + "connection_profile}B\t\n\007profileB\016\n\014connec" - + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" - + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" - + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" - + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" - + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" - + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" - + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" - + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" - + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" - + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" - + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" - + "tastream.v1.OracleSchema\"\347\003\n\022OracleSourc" - + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" - + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" - + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" - + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" - + "c_tasks\030\003 \001(\005\022%\n\035max_concurrent_backfill" - + "_tasks\030\004 \001(\005\022]\n\022drop_large_objects\030d \001(\013" - + "2?.google.cloud.datastream.v1.OracleSour" - + "ceConfig.DropLargeObjectsH\000\022a\n\024stream_la" - + "rge_objects\030f \001(\0132A.google.cloud.datastr" - + "eam.v1.OracleSourceConfig.StreamLargeObj" - + "ectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLarg" - + "eObjectsB\030\n\026large_objects_handling\"\250\001\n\020P" - + "ostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_" - + "type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030" - + "\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001(" - + "\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030" - + "\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t\022" - + "H\n\022postgresql_columns\030\002 \003(\0132,.google.clo" - + "ud.datastream.v1.PostgresqlColumn\"j\n\020Pos" - + "tgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgre" - + "sql_tables\030\002 \003(\0132+.google.cloud.datastre" - + "am.v1.PostgresqlTable\"[\n\017PostgresqlRdbms" - + "\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.cl" - + "oud.datastream.v1.PostgresqlSchema\"\207\002\n\026P" - + "ostgresqlSourceConfig\022D\n\017include_objects" - + "\030\001 \001(\0132+.google.cloud.datastream.v1.Post" - + "gresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+.g" - + "oogle.cloud.datastream.v1.PostgresqlRdbm" - + "s\022 \n\020replication_slot\030\003 \001(\tB\006\340A\002\340A\005\022\030\n\013p" - + "ublication\030\004 \001(\tB\003\340A\002\022%\n\035max_concurrent_" - + "backfill_tasks\030\005 \001(\005\"\266\001\n\013MysqlColumn\022\016\n\006" - + "column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006lengt" - + "h\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_ke" - + "y\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_pos" - + "ition\030\007 \001(\005\022\021\n\tprecision\030\010 \001(\005\022\r\n\005scale\030" - + "\t \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t\022>\n\rmy" - + "sql_columns\030\002 \003(\0132\'.google.cloud.datastr" - + "eam.v1.MysqlColumn\"_\n\rMysqlDatabase\022\020\n\010d" - + "atabase\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(\0132&.go" - + "ogle.cloud.datastream.v1.MysqlTable\"P\n\nM" - + "ysqlRdbms\022B\n\017mysql_databases\030\001 \003(\0132).goo" - + "gle.cloud.datastream.v1.MysqlDatabase\"\336\001" - + "\n\021MysqlSourceConfig\022?\n\017include_objects\030\001" - + " \001(\0132&.google.cloud.datastream.v1.MysqlR" - + "dbms\022?\n\017exclude_objects\030\002 \001(\0132&.google.c" - + "loud.datastream.v1.MysqlRdbms\022 \n\030max_con" - + "current_cdc_tasks\030\003 \001(\005\022%\n\035max_concurren" - + "t_backfill_tasks\030\004 \001(\005\"\364\002\n\014SourceConfig\022" - + "V\n\031source_connection_profile\030\001 \001(\tB3\340A\002\372" - + "A-\n+datastream.googleapis.com/Connection" - + "Profile\022N\n\024oracle_source_config\030d \001(\0132.." - + "google.cloud.datastream.v1.OracleSourceC" - + "onfigH\000\022L\n\023mysql_source_config\030e \001(\0132-.g" - + "oogle.cloud.datastream.v1.MysqlSourceCon" - + "figH\000\022V\n\030postgresql_source_config\030f \001(\0132" - + "2.google.cloud.datastream.v1.PostgresqlS" - + "ourceConfigH\000B\026\n\024source_stream_config\"\020\n" - + "\016AvroFileFormat\"\357\002\n\016JsonFileFormat\022W\n\022sc" - + "hema_file_format\030\001 \001(\0162;.google.cloud.da" - + "tastream.v1.JsonFileFormat.SchemaFileFor" - + "mat\022O\n\013compression\030\002 \001(\0162:.google.cloud." - + "datastream.v1.JsonFileFormat.JsonCompres" - + "sion\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA_FILE_" - + "FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_FILE\020\001" - + "\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonCompressio" - + "n\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020\000\022\022\n\016N" - + "O_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsDestina" - + "tionConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_rotatio" - + "n_mb\030\002 \001(\005\0229\n\026file_rotation_interval\030\003 \001" - + "(\0132\031.google.protobuf.Duration\022F\n\020avro_fi" - + "le_format\030d \001(\0132*.google.cloud.datastrea" - + "m.v1.AvroFileFormatH\000\022F\n\020json_file_forma" - + "t\030e \001(\0132*.google.cloud.datastream.v1.Jso" - + "nFileFormatH\000B\r\n\013file_format\"\336\004\n\031BigQuer" - + "yDestinationConfig\022k\n\025single_target_data" - + "set\030\311\001 \001(\0132I.google.cloud.datastream.v1." - + "BigQueryDestinationConfig.SingleTargetDa" - + "tasetH\000\022s\n\031source_hierarchy_datasets\030\312\001 " - + "\001(\0132M.google.cloud.datastream.v1.BigQuer" - + "yDestinationConfig.SourceHierarchyDatase" - + "tsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.google.p" - + "rotobuf.Duration\032)\n\023SingleTargetDataset\022" - + "\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHierarchyD" - + "atasets\022w\n\020dataset_template\030\002 \001(\0132].goog" - + "le.cloud.datastream.v1.BigQueryDestinati" - + "onConfig.SourceHierarchyDatasets.Dataset" - + "Template\032Y\n\017DatasetTemplate\022\025\n\010location\030" - + "\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 \001(\t\022\024\n" - + "\014kms_key_name\030\003 \001(\tB\020\n\016dataset_config\"\277\002" - + "\n\021DestinationConfig\022[\n\036destination_conne" - + "ction_profile\030\001 \001(\tB3\340A\002\372A-\n+datastream." - + "googleapis.com/ConnectionProfile\022R\n\026gcs_" - + "destination_config\030d \001(\01320.google.cloud." - + "datastream.v1.GcsDestinationConfigH\000\022\\\n\033" - + "bigquery_destination_config\030e \001(\01325.goog" - + "le.cloud.datastream.v1.BigQueryDestinati" - + "onConfigH\000B\033\n\031destination_stream_config\"" - + "\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_" + + "\022K\n\021oracle_ssl_config\030\007 \001(\0132+.google.clo" + + "ud.datastream.v1.OracleSslConfigB\003\340A\001\022K\n" + + "\021oracle_asm_config\030\010 \001(\0132+.google.cloud." + + "datastream.v1.OracleAsmConfigB\003\340A\001\022+\n\036se" + + "cret_manager_stored_password\030\t \001(\tB\003\340A\001\032" + + ";\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\370\002\n\017OracleAsmConfig" + + "\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340" + + "A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 " + + "\001(\tB\003\340A\002\022\030\n\013asm_service\030\005 \001(\tB\003\340A\002\022i\n\025co" + + "nnection_attributes\030\006 \003(\0132E.google.cloud" + + ".datastream.v1.OracleAsmConfig.Connectio" + + "nAttributesEntryB\003\340A\001\022K\n\021oracle_ssl_conf" + + "ig\030\007 \001(\0132+.google.cloud.datastream.v1.Or" + + "acleSslConfigB\003\340A\001\032;\n\031ConnectionAttribut" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\244\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" + + "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\001\340A\004\022>\n\nssl_config\030\005 \001" + + "(\0132*.google.cloud.datastream.v1.MysqlSsl" + + "Config\"}\n\021PostgresqlProfile\022\025\n\010hostname\030" + + "\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001" + + "(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\001\022\025\n\010databa" + + "se\030\005 \001(\tB\003\340A\002\"|\n\020SqlServerProfile\022\025\n\010hos" + + "tname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010userna" + + "me\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\001\022\025\n\010" + + "database\030\005 \001(\tB\003\340A\002\"4\n\nGcsProfile\022\023\n\006buc" + + "ket\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\021\n\017Big" + + "QueryProfile\"\035\n\033StaticServiceIpConnectiv" + + "ity\"\250\001\n\034ForwardSshTunnelConnectivity\022\025\n\010" + + "hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001(\tB\003\340" + + "A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB\003\340A\004H" + + "\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authent" + + "ication_method\"]\n\020VpcPeeringConfig\0224\n\003vp" + + "c\030\001 \001(\tB\'\340A\002\372A!\n\037compute.googleapis.com/" + + "Networks\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\340\005\n\021Privat" + + "eConnection\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\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022I\n\006labels\030\004 \003(\01329.goo" + + "gle.cloud.datastream.v1.PrivateConnectio" + + "n.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002" + + "\022G\n\005state\030\006 \001(\01623.google.cloud.datastrea" + + "m.v1.PrivateConnection.StateB\003\340A\003\0225\n\005err" + + "or\030\007 \001(\0132!.google.cloud.datastream.v1.Er" + + "rorB\003\340A\003\022H\n\022vpc_peering_config\030d \001(\0132,.g" + + "oogle.cloud.datastream.v1.VpcPeeringConf" + + "ig\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003" + + "\022\014\n\010DELETING\020\004\022\024\n\020FAILED_TO_DELETE\020\005:\201\001\352" + + "A~\n+datastream.googleapis.com/PrivateCon" + + "nection\022Oprojects/{project}/locations/{l" + + "ocation}/privateConnections/{private_con" + + "nection}\"f\n\023PrivateConnectivity\022O\n\022priva" + + "te_connection\030\001 \001(\tB3\340A\002\372A-\n+datastream." + + "googleapis.com/PrivateConnection\"\323\003\n\005Rou" + + "te\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\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022=\n\006labels\030\004 \003(\0132-.google.cloud" + + ".datastream.v1.Route.LabelsEntry\022\031\n\014disp" + + "lay_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_addre" + + "ss\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007 \001(\005\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapis.com" + + "/Route\022^projects/{project}/locations/{lo" + + "cation}/privateConnections/{private_conn" + + "ection}/routes/{route}\"\312\001\n\016MysqlSslConfi" + + "g\022\027\n\nclient_key\030\001 \001(\tB\003\340A\004\022\033\n\016client_key" + + "_set\030\002 \001(\010B\003\340A\003\022\037\n\022client_certificate\030\003 " + + "\001(\tB\003\340A\004\022#\n\026client_certificate_set\030\004 \001(\010" + + "B\003\340A\003\022\033\n\016ca_certificate\030\005 \001(\tB\003\340A\004\022\037\n\022ca" + + "_certificate_set\030\006 \001(\010B\003\340A\003\"O\n\017OracleSsl" + + "Config\022\033\n\016ca_certificate\030\001 \001(\tB\003\340A\004\022\037\n\022c" + + "a_certificate_set\030\002 \001(\010B\003\340A\003\"\204\t\n\021Connect" + + "ionProfile\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\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..goog" - + "le.cloud.datastream.v1.Stream.LabelsEntr" - + "y\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_c" - + "onfig\030\006 \001(\0132(.google.cloud.datastream.v1" - + ".SourceConfigB\003\340A\002\022N\n\022destination_config" - + "\030\007 \001(\0132-.google.cloud.datastream.v1.Dest" - + "inationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.goog" - + "le.cloud.datastream.v1.Stream.State\022N\n\014b" - + "ackfill_all\030e \001(\01326.google.cloud.datastr" - + "eam.v1.Stream.BackfillAllStrategyH\000\022P\n\rb" - + "ackfill_none\030f \001(\01327.google.cloud.datast" - + "ream.v1.Stream.BackfillNoneStrategyH\000\0226\n" - + "\006errors\030\t \003(\0132!.google.cloud.datastream." - + "v1.ErrorB\003\340A\003\0221\n\037customer_managed_encryp" - + "tion_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023BackfillAll" + + "uf.TimestampB\003\340A\003\022I\n\006labels\030\004 \003(\01329.goog" + + "le.cloud.datastream.v1.ConnectionProfile" + + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" + + "C\n\016oracle_profile\030d \001(\0132).google.cloud.d" + + "atastream.v1.OracleProfileH\000\022=\n\013gcs_prof" + + "ile\030e \001(\0132&.google.cloud.datastream.v1.G" + + "csProfileH\000\022A\n\rmysql_profile\030f \001(\0132(.goo" + + "gle.cloud.datastream.v1.MysqlProfileH\000\022G" + + "\n\020bigquery_profile\030g \001(\0132+.google.cloud." + + "datastream.v1.BigQueryProfileH\000\022K\n\022postg" + + "resql_profile\030h \001(\0132-.google.cloud.datas" + + "tream.v1.PostgresqlProfileH\000\022J\n\022sql_serv" + + "er_profile\030i \001(\0132,.google.cloud.datastre" + + "am.v1.SqlServerProfileH\000\022b\n\036static_servi" + + "ce_ip_connectivity\030\310\001 \001(\01327.google.cloud" + + ".datastream.v1.StaticServiceIpConnectivi" + + "tyH\001\022]\n\030forward_ssh_connectivity\030\311\001 \001(\0132" + + "8.google.cloud.datastream.v1.ForwardSshT" + + "unnelConnectivityH\001\022P\n\024private_connectiv" + + "ity\030\312\001 \001(\0132/.google.cloud.datastream.v1." + + "PrivateConnectivityH\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\201\001\352A~\n+data" + + "stream.googleapis.com/ConnectionProfile\022" + + "Oprojects/{project}/locations/{location}" + + "/connectionProfiles/{connection_profile}" + + "B\t\n\007profileB\016\n\014connectivity\"\266\001\n\014OracleCo" + + "lumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022" + + "\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005sc" + + "ale\030\005 \001(\005\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_k" + + "ey\030\007 \001(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_po" + + "sition\030\t \001(\005\"^\n\013OracleTable\022\r\n\005table\030\001 \001" + + "(\t\022@\n\016oracle_columns\030\002 \003(\0132(.google.clou" + + "d.datastream.v1.OracleColumn\"^\n\014OracleSc" + + "hema\022\016\n\006schema\030\001 \001(\t\022>\n\roracle_tables\030\002 " + + "\003(\0132\'.google.cloud.datastream.v1.OracleT" + + "able\"O\n\013OracleRdbms\022@\n\016oracle_schemas\030\001 " + + "\003(\0132(.google.cloud.datastream.v1.OracleS" + + "chema\"\273\010\n\022OracleSourceConfig\022@\n\017include_" + + "objects\030\001 \001(\0132\'.google.cloud.datastream." + + "v1.OracleRdbms\022@\n\017exclude_objects\030\002 \001(\0132" + + "\'.google.cloud.datastream.v1.OracleRdbms" + + "\022 \n\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035ma" + + "x_concurrent_backfill_tasks\030\004 \001(\005\022]\n\022dro" + + "p_large_objects\030d \001(\0132?.google.cloud.dat" + + "astream.v1.OracleSourceConfig.DropLargeO" + + "bjectsH\000\022a\n\024stream_large_objects\030f \001(\0132A" + + ".google.cloud.datastream.v1.OracleSource" + + "Config.StreamLargeObjectsH\000\022L\n\tlog_miner" + + "\030g \001(\01327.google.cloud.datastream.v1.Orac" + + "leSourceConfig.LogMinerH\001\022[\n\021binary_log_" + + "parser\030h \001(\0132>.google.cloud.datastream.v" + + "1.OracleSourceConfig.BinaryLogParserH\001\032\022" + + "\n\020DropLargeObjects\032\024\n\022StreamLargeObjects" + + "\032\n\n\010LogMiner\032\214\003\n\017BinaryLogParser\022{\n\032orac" + + "le_asm_log_file_access\030\001 \001(\0132U.google.cl" + + "oud.datastream.v1.OracleSourceConfig.Bin" + + "aryLogParser.OracleAsmLogFileAccessH\000\022q\n" + + "\024log_file_directories\030\002 \001(\0132Q.google.clo" + + "ud.datastream.v1.OracleSourceConfig.Bina" + + "ryLogParser.LogFileDirectoriesH\000\032\030\n\026Orac" + + "leAsmLogFileAccess\032\\\n\022LogFileDirectories" + + "\022!\n\024online_log_directory\030\001 \001(\tB\003\340A\002\022#\n\026a" + + "rchived_log_directory\030\002 \001(\tB\003\340A\002B\021\n\017log_" + + "file_accessB\030\n\026large_objects_handlingB\014\n" + + "\ncdc_method\"\250\001\n\020PostgresqlColumn\022\016\n\006colu" + + "mn\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 " + + "\001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n" + + "\013primary_key\030\007 \001(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020" + + "ordinal_position\030\t \001(\005\"j\n\017PostgresqlTabl" + + "e\022\r\n\005table\030\001 \001(\t\022H\n\022postgresql_columns\030\002" + + " \003(\0132,.google.cloud.datastream.v1.Postgr" + + "esqlColumn\"j\n\020PostgresqlSchema\022\016\n\006schema" + + "\030\001 \001(\t\022F\n\021postgresql_tables\030\002 \003(\0132+.goog" + + "le.cloud.datastream.v1.PostgresqlTable\"[" + + "\n\017PostgresqlRdbms\022H\n\022postgresql_schemas\030" + + "\001 \003(\0132,.google.cloud.datastream.v1.Postg" + + "resqlSchema\"\207\002\n\026PostgresqlSourceConfig\022D" + + "\n\017include_objects\030\001 \001(\0132+.google.cloud.d" + + "atastream.v1.PostgresqlRdbms\022D\n\017exclude_" + + "objects\030\002 \001(\0132+.google.cloud.datastream." + + "v1.PostgresqlRdbms\022 \n\020replication_slot\030\003" + + " \001(\tB\006\340A\002\340A\005\022\030\n\013publication\030\004 \001(\tB\003\340A\002\022%" + + "\n\035max_concurrent_backfill_tasks\030\005 \001(\005\"\247\001" + + "\n\017SqlServerColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdat" + + "a_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecisio" + + "n\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\006 " + + "\001(\010\022\020\n\010nullable\030\007 \001(\010\022\030\n\020ordinal_positio" + + "n\030\010 \001(\005\"]\n\016SqlServerTable\022\r\n\005table\030\001 \001(\t" + + "\022<\n\007columns\030\002 \003(\0132+.google.cloud.datastr" + + "eam.v1.SqlServerColumn\"]\n\017SqlServerSchem" + + "a\022\016\n\006schema\030\001 \001(\t\022:\n\006tables\030\002 \003(\0132*.goog" + + "le.cloud.datastream.v1.SqlServerTable\"N\n" + + "\016SqlServerRdbms\022<\n\007schemas\030\001 \003(\0132+.googl" + + "e.cloud.datastream.v1.SqlServerSchema\"\226\003" + + "\n\025SqlServerSourceConfig\022C\n\017include_objec" + + "ts\030\001 \001(\0132*.google.cloud.datastream.v1.Sq" + + "lServerRdbms\022C\n\017exclude_objects\030\002 \001(\0132*." + + "google.cloud.datastream.v1.SqlServerRdbm" + + "s\022 \n\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035m" + + "ax_concurrent_backfill_tasks\030\004 \001(\005\022P\n\020tr" + + "ansaction_logs\030e \001(\01324.google.cloud.data" + + "stream.v1.SqlServerTransactionLogsH\000\022J\n\r" + + "change_tables\030f \001(\01321.google.cloud.datas" + + "tream.v1.SqlServerChangeTablesH\000B\014\n\ncdc_" + + "method\"\032\n\030SqlServerTransactionLogs\"\027\n\025Sq" + + "lServerChangeTables\"\266\001\n\013MysqlColumn\022\016\n\006c" + + "olumn\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_key" + + "\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_posi" + + "tion\030\007 \001(\005\022\021\n\tprecision\030\010 \001(\005\022\r\n\005scale\030\t" + + " \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t\022>\n\rmys" + + "ql_columns\030\002 \003(\0132\'.google.cloud.datastre" + + "am.v1.MysqlColumn\"_\n\rMysqlDatabase\022\020\n\010da" + + "tabase\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(\0132&.goo" + + "gle.cloud.datastream.v1.MysqlTable\"P\n\nMy" + + "sqlRdbms\022B\n\017mysql_databases\030\001 \003(\0132).goog" + + "le.cloud.datastream.v1.MysqlDatabase\"\255\003\n" + + "\021MysqlSourceConfig\022?\n\017include_objects\030\001 " + + "\001(\0132&.google.cloud.datastream.v1.MysqlRd" + + "bms\022?\n\017exclude_objects\030\002 \001(\0132&.google.cl" + + "oud.datastream.v1.MysqlRdbms\022 \n\030max_conc" + + "urrent_cdc_tasks\030\003 \001(\005\022%\n\035max_concurrent" + + "_backfill_tasks\030\004 \001(\005\022^\n\023binary_log_posi" + + "tion\030e \001(\0132?.google.cloud.datastream.v1." + + "MysqlSourceConfig.BinaryLogPositionH\000\022B\n" + + "\004gtid\030f \001(\01322.google.cloud.datastream.v1" + + ".MysqlSourceConfig.GtidH\000\032\023\n\021BinaryLogPo" + + "sition\032\006\n\004GtidB\014\n\ncdc_method\"\313\003\n\014SourceC" + + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + + "ectionProfile\022N\n\024oracle_source_config\030d " + + "\001(\0132..google.cloud.datastream.v1.OracleS" + + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + + "(\0132-.google.cloud.datastream.v1.MysqlSou" + + "rceConfigH\000\022V\n\030postgresql_source_config\030" + + "f \001(\01322.google.cloud.datastream.v1.Postg" + + "resqlSourceConfigH\000\022U\n\030sql_server_source" + + "_config\030g \001(\01321.google.cloud.datastream." + + "v1.SqlServerSourceConfigH\000B\026\n\024source_str" + + "eam_config\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFil" + + "eFormat\022W\n\022schema_file_format\030\001 \001(\0162;.go" + + "ogle.cloud.datastream.v1.JsonFileFormat." + + "SchemaFileFormat\022O\n\013compression\030\002 \001(\0162:." + + "google.cloud.datastream.v1.JsonFileForma" + + "t.JsonCompression\"`\n\020SchemaFileFormat\022\"\n" + + "\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_" + + "SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017J" + + "sonCompression\022 \n\034JSON_COMPRESSION_UNSPE" + + "CIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230" + + "\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n" + + "\020file_rotation_mb\030\002 \001(\005\0229\n\026file_rotation" + + "_interval\030\003 \001(\0132\031.google.protobuf.Durati" + + "on\022F\n\020avro_file_format\030d \001(\0132*.google.cl" + + "oud.datastream.v1.AvroFileFormatH\000\022F\n\020js" + + "on_file_format\030e \001(\0132*.google.cloud.data" + + "stream.v1.JsonFileFormatH\000B\r\n\013file_forma" + + "t\"\254\006\n\031BigQueryDestinationConfig\022k\n\025singl" + + "e_target_dataset\030\311\001 \001(\0132I.google.cloud.d" + + "atastream.v1.BigQueryDestinationConfig.S" + + "ingleTargetDatasetH\000\022s\n\031source_hierarchy" + + "_datasets\030\312\001 \001(\0132M.google.cloud.datastre" + + "am.v1.BigQueryDestinationConfig.SourceHi" + + "erarchyDatasetsH\000\0222\n\016data_freshness\030\254\002 \001" + + "(\0132\031.google.protobuf.Duration\022M\n\005merge\030\255" + + "\002 \001(\0132;.google.cloud.datastream.v1.BigQu" + + "eryDestinationConfig.MergeH\001\022X\n\013append_o" + + "nly\030\256\002 \001(\0132@.google.cloud.datastream.v1." + + "BigQueryDestinationConfig.AppendOnlyH\001\032)" + + "\n\023SingleTargetDataset\022\022\n\ndataset_id\030\001 \001(" + + "\t\032\355\001\n\027SourceHierarchyDatasets\022w\n\020dataset" + + "_template\030\002 \001(\0132].google.cloud.datastrea" + + "m.v1.BigQueryDestinationConfig.SourceHie" + + "rarchyDatasets.DatasetTemplate\032Y\n\017Datase" + + "tTemplate\022\025\n\010location\030\001 \001(\tB\003\340A\002\022\031\n\021data" + + "set_id_prefix\030\002 \001(\t\022\024\n\014kms_key_name\030\003 \001(" + + "\t\032\014\n\nAppendOnly\032\007\n\005MergeB\020\n\016dataset_conf" + + "igB\014\n\nwrite_mode\"\277\002\n\021DestinationConfig\022[" + + "\n\036destination_connection_profile\030\001 \001(\tB3" + + "\340A\002\372A-\n+datastream.googleapis.com/Connec" + + "tionProfile\022R\n\026gcs_destination_config\030d " + + "\001(\01320.google.cloud.datastream.v1.GcsDest" + + "inationConfigH\000\022\\\n\033bigquery_destination_" + + "config\030e \001(\01325.google.cloud.datastream.v" + + "1.BigQueryDestinationConfigH\000B\033\n\031destina" + + "tion_stream_config\"\341\013\n\006Stream\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n\006" + + "labels\030\004 \003(\0132..google.cloud.datastream.v" + + "1.Stream.LabelsEntry\022\031\n\014display_name\030\005 \001" + + "(\tB\003\340A\002\022D\n\rsource_config\030\006 \001(\0132(.google." + + "cloud.datastream.v1.SourceConfigB\003\340A\002\022N\n" + + "\022destination_config\030\007 \001(\0132-.google.cloud" + + ".datastream.v1.DestinationConfigB\003\340A\002\0227\n" + + "\005state\030\010 \001(\0162(.google.cloud.datastream.v" + + "1.Stream.State\022N\n\014backfill_all\030e \001(\01326.g" + + "oogle.cloud.datastream.v1.Stream.Backfil" + + "lAllStrategyH\000\022P\n\rbackfill_none\030f \001(\01327." + + "google.cloud.datastream.v1.Stream.Backfi" + + "llNoneStrategyH\000\0226\n\006errors\030\t \003(\0132!.googl" + + "e.cloud.datastream.v1.ErrorB\003\340A\003\0221\n\037cust" + + "omer_managed_encryption_key\030\n \001(\tB\003\340A\005H\001" + + "\210\001\001\022;\n\022last_recovery_time\030\r \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\032\346\002\n\023BackfillAll" + "Strategy\022J\n\027oracle_excluded_objects\030\001 \001(" + "\0132\'.google.cloud.datastream.v1.OracleRdb" + "msH\000\022H\n\026mysql_excluded_objects\030\002 \001(\0132&.g" + "oogle.cloud.datastream.v1.MysqlRdbmsH\000\022R" + "\n\033postgresql_excluded_objects\030\003 \001(\0132+.go" + "ogle.cloud.datastream.v1.PostgresqlRdbms" - + "H\000B\022\n\020excluded_objects\032\026\n\024BackfillNoneSt" - + "rategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006" - + "PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n" - + "\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010D" - + "RAINING\020\010:_\352A\\\n datastream.googleapis.co" - + "m/Stream\0228projects/{project}/locations/{" - + "location}/streams/{stream}B\023\n\021backfill_s" - + "trategyB\"\n _customer_managed_encryption_" - + "key\"\342\003\n\014StreamObject\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\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\031\n\014display_n" - + "ame\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google." - + "cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014backfi" - + "ll_job\030\007 \001(\0132\'.google.cloud.datastream.v" - + "1.BackfillJob\022I\n\rsource_object\030\010 \001(\01322.g" - + "oogle.cloud.datastream.v1.SourceObjectId" - + "entifier:v\352As\n&datastream.googleapis.com" - + "/StreamObject\022Iprojects/{project}/locati" - + "ons/{location}/streams/{stream}/objects/" - + "{object}\"\271\004\n\026SourceObjectIdentifier\022f\n\021o" - + "racle_identifier\030\001 \001(\0132I.google.cloud.da" - + "tastream.v1.SourceObjectIdentifier.Oracl" - + "eObjectIdentifierH\000\022d\n\020mysql_identifier\030" - + "\002 \001(\0132H.google.cloud.datastream.v1.Sourc" - + "eObjectIdentifier.MysqlObjectIdentifierH" - + "\000\022n\n\025postgresql_identifier\030\003 \001(\0132M.googl" - + "e.cloud.datastream.v1.SourceObjectIdenti" - + "fier.PostgresqlObjectIdentifierH\000\032A\n\026Ora" - + "cleObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002" - + "\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032PostgresqlObject" - + "Identifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n\005table" - + "\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifier\022\025\n\010" - + "database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002B" - + "\023\n\021source_identifier\"\372\003\n\013BackfillJob\022<\n\005" - + "state\030\001 \001(\0162-.google.cloud.datastream.v1" - + ".BackfillJob.State\022@\n\007trigger\030\002 \001(\0162/.go" - + "ogle.cloud.datastream.v1.BackfillJob.Tri" - + "gger\0228\n\017last_start_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0226\n\rlast_end_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226" - + "\n\006errors\030\005 \003(\0132!.google.cloud.datastream" - + ".v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDING\020\002\022\n\n" - + "\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005\022\r\n\tCO" - + "MPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trigger\022\027\n" - + "\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n" - + "\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\ne" - + "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" - + "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\022?\n\007details\030\005 \003(\0132..google.cloud.datastr" - + "eam.v1.Error.DetailsEntry\032.\n\014DetailsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"O\n\020Val" - + "idationResult\022;\n\013validations\030\001 \003(\0132&.goo" - + "gle.cloud.datastream.v1.Validation\"\366\001\n\nV" - + "alidation\022\023\n\013description\030\001 \001(\t\022;\n\005state\030" - + "\002 \001(\0162,.google.cloud.datastream.v1.Valid" - + "ation.State\022>\n\007message\030\003 \003(\0132-.google.cl" - + "oud.datastream.v1.ValidationMessage\022\014\n\004c" - + "ode\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSE" - + "D\020\003\"\256\002\n\021ValidationMessage\022\017\n\007message\030\001 \001" - + "(\t\022B\n\005level\030\002 \001(\01623.google.cloud.datastr" - + "eam.v1.ValidationMessage.Level\022M\n\010metada" - + "ta\030\003 \003(\0132;.google.cloud.datastream.v1.Va" - + "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " - + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" - + "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\250\002\n\036com.goo" - + "gle.cloud.datastream.v1B\030DatastreamResou" - + "rcesProtoP\001Z>cloud.google.com/go/datastr" - + "eam/apiv1/datastreampb;datastreampb\252\002\032Go" - + "ogle.Cloud.Datastream.V1\312\002\032Google\\Cloud\\" - + "Datastream\\V1\352\002\035Google::Cloud::Datastrea" - + "m::V1\352AO\n\037compute.googleapis.com/Network" - + "s\022,projects/{project}/global/networks/{n" - + "etwork}b\006proto3" + + "H\000\022Q\n\033sql_server_excluded_objects\030\004 \001(\0132" + + "*.google.cloud.datastream.v1.SqlServerRd" + + "bmsH\000B\022\n\020excluded_objects\032\026\n\024BackfillNon" + + "eStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING\020\002\022" + + "\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005" + + "\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014" + + "\n\010DRAINING\020\010:_\352A\\\n datastream.googleapis" + + ".com/Stream\0228projects/{project}/location" + + "s/{location}/streams/{stream}B\023\n\021backfil" + + "l_strategyB\"\n _customer_managed_encrypti" + + "on_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\0224\n\013create_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\031\n\014displa" + + "y_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.goog" + + "le.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014bac" + + "kfill_job\030\007 \001(\0132\'.google.cloud.datastrea" + + "m.v1.BackfillJob\022I\n\rsource_object\030\010 \001(\0132" + + "2.google.cloud.datastream.v1.SourceObjec" + + "tIdentifier:v\352As\n&datastream.googleapis." + + "com/StreamObject\022Iprojects/{project}/loc" + + "ations/{location}/streams/{stream}/objec" + + "ts/{object}\"\356\005\n\026SourceObjectIdentifier\022f" + + "\n\021oracle_identifier\030\001 \001(\0132I.google.cloud" + + ".datastream.v1.SourceObjectIdentifier.Or" + + "acleObjectIdentifierH\000\022d\n\020mysql_identifi" + + "er\030\002 \001(\0132H.google.cloud.datastream.v1.So" + + "urceObjectIdentifier.MysqlObjectIdentifi" + + "erH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M.go" + + "ogle.cloud.datastream.v1.SourceObjectIde" + + "ntifier.PostgresqlObjectIdentifierH\000\022m\n\025" + + "sql_server_identifier\030\004 \001(\0132L.google.clo" + + "ud.datastream.v1.SourceObjectIdentifier." + + "SqlServerObjectIdentifierH\000\032A\n\026OracleObj" + + "ectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n\005ta" + + "ble\030\002 \001(\tB\003\340A\002\032E\n\032PostgresqlObjectIdenti" + + "fier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002\032B\n\025MysqlObjectIdentifier\022\025\n\010databa" + + "se\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032D\n\031Sql" + + "ServerObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003" + + "\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002B\023\n\021source_identi" + + "fier\"\377\003\n\013BackfillJob\022A\n\005state\030\001 \001(\0162-.go" + + "ogle.cloud.datastream.v1.BackfillJob.Sta" + + "teB\003\340A\003\022@\n\007trigger\030\002 \001(\0162/.google.cloud." + + "datastream.v1.BackfillJob.Trigger\0228\n\017las" + + "t_start_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0226\n\rlast_end_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0226\n\006errors\030\005 " + + "\003(\0132!.google.cloud.datastream.v1.ErrorB\003" + + "\340A\003\"\201\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013" + + "NOT_STARTED\020\001\022\013\n\007PENDING\020\002\022\n\n\006ACTIVE\020\003\022\013" + + "\n\007STOPPED\020\004\022\n\n\006FAILED\020\005\022\r\n\tCOMPLETED\020\006\022\017" + + "\n\013UNSUPPORTED\020\007\"=\n\007Trigger\022\027\n\023TRIGGER_UN" + + "SPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006MANUAL\020\002\"\335" + + "\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\nerror_uuid\030\002" + + " \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerror_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022?\n\007details" + + "\030\005 \003(\0132..google.cloud.datastream.v1.Erro" + + "r.DetailsEntry\032.\n\014DetailsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"O\n\020ValidationResu" + + "lt\022;\n\013validations\030\001 \003(\0132&.google.cloud.d" + + "atastream.v1.Validation\"\210\002\n\nValidation\022\023" + + "\n\013description\030\001 \001(\t\022@\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.datastream.v1.Validation.State" + + "B\003\340A\003\022>\n\007message\030\003 \003(\0132-.google.cloud.da" + + "tastream.v1.ValidationMessage\022\014\n\004code\030\004 " + + "\001(\t\"U\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014N" + + "OT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\022\013\n" + + "\007WARNING\020\004\"\256\002\n\021ValidationMessage\022\017\n\007mess" + + "age\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud." + + "datastream.v1.ValidationMessage.Level\022M\n" + + "\010metadata\030\003 \003(\0132;.google.cloud.datastrea" + + "m.v1.ValidationMessage.MetadataEntry\022\014\n\004" + + "code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UN" + + "SPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002\"\262\005\n\013" + + "CdcStrategy\022j\n\032most_recent_start_positio" + + "n\030e \001(\0132?.google.cloud.datastream.v1.Cdc" + + "Strategy.MostRecentStartPositionB\003\340A\001H\000\022" + + "p\n\035next_available_start_position\030f \001(\0132B" + + ".google.cloud.datastream.v1.CdcStrategy." + + "NextAvailableStartPositionB\003\340A\001H\000\022e\n\027spe" + + "cific_start_position\030g \001(\0132=.google.clou" + + "d.datastream.v1.CdcStrategy.SpecificStar" + + "tPositionB\003\340A\001H\000\032\031\n\027MostRecentStartPosit" + + "ion\032\034\n\032NextAvailableStartPosition\032\222\002\n\025Sp" + + "ecificStartPosition\022J\n\022mysql_log_positio" + + "n\030e \001(\0132,.google.cloud.datastream.v1.Mys" + + "qlLogPositionH\000\022L\n\023oracle_scn_position\030f" + + " \001(\0132-.google.cloud.datastream.v1.Oracle" + + "ScnPositionH\000\022S\n\027sql_server_lsn_position" + + "\030g \001(\01320.google.cloud.datastream.v1.SqlS" + + "erverLsnPositionH\000B\n\n\010positionB\020\n\016start_" + + "position\"(\n\024SqlServerLsnPosition\022\020\n\003lsn\030" + + "\001 \001(\tB\003\340A\002\"%\n\021OracleScnPosition\022\020\n\003scn\030\001" + + " \001(\003B\003\340A\002\"Z\n\020MysqlLogPosition\022\025\n\010log_fil" + + "e\030\001 \001(\tB\003\340A\002\022\036\n\014log_position\030\002 \001(\005B\003\340A\001H" + + "\000\210\001\001B\017\n\r_log_positionB\250\002\n\036com.google.clo", + "ud.datastream.v1B\030DatastreamResourcesPro" + + "toP\001Z>cloud.google.com/go/datastream/api" + + "v1/datastreampb;datastreampb\252\002\032Google.Cl" + + "oud.Datastream.V1\312\002\032Google\\Cloud\\Datastr" + + "eam\\V1\352\002\035Google::Cloud::Datastream::V1\352A" + + "O\n\037compute.googleapis.com/Networks\022,proj" + + "ects/{project}/global/networks/{network}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -595,7 +805,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleProfile_descriptor, new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", + "Hostname", + "Port", + "Username", + "Password", + "DatabaseService", + "ConnectionAttributes", + "OracleSslConfig", + "OracleAsmConfig", + "SecretManagerStoredPassword", }); internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor = internal_static_google_cloud_datastream_v1_OracleProfile_descriptor.getNestedTypes().get(0); @@ -605,8 +823,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = + internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1_OracleAsmConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor, + new java.lang.String[] { + "Hostname", + "Port", + "Username", + "Password", + "AsmService", + "ConnectionAttributes", + "OracleSslConfig", + }); + internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_descriptor = + internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor, @@ -614,15 +856,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Port", "Username", "Password", "SslConfig", }); internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, new java.lang.String[] { "Hostname", "Port", "Username", "Password", "Database", }); + internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_SqlServerProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "Database", + }); internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, @@ -630,19 +880,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", "RootPath", }); internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, @@ -650,7 +900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, @@ -658,7 +908,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vpc", "Subnet", }); internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, @@ -683,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, @@ -691,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnection", }); internal_static_google_cloud_datastream_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Route_descriptor, @@ -713,7 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, @@ -725,8 +975,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CaCertificate", "CaCertificateSet", }); + internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1_OracleSslConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor, + new java.lang.String[] { + "CaCertificate", "CaCertificateSet", + }); internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, @@ -741,6 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlProfile", "BigqueryProfile", "PostgresqlProfile", + "SqlServerProfile", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", @@ -758,7 +1017,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, @@ -774,7 +1033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleTable_descriptor, @@ -782,7 +1041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "OracleColumns", }); internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, @@ -790,7 +1049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "OracleTables", }); internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, @@ -798,7 +1057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleSchemas", }); internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, @@ -809,7 +1068,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxConcurrentBackfillTasks", "DropLargeObjects", "StreamLargeObjects", + "LogMiner", + "BinaryLogParser", "LargeObjectsHandling", + "CdcMethod", }); internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor @@ -827,8 +1089,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor, + new java.lang.String[] { + "OracleAsmLogFileAccess", "LogFileDirectories", "LogFileAccess", + }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor, + new java.lang.String[] { + "OnlineLogDirectory", "ArchivedLogDirectory", + }); internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, @@ -843,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, @@ -851,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "PostgresqlColumns", }); internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, @@ -859,7 +1157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "PostgresqlTables", }); internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, @@ -867,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PostgresqlSchemas", }); internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, @@ -878,8 +1176,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Publication", "MaxConcurrentBackfillTasks", }); + internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1_SqlServerColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Precision", + "Scale", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1_SqlServerTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor, + new java.lang.String[] { + "Table", "Columns", + }); + internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1_SqlServerSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor, + new java.lang.String[] { + "Schema", "Tables", + }); + internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1_SqlServerRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor, + new java.lang.String[] { + "Schemas", + }); + internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", + "ExcludeObjects", + "MaxConcurrentCdcTasks", + "MaxConcurrentBackfillTasks", + "TransactionLogs", + "ChangeTables", + "CdcMethod", + }); + internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, @@ -895,7 +1258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scale", }); internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, @@ -903,7 +1266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "MysqlColumns", }); internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, @@ -911,7 +1274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "MysqlTables", }); internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, @@ -919,7 +1282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlDatabases", }); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, @@ -928,9 +1291,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExcludeObjects", "MaxConcurrentCdcTasks", "MaxConcurrentBackfillTasks", + "BinaryLogPosition", + "Gtid", + "CdcMethod", }); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor = + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor = + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, @@ -939,16 +1321,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleSourceConfig", "MysqlSourceConfig", "PostgresqlSourceConfig", + "SqlServerSourceConfig", "SourceStreamConfig", }); internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, @@ -956,7 +1339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaFileFormat", "Compression", }); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, @@ -969,12 +1352,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileFormat", }); internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, new java.lang.String[] { - "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", + "SingleTargetDataset", + "SourceHierarchyDatasets", + "DataFreshness", + "Merge", + "AppendOnly", + "DatasetConfig", + "WriteMode", }); internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor @@ -1006,8 +1395,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Location", "DatasetIdPrefix", "KmsKeyName", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_AppendOnly_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, @@ -1018,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationStreamConfig", }); internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_descriptor, @@ -1035,6 +1440,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackfillNone", "Errors", "CustomerManagedEncryptionKey", + "LastRecoveryTime", "BackfillStrategy", }); internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor = @@ -1046,6 +1452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleExcludedObjects", "MysqlExcludedObjects", "PostgresqlExcludedObjects", + "SqlServerExcludedObjects", "ExcludedObjects", }); internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = @@ -1063,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StreamObject_descriptor, @@ -1077,12 +1484,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceObject", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, new java.lang.String[] { - "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", + "OracleIdentifier", + "MysqlIdentifier", + "PostgresqlIdentifier", + "SqlServerIdentifier", + "SourceIdentifier", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor @@ -1114,8 +1525,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Database", "Table", }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor, + new java.lang.String[] { + "Schema", "Table", + }); internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, @@ -1123,7 +1544,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", }); internal_static_google_cloud_datastream_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Error_descriptor, @@ -1139,7 +1560,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, @@ -1147,7 +1568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Validations", }); internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Validation_descriptor, @@ -1155,7 +1576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "State", "Message", "Code", }); internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, @@ -1172,6 +1593,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_datastream_v1_CdcStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor, + new java.lang.String[] { + "MostRecentStartPosition", + "NextAvailableStartPosition", + "SpecificStartPosition", + "StartPosition", + }); + internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor = + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CdcStrategy_MostRecentStartPosition_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor = + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CdcStrategy_NextAvailableStartPosition_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor = + internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CdcStrategy_SpecificStartPosition_descriptor, + new java.lang.String[] { + "MysqlLogPosition", "OracleScnPosition", "SqlServerLsnPosition", "Position", + }); + internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor, + new java.lang.String[] { + "Lsn", + }); + internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_datastream_v1_OracleScnPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor, + new java.lang.String[] { + "Scn", + }); + internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_datastream_v1_MysqlLogPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor, + new java.lang.String[] { + "LogFile", "LogPosition", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index d1133910dccf..a104b4fbde31 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -174,6 +174,7 @@ public enum DataObjectCase ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), + SQL_SERVER_RDBMS(103), DATAOBJECT_NOT_SET(0); private final int value; @@ -198,6 +199,8 @@ public static DataObjectCase forNumber(int value) { return MYSQL_RDBMS; case 102: return POSTGRESQL_RDBMS; + case 103: + return SQL_SERVER_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -617,6 +620,57 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } + public static final int SQL_SERVER_RDBMS_FIELD_NUMBER = 103; + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + @java.lang.Override + public boolean hasSqlServerRdbms() { + return dataObjectCase_ == 103; + } + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -649,6 +703,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 102) { output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } + if (dataObjectCase_ == 103) { + output.writeMessage(103, (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_); + } if (targetCase_ == 200) { output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } @@ -692,6 +749,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } + if (dataObjectCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_); + } if (targetCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -750,6 +812,9 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; break; + case 103: + if (!getSqlServerRdbms().equals(other.getSqlServerRdbms())) return false; + break; case 0: default: } @@ -803,6 +868,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlRdbms().hashCode(); break; + case 103: + hash = (37 * hash) + SQL_SERVER_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerRdbms().hashCode(); + break; case 0: default: } @@ -959,6 +1028,9 @@ public Builder clear() { if (postgresqlRdbmsBuilder_ != null) { postgresqlRdbmsBuilder_.clear(); } + if (sqlServerRdbmsBuilder_ != null) { + sqlServerRdbmsBuilder_.clear(); + } targetCase_ = 0; target_ = null; hierarchyCase_ = 0; @@ -1029,6 +1101,9 @@ private void buildPartialOneofs( if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } + if (dataObjectCase_ == 103 && sqlServerRdbmsBuilder_ != null) { + result.dataObject_ = sqlServerRdbmsBuilder_.build(); + } } @java.lang.Override @@ -1134,6 +1209,11 @@ public Builder mergeFrom( mergePostgresqlRdbms(other.getPostgresqlRdbms()); break; } + case SQL_SERVER_RDBMS: + { + mergeSqlServerRdbms(other.getSqlServerRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -1201,6 +1281,12 @@ public Builder mergeFrom( dataObjectCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage(getSqlServerRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 103; + break; + } // case 826 case 1602: { input.readMessage( @@ -2512,6 +2598,215 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm return postgresqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + sqlServerRdbmsBuilder_; + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + @java.lang.Override + public boolean hasSqlServerRdbms() { + return dataObjectCase_ == 103; + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 103) { + return sqlServerRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder setSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + sqlServerRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder setSqlServerRdbms( + com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { + if (sqlServerRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + sqlServerRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder mergeSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103 + && dataObject_ != com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SqlServerRdbms.newBuilder( + (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 103) { + sqlServerRdbmsBuilder_.mergeFrom(value); + } else { + sqlServerRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder clearSqlServerRdbms() { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 103) { + dataObjectCase_ = 0; + dataObject_ = null; + } + sqlServerRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getSqlServerRdbmsBuilder() { + return getSqlServerRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { + if ((dataObjectCase_ == 103) && (sqlServerRdbmsBuilder_ != null)) { + return sqlServerRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + getSqlServerRdbmsFieldBuilder() { + if (sqlServerRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 103)) { + dataObject_ = com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + sqlServerRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 103; + onChanged(); + return sqlServerRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 38b672dc92ad..d676f424053a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -284,6 +284,41 @@ public interface DiscoverConnectionProfileRequestOrBuilder */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + boolean hasSqlServerRdbms(); + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms(); + /** + * + * + *
+   * SQLServer RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder(); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase getHierarchyCase(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index 1d2b402e91f5..0c3b2744238f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -74,6 +74,7 @@ public enum DataObjectCase ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), + SQL_SERVER_RDBMS(103), DATAOBJECT_NOT_SET(0); private final int value; @@ -98,6 +99,8 @@ public static DataObjectCase forNumber(int value) { return MYSQL_RDBMS; case 102: return POSTGRESQL_RDBMS; + case 103: + return SQL_SERVER_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -267,6 +270,57 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } + public static final int SQL_SERVER_RDBMS_FIELD_NUMBER = 103; + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + @java.lang.Override + public boolean hasSqlServerRdbms() { + return dataObjectCase_ == 103; + } + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -290,6 +344,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 102) { output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } + if (dataObjectCase_ == 103) { + output.writeMessage(103, (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_); + } getUnknownFields().writeTo(output); } @@ -314,6 +371,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } + if (dataObjectCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -341,6 +403,9 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; break; + case 103: + if (!getSqlServerRdbms().equals(other.getSqlServerRdbms())) return false; + break; case 0: default: } @@ -368,6 +433,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlRdbms().hashCode(); break; + case 103: + hash = (37 * hash) + SQL_SERVER_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerRdbms().hashCode(); + break; case 0: default: } @@ -520,6 +589,9 @@ public Builder clear() { if (postgresqlRdbmsBuilder_ != null) { postgresqlRdbmsBuilder_.clear(); } + if (sqlServerRdbmsBuilder_ != null) { + sqlServerRdbmsBuilder_.clear(); + } dataObjectCase_ = 0; dataObject_ = null; return this; @@ -576,6 +648,9 @@ private void buildPartialOneofs( if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } + if (dataObjectCase_ == 103 && sqlServerRdbmsBuilder_ != null) { + result.dataObject_ = sqlServerRdbmsBuilder_.build(); + } } @java.lang.Override @@ -642,6 +717,11 @@ public Builder mergeFrom( mergePostgresqlRdbms(other.getPostgresqlRdbms()); break; } + case SQL_SERVER_RDBMS: + { + mergeSqlServerRdbms(other.getSqlServerRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -691,6 +771,12 @@ public Builder mergeFrom( dataObjectCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage(getSqlServerRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 103; + break; + } // case 826 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1351,6 +1437,215 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm return postgresqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + sqlServerRdbmsBuilder_; + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + @java.lang.Override + public boolean hasSqlServerRdbms() { + return dataObjectCase_ == 103; + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms() { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 103) { + return sqlServerRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder setSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + sqlServerRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder setSqlServerRdbms( + com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { + if (sqlServerRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + sqlServerRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder mergeSqlServerRdbms(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103 + && dataObject_ != com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.SqlServerRdbms.newBuilder( + (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 103) { + sqlServerRdbmsBuilder_.mergeFrom(value); + } else { + sqlServerRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 103; + return this; + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public Builder clearSqlServerRdbms() { + if (sqlServerRdbmsBuilder_ == null) { + if (dataObjectCase_ == 103) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 103) { + dataObjectCase_ = 0; + dataObject_ = null; + } + sqlServerRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getSqlServerRdbmsBuilder() { + return getSqlServerRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder() { + if ((dataObjectCase_ == 103) && (sqlServerRdbmsBuilder_ != null)) { + return sqlServerRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched SQLServer RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + getSqlServerRdbmsFieldBuilder() { + if (sqlServerRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 103)) { + dataObject_ = com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + sqlServerRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 103; + onChanged(); + return sqlServerRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index e8c328cc5d60..8b321bc247fc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -129,6 +129,41 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return Whether the sqlServerRdbms field is set. + */ + boolean hasSqlServerRdbms(); + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + * + * @return The sqlServerRdbms. + */ + com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerRdbms(); + /** + * + * + *
+   * Enriched SQLServer RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_rdbms = 103; + */ + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerRdbmsOrBuilder(); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPosition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPosition.java new file mode 100644 index 000000000000..da8f7d42ff7e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPosition.java @@ -0,0 +1,757 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * MySQL log position
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlLogPosition} + */ +public final class MysqlLogPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlLogPosition) + MysqlLogPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MysqlLogPosition.newBuilder() to construct. + private MysqlLogPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MysqlLogPosition() { + logFile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MysqlLogPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlLogPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlLogPosition.class, + com.google.cloud.datastream.v1.MysqlLogPosition.Builder.class); + } + + private int bitField0_; + public static final int LOG_FILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object logFile_ = ""; + /** + * + * + *
+   * Required. The binary log file name.
+   * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logFile. + */ + @java.lang.Override + public java.lang.String getLogFile() { + java.lang.Object ref = logFile_; + 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(); + logFile_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The binary log file name.
+   * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logFile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogFileBytes() { + java.lang.Object ref = logFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_POSITION_FIELD_NUMBER = 2; + private int logPosition_ = 0; + /** + * + * + *
+   * Optional. The position within the binary log file. Default is head of file.
+   * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the logPosition field is set. + */ + @java.lang.Override + public boolean hasLogPosition() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The position within the binary log file. Default is head of file.
+   * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logPosition. + */ + @java.lang.Override + public int getLogPosition() { + return logPosition_; + } + + 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(logFile_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logFile_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, logPosition_); + } + 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(logFile_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logFile_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, logPosition_); + } + 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.datastream.v1.MysqlLogPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.MysqlLogPosition other = + (com.google.cloud.datastream.v1.MysqlLogPosition) obj; + + if (!getLogFile().equals(other.getLogFile())) return false; + if (hasLogPosition() != other.hasLogPosition()) return false; + if (hasLogPosition()) { + if (getLogPosition() != other.getLogPosition()) 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) + LOG_FILE_FIELD_NUMBER; + hash = (53 * hash) + getLogFile().hashCode(); + if (hasLogPosition()) { + hash = (37 * hash) + LOG_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getLogPosition(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition 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.datastream.v1.MysqlLogPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition 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.datastream.v1.MysqlLogPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition 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.datastream.v1.MysqlLogPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition 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.datastream.v1.MysqlLogPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition 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.datastream.v1.MysqlLogPosition 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; + } + /** + * + * + *
+   * MySQL log position
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlLogPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlLogPosition) + com.google.cloud.datastream.v1.MysqlLogPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlLogPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlLogPosition.class, + com.google.cloud.datastream.v1.MysqlLogPosition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlLogPosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + logFile_ = ""; + logPosition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPosition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPosition build() { + com.google.cloud.datastream.v1.MysqlLogPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlLogPosition buildPartial() { + com.google.cloud.datastream.v1.MysqlLogPosition result = + new com.google.cloud.datastream.v1.MysqlLogPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.MysqlLogPosition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logFile_ = logFile_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logPosition_ = logPosition_; + 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.datastream.v1.MysqlLogPosition) { + return mergeFrom((com.google.cloud.datastream.v1.MysqlLogPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlLogPosition other) { + if (other == com.google.cloud.datastream.v1.MysqlLogPosition.getDefaultInstance()) + return this; + if (!other.getLogFile().isEmpty()) { + logFile_ = other.logFile_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLogPosition()) { + setLogPosition(other.getLogPosition()); + } + 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: + { + logFile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + logPosition_ = input.readInt32(); + 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 logFile_ = ""; + /** + * + * + *
+     * Required. The binary log file name.
+     * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logFile. + */ + public java.lang.String getLogFile() { + java.lang.Object ref = logFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The binary log file name.
+     * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logFile. + */ + public com.google.protobuf.ByteString getLogFileBytes() { + java.lang.Object ref = logFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The binary log file name.
+     * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The logFile to set. + * @return This builder for chaining. + */ + public Builder setLogFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logFile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The binary log file name.
+     * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLogFile() { + logFile_ = getDefaultInstance().getLogFile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The binary log file name.
+     * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for logFile to set. + * @return This builder for chaining. + */ + public Builder setLogFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logFile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int logPosition_; + /** + * + * + *
+     * Optional. The position within the binary log file. Default is head of file.
+     * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the logPosition field is set. + */ + @java.lang.Override + public boolean hasLogPosition() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The position within the binary log file. Default is head of file.
+     * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logPosition. + */ + @java.lang.Override + public int getLogPosition() { + return logPosition_; + } + /** + * + * + *
+     * Optional. The position within the binary log file. Default is head of file.
+     * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The logPosition to set. + * @return This builder for chaining. + */ + public Builder setLogPosition(int value) { + + logPosition_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The position within the binary log file. Default is head of file.
+     * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLogPosition() { + bitField0_ = (bitField0_ & ~0x00000002); + logPosition_ = 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.datastream.v1.MysqlLogPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlLogPosition) + private static final com.google.cloud.datastream.v1.MysqlLogPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlLogPosition(); + } + + public static com.google.cloud.datastream.v1.MysqlLogPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlLogPosition 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.datastream.v1.MysqlLogPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPositionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPositionOrBuilder.java new file mode 100644 index 000000000000..def42151403e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlLogPositionOrBuilder.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/cloud/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface MysqlLogPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlLogPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The binary log file name.
+   * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The logFile. + */ + java.lang.String getLogFile(); + /** + * + * + *
+   * Required. The binary log file name.
+   * 
+ * + * string log_file = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for logFile. + */ + com.google.protobuf.ByteString getLogFileBytes(); + + /** + * + * + *
+   * Optional. The position within the binary log file. Default is head of file.
+   * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the logPosition field is set. + */ + boolean hasLogPosition(); + /** + * + * + *
+   * Optional. The position within the binary log file. Default is head of file.
+   * 
+ * + * optional int32 log_position = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logPosition. + */ + int getLogPosition(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java index c614e6c9983f..1f0f9a2fd4b5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java @@ -24,6 +24,7 @@ * *
  * MySQL database profile.
+ * Next ID: 7.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} @@ -194,11 +195,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Input only. Password for the MySQL connection.
+   * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+   * with the `secret_manager_stored_password` field.
    * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The password. @@ -219,11 +221,12 @@ public java.lang.String getPassword() { * * *
-   * Required. Input only. Password for the MySQL connection.
+   * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+   * with the `secret_manager_stored_password` field.
    * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The bytes for password. @@ -496,6 +499,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * MySQL database profile.
+   * Next ID: 7.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} @@ -1015,11 +1019,12 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Input only. Password for the MySQL connection.
+     * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+     * with the `secret_manager_stored_password` field.
      * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The password. @@ -1039,11 +1044,12 @@ public java.lang.String getPassword() { * * *
-     * Required. Input only. Password for the MySQL connection.
+     * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+     * with the `secret_manager_stored_password` field.
      * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The bytes for password. @@ -1063,11 +1069,12 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Input only. Password for the MySQL connection.
+     * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+     * with the `secret_manager_stored_password` field.
      * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @param value The password to set. @@ -1086,11 +1093,12 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Input only. Password for the MySQL connection.
+     * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+     * with the `secret_manager_stored_password` field.
      * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return This builder for chaining. @@ -1105,11 +1113,12 @@ public Builder clearPassword() { * * *
-     * Required. Input only. Password for the MySQL connection.
+     * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+     * with the `secret_manager_stored_password` field.
      * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @param value The bytes for password to set. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java index c55356179e68..828284481b30 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java @@ -91,11 +91,12 @@ public interface MysqlProfileOrBuilder * * *
-   * Required. Input only. Password for the MySQL connection.
+   * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+   * with the `secret_manager_stored_password` field.
    * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The password. @@ -105,11 +106,12 @@ public interface MysqlProfileOrBuilder * * *
-   * Required. Input only. Password for the MySQL connection.
+   * Optional. Input only. Password for the MySQL connection. Mutually exclusive
+   * with the `secret_manager_stored_password` field.
    * 
* * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; * * * @return The bytes for password. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index 0a27fcbc5b9b..2c4441bfadf7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -61,7 +61,912 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); } + public interface BinaryLogPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition} + */ + public static final class BinaryLogPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + BinaryLogPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BinaryLogPosition.newBuilder() to construct. + private BinaryLogPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BinaryLogPosition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BinaryLogPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.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.datastream.v1.MysqlSourceConfig.BinaryLogPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition other = + (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition 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; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_BinaryLogPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition build() { + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition buildPartial() { + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition result = + new com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition(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.datastream.v1.MysqlSourceConfig.BinaryLogPosition) { + return mergeFrom( + (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition other) { + if (other + == com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .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.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + private static final com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition(); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryLogPosition 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.datastream.v1.MysqlSourceConfig.BinaryLogPosition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GtidOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSourceConfig.Gtid) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig.Gtid} + */ + public static final class Gtid extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSourceConfig.Gtid) + GtidOrBuilder { + private static final long serialVersionUID = 0L; + // Use Gtid.newBuilder() to construct. + private Gtid(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Gtid() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Gtid(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.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.datastream.v1.MysqlSourceConfig.Gtid)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid other = + (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) 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.datastream.v1.MysqlSourceConfig.Gtid parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid 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.datastream.v1.MysqlSourceConfig.Gtid parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid 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.datastream.v1.MysqlSourceConfig.Gtid parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid 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.datastream.v1.MysqlSourceConfig.Gtid parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid 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.datastream.v1.MysqlSourceConfig.Gtid parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid 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.datastream.v1.MysqlSourceConfig.Gtid 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; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig.Gtid} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSourceConfig.Gtid) + com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid build() { + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid buildPartial() { + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid result = + new com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid(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.datastream.v1.MysqlSourceConfig.Gtid) { + return mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid other) { + if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.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.datastream.v1.MysqlSourceConfig.Gtid) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSourceConfig.Gtid) + private static final com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid(); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Gtid 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.datastream.v1.MysqlSourceConfig.Gtid getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; + private int cdcMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cdcMethod_; + + public enum CdcMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BINARY_LOG_POSITION(101), + GTID(102), + CDCMETHOD_NOT_SET(0); + private final int value; + + private CdcMethodCase(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 CdcMethodCase valueOf(int value) { + return forNumber(value); + } + + public static CdcMethodCase forNumber(int value) { + switch (value) { + case 101: + return BINARY_LOG_POSITION; + case 102: + return GTID; + case 0: + return CDCMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; /** @@ -201,6 +1106,115 @@ public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } + public static final int BINARY_LOG_POSITION_FIELD_NUMBER = 101; + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return Whether the binaryLogPosition field is set. + */ + @java.lang.Override + public boolean hasBinaryLogPosition() { + return cdcMethodCase_ == 101; + } + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return The binaryLogPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition getBinaryLogPosition() { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.getDefaultInstance(); + } + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder + getBinaryLogPositionOrBuilder() { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.getDefaultInstance(); + } + + public static final int GTID_FIELD_NUMBER = 102; + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return Whether the gtid field is set. + */ + @java.lang.Override + public boolean hasGtid() { + return cdcMethodCase_ == 102; + } + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return The gtid. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid getGtid() { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder getGtidOrBuilder() { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -227,6 +1241,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentBackfillTasks_ != 0) { output.writeInt32(4, maxConcurrentBackfillTasks_); } + if (cdcMethodCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_); + } + if (cdcMethodCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_); + } getUnknownFields().writeTo(output); } @@ -245,9 +1266,19 @@ public int getSerializedSize() { if (maxConcurrentCdcTasks_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); } - if (maxConcurrentBackfillTasks_ != 0) { + if (maxConcurrentBackfillTasks_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); + } + if (cdcMethodCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_); + } + if (cdcMethodCase_ == 102) { size += - com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -275,6 +1306,17 @@ public boolean equals(final java.lang.Object obj) { } if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; + if (!getCdcMethodCase().equals(other.getCdcMethodCase())) return false; + switch (cdcMethodCase_) { + case 101: + if (!getBinaryLogPosition().equals(other.getBinaryLogPosition())) return false; + break; + case 102: + if (!getGtid().equals(other.getGtid())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,6 +1340,18 @@ public int hashCode() { hash = (53 * hash) + getMaxConcurrentCdcTasks(); hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentBackfillTasks(); + switch (cdcMethodCase_) { + case 101: + hash = (37 * hash) + BINARY_LOG_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryLogPosition().hashCode(); + break; + case 102: + hash = (37 * hash) + GTID_FIELD_NUMBER; + hash = (53 * hash) + getGtid().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -459,6 +1513,14 @@ public Builder clear() { } maxConcurrentCdcTasks_ = 0; maxConcurrentBackfillTasks_ = 0; + if (binaryLogPositionBuilder_ != null) { + binaryLogPositionBuilder_.clear(); + } + if (gtidBuilder_ != null) { + gtidBuilder_.clear(); + } + cdcMethodCase_ = 0; + cdcMethod_ = null; return this; } @@ -489,6 +1551,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -515,6 +1578,17 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlSourceConfig resu result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.datastream.v1.MysqlSourceConfig result) { + result.cdcMethodCase_ = cdcMethodCase_; + result.cdcMethod_ = this.cdcMethod_; + if (cdcMethodCase_ == 101 && binaryLogPositionBuilder_ != null) { + result.cdcMethod_ = binaryLogPositionBuilder_.build(); + } + if (cdcMethodCase_ == 102 && gtidBuilder_ != null) { + result.cdcMethod_ = gtidBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -573,6 +1647,22 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) if (other.getMaxConcurrentBackfillTasks() != 0) { setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); } + switch (other.getCdcMethodCase()) { + case BINARY_LOG_POSITION: + { + mergeBinaryLogPosition(other.getBinaryLogPosition()); + break; + } + case GTID: + { + mergeGtid(other.getGtid()); + break; + } + case CDCMETHOD_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -623,6 +1713,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 810: + { + input.readMessage( + getBinaryLogPositionFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getGtidFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 102; + break; + } // case 818 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -640,6 +1743,20 @@ public Builder mergeFrom( return this; } + private int cdcMethodCase_ = 0; + private java.lang.Object cdcMethod_; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + + public Builder clearCdcMethod() { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; @@ -1129,6 +2246,457 @@ public Builder clearMaxConcurrentBackfillTasks() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder> + binaryLogPositionBuilder_; + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return Whether the binaryLogPosition field is set. + */ + @java.lang.Override + public boolean hasBinaryLogPosition() { + return cdcMethodCase_ == 101; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return The binaryLogPosition. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + getBinaryLogPosition() { + if (binaryLogPositionBuilder_ == null) { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance(); + } else { + if (cdcMethodCase_ == 101) { + return binaryLogPositionBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + public Builder setBinaryLogPosition( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition value) { + if (binaryLogPositionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + binaryLogPositionBuilder_.setMessage(value); + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + public Builder setBinaryLogPosition( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder + builderForValue) { + if (binaryLogPositionBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + binaryLogPositionBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + public Builder mergeBinaryLogPosition( + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition value) { + if (binaryLogPositionBuilder_ == null) { + if (cdcMethodCase_ == 101 + && cdcMethod_ + != com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.newBuilder( + (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) + cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 101) { + binaryLogPositionBuilder_.mergeFrom(value); + } else { + binaryLogPositionBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + public Builder clearBinaryLogPosition() { + if (binaryLogPositionBuilder_ == null) { + if (cdcMethodCase_ == 101) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 101) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + binaryLogPositionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder + getBinaryLogPositionBuilder() { + return getBinaryLogPositionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder + getBinaryLogPositionOrBuilder() { + if ((cdcMethodCase_ == 101) && (binaryLogPositionBuilder_ != null)) { + return binaryLogPositionBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Use Binary log position based replication.
+     * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder> + getBinaryLogPositionFieldBuilder() { + if (binaryLogPositionBuilder_ == null) { + if (!(cdcMethodCase_ == 101)) { + cdcMethod_ = + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition + .getDefaultInstance(); + } + binaryLogPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder>( + (com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 101; + onChanged(); + return binaryLogPositionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid, + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder> + gtidBuilder_; + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return Whether the gtid field is set. + */ + @java.lang.Override + public boolean hasGtid() { + return cdcMethodCase_ == 102; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return The gtid. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid getGtid() { + if (gtidBuilder_ == null) { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } else { + if (cdcMethodCase_ == 102) { + return gtidBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + public Builder setGtid(com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid value) { + if (gtidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + gtidBuilder_.setMessage(value); + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + public Builder setGtid( + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder builderForValue) { + if (gtidBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + gtidBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + public Builder mergeGtid(com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid value) { + if (gtidBuilder_ == null) { + if (cdcMethodCase_ == 102 + && cdcMethod_ + != com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.newBuilder( + (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 102) { + gtidBuilder_.mergeFrom(value); + } else { + gtidBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + public Builder clearGtid() { + if (gtidBuilder_ == null) { + if (cdcMethodCase_ == 102) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 102) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + gtidBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + public com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder getGtidBuilder() { + return getGtidFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder getGtidOrBuilder() { + if ((cdcMethodCase_ == 102) && (gtidBuilder_ != null)) { + return gtidBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + } + /** + * + * + *
+     * Use GTID based replication.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid, + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder> + getGtidFieldBuilder() { + if (gtidBuilder_ == null) { + if (!(cdcMethodCase_ == 102)) { + cdcMethod_ = com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.getDefaultInstance(); + } + gtidBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid, + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder>( + (com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 102; + onChanged(); + return gtidBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index 30c07d3a34cf..b97306290352 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -122,4 +122,83 @@ public interface MysqlSourceConfigOrBuilder * @return The maxConcurrentBackfillTasks. */ int getMaxConcurrentBackfillTasks(); + + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return Whether the binaryLogPosition field is set. + */ + boolean hasBinaryLogPosition(); + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + * + * @return The binaryLogPosition. + */ + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition getBinaryLogPosition(); + /** + * + * + *
+   * Use Binary log position based replication.
+   * 
+ * + * + * .google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPosition binary_log_position = 101; + * + */ + com.google.cloud.datastream.v1.MysqlSourceConfig.BinaryLogPositionOrBuilder + getBinaryLogPositionOrBuilder(); + + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return Whether the gtid field is set. + */ + boolean hasGtid(); + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + * + * @return The gtid. + */ + com.google.cloud.datastream.v1.MysqlSourceConfig.Gtid getGtid(); + /** + * + * + *
+   * Use GTID based replication.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig.Gtid gtid = 102; + */ + com.google.cloud.datastream.v1.MysqlSourceConfig.GtidOrBuilder getGtidOrBuilder(); + + com.google.cloud.datastream.v1.MysqlSourceConfig.CdcMethodCase getCdcMethodCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java index 6a1691c0932a..2f4e497bd06b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java @@ -326,9 +326,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1712,9 +1713,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1731,9 +1733,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1754,9 +1757,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java index f0676c5c3328..2c0e933e8ce7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java @@ -181,9 +181,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfig.java new file mode 100644 index 000000000000..382957905d3f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfig.java @@ -0,0 +1,1942 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Configuration for Oracle Automatic Storage Management (ASM) connection.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleAsmConfig} + */ +public final class OracleAsmConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleAsmConfig) + OracleAsmConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OracleAsmConfig.newBuilder() to construct. + private OracleAsmConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OracleAsmConfig() { + hostname_ = ""; + username_ = ""; + password_ = ""; + asmService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OracleAsmConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetConnectionAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleAsmConfig.class, + com.google.cloud.datastream.v1.OracleAsmConfig.Builder.class); + } + + private int bitField0_; + public static final int HOSTNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
+   * Required. Hostname for the Oracle ASM connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Hostname for the Oracle ASM connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_ = 0; + /** + * + * + *
+   * Required. Port for the Oracle ASM connection.
+   * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int USERNAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Required. Username for the Oracle ASM connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Username for the Oracle ASM connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + /** + * + * + *
+   * Required. Password for the Oracle ASM connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + 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(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Password for the Oracle ASM connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASM_SERVICE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object asmService_ = ""; + /** + * + * + *
+   * Required. ASM service name for the Oracle ASM connection.
+   * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asmService. + */ + @java.lang.Override + public java.lang.String getAsmService() { + java.lang.Object ref = asmService_; + 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(); + asmService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. ASM service name for the Oracle ASM connection.
+   * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for asmService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAsmServiceBytes() { + java.lang.Object ref = asmService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asmService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; + + private static final class ConnectionAttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField connectionAttributes_; + + private com.google.protobuf.MapField + internalGetConnectionAttributes() { + if (connectionAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + return connectionAttributes_; + } + + public int getConnectionAttributesCount() { + return internalGetConnectionAttributes().getMap().size(); + } + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectionAttributes().getMap().containsKey(key); + } + /** Use {@link #getConnectionAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectionAttributes() { + return getConnectionAttributesMap(); + } + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConnectionAttributesMap() { + return internalGetConnectionAttributes().getMap(); + } + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ORACLE_SSL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.datastream.v1.OracleSslConfig oracleSslConfig_; + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + @java.lang.Override + public boolean hasOracleSslConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig() { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder() { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + + 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(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asmService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, asmService_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetConnectionAttributes(), + ConnectionAttributesDefaultEntryHolder.defaultEntry, + 6); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getOracleSslConfig()); + } + 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(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asmService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, asmService_); + } + for (java.util.Map.Entry entry : + internalGetConnectionAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry connectionAttributes__ = + ConnectionAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOracleSslConfig()); + } + 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.datastream.v1.OracleAsmConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleAsmConfig other = + (com.google.cloud.datastream.v1.OracleAsmConfig) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getAsmService().equals(other.getAsmService())) return false; + if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) + return false; + if (hasOracleSslConfig() != other.hasOracleSslConfig()) return false; + if (hasOracleSslConfig()) { + if (!getOracleSslConfig().equals(other.getOracleSslConfig())) 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) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + ASM_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getAsmService().hashCode(); + if (!internalGetConnectionAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CONNECTION_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnectionAttributes().hashCode(); + } + if (hasOracleSslConfig()) { + hash = (37 * hash) + ORACLE_SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOracleSslConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig 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.datastream.v1.OracleAsmConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig 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.datastream.v1.OracleAsmConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig 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.datastream.v1.OracleAsmConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig 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.datastream.v1.OracleAsmConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig 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.datastream.v1.OracleAsmConfig 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 Oracle Automatic Storage Management (ASM) connection.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleAsmConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleAsmConfig) + com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetConnectionAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableConnectionAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleAsmConfig.class, + com.google.cloud.datastream.v1.OracleAsmConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleAsmConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOracleSslConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostname_ = ""; + port_ = 0; + username_ = ""; + password_ = ""; + asmService_ = ""; + internalGetMutableConnectionAttributes().clear(); + oracleSslConfig_ = null; + if (oracleSslConfigBuilder_ != null) { + oracleSslConfigBuilder_.dispose(); + oracleSslConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleAsmConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleAsmConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleAsmConfig build() { + com.google.cloud.datastream.v1.OracleAsmConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleAsmConfig buildPartial() { + com.google.cloud.datastream.v1.OracleAsmConfig result = + new com.google.cloud.datastream.v1.OracleAsmConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.OracleAsmConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.asmService_ = asmService_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectionAttributes_ = internalGetConnectionAttributes(); + result.connectionAttributes_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.oracleSslConfig_ = + oracleSslConfigBuilder_ == null ? oracleSslConfig_ : oracleSslConfigBuilder_.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.datastream.v1.OracleAsmConfig) { + return mergeFrom((com.google.cloud.datastream.v1.OracleAsmConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleAsmConfig other) { + if (other == com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance()) return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAsmService().isEmpty()) { + asmService_ = other.asmService_; + bitField0_ |= 0x00000010; + onChanged(); + } + internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); + bitField0_ |= 0x00000020; + if (other.hasOracleSslConfig()) { + mergeOracleSslConfig(other.getOracleSslConfig()); + } + 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: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + asmService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + connectionAttributes__ = + input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectionAttributes() + .getMutableMap() + .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getOracleSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + 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 hostname_ = ""; + /** + * + * + *
+     * Required. Hostname for the Oracle ASM connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the Oracle ASM connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the Oracle ASM connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the Oracle ASM connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the Oracle ASM connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Required. Port for the Oracle ASM connection.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Required. Port for the Oracle ASM connection.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Port for the Oracle ASM connection.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. Username for the Oracle ASM connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Username for the Oracle ASM connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Username for the Oracle ASM connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the Oracle ASM connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the Oracle ASM connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Required. Password for the Oracle ASM connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Password for the Oracle ASM connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Password for the Oracle ASM connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the Oracle ASM connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the Oracle ASM connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object asmService_ = ""; + /** + * + * + *
+     * Required. ASM service name for the Oracle ASM connection.
+     * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asmService. + */ + public java.lang.String getAsmService() { + java.lang.Object ref = asmService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asmService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. ASM service name for the Oracle ASM connection.
+     * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for asmService. + */ + public com.google.protobuf.ByteString getAsmServiceBytes() { + java.lang.Object ref = asmService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asmService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. ASM service name for the Oracle ASM connection.
+     * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The asmService to set. + * @return This builder for chaining. + */ + public Builder setAsmService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + asmService_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ASM service name for the Oracle ASM connection.
+     * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAsmService() { + asmService_ = getDefaultInstance().getAsmService(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ASM service name for the Oracle ASM connection.
+     * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for asmService to set. + * @return This builder for chaining. + */ + public Builder setAsmServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asmService_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.MapField connectionAttributes_; + + private com.google.protobuf.MapField + internalGetConnectionAttributes() { + if (connectionAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + return connectionAttributes_; + } + + private com.google.protobuf.MapField + internalGetMutableConnectionAttributes() { + if (connectionAttributes_ == null) { + connectionAttributes_ = + com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + if (!connectionAttributes_.isMutable()) { + connectionAttributes_ = connectionAttributes_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return connectionAttributes_; + } + + public int getConnectionAttributesCount() { + return internalGetConnectionAttributes().getMap().size(); + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectionAttributes().getMap().containsKey(key); + } + /** Use {@link #getConnectionAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectionAttributes() { + return getConnectionAttributesMap(); + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConnectionAttributesMap() { + return internalGetConnectionAttributes().getMap(); + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConnectionAttributes() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableConnectionAttributes().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConnectionAttributes().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConnectionAttributes() { + bitField0_ |= 0x00000020; + return internalGetMutableConnectionAttributes().getMutableMap(); + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConnectionAttributes().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + * + * + *
+     * Optional. Connection string attributes
+     * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConnectionAttributes( + java.util.Map values) { + internalGetMutableConnectionAttributes().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.cloud.datastream.v1.OracleSslConfig oracleSslConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder> + oracleSslConfigBuilder_; + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + public boolean hasOracleSslConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + public com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig() { + if (oracleSslConfigBuilder_ == null) { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } else { + return oracleSslConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleSslConfig(com.google.cloud.datastream.v1.OracleSslConfig value) { + if (oracleSslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oracleSslConfig_ = value; + } else { + oracleSslConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleSslConfig( + com.google.cloud.datastream.v1.OracleSslConfig.Builder builderForValue) { + if (oracleSslConfigBuilder_ == null) { + oracleSslConfig_ = builderForValue.build(); + } else { + oracleSslConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOracleSslConfig(com.google.cloud.datastream.v1.OracleSslConfig value) { + if (oracleSslConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && oracleSslConfig_ != null + && oracleSslConfig_ + != com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance()) { + getOracleSslConfigBuilder().mergeFrom(value); + } else { + oracleSslConfig_ = value; + } + } else { + oracleSslConfigBuilder_.mergeFrom(value); + } + if (oracleSslConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOracleSslConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + oracleSslConfig_ = null; + if (oracleSslConfigBuilder_ != null) { + oracleSslConfigBuilder_.dispose(); + oracleSslConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleSslConfig.Builder getOracleSslConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOracleSslConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder() { + if (oracleSslConfigBuilder_ != null) { + return oracleSslConfigBuilder_.getMessageOrBuilder(); + } else { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder> + getOracleSslConfigFieldBuilder() { + if (oracleSslConfigBuilder_ == null) { + oracleSslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder>( + getOracleSslConfig(), getParentForChildren(), isClean()); + oracleSslConfig_ = null; + } + return oracleSslConfigBuilder_; + } + + @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.datastream.v1.OracleAsmConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleAsmConfig) + private static final com.google.cloud.datastream.v1.OracleAsmConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleAsmConfig(); + } + + public static com.google.cloud.datastream.v1.OracleAsmConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleAsmConfig 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.datastream.v1.OracleAsmConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfigOrBuilder.java new file mode 100644 index 000000000000..5a1c7c80fc26 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfigOrBuilder.java @@ -0,0 +1,248 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface OracleAsmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleAsmConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Hostname for the Oracle ASM connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Required. Hostname for the Oracle ASM connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Required. Port for the Oracle ASM connection.
+   * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Required. Username for the Oracle ASM connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. Username for the Oracle ASM connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Required. Password for the Oracle ASM connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Required. Password for the Oracle ASM connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Required. ASM service name for the Oracle ASM connection.
+   * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asmService. + */ + java.lang.String getAsmService(); + /** + * + * + *
+   * Required. ASM service name for the Oracle ASM connection.
+   * 
+ * + * string asm_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for asmService. + */ + com.google.protobuf.ByteString getAsmServiceBytes(); + + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectionAttributesCount(); + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsConnectionAttributes(java.lang.String key); + /** Use {@link #getConnectionAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConnectionAttributes(); + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getConnectionAttributesMap(); + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getConnectionAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Connection string attributes
+   * 
+ * + * + * map<string, string> connection_attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getConnectionAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + boolean hasOracleSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java index 3003f57b71f9..17e51a26fa0d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java @@ -24,6 +24,7 @@ * *
  * Oracle database profile.
+ * Next ID: 10.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} @@ -43,6 +44,7 @@ private OracleProfile() { username_ = ""; password_ = ""; databaseService_ = ""; + secretManagerStoredPassword_ = ""; } @java.lang.Override @@ -78,6 +80,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.datastream.v1.OracleProfile.Builder.class); } + private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -206,10 +209,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Password for the Oracle connection.
+   * Optional. Password for the Oracle connection. Mutually exclusive with the
+   * `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -229,10 +233,11 @@ public java.lang.String getPassword() { * * *
-   * Required. Password for the Oracle connection.
+   * Optional. Password for the Oracle connection. Mutually exclusive with the
+   * `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -406,6 +411,173 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { return map.get(key); } + public static final int ORACLE_SSL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.datastream.v1.OracleSslConfig oracleSslConfig_; + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + @java.lang.Override + public boolean hasOracleSslConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig() { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder() { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + + public static final int ORACLE_ASM_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.datastream.v1.OracleAsmConfig oracleAsmConfig_; + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleAsmConfig field is set. + */ + @java.lang.Override + public boolean hasOracleAsmConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleAsmConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleAsmConfig getOracleAsmConfig() { + return oracleAsmConfig_ == null + ? com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance() + : oracleAsmConfig_; + } + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder getOracleAsmConfigOrBuilder() { + return oracleAsmConfig_ == null + ? com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance() + : oracleAsmConfig_; + } + + public static final int SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretManagerStoredPassword_ = ""; + /** + * + * + *
+   * Optional. A reference to a Secret Manager resource name storing the Oracle
+   * connection password. Mutually exclusive with the `password` field.
+   * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretManagerStoredPassword. + */ + @java.lang.Override + public java.lang.String getSecretManagerStoredPassword() { + java.lang.Object ref = secretManagerStoredPassword_; + 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(); + secretManagerStoredPassword_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A reference to a Secret Manager resource name storing the Oracle
+   * connection password. Mutually exclusive with the `password` field.
+   * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for secretManagerStoredPassword. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretManagerStoredPasswordBytes() { + java.lang.Object ref = secretManagerStoredPassword_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretManagerStoredPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -440,6 +612,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, 6); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getOracleSslConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getOracleAsmConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretManagerStoredPassword_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, secretManagerStoredPassword_); + } getUnknownFields().writeTo(output); } @@ -474,6 +655,16 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOracleSslConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getOracleAsmConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretManagerStoredPassword_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(9, secretManagerStoredPassword_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -497,6 +688,16 @@ public boolean equals(final java.lang.Object obj) { if (!getDatabaseService().equals(other.getDatabaseService())) return false; if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) return false; + if (hasOracleSslConfig() != other.hasOracleSslConfig()) return false; + if (hasOracleSslConfig()) { + if (!getOracleSslConfig().equals(other.getOracleSslConfig())) return false; + } + if (hasOracleAsmConfig() != other.hasOracleAsmConfig()) return false; + if (hasOracleAsmConfig()) { + if (!getOracleAsmConfig().equals(other.getOracleAsmConfig())) return false; + } + if (!getSecretManagerStoredPassword().equals(other.getSecretManagerStoredPassword())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -522,6 +723,16 @@ public int hashCode() { hash = (37 * hash) + CONNECTION_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetConnectionAttributes().hashCode(); } + if (hasOracleSslConfig()) { + hash = (37 * hash) + ORACLE_SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOracleSslConfig().hashCode(); + } + if (hasOracleAsmConfig()) { + hash = (37 * hash) + ORACLE_ASM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOracleAsmConfig().hashCode(); + } + hash = (37 * hash) + SECRET_MANAGER_STORED_PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getSecretManagerStoredPassword().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -627,6 +838,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Oracle database profile.
+   * Next ID: 10.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} @@ -673,10 +885,20 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } // Construct using com.google.cloud.datastream.v1.OracleProfile.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) { + getOracleSslConfigFieldBuilder(); + getOracleAsmConfigFieldBuilder(); + } } @java.lang.Override @@ -689,6 +911,17 @@ public Builder clear() { password_ = ""; databaseService_ = ""; internalGetMutableConnectionAttributes().clear(); + oracleSslConfig_ = null; + if (oracleSslConfigBuilder_ != null) { + oracleSslConfigBuilder_.dispose(); + oracleSslConfigBuilder_ = null; + } + oracleAsmConfig_ = null; + if (oracleAsmConfigBuilder_ != null) { + oracleAsmConfigBuilder_.dispose(); + oracleAsmConfigBuilder_ = null; + } + secretManagerStoredPassword_ = ""; return this; } @@ -744,6 +977,21 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleProfile result) result.connectionAttributes_ = internalGetConnectionAttributes(); result.connectionAttributes_.makeImmutable(); } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.oracleSslConfig_ = + oracleSslConfigBuilder_ == null ? oracleSslConfig_ : oracleSslConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oracleAsmConfig_ = + oracleAsmConfigBuilder_ == null ? oracleAsmConfig_ : oracleAsmConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.secretManagerStoredPassword_ = secretManagerStoredPassword_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -816,6 +1064,17 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleProfile other) { } internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); bitField0_ |= 0x00000020; + if (other.hasOracleSslConfig()) { + mergeOracleSslConfig(other.getOracleSslConfig()); + } + if (other.hasOracleAsmConfig()) { + mergeOracleAsmConfig(other.getOracleAsmConfig()); + } + if (!other.getSecretManagerStoredPassword().isEmpty()) { + secretManagerStoredPassword_ = other.secretManagerStoredPassword_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -885,6 +1144,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + input.readMessage(getOracleSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getOracleAsmConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + secretManagerStoredPassword_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1174,10 +1451,11 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Password for the Oracle connection.
+     * Optional. Password for the Oracle connection. Mutually exclusive with the
+     * `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -1196,10 +1474,11 @@ public java.lang.String getPassword() { * * *
-     * Required. Password for the Oracle connection.
+     * Optional. Password for the Oracle connection. Mutually exclusive with the
+     * `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -1218,10 +1497,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Password for the Oracle connection.
+     * Optional. Password for the Oracle connection. Mutually exclusive with the
+     * `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The password to set. * @return This builder for chaining. @@ -1239,10 +1519,11 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Password for the Oracle connection.
+     * Optional. Password for the Oracle connection. Mutually exclusive with the
+     * `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1256,10 +1537,11 @@ public Builder clearPassword() { * * *
-     * Required. Password for the Oracle connection.
+     * Optional. Password for the Oracle connection. Mutually exclusive with the
+     * `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for password to set. * @return This builder for chaining. @@ -1551,6 +1833,532 @@ public Builder putAllConnectionAttributes( return this; } + private com.google.cloud.datastream.v1.OracleSslConfig oracleSslConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder> + oracleSslConfigBuilder_; + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + public boolean hasOracleSslConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + public com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig() { + if (oracleSslConfigBuilder_ == null) { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } else { + return oracleSslConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleSslConfig(com.google.cloud.datastream.v1.OracleSslConfig value) { + if (oracleSslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oracleSslConfig_ = value; + } else { + oracleSslConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleSslConfig( + com.google.cloud.datastream.v1.OracleSslConfig.Builder builderForValue) { + if (oracleSslConfigBuilder_ == null) { + oracleSslConfig_ = builderForValue.build(); + } else { + oracleSslConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOracleSslConfig(com.google.cloud.datastream.v1.OracleSslConfig value) { + if (oracleSslConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && oracleSslConfig_ != null + && oracleSslConfig_ + != com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance()) { + getOracleSslConfigBuilder().mergeFrom(value); + } else { + oracleSslConfig_ = value; + } + } else { + oracleSslConfigBuilder_.mergeFrom(value); + } + if (oracleSslConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOracleSslConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + oracleSslConfig_ = null; + if (oracleSslConfigBuilder_ != null) { + oracleSslConfigBuilder_.dispose(); + oracleSslConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleSslConfig.Builder getOracleSslConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOracleSslConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder() { + if (oracleSslConfigBuilder_ != null) { + return oracleSslConfigBuilder_.getMessageOrBuilder(); + } else { + return oracleSslConfig_ == null + ? com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance() + : oracleSslConfig_; + } + } + /** + * + * + *
+     * Optional. SSL configuration for the Oracle connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder> + getOracleSslConfigFieldBuilder() { + if (oracleSslConfigBuilder_ == null) { + oracleSslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSslConfig, + com.google.cloud.datastream.v1.OracleSslConfig.Builder, + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder>( + getOracleSslConfig(), getParentForChildren(), isClean()); + oracleSslConfig_ = null; + } + return oracleSslConfigBuilder_; + } + + private com.google.cloud.datastream.v1.OracleAsmConfig oracleAsmConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleAsmConfig, + com.google.cloud.datastream.v1.OracleAsmConfig.Builder, + com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder> + oracleAsmConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleAsmConfig field is set. + */ + public boolean hasOracleAsmConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleAsmConfig. + */ + public com.google.cloud.datastream.v1.OracleAsmConfig getOracleAsmConfig() { + if (oracleAsmConfigBuilder_ == null) { + return oracleAsmConfig_ == null + ? com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance() + : oracleAsmConfig_; + } else { + return oracleAsmConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleAsmConfig(com.google.cloud.datastream.v1.OracleAsmConfig value) { + if (oracleAsmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oracleAsmConfig_ = value; + } else { + oracleAsmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOracleAsmConfig( + com.google.cloud.datastream.v1.OracleAsmConfig.Builder builderForValue) { + if (oracleAsmConfigBuilder_ == null) { + oracleAsmConfig_ = builderForValue.build(); + } else { + oracleAsmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOracleAsmConfig(com.google.cloud.datastream.v1.OracleAsmConfig value) { + if (oracleAsmConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && oracleAsmConfig_ != null + && oracleAsmConfig_ + != com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance()) { + getOracleAsmConfigBuilder().mergeFrom(value); + } else { + oracleAsmConfig_ = value; + } + } else { + oracleAsmConfigBuilder_.mergeFrom(value); + } + if (oracleAsmConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOracleAsmConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + oracleAsmConfig_ = null; + if (oracleAsmConfigBuilder_ != null) { + oracleAsmConfigBuilder_.dispose(); + oracleAsmConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleAsmConfig.Builder getOracleAsmConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getOracleAsmConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder getOracleAsmConfigOrBuilder() { + if (oracleAsmConfigBuilder_ != null) { + return oracleAsmConfigBuilder_.getMessageOrBuilder(); + } else { + return oracleAsmConfig_ == null + ? com.google.cloud.datastream.v1.OracleAsmConfig.getDefaultInstance() + : oracleAsmConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for Oracle ASM connection.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleAsmConfig, + com.google.cloud.datastream.v1.OracleAsmConfig.Builder, + com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder> + getOracleAsmConfigFieldBuilder() { + if (oracleAsmConfigBuilder_ == null) { + oracleAsmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleAsmConfig, + com.google.cloud.datastream.v1.OracleAsmConfig.Builder, + com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder>( + getOracleAsmConfig(), getParentForChildren(), isClean()); + oracleAsmConfig_ = null; + } + return oracleAsmConfigBuilder_; + } + + private java.lang.Object secretManagerStoredPassword_ = ""; + /** + * + * + *
+     * Optional. A reference to a Secret Manager resource name storing the Oracle
+     * connection password. Mutually exclusive with the `password` field.
+     * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretManagerStoredPassword. + */ + public java.lang.String getSecretManagerStoredPassword() { + java.lang.Object ref = secretManagerStoredPassword_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretManagerStoredPassword_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A reference to a Secret Manager resource name storing the Oracle
+     * connection password. Mutually exclusive with the `password` field.
+     * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for secretManagerStoredPassword. + */ + public com.google.protobuf.ByteString getSecretManagerStoredPasswordBytes() { + java.lang.Object ref = secretManagerStoredPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretManagerStoredPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A reference to a Secret Manager resource name storing the Oracle
+     * connection password. Mutually exclusive with the `password` field.
+     * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The secretManagerStoredPassword to set. + * @return This builder for chaining. + */ + public Builder setSecretManagerStoredPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretManagerStoredPassword_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A reference to a Secret Manager resource name storing the Oracle
+     * connection password. Mutually exclusive with the `password` field.
+     * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSecretManagerStoredPassword() { + secretManagerStoredPassword_ = getDefaultInstance().getSecretManagerStoredPassword(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A reference to a Secret Manager resource name storing the Oracle
+     * connection password. Mutually exclusive with the `password` field.
+     * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for secretManagerStoredPassword to set. + * @return This builder for chaining. + */ + public Builder setSecretManagerStoredPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretManagerStoredPassword_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java index 5f36ef478812..1d68a18c1c40 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java @@ -91,10 +91,11 @@ public interface OracleProfileOrBuilder * * *
-   * Required. Password for the Oracle connection.
+   * Optional. Password for the Oracle connection. Mutually exclusive with the
+   * `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -103,10 +104,11 @@ public interface OracleProfileOrBuilder * * *
-   * Required. Password for the Oracle connection.
+   * Optional. Password for the Oracle connection. Mutually exclusive with the
+   * `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -194,4 +196,115 @@ java.lang.String getConnectionAttributesOrDefault( * map<string, string> connection_attributes = 6; */ java.lang.String getConnectionAttributesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleSslConfig field is set. + */ + boolean hasOracleSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleSslConfig. + */ + com.google.cloud.datastream.v1.OracleSslConfig getOracleSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the Oracle connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSslConfig oracle_ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder getOracleSslConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oracleAsmConfig field is set. + */ + boolean hasOracleAsmConfig(); + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oracleAsmConfig. + */ + com.google.cloud.datastream.v1.OracleAsmConfig getOracleAsmConfig(); + /** + * + * + *
+   * Optional. Configuration for Oracle ASM connection.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleAsmConfig oracle_asm_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.OracleAsmConfigOrBuilder getOracleAsmConfigOrBuilder(); + + /** + * + * + *
+   * Optional. A reference to a Secret Manager resource name storing the Oracle
+   * connection password. Mutually exclusive with the `password` field.
+   * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secretManagerStoredPassword. + */ + java.lang.String getSecretManagerStoredPassword(); + /** + * + * + *
+   * Optional. A reference to a Secret Manager resource name storing the Oracle
+   * connection password. Mutually exclusive with the `password` field.
+   * 
+ * + * string secret_manager_stored_password = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for secretManagerStoredPassword. + */ + com.google.protobuf.ByteString getSecretManagerStoredPasswordBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPosition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPosition.java new file mode 100644 index 000000000000..5a38124d610a --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPosition.java @@ -0,0 +1,535 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Oracle SCN position
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleScnPosition} + */ +public final class OracleScnPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleScnPosition) + OracleScnPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use OracleScnPosition.newBuilder() to construct. + private OracleScnPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OracleScnPosition() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OracleScnPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleScnPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleScnPosition.class, + com.google.cloud.datastream.v1.OracleScnPosition.Builder.class); + } + + public static final int SCN_FIELD_NUMBER = 1; + private long scn_ = 0L; + /** + * + * + *
+   * Required. SCN number from where Logs will be read
+   * 
+ * + * int64 scn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scn. + */ + @java.lang.Override + public long getScn() { + return scn_; + } + + 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 (scn_ != 0L) { + output.writeInt64(1, scn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scn_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, scn_); + } + 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.datastream.v1.OracleScnPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleScnPosition other = + (com.google.cloud.datastream.v1.OracleScnPosition) obj; + + if (getScn() != other.getScn()) 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) + SCN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScn()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleScnPosition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition 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.datastream.v1.OracleScnPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition 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.datastream.v1.OracleScnPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition 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.datastream.v1.OracleScnPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition 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.datastream.v1.OracleScnPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition 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.datastream.v1.OracleScnPosition 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; + } + /** + * + * + *
+   * Oracle SCN position
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleScnPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleScnPosition) + com.google.cloud.datastream.v1.OracleScnPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleScnPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleScnPosition.class, + com.google.cloud.datastream.v1.OracleScnPosition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleScnPosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scn_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPosition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPosition build() { + com.google.cloud.datastream.v1.OracleScnPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleScnPosition buildPartial() { + com.google.cloud.datastream.v1.OracleScnPosition result = + new com.google.cloud.datastream.v1.OracleScnPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.OracleScnPosition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scn_ = scn_; + } + } + + @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.datastream.v1.OracleScnPosition) { + return mergeFrom((com.google.cloud.datastream.v1.OracleScnPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleScnPosition other) { + if (other == com.google.cloud.datastream.v1.OracleScnPosition.getDefaultInstance()) + return this; + if (other.getScn() != 0L) { + setScn(other.getScn()); + } + 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: + { + scn_ = input.readInt64(); + 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 long scn_; + /** + * + * + *
+     * Required. SCN number from where Logs will be read
+     * 
+ * + * int64 scn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scn. + */ + @java.lang.Override + public long getScn() { + return scn_; + } + /** + * + * + *
+     * Required. SCN number from where Logs will be read
+     * 
+ * + * int64 scn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scn to set. + * @return This builder for chaining. + */ + public Builder setScn(long value) { + + scn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SCN number from where Logs will be read
+     * 
+ * + * int64 scn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScn() { + bitField0_ = (bitField0_ & ~0x00000001); + scn_ = 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.datastream.v1.OracleScnPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleScnPosition) + private static final com.google.cloud.datastream.v1.OracleScnPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleScnPosition(); + } + + public static com.google.cloud.datastream.v1.OracleScnPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleScnPosition 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.datastream.v1.OracleScnPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPositionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPositionOrBuilder.java new file mode 100644 index 000000000000..c6004e87aab2 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleScnPositionOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface OracleScnPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleScnPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. SCN number from where Logs will be read
+   * 
+ * + * int64 scn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scn. + */ + long getScn(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 5ca8ef30fb0b..d4effe62094c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -928,6 +928,3182 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface LogMinerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.LogMiner) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration to use LogMiner CDC method.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.LogMiner} + */ + public static final class LogMiner extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.LogMiner) + LogMinerOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogMiner.newBuilder() to construct. + private LogMiner(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogMiner() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogMiner(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.class, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.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.datastream.v1.OracleSourceConfig.LogMiner)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner other = + (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) 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.datastream.v1.OracleSourceConfig.LogMiner parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner 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 to use LogMiner CDC method.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.LogMiner} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.LogMiner) + com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.class, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_LogMiner_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner build() { + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner result = + new com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner(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.datastream.v1.OracleSourceConfig.LogMiner) { + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.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.datastream.v1.OracleSourceConfig.LogMiner) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.LogMiner) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogMiner 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.datastream.v1.OracleSourceConfig.LogMiner getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BinaryLogParserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return Whether the oracleAsmLogFileAccess field is set. + */ + boolean hasOracleAsmLogFileAccess(); + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return The oracleAsmLogFileAccess. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + getOracleAsmLogFileAccess(); + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder + getOracleAsmLogFileAccessOrBuilder(); + + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return Whether the logFileDirectories field is set. + */ + boolean hasLogFileDirectories(); + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return The logFileDirectories. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + getLogFileDirectories(); + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectoriesOrBuilder + getLogFileDirectoriesOrBuilder(); + + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileAccessCase + getLogFileAccessCase(); + } + /** + * + * + *
+   * Configuration to use Binary Log Parser CDC technique.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser} + */ + public static final class BinaryLogParser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) + BinaryLogParserOrBuilder { + private static final long serialVersionUID = 0L; + // Use BinaryLogParser.newBuilder() to construct. + private BinaryLogParser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BinaryLogParser() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BinaryLogParser(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder.class); + } + + public interface OracleAsmLogFileAccessOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * Configuration to use Oracle ASM to access the log files.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess} + */ + public static final class OracleAsmLogFileAccess extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess) + OracleAsmLogFileAccessOrBuilder { + private static final long serialVersionUID = 0L; + // Use OracleAsmLogFileAccess.newBuilder() to construct. + private OracleAsmLogFileAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OracleAsmLogFileAccess() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OracleAsmLogFileAccess(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + other = + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + 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.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + 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 to use Oracle ASM to access the log files.
+       * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess) + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_OracleAsmLogFileAccess_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + build() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + result = + new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess(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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.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.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleAsmLogFileAccess 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LogFileDirectoriesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Oracle directory for online logs.
+       * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlineLogDirectory. + */ + java.lang.String getOnlineLogDirectory(); + /** + * + * + *
+       * Required. Oracle directory for online logs.
+       * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for onlineLogDirectory. + */ + com.google.protobuf.ByteString getOnlineLogDirectoryBytes(); + + /** + * + * + *
+       * Required. Oracle directory for archived logs.
+       * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The archivedLogDirectory. + */ + java.lang.String getArchivedLogDirectory(); + /** + * + * + *
+       * Required. Oracle directory for archived logs.
+       * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for archivedLogDirectory. + */ + com.google.protobuf.ByteString getArchivedLogDirectoryBytes(); + } + /** + * + * + *
+     * Configuration to specify the Oracle directories to access the log files.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories} + */ + public static final class LogFileDirectories extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + LogFileDirectoriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogFileDirectories.newBuilder() to construct. + private LogFileDirectories(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogFileDirectories() { + onlineLogDirectory_ = ""; + archivedLogDirectory_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogFileDirectories(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .Builder.class); + } + + public static final int ONLINE_LOG_DIRECTORY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object onlineLogDirectory_ = ""; + /** + * + * + *
+       * Required. Oracle directory for online logs.
+       * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlineLogDirectory. + */ + @java.lang.Override + public java.lang.String getOnlineLogDirectory() { + java.lang.Object ref = onlineLogDirectory_; + 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(); + onlineLogDirectory_ = s; + return s; + } + } + /** + * + * + *
+       * Required. Oracle directory for online logs.
+       * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for onlineLogDirectory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOnlineLogDirectoryBytes() { + java.lang.Object ref = onlineLogDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + onlineLogDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARCHIVED_LOG_DIRECTORY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object archivedLogDirectory_ = ""; + /** + * + * + *
+       * Required. Oracle directory for archived logs.
+       * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The archivedLogDirectory. + */ + @java.lang.Override + public java.lang.String getArchivedLogDirectory() { + java.lang.Object ref = archivedLogDirectory_; + 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(); + archivedLogDirectory_ = s; + return s; + } + } + /** + * + * + *
+       * Required. Oracle directory for archived logs.
+       * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for archivedLogDirectory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchivedLogDirectoryBytes() { + java.lang.Object ref = archivedLogDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + archivedLogDirectory_ = 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(onlineLogDirectory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, onlineLogDirectory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(archivedLogDirectory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, archivedLogDirectory_); + } + 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(onlineLogDirectory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, onlineLogDirectory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(archivedLogDirectory_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, archivedLogDirectory_); + } + 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.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories other = + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + obj; + + if (!getOnlineLogDirectory().equals(other.getOnlineLogDirectory())) return false; + if (!getArchivedLogDirectory().equals(other.getArchivedLogDirectory())) 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) + ONLINE_LOG_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getOnlineLogDirectory().hashCode(); + hash = (37 * hash) + ARCHIVED_LOG_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getArchivedLogDirectory().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + 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.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + 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.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + 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 to specify the Oracle directories to access the log files.
+       * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + onlineLogDirectory_ = ""; + archivedLogDirectory_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_LogFileDirectories_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + build() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + result = + new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.onlineLogDirectory_ = onlineLogDirectory_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.archivedLogDirectory_ = archivedLogDirectory_; + } + } + + @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.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance()) return this; + if (!other.getOnlineLogDirectory().isEmpty()) { + onlineLogDirectory_ = other.onlineLogDirectory_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getArchivedLogDirectory().isEmpty()) { + archivedLogDirectory_ = other.archivedLogDirectory_; + 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: + { + onlineLogDirectory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + archivedLogDirectory_ = 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 onlineLogDirectory_ = ""; + /** + * + * + *
+         * Required. Oracle directory for online logs.
+         * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The onlineLogDirectory. + */ + public java.lang.String getOnlineLogDirectory() { + java.lang.Object ref = onlineLogDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + onlineLogDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. Oracle directory for online logs.
+         * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for onlineLogDirectory. + */ + public com.google.protobuf.ByteString getOnlineLogDirectoryBytes() { + java.lang.Object ref = onlineLogDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + onlineLogDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. Oracle directory for online logs.
+         * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The onlineLogDirectory to set. + * @return This builder for chaining. + */ + public Builder setOnlineLogDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + onlineLogDirectory_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Oracle directory for online logs.
+         * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOnlineLogDirectory() { + onlineLogDirectory_ = getDefaultInstance().getOnlineLogDirectory(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Oracle directory for online logs.
+         * 
+ * + * string online_log_directory = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for onlineLogDirectory to set. + * @return This builder for chaining. + */ + public Builder setOnlineLogDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + onlineLogDirectory_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object archivedLogDirectory_ = ""; + /** + * + * + *
+         * Required. Oracle directory for archived logs.
+         * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The archivedLogDirectory. + */ + public java.lang.String getArchivedLogDirectory() { + java.lang.Object ref = archivedLogDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + archivedLogDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. Oracle directory for archived logs.
+         * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for archivedLogDirectory. + */ + public com.google.protobuf.ByteString getArchivedLogDirectoryBytes() { + java.lang.Object ref = archivedLogDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + archivedLogDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. Oracle directory for archived logs.
+         * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The archivedLogDirectory to set. + * @return This builder for chaining. + */ + public Builder setArchivedLogDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + archivedLogDirectory_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Oracle directory for archived logs.
+         * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearArchivedLogDirectory() { + archivedLogDirectory_ = getDefaultInstance().getArchivedLogDirectory(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. Oracle directory for archived logs.
+         * 
+ * + * string archived_log_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for archivedLogDirectory to set. + * @return This builder for chaining. + */ + public Builder setArchivedLogDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + archivedLogDirectory_ = 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.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogFileDirectories 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.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int logFileAccessCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object logFileAccess_; + + public enum LogFileAccessCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORACLE_ASM_LOG_FILE_ACCESS(1), + LOG_FILE_DIRECTORIES(2), + LOGFILEACCESS_NOT_SET(0); + private final int value; + + private LogFileAccessCase(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 LogFileAccessCase valueOf(int value) { + return forNumber(value); + } + + public static LogFileAccessCase forNumber(int value) { + switch (value) { + case 1: + return ORACLE_ASM_LOG_FILE_ACCESS; + case 2: + return LOG_FILE_DIRECTORIES; + case 0: + return LOGFILEACCESS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LogFileAccessCase getLogFileAccessCase() { + return LogFileAccessCase.forNumber(logFileAccessCase_); + } + + public static final int ORACLE_ASM_LOG_FILE_ACCESS_FIELD_NUMBER = 1; + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return Whether the oracleAsmLogFileAccess field is set. + */ + @java.lang.Override + public boolean hasOracleAsmLogFileAccess() { + return logFileAccessCase_ == 1; + } + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return The oracleAsmLogFileAccess. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + getOracleAsmLogFileAccess() { + if (logFileAccessCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + /** + * + * + *
+     * Use Oracle ASM.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder + getOracleAsmLogFileAccessOrBuilder() { + if (logFileAccessCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + + public static final int LOG_FILE_DIRECTORIES_FIELD_NUMBER = 2; + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return Whether the logFileDirectories field is set. + */ + @java.lang.Override + public boolean hasLogFileDirectories() { + return logFileAccessCase_ == 2; + } + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return The logFileDirectories. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + getLogFileDirectories() { + if (logFileAccessCase_ == 2) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .getDefaultInstance(); + } + /** + * + * + *
+     * Use Oracle directories.
+     * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder + getLogFileDirectoriesOrBuilder() { + if (logFileAccessCase_ == 2) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .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 (logFileAccessCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_); + } + if (logFileAccessCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories) + logFileAccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (logFileAccessCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_); + } + if (logFileAccessCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_); + } + 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.datastream.v1.OracleSourceConfig.BinaryLogParser)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser other = + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) obj; + + if (!getLogFileAccessCase().equals(other.getLogFileAccessCase())) return false; + switch (logFileAccessCase_) { + case 1: + if (!getOracleAsmLogFileAccess().equals(other.getOracleAsmLogFileAccess())) return false; + break; + case 2: + if (!getLogFileDirectories().equals(other.getLogFileDirectories())) 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 (logFileAccessCase_) { + case 1: + hash = (37 * hash) + ORACLE_ASM_LOG_FILE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getOracleAsmLogFileAccess().hashCode(); + break; + case 2: + hash = (37 * hash) + LOG_FILE_DIRECTORIES_FIELD_NUMBER; + hash = (53 * hash) + getLogFileDirectories().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser 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.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser 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.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser 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.datastream.v1.OracleSourceConfig.BinaryLogParser + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + 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.datastream.v1.OracleSourceConfig.BinaryLogParser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser 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.datastream.v1.OracleSourceConfig.BinaryLogParser 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 to use Binary Log Parser CDC technique.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.class, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (oracleAsmLogFileAccessBuilder_ != null) { + oracleAsmLogFileAccessBuilder_.clear(); + } + if (logFileDirectoriesBuilder_ != null) { + logFileDirectoriesBuilder_.clear(); + } + logFileAccessCase_ = 0; + logFileAccess_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_BinaryLogParser_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser build() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser result = + new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser result) { + result.logFileAccessCase_ = logFileAccessCase_; + result.logFileAccess_ = this.logFileAccess_; + if (logFileAccessCase_ == 1 && oracleAsmLogFileAccessBuilder_ != null) { + result.logFileAccess_ = oracleAsmLogFileAccessBuilder_.build(); + } + if (logFileAccessCase_ == 2 && logFileDirectoriesBuilder_ != null) { + result.logFileAccess_ = logFileDirectoriesBuilder_.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.datastream.v1.OracleSourceConfig.BinaryLogParser) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance()) return this; + switch (other.getLogFileAccessCase()) { + case ORACLE_ASM_LOG_FILE_ACCESS: + { + mergeOracleAsmLogFileAccess(other.getOracleAsmLogFileAccess()); + break; + } + case LOG_FILE_DIRECTORIES: + { + mergeLogFileDirectories(other.getLogFileDirectories()); + break; + } + case LOGFILEACCESS_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( + getOracleAsmLogFileAccessFieldBuilder().getBuilder(), extensionRegistry); + logFileAccessCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getLogFileDirectoriesFieldBuilder().getBuilder(), extensionRegistry); + logFileAccessCase_ = 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 logFileAccessCase_ = 0; + private java.lang.Object logFileAccess_; + + public LogFileAccessCase getLogFileAccessCase() { + return LogFileAccessCase.forNumber(logFileAccessCase_); + } + + public Builder clearLogFileAccess() { + logFileAccessCase_ = 0; + logFileAccess_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder> + oracleAsmLogFileAccessBuilder_; + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return Whether the oracleAsmLogFileAccess field is set. + */ + @java.lang.Override + public boolean hasOracleAsmLogFileAccess() { + return logFileAccessCase_ == 1; + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + * + * @return The oracleAsmLogFileAccess. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess + getOracleAsmLogFileAccess() { + if (oracleAsmLogFileAccessBuilder_ == null) { + if (logFileAccessCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } else { + if (logFileAccessCase_ == 1) { + return oracleAsmLogFileAccessBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + public Builder setOracleAsmLogFileAccess( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + value) { + if (oracleAsmLogFileAccessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logFileAccess_ = value; + onChanged(); + } else { + oracleAsmLogFileAccessBuilder_.setMessage(value); + } + logFileAccessCase_ = 1; + return this; + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + public Builder setOracleAsmLogFileAccess( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + .Builder + builderForValue) { + if (oracleAsmLogFileAccessBuilder_ == null) { + logFileAccess_ = builderForValue.build(); + onChanged(); + } else { + oracleAsmLogFileAccessBuilder_.setMessage(builderForValue.build()); + } + logFileAccessCase_ = 1; + return this; + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + public Builder mergeOracleAsmLogFileAccess( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess + value) { + if (oracleAsmLogFileAccessBuilder_ == null) { + if (logFileAccessCase_ == 1 + && logFileAccess_ + != com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance()) { + logFileAccess_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_) + .mergeFrom(value) + .buildPartial(); + } else { + logFileAccess_ = value; + } + onChanged(); + } else { + if (logFileAccessCase_ == 1) { + oracleAsmLogFileAccessBuilder_.mergeFrom(value); + } else { + oracleAsmLogFileAccessBuilder_.setMessage(value); + } + } + logFileAccessCase_ = 1; + return this; + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + public Builder clearOracleAsmLogFileAccess() { + if (oracleAsmLogFileAccessBuilder_ == null) { + if (logFileAccessCase_ == 1) { + logFileAccessCase_ = 0; + logFileAccess_ = null; + onChanged(); + } + } else { + if (logFileAccessCase_ == 1) { + logFileAccessCase_ = 0; + logFileAccess_ = null; + } + oracleAsmLogFileAccessBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.Builder + getOracleAsmLogFileAccessBuilder() { + return getOracleAsmLogFileAccessFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder + getOracleAsmLogFileAccessOrBuilder() { + if ((logFileAccessCase_ == 1) && (oracleAsmLogFileAccessBuilder_ != null)) { + return oracleAsmLogFileAccessBuilder_.getMessageOrBuilder(); + } else { + if (logFileAccessCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + } + /** + * + * + *
+       * Use Oracle ASM.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder> + getOracleAsmLogFileAccessFieldBuilder() { + if (oracleAsmLogFileAccessBuilder_ == null) { + if (!(logFileAccessCase_ == 1)) { + logFileAccess_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.getDefaultInstance(); + } + oracleAsmLogFileAccessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccessOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .OracleAsmLogFileAccess) + logFileAccess_, + getParentForChildren(), + isClean()); + logFileAccess_ = null; + } + logFileAccessCase_ = 1; + onChanged(); + return oracleAsmLogFileAccessBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder> + logFileDirectoriesBuilder_; + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return Whether the logFileDirectories field is set. + */ + @java.lang.Override + public boolean hasLogFileDirectories() { + return logFileAccessCase_ == 2; + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + * + * @return The logFileDirectories. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + getLogFileDirectories() { + if (logFileDirectoriesBuilder_ == null) { + if (logFileAccessCase_ == 2) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance(); + } else { + if (logFileAccessCase_ == 2) { + return logFileDirectoriesBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance(); + } + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + public Builder setLogFileDirectories( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + value) { + if (logFileDirectoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logFileAccess_ = value; + onChanged(); + } else { + logFileDirectoriesBuilder_.setMessage(value); + } + logFileAccessCase_ = 2; + return this; + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + public Builder setLogFileDirectories( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .Builder + builderForValue) { + if (logFileDirectoriesBuilder_ == null) { + logFileAccess_ = builderForValue.build(); + onChanged(); + } else { + logFileDirectoriesBuilder_.setMessage(builderForValue.build()); + } + logFileAccessCase_ = 2; + return this; + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + public Builder mergeLogFileDirectories( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + value) { + if (logFileDirectoriesBuilder_ == null) { + if (logFileAccessCase_ == 2 + && logFileAccess_ + != com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance()) { + logFileAccess_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_) + .mergeFrom(value) + .buildPartial(); + } else { + logFileAccess_ = value; + } + onChanged(); + } else { + if (logFileAccessCase_ == 2) { + logFileDirectoriesBuilder_.mergeFrom(value); + } else { + logFileDirectoriesBuilder_.setMessage(value); + } + } + logFileAccessCase_ = 2; + return this; + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + public Builder clearLogFileDirectories() { + if (logFileDirectoriesBuilder_ == null) { + if (logFileAccessCase_ == 2) { + logFileAccessCase_ = 0; + logFileAccess_ = null; + onChanged(); + } + } else { + if (logFileAccessCase_ == 2) { + logFileAccessCase_ = 0; + logFileAccess_ = null; + } + logFileDirectoriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .Builder + getLogFileDirectoriesBuilder() { + return getLogFileDirectoriesFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder + getLogFileDirectoriesOrBuilder() { + if ((logFileAccessCase_ == 2) && (logFileDirectoriesBuilder_ != null)) { + return logFileDirectoriesBuilder_.getMessageOrBuilder(); + } else { + if (logFileAccessCase_ == 2) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.getDefaultInstance(); + } + } + /** + * + * + *
+       * Use Oracle directories.
+       * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories log_file_directories = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder> + getLogFileDirectoriesFieldBuilder() { + if (logFileDirectoriesBuilder_ == null) { + if (!(logFileAccessCase_ == 2)) { + logFileAccess_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.LogFileDirectories + .getDefaultInstance(); + } + logFileDirectoriesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectoriesOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .LogFileDirectories) + logFileAccess_, + getParentForChildren(), + isClean()); + logFileAccess_ = null; + } + logFileAccessCase_ = 2; + onChanged(); + return logFileDirectoriesBuilder_; + } + + @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.datastream.v1.OracleSourceConfig.BinaryLogParser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryLogParser 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.datastream.v1.OracleSourceConfig.BinaryLogParser + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int largeObjectsHandlingCase_ = 0; @@ -978,6 +4154,55 @@ public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); } + private int cdcMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cdcMethod_; + + public enum CdcMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LOG_MINER(103), + BINARY_LOG_PARSER(104), + CDCMETHOD_NOT_SET(0); + private final int value; + + private CdcMethodCase(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 CdcMethodCase valueOf(int value) { + return forNumber(value); + } + + public static CdcMethodCase forNumber(int value) { + switch (value) { + case 103: + return LOG_MINER; + case 104: + return BINARY_LOG_PARSER; + case 0: + return CDCMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; /** @@ -1178,7 +4403,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDro * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -1195,7 +4420,7 @@ public boolean hasStreamLargeObjects() { * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -1218,7 +4443,7 @@ public boolean hasStreamLargeObjects() { * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -1236,6 +4461,113 @@ public boolean hasStreamLargeObjects() { .getDefaultInstance(); } + public static final int LOG_MINER_FIELD_NUMBER = 103; + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return Whether the logMiner field is set. + */ + @java.lang.Override + public boolean hasLogMiner() { + return cdcMethodCase_ == 103; + } + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return The logMiner. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner getLogMiner() { + if (cdcMethodCase_ == 103) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder + getLogMinerOrBuilder() { + if (cdcMethodCase_ == 103) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + + public static final int BINARY_LOG_PARSER_FIELD_NUMBER = 104; + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return Whether the binaryLogParser field is set. + */ + @java.lang.Override + public boolean hasBinaryLogParser() { + return cdcMethodCase_ == 104; + } + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return The binaryLogParser. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser getBinaryLogParser() { + if (cdcMethodCase_ == 104) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.getDefaultInstance(); + } + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder + getBinaryLogParserOrBuilder() { + if (cdcMethodCase_ == 104) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1274,6 +4606,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); } + if (cdcMethodCase_ == 103) { + output.writeMessage( + 103, (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_); + } + if (cdcMethodCase_ == 104) { + output.writeMessage( + 104, (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_); + } getUnknownFields().writeTo(output); } @@ -1310,6 +4650,16 @@ public int getSerializedSize() { (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); } + if (cdcMethodCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_); + } + if (cdcMethodCase_ == 104) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1347,6 +4697,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getCdcMethodCase().equals(other.getCdcMethodCase())) return false; + switch (cdcMethodCase_) { + case 103: + if (!getLogMiner().equals(other.getLogMiner())) return false; + break; + case 104: + if (!getBinaryLogParser().equals(other.getBinaryLogParser())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1382,6 +4743,18 @@ public int hashCode() { case 0: default: } + switch (cdcMethodCase_) { + case 103: + hash = (37 * hash) + LOG_MINER_FIELD_NUMBER; + hash = (53 * hash) + getLogMiner().hashCode(); + break; + case 104: + hash = (37 * hash) + BINARY_LOG_PARSER_FIELD_NUMBER; + hash = (53 * hash) + getBinaryLogParser().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1549,8 +4922,16 @@ public Builder clear() { if (streamLargeObjectsBuilder_ != null) { streamLargeObjectsBuilder_.clear(); } + if (logMinerBuilder_ != null) { + logMinerBuilder_.clear(); + } + if (binaryLogParserBuilder_ != null) { + binaryLogParserBuilder_.clear(); + } largeObjectsHandlingCase_ = 0; largeObjectsHandling_ = null; + cdcMethodCase_ = 0; + cdcMethod_ = null; return this; } @@ -1617,6 +4998,14 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.OracleSourceConfi if (largeObjectsHandlingCase_ == 102 && streamLargeObjectsBuilder_ != null) { result.largeObjectsHandling_ = streamLargeObjectsBuilder_.build(); } + result.cdcMethodCase_ = cdcMethodCase_; + result.cdcMethod_ = this.cdcMethod_; + if (cdcMethodCase_ == 103 && logMinerBuilder_ != null) { + result.cdcMethod_ = logMinerBuilder_.build(); + } + if (cdcMethodCase_ == 104 && binaryLogParserBuilder_ != null) { + result.cdcMethod_ = binaryLogParserBuilder_.build(); + } } @java.lang.Override @@ -1693,6 +5082,22 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other break; } } + switch (other.getCdcMethodCase()) { + case LOG_MINER: + { + mergeLogMiner(other.getLogMiner()); + break; + } + case BINARY_LOG_PARSER: + { + mergeBinaryLogParser(other.getBinaryLogParser()); + break; + } + case CDCMETHOD_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1757,6 +5162,18 @@ public Builder mergeFrom( largeObjectsHandlingCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage(getLogMinerFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 103; + break; + } // case 826 + case 834: + { + input.readMessage(getBinaryLogParserFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 104; + break; + } // case 834 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1788,6 +5205,20 @@ public Builder clearLargeObjectsHandling() { return this; } + private int cdcMethodCase_ = 0; + private java.lang.Object cdcMethod_; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + + public Builder clearCdcMethod() { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; @@ -2527,7 +5958,7 @@ public Builder clearDropLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2544,7 +5975,7 @@ public boolean hasStreamLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2575,7 +6006,7 @@ public boolean hasStreamLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2600,7 +6031,7 @@ public Builder setStreamLargeObjects( * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2623,7 +6054,7 @@ public Builder setStreamLargeObjects( * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2661,7 +6092,7 @@ public Builder mergeStreamLargeObjects( * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2688,7 +6119,7 @@ public Builder clearStreamLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2703,7 +6134,7 @@ public Builder clearStreamLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2728,7 +6159,7 @@ public Builder clearStreamLargeObjects() { * * *
-     * Stream large object values. NOTE: This feature is currently experimental.
+     * Stream large object values.
      * 
* * @@ -2762,6 +6193,449 @@ public Builder clearStreamLargeObjects() { return streamLargeObjectsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder> + logMinerBuilder_; + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return Whether the logMiner field is set. + */ + @java.lang.Override + public boolean hasLogMiner() { + return cdcMethodCase_ == 103; + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return The logMiner. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner getLogMiner() { + if (logMinerBuilder_ == null) { + if (cdcMethodCase_ == 103) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } else { + if (cdcMethodCase_ == 103) { + return logMinerBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + public Builder setLogMiner(com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner value) { + if (logMinerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + logMinerBuilder_.setMessage(value); + } + cdcMethodCase_ = 103; + return this; + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + public Builder setLogMiner( + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder builderForValue) { + if (logMinerBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + logMinerBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 103; + return this; + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + public Builder mergeLogMiner(com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner value) { + if (logMinerBuilder_ == null) { + if (cdcMethodCase_ == 103 + && cdcMethod_ + != com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner + .getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 103) { + logMinerBuilder_.mergeFrom(value); + } else { + logMinerBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 103; + return this; + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + public Builder clearLogMiner() { + if (logMinerBuilder_ == null) { + if (cdcMethodCase_ == 103) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 103) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + logMinerBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder getLogMinerBuilder() { + return getLogMinerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder + getLogMinerOrBuilder() { + if ((cdcMethodCase_ == 103) && (logMinerBuilder_ != null)) { + return logMinerBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 103) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + } + /** + * + * + *
+     * Use LogMiner.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder> + getLogMinerFieldBuilder() { + if (logMinerBuilder_ == null) { + if (!(cdcMethodCase_ == 103)) { + cdcMethod_ = + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.getDefaultInstance(); + } + logMinerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 103; + onChanged(); + return logMinerBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder> + binaryLogParserBuilder_; + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return Whether the binaryLogParser field is set. + */ + @java.lang.Override + public boolean hasBinaryLogParser() { + return cdcMethodCase_ == 104; + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return The binaryLogParser. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser getBinaryLogParser() { + if (binaryLogParserBuilder_ == null) { + if (cdcMethodCase_ == 104) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance(); + } else { + if (cdcMethodCase_ == 104) { + return binaryLogParserBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + public Builder setBinaryLogParser( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser value) { + if (binaryLogParserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + binaryLogParserBuilder_.setMessage(value); + } + cdcMethodCase_ = 104; + return this; + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + public Builder setBinaryLogParser( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder builderForValue) { + if (binaryLogParserBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + binaryLogParserBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 104; + return this; + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + public Builder mergeBinaryLogParser( + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser value) { + if (binaryLogParserBuilder_ == null) { + if (cdcMethodCase_ == 104 + && cdcMethod_ + != com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) + cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 104) { + binaryLogParserBuilder_.mergeFrom(value); + } else { + binaryLogParserBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 104; + return this; + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + public Builder clearBinaryLogParser() { + if (binaryLogParserBuilder_ == null) { + if (cdcMethodCase_ == 104) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 104) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + binaryLogParserBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder + getBinaryLogParserBuilder() { + return getBinaryLogParserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder + getBinaryLogParserOrBuilder() { + if ((cdcMethodCase_ == 104) && (binaryLogParserBuilder_ != null)) { + return binaryLogParserBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 104) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Use Binary Log Parser.
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder> + getBinaryLogParserFieldBuilder() { + if (binaryLogParserBuilder_ == null) { + if (!(cdcMethodCase_ == 104)) { + cdcMethod_ = + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser + .getDefaultInstance(); + } + binaryLogParserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 104; + onChanged(); + return binaryLogParserBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index d96803c91e4f..3627fb9c951b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -165,7 +165,7 @@ public interface OracleSourceConfigOrBuilder * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -179,7 +179,7 @@ public interface OracleSourceConfigOrBuilder * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -193,7 +193,7 @@ public interface OracleSourceConfigOrBuilder * * *
-   * Stream large object values. NOTE: This feature is currently experimental.
+   * Stream large object values.
    * 
* * @@ -203,6 +203,82 @@ public interface OracleSourceConfigOrBuilder com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder(); + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return Whether the logMiner field is set. + */ + boolean hasLogMiner(); + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + * + * @return The logMiner. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.LogMiner getLogMiner(); + /** + * + * + *
+   * Use LogMiner.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.LogMiner log_miner = 103; + */ + com.google.cloud.datastream.v1.OracleSourceConfig.LogMinerOrBuilder getLogMinerOrBuilder(); + + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return Whether the binaryLogParser field is set. + */ + boolean hasBinaryLogParser(); + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + * + * @return The binaryLogParser. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser getBinaryLogParser(); + /** + * + * + *
+   * Use Binary Log Parser.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParser binary_log_parser = 104; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.BinaryLogParserOrBuilder + getBinaryLogParserOrBuilder(); + com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase getLargeObjectsHandlingCase(); + + com.google.cloud.datastream.v1.OracleSourceConfig.CdcMethodCase getCdcMethodCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfig.java new file mode 100644 index 000000000000..6ca74f628c67 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfig.java @@ -0,0 +1,728 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Oracle SSL configuration information.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSslConfig} + */ +public final class OracleSslConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSslConfig) + OracleSslConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OracleSslConfig.newBuilder() to construct. + private OracleSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OracleSslConfig() { + caCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OracleSslConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSslConfig.class, + com.google.cloud.datastream.v1.OracleSslConfig.Builder.class); + } + + public static final int CA_CERTIFICATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object caCertificate_ = ""; + /** + * + * + *
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
+   * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The caCertificate. + */ + @java.lang.Override + public java.lang.String getCaCertificate() { + java.lang.Object ref = caCertificate_; + 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(); + caCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
+   * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for caCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaCertificateBytes() { + java.lang.Object ref = caCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 2; + private boolean caCertificateSet_ = false; + /** + * + * + *
+   * Output only. Indicates whether the ca_certificate field has been set for
+   * this Connection-Profile.
+   * 
+ * + * bool ca_certificate_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caCertificateSet. + */ + @java.lang.Override + public boolean getCaCertificateSet() { + return caCertificateSet_; + } + + 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(caCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caCertificate_); + } + if (caCertificateSet_ != false) { + output.writeBool(2, caCertificateSet_); + } + 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(caCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificate_); + } + if (caCertificateSet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caCertificateSet_); + } + 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.datastream.v1.OracleSslConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSslConfig other = + (com.google.cloud.datastream.v1.OracleSslConfig) obj; + + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() != other.getCaCertificateSet()) 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) + CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getCaCertificate().hashCode(); + hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSslConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig 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.datastream.v1.OracleSslConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig 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.datastream.v1.OracleSslConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig 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.datastream.v1.OracleSslConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig 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.datastream.v1.OracleSslConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig 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.datastream.v1.OracleSslConfig 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; + } + /** + * + * + *
+   * Oracle SSL configuration information.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSslConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSslConfig) + com.google.cloud.datastream.v1.OracleSslConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSslConfig.class, + com.google.cloud.datastream.v1.OracleSslConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSslConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + caCertificate_ = ""; + caCertificateSet_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSslConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfig build() { + com.google.cloud.datastream.v1.OracleSslConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSslConfig buildPartial() { + com.google.cloud.datastream.v1.OracleSslConfig result = + new com.google.cloud.datastream.v1.OracleSslConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.OracleSslConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.caCertificate_ = caCertificate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caCertificateSet_ = caCertificateSet_; + } + } + + @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.datastream.v1.OracleSslConfig) { + return mergeFrom((com.google.cloud.datastream.v1.OracleSslConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSslConfig other) { + if (other == com.google.cloud.datastream.v1.OracleSslConfig.getDefaultInstance()) return this; + if (!other.getCaCertificate().isEmpty()) { + caCertificate_ = other.caCertificate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCaCertificateSet() != false) { + setCaCertificateSet(other.getCaCertificateSet()); + } + 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: + { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + caCertificateSet_ = 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 java.lang.Object caCertificate_ = ""; + /** + * + * + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The caCertificate. + */ + public java.lang.String getCaCertificate() { + java.lang.Object ref = caCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for caCertificate. + */ + public com.google.protobuf.ByteString getCaCertificateBytes() { + java.lang.Object ref = caCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The caCertificate to set. + * @return This builder for chaining. + */ + public Builder setCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCaCertificate() { + caCertificate_ = getDefaultInstance().getCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for caCertificate to set. + * @return This builder for chaining. + */ + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean caCertificateSet_; + /** + * + * + *
+     * Output only. Indicates whether the ca_certificate field has been set for
+     * this Connection-Profile.
+     * 
+ * + * bool ca_certificate_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caCertificateSet. + */ + @java.lang.Override + public boolean getCaCertificateSet() { + return caCertificateSet_; + } + /** + * + * + *
+     * Output only. Indicates whether the ca_certificate field has been set for
+     * this Connection-Profile.
+     * 
+ * + * bool ca_certificate_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The caCertificateSet to set. + * @return This builder for chaining. + */ + public Builder setCaCertificateSet(boolean value) { + + caCertificateSet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether the ca_certificate field has been set for
+     * this Connection-Profile.
+     * 
+ * + * bool ca_certificate_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCaCertificateSet() { + bitField0_ = (bitField0_ & ~0x00000002); + caCertificateSet_ = 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.datastream.v1.OracleSslConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSslConfig) + private static final com.google.cloud.datastream.v1.OracleSslConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSslConfig(); + } + + public static com.google.cloud.datastream.v1.OracleSslConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSslConfig 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.datastream.v1.OracleSslConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfigOrBuilder.java new file mode 100644 index 000000000000..17be8641d7d1 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSslConfigOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface OracleSslConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSslConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
+   * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The caCertificate. + */ + java.lang.String getCaCertificate(); + /** + * + * + *
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
+   * 
+ * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for caCertificate. + */ + com.google.protobuf.ByteString getCaCertificateBytes(); + + /** + * + * + *
+   * Output only. Indicates whether the ca_certificate field has been set for
+   * this Connection-Profile.
+   * 
+ * + * bool ca_certificate_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The caCertificateSet. + */ + boolean getCaCertificateSet(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index 90ecc50fca6a..0b9129fc8b5c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -194,10 +194,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Password for the PostgreSQL connection.
+   * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -217,10 +218,11 @@ public java.lang.String getPassword() { * * *
-   * Required. Password for the PostgreSQL connection.
+   * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -994,10 +996,11 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Password for the PostgreSQL connection.
+     * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -1016,10 +1019,11 @@ public java.lang.String getPassword() { * * *
-     * Required. Password for the PostgreSQL connection.
+     * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -1038,10 +1042,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Password for the PostgreSQL connection.
+     * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The password to set. * @return This builder for chaining. @@ -1059,10 +1064,11 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Password for the PostgreSQL connection.
+     * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1076,10 +1082,11 @@ public Builder clearPassword() { * * *
-     * Required. Password for the PostgreSQL connection.
+     * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for password to set. * @return This builder for chaining. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java index e337ec657f6c..2987feab2735 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java @@ -91,10 +91,11 @@ public interface PostgresqlProfileOrBuilder * * *
-   * Required. Password for the PostgreSQL connection.
+   * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -103,10 +104,11 @@ public interface PostgresqlProfileOrBuilder * * *
-   * Required. Password for the PostgreSQL connection.
+   * Optional. Password for the PostgreSQL connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequest.java new file mode 100644 index 000000000000..756231664e06 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequest.java @@ -0,0 +1,1056 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Request message for running a stream.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.RunStreamRequest} + */ +public final class RunStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.RunStreamRequest) + RunStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunStreamRequest.newBuilder() to construct. + private RunStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_RunStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.RunStreamRequest.class, + com.google.cloud.datastream.v1.RunStreamRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the stream resource to start, in the format:
+   * projects/{project_id}/locations/{location}/streams/{stream_name}
+   * 
+ * + * + * 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. Name of the stream resource to start, in the format:
+   * projects/{project_id}/locations/{location}/streams/{stream_name}
+   * 
+ * + * + * 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; + } + } + + public static final int CDC_STRATEGY_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.CdcStrategy cdcStrategy_; + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cdcStrategy field is set. + */ + @java.lang.Override + public boolean hasCdcStrategy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cdcStrategy. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategy getCdcStrategy() { + return cdcStrategy_ == null + ? com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance() + : cdcStrategy_; + } + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.CdcStrategyOrBuilder getCdcStrategyOrBuilder() { + return cdcStrategy_ == null + ? com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance() + : cdcStrategy_; + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Optional. Update the stream without validating it.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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, getCdcStrategy()); + } + if (force_ != false) { + output.writeBool(3, force_); + } + 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, getCdcStrategy()); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.datastream.v1.RunStreamRequest)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.RunStreamRequest other = + (com.google.cloud.datastream.v1.RunStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCdcStrategy() != other.hasCdcStrategy()) return false; + if (hasCdcStrategy()) { + if (!getCdcStrategy().equals(other.getCdcStrategy())) return false; + } + if (getForce() != other.getForce()) 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 (hasCdcStrategy()) { + hash = (37 * hash) + CDC_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getCdcStrategy().hashCode(); + } + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.RunStreamRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest 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.datastream.v1.RunStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest 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.datastream.v1.RunStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest 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.datastream.v1.RunStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest 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.datastream.v1.RunStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest 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.datastream.v1.RunStreamRequest 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 running a stream.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.RunStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.RunStreamRequest) + com.google.cloud.datastream.v1.RunStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_RunStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.RunStreamRequest.class, + com.google.cloud.datastream.v1.RunStreamRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.RunStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCdcStrategyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + cdcStrategy_ = null; + if (cdcStrategyBuilder_ != null) { + cdcStrategyBuilder_.dispose(); + cdcStrategyBuilder_ = null; + } + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_RunStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.RunStreamRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.RunStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.RunStreamRequest build() { + com.google.cloud.datastream.v1.RunStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.RunStreamRequest buildPartial() { + com.google.cloud.datastream.v1.RunStreamRequest result = + new com.google.cloud.datastream.v1.RunStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.RunStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cdcStrategy_ = + cdcStrategyBuilder_ == null ? cdcStrategy_ : cdcStrategyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + 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.datastream.v1.RunStreamRequest) { + return mergeFrom((com.google.cloud.datastream.v1.RunStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.RunStreamRequest other) { + if (other == com.google.cloud.datastream.v1.RunStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCdcStrategy()) { + mergeCdcStrategy(other.getCdcStrategy()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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(getCdcStrategyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = 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 name_ = ""; + /** + * + * + *
+     * Required. Name of the stream resource to start, in the format:
+     * projects/{project_id}/locations/{location}/streams/{stream_name}
+     * 
+ * + * + * 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. Name of the stream resource to start, in the format:
+     * projects/{project_id}/locations/{location}/streams/{stream_name}
+     * 
+ * + * + * 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. Name of the stream resource to start, in the format:
+     * projects/{project_id}/locations/{location}/streams/{stream_name}
+     * 
+ * + * + * 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. Name of the stream resource to start, in the format:
+     * projects/{project_id}/locations/{location}/streams/{stream_name}
+     * 
+ * + * + * 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. Name of the stream resource to start, in the format:
+     * projects/{project_id}/locations/{location}/streams/{stream_name}
+     * 
+ * + * + * 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; + } + + private com.google.cloud.datastream.v1.CdcStrategy cdcStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy, + com.google.cloud.datastream.v1.CdcStrategy.Builder, + com.google.cloud.datastream.v1.CdcStrategyOrBuilder> + cdcStrategyBuilder_; + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cdcStrategy field is set. + */ + public boolean hasCdcStrategy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cdcStrategy. + */ + public com.google.cloud.datastream.v1.CdcStrategy getCdcStrategy() { + if (cdcStrategyBuilder_ == null) { + return cdcStrategy_ == null + ? com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance() + : cdcStrategy_; + } else { + return cdcStrategyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCdcStrategy(com.google.cloud.datastream.v1.CdcStrategy value) { + if (cdcStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcStrategy_ = value; + } else { + cdcStrategyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCdcStrategy( + com.google.cloud.datastream.v1.CdcStrategy.Builder builderForValue) { + if (cdcStrategyBuilder_ == null) { + cdcStrategy_ = builderForValue.build(); + } else { + cdcStrategyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCdcStrategy(com.google.cloud.datastream.v1.CdcStrategy value) { + if (cdcStrategyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && cdcStrategy_ != null + && cdcStrategy_ != com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance()) { + getCdcStrategyBuilder().mergeFrom(value); + } else { + cdcStrategy_ = value; + } + } else { + cdcStrategyBuilder_.mergeFrom(value); + } + if (cdcStrategy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCdcStrategy() { + bitField0_ = (bitField0_ & ~0x00000002); + cdcStrategy_ = null; + if (cdcStrategyBuilder_ != null) { + cdcStrategyBuilder_.dispose(); + cdcStrategyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.CdcStrategy.Builder getCdcStrategyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCdcStrategyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.CdcStrategyOrBuilder getCdcStrategyOrBuilder() { + if (cdcStrategyBuilder_ != null) { + return cdcStrategyBuilder_.getMessageOrBuilder(); + } else { + return cdcStrategy_ == null + ? com.google.cloud.datastream.v1.CdcStrategy.getDefaultInstance() + : cdcStrategy_; + } + } + /** + * + * + *
+     * Optional. The CDC strategy of the stream. If not set, the system's default
+     * value will be used.
+     * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy, + com.google.cloud.datastream.v1.CdcStrategy.Builder, + com.google.cloud.datastream.v1.CdcStrategyOrBuilder> + getCdcStrategyFieldBuilder() { + if (cdcStrategyBuilder_ == null) { + cdcStrategyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.CdcStrategy, + com.google.cloud.datastream.v1.CdcStrategy.Builder, + com.google.cloud.datastream.v1.CdcStrategyOrBuilder>( + getCdcStrategy(), getParentForChildren(), isClean()); + cdcStrategy_ = null; + } + return cdcStrategyBuilder_; + } + + private boolean force_; + /** + * + * + *
+     * Optional. Update the stream without validating it.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. Update the stream without validating it.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Update the stream without validating it.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = 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.datastream.v1.RunStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.RunStreamRequest) + private static final com.google.cloud.datastream.v1.RunStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.RunStreamRequest(); + } + + public static com.google.cloud.datastream.v1.RunStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunStreamRequest 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.datastream.v1.RunStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequestOrBuilder.java new file mode 100644 index 000000000000..cd7b2a4d0cae --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RunStreamRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface RunStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.RunStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the stream resource to start, in the format:
+   * projects/{project_id}/locations/{location}/streams/{stream_name}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the stream resource to start, in the format:
+   * projects/{project_id}/locations/{location}/streams/{stream_name}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cdcStrategy field is set. + */ + boolean hasCdcStrategy(); + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cdcStrategy. + */ + com.google.cloud.datastream.v1.CdcStrategy getCdcStrategy(); + /** + * + * + *
+   * Optional. The CDC strategy of the stream. If not set, the system's default
+   * value will be used.
+   * 
+ * + * + * .google.cloud.datastream.v1.CdcStrategy cdc_strategy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.CdcStrategyOrBuilder getCdcStrategyOrBuilder(); + + /** + * + * + *
+   * Optional. Update the stream without validating it.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index a7b2622e09f8..28b8855798a5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -75,6 +75,7 @@ public enum SourceStreamConfigCase ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), POSTGRESQL_SOURCE_CONFIG(102), + SQL_SERVER_SOURCE_CONFIG(103), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; @@ -99,6 +100,8 @@ public static SourceStreamConfigCase forNumber(int value) { return MYSQL_SOURCE_CONFIG; case 102: return POSTGRESQL_SOURCE_CONFIG; + case 103: + return SQL_SERVER_SOURCE_CONFIG; case 0: return SOURCESTREAMCONFIG_NOT_SET; default: @@ -327,6 +330,58 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSource return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } + public static final int SQL_SERVER_SOURCE_CONFIG_FIELD_NUMBER = 103; + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * @return Whether the sqlServerSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSqlServerSourceConfig() { + return sourceStreamConfigCase_ == 103; + } + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * @return The sqlServerSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfig getSqlServerSourceConfig() { + if (sourceStreamConfigCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder + getSqlServerSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -356,6 +411,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 103) { + output.writeMessage( + 103, (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_); + } getUnknownFields().writeTo(output); } @@ -383,6 +442,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -411,6 +475,9 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getPostgresqlSourceConfig().equals(other.getPostgresqlSourceConfig())) return false; break; + case 103: + if (!getSqlServerSourceConfig().equals(other.getSqlServerSourceConfig())) return false; + break; case 0: default: } @@ -440,6 +507,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlSourceConfig().hashCode(); break; + case 103: + hash = (37 * hash) + SQL_SERVER_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerSourceConfig().hashCode(); + break; case 0: default: } @@ -592,6 +663,9 @@ public Builder clear() { if (postgresqlSourceConfigBuilder_ != null) { postgresqlSourceConfigBuilder_.clear(); } + if (sqlServerSourceConfigBuilder_ != null) { + sqlServerSourceConfigBuilder_.clear(); + } sourceStreamConfigCase_ = 0; sourceStreamConfig_ = null; return this; @@ -648,6 +722,9 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig resu if (sourceStreamConfigCase_ == 102 && postgresqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = postgresqlSourceConfigBuilder_.build(); } + if (sourceStreamConfigCase_ == 103 && sqlServerSourceConfigBuilder_ != null) { + result.sourceStreamConfig_ = sqlServerSourceConfigBuilder_.build(); + } } @java.lang.Override @@ -716,6 +793,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); break; } + case SQL_SERVER_SOURCE_CONFIG: + { + mergeSqlServerSourceConfig(other.getSqlServerSourceConfig()); + break; + } case SOURCESTREAMCONFIG_NOT_SET: { break; @@ -774,6 +856,13 @@ public Builder mergeFrom( sourceStreamConfigCase_ = 102; break; } // case 818 + case 826: + { + input.readMessage( + getSqlServerSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 103; + break; + } // case 826 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1578,6 +1667,230 @@ public Builder clearPostgresqlSourceConfig() { return postgresqlSourceConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSourceConfig, + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder> + sqlServerSourceConfigBuilder_; + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * + * @return Whether the sqlServerSourceConfig field is set. + */ + @java.lang.Override + public boolean hasSqlServerSourceConfig() { + return sourceStreamConfigCase_ == 103; + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * + * @return The sqlServerSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfig getSqlServerSourceConfig() { + if (sqlServerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 103) { + return sqlServerSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + public Builder setSqlServerSourceConfig( + com.google.cloud.datastream.v1.SqlServerSourceConfig value) { + if (sqlServerSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + sqlServerSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + public Builder setSqlServerSourceConfig( + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder builderForValue) { + if (sqlServerSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + sqlServerSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + public Builder mergeSqlServerSourceConfig( + com.google.cloud.datastream.v1.SqlServerSourceConfig value) { + if (sqlServerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 103 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SqlServerSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 103) { + sqlServerSourceConfigBuilder_.mergeFrom(value); + } else { + sqlServerSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 103; + return this; + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + public Builder clearSqlServerSourceConfig() { + if (sqlServerSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 103) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 103) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + sqlServerSourceConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + public com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder + getSqlServerSourceConfigBuilder() { + return getSqlServerSourceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder + getSqlServerSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 103) && (sqlServerSourceConfigBuilder_ != null)) { + return sqlServerSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 103) { + return (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSourceConfig, + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder> + getSqlServerSourceConfigFieldBuilder() { + if (sqlServerSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 103)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + sqlServerSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSourceConfig, + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder, + com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 103; + onChanged(); + return sqlServerSourceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index e86d1a631457..ce814037f40a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -161,5 +161,40 @@ public interface SourceConfigOrBuilder com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder(); + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * @return Whether the sqlServerSourceConfig field is set. + */ + boolean hasSqlServerSourceConfig(); + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + * + * @return The sqlServerSourceConfig. + */ + com.google.cloud.datastream.v1.SqlServerSourceConfig getSqlServerSourceConfig(); + /** + * + * + *
+   * SQLServer data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerSourceConfig sql_server_source_config = 103; + */ + com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder getSqlServerSourceConfigOrBuilder(); + com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index be037b8900f2..b9cb1fe7f47c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -2694,6 +2694,887 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface SqlServerObjectIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + } + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier} + */ + public static final class SqlServerObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + SqlServerObjectIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerObjectIdentifier.newBuilder() to construct. + private SqlServerObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerObjectIdentifier() { + schema_ = ""; + table_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerObjectIdentifier(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = 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(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); + } + 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(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); + } + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier 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; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schema_ = ""; + table_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_SqlServerObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.table_ = table_; + } + } + + @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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + 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: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + table_ = 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 schema_ = ""; + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object table_ = ""; + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .SqlServerObjectIdentifier + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier(); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerObjectIdentifier 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.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int sourceIdentifierCase_ = 0; @SuppressWarnings("serial") @@ -2706,6 +3587,7 @@ public enum SourceIdentifierCase ORACLE_IDENTIFIER(1), MYSQL_IDENTIFIER(2), POSTGRESQL_IDENTIFIER(3), + SQL_SERVER_IDENTIFIER(4), SOURCEIDENTIFIER_NOT_SET(0); private final int value; @@ -2730,6 +3612,8 @@ public static SourceIdentifierCase forNumber(int value) { return MYSQL_IDENTIFIER; case 3: return POSTGRESQL_IDENTIFIER; + case 4: + return SQL_SERVER_IDENTIFIER; case 0: return SOURCEIDENTIFIER_NOT_SET; default: @@ -2935,6 +3819,69 @@ public boolean hasPostgresqlIdentifier() { .getDefaultInstance(); } + public static final int SQL_SERVER_IDENTIFIER_FIELD_NUMBER = 4; + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return Whether the sqlServerIdentifier field is set. + */ + @java.lang.Override + public boolean hasSqlServerIdentifier() { + return sourceIdentifierCase_ == 4; + } + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return The sqlServerIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getSqlServerIdentifier() { + if (sourceIdentifierCase_ == 4) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifierOrBuilder + getSqlServerIdentifierOrBuilder() { + if (sourceIdentifierCase_ == 4) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2967,6 +3914,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_); + } getUnknownFields().writeTo(output); } @@ -2997,6 +3950,13 @@ public int getSerializedSize() { (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3024,6 +3984,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getPostgresqlIdentifier().equals(other.getPostgresqlIdentifier())) return false; break; + case 4: + if (!getSqlServerIdentifier().equals(other.getSqlServerIdentifier())) return false; + break; case 0: default: } @@ -3051,6 +4014,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlIdentifier().hashCode(); break; + case 4: + hash = (37 * hash) + SQL_SERVER_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerIdentifier().hashCode(); + break; case 0: default: } @@ -3203,6 +4170,9 @@ public Builder clear() { if (postgresqlIdentifierBuilder_ != null) { postgresqlIdentifierBuilder_.clear(); } + if (sqlServerIdentifierBuilder_ != null) { + sqlServerIdentifierBuilder_.clear(); + } sourceIdentifierCase_ = 0; sourceIdentifier_ = null; return this; @@ -3256,6 +4226,9 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdent if (sourceIdentifierCase_ == 3 && postgresqlIdentifierBuilder_ != null) { result.sourceIdentifier_ = postgresqlIdentifierBuilder_.build(); } + if (sourceIdentifierCase_ == 4 && sqlServerIdentifierBuilder_ != null) { + result.sourceIdentifier_ = sqlServerIdentifierBuilder_.build(); + } } @java.lang.Override @@ -3320,6 +4293,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier o mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); break; } + case SQL_SERVER_IDENTIFIER: + { + mergeSqlServerIdentifier(other.getSqlServerIdentifier()); + break; + } case SOURCEIDENTIFIER_NOT_SET: { break; @@ -3371,6 +4349,13 @@ public Builder mergeFrom( sourceIdentifierCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + getSqlServerIdentifierFieldBuilder().getBuilder(), extensionRegistry); + sourceIdentifierCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4149,6 +5134,256 @@ public Builder clearPostgresqlIdentifier() { return postgresqlIdentifierBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .SqlServerObjectIdentifierOrBuilder> + sqlServerIdentifierBuilder_; + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return Whether the sqlServerIdentifier field is set. + */ + @java.lang.Override + public boolean hasSqlServerIdentifier() { + return sourceIdentifierCase_ == 4; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return The sqlServerIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getSqlServerIdentifier() { + if (sqlServerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 4) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 4) { + return sqlServerIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + public Builder setSqlServerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier value) { + if (sqlServerIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + sqlServerIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 4; + return this; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + public Builder setSqlServerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.Builder + builderForValue) { + if (sqlServerIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + sqlServerIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 4; + return this; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + public Builder mergeSqlServerIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier value) { + if (sqlServerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 4 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .SqlServerObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 4) { + sqlServerIdentifierBuilder_.mergeFrom(value); + } else { + sqlServerIdentifierBuilder_.setMessage(value); + } + } + sourceIdentifierCase_ = 4; + return this; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + public Builder clearSqlServerIdentifier() { + if (sqlServerIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 4) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 4) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + sqlServerIdentifierBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.Builder + getSqlServerIdentifierBuilder() { + return getSqlServerIdentifierFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifierOrBuilder + getSqlServerIdentifierOrBuilder() { + if ((sourceIdentifierCase_ == 4) && (sqlServerIdentifierBuilder_ != null)) { + return sqlServerIdentifierBuilder_.getMessageOrBuilder(); + } else { + if (sourceIdentifierCase_ == 4) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * SQLServer data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .SqlServerObjectIdentifierOrBuilder> + getSqlServerIdentifierFieldBuilder() { + if (sqlServerIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 4)) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .getDefaultInstance(); + } + sqlServerIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .SqlServerObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier) + sourceIdentifier_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 4; + onChanged(); + return sqlServerIdentifierBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java index 2f9311de437b..3d347f0b58c9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -152,6 +152,49 @@ public interface SourceObjectIdentifierOrBuilder com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder(); + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return Whether the sqlServerIdentifier field is set. + */ + boolean hasSqlServerIdentifier(); + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + * + * @return The sqlServerIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier + getSqlServerIdentifier(); + /** + * + * + *
+   * SQLServer data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifier sql_server_identifier = 4; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.SqlServerObjectIdentifierOrBuilder + getSqlServerIdentifierOrBuilder(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java new file mode 100644 index 000000000000..66d53f249a2f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTables.java @@ -0,0 +1,432 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Configuration to use Change Tables CDC read method.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerChangeTables} + */ +public final class SqlServerChangeTables extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerChangeTables) + SqlServerChangeTablesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerChangeTables.newBuilder() to construct. + private SqlServerChangeTables(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerChangeTables() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerChangeTables(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerChangeTables.class, + com.google.cloud.datastream.v1.SqlServerChangeTables.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.datastream.v1.SqlServerChangeTables)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerChangeTables other = + (com.google.cloud.datastream.v1.SqlServerChangeTables) 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.datastream.v1.SqlServerChangeTables parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables 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 to use Change Tables CDC read method.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerChangeTables} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerChangeTables) + com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerChangeTables.class, + com.google.cloud.datastream.v1.SqlServerChangeTables.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerChangeTables.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerChangeTables_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables build() { + com.google.cloud.datastream.v1.SqlServerChangeTables result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables buildPartial() { + com.google.cloud.datastream.v1.SqlServerChangeTables result = + new com.google.cloud.datastream.v1.SqlServerChangeTables(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.datastream.v1.SqlServerChangeTables) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerChangeTables) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerChangeTables other) { + if (other == com.google.cloud.datastream.v1.SqlServerChangeTables.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.datastream.v1.SqlServerChangeTables) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerChangeTables) + private static final com.google.cloud.datastream.v1.SqlServerChangeTables DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerChangeTables(); + } + + public static com.google.cloud.datastream.v1.SqlServerChangeTables getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerChangeTables 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.datastream.v1.SqlServerChangeTables getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java new file mode 100644 index 000000000000..be89d5ca1ce4 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerChangeTablesOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerChangeTablesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerChangeTables) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java new file mode 100644 index 000000000000..a6befd80d69d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumn.java @@ -0,0 +1,1364 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer Column.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerColumn} + */ +public final class SqlServerColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerColumn) + SqlServerColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerColumn.newBuilder() to construct. + private SqlServerColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerColumn() { + column_ = ""; + dataType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerColumn(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerColumn.class, + com.google.cloud.datastream.v1.SqlServerColumn.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object column_ = ""; + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataType_ = ""; + /** + * + * + *
+   * The SQLServer data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + @java.lang.Override + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + 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(); + dataType_ = s; + return s; + } + } + /** + * + * + *
+   * The SQLServer data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private int length_ = 0; + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 4; + private int precision_ = 0; + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 5; + private int scale_ = 0; + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 6; + private boolean primaryKey_ = false; + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 6; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + + public static final int NULLABLE_FIELD_NUMBER = 7; + private boolean nullable_ = false; + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 7; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int ORDINAL_POSITION_FIELD_NUMBER = 8; + private int ordinalPosition_ = 0; + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 8; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + + 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(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (length_ != 0) { + output.writeInt32(3, length_); + } + if (precision_ != 0) { + output.writeInt32(4, precision_); + } + if (scale_ != 0) { + output.writeInt32(5, scale_); + } + if (primaryKey_ != false) { + output.writeBool(6, primaryKey_); + } + if (nullable_ != false) { + output.writeBool(7, nullable_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(8, ordinalPosition_); + } + 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(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + } + if (primaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, primaryKey_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, nullable_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, ordinalPosition_); + } + 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.datastream.v1.SqlServerColumn)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerColumn other = + (com.google.cloud.datastream.v1.SqlServerColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) 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) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getOrdinalPosition(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerColumn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn 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.datastream.v1.SqlServerColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn 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.datastream.v1.SqlServerColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn 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.datastream.v1.SqlServerColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn 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.datastream.v1.SqlServerColumn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn 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.datastream.v1.SqlServerColumn 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; + } + /** + * + * + *
+   * SQLServer Column.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerColumn) + com.google.cloud.datastream.v1.SqlServerColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerColumn.class, + com.google.cloud.datastream.v1.SqlServerColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerColumn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + column_ = ""; + dataType_ = ""; + length_ = 0; + precision_ = 0; + scale_ = 0; + primaryKey_ = false; + nullable_ = false; + ordinalPosition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerColumn build() { + com.google.cloud.datastream.v1.SqlServerColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerColumn buildPartial() { + com.google.cloud.datastream.v1.SqlServerColumn result = + new com.google.cloud.datastream.v1.SqlServerColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerColumn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataType_ = dataType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.length_ = length_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.precision_ = precision_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scale_ = scale_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.primaryKey_ = primaryKey_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.nullable_ = nullable_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ordinalPosition_ = ordinalPosition_; + } + } + + @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.datastream.v1.SqlServerColumn) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerColumn other) { + if (other == com.google.cloud.datastream.v1.SqlServerColumn.getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + 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: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 column_ = ""; + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + column_ = getDefaultInstance().getColumn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dataType_ = ""; + /** + * + * + *
+     * The SQLServer data type.
+     * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQLServer data type.
+     * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQLServer data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQLServer data type.
+     * 
+ * + * string data_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + dataType_ = getDefaultInstance().getDataType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQLServer data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The bytes for dataType to set. + * @return This builder for chaining. + */ + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int length_; + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(int value) { + + length_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000004); + length_ = 0; + onChanged(); + return this; + } + + private int precision_; + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrecision() { + bitField0_ = (bitField0_ & ~0x00000008); + precision_ = 0; + onChanged(); + return this; + } + + private int scale_; + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + bitField0_ = (bitField0_ & ~0x00000010); + scale_ = 0; + onChanged(); + return this; + } + + private boolean primaryKey_; + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 6; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 6; + * + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey(boolean value) { + + primaryKey_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + bitField0_ = (bitField0_ & ~0x00000020); + primaryKey_ = false; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 7; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 7; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 7; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + bitField0_ = (bitField0_ & ~0x00000040); + nullable_ = false; + onChanged(); + return this; + } + + private int ordinalPosition_; + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 8; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 8; + * + * @param value The ordinalPosition to set. + * @return This builder for chaining. + */ + public Builder setOrdinalPosition(int value) { + + ordinalPosition_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 8; + * + * @return This builder for chaining. + */ + public Builder clearOrdinalPosition() { + bitField0_ = (bitField0_ & ~0x00000080); + ordinalPosition_ = 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.datastream.v1.SqlServerColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerColumn) + private static final com.google.cloud.datastream.v1.SqlServerColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerColumn(); + } + + public static com.google.cloud.datastream.v1.SqlServerColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerColumn 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.datastream.v1.SqlServerColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java new file mode 100644 index 000000000000..1cba4747ffff --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerColumnOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + java.lang.String getColumn(); + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+   * The SQLServer data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + java.lang.String getDataType(); + /** + * + * + *
+   * The SQLServer data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + int getLength(); + + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + int getPrecision(); + + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + int getScale(); + + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 6; + * + * @return The primaryKey. + */ + boolean getPrimaryKey(); + + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 7; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 8; + * + * @return The ordinalPosition. + */ + int getOrdinalPosition(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPosition.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPosition.java new file mode 100644 index 000000000000..beaec72de7b0 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPosition.java @@ -0,0 +1,625 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQL Server LSN position
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerLsnPosition} + */ +public final class SqlServerLsnPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerLsnPosition) + SqlServerLsnPositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerLsnPosition.newBuilder() to construct. + private SqlServerLsnPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerLsnPosition() { + lsn_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerLsnPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerLsnPosition.class, + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder.class); + } + + public static final int LSN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object lsn_ = ""; + /** + * + * + *
+   * Required. Log sequence number (LSN) from where Logs will be read
+   * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lsn. + */ + @java.lang.Override + public java.lang.String getLsn() { + java.lang.Object ref = lsn_; + 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(); + lsn_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Log sequence number (LSN) from where Logs will be read
+   * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lsn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLsnBytes() { + java.lang.Object ref = lsn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lsn_ = 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(lsn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lsn_); + } + 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(lsn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lsn_); + } + 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.datastream.v1.SqlServerLsnPosition)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerLsnPosition other = + (com.google.cloud.datastream.v1.SqlServerLsnPosition) obj; + + if (!getLsn().equals(other.getLsn())) 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) + LSN_FIELD_NUMBER; + hash = (53 * hash) + getLsn().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition 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; + } + /** + * + * + *
+   * SQL Server LSN position
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerLsnPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerLsnPosition) + com.google.cloud.datastream.v1.SqlServerLsnPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerLsnPosition.class, + com.google.cloud.datastream.v1.SqlServerLsnPosition.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerLsnPosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lsn_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPosition getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPosition build() { + com.google.cloud.datastream.v1.SqlServerLsnPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerLsnPosition buildPartial() { + com.google.cloud.datastream.v1.SqlServerLsnPosition result = + new com.google.cloud.datastream.v1.SqlServerLsnPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerLsnPosition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lsn_ = lsn_; + } + } + + @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.datastream.v1.SqlServerLsnPosition) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerLsnPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerLsnPosition other) { + if (other == com.google.cloud.datastream.v1.SqlServerLsnPosition.getDefaultInstance()) + return this; + if (!other.getLsn().isEmpty()) { + lsn_ = other.lsn_; + 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: + { + lsn_ = 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 lsn_ = ""; + /** + * + * + *
+     * Required. Log sequence number (LSN) from where Logs will be read
+     * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lsn. + */ + public java.lang.String getLsn() { + java.lang.Object ref = lsn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lsn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Log sequence number (LSN) from where Logs will be read
+     * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lsn. + */ + public com.google.protobuf.ByteString getLsnBytes() { + java.lang.Object ref = lsn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lsn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Log sequence number (LSN) from where Logs will be read
+     * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The lsn to set. + * @return This builder for chaining. + */ + public Builder setLsn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lsn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Log sequence number (LSN) from where Logs will be read
+     * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLsn() { + lsn_ = getDefaultInstance().getLsn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Log sequence number (LSN) from where Logs will be read
+     * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for lsn to set. + * @return This builder for chaining. + */ + public Builder setLsnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lsn_ = 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.datastream.v1.SqlServerLsnPosition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerLsnPosition) + private static final com.google.cloud.datastream.v1.SqlServerLsnPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerLsnPosition(); + } + + public static com.google.cloud.datastream.v1.SqlServerLsnPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerLsnPosition 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.datastream.v1.SqlServerLsnPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPositionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPositionOrBuilder.java new file mode 100644 index 000000000000..3926e5642cab --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerLsnPositionOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerLsnPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerLsnPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Log sequence number (LSN) from where Logs will be read
+   * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lsn. + */ + java.lang.String getLsn(); + /** + * + * + *
+   * Required. Log sequence number (LSN) from where Logs will be read
+   * 
+ * + * string lsn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for lsn. + */ + com.google.protobuf.ByteString getLsnBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java new file mode 100644 index 000000000000..0698ff042137 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfile.java @@ -0,0 +1,1273 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer database profile.
+ * Next ID: 8.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerProfile} + */ +public final class SqlServerProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerProfile) + SqlServerProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerProfile.newBuilder() to construct. + private SqlServerProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerProfile() { + hostname_ = ""; + username_ = ""; + password_ = ""; + database_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerProfile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerProfile.class, + com.google.cloud.datastream.v1.SqlServerProfile.Builder.class); + } + + public static final int HOSTNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
+   * Required. Hostname for the SQLServer connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Hostname for the SQLServer connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_ = 0; + /** + * + * + *
+   * Port for the SQLServer connection, default value is 1433.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int USERNAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Required. Username for the SQLServer connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Username for the SQLServer connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + /** + * + * + *
+   * Optional. Password for the SQLServer connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + 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(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Password for the SQLServer connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + /** + * + * + *
+   * Required. Database for the SQLServer connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + 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(); + database_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Database for the SQLServer connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = 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(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); + } + 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(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); + } + 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.datastream.v1.SqlServerProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerProfile other = + (com.google.cloud.datastream.v1.SqlServerProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabase().equals(other.getDatabase())) 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) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile 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.datastream.v1.SqlServerProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile 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.datastream.v1.SqlServerProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile 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.datastream.v1.SqlServerProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile 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.datastream.v1.SqlServerProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile 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.datastream.v1.SqlServerProfile 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; + } + /** + * + * + *
+   * SQLServer database profile.
+   * Next ID: 8.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerProfile) + com.google.cloud.datastream.v1.SqlServerProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerProfile.class, + com.google.cloud.datastream.v1.SqlServerProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostname_ = ""; + port_ = 0; + username_ = ""; + password_ = ""; + database_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfile build() { + com.google.cloud.datastream.v1.SqlServerProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerProfile buildPartial() { + com.google.cloud.datastream.v1.SqlServerProfile result = + new com.google.cloud.datastream.v1.SqlServerProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + } + + @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.datastream.v1.SqlServerProfile) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerProfile other) { + if (other == com.google.cloud.datastream.v1.SqlServerProfile.getDefaultInstance()) + return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + 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: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + database_ = 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 hostname_ = ""; + /** + * + * + *
+     * Required. Hostname for the SQLServer connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the SQLServer connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the SQLServer connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the SQLServer connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the SQLServer connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Port for the SQLServer connection, default value is 1433.
+     * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Port for the SQLServer connection, default value is 1433.
+     * 
+ * + * int32 port = 2; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Port for the SQLServer connection, default value is 1433.
+     * 
+ * + * int32 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. Username for the SQLServer connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Username for the SQLServer connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Username for the SQLServer connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the SQLServer connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the SQLServer connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Optional. Password for the SQLServer connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Password for the SQLServer connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Password for the SQLServer connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Password for the SQLServer connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Password for the SQLServer connection. Mutually exclusive with
+     * the `secret_manager_stored_password` field.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + /** + * + * + *
+     * Required. Database for the SQLServer connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Database for the SQLServer connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Database for the SQLServer connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database for the SQLServer connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database for the SQLServer connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = 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.cloud.datastream.v1.SqlServerProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerProfile) + private static final com.google.cloud.datastream.v1.SqlServerProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerProfile(); + } + + public static com.google.cloud.datastream.v1.SqlServerProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerProfile 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.datastream.v1.SqlServerProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.java new file mode 100644 index 000000000000..85895acc1ec5 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerProfileOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Hostname for the SQLServer connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Required. Hostname for the SQLServer connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Port for the SQLServer connection, default value is 1433.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Required. Username for the SQLServer connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. Username for the SQLServer connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Optional. Password for the SQLServer connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Optional. Password for the SQLServer connection. Mutually exclusive with
+   * the `secret_manager_stored_password` field.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Required. Database for the SQLServer connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + /** + * + * + *
+   * Required. Database for the SQLServer connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbms.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbms.java new file mode 100644 index 000000000000..335f675f1d52 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbms.java @@ -0,0 +1,936 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer database structure.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerRdbms} + */ +public final class SqlServerRdbms extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerRdbms) + SqlServerRdbmsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerRdbms.newBuilder() to construct. + private SqlServerRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerRdbms() { + schemas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerRdbms(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerRdbms.class, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder.class); + } + + public static final int SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List schemas_; + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasList() { + return schemas_; + } + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + @java.lang.Override + public java.util.List + getSchemasOrBuilderList() { + return schemas_; + } + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + @java.lang.Override + public int getSchemasCount() { + return schemas_.size(); + } + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSchema getSchemas(int index) { + return schemas_.get(index); + } + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder getSchemasOrBuilder(int index) { + return schemas_.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 < schemas_.size(); i++) { + output.writeMessage(1, schemas_.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 < schemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.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.datastream.v1.SqlServerRdbms)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerRdbms other = + (com.google.cloud.datastream.v1.SqlServerRdbms) obj; + + if (!getSchemasList().equals(other.getSchemasList())) 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 (getSchemasCount() > 0) { + hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSchemasList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms 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; + } + /** + * + * + *
+   * SQLServer database structure.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerRdbms} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerRdbms) + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerRdbms.class, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerRdbms.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + } else { + schemas_ = null; + schemasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms build() { + com.google.cloud.datastream.v1.SqlServerRdbms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms buildPartial() { + com.google.cloud.datastream.v1.SqlServerRdbms result = + new com.google.cloud.datastream.v1.SqlServerRdbms(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SqlServerRdbms result) { + if (schemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schemas_ = schemas_; + } else { + result.schemas_ = schemasBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerRdbms 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.datastream.v1.SqlServerRdbms) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerRdbms) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerRdbms other) { + if (other == com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) return this; + if (schemasBuilder_ == null) { + if (!other.schemas_.isEmpty()) { + if (schemas_.isEmpty()) { + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemasIsMutable(); + schemas_.addAll(other.schemas_); + } + onChanged(); + } + } else { + if (!other.schemas_.isEmpty()) { + if (schemasBuilder_.isEmpty()) { + schemasBuilder_.dispose(); + schemasBuilder_ = null; + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemasFieldBuilder() + : null; + } else { + schemasBuilder_.addAllMessages(other.schemas_); + } + } + } + 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.datastream.v1.SqlServerSchema m = + input.readMessage( + com.google.cloud.datastream.v1.SqlServerSchema.parser(), extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.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 schemas_ = + java.util.Collections.emptyList(); + + private void ensureSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schemas_ = + new java.util.ArrayList(schemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSchema, + com.google.cloud.datastream.v1.SqlServerSchema.Builder, + com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder> + schemasBuilder_; + + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public java.util.List getSchemasList() { + if (schemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemas_); + } else { + return schemasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public int getSchemasCount() { + if (schemasBuilder_ == null) { + return schemas_.size(); + } else { + return schemasBuilder_.getCount(); + } + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public com.google.cloud.datastream.v1.SqlServerSchema getSchemas(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder setSchemas(int index, com.google.cloud.datastream.v1.SqlServerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.set(index, value); + onChanged(); + } else { + schemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder setSchemas( + int index, com.google.cloud.datastream.v1.SqlServerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.set(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder addSchemas(com.google.cloud.datastream.v1.SqlServerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(value); + onChanged(); + } else { + schemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder addSchemas(int index, com.google.cloud.datastream.v1.SqlServerSchema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(index, value); + onChanged(); + } else { + schemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder addSchemas( + com.google.cloud.datastream.v1.SqlServerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder addSchemas( + int index, com.google.cloud.datastream.v1.SqlServerSchema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder addAllSchemas( + java.lang.Iterable values) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + onChanged(); + } else { + schemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder clearSchemas() { + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public Builder removeSchemas(int index) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.remove(index); + onChanged(); + } else { + schemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public com.google.cloud.datastream.v1.SqlServerSchema.Builder getSchemasBuilder(int index) { + return getSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder getSchemasOrBuilder(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public java.util.List + getSchemasOrBuilderList() { + if (schemasBuilder_ != null) { + return schemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemas_); + } + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public com.google.cloud.datastream.v1.SqlServerSchema.Builder addSchemasBuilder() { + return getSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SqlServerSchema.getDefaultInstance()); + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public com.google.cloud.datastream.v1.SqlServerSchema.Builder addSchemasBuilder(int index) { + return getSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SqlServerSchema.getDefaultInstance()); + } + /** + * + * + *
+     * SQLServer schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + public java.util.List + getSchemasBuilderList() { + return getSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSchema, + com.google.cloud.datastream.v1.SqlServerSchema.Builder, + com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder> + getSchemasFieldBuilder() { + if (schemasBuilder_ == null) { + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerSchema, + com.google.cloud.datastream.v1.SqlServerSchema.Builder, + com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemas_ = null; + } + return schemasBuilder_; + } + + @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.datastream.v1.SqlServerRdbms) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerRdbms) + private static final com.google.cloud.datastream.v1.SqlServerRdbms DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerRdbms(); + } + + public static com.google.cloud.datastream.v1.SqlServerRdbms getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerRdbms 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.datastream.v1.SqlServerRdbms getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbmsOrBuilder.java new file mode 100644 index 000000000000..cae15526bb0c --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerRdbmsOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerRdbmsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerRdbms) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + java.util.List getSchemasList(); + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + com.google.cloud.datastream.v1.SqlServerSchema getSchemas(int index); + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + int getSchemasCount(); + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + java.util.List + getSchemasOrBuilderList(); + /** + * + * + *
+   * SQLServer schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerSchema schemas = 1; + */ + com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder getSchemasOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java new file mode 100644 index 000000000000..942fac8e3d21 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchema.java @@ -0,0 +1,1117 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer schema.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSchema} + */ +public final class SqlServerSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSchema) + SqlServerSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerSchema.newBuilder() to construct. + private SqlServerSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerSchema() { + schema_ = ""; + tables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerSchema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSchema.class, + com.google.cloud.datastream.v1.SqlServerSchema.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List tables_; + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + @java.lang.Override + public java.util.List getTablesList() { + return tables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + @java.lang.Override + public java.util.List + getTablesOrBuilderList() { + return tables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + @java.lang.Override + public int getTablesCount() { + return tables_.size(); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTable getTables(int index) { + return tables_.get(index); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTableOrBuilder getTablesOrBuilder(int index) { + return tables_.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(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + for (int i = 0; i < tables_.size(); i++) { + output.writeMessage(2, tables_.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(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + for (int i = 0; i < tables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tables_.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.datastream.v1.SqlServerSchema)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSchema other = + (com.google.cloud.datastream.v1.SqlServerSchema) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTablesList().equals(other.getTablesList())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + if (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSchema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema 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.datastream.v1.SqlServerSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema 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.datastream.v1.SqlServerSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema 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.datastream.v1.SqlServerSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema 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.datastream.v1.SqlServerSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema 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.datastream.v1.SqlServerSchema 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; + } + /** + * + * + *
+   * SQLServer schema.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSchema) + com.google.cloud.datastream.v1.SqlServerSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSchema.class, + com.google.cloud.datastream.v1.SqlServerSchema.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schema_ = ""; + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + } else { + tables_ = null; + tablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSchema getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSchema build() { + com.google.cloud.datastream.v1.SqlServerSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSchema buildPartial() { + com.google.cloud.datastream.v1.SqlServerSchema result = + new com.google.cloud.datastream.v1.SqlServerSchema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SqlServerSchema result) { + if (tablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + tables_ = java.util.Collections.unmodifiableList(tables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tables_ = tables_; + } else { + result.tables_ = tablesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schema_; + } + } + + @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.datastream.v1.SqlServerSchema) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerSchema other) { + if (other == com.google.cloud.datastream.v1.SqlServerSchema.getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (tablesBuilder_ == null) { + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + } else { + if (!other.tables_.isEmpty()) { + if (tablesBuilder_.isEmpty()) { + tablesBuilder_.dispose(); + tablesBuilder_ = null; + tables_ = other.tables_; + bitField0_ = (bitField0_ & ~0x00000002); + tablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTablesFieldBuilder() + : null; + } else { + tablesBuilder_.addAllMessages(other.tables_); + } + } + } + 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: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SqlServerTable m = + input.readMessage( + com.google.cloud.datastream.v1.SqlServerTable.parser(), extensionRegistry); + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(m); + } else { + tablesBuilder_.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 java.lang.Object schema_ = ""; + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List tables_ = + java.util.Collections.emptyList(); + + private void ensureTablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tables_ = new java.util.ArrayList(tables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTable, + com.google.cloud.datastream.v1.SqlServerTable.Builder, + com.google.cloud.datastream.v1.SqlServerTableOrBuilder> + tablesBuilder_; + + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public java.util.List getTablesList() { + if (tablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tables_); + } else { + return tablesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public int getTablesCount() { + if (tablesBuilder_ == null) { + return tables_.size(); + } else { + return tablesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public com.google.cloud.datastream.v1.SqlServerTable getTables(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder setTables(int index, com.google.cloud.datastream.v1.SqlServerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.set(index, value); + onChanged(); + } else { + tablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder setTables( + int index, com.google.cloud.datastream.v1.SqlServerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder addTables(com.google.cloud.datastream.v1.SqlServerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(value); + onChanged(); + } else { + tablesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder addTables(int index, com.google.cloud.datastream.v1.SqlServerTable value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(index, value); + onChanged(); + } else { + tablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder addTables( + com.google.cloud.datastream.v1.SqlServerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder addTables( + int index, com.google.cloud.datastream.v1.SqlServerTable.Builder builderForValue) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder addAllTables( + java.lang.Iterable values) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tables_); + onChanged(); + } else { + tablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder clearTables() { + if (tablesBuilder_ == null) { + tables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public Builder removeTables(int index) { + if (tablesBuilder_ == null) { + ensureTablesIsMutable(); + tables_.remove(index); + onChanged(); + } else { + tablesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public com.google.cloud.datastream.v1.SqlServerTable.Builder getTablesBuilder(int index) { + return getTablesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public com.google.cloud.datastream.v1.SqlServerTableOrBuilder getTablesOrBuilder(int index) { + if (tablesBuilder_ == null) { + return tables_.get(index); + } else { + return tablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public java.util.List + getTablesOrBuilderList() { + if (tablesBuilder_ != null) { + return tablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tables_); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public com.google.cloud.datastream.v1.SqlServerTable.Builder addTablesBuilder() { + return getTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SqlServerTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public com.google.cloud.datastream.v1.SqlServerTable.Builder addTablesBuilder(int index) { + return getTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SqlServerTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + public java.util.List + getTablesBuilderList() { + return getTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTable, + com.google.cloud.datastream.v1.SqlServerTable.Builder, + com.google.cloud.datastream.v1.SqlServerTableOrBuilder> + getTablesFieldBuilder() { + if (tablesBuilder_ == null) { + tablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTable, + com.google.cloud.datastream.v1.SqlServerTable.Builder, + com.google.cloud.datastream.v1.SqlServerTableOrBuilder>( + tables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tables_ = null; + } + return tablesBuilder_; + } + + @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.datastream.v1.SqlServerSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSchema) + private static final com.google.cloud.datastream.v1.SqlServerSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerSchema(); + } + + public static com.google.cloud.datastream.v1.SqlServerSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerSchema 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.datastream.v1.SqlServerSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.java new file mode 100644 index 000000000000..ccc263b05987 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSchemaOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + java.util.List getTablesList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + com.google.cloud.datastream.v1.SqlServerTable getTables(int index); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + int getTablesCount(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + java.util.List + getTablesOrBuilderList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerTable tables = 2; + */ + com.google.cloud.datastream.v1.SqlServerTableOrBuilder getTablesOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java new file mode 100644 index 000000000000..9167b529de19 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfig.java @@ -0,0 +1,1861 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer data source configuration
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSourceConfig} + */ +public final class SqlServerSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerSourceConfig) + SqlServerSourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerSourceConfig.newBuilder() to construct. + private SqlServerSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerSourceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerSourceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSourceConfig.class, + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder.class); + } + + private int bitField0_; + private int cdcMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cdcMethod_; + + public enum CdcMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRANSACTION_LOGS(101), + CHANGE_TABLES(102), + CDCMETHOD_NOT_SET(0); + private final int value; + + private CdcMethodCase(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 CdcMethodCase valueOf(int value) { + return forNumber(value); + } + + public static CdcMethodCase forNumber(int value) { + switch (value) { + case 101: + return TRANSACTION_LOGS; + case 102: + return CHANGE_TABLES; + case 0: + return CDCMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.SqlServerRdbms includeObjects_; + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : includeObjects_; + } + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : includeObjects_; + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.SqlServerRdbms excludeObjects_; + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : excludeObjects_; + } + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : excludeObjects_; + } + + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; + private int maxConcurrentCdcTasks_ = 0; + /** + * + * + *
+   * Max concurrent CDC tasks.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + + public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; + private int maxConcurrentBackfillTasks_ = 0; + /** + * + * + *
+   * Max concurrent backfill tasks.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + + public static final int TRANSACTION_LOGS_FIELD_NUMBER = 101; + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return Whether the transactionLogs field is set. + */ + @java.lang.Override + public boolean hasTransactionLogs() { + return cdcMethodCase_ == 101; + } + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return The transactionLogs. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogs getTransactionLogs() { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder + getTransactionLogsOrBuilder() { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + + public static final int CHANGE_TABLES_FIELD_NUMBER = 102; + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return Whether the changeTables field is set. + */ + @java.lang.Override + public boolean hasChangeTables() { + return cdcMethodCase_ == 102; + } + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return The changeTables. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables getChangeTables() { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder getChangeTablesOrBuilder() { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerChangeTables.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(3, maxConcurrentCdcTasks_); + } + if (maxConcurrentBackfillTasks_ != 0) { + output.writeInt32(4, maxConcurrentBackfillTasks_); + } + if (cdcMethodCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_); + } + if (cdcMethodCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_); + } + 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, getIncludeObjects()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + } + if (maxConcurrentBackfillTasks_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); + } + if (cdcMethodCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_); + } + if (cdcMethodCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_); + } + 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.datastream.v1.SqlServerSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerSourceConfig other = + (com.google.cloud.datastream.v1.SqlServerSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; + if (!getCdcMethodCase().equals(other.getCdcMethodCase())) return false; + switch (cdcMethodCase_) { + case 101: + if (!getTransactionLogs().equals(other.getTransactionLogs())) return false; + break; + case 102: + if (!getChangeTables().equals(other.getChangeTables())) 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 (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); + hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentBackfillTasks(); + switch (cdcMethodCase_) { + case 101: + hash = (37 * hash) + TRANSACTION_LOGS_FIELD_NUMBER; + hash = (53 * hash) + getTransactionLogs().hashCode(); + break; + case 102: + hash = (37 * hash) + CHANGE_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getChangeTables().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig 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; + } + /** + * + * + *
+   * SQLServer data source configuration
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerSourceConfig) + com.google.cloud.datastream.v1.SqlServerSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerSourceConfig.class, + com.google.cloud.datastream.v1.SqlServerSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIncludeObjectsFieldBuilder(); + getExcludeObjectsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + maxConcurrentCdcTasks_ = 0; + maxConcurrentBackfillTasks_ = 0; + if (transactionLogsBuilder_ != null) { + transactionLogsBuilder_.clear(); + } + if (changeTablesBuilder_ != null) { + changeTablesBuilder_.clear(); + } + cdcMethodCase_ = 0; + cdcMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfig build() { + com.google.cloud.datastream.v1.SqlServerSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerSourceConfig buildPartial() { + com.google.cloud.datastream.v1.SqlServerSourceConfig result = + new com.google.cloud.datastream.v1.SqlServerSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerSourceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.SqlServerSourceConfig result) { + result.cdcMethodCase_ = cdcMethodCase_; + result.cdcMethod_ = this.cdcMethod_; + if (cdcMethodCase_ == 101 && transactionLogsBuilder_ != null) { + result.cdcMethod_ = transactionLogsBuilder_.build(); + } + if (cdcMethodCase_ == 102 && changeTablesBuilder_ != null) { + result.cdcMethod_ = changeTablesBuilder_.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.datastream.v1.SqlServerSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerSourceConfig other) { + if (other == com.google.cloud.datastream.v1.SqlServerSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } + if (other.getMaxConcurrentBackfillTasks() != 0) { + setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); + } + switch (other.getCdcMethodCase()) { + case TRANSACTION_LOGS: + { + mergeTransactionLogs(other.getTransactionLogs()); + break; + } + case CHANGE_TABLES: + { + mergeChangeTables(other.getChangeTables()); + break; + } + case CDCMETHOD_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(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 810: + { + input.readMessage(getTransactionLogsFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getChangeTablesFieldBuilder().getBuilder(), extensionRegistry); + cdcMethodCase_ = 102; + break; + } // case 818 + 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 cdcMethodCase_ = 0; + private java.lang.Object cdcMethod_; + + public CdcMethodCase getCdcMethodCase() { + return CdcMethodCase.forNumber(cdcMethodCase_); + } + + public Builder clearCdcMethod() { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.cloud.datastream.v1.SqlServerRdbms includeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + includeObjectsBuilder_; + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.SqlServerRdbms getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + } else { + includeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (includeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) { + getIncludeObjectsBuilder().mergeFrom(value); + } else { + includeObjects_ = value; + } + } else { + includeObjectsBuilder_.mergeFrom(value); + } + if (includeObjects_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + bitField0_ = (bitField0_ & ~0x00000001); + includeObjects_ = null; + if (includeObjectsBuilder_ != null) { + includeObjectsBuilder_.dispose(); + includeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getIncludeObjectsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getIncludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : includeObjects_; + } + } + /** + * + * + *
+     * SQLServer objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + getIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.SqlServerRdbms excludeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + excludeObjectsBuilder_; + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.SqlServerRdbms getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + } else { + excludeObjectsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) { + getExcludeObjectsBuilder().mergeFrom(value); + } else { + excludeObjects_ = value; + } + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + if (excludeObjects_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + bitField0_ = (bitField0_ & ~0x00000002); + excludeObjects_ = null; + if (excludeObjectsBuilder_ != null) { + excludeObjectsBuilder_.dispose(); + excludeObjectsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.SqlServerRdbms.Builder getExcludeObjectsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExcludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance() + : excludeObjects_; + } + } + /** + * + * + *
+     * SQLServer objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + getExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private int maxConcurrentCdcTasks_; + /** + * + * + *
+     * Max concurrent CDC tasks.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + /** + * + * + *
+     * Max concurrent CDC tasks.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { + + maxConcurrentCdcTasks_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Max concurrent CDC tasks.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { + bitField0_ = (bitField0_ & ~0x00000004); + maxConcurrentCdcTasks_ = 0; + onChanged(); + return this; + } + + private int maxConcurrentBackfillTasks_; + /** + * + * + *
+     * Max concurrent backfill tasks.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + /** + * + * + *
+     * Max concurrent backfill tasks.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * + * @param value The maxConcurrentBackfillTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentBackfillTasks(int value) { + + maxConcurrentBackfillTasks_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Max concurrent backfill tasks.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentBackfillTasks() { + bitField0_ = (bitField0_ & ~0x00000008); + maxConcurrentBackfillTasks_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTransactionLogs, + com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder, + com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder> + transactionLogsBuilder_; + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return Whether the transactionLogs field is set. + */ + @java.lang.Override + public boolean hasTransactionLogs() { + return cdcMethodCase_ == 101; + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return The transactionLogs. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogs getTransactionLogs() { + if (transactionLogsBuilder_ == null) { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } else { + if (cdcMethodCase_ == 101) { + return transactionLogsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + public Builder setTransactionLogs( + com.google.cloud.datastream.v1.SqlServerTransactionLogs value) { + if (transactionLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + transactionLogsBuilder_.setMessage(value); + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + public Builder setTransactionLogs( + com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder builderForValue) { + if (transactionLogsBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + transactionLogsBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + public Builder mergeTransactionLogs( + com.google.cloud.datastream.v1.SqlServerTransactionLogs value) { + if (transactionLogsBuilder_ == null) { + if (cdcMethodCase_ == 101 + && cdcMethod_ + != com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.SqlServerTransactionLogs.newBuilder( + (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 101) { + transactionLogsBuilder_.mergeFrom(value); + } else { + transactionLogsBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 101; + return this; + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + public Builder clearTransactionLogs() { + if (transactionLogsBuilder_ == null) { + if (cdcMethodCase_ == 101) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 101) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + transactionLogsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + public com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder + getTransactionLogsBuilder() { + return getTransactionLogsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder + getTransactionLogsOrBuilder() { + if ((cdcMethodCase_ == 101) && (transactionLogsBuilder_ != null)) { + return transactionLogsBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 101) { + return (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + } + /** + * + * + *
+     * CDC reader reads from transaction logs.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTransactionLogs, + com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder, + com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder> + getTransactionLogsFieldBuilder() { + if (transactionLogsBuilder_ == null) { + if (!(cdcMethodCase_ == 101)) { + cdcMethod_ = com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + transactionLogsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerTransactionLogs, + com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder, + com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerTransactionLogs) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 101; + onChanged(); + return transactionLogsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerChangeTables, + com.google.cloud.datastream.v1.SqlServerChangeTables.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder> + changeTablesBuilder_; + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return Whether the changeTables field is set. + */ + @java.lang.Override + public boolean hasChangeTables() { + return cdcMethodCase_ == 102; + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return The changeTables. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTables getChangeTables() { + if (changeTablesBuilder_ == null) { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } else { + if (cdcMethodCase_ == 102) { + return changeTablesBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + public Builder setChangeTables(com.google.cloud.datastream.v1.SqlServerChangeTables value) { + if (changeTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cdcMethod_ = value; + onChanged(); + } else { + changeTablesBuilder_.setMessage(value); + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + public Builder setChangeTables( + com.google.cloud.datastream.v1.SqlServerChangeTables.Builder builderForValue) { + if (changeTablesBuilder_ == null) { + cdcMethod_ = builderForValue.build(); + onChanged(); + } else { + changeTablesBuilder_.setMessage(builderForValue.build()); + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + public Builder mergeChangeTables(com.google.cloud.datastream.v1.SqlServerChangeTables value) { + if (changeTablesBuilder_ == null) { + if (cdcMethodCase_ == 102 + && cdcMethod_ + != com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance()) { + cdcMethod_ = + com.google.cloud.datastream.v1.SqlServerChangeTables.newBuilder( + (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + cdcMethod_ = value; + } + onChanged(); + } else { + if (cdcMethodCase_ == 102) { + changeTablesBuilder_.mergeFrom(value); + } else { + changeTablesBuilder_.setMessage(value); + } + } + cdcMethodCase_ = 102; + return this; + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + public Builder clearChangeTables() { + if (changeTablesBuilder_ == null) { + if (cdcMethodCase_ == 102) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + onChanged(); + } + } else { + if (cdcMethodCase_ == 102) { + cdcMethodCase_ = 0; + cdcMethod_ = null; + } + changeTablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + public com.google.cloud.datastream.v1.SqlServerChangeTables.Builder getChangeTablesBuilder() { + return getChangeTablesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder + getChangeTablesOrBuilder() { + if ((cdcMethodCase_ == 102) && (changeTablesBuilder_ != null)) { + return changeTablesBuilder_.getMessageOrBuilder(); + } else { + if (cdcMethodCase_ == 102) { + return (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_; + } + return com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } + } + /** + * + * + *
+     * CDC reader reads from change tables.
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerChangeTables, + com.google.cloud.datastream.v1.SqlServerChangeTables.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder> + getChangeTablesFieldBuilder() { + if (changeTablesBuilder_ == null) { + if (!(cdcMethodCase_ == 102)) { + cdcMethod_ = com.google.cloud.datastream.v1.SqlServerChangeTables.getDefaultInstance(); + } + changeTablesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerChangeTables, + com.google.cloud.datastream.v1.SqlServerChangeTables.Builder, + com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerChangeTables) cdcMethod_, + getParentForChildren(), + isClean()); + cdcMethod_ = null; + } + cdcMethodCase_ = 102; + onChanged(); + return changeTablesBuilder_; + } + + @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.datastream.v1.SqlServerSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerSourceConfig) + private static final com.google.cloud.datastream.v1.SqlServerSourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerSourceConfig(); + } + + public static com.google.cloud.datastream.v1.SqlServerSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerSourceConfig 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.datastream.v1.SqlServerSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.java new file mode 100644 index 000000000000..b9fb64a19e27 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerSourceConfigOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.SqlServerRdbms getIncludeObjects(); + /** + * + * + *
+   * SQLServer objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms include_objects = 1; + */ + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.SqlServerRdbms getExcludeObjects(); + /** + * + * + *
+   * SQLServer objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms exclude_objects = 2; + */ + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Max concurrent CDC tasks.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); + + /** + * + * + *
+   * Max concurrent backfill tasks.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * + * @return The maxConcurrentBackfillTasks. + */ + int getMaxConcurrentBackfillTasks(); + + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return Whether the transactionLogs field is set. + */ + boolean hasTransactionLogs(); + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + * + * @return The transactionLogs. + */ + com.google.cloud.datastream.v1.SqlServerTransactionLogs getTransactionLogs(); + /** + * + * + *
+   * CDC reader reads from transaction logs.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerTransactionLogs transaction_logs = 101; + */ + com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder getTransactionLogsOrBuilder(); + + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return Whether the changeTables field is set. + */ + boolean hasChangeTables(); + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + * + * @return The changeTables. + */ + com.google.cloud.datastream.v1.SqlServerChangeTables getChangeTables(); + /** + * + * + *
+   * CDC reader reads from change tables.
+   * 
+ * + * .google.cloud.datastream.v1.SqlServerChangeTables change_tables = 102; + */ + com.google.cloud.datastream.v1.SqlServerChangeTablesOrBuilder getChangeTablesOrBuilder(); + + com.google.cloud.datastream.v1.SqlServerSourceConfig.CdcMethodCase getCdcMethodCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java new file mode 100644 index 000000000000..e15928110e7d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTable.java @@ -0,0 +1,1164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * SQLServer table.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerTable} + */ +public final class SqlServerTable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerTable) + SqlServerTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerTable.newBuilder() to construct. + private SqlServerTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerTable() { + table_ = ""; + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerTable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerTable.class, + com.google.cloud.datastream.v1.SqlServerTable.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List columns_; + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerColumn getColumns(int index) { + return columns_.get(index); + } + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerColumnOrBuilder getColumnsOrBuilder(int index) { + return columns_.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(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(2, columns_.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(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columns_.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.datastream.v1.SqlServerTable)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerTable other = + (com.google.cloud.datastream.v1.SqlServerTable) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getColumnsList().equals(other.getColumnsList())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SqlServerTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTable 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.datastream.v1.SqlServerTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTable 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.datastream.v1.SqlServerTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTable 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.datastream.v1.SqlServerTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTable 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.datastream.v1.SqlServerTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTable 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.datastream.v1.SqlServerTable 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; + } + /** + * + * + *
+   * SQLServer table.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerTable) + com.google.cloud.datastream.v1.SqlServerTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerTable.class, + com.google.cloud.datastream.v1.SqlServerTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerTable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTable build() { + com.google.cloud.datastream.v1.SqlServerTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTable buildPartial() { + com.google.cloud.datastream.v1.SqlServerTable result = + new com.google.cloud.datastream.v1.SqlServerTable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.SqlServerTable result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.datastream.v1.SqlServerTable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + } + + @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.datastream.v1.SqlServerTable) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerTable other) { + if (other == com.google.cloud.datastream.v1.SqlServerTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000002); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + 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: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.SqlServerColumn m = + input.readMessage( + com.google.cloud.datastream.v1.SqlServerColumn.parser(), extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.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 java.lang.Object table_ = ""; + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List columns_ = + java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + columns_ = + new java.util.ArrayList(columns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerColumn, + com.google.cloud.datastream.v1.SqlServerColumn.Builder, + com.google.cloud.datastream.v1.SqlServerColumnOrBuilder> + columnsBuilder_; + + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public com.google.cloud.datastream.v1.SqlServerColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder setColumns(int index, com.google.cloud.datastream.v1.SqlServerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder setColumns( + int index, com.google.cloud.datastream.v1.SqlServerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder addColumns(com.google.cloud.datastream.v1.SqlServerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder addColumns(int index, com.google.cloud.datastream.v1.SqlServerColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder addColumns( + com.google.cloud.datastream.v1.SqlServerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder addColumns( + int index, com.google.cloud.datastream.v1.SqlServerColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public com.google.cloud.datastream.v1.SqlServerColumn.Builder getColumnsBuilder(int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public com.google.cloud.datastream.v1.SqlServerColumnOrBuilder getColumnsOrBuilder(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public com.google.cloud.datastream.v1.SqlServerColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.SqlServerColumn.getDefaultInstance()); + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public com.google.cloud.datastream.v1.SqlServerColumn.Builder addColumnsBuilder(int index) { + return getColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.SqlServerColumn.getDefaultInstance()); + } + /** + * + * + *
+     * SQLServer columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerColumn, + com.google.cloud.datastream.v1.SqlServerColumn.Builder, + com.google.cloud.datastream.v1.SqlServerColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerColumn, + com.google.cloud.datastream.v1.SqlServerColumn.Builder, + com.google.cloud.datastream.v1.SqlServerColumnOrBuilder>( + columns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + @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.datastream.v1.SqlServerTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerTable) + private static final com.google.cloud.datastream.v1.SqlServerTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerTable(); + } + + public static com.google.cloud.datastream.v1.SqlServerTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerTable 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.datastream.v1.SqlServerTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.java new file mode 100644 index 000000000000..6bb0d0b9e50c --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTableOrBuilder.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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + java.util.List getColumnsList(); + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + com.google.cloud.datastream.v1.SqlServerColumn getColumns(int index); + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + int getColumnsCount(); + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + java.util.List + getColumnsOrBuilderList(); + /** + * + * + *
+   * SQLServer columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.SqlServerColumn columns = 2; + */ + com.google.cloud.datastream.v1.SqlServerColumnOrBuilder getColumnsOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogs.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogs.java new file mode 100644 index 000000000000..351293d1109d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogs.java @@ -0,0 +1,433 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * Configuration to use Transaction Logs CDC read method.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerTransactionLogs} + */ +public final class SqlServerTransactionLogs extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SqlServerTransactionLogs) + SqlServerTransactionLogsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SqlServerTransactionLogs.newBuilder() to construct. + private SqlServerTransactionLogs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlServerTransactionLogs() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlServerTransactionLogs(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerTransactionLogs.class, + com.google.cloud.datastream.v1.SqlServerTransactionLogs.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.datastream.v1.SqlServerTransactionLogs)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SqlServerTransactionLogs other = + (com.google.cloud.datastream.v1.SqlServerTransactionLogs) 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.datastream.v1.SqlServerTransactionLogs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs 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 to use Transaction Logs CDC read method.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SqlServerTransactionLogs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SqlServerTransactionLogs) + com.google.cloud.datastream.v1.SqlServerTransactionLogsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SqlServerTransactionLogs.class, + com.google.cloud.datastream.v1.SqlServerTransactionLogs.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SqlServerTransactionLogs.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.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogs getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SqlServerTransactionLogs.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogs build() { + com.google.cloud.datastream.v1.SqlServerTransactionLogs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerTransactionLogs buildPartial() { + com.google.cloud.datastream.v1.SqlServerTransactionLogs result = + new com.google.cloud.datastream.v1.SqlServerTransactionLogs(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.datastream.v1.SqlServerTransactionLogs) { + return mergeFrom((com.google.cloud.datastream.v1.SqlServerTransactionLogs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SqlServerTransactionLogs other) { + if (other == com.google.cloud.datastream.v1.SqlServerTransactionLogs.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.datastream.v1.SqlServerTransactionLogs) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SqlServerTransactionLogs) + private static final com.google.cloud.datastream.v1.SqlServerTransactionLogs DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SqlServerTransactionLogs(); + } + + public static com.google.cloud.datastream.v1.SqlServerTransactionLogs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlServerTransactionLogs 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.datastream.v1.SqlServerTransactionLogs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogsOrBuilder.java new file mode 100644 index 000000000000..3ae4b2e7631f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SqlServerTransactionLogsOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface SqlServerTransactionLogsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SqlServerTransactionLogs) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index 279770b0623a..d53716f49eda 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -486,6 +486,41 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return Whether the sqlServerExcludedObjects field is set. + */ + boolean hasSqlServerExcludedObjects(); + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return The sqlServerExcludedObjects. + */ + com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerExcludedObjects(); + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder getSqlServerExcludedObjectsOrBuilder(); + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } @@ -544,6 +579,7 @@ public enum ExcludedObjectsCase ORACLE_EXCLUDED_OBJECTS(1), MYSQL_EXCLUDED_OBJECTS(2), POSTGRESQL_EXCLUDED_OBJECTS(3), + SQL_SERVER_EXCLUDED_OBJECTS(4), EXCLUDEDOBJECTS_NOT_SET(0); private final int value; @@ -568,6 +604,8 @@ public static ExcludedObjectsCase forNumber(int value) { return MYSQL_EXCLUDED_OBJECTS; case 3: return POSTGRESQL_EXCLUDED_OBJECTS; + case 4: + return SQL_SERVER_EXCLUDED_OBJECTS; case 0: return EXCLUDEDOBJECTS_NOT_SET; default: @@ -738,6 +776,58 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjec return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } + public static final int SQL_SERVER_EXCLUDED_OBJECTS_FIELD_NUMBER = 4; + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return Whether the sqlServerExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSqlServerExcludedObjects() { + return excludedObjectsCase_ == 4; + } + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return The sqlServerExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerExcludedObjects() { + if (excludedObjectsCase_ == 4) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + /** + * + * + *
+     * SQLServer data source objects to avoid backfilling
+     * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder + getSqlServerExcludedObjectsOrBuilder() { + if (excludedObjectsCase_ == 4) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -761,6 +851,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludedObjectsCase_ == 3) { output.writeMessage(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 4) { + output.writeMessage(4, (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_); + } getUnknownFields().writeTo(output); } @@ -785,6 +878,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -813,6 +911,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) return false; break; + case 4: + if (!getSqlServerExcludedObjects().equals(other.getSqlServerExcludedObjects())) + return false; + break; case 0: default: } @@ -840,6 +942,10 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlExcludedObjects().hashCode(); break; + case 4: + hash = (37 * hash) + SQL_SERVER_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSqlServerExcludedObjects().hashCode(); + break; case 0: default: } @@ -995,6 +1101,9 @@ public Builder clear() { if (postgresqlExcludedObjectsBuilder_ != null) { postgresqlExcludedObjectsBuilder_.clear(); } + if (sqlServerExcludedObjectsBuilder_ != null) { + sqlServerExcludedObjectsBuilder_.clear(); + } excludedObjectsCase_ = 0; excludedObjects_ = null; return this; @@ -1049,6 +1158,9 @@ private void buildPartialOneofs( if (excludedObjectsCase_ == 3 && postgresqlExcludedObjectsBuilder_ != null) { result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build(); } + if (excludedObjectsCase_ == 4 && sqlServerExcludedObjectsBuilder_ != null) { + result.excludedObjects_ = sqlServerExcludedObjectsBuilder_.build(); + } } @java.lang.Override @@ -1115,6 +1227,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrate mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects()); break; } + case SQL_SERVER_EXCLUDED_OBJECTS: + { + mergeSqlServerExcludedObjects(other.getSqlServerExcludedObjects()); + break; + } case EXCLUDEDOBJECTS_NOT_SET: { break; @@ -1167,6 +1284,13 @@ public Builder mergeFrom( excludedObjectsCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + getSqlServerExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry); + excludedObjectsCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1835,6 +1959,220 @@ public Builder clearPostgresqlExcludedObjects() { return postgresqlExcludedObjectsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + sqlServerExcludedObjectsBuilder_; + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return Whether the sqlServerExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasSqlServerExcludedObjects() { + return excludedObjectsCase_ == 4; + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + * + * @return The sqlServerExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbms getSqlServerExcludedObjects() { + if (sqlServerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 4) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 4) { + return sqlServerExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + public Builder setSqlServerExcludedObjects( + com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + sqlServerExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 4; + return this; + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + public Builder setSqlServerExcludedObjects( + com.google.cloud.datastream.v1.SqlServerRdbms.Builder builderForValue) { + if (sqlServerExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + sqlServerExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 4; + return this; + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + public Builder mergeSqlServerExcludedObjects( + com.google.cloud.datastream.v1.SqlServerRdbms value) { + if (sqlServerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 4 + && excludedObjects_ + != com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.SqlServerRdbms.newBuilder( + (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 4) { + sqlServerExcludedObjectsBuilder_.mergeFrom(value); + } else { + sqlServerExcludedObjectsBuilder_.setMessage(value); + } + } + excludedObjectsCase_ = 4; + return this; + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + public Builder clearSqlServerExcludedObjects() { + if (sqlServerExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 4) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 4) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + sqlServerExcludedObjectsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + public com.google.cloud.datastream.v1.SqlServerRdbms.Builder + getSqlServerExcludedObjectsBuilder() { + return getSqlServerExcludedObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder + getSqlServerExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 4) && (sqlServerExcludedObjectsBuilder_ != null)) { + return sqlServerExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 4) { + return (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * SQLServer data source objects to avoid backfilling
+       * 
+ * + * .google.cloud.datastream.v1.SqlServerRdbms sql_server_excluded_objects = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder> + getSqlServerExcludedObjectsFieldBuilder() { + if (sqlServerExcludedObjectsBuilder_ == null) { + if (!(excludedObjectsCase_ == 4)) { + excludedObjects_ = com.google.cloud.datastream.v1.SqlServerRdbms.getDefaultInstance(); + } + sqlServerExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SqlServerRdbms, + com.google.cloud.datastream.v1.SqlServerRdbms.Builder, + com.google.cloud.datastream.v1.SqlServerRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.SqlServerRdbms) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 4; + onChanged(); + return sqlServerExcludedObjectsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3093,6 +3431,65 @@ public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { } } + public static final int LAST_RECOVERY_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp lastRecoveryTime_; + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastRecoveryTime field is set. + */ + @java.lang.Override + public boolean hasLastRecoveryTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRecoveryTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastRecoveryTime() { + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; + } + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastRecoveryTimeOrBuilder() { + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3136,6 +3533,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customerManagedEncryptionKey_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getLastRecoveryTime()); + } if (backfillStrategyCase_ == 101) { output.writeMessage( 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); @@ -3192,6 +3592,9 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 10, customerManagedEncryptionKey_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getLastRecoveryTime()); + } if (backfillStrategyCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3243,6 +3646,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCustomerManagedEncryptionKey().equals(other.getCustomerManagedEncryptionKey())) return false; } + if (hasLastRecoveryTime() != other.hasLastRecoveryTime()) return false; + if (hasLastRecoveryTime()) { + if (!getLastRecoveryTime().equals(other.getLastRecoveryTime())) return false; + } if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: @@ -3299,6 +3706,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getCustomerManagedEncryptionKey().hashCode(); } + if (hasLastRecoveryTime()) { + hash = (37 * hash) + LAST_RECOVERY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastRecoveryTime().hashCode(); + } switch (backfillStrategyCase_) { case 101: hash = (37 * hash) + BACKFILL_ALL_FIELD_NUMBER; @@ -3477,6 +3888,7 @@ private void maybeForceBuilderInitialization() { getSourceConfigFieldBuilder(); getDestinationConfigFieldBuilder(); getErrorsFieldBuilder(); + getLastRecoveryTimeFieldBuilder(); } } @@ -3522,6 +3934,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000400); customerManagedEncryptionKey_ = ""; + lastRecoveryTime_ = null; + if (lastRecoveryTimeBuilder_ != null) { + lastRecoveryTimeBuilder_.dispose(); + lastRecoveryTimeBuilder_ = null; + } backfillStrategyCase_ = 0; backfillStrategy_ = null; return this; @@ -3612,6 +4029,11 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { result.customerManagedEncryptionKey_ = customerManagedEncryptionKey_; to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.lastRecoveryTime_ = + lastRecoveryTimeBuilder_ == null ? lastRecoveryTime_ : lastRecoveryTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -3730,6 +4152,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { bitField0_ |= 0x00000800; onChanged(); } + if (other.hasLastRecoveryTime()) { + mergeLastRecoveryTime(other.getLastRecoveryTime()); + } switch (other.getBackfillStrategyCase()) { case BACKFILL_ALL: { @@ -3846,6 +4271,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 82 + case 106: + { + input.readMessage( + getLastRecoveryTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 case 810: { input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); @@ -6146,6 +6578,218 @@ public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteStri return this; } + private com.google.protobuf.Timestamp lastRecoveryTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastRecoveryTimeBuilder_; + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastRecoveryTime field is set. + */ + public boolean hasLastRecoveryTime() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRecoveryTime. + */ + public com.google.protobuf.Timestamp getLastRecoveryTime() { + if (lastRecoveryTimeBuilder_ == null) { + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; + } else { + return lastRecoveryTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastRecoveryTime(com.google.protobuf.Timestamp value) { + if (lastRecoveryTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastRecoveryTime_ = value; + } else { + lastRecoveryTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastRecoveryTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastRecoveryTimeBuilder_ == null) { + lastRecoveryTime_ = builderForValue.build(); + } else { + lastRecoveryTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastRecoveryTime(com.google.protobuf.Timestamp value) { + if (lastRecoveryTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && lastRecoveryTime_ != null + && lastRecoveryTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastRecoveryTimeBuilder().mergeFrom(value); + } else { + lastRecoveryTime_ = value; + } + } else { + lastRecoveryTimeBuilder_.mergeFrom(value); + } + if (lastRecoveryTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastRecoveryTime() { + bitField0_ = (bitField0_ & ~0x00001000); + lastRecoveryTime_ = null; + if (lastRecoveryTimeBuilder_ != null) { + lastRecoveryTimeBuilder_.dispose(); + lastRecoveryTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastRecoveryTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getLastRecoveryTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastRecoveryTimeOrBuilder() { + if (lastRecoveryTimeBuilder_ != null) { + return lastRecoveryTimeBuilder_.getMessageOrBuilder(); + } else { + return lastRecoveryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastRecoveryTime_; + } + } + /** + * + * + *
+     * Output only. If the stream was recovered, the time of the last recovery.
+     * Note: This field is currently experimental.
+     * 
+ * + * + * .google.protobuf.Timestamp last_recovery_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> + getLastRecoveryTimeFieldBuilder() { + if (lastRecoveryTimeBuilder_ == null) { + lastRecoveryTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastRecoveryTime(), getParentForChildren(), isClean()); + lastRecoveryTime_ = null; + } + return lastRecoveryTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java index c883666944db..f4816bfcbb48 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java @@ -501,5 +501,49 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes(); + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastRecoveryTime field is set. + */ + boolean hasLastRecoveryTime(); + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRecoveryTime. + */ + com.google.protobuf.Timestamp getLastRecoveryTime(); + /** + * + * + *
+   * Output only. If the stream was recovered, the time of the last recovery.
+   * Note: This field is currently experimental.
+   * 
+ * + * + * .google.protobuf.Timestamp last_recovery_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastRecoveryTimeOrBuilder(); + com.google.cloud.datastream.v1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java index 59bd1383501d..9ed314e866e6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java @@ -116,6 +116,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PASSED = 3; */ PASSED(3), + /** + * + * + *
+     * Validation executed with warnings.
+     * 
+ * + * WARNING = 4; + */ + WARNING(4), UNRECOGNIZED(-1), ; @@ -159,6 +169,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PASSED = 3; */ public static final int PASSED_VALUE = 3; + /** + * + * + *
+     * Validation executed with warnings.
+     * 
+ * + * WARNING = 4; + */ + public static final int WARNING_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -192,6 +212,8 @@ public static State forNumber(int value) { return FAILED; case 3: return PASSED; + case 4: + return WARNING; default: return null; } @@ -302,10 +324,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Validation execution status.
+   * Output only. Validation execution status.
    * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -317,10 +341,12 @@ public int getStateValue() { * * *
-   * Validation execution status.
+   * Output only. Validation execution status.
    * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1023,10 +1049,12 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Validation execution status.
+     * Output only. Validation execution status.
      * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -1038,10 +1066,12 @@ public int getStateValue() { * * *
-     * Validation execution status.
+     * Output only. Validation execution status.
      * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. @@ -1056,10 +1086,12 @@ public Builder setStateValue(int value) { * * *
-     * Validation execution status.
+     * Output only. Validation execution status.
      * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1073,10 +1105,12 @@ public com.google.cloud.datastream.v1.Validation.State getState() { * * *
-     * Validation execution status.
+     * Output only. Validation execution status.
      * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The state to set. * @return This builder for chaining. @@ -1094,10 +1128,12 @@ public Builder setState(com.google.cloud.datastream.v1.Validation.State value) { * * *
-     * Validation execution status.
+     * Output only. Validation execution status.
      * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java index 82fc9e8f09ba..89349e4d2d46 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java @@ -53,10 +53,12 @@ public interface ValidationOrBuilder * * *
-   * Validation execution status.
+   * Output only. Validation execution status.
    * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -65,10 +67,12 @@ public interface ValidationOrBuilder * * *
-   * Validation execution status.
+   * Output only. Validation execution status.
    * 
* - * .google.cloud.datastream.v1.Validation.State state = 2; + * + * .google.cloud.datastream.v1.Validation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto index 2f033a537ccb..8cf46f063288 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -167,6 +167,19 @@ service Datastream { }; } + // Use this method to start, resume or recover a stream with a non default CDC + // strategy. + rpc RunStream(RunStreamRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/streams/*}:run" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Stream" + metadata_type: "OperationMetadata" + }; + } + // Use this method to get details about a stream object. rpc GetStreamObject(GetStreamObjectRequest) returns (StreamObject) { option (google.api.http) = { @@ -352,6 +365,9 @@ message DiscoverConnectionProfileRequest { // PostgreSQL RDBMS to enrich with child data objects and metadata. PostgresqlRdbms postgresql_rdbms = 102; + + // SQLServer RDBMS to enrich with child data objects and metadata. + SqlServerRdbms sql_server_rdbms = 103; } } @@ -367,6 +383,9 @@ message DiscoverConnectionProfileResponse { // Enriched PostgreSQL RDBMS object. PostgresqlRdbms postgresql_rdbms = 102; + + // Enriched SQLServer RDBMS object. + SqlServerRdbms sql_server_rdbms = 103; } } @@ -709,6 +728,25 @@ message DeleteStreamRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for running a stream. +message RunStreamRequest { + // Required. Name of the stream resource to start, in the format: + // projects/{project_id}/locations/{location}/streams/{stream_name} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Stream" + } + ]; + + // Optional. The CDC strategy of the stream. If not set, the system's default + // value will be used. + CdcStrategy cdc_strategy = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Update the stream without validating it. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request for fetching a specific stream object. message GetStreamObjectRequest { // Required. The name of the stream object resource to get. @@ -826,9 +864,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto index 0d46d644adfc..7c6669aaeda3 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -34,6 +34,7 @@ option (google.api.resource_definition) = { }; // Oracle database profile. +// Next ID: 10. message OracleProfile { // Required. Hostname for the Oracle connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -44,17 +45,58 @@ message OracleProfile { // Required. Username for the Oracle connection. string username = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Password for the Oracle connection. - string password = 4 [(google.api.field_behavior) = REQUIRED]; + // Optional. Password for the Oracle connection. Mutually exclusive with the + // `secret_manager_stored_password` field. + string password = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. Database for the Oracle connection. string database_service = 5 [(google.api.field_behavior) = REQUIRED]; // Connection string attributes map connection_attributes = 6; + + // Optional. SSL configuration for the Oracle connection. + OracleSslConfig oracle_ssl_config = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for Oracle ASM connection. + OracleAsmConfig oracle_asm_config = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A reference to a Secret Manager resource name storing the Oracle + // connection password. Mutually exclusive with the `password` field. + string secret_manager_stored_password = 9 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for Oracle Automatic Storage Management (ASM) connection. +message OracleAsmConfig { + // Required. Hostname for the Oracle ASM connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Port for the Oracle ASM connection. + int32 port = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Username for the Oracle ASM connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Password for the Oracle ASM connection. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. ASM service name for the Oracle ASM connection. + string asm_service = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Connection string attributes + map connection_attributes = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SSL configuration for the Oracle connection. + OracleSslConfig oracle_ssl_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // MySQL database profile. +// Next ID: 7. message MysqlProfile { // Required. Hostname for the MySQL connection. string hostname = 1 [(google.api.field_behavior) = REQUIRED]; @@ -65,9 +107,10 @@ message MysqlProfile { // Required. Username for the MySQL connection. string username = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Input only. Password for the MySQL connection. + // Optional. Input only. Password for the MySQL connection. Mutually exclusive + // with the `secret_manager_stored_password` field. string password = 4 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = INPUT_ONLY ]; @@ -86,13 +129,34 @@ message PostgresqlProfile { // Required. Username for the PostgreSQL connection. string username = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Password for the PostgreSQL connection. - string password = 4 [(google.api.field_behavior) = REQUIRED]; + // Optional. Password for the PostgreSQL connection. Mutually exclusive with + // the `secret_manager_stored_password` field. + string password = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. Database for the PostgreSQL connection. string database = 5 [(google.api.field_behavior) = REQUIRED]; } +// SQLServer database profile. +// Next ID: 8. +message SqlServerProfile { + // Required. Hostname for the SQLServer connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Port for the SQLServer connection, default value is 1433. + int32 port = 2; + + // Required. Username for the SQLServer connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Password for the SQLServer connection. Mutually exclusive with + // the `secret_manager_stored_password` field. + string password = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Database for the SQLServer connection. + string database = 5 [(google.api.field_behavior) = REQUIRED]; +} + // Cloud Storage bucket profile. message GcsProfile { // Required. The Cloud Storage bucket name. @@ -273,6 +337,17 @@ message MysqlSslConfig { bool ca_certificate_set = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Oracle SSL configuration information. +message OracleSslConfig { + // Input only. PEM-encoded certificate of the CA that signed the source + // database server's certificate. + string ca_certificate = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Indicates whether the ca_certificate field has been set for + // this Connection-Profile. + bool ca_certificate_set = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A set of reusable connection configurations to be used as a source or // destination for a stream. message ConnectionProfile { @@ -314,6 +389,9 @@ message ConnectionProfile { // PostgreSQL Connection Profile configuration. PostgresqlProfile postgresql_profile = 104; + + // SQLServer Connection Profile configuration. + SqlServerProfile sql_server_profile = 105; } // Connectivity options used to establish a connection to the profile. @@ -393,6 +471,34 @@ message OracleSourceConfig { // Configuration to stream large object values. message StreamLargeObjects {} + // Configuration to use LogMiner CDC method. + message LogMiner {} + + // Configuration to use Binary Log Parser CDC technique. + message BinaryLogParser { + // Configuration to use Oracle ASM to access the log files. + message OracleAsmLogFileAccess {} + + // Configuration to specify the Oracle directories to access the log files. + message LogFileDirectories { + // Required. Oracle directory for online logs. + string online_log_directory = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Oracle directory for archived logs. + string archived_log_directory = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration to specify how the log file should be accessed. + oneof log_file_access { + // Use Oracle ASM. + OracleAsmLogFileAccess oracle_asm_log_file_access = 1; + + // Use Oracle directories. + LogFileDirectories log_file_directories = 2; + } + } + // Oracle objects to include in the stream. OracleRdbms include_objects = 1; @@ -412,9 +518,18 @@ message OracleSourceConfig { // Drop large object values. DropLargeObjects drop_large_objects = 100; - // Stream large object values. NOTE: This feature is currently experimental. + // Stream large object values. StreamLargeObjects stream_large_objects = 102; } + + // Configuration to select the CDC method. + oneof cdc_method { + // Use LogMiner. + LogMiner log_miner = 103; + + // Use Binary Log Parser. + BinaryLogParser binary_log_parser = 104; + } } // PostgreSQL Column. @@ -495,6 +610,89 @@ message PostgresqlSourceConfig { int32 max_concurrent_backfill_tasks = 5; } +// SQLServer Column. +message SqlServerColumn { + // Column name. + string column = 1; + + // The SQLServer data type. + string data_type = 2; + + // Column length. + int32 length = 3; + + // Column precision. + int32 precision = 4; + + // Column scale. + int32 scale = 5; + + // Whether or not the column represents a primary key. + bool primary_key = 6; + + // Whether or not the column can accept a null value. + bool nullable = 7; + + // The ordinal position of the column in the table. + int32 ordinal_position = 8; +} + +// SQLServer table. +message SqlServerTable { + // Table name. + string table = 1; + + // SQLServer columns in the schema. + // When unspecified as part of include/exclude objects, + // includes/excludes everything. + repeated SqlServerColumn columns = 2; +} + +// SQLServer schema. +message SqlServerSchema { + // Schema name. + string schema = 1; + + // Tables in the schema. + repeated SqlServerTable tables = 2; +} + +// SQLServer database structure. +message SqlServerRdbms { + // SQLServer schemas in the database server. + repeated SqlServerSchema schemas = 1; +} + +// SQLServer data source configuration +message SqlServerSourceConfig { + // SQLServer objects to include in the stream. + SqlServerRdbms include_objects = 1; + + // SQLServer objects to exclude from the stream. + SqlServerRdbms exclude_objects = 2; + + // Max concurrent CDC tasks. + int32 max_concurrent_cdc_tasks = 3; + + // Max concurrent backfill tasks. + int32 max_concurrent_backfill_tasks = 4; + + // Configuration to select the CDC read method for the stream. + oneof cdc_method { + // CDC reader reads from transaction logs. + SqlServerTransactionLogs transaction_logs = 101; + + // CDC reader reads from change tables. + SqlServerChangeTables change_tables = 102; + } +} + +// Configuration to use Transaction Logs CDC read method. +message SqlServerTransactionLogs {} + +// Configuration to use Change Tables CDC read method. +message SqlServerChangeTables {} + // MySQL Column. message MysqlColumn { // Column name. @@ -554,6 +752,12 @@ message MysqlRdbms { // MySQL source configuration message MysqlSourceConfig { + // Use Binary log position based replication. + message BinaryLogPosition {} + + // Use GTID based replication. + message Gtid {} + // MySQL objects to retrieve from the source. MysqlRdbms include_objects = 1; @@ -568,6 +772,15 @@ message MysqlSourceConfig { // negative. If not set (or set to 0), the system's default value will be // used. int32 max_concurrent_backfill_tasks = 4; + + // The CDC method to use for the stream. + oneof cdc_method { + // Use Binary log position based replication. + BinaryLogPosition binary_log_position = 101; + + // Use GTID based replication. + Gtid gtid = 102; + } } // The configuration of the stream source. @@ -591,6 +804,9 @@ message SourceConfig { // PostgreSQL data source configuration. PostgresqlSourceConfig postgresql_source_config = 102; + + // SQLServer data source configuration. + SqlServerSourceConfig sql_server_source_config = 103; } } @@ -658,6 +874,8 @@ message BigQueryDestinationConfig { // A single target dataset to which all data will be streamed. message SingleTargetDataset { // The dataset ID of the target dataset. + // DatasetIds allowed characters: + // https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference. string dataset_id = 1; } @@ -690,6 +908,14 @@ message BigQueryDestinationConfig { DatasetTemplate dataset_template = 2; } + // AppendOnly mode defines that all changes to a table will be written to the + // destination table. + message AppendOnly {} + + // Merge mode defines that all changes to a table will be merged at the + // destination table. + message Merge {} + // Target dataset(s) configuration. oneof dataset_config { // Single destination dataset. @@ -704,6 +930,14 @@ message BigQueryDestinationConfig { // future, but existing tables will not be impacted. Lower values mean that // queries will return fresher data, but may result in higher cost. google.protobuf.Duration data_freshness = 300; + + oneof write_mode { + // The standard mode + Merge merge = 301; + + // Append only mode + AppendOnly append_only = 302; + } } // The configuration of the stream destination. @@ -781,6 +1015,9 @@ message Stream { // PostgreSQL data source objects to avoid backfilling. PostgresqlRdbms postgresql_excluded_objects = 3; + + // SQLServer data source objects to avoid backfilling + SqlServerRdbms sql_server_excluded_objects = 4; } } @@ -833,6 +1070,11 @@ message Stream { // encryption key provisioned through KMS. optional string customer_managed_encryption_key = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. If the stream was recovered, the time of the last recovery. + // Note: This field is currently experimental. + google.protobuf.Timestamp last_recovery_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A specific stream object (e.g a specific DB table). @@ -895,6 +1137,15 @@ message SourceObjectIdentifier { string table = 2 [(google.api.field_behavior) = REQUIRED]; } + // SQLServer data source object identifier. + message SqlServerObjectIdentifier { + // Required. The schema name. + string schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + // The identifier for an object in the data source. oneof source_identifier { // Oracle data source object identifier. @@ -905,6 +1156,9 @@ message SourceObjectIdentifier { // PostgreSQL data source object identifier. PostgresqlObjectIdentifier postgresql_identifier = 3; + + // SQLServer data source object identifier. + SqlServerObjectIdentifier sql_server_identifier = 4; } } @@ -953,8 +1207,8 @@ message BackfillJob { MANUAL = 2; } - // Backfill job state. - State state = 1; + // Output only. Backfill job state. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Backfill job's triggering reason. Trigger trigger = 2; @@ -1012,13 +1266,16 @@ message Validation { // Validation passed. PASSED = 3; + + // Validation executed with warnings. + WARNING = 4; } // A short description of the validation. string description = 1; - // Validation execution status. - State state = 2; + // Output only. Validation execution status. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Messages reflecting the validation results. repeated ValidationMessage message = 3; @@ -1053,3 +1310,67 @@ message ValidationMessage { // A custom code identifying this specific message. string code = 4; } + +// The strategy that the stream uses for CDC replication. +message CdcStrategy { + // CDC strategy to start replicating from the most recent position in the + // source. + message MostRecentStartPosition {} + + // CDC strategy to resume replication from the next available position in the + // source. + message NextAvailableStartPosition {} + + // CDC strategy to start replicating from a specific position in the source. + message SpecificStartPosition { + oneof position { + // MySQL specific log position to start replicating from. + MysqlLogPosition mysql_log_position = 101; + + // Oracle SCN to start replicating from. + OracleScnPosition oracle_scn_position = 102; + + // SqlServer LSN to start replicating from. + SqlServerLsnPosition sql_server_lsn_position = 103; + } + } + + // The position to start reading from when starting, resuming, or recovering + // the stream. + // If not set, the system's default value will be used. + oneof start_position { + // Optional. Start replicating from the most recent position in the source. + MostRecentStartPosition most_recent_start_position = 101 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resume replication from the next available position in the + // source. + NextAvailableStartPosition next_available_start_position = 102 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Start replicating from a specific position in the source. + SpecificStartPosition specific_start_position = 103 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// SQL Server LSN position +message SqlServerLsnPosition { + // Required. Log sequence number (LSN) from where Logs will be read + string lsn = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Oracle SCN position +message OracleScnPosition { + // Required. SCN number from where Logs will be read + int64 scn = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// MySQL log position +message MysqlLogPosition { + // Required. The binary log file name. + string log_file = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The position within the binary log file. Default is head of file. + optional int32 log_position = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStream.java new file mode 100644 index 000000000000..7f94cc671bfa --- /dev/null +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStream.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.datastream.v1.samples; + +// [START datastream_v1_generated_Datastream_RunStream_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datastream.v1.CdcStrategy; +import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.RunStreamRequest; +import com.google.cloud.datastream.v1.StreamName; +import com.google.longrunning.Operation; + +public class AsyncRunStream { + + public static void main(String[] args) throws Exception { + asyncRunStream(); + } + + public static void asyncRunStream() 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + ApiFuture future = datastreamClient.runStreamCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datastream_v1_generated_Datastream_RunStream_async] diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStreamLRO.java new file mode 100644 index 000000000000..e9627f0e6a82 --- /dev/null +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/AsyncRunStreamLRO.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.datastream.v1.samples; + +// [START datastream_v1_generated_Datastream_RunStream_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.datastream.v1.CdcStrategy; +import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.OperationMetadata; +import com.google.cloud.datastream.v1.RunStreamRequest; +import com.google.cloud.datastream.v1.Stream; +import com.google.cloud.datastream.v1.StreamName; + +public class AsyncRunStreamLRO { + + public static void main(String[] args) throws Exception { + asyncRunStreamLRO(); + } + + public static void asyncRunStreamLRO() 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + OperationFuture future = + datastreamClient.runStreamOperationCallable().futureCall(request); + // Do something. + Stream response = future.get(); + } + } +} +// [END datastream_v1_generated_Datastream_RunStream_LRO_async] diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/SyncRunStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/SyncRunStream.java new file mode 100644 index 000000000000..30a7104fa1d0 --- /dev/null +++ b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/runstream/SyncRunStream.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.datastream.v1.samples; + +// [START datastream_v1_generated_Datastream_RunStream_sync] +import com.google.cloud.datastream.v1.CdcStrategy; +import com.google.cloud.datastream.v1.DatastreamClient; +import com.google.cloud.datastream.v1.RunStreamRequest; +import com.google.cloud.datastream.v1.Stream; +import com.google.cloud.datastream.v1.StreamName; + +public class SyncRunStream { + + public static void main(String[] args) throws Exception { + syncRunStream(); + } + + public static void syncRunStream() 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { + RunStreamRequest request = + RunStreamRequest.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCdcStrategy(CdcStrategy.newBuilder().build()) + .setForce(true) + .build(); + Stream response = datastreamClient.runStreamAsync(request).get(); + } + } +} +// [END datastream_v1_generated_Datastream_RunStream_sync] diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index 3c605de46f43..603db541d0d6 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-debugger-client - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-debugger-client:1.53.0' +implementation 'com.google.cloud:google-cloud-debugger-client:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-debugger-client.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/README.md b/java-deploy/README.md index 22be95015785..47f296bce31d 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.51.0' +implementation 'com.google.cloud:google-cloud-deploy:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index f89954c41266..e636b3b7dc4a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -1040,1041 +1040,1042 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013worker_p" + "ool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleapis" + ".com/WorkerPool\022\034\n\017service_account\030\002 \001(\t" - + "B\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003\340A\001\"y\n\n" - + "GkeCluster\0229\n\007cluster\030\001 \001(\tB(\340A\001\372A\"\n con" - + "tainer.googleapis.com/Cluster\022\030\n\013interna" - + "l_ip\030\002 \001(\010B\003\340A\001\022\026\n\tproxy_url\030\003 \001(\tB\003\340A\001\"" - + "M\n\rAnthosCluster\022<\n\nmembership\030\001 \001(\tB(\340A" - + "\001\372A\"\n gkehub.googleapis.com/Membership\"O" - + "\n\020CloudRunLocation\022;\n\010location\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\"" - + "&\n\013MultiTarget\022\027\n\ntarget_ids\030\001 \003(\tB\003\340A\002\"" - + "_\n\014CustomTarget\022O\n\022custom_target_type\030\001 " - + "\001(\tB3\340A\002\372A-\n+clouddeploy.googleapis.com/" - + "CustomTargetType\"\230\001\n\022AssociatedEntities\022" - + "=\n\014gke_clusters\030\002 \003(\0132\".google.cloud.dep" - + "loy.v1.GkeClusterB\003\340A\001\022C\n\017anthos_cluster" - + "s\030\003 \003(\0132%.google.cloud.deploy.v1.AnthosC" - + "lusterB\003\340A\001\"\254\001\n\022ListTargetsRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googleap" - + "is.com/Target\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\"t\n\023ListTarget" - + "sResponse\022/\n\007targets\030\001 \003(\0132\036.google.clou" - + "d.deploy.v1.Target\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetTargetReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy." - + "googleapis.com/Target\"\322\001\n\023CreateTargetRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddepl" - + "oy.googleapis.com/Target\022\026\n\ttarget_id\030\002 " - + "\001(\tB\003\340A\002\0223\n\006target\030\003 \001(\0132\036.google.cloud." - + "deploy.v1.TargetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" - + "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023U" - + "pdateTargetRequest\0224\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\0223\n\006targ" - + "et\030\002 \001(\0132\036.google.cloud.deploy.v1.Target" - + "B\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_" - + "missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(" - + "\010B\003\340A\001\"\262\001\n\023DeleteTargetRequest\0227\n\004name\030\001" - + " \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis.com" - + "/Target\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallo" - + "w_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 " - + "\001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\327\005\n\020CustomTa" - + "rgetType\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\"\n\025custom_ta" - + "rget_type_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A" - + "\003\022\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n\013annotatio" - + "ns\030\005 \003(\01329.google.cloud.deploy.v1.Custom" - + "TargetType.AnnotationsEntryB\003\340A\001\022I\n\006labe" - + "ls\030\006 \003(\01324.google.cloud.deploy.v1.Custom" - + "TargetType.LabelsEntryB\003\340A\001\0224\n\013create_ti" - + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\021\n\004etag\030\t \001(\tB\003\340A\001\022M\n\016cu" - + "stom_actions\030\n \001(\01323.google.cloud.deploy" - + ".v1.CustomTargetSkaffoldActionsH\000\0322\n\020Ann" - + "otationsEntry\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\005val" - + "ue\030\002 \001(\t:\0028\001:\200\001\352A}\n+clouddeploy.googleap" - + "is.com/CustomTargetType\022Nprojects/{proje" - + "ct}/locations/{location}/customTargetTyp" - + "es/{custom_target_type}B\014\n\ndefinition\"\245\001" - + "\n\033CustomTargetSkaffoldActions\022\032\n\rrender_" - + "action\030\001 \001(\tB\003\340A\001\022\032\n\rdeploy_action\030\002 \001(\t" - + "B\003\340A\002\022N\n\030include_skaffold_modules\030\003 \003(\0132" - + "\'.google.cloud.deploy.v1.SkaffoldModules" - + "B\003\340A\001\"\302\004\n\017SkaffoldModules\022\024\n\007configs\030\001 \003" - + "(\tB\003\340A\001\022H\n\003git\030\002 \001(\01329.google.cloud.depl" - + "oy.v1.SkaffoldModules.SkaffoldGitSourceH" - + "\000\022Y\n\024google_cloud_storage\030\003 \001(\01329.google" - + ".cloud.deploy.v1.SkaffoldModules.Skaffol" - + "dGCSSourceH\000\022`\n\027google_cloud_build_repo\030" - + "\004 \001(\0132=.google.cloud.deploy.v1.SkaffoldM" - + "odules.SkaffoldGCBRepoSourceH\000\032K\n\021Skaffo" - + "ldGitSource\022\021\n\004repo\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002" - + " \001(\tB\003\340A\001\022\020\n\003ref\030\003 \001(\tB\003\340A\001\032;\n\021SkaffoldG" - + "CSSource\022\023\n\006source\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 " - + "\001(\tB\003\340A\001\032~\n\025SkaffoldGCBRepoSource\022@\n\nrep" - + "ository\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.google" - + "apis.com/Repository\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020" - + "\n\003ref\030\003 \001(\tB\003\340A\001B\010\n\006source\"\300\001\n\034ListCusto" - + "mTargetTypesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" - + "\372A-\022+clouddeploy.googleapis.com/CustomTa" - + "rgetType\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\"\224\001\n\035ListCustomTarg" - + "etTypesResponse\022E\n\023custom_target_types\030\001" - + " \003(\0132(.google.cloud.deploy.v1.CustomTarg" - + "etType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"_\n\032GetCustomTargetTypeReque" + + "B\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003\340A\001\"\224\001\n" + + "\nGkeCluster\0229\n\007cluster\030\001 \001(\tB(\340A\001\372A\"\n co" + + "ntainer.googleapis.com/Cluster\022\030\n\013intern" + + "al_ip\030\002 \001(\010B\003\340A\001\022\026\n\tproxy_url\030\003 \001(\tB\003\340A\001" + + "\022\031\n\014dns_endpoint\030\004 \001(\010B\003\340A\001\"M\n\rAnthosClu" + + "ster\022<\n\nmembership\030\001 \001(\tB(\340A\001\372A\"\n gkehub" + + ".googleapis.com/Membership\"O\n\020CloudRunLo" + + "cation\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\"&\n\013MultiTarg" + + "et\022\027\n\ntarget_ids\030\001 \003(\tB\003\340A\002\"_\n\014CustomTar" + + "get\022O\n\022custom_target_type\030\001 \001(\tB3\340A\002\372A-\n" + + "+clouddeploy.googleapis.com/CustomTarget" + + "Type\"\230\001\n\022AssociatedEntities\022=\n\014gke_clust" + + "ers\030\002 \003(\0132\".google.cloud.deploy.v1.GkeCl" + + "usterB\003\340A\001\022C\n\017anthos_clusters\030\003 \003(\0132%.go" + + "ogle.cloud.deploy.v1.AnthosClusterB\003\340A\001\"" + + "\254\001\n\022ListTargetsRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\022!clouddeploy.googleapis.com/Targe" + + "t\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\"t\n\023ListTargetsResponse\022/\n" + + "\007targets\030\001 \003(\0132\036.google.cloud.deploy.v1." + + "Target\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"K\n\020GetTargetRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis.c" + + "om/Target\"\322\001\n\023CreateTargetRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googleapi" + + "s.com/Target\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002\0223\n\006" + + "target\030\003 \001(\0132\036.google.cloud.deploy.v1.Ta" + + "rgetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rva" + + "lidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023UpdateTargetR" + + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\0223\n\006target\030\002 \001(\0132\036.g" + + "oogle.cloud.deploy.v1.TargetB\003\340A\002\022\027\n\nreq" + + "uest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 \001(" + + "\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\262\001\n\023D" + + "eleteTargetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + + "\n!clouddeploy.googleapis.com/Target\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 " + + "\001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n\004" + + "etag\030\005 \001(\tB\003\340A\001\"\327\005\n\020CustomTargetType\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\001\022\"\n\025custom_target_type_id" + + "\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013descrip" + + "tion\030\004 \001(\tB\003\340A\001\022S\n\013annotations\030\005 \003(\01329.g" + + "oogle.cloud.deploy.v1.CustomTargetType.A" + + "nnotationsEntryB\003\340A\001\022I\n\006labels\030\006 \003(\01324.g" + + "oogle.cloud.deploy.v1.CustomTargetType.L" + + "abelsEntryB\003\340A\001\0224\n\013create_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022\021\n\004etag\030\t \001(\tB\003\340A\001\022M\n\016custom_actions" + + "\030\n \001(\01323.google.cloud.deploy.v1.CustomTa" + + "rgetSkaffoldActionsH\000\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":\200\001\352A}\n+clouddeploy.googleapis.com/Custo" + + "mTargetType\022Nprojects/{project}/location" + + "s/{location}/customTargetTypes/{custom_t" + + "arget_type}B\014\n\ndefinition\"\245\001\n\033CustomTarg" + + "etSkaffoldActions\022\032\n\rrender_action\030\001 \001(\t" + + "B\003\340A\001\022\032\n\rdeploy_action\030\002 \001(\tB\003\340A\002\022N\n\030inc" + + "lude_skaffold_modules\030\003 \003(\0132\'.google.clo" + + "ud.deploy.v1.SkaffoldModulesB\003\340A\001\"\302\004\n\017Sk" + + "affoldModules\022\024\n\007configs\030\001 \003(\tB\003\340A\001\022H\n\003g" + + "it\030\002 \001(\01329.google.cloud.deploy.v1.Skaffo" + + "ldModules.SkaffoldGitSourceH\000\022Y\n\024google_" + + "cloud_storage\030\003 \001(\01329.google.cloud.deplo" + + "y.v1.SkaffoldModules.SkaffoldGCSSourceH\000" + + "\022`\n\027google_cloud_build_repo\030\004 \001(\0132=.goog" + + "le.cloud.deploy.v1.SkaffoldModules.Skaff" + + "oldGCBRepoSourceH\000\032K\n\021SkaffoldGitSource\022" + + "\021\n\004repo\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020\n" + + "\003ref\030\003 \001(\tB\003\340A\001\032;\n\021SkaffoldGCSSource\022\023\n\006" + + "source\030\001 \001(\tB\003\340A\002\022\021\n\004path\030\002 \001(\tB\003\340A\001\032~\n\025" + + "SkaffoldGCBRepoSource\022@\n\nrepository\030\001 \001(" + + "\tB,\340A\002\372A&\n$cloudbuild.googleapis.com/Rep" + + "ository\022\021\n\004path\030\002 \001(\tB\003\340A\001\022\020\n\003ref\030\003 \001(\tB" + + "\003\340A\001B\010\n\006source\"\300\001\n\034ListCustomTargetTypes" + + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+cloudde" + + "ploy.googleapis.com/CustomTargetType\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\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\"\224\001\n\035ListCustomTargetTypesRespo" + + "nse\022E\n\023custom_target_types\030\001 \003(\0132(.googl" + + "e.cloud.deploy.v1.CustomTargetType\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"_\n\032GetCustomTargetTypeRequest\022A\n\004name\030\001" + + " \001(\tB3\340A\002\372A-\n+clouddeploy.googleapis.com" + + "/CustomTargetType\"\210\002\n\035CreateCustomTarget" + + "TypeRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clo" + + "uddeploy.googleapis.com/CustomTargetType" + + "\022\"\n\025custom_target_type_id\030\002 \001(\tB\003\340A\002\022I\n\022" + + "custom_target_type\030\003 \001(\0132(.google.cloud." + + "deploy.v1.CustomTargetTypeB\003\340A\002\022\027\n\nreque" + + "st_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B" + + "\003\340A\001\"\361\001\n\035UpdateCustomTargetTypeRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022I\n\022custom_target_type\030\002 \001(\013" + + "2(.google.cloud.deploy.v1.CustomTargetTy" + + "peB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallo" + + "w_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 " + + "\001(\010B\003\340A\001\"\306\001\n\035DeleteCustomTargetTypeReque" + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.go" - + "ogleapis.com/CustomTargetType\"\210\002\n\035Create" - + "CustomTargetTypeRequest\022C\n\006parent\030\001 \001(\tB" - + "3\340A\002\372A-\022+clouddeploy.googleapis.com/Cust" - + "omTargetType\022\"\n\025custom_target_type_id\030\002 " - + "\001(\tB\003\340A\002\022I\n\022custom_target_type\030\003 \001(\0132(.g" - + "oogle.cloud.deploy.v1.CustomTargetTypeB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate" - + "_only\030\005 \001(\010B\003\340A\001\"\361\001\n\035UpdateCustomTargetT" - + "ypeRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\022I\n\022custom_targe" - + "t_type\030\002 \001(\0132(.google.cloud.deploy.v1.Cu" - + "stomTargetTypeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" - + "\003\340A\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvali" - + "date_only\030\005 \001(\010B\003\340A\001\"\306\001\n\035DeleteCustomTar" - + "getTypeRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cl" - + "ouddeploy.googleapis.com/CustomTargetTyp" - + "e\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_miss" - + "ing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" - + "A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\212\006\n\014DeployPolicy\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013d" - + "escription\030\003 \001(\t\022J\n\013annotations\030\004 \003(\01325." - + "google.cloud.deploy.v1.DeployPolicy.Anno" - + "tationsEntry\022@\n\006labels\030\005 \003(\01320.google.cl" - + "oud.deploy.v1.DeployPolicy.LabelsEntry\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\022\021\n\tsuspended\030" - + "\010 \001(\010\022L\n\tselectors\030\014 \003(\01324.google.cloud." - + "deploy.v1.DeployPolicyResourceSelectorB\003" - + "\340A\002\0226\n\005rules\030\n \003(\0132\".google.cloud.deploy" - + ".v1.PolicyRuleB\003\340A\002\022\014\n\004etag\030\013 \001(\t\0322\n\020Ann" - + "otationsEntry\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\005val" - + "ue\030\002 \001(\t:\0028\001\"C\n\007Invoker\022\027\n\023INVOKER_UNSPE" - + "CIFIED\020\000\022\010\n\004USER\020\001\022\025\n\021DEPLOY_AUTOMATION\020" - + "\002:w\352At\n\'clouddeploy.googleapis.com/Deplo" - + "yPolicy\022Fprojects/{project}/locations/{l" - + "ocation}/deployPolicies/{deploy_policy}R" - + "\001\001\"\257\001\n\034DeployPolicyResourceSelector\022Q\n\021d" - + "elivery_pipeline\030\001 \001(\01321.google.cloud.de" - + "ploy.v1.DeliveryPipelineAttributeB\003\340A\001\022<" - + "\n\006target\030\002 \001(\0132\'.google.cloud.deploy.v1." - + "TargetAttributeB\003\340A\001\"\245\001\n\031DeliveryPipelin" - + "eAttribute\022\n\n\002id\030\001 \001(\t\022M\n\006labels\030\002 \003(\0132=" - + ".google.cloud.deploy.v1.DeliveryPipeline" - + "Attribute.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\017TargetA" - + "ttribute\022\n\n\002id\030\001 \001(\t\022C\n\006labels\030\002 \003(\01323.g" - + "oogle.cloud.deploy.v1.TargetAttribute.La" + + "ogleapis.com/CustomTargetType\022\027\n\nrequest" + + "_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010B\003\340" + + "A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005" + + " \001(\tB\003\340A\001\"\212\006\n\014DeployPolicy\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013description\030\003" + + " \001(\t\022J\n\013annotations\030\004 \003(\01325.google.cloud" + + ".deploy.v1.DeployPolicy.AnnotationsEntry" + + "\022@\n\006labels\030\005 \003(\01320.google.cloud.deploy.v" + + "1.DeployPolicy.LabelsEntry\0224\n\013create_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\021\n\tsuspended\030\010 \001(\010\022L\n\tsel" + + "ectors\030\014 \003(\01324.google.cloud.deploy.v1.De" + + "ployPolicyResourceSelectorB\003\340A\002\0226\n\005rules" + + "\030\n \003(\0132\".google.cloud.deploy.v1.PolicyRu" + + "leB\003\340A\002\022\014\n\004etag\030\013 \001(\t\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"C\n\007Invoker\022\027\n\023INVOKER_UNSPECIFIED\020\000\022\010\n\004" + + "USER\020\001\022\025\n\021DEPLOY_AUTOMATION\020\002:w\352At\n\'clou" + + "ddeploy.googleapis.com/DeployPolicy\022Fpro" + + "jects/{project}/locations/{location}/dep" + + "loyPolicies/{deploy_policy}R\001\001\"\257\001\n\034Deplo" + + "yPolicyResourceSelector\022Q\n\021delivery_pipe" + + "line\030\001 \001(\01321.google.cloud.deploy.v1.Deli" + + "veryPipelineAttributeB\003\340A\001\022<\n\006target\030\002 \001" + + "(\0132\'.google.cloud.deploy.v1.TargetAttrib" + + "uteB\003\340A\001\"\245\001\n\031DeliveryPipelineAttribute\022\n" + + "\n\002id\030\001 \001(\t\022M\n\006labels\030\002 \003(\0132=.google.clou" + + "d.deploy.v1.DeliveryPipelineAttribute.La" + "belsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"_\n\nPolicyRule\022I\n\023rollou" - + "t_restriction\030\002 \001(\0132*.google.cloud.deplo" - + "y.v1.RolloutRestrictionH\000B\006\n\004rule\"\244\003\n\022Ro" - + "lloutRestriction\022\017\n\002id\030\001 \001(\tB\003\340A\002\022C\n\010inv" - + "okers\030\002 \003(\0162,.google.cloud.deploy.v1.Dep" - + "loyPolicy.InvokerB\003\340A\001\022O\n\007actions\030\003 \003(\0162" - + "9.google.cloud.deploy.v1.RolloutRestrict" - + "ion.RolloutActionsB\003\340A\001\022>\n\014time_windows\030" - + "\004 \001(\0132#.google.cloud.deploy.v1.TimeWindo" - + "wsB\003\340A\002\"\246\001\n\016RolloutActions\022\037\n\033ROLLOUT_AC" - + "TIONS_UNSPECIFIED\020\000\022\013\n\007ADVANCE\020\001\022\013\n\007APPR" - + "OVE\020\002\022\n\n\006CANCEL\020\003\022\n\n\006CREATE\020\004\022\016\n\nIGNORE_" - + "JOB\020\005\022\r\n\tRETRY_JOB\020\006\022\014\n\010ROLLBACK\020\007\022\024\n\020TE" - + "RMINATE_JOBRUN\020\010\"\256\001\n\013TimeWindows\022\026\n\ttime" - + "_zone\030\001 \001(\tB\003\340A\002\022D\n\020one_time_windows\030\002 \003" - + "(\0132%.google.cloud.deploy.v1.OneTimeWindo" - + "wB\003\340A\001\022A\n\016weekly_windows\030\003 \003(\0132$.google." - + "cloud.deploy.v1.WeeklyWindowB\003\340A\001\"\305\001\n\rOn" - + "eTimeWindow\022*\n\nstart_date\030\001 \001(\0132\021.google" - + ".type.DateB\003\340A\002\022/\n\nstart_time\030\002 \001(\0132\026.go" - + "ogle.type.TimeOfDayB\003\340A\002\022(\n\010end_date\030\003 \001" - + "(\0132\021.google.type.DateB\003\340A\002\022-\n\010end_time\030\004" - + " \001(\0132\026.google.type.TimeOfDayB\003\340A\002\"\241\001\n\014We" - + "eklyWindow\0221\n\014days_of_week\030\001 \003(\0162\026.googl" - + "e.type.DayOfWeekB\003\340A\001\022/\n\nstart_time\030\002 \001(" - + "\0132\026.google.type.TimeOfDayB\003\340A\001\022-\n\010end_ti" - + "me\030\003 \001(\0132\026.google.type.TimeOfDayB\003\340A\001\"c\n" - + "\017PolicyViolation\022P\n\030policy_violation_det" - + "ails\030\001 \003(\0132..google.cloud.deploy.v1.Poli" - + "cyViolationDetails\"R\n\026PolicyViolationDet" - + "ails\022\016\n\006policy\030\001 \001(\t\022\017\n\007rule_id\030\002 \001(\t\022\027\n" - + "\017failure_message\030\003 \001(\t\"\256\027\n\007Release\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013descr" - + "iption\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.goog" - + "le.cloud.deploy.v1.Release.AnnotationsEn" - + "try\022;\n\006labels\030\005 \003(\0132+.google.cloud.deplo" - + "y.v1.Release.LabelsEntry\022\026\n\tabandoned\030\027 " - + "\001(\010B\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022:\n\021render_start_t" - + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0228\n\017render_end_time\030\010 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\033\n\023skaffold_config_" - + "uri\030\021 \001(\t\022\034\n\024skaffold_config_path\030\t \001(\t\022" - + ">\n\017build_artifacts\030\n \003(\0132%.google.cloud." - + "deploy.v1.BuildArtifact\022Q\n\032delivery_pipe" - + "line_snapshot\030\013 \001(\0132(.google.cloud.deplo" - + "y.v1.DeliveryPipelineB\003\340A\003\022=\n\020target_sna" - + "pshots\030\014 \003(\0132\036.google.cloud.deploy.v1.Ta" - + "rgetB\003\340A\003\022S\n\034custom_target_type_snapshot" - + "s\030\033 \003(\0132(.google.cloud.deploy.v1.CustomT" - + "argetTypeB\003\340A\003\022F\n\014render_state\030\r \001(\0162+.g" - + "oogle.cloud.deploy.v1.Release.RenderStat", - "eB\003\340A\003\022\014\n\004etag\030\020 \001(\t\022\030\n\020skaffold_version" - + "\030\023 \001(\t\022S\n\020target_artifacts\030\024 \003(\01324.googl" - + "e.cloud.deploy.v1.Release.TargetArtifact" - + "sEntryB\003\340A\003\022O\n\016target_renders\030\026 \003(\01322.go" - + "ogle.cloud.deploy.v1.Release.TargetRende" - + "rsEntryB\003\340A\003\022H\n\tcondition\030\030 \001(\01320.google" - + ".cloud.deploy.v1.Release.ReleaseConditio" - + "nB\003\340A\003\022U\n\021deploy_parameters\030\031 \003(\01325.goog" - + "le.cloud.deploy.v1.Release.DeployParamet" - + "ersEntryB\003\340A\001\032\324\005\n\014TargetRender\022@\n\017render" - + "ing_build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.goog" - + "leapis.com/Build\022\\\n\017rendering_state\030\002 \001(" - + "\0162>.google.cloud.deploy.v1.Release.Targe" - + "tRender.TargetRenderStateB\003\340A\003\022=\n\010metada" - + "ta\030\006 \001(\0132&.google.cloud.deploy.v1.Render" - + "MetadataB\003\340A\003\022U\n\rfailure_cause\030\004 \001(\01629.g" - + "oogle.cloud.deploy.v1.Release.TargetRend" - + "er.FailureCauseB\003\340A\003\022\034\n\017failure_message\030" - + "\005 \001(\tB\003\340A\003\"d\n\021TargetRenderState\022#\n\037TARGE" - + "T_RENDER_STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDE" - + "D\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\"\211\002\n\014Fai" - + "lureCause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000" - + "\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTI" - + "ON_FAILED\020\002\022\036\n\032CLOUD_BUILD_REQUEST_FAILE" - + "D\020\003\022!\n\035VERIFICATION_CONFIG_NOT_FOUND\020\004\022\033" - + "\n\027CUSTOM_ACTION_NOT_FOUND\020\005\022%\n!DEPLOYMEN" - + "T_STRATEGY_NOT_SUPPORTED\020\006\022 \n\034RENDER_FEA" - + "TURE_NOT_SUPPORTED\020\007\032\'\n\025ReleaseReadyCond" - + "ition\022\016\n\006status\030\001 \001(\010\032\362\001\n\032SkaffoldSuppor" - + "tedCondition\022\016\n\006status\030\001 \001(\010\022L\n\026skaffold" - + "_support_state\030\002 \001(\0162,.google.cloud.depl" - + "oy.v1.SkaffoldSupportState\0229\n\025maintenanc" - + "e_mode_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\022;\n\027support_expiration_time\030\004 \001(\0132\032" - + ".google.protobuf.Timestamp\032\314\001\n\020ReleaseCo" - + "ndition\022V\n\027release_ready_condition\030\001 \001(\013" - + "25.google.cloud.deploy.v1.Release.Releas" - + "eReadyCondition\022`\n\034skaffold_supported_co" - + "ndition\030\002 \001(\0132:.google.cloud.deploy.v1.R" - + "elease.SkaffoldSupportedCondition\0322\n\020Ann" - + "otationsEntry\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\005val" - + "ue\030\002 \001(\t:\0028\001\032^\n\024TargetArtifactsEntry\022\013\n\003" - + "key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.cloud." - + "deploy.v1.TargetArtifact:\0028\001\032b\n\022TargetRe" - + "ndersEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132," - + ".google.cloud.deploy.v1.Release.TargetRe" - + "nder:\0028\001\0327\n\025DeployParametersEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\013RenderState" - + "\022\034\n\030RENDER_STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEE" - + "DED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003:\212\001\352A\206" - + "\001\n\"clouddeploy.googleapis.com/Release\022`p" - + "rojects/{project}/locations/{location}/d" - + "eliveryPipelines/{delivery_pipeline}/rel" - + "eases/{release}\"\362\001\n\031CreateDeployPolicyRe" - + "quest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'clouddepl" - + "oy.googleapis.com/DeployPolicy\022\035\n\020deploy" - + "_policy_id\030\002 \001(\tB\003\340A\002\022@\n\rdeploy_policy\030\003" - + " \001(\0132$.google.cloud.deploy.v1.DeployPoli" - + "cyB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvali" - + "date_only\030\005 \001(\010B\003\340A\001\"\344\001\n\031UpdateDeployPol" - + "icyRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\022@\n\rdeploy_polic" - + "y\030\002 \001(\0132$.google.cloud.deploy.v1.DeployP" - + "olicyB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\ra" - + "llow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only" - + "\030\005 \001(\010B\003\340A\001\"\276\001\n\031DeleteDeployPolicyReques" - + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'clouddeploy.goo" - + "gleapis.com/DeployPolicy\022\027\n\nrequest_id\030\002" - + " \001(\tB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n" - + "\rvalidate_only\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB" - + "\003\340A\001\"\245\001\n\031ListDeployPoliciesRequest\022?\n\006pa" - + "rent\030\001 \001(\tB/\340A\002\372A)\022\'clouddeploy.googleap" - + "is.com/DeployPolicy\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\010or" - + "der_by\030\005 \001(\t\"\211\001\n\032ListDeployPoliciesRespo" - + "nse\022=\n\017deploy_policies\030\001 \003(\0132$.google.cl" - + "oud.deploy.v1.DeployPolicy\022\027\n\017next_page_" - + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"W\n\026GetD" - + "eployPolicyRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)" - + "\n\'clouddeploy.googleapis.com/DeployPolic" - + "y\"+\n\rBuildArtifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag" - + "\030\002 \001(\t\"\253\003\n\016TargetArtifact\022\033\n\014artifact_ur" - + "i\030\004 \001(\tB\003\340A\003H\000\022!\n\024skaffold_config_path\030\002" - + " \001(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001(\tB\003\340A\003\022X\n" - + "\017phase_artifacts\030\005 \003(\0132:.google.cloud.de" - + "ploy.v1.TargetArtifact.PhaseArtifactsEnt" - + "ryB\003\340A\003\032o\n\rPhaseArtifact\022!\n\024skaffold_con" - + "fig_path\030\001 \001(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001" - + "(\tB\003\340A\003\022\037\n\022job_manifests_path\030\004 \001(\tB\003\340A\003" - + "\032k\n\023PhaseArtifactsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005" - + "value\030\002 \001(\01324.google.cloud.deploy.v1.Tar" - + "getArtifact.PhaseArtifact:\0028\001B\005\n\003uri\"H\n\016" - + "DeployArtifact\022\031\n\014artifact_uri\030\001 \001(\tB\003\340A" - + "\003\022\033\n\016manifest_paths\030\002 \003(\tB\003\340A\003\"M\n\026CloudR" - + "unRenderMetadata\0223\n\007service\030\001 \001(\tB\"\340A\003\372A" - + "\034\n\032run.googleapis.com/Service\"\225\001\n\016Render" - + "Metadata\022F\n\tcloud_run\030\001 \001(\0132..google.clo" - + "ud.deploy.v1.CloudRunRenderMetadataB\003\340A\003" - + "\022;\n\006custom\030\002 \001(\0132&.google.cloud.deploy.v" - + "1.CustomMetadataB\003\340A\003\"\267\001\n\023ListReleasesRe" - + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clouddepl" - + "oy.googleapis.com/DeliveryPipeline\022\026\n\tpa" - + "ge_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\"w\n\024ListReleasesResponse\0221\n\010relea" - + "ses\030\001 \003(\0132\037.google.cloud.deploy.v1.Relea" - + "se\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"M\n\021GetReleaseRequest\0228\n\004name\030\001 " - + "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" - + "Release\"\261\002\n\024CreateReleaseRequest\022C\n\006pare" - + "nt\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.googleapis" - + ".com/DeliveryPipeline\022\027\n\nrelease_id\030\002 \001(" - + "\tB\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.cloud.d" - + "eploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" - + "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022O\n\026ov" - + "erride_deploy_policy\030\006 \003(\tB/\340A\001\372A)\n\'clou" - + "ddeploy.googleapis.com/DeployPolicy\"\223\017\n\007" - + "Rollout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB" - + "\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotations" - + "\030\004 \003(\01320.google.cloud.deploy.v1.Rollout." - + "AnnotationsEntry\022;\n\006labels\030\005 \003(\0132+.googl" - + "e.cloud.deploy.v1.Rollout.LabelsEntry\0224\n" - + "\013create_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0225\n\014enqueue_ti" - + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022:\n\021deploy_start_time\030\t \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0228\n\017deploy_end_time" - + "\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\026\n\ttarget_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_stat" - + "e\030\014 \001(\0162-.google.cloud.deploy.v1.Rollout" - + ".ApprovalStateB\003\340A\003\0229\n\005state\030\r \001(\0162%.goo" - + "gle.cloud.deploy.v1.Rollout.StateB\003\340A\003\022\033" - + "\n\016failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deploying" - + "_build\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googlea" - + "pis.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_fa" - + "ilure_cause\030\023 \001(\0162,.google.cloud.deploy." - + "v1.Rollout.FailureCauseB\003\340A\003\0222\n\006phases\030\027" - + " \003(\0132\035.google.cloud.deploy.v1.PhaseB\003\340A\003" - + "\0227\n\010metadata\030\030 \001(\0132 .google.cloud.deploy" - + ".v1.MetadataB\003\340A\003\022\037\n\022controller_rollout\030" - + "\031 \001(\tB\003\340A\003\022 \n\023rollback_of_rollout\030\032 \001(\tB" - + "\003\340A\003\022$\n\027rolled_back_by_rollouts\030\033 \003(\tB\003\340" - + "A\003\022)\n\034active_repair_automation_run\030\034 \001(\t" - + "B\003\340A\003\0322\n\020AnnotationsEntry\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\"{\n\rApprovalStat" - + "e\022\036\n\032APPROVAL_STATE_UNSPECIFIED\020\000\022\022\n\016NEE" - + "DS_APPROVAL\020\001\022\032\n\026DOES_NOT_NEED_APPROVAL\020" - + "\002\022\014\n\010APPROVED\020\003\022\014\n\010REJECTED\020\004\"\304\001\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n" - + "\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\022\024\n\020PENDING_AP" - + "PROVAL\020\004\022\025\n\021APPROVAL_REJECTED\020\005\022\013\n\007PENDI" - + "NG\020\006\022\023\n\017PENDING_RELEASE\020\007\022\016\n\nCANCELLING\020" - + "\010\022\r\n\tCANCELLED\020\t\022\n\n\006HALTED\020\n\"\212\002\n\014Failure" - + "Cause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027" - + "CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_F" - + "AILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\022\n\016RELEAS" - + "E_FAILED\020\004\022\025\n\021RELEASE_ABANDONED\020\005\022!\n\035VER" - + "IFICATION_CONFIG_NOT_FOUND\020\006\022\036\n\032CLOUD_BU" - + "ILD_REQUEST_FAILED\020\007\022#\n\037OPERATION_FEATUR" - + "E_NOT_SUPPORTED\020\010:\235\001\352A\231\001\n\"clouddeploy.go" - + "ogleapis.com/Rollout\022sprojects/{project}" - + "/locations/{location}/deliveryPipelines/" - + "{delivery_pipeline}/releases/{release}/r" - + "ollouts/{rollout}\"\325\001\n\010Metadata\022@\n\tcloud_" - + "run\030\001 \001(\0132(.google.cloud.deploy.v1.Cloud" - + "RunMetadataB\003\340A\003\022J\n\nautomation\030\002 \001(\01321.g" - + "oogle.cloud.deploy.v1.AutomationRolloutM" - + "etadataB\003\340A\003\022;\n\006custom\030\003 \001(\0132&.google.cl" - + "oud.deploy.v1.CustomMetadataB\003\340A\003\"\345\001\n\024De" - + "ployJobRunMetadata\022@\n\tcloud_run\030\001 \001(\0132(." - + "google.cloud.deploy.v1.CloudRunMetadataB" - + "\003\340A\003\022N\n\rcustom_target\030\002 \001(\01322.google.clo" - + "ud.deploy.v1.CustomTargetDeployMetadataB" - + "\003\340A\003\022;\n\006custom\030\003 \001(\0132&.google.cloud.depl" - + "oy.v1.CustomMetadataB\003\340A\003\"\246\001\n\020CloudRunMe" - + "tadata\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.goo" - + "gleapis.com/Service\022\031\n\014service_urls\030\002 \003(" - + "\tB\003\340A\003\022\025\n\010revision\030\003 \001(\tB\003\340A\003\022+\n\003job\030\004 \001" - + "(\tB\036\340A\003\372A\030\n\026run.googleapis.com/Job\"7\n\032Cu" - + "stomTargetDeployMetadata\022\031\n\014skip_message" - + "\030\001 \001(\tB\003\340A\003\"\213\001\n\031AutomationRolloutMetadat" - + "a\022#\n\026promote_automation_run\030\001 \001(\tB\003\340A\003\022$" - + "\n\027advance_automation_runs\030\002 \003(\tB\003\340A\003\022#\n\026" - + "repair_automation_runs\030\003 \003(\tB\003\340A\003\"\210\001\n\016Cu" - + "stomMetadata\022G\n\006values\030\001 \003(\01322.google.cl" - + "oud.deploy.v1.CustomMetadata.ValuesEntry" - + "B\003\340A\003\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\374\002\n\005Phase\022\017\n\002id\030\001 \001(\tB\003\340A\003\022" - + "7\n\005state\030\003 \001(\0162#.google.cloud.deploy.v1." - + "Phase.StateB\003\340A\003\022\031\n\014skip_message\030\006 \001(\tB\003" - + "\340A\003\022F\n\017deployment_jobs\030\004 \001(\0132&.google.cl" - + "oud.deploy.v1.DeploymentJobsB\003\340A\003H\000\022K\n\022c" - + "hild_rollout_jobs\030\005 \001(\0132(.google.cloud.d" - + "eploy.v1.ChildRolloutJobsB\003\340A\003H\000\"q\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n" - + "\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020" - + "\004\022\013\n\007ABORTED\020\005\022\013\n\007SKIPPED\020\006B\006\n\004jobs\"\357\001\n\016" - + "DeploymentJobs\0224\n\ndeploy_job\030\001 \001(\0132\033.goo" - + "gle.cloud.deploy.v1.JobB\003\340A\003\0224\n\nverify_j" - + "ob\030\002 \001(\0132\033.google.cloud.deploy.v1.JobB\003\340" - + "A\003\0227\n\rpredeploy_job\030\003 \001(\0132\033.google.cloud" - + ".deploy.v1.JobB\003\340A\003\0228\n\016postdeploy_job\030\004 " - + "\001(\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\"\221\001" - + "\n\020ChildRolloutJobs\022=\n\023create_rollout_job" - + "s\030\001 \003(\0132\033.google.cloud.deploy.v1.JobB\003\340A" - + "\003\022>\n\024advance_rollout_jobs\030\002 \003(\0132\033.google" - + ".cloud.deploy.v1.JobB\003\340A\003\"\367\005\n\003Job\022\017\n\002id\030" - + "\001 \001(\tB\003\340A\003\0225\n\005state\030\002 \001(\0162!.google.cloud" - + ".deploy.v1.Job.StateB\003\340A\003\022\031\n\014skip_messag" - + "e\030\010 \001(\tB\003\340A\003\022:\n\007job_run\030\003 \001(\tB)\340A\003\372A#\n!c" - + "louddeploy.googleapis.com/JobRun\022<\n\ndepl" - + "oy_job\030\004 \001(\0132!.google.cloud.deploy.v1.De" - + "ployJobB\003\340A\003H\000\022<\n\nverify_job\030\005 \001(\0132!.goo" - + "gle.cloud.deploy.v1.VerifyJobB\003\340A\003H\000\022B\n\r" - + "predeploy_job\030\t \001(\0132$.google.cloud.deplo" - + "y.v1.PredeployJobB\003\340A\003H\000\022D\n\016postdeploy_j" - + "ob\030\n \001(\0132%.google.cloud.deploy.v1.Postde" - + "ployJobB\003\340A\003H\000\022V\n\030create_child_rollout_j" - + "ob\030\006 \001(\0132-.google.cloud.deploy.v1.Create" - + "ChildRolloutJobB\003\340A\003H\000\022X\n\031advance_child_" - + "rollout_job\030\007 \001(\0132..google.cloud.deploy." - + "v1.AdvanceChildRolloutJobB\003\340A\003H\000\"\214\001\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014" - + "\n\010DISABLED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCCEED" - + "ED\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007SKIPPED" - + "\020\007\022\013\n\007IGNORED\020\010B\n\n\010job_type\"\013\n\tDeployJob" - + "\"\013\n\tVerifyJob\"$\n\014PredeployJob\022\024\n\007actions" - + "\030\001 \003(\tB\003\340A\003\"%\n\rPostdeployJob\022\024\n\007actions\030" - + "\001 \003(\tB\003\340A\003\"\027\n\025CreateChildRolloutJob\"\030\n\026A" - + "dvanceChildRolloutJob\"\256\001\n\023ListRolloutsRe" - + "quest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"clouddepl" - + "oy.googleapis.com/Release\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\006fi" - + "lter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w" - + "\n\024ListRolloutsResponse\0221\n\010rollouts\030\001 \003(\013" - + "2\037.google.cloud.deploy.v1.Rollout\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" - + "M\n\021GetRolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" - + "A$\n\"clouddeploy.googleapis.com/Rollout\"\310" - + "\002\n\024CreateRolloutRequest\022:\n\006parent\030\001 \001(\tB" - + "*\340A\002\372A$\n\"clouddeploy.googleapis.com/Rele" - + "ase\022\027\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225\n\007rollout\030" - + "\003 \001(\0132\037.google.cloud.deploy.v1.RolloutB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate" - + "_only\030\005 \001(\010B\003\340A\001\022O\n\026override_deploy_poli" - + "cy\030\006 \003(\tB/\340A\001\372A)\n\'clouddeploy.googleapis" - + ".com/DeployPolicy\022\036\n\021starting_phase_id\030\007" - + " \001(\tB\003\340A\001\"\200\002\n\021OperationMetadata\0224\n\013creat" - + "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobu" - + "f.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_message\030\005 \001(\t" - + "B\003\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340" - + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\271\001\n\025Approve" - + "RolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"cl" - + "ouddeploy.googleapis.com/Rollout\022\025\n\010appr" - + "oved\030\002 \001(\010B\003\340A\002\022O\n\026override_deploy_polic" - + "y\030\003 \003(\tB/\340A\001\372A)\n\'clouddeploy.googleapis." - + "com/DeployPolicy\"\030\n\026ApproveRolloutRespon" - + "se\"\271\001\n\025AdvanceRolloutRequest\0228\n\004name\030\001 \001" - + "(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/R" - + "ollout\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022O\n\026overrid" - + "e_deploy_policy\030\003 \003(\tB/\340A\001\372A)\n\'clouddepl" - + "oy.googleapis.com/DeployPolicy\"\030\n\026Advanc" - + "eRolloutResponse\"\241\001\n\024CancelRolloutReques" - + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.goo" - + "gleapis.com/Rollout\022O\n\026override_deploy_p" - + "olicy\030\002 \003(\tB/\340A\001\372A)\n\'clouddeploy.googlea" - + "pis.com/DeployPolicy\"\027\n\025CancelRolloutRes" - + "ponse\"\314\001\n\020IgnoreJobRequest\022;\n\007rollout\030\001 " - + "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" - + "Rollout\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022\023\n\006job_id" - + "\030\003 \001(\tB\003\340A\002\022O\n\026override_deploy_policy\030\004 " - + "\003(\tB/\340A\001\372A)\n\'clouddeploy.googleapis.com/" - + "DeployPolicy\"\023\n\021IgnoreJobResponse\"\313\001\n\017Re" - + "tryJobRequest\022;\n\007rollout\030\001 \001(\tB*\340A\002\372A$\n\"" - + "clouddeploy.googleapis.com/Rollout\022\025\n\010ph" - + "ase_id\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022O" - + "\n\026override_deploy_policy\030\004 \003(\tB/\340A\001\372A)\n\'" - + "clouddeploy.googleapis.com/DeployPolicy\"" - + "\022\n\020RetryJobResponse\"Q\n\025AbandonReleaseReq" - + "uest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy." - + "googleapis.com/Release\"\030\n\026AbandonRelease" - + "Response\"\320\010\n\006JobRun\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020" - + "\n\003uid\030\002 \001(\tB\003\340A\003\022\025\n\010phase_id\030\003 \001(\tB\003\340A\003\022" - + "\023\n\006job_id\030\004 \001(\tB\003\340A\003\0224\n\013create_time\030\005 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\nst" - + "art_time\030\006 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0221\n\010end_time\030\007 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0228\n\005state\030\010 \001(\0162$.goog" - + "le.cloud.deploy.v1.JobRun.StateB\003\340A\003\022C\n\016" - + "deploy_job_run\030\t \001(\0132$.google.cloud.depl" - + "oy.v1.DeployJobRunB\003\340A\003H\000\022C\n\016verify_job_" - + "run\030\n \001(\0132$.google.cloud.deploy.v1.Verif" - + "yJobRunB\003\340A\003H\000\022I\n\021predeploy_job_run\030\016 \001(" - + "\0132\'.google.cloud.deploy.v1.PredeployJobR" - + "unB\003\340A\003H\000\022K\n\022postdeploy_job_run\030\017 \001(\0132(." - + "google.cloud.deploy.v1.PostdeployJobRunB" - + "\003\340A\003H\000\022]\n\034create_child_rollout_job_run\030\014" - + " \001(\01320.google.cloud.deploy.v1.CreateChil" - + "dRolloutJobRunB\003\340A\003H\000\022_\n\035advance_child_r" - + "ollout_job_run\030\r \001(\01321.google.cloud.depl" - + "oy.v1.AdvanceChildRolloutJobRunB\003\340A\003H\000\022\021" - + "\n\004etag\030\013 \001(\tB\003\340A\003\"k\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEEDED\020" - + "\002\022\n\n\006FAILED\020\003\022\017\n\013TERMINATING\020\004\022\016\n\nTERMIN" - + "ATED\020\005:\257\001\352A\253\001\n!clouddeploy.googleapis.co" - + "m/JobRun\022\205\001projects/{project}/locations/" - + "{location}/deliveryPipelines/{delivery_p" - + "ipeline}/releases/{release}/rollouts/{ro" - + "llout}/jobRuns/{job_run}B\t\n\007job_run\"\225\004\n\014" - + "DeployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037clo" - + "udbuild.googleapis.com/Build\022M\n\rfailure_" - + "cause\030\002 \001(\01621.google.cloud.deploy.v1.Dep" - + "loyJobRun.FailureCauseB\003\340A\003\022\034\n\017failure_m" - + "essage\030\003 \001(\tB\003\340A\003\022C\n\010metadata\030\004 \001(\0132,.go" - + "ogle.cloud.deploy.v1.DeployJobRunMetadat" - + "aB\003\340A\003\022=\n\010artifact\030\005 \001(\0132&.google.cloud." - + "deploy.v1.DeployArtifactB\003\340A\003\"\333\001\n\014Failur" - + "eCause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n" - + "\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_" - + "FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022 \n\034MISSI" - + "NG_RESOURCES_FOR_CANARY\020\004\022\036\n\032CLOUD_BUILD" - + "_REQUEST_FAILED\020\005\022 \n\034DEPLOY_FEATURE_NOT_" - + "SUPPORTED\020\006\"\250\003\n\014VerifyJobRun\0226\n\005build\030\001 " - + "\001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.com/B" - + "uild\022\031\n\014artifact_uri\030\002 \001(\tB\003\340A\003\022\033\n\016event" - + "_log_path\030\003 \001(\tB\003\340A\003\022M\n\rfailure_cause\030\004 " - + "\001(\01621.google.cloud.deploy.v1.VerifyJobRu" - + "n.FailureCauseB\003\340A\003\022\034\n\017failure_message\030\005" - + " \001(\tB\003\340A\003\"\272\001\n\014FailureCause\022\035\n\031FAILURE_CA" - + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" - + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" - + "_EXCEEDED\020\003\022!\n\035VERIFICATION_CONFIG_NOT_F" - + "OUND\020\004\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\005\"\323" - + "\002\n\017PredeployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A" - + "!\n\037cloudbuild.googleapis.com/Build\022P\n\rfa" - + "ilure_cause\030\002 \001(\01624.google.cloud.deploy." - + "v1.PredeployJobRun.FailureCauseB\003\340A\003\022\034\n\017" - + "failure_message\030\003 \001(\tB\003\340A\003\"\227\001\n\014FailureCa" - + "use\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CL" - + "OUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAI" - + "LED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\036\n\032CLOUD_BU" - + "ILD_REQUEST_FAILED\020\004\"\325\002\n\020PostdeployJobRu" - + "n\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.goo" - + "gleapis.com/Build\022Q\n\rfailure_cause\030\002 \001(\016" - + "25.google.cloud.deploy.v1.PostdeployJobR" + + "\005value\030\002 \001(\t:\0028\001\"\221\001\n\017TargetAttribute\022\n\n\002" + + "id\030\001 \001(\t\022C\n\006labels\030\002 \003(\01323.google.cloud." + + "deploy.v1.TargetAttribute.LabelsEntry\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"_\n\nPolicyRule\022I\n\023rollout_restrictio" + + "n\030\002 \001(\0132*.google.cloud.deploy.v1.Rollout" + + "RestrictionH\000B\006\n\004rule\"\244\003\n\022RolloutRestric" + + "tion\022\017\n\002id\030\001 \001(\tB\003\340A\002\022C\n\010invokers\030\002 \003(\0162" + + ",.google.cloud.deploy.v1.DeployPolicy.In" + + "vokerB\003\340A\001\022O\n\007actions\030\003 \003(\01629.google.clo" + + "ud.deploy.v1.RolloutRestriction.RolloutA" + + "ctionsB\003\340A\001\022>\n\014time_windows\030\004 \001(\0132#.goog" + + "le.cloud.deploy.v1.TimeWindowsB\003\340A\002\"\246\001\n\016" + + "RolloutActions\022\037\n\033ROLLOUT_ACTIONS_UNSPEC" + + "IFIED\020\000\022\013\n\007ADVANCE\020\001\022\013\n\007APPROVE\020\002\022\n\n\006CAN" + + "CEL\020\003\022\n\n\006CREATE\020\004\022\016\n\nIGNORE_JOB\020\005\022\r\n\tRET" + + "RY_JOB\020\006\022\014\n\010ROLLBACK\020\007\022\024\n\020TERMINATE_JOBR" + + "UN\020\010\"\256\001\n\013TimeWindows\022\026\n\ttime_zone\030\001 \001(\tB" + + "\003\340A\002\022D\n\020one_time_windows\030\002 \003(\0132%.google." + + "cloud.deploy.v1.OneTimeWindowB\003\340A\001\022A\n\016we" + + "ekly_windows\030\003 \003(\0132$.google.cloud.deploy" + + ".v1.WeeklyWindowB\003\340A\001\"\305\001\n\rOneTimeWindow\022" + + "*\n\nstart_date\030\001 \001(\0132\021.google.type.DateB\003" + + "\340A\002\022/\n\nstart_time\030\002 \001(\0132\026.google.type.Ti" + + "meOfDayB\003\340A\002\022(\n\010end_date\030\003 \001(\0132\021.google." + + "type.DateB\003\340A\002\022-\n\010end_time\030\004 \001(\0132\026.googl" + + "e.type.TimeOfDayB\003\340A\002\"\241\001\n\014WeeklyWindow\0221" + + "\n\014days_of_week\030\001 \003(\0162\026.google.type.DayOf" + + "WeekB\003\340A\001\022/\n\nstart_time\030\002 \001(\0132\026.google.t" + + "ype.TimeOfDayB\003\340A\001\022-\n\010end_time\030\003 \001(\0132\026.g" + + "oogle.type.TimeOfDayB\003\340A\001\"c\n\017PolicyViola" + + "tion\022P\n\030policy_violation_details\030\001 \003(\0132." + + ".google.cloud.deploy.v1.PolicyViolationD" + + "etails\"R\n\026PolicyViolationDetails\022\016\n\006poli" + + "cy\030\001 \001(\t\022\017\n\007rule_id\030\002 \001(\t\022\027\n\017failure_mes" + + "sage\030\003 \001(\t\"\263\027\n\007Release\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(\t" + + "\022E\n\013annotations\030\004 \003(\01320.google.cloud.dep" + + "loy.v1.Release.AnnotationsEntry\022;\n\006label" + + "s\030\005 \003(\0132+.google.cloud.deploy.v1.Release" + + ".LabelsEntry\022\026\n\tabandoned\030\027 \001(\010B\003\340A\003\0224\n\013" + + "create_time\030\006 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022:\n\021render_start_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0228\n\017render" + + "_end_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\033\n\023skaffold_config_uri\030\021 \001(\t\022\034\n" + + "\024skaffold_config_path\030\t \001(\t\022>\n\017build_art" + + "ifacts\030\n \003(\0132%.google.cloud.deploy.v1.Bu" + + "ildArtifact\022Q\n\032delivery_pipeline_snapsho" + + "t\030\013 \001(\0132(.google.cloud.deploy.v1.Deliver" + + "yPipelineB\003\340A\003\022=\n\020target_snapshots\030\014 \003(\013" + + "2\036.google.cloud.deploy.v1.TargetB\003\340A\003\022S\n" + + "\034custom_target_type_snapshots\030\033 \003(\0132(.go" + + "ogle.cloud.deploy.v1.CustomTargetTypeB\003\340" + + "A\003\022F\n\014render_state\030\r \001(\0162+.google.cloud.", + "deploy.v1.Release.RenderStateB\003\340A\003\022\014\n\004et" + + "ag\030\020 \001(\t\022\035\n\020skaffold_version\030\023 \001(\tB\003\340A\001\022" + + "S\n\020target_artifacts\030\024 \003(\01324.google.cloud" + + ".deploy.v1.Release.TargetArtifactsEntryB" + + "\003\340A\003\022O\n\016target_renders\030\026 \003(\01322.google.cl" + + "oud.deploy.v1.Release.TargetRendersEntry" + + "B\003\340A\003\022H\n\tcondition\030\030 \001(\01320.google.cloud." + + "deploy.v1.Release.ReleaseConditionB\003\340A\003\022" + + "U\n\021deploy_parameters\030\031 \003(\01325.google.clou" + + "d.deploy.v1.Release.DeployParametersEntr" + + "yB\003\340A\001\032\324\005\n\014TargetRender\022@\n\017rendering_bui" + + "ld\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis." + + "com/Build\022\\\n\017rendering_state\030\002 \001(\0162>.goo" + + "gle.cloud.deploy.v1.Release.TargetRender" + + ".TargetRenderStateB\003\340A\003\022=\n\010metadata\030\006 \001(" + + "\0132&.google.cloud.deploy.v1.RenderMetadat" + + "aB\003\340A\003\022U\n\rfailure_cause\030\004 \001(\01629.google.c" + + "loud.deploy.v1.Release.TargetRender.Fail" + + "ureCauseB\003\340A\003\022\034\n\017failure_message\030\005 \001(\tB\003" + + "\340A\003\"d\n\021TargetRenderState\022#\n\037TARGET_RENDE" + + "R_STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006" + + "FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\"\211\002\n\014FailureCau" + + "se\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLO" + + "UD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAIL" + + "ED\020\002\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\003\022!\n\035" + + "VERIFICATION_CONFIG_NOT_FOUND\020\004\022\033\n\027CUSTO" + + "M_ACTION_NOT_FOUND\020\005\022%\n!DEPLOYMENT_STRAT" + + "EGY_NOT_SUPPORTED\020\006\022 \n\034RENDER_FEATURE_NO" + + "T_SUPPORTED\020\007\032\'\n\025ReleaseReadyCondition\022\016" + + "\n\006status\030\001 \001(\010\032\362\001\n\032SkaffoldSupportedCond" + + "ition\022\016\n\006status\030\001 \001(\010\022L\n\026skaffold_suppor" + + "t_state\030\002 \001(\0162,.google.cloud.deploy.v1.S" + + "kaffoldSupportState\0229\n\025maintenance_mode_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022;" + + "\n\027support_expiration_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\032\314\001\n\020ReleaseCondition" + + "\022V\n\027release_ready_condition\030\001 \001(\01325.goog" + + "le.cloud.deploy.v1.Release.ReleaseReadyC" + + "ondition\022`\n\034skaffold_supported_condition" + + "\030\002 \001(\0132:.google.cloud.deploy.v1.Release." + + "SkaffoldSupportedCondition\0322\n\020Annotation" + + "sEntry\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\032^\n\024TargetArtifactsEntry\022\013\n\003key\030\001 \001" + + "(\t\0225\n\005value\030\002 \001(\0132&.google.cloud.deploy." + + "v1.TargetArtifact:\0028\001\032b\n\022TargetRendersEn" + + "try\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google" + + ".cloud.deploy.v1.Release.TargetRender:\0028" + + "\001\0327\n\025DeployParametersEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"W\n\013RenderState\022\034\n\030REN" + + "DER_STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n" + + "\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003:\212\001\352A\206\001\n\"clou" + + "ddeploy.googleapis.com/Release\022`projects" + + "/{project}/locations/{location}/delivery" + + "Pipelines/{delivery_pipeline}/releases/{" + + "release}\"\362\001\n\031CreateDeployPolicyRequest\022?" + + "\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'clouddeploy.goog" + + "leapis.com/DeployPolicy\022\035\n\020deploy_policy" + + "_id\030\002 \001(\tB\003\340A\002\022@\n\rdeploy_policy\030\003 \001(\0132$." + + "google.cloud.deploy.v1.DeployPolicyB\003\340A\002" + + "\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_on" + + "ly\030\005 \001(\010B\003\340A\001\"\344\001\n\031UpdateDeployPolicyRequ" + + "est\0224\n\013update_mask\030\001 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\022@\n\rdeploy_policy\030\002 \001(\013" + + "2$.google.cloud.deploy.v1.DeployPolicyB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_mi" + + "ssing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B" + + "\003\340A\001\"\276\001\n\031DeleteDeployPolicyRequest\022=\n\004na" + + "me\030\001 \001(\tB/\340A\002\372A)\n\'clouddeploy.googleapis" + + ".com/DeployPolicy\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + + "A\001\022\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalida" + + "te_only\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\245\001" + + "\n\031ListDeployPoliciesRequest\022?\n\006parent\030\001 " + + "\001(\tB/\340A\002\372A)\022\'clouddeploy.googleapis.com/" + + "DeployPolicy\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\"\211\001\n\032ListDeployPoliciesResponse\022=\n\017" + + "deploy_policies\030\001 \003(\0132$.google.cloud.dep" + + "loy.v1.DeployPolicy\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"W\n\026GetDeployPo" + + "licyRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'cloud" + + "deploy.googleapis.com/DeployPolicy\"+\n\rBu" + + "ildArtifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030\002 \001(\t\"" + + "\253\003\n\016TargetArtifact\022\033\n\014artifact_uri\030\004 \001(\t" + + "B\003\340A\003H\000\022!\n\024skaffold_config_path\030\002 \001(\tB\003\340" + + "A\003\022\032\n\rmanifest_path\030\003 \001(\tB\003\340A\003\022X\n\017phase_" + + "artifacts\030\005 \003(\0132:.google.cloud.deploy.v1" + + ".TargetArtifact.PhaseArtifactsEntryB\003\340A\003" + + "\032o\n\rPhaseArtifact\022!\n\024skaffold_config_pat" + + "h\030\001 \001(\tB\003\340A\003\022\032\n\rmanifest_path\030\003 \001(\tB\003\340A\003" + + "\022\037\n\022job_manifests_path\030\004 \001(\tB\003\340A\003\032k\n\023Pha" + + "seArtifactsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005value\030\002" + + " \001(\01324.google.cloud.deploy.v1.TargetArti" + + "fact.PhaseArtifact:\0028\001B\005\n\003uri\"H\n\016DeployA" + + "rtifact\022\031\n\014artifact_uri\030\001 \001(\tB\003\340A\003\022\033\n\016ma" + + "nifest_paths\030\002 \003(\tB\003\340A\003\"M\n\026CloudRunRende" + + "rMetadata\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run." + + "googleapis.com/Service\"\225\001\n\016RenderMetadat" + + "a\022F\n\tcloud_run\030\001 \001(\0132..google.cloud.depl" + + "oy.v1.CloudRunRenderMetadataB\003\340A\003\022;\n\006cus" + + "tom\030\002 \001(\0132&.google.cloud.deploy.v1.Custo" + + "mMetadataB\003\340A\003\"\267\001\n\023ListReleasesRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.goog" + + "leapis.com/DeliveryPipeline\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" + + "\"w\n\024ListReleasesResponse\0221\n\010releases\030\001 \003" + + "(\0132\037.google.cloud.deploy.v1.Release\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"M\n\021GetReleaseRequest\0228\n\004name\030\001 \001(\tB*\340A" + + "\002\372A$\n\"clouddeploy.googleapis.com/Release" + + "\"\261\002\n\024CreateReleaseRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+clouddeploy.googleapis.com/De" + + "liveryPipeline\022\027\n\nrelease_id\030\002 \001(\tB\003\340A\002\022" + + "5\n\007release\030\003 \001(\0132\037.google.cloud.deploy.v" + + "1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022" + + "\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022O\n\026override_" + + "deploy_policy\030\006 \003(\tB/\340A\001\372A)\n\'clouddeploy" + + ".googleapis.com/DeployPolicy\"\223\017\n\007Rollout" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n" + + "\013description\030\003 \001(\t\022E\n\013annotations\030\004 \003(\0132" + + "0.google.cloud.deploy.v1.Rollout.Annotat" + + "ionsEntry\022;\n\006labels\030\005 \003(\0132+.google.cloud" + + ".deploy.v1.Rollout.LabelsEntry\0224\n\013create" + + "_time\030\006 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0225\n\014enqueue_time\030\010 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022:\n\021de" + + "ploy_start_time\030\t \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0228\n\017deploy_end_time\030\n \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\026\n\ttarg" + + "et_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_state\030\014 \001(\016" + + "2-.google.cloud.deploy.v1.Rollout.Approv" + + "alStateB\003\340A\003\0229\n\005state\030\r \001(\0162%.google.clo" + + "ud.deploy.v1.Rollout.StateB\003\340A\003\022\033\n\016failu" + + "re_reason\030\016 \001(\tB\003\340A\003\022@\n\017deploying_build\030" + + "\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.com" + + "/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_failure_c" + + "ause\030\023 \001(\0162,.google.cloud.deploy.v1.Roll" + + "out.FailureCauseB\003\340A\003\0222\n\006phases\030\027 \003(\0132\035." + + "google.cloud.deploy.v1.PhaseB\003\340A\003\0227\n\010met" + + "adata\030\030 \001(\0132 .google.cloud.deploy.v1.Met" + + "adataB\003\340A\003\022\037\n\022controller_rollout\030\031 \001(\tB\003" + + "\340A\003\022 \n\023rollback_of_rollout\030\032 \001(\tB\003\340A\003\022$\n" + + "\027rolled_back_by_rollouts\030\033 \003(\tB\003\340A\003\022)\n\034a" + + "ctive_repair_automation_run\030\034 \001(\tB\003\340A\003\0322" + + "\n\020AnnotationsEntry\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\"{\n\rApprovalState\022\036\n\032AP" + + "PROVAL_STATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_APPR" + + "OVAL\020\001\022\032\n\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010AP" + + "PROVED\020\003\022\014\n\010REJECTED\020\004\"\304\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED" + + "\020\002\022\017\n\013IN_PROGRESS\020\003\022\024\n\020PENDING_APPROVAL\020" + + "\004\022\025\n\021APPROVAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022\023\n" + + "\017PENDING_RELEASE\020\007\022\016\n\nCANCELLING\020\010\022\r\n\tCA" + + "NCELLED\020\t\022\n\n\006HALTED\020\n\"\212\002\n\014FailureCause\022\035" + + "\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_B" + + "UILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002" + + "\022\025\n\021DEADLINE_EXCEEDED\020\003\022\022\n\016RELEASE_FAILE" + + "D\020\004\022\025\n\021RELEASE_ABANDONED\020\005\022!\n\035VERIFICATI" + + "ON_CONFIG_NOT_FOUND\020\006\022\036\n\032CLOUD_BUILD_REQ" + + "UEST_FAILED\020\007\022#\n\037OPERATION_FEATURE_NOT_S" + + "UPPORTED\020\010:\235\001\352A\231\001\n\"clouddeploy.googleapi" + + "s.com/Rollout\022sprojects/{project}/locati" + + "ons/{location}/deliveryPipelines/{delive" + + "ry_pipeline}/releases/{release}/rollouts" + + "/{rollout}\"\325\001\n\010Metadata\022@\n\tcloud_run\030\001 \001" + + "(\0132(.google.cloud.deploy.v1.CloudRunMeta" + + "dataB\003\340A\003\022J\n\nautomation\030\002 \001(\01321.google.c" + + "loud.deploy.v1.AutomationRolloutMetadata" + + "B\003\340A\003\022;\n\006custom\030\003 \001(\0132&.google.cloud.dep" + + "loy.v1.CustomMetadataB\003\340A\003\"\345\001\n\024DeployJob" + + "RunMetadata\022@\n\tcloud_run\030\001 \001(\0132(.google." + + "cloud.deploy.v1.CloudRunMetadataB\003\340A\003\022N\n" + + "\rcustom_target\030\002 \001(\01322.google.cloud.depl" + + "oy.v1.CustomTargetDeployMetadataB\003\340A\003\022;\n" + + "\006custom\030\003 \001(\0132&.google.cloud.deploy.v1.C" + + "ustomMetadataB\003\340A\003\"\246\001\n\020CloudRunMetadata\022" + + "3\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.googleapis" + + ".com/Service\022\031\n\014service_urls\030\002 \003(\tB\003\340A\003\022" + + "\025\n\010revision\030\003 \001(\tB\003\340A\003\022+\n\003job\030\004 \001(\tB\036\340A\003" + + "\372A\030\n\026run.googleapis.com/Job\"7\n\032CustomTar" + + "getDeployMetadata\022\031\n\014skip_message\030\001 \001(\tB" + + "\003\340A\003\"\213\001\n\031AutomationRolloutMetadata\022#\n\026pr" + + "omote_automation_run\030\001 \001(\tB\003\340A\003\022$\n\027advan" + + "ce_automation_runs\030\002 \003(\tB\003\340A\003\022#\n\026repair_" + + "automation_runs\030\003 \003(\tB\003\340A\003\"\210\001\n\016CustomMet" + + "adata\022G\n\006values\030\001 \003(\01322.google.cloud.dep" + + "loy.v1.CustomMetadata.ValuesEntryB\003\340A\003\032-" + + "\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\374\002\n\005Phase\022\017\n\002id\030\001 \001(\tB\003\340A\003\0227\n\005stat" + + "e\030\003 \001(\0162#.google.cloud.deploy.v1.Phase.S" + + "tateB\003\340A\003\022\031\n\014skip_message\030\006 \001(\tB\003\340A\003\022F\n\017" + + "deployment_jobs\030\004 \001(\0132&.google.cloud.dep" + + "loy.v1.DeploymentJobsB\003\340A\003H\000\022K\n\022child_ro" + + "llout_jobs\030\005 \001(\0132(.google.cloud.deploy.v" + + "1.ChildRolloutJobsB\003\340A\003H\000\"q\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_PRO" + + "GRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007AB" + + "ORTED\020\005\022\013\n\007SKIPPED\020\006B\006\n\004jobs\"\357\001\n\016Deploym" + + "entJobs\0224\n\ndeploy_job\030\001 \001(\0132\033.google.clo" + + "ud.deploy.v1.JobB\003\340A\003\0224\n\nverify_job\030\002 \001(" + + "\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\0227\n\rp" + + "redeploy_job\030\003 \001(\0132\033.google.cloud.deploy" + + ".v1.JobB\003\340A\003\0228\n\016postdeploy_job\030\004 \001(\0132\033.g" + + "oogle.cloud.deploy.v1.JobB\003\340A\003\"\221\001\n\020Child" + + "RolloutJobs\022=\n\023create_rollout_jobs\030\001 \003(\013" + + "2\033.google.cloud.deploy.v1.JobB\003\340A\003\022>\n\024ad" + + "vance_rollout_jobs\030\002 \003(\0132\033.google.cloud." + + "deploy.v1.JobB\003\340A\003\"\367\005\n\003Job\022\017\n\002id\030\001 \001(\tB\003" + + "\340A\003\0225\n\005state\030\002 \001(\0162!.google.cloud.deploy" + + ".v1.Job.StateB\003\340A\003\022\031\n\014skip_message\030\010 \001(\t" + + "B\003\340A\003\022:\n\007job_run\030\003 \001(\tB)\340A\003\372A#\n!clouddep" + + "loy.googleapis.com/JobRun\022<\n\ndeploy_job\030" + + "\004 \001(\0132!.google.cloud.deploy.v1.DeployJob" + + "B\003\340A\003H\000\022<\n\nverify_job\030\005 \001(\0132!.google.clo" + + "ud.deploy.v1.VerifyJobB\003\340A\003H\000\022B\n\rpredepl" + + "oy_job\030\t \001(\0132$.google.cloud.deploy.v1.Pr" + + "edeployJobB\003\340A\003H\000\022D\n\016postdeploy_job\030\n \001(" + + "\0132%.google.cloud.deploy.v1.PostdeployJob" + + "B\003\340A\003H\000\022V\n\030create_child_rollout_job\030\006 \001(" + + "\0132-.google.cloud.deploy.v1.CreateChildRo" + + "lloutJobB\003\340A\003H\000\022X\n\031advance_child_rollout" + + "_job\030\007 \001(\0132..google.cloud.deploy.v1.Adva" + + "nceChildRolloutJobB\003\340A\003H\000\"\214\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010DISAB" + + "LED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\013\n\007I" + + "GNORED\020\010B\n\n\010job_type\"\013\n\tDeployJob\"\013\n\tVer" + + "ifyJob\"$\n\014PredeployJob\022\024\n\007actions\030\001 \003(\tB" + + "\003\340A\003\"%\n\rPostdeployJob\022\024\n\007actions\030\001 \003(\tB\003" + + "\340A\003\"\027\n\025CreateChildRolloutJob\"\030\n\026AdvanceC" + + "hildRolloutJob\"\256\001\n\023ListRolloutsRequest\022:" + + "\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.goog" + + "leapis.com/Release\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\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\"w\n\024ListR" + + "olloutsResponse\0221\n\010rollouts\030\001 \003(\0132\037.goog" + + "le.cloud.deploy.v1.Rollout\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\021GetR" + + "olloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clo" + + "uddeploy.googleapis.com/Rollout\"\310\002\n\024Crea" + + "teRolloutRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$" + + "\n\"clouddeploy.googleapis.com/Release\022\027\n\n" + + "rollout_id\030\002 \001(\tB\003\340A\002\0225\n\007rollout\030\003 \001(\0132\037" + + ".google.cloud.deploy.v1.RolloutB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005" + + " \001(\010B\003\340A\001\022O\n\026override_deploy_policy\030\006 \003(" + + "\tB/\340A\001\372A)\n\'clouddeploy.googleapis.com/De" + + "ployPolicy\022\036\n\021starting_phase_id\030\007 \001(\tB\003\340" + + "A\001\"\200\002\n\021OperationMetadata\0224\n\013create_time\030" + + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" + + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\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_message\030\005 \001(\tB\003\340A\003\022#" + + "\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013a" + + "pi_version\030\007 \001(\tB\003\340A\003\"\271\001\n\025ApproveRollout" + + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddepl" + + "oy.googleapis.com/Rollout\022\025\n\010approved\030\002 " + + "\001(\010B\003\340A\002\022O\n\026override_deploy_policy\030\003 \003(\t" + + "B/\340A\001\372A)\n\'clouddeploy.googleapis.com/Dep" + + "loyPolicy\"\030\n\026ApproveRolloutResponse\"\271\001\n\025" + + "AdvanceRolloutRequest\0228\n\004name\030\001 \001(\tB*\340A\002" + + "\372A$\n\"clouddeploy.googleapis.com/Rollout\022" + + "\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022O\n\026override_deplo" + + "y_policy\030\003 \003(\tB/\340A\001\372A)\n\'clouddeploy.goog" + + "leapis.com/DeployPolicy\"\030\n\026AdvanceRollou" + + "tResponse\"\241\001\n\024CancelRolloutRequest\0228\n\004na" + + "me\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis" + + ".com/Rollout\022O\n\026override_deploy_policy\030\002" + + " \003(\tB/\340A\001\372A)\n\'clouddeploy.googleapis.com" + + "/DeployPolicy\"\027\n\025CancelRolloutResponse\"\314" + + "\001\n\020IgnoreJobRequest\022;\n\007rollout\030\001 \001(\tB*\340A" + + "\002\372A$\n\"clouddeploy.googleapis.com/Rollout" + + "\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB" + + "\003\340A\002\022O\n\026override_deploy_policy\030\004 \003(\tB/\340A" + + "\001\372A)\n\'clouddeploy.googleapis.com/DeployP" + + "olicy\"\023\n\021IgnoreJobResponse\"\313\001\n\017RetryJobR" + + "equest\022;\n\007rollout\030\001 \001(\tB*\340A\002\372A$\n\"cloudde" + + "ploy.googleapis.com/Rollout\022\025\n\010phase_id\030" + + "\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022O\n\026overr" + + "ide_deploy_policy\030\004 \003(\tB/\340A\001\372A)\n\'cloudde" + + "ploy.googleapis.com/DeployPolicy\"\022\n\020Retr" + + "yJobResponse\"Q\n\025AbandonReleaseRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googlea" + + "pis.com/Release\"\030\n\026AbandonReleaseRespons" + + "e\"\320\010\n\006JobRun\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002" + + " \001(\tB\003\340A\003\022\025\n\010phase_id\030\003 \001(\tB\003\340A\003\022\023\n\006job_" + + "id\030\004 \001(\tB\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0223\n\nstart_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0221\n\010end_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0228\n\005state\030\010 \001(\0162$.google.clou" + + "d.deploy.v1.JobRun.StateB\003\340A\003\022C\n\016deploy_" + + "job_run\030\t \001(\0132$.google.cloud.deploy.v1.D" + + "eployJobRunB\003\340A\003H\000\022C\n\016verify_job_run\030\n \001" + + "(\0132$.google.cloud.deploy.v1.VerifyJobRun" + + "B\003\340A\003H\000\022I\n\021predeploy_job_run\030\016 \001(\0132\'.goo" + + "gle.cloud.deploy.v1.PredeployJobRunB\003\340A\003" + + "H\000\022K\n\022postdeploy_job_run\030\017 \001(\0132(.google." + + "cloud.deploy.v1.PostdeployJobRunB\003\340A\003H\000\022" + + "]\n\034create_child_rollout_job_run\030\014 \001(\01320." + + "google.cloud.deploy.v1.CreateChildRollou" + + "tJobRunB\003\340A\003H\000\022_\n\035advance_child_rollout_" + + "job_run\030\r \001(\01321.google.cloud.deploy.v1.A" + + "dvanceChildRolloutJobRunB\003\340A\003H\000\022\021\n\004etag\030" + + "\013 \001(\tB\003\340A\003\"k\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FA" + + "ILED\020\003\022\017\n\013TERMINATING\020\004\022\016\n\nTERMINATED\020\005:" + + "\257\001\352A\253\001\n!clouddeploy.googleapis.com/JobRu" + + "n\022\205\001projects/{project}/locations/{locati" + + "on}/deliveryPipelines/{delivery_pipeline" + + "}/releases/{release}/rollouts/{rollout}/" + + "jobRuns/{job_run}B\t\n\007job_run\"\225\004\n\014DeployJ" + + "obRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild" + + ".googleapis.com/Build\022M\n\rfailure_cause\030\002" + + " \001(\01621.google.cloud.deploy.v1.DeployJobR" + "un.FailureCauseB\003\340A\003\022\034\n\017failure_message\030" - + "\003 \001(\tB\003\340A\003\"\227\001\n\014FailureCause\022\035\n\031FAILURE_C" - + "AUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAI" - + "LABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLIN" - + "E_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD_REQUEST_FAIL" - + "ED\020\004\"O\n\030CreateChildRolloutJobRun\022\024\n\007roll" - + "out\030\001 \001(\tB\003\340A\003\022\035\n\020rollout_phase_id\030\002 \001(\t" - + "B\003\340A\003\"P\n\031AdvanceChildRolloutJobRun\022\024\n\007ro" - + "llout\030\001 \001(\tB\003\340A\003\022\035\n\020rollout_phase_id\030\002 \001" - + "(\tB\003\340A\003\"\255\001\n\022ListJobRunsRequest\022:\n\006parent" - + "\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.c" - + "om/Rollout\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_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\"u\n\023ListJobRunsRe" - + "sponse\0220\n\010job_runs\030\001 \003(\0132\036.google.cloud." - + "deploy.v1.JobRun\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetJobRunReque" + + "\003 \001(\tB\003\340A\003\022C\n\010metadata\030\004 \001(\0132,.google.cl" + + "oud.deploy.v1.DeployJobRunMetadataB\003\340A\003\022" + + "=\n\010artifact\030\005 \001(\0132&.google.cloud.deploy." + + "v1.DeployArtifactB\003\340A\003\"\333\001\n\014FailureCause\022" + + "\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_" + + "BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020" + + "\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022 \n\034MISSING_RESO" + + "URCES_FOR_CANARY\020\004\022\036\n\032CLOUD_BUILD_REQUES" + + "T_FAILED\020\005\022 \n\034DEPLOY_FEATURE_NOT_SUPPORT" + + "ED\020\006\"\250\003\n\014VerifyJobRun\0226\n\005build\030\001 \001(\tB\'\340A" + + "\003\372A!\n\037cloudbuild.googleapis.com/Build\022\031\n" + + "\014artifact_uri\030\002 \001(\tB\003\340A\003\022\033\n\016event_log_pa" + + "th\030\003 \001(\tB\003\340A\003\022M\n\rfailure_cause\030\004 \001(\01621.g" + + "oogle.cloud.deploy.v1.VerifyJobRun.Failu" + + "reCauseB\003\340A\003\022\034\n\017failure_message\030\005 \001(\tB\003\340" + + "A\003\"\272\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNS" + + "PECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022" + + "\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEED" + + "ED\020\003\022!\n\035VERIFICATION_CONFIG_NOT_FOUND\020\004\022" + + "\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\005\"\323\002\n\017Pred" + + "eployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n\037clou" + + "dbuild.googleapis.com/Build\022P\n\rfailure_c" + + "ause\030\002 \001(\01624.google.cloud.deploy.v1.Pred" + + "eployJobRun.FailureCauseB\003\340A\003\022\034\n\017failure" + + "_message\030\003 \001(\tB\003\340A\003\"\227\001\n\014FailureCause\022\035\n\031" + + "FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUI" + + "LD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025" + + "\n\021DEADLINE_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD_REQ" + + "UEST_FAILED\020\004\"\325\002\n\020PostdeployJobRun\0226\n\005bu" + + "ild\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis" + + ".com/Build\022Q\n\rfailure_cause\030\002 \001(\01625.goog" + + "le.cloud.deploy.v1.PostdeployJobRun.Fail" + + "ureCauseB\003\340A\003\022\034\n\017failure_message\030\003 \001(\tB\003" + + "\340A\003\"\227\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UN" + + "SPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001" + + "\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEE" + + "DED\020\003\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\004\"O\n" + + "\030CreateChildRolloutJobRun\022\024\n\007rollout\030\001 \001" + + "(\tB\003\340A\003\022\035\n\020rollout_phase_id\030\002 \001(\tB\003\340A\003\"P" + + "\n\031AdvanceChildRolloutJobRun\022\024\n\007rollout\030\001" + + " \001(\tB\003\340A\003\022\035\n\020rollout_phase_id\030\002 \001(\tB\003\340A\003" + + "\"\255\001\n\022ListJobRunsRequest\022:\n\006parent\030\001 \001(\tB" + + "*\340A\002\372A$\n\"clouddeploy.googleapis.com/Roll" + + "out\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"u\n\023ListJobRunsResponse\022" + + "0\n\010job_runs\030\001 \003(\0132\036.google.cloud.deploy." + + "v1.JobRun\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"K\n\020GetJobRunRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapi" + + "s.com/JobRun\"\242\001\n\026TerminateJobRunRequest\022" + + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googl" + + "eapis.com/JobRun\022O\n\026override_deploy_poli" + + "cy\030\002 \003(\tB/\340A\001\372A)\n\'clouddeploy.googleapis" + + ".com/DeployPolicy\"\031\n\027TerminateJobRunResp" + + "onse\"\325\001\n\006Config\022\014\n\004name\030\001 \001(\t\022C\n\022support" + + "ed_versions\030\002 \003(\0132\'.google.cloud.deploy." + + "v1.SkaffoldVersion\022 \n\030default_skaffold_v" + + "ersion\030\003 \001(\t:V\352AS\n!clouddeploy.googleapi" + + "s.com/Config\022.projects/{project}/locatio" + + "ns/{location}/config\"\307\001\n\017SkaffoldVersion" + + "\022\017\n\007version\030\001 \001(\t\0229\n\025maintenance_mode_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022;\n\027" + + "support_expiration_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022+\n\020support_end_date\030\002 " + + "\001(\0132\021.google.type.Date\"K\n\020GetConfigReque" + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.go" - + "ogleapis.com/JobRun\"\242\001\n\026TerminateJobRunR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeplo" - + "y.googleapis.com/JobRun\022O\n\026override_depl" - + "oy_policy\030\002 \003(\tB/\340A\001\372A)\n\'clouddeploy.goo" - + "gleapis.com/DeployPolicy\"\031\n\027TerminateJob" - + "RunResponse\"\325\001\n\006Config\022\014\n\004name\030\001 \001(\t\022C\n\022" - + "supported_versions\030\002 \003(\0132\'.google.cloud." - + "deploy.v1.SkaffoldVersion\022 \n\030default_ska" - + "ffold_version\030\003 \001(\t:V\352AS\n!clouddeploy.go" - + "ogleapis.com/Config\022.projects/{project}/" - + "locations/{location}/config\"\307\001\n\017Skaffold" - + "Version\022\017\n\007version\030\001 \001(\t\0229\n\025maintenance_" - + "mode_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "amp\022;\n\027support_expiration_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022+\n\020support_end_" - + "date\030\002 \001(\0132\021.google.type.Date\"K\n\020GetConf" - + "igRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!cloudde" - + "ploy.googleapis.com/Config\"\227\006\n\nAutomatio" - + "n\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\030" - + "\n\013description\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022M\n\013annotations\030\006 \003(\01323.goog" - + "le.cloud.deploy.v1.Automation.Annotation" - + "sEntryB\003\340A\001\022C\n\006labels\030\007 \003(\0132..google.clo" - + "ud.deploy.v1.Automation.LabelsEntryB\003\340A\001" - + "\022\021\n\004etag\030\010 \001(\tB\003\340A\001\022\026\n\tsuspended\030\t \001(\010B\003" - + "\340A\001\022\034\n\017service_account\030\n \001(\tB\003\340A\002\022I\n\010sel" - + "ector\030\013 \001(\01322.google.cloud.deploy.v1.Aut" - + "omationResourceSelectorB\003\340A\002\022:\n\005rules\030\016 " - + "\003(\0132&.google.cloud.deploy.v1.AutomationR" - + "uleB\003\340A\002\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(", - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226\001\352A\222\001\n%clou" - + "ddeploy.googleapis.com/Automation\022fproje" - + "cts/{project}/locations/{location}/deliv" - + "eryPipelines/{delivery_pipeline}/automat" - + "ions/{automation}R\001\001\"V\n\032AutomationResour" - + "ceSelector\0228\n\007targets\030\001 \003(\0132\'.google.clo" - + "ud.deploy.v1.TargetAttribute\"\345\002\n\016Automat" - + "ionRule\022O\n\024promote_release_rule\030\001 \001(\0132*." - + "google.cloud.deploy.v1.PromoteReleaseRul" - + "eB\003\340A\001H\000\022O\n\024advance_rollout_rule\030\002 \001(\0132*" - + ".google.cloud.deploy.v1.AdvanceRolloutRu" - + "leB\003\340A\001H\000\022M\n\023repair_rollout_rule\030\003 \001(\0132)" - + ".google.cloud.deploy.v1.RepairRolloutRul" - + "eB\003\340A\001H\000\022Z\n\032timed_promote_release_rule\030\004" - + " \001(\0132/.google.cloud.deploy.v1.TimedPromo" - + "teReleaseRuleB\003\340A\001H\000B\006\n\004rule\"\346\001\n\027TimedPr" - + "omoteReleaseRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\"\n\025des" - + "tination_target_id\030\002 \001(\tB\003\340A\001\022\025\n\010schedul" - + "e\030\003 \001(\tB\003\340A\002\022\026\n\ttime_zone\030\004 \001(\tB\003\340A\002\022G\n\t" - + "condition\030\005 \001(\0132/.google.cloud.deploy.v1" - + ".AutomationRuleConditionB\003\340A\003\022\036\n\021destina" - + "tion_phase\030\006 \001(\tB\003\340A\001\"\340\001\n\022PromoteRelease" - + "Rule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022,\n\004wait\030\002 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\001\022\"\n\025destinati" - + "on_target_id\030\007 \001(\tB\003\340A\001\022G\n\tcondition\030\005 \001" - + "(\0132/.google.cloud.deploy.v1.AutomationRu" - + "leConditionB\003\340A\003\022\036\n\021destination_phase\030\010 " - + "\001(\tB\003\340A\001\"\270\001\n\022AdvanceRolloutRule\022\017\n\002id\030\001 " - + "\001(\tB\003\340A\002\022\032\n\rsource_phases\030\006 \003(\tB\003\340A\001\022,\n\004" - + "wait\030\003 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\022G\n\tcondition\030\005 \001(\0132/.google.cloud.dep" - + "loy.v1.AutomationRuleConditionB\003\340A\003\"\334\001\n\021" - + "RepairRolloutRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\023\n\006ph" - + "ases\030\007 \003(\tB\003\340A\001\022\021\n\004jobs\030\003 \003(\tB\003\340A\001\022G\n\tco" - + "ndition\030\006 \001(\0132/.google.cloud.deploy.v1.A" - + "utomationRuleConditionB\003\340A\003\022E\n\rrepair_ph" - + "ases\030\010 \003(\0132).google.cloud.deploy.v1.Repa" - + "irPhaseConfigB\003\340A\002\"\223\001\n\021RepairPhaseConfig" - + "\0223\n\005retry\030\001 \001(\0132\035.google.cloud.deploy.v1" - + ".RetryB\003\340A\001H\000\0229\n\010rollback\030\002 \001(\0132 .google" - + ".cloud.deploy.v1.RollbackB\003\340A\001H\000B\016\n\014repa" - + "ir_phase\"\214\001\n\005Retry\022\025\n\010attempts\030\001 \001(\003B\003\340A" - + "\002\022,\n\004wait\030\002 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\001\022>\n\014backoff_mode\030\003 \001(\0162#.google.c" - + "loud.deploy.v1.BackoffModeB\003\340A\001\"\\\n\010Rollb" - + "ack\022\036\n\021destination_phase\030\001 \001(\tB\003\340A\001\0220\n#d" - + "isable_rollback_if_rollout_pending\030\002 \001(\010" - + "B\003\340A\001\"\357\001\n\027AutomationRuleCondition\022W\n\031tar" - + "gets_present_condition\030\001 \001(\0132/.google.cl" - + "oud.deploy.v1.TargetsPresentConditionB\003\340" - + "A\001\022d\n\037timed_promote_release_condition\030\002 " - + "\001(\01324.google.cloud.deploy.v1.TimedPromot" - + "eReleaseConditionB\003\340A\001H\000B\025\n\023rule_type_co" - + "ndition\"\203\002\n\034TimedPromoteReleaseCondition" - + "\022<\n\023next_promotion_time\030\001 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022W\n\014targets_list\030\002" - + " \003(\0132<.google.cloud.deploy.v1.TimedPromo" - + "teReleaseCondition.TargetsB\003\340A\003\032L\n\007Targe" - + "ts\022\035\n\020source_target_id\030\001 \001(\tB\003\340A\001\022\"\n\025des" - + "tination_target_id\030\002 \001(\tB\003\340A\001\"\346\001\n\027Create" - + "AutomationRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A" - + "\'\022%clouddeploy.googleapis.com/Automation" - + "\022\032\n\rautomation_id\030\002 \001(\tB\003\340A\002\022;\n\nautomati" - + "on\030\003 \001(\0132\".google.cloud.deploy.v1.Automa" - + "tionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rva" - + "lidate_only\030\005 \001(\010B\003\340A\001\"\335\001\n\027UpdateAutomat" - + "ionRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\022;\n\nautomation\030\002" - + " \001(\0132\".google.cloud.deploy.v1.Automation" - + "B\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_" - + "missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(" - + "\010B\003\340A\001\"\272\001\n\027DeleteAutomationRequest\022;\n\004na" - + "me\030\001 \001(\tB-\340A\002\372A\'\n%clouddeploy.googleapis" - + ".com/Automation\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001" - + "\022\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate" - + "_only\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\240\001\n\026" - + "ListAutomationsRequest\022=\n\006parent\030\001 \001(\tB-" - + "\340A\002\372A\'\022%clouddeploy.googleapis.com/Autom" - + "ation\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\"\200" - + "\001\n\027ListAutomationsResponse\0227\n\013automation" - + "s\030\001 \003(\0132\".google.cloud.deploy.v1.Automat" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" - + "ble\030\003 \003(\t\"S\n\024GetAutomationRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%clouddeploy.googleapis." - + "com/Automation\"\377\t\n\rAutomationRun\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\021\n\004etag\030\004 \001(\tB\003\340A\003\022\034\n\017service_account\030\005 " - + "\001(\tB\003\340A\003\022D\n\023automation_snapshot\030\006 \001(\0132\"." - + "google.cloud.deploy.v1.AutomationB\003\340A\003\022\026" - + "\n\ttarget_id\030\007 \001(\tB\003\340A\003\022?\n\005state\030\010 \001(\0162+." - + "google.cloud.deploy.v1.AutomationRun.Sta" - + "teB\003\340A\003\022\036\n\021state_description\030\t \001(\tB\003\340A\003\022" - + "F\n\020policy_violation\030\n \001(\0132\'.google.cloud" - + ".deploy.v1.PolicyViolationB\003\340A\003\0224\n\013expir" - + "e_time\030\013 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\024\n\007rule_id\030\014 \001(\tB\003\340A\003\022\032\n\rautomatio" - + "n_id\030\017 \001(\tB\003\340A\003\022Y\n\031promote_release_opera" - + "tion\030\r \001(\0132/.google.cloud.deploy.v1.Prom" - + "oteReleaseOperationB\003\340A\003H\000\022Y\n\031advance_ro" - + "llout_operation\030\016 \001(\0132/.google.cloud.dep" - + "loy.v1.AdvanceRolloutOperationB\003\340A\003H\000\022W\n" - + "\030repair_rollout_operation\030\021 \001(\0132..google" - + ".cloud.deploy.v1.RepairRolloutOperationB" - + "\003\340A\003H\000\022d\n\037timed_promote_release_operatio" - + "n\030\023 \001(\01324.google.cloud.deploy.v1.TimedPr" - + "omoteReleaseOperationB\003\340A\003H\000\0228\n\017wait_unt" - + "il_time\030\020 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\"s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r" - + "\n\tSUCCEEDED\020\001\022\r\n\tCANCELLED\020\002\022\n\n\006FAILED\020\003" - + "\022\017\n\013IN_PROGRESS\020\004\022\013\n\007PENDING\020\005\022\013\n\007ABORTE" - + "D\020\006:\235\001\352A\231\001\n(clouddeploy.googleapis.com/A" - + "utomationRun\022mprojects/{project}/locatio" - + "ns/{location}/deliveryPipelines/{deliver" - + "y_pipeline}/automationRuns/{automation_r" - + "un}B\013\n\toperation\"\211\001\n\027PromoteReleaseOpera" - + "tion\022\026\n\ttarget_id\030\001 \001(\tB\003\340A\003\022,\n\004wait\030\002 \001" - + "(\0132\031.google.protobuf.DurationB\003\340A\003\022\024\n\007ro" - + "llout\030\003 \001(\tB\003\340A\003\022\022\n\005phase\030\004 \001(\tB\003\340A\003\"\230\001\n" - + "\027AdvanceRolloutOperation\022\031\n\014source_phase" - + "\030\005 \001(\tB\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.proto" - + "buf.DurationB\003\340A\003\022\024\n\007rollout\030\003 \001(\tB\003\340A\003\022" - + "\036\n\021destination_phase\030\004 \001(\tB\003\340A\003\"\304\001\n\026Repa" - + "irRolloutOperation\022\024\n\007rollout\030\001 \001(\tB\003\340A\003" - + "\022\'\n\032current_repair_phase_index\030\006 \001(\003B\003\340A" - + "\003\022?\n\rrepair_phases\030\003 \003(\0132#.google.cloud." - + "deploy.v1.RepairPhaseB\003\340A\003\022\025\n\010phase_id\030\004" - + " \001(\tB\003\340A\003\022\023\n\006job_id\030\005 \001(\tB\003\340A\003\"`\n\034TimedP" - + "romoteReleaseOperation\022\026\n\ttarget_id\030\001 \001(" - + "\tB\003\340A\003\022\024\n\007release\030\002 \001(\tB\003\340A\003\022\022\n\005phase\030\003 " - + "\001(\tB\003\340A\003\"\231\001\n\013RepairPhase\0228\n\005retry\030\001 \001(\0132" - + "\".google.cloud.deploy.v1.RetryPhaseB\003\340A\003" - + "H\000\022@\n\010rollback\030\002 \001(\0132\'.google.cloud.depl" - + "oy.v1.RollbackAttemptB\003\340A\003H\000B\016\n\014repair_p" - + "hase\"\246\001\n\nRetryPhase\022\033\n\016total_attempts\030\001 " - + "\001(\003B\003\340A\003\022>\n\014backoff_mode\030\002 \001(\0162#.google." - + "cloud.deploy.v1.BackoffModeB\003\340A\003\022;\n\010atte" - + "mpts\030\005 \003(\0132$.google.cloud.deploy.v1.Retr" - + "yAttemptB\003\340A\003\"\244\001\n\014RetryAttempt\022\024\n\007attemp" - + "t\030\001 \001(\003B\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\003\0227\n\005state\030\005 \001(\0162#.goog" - + "le.cloud.deploy.v1.RepairStateB\003\340A\003\022\027\n\ns" - + "tate_desc\030\006 \001(\tB\003\340A\003\"\316\001\n\017RollbackAttempt" - + "\022\036\n\021destination_phase\030\001 \001(\tB\003\340A\003\022\027\n\nroll" - + "out_id\030\002 \001(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#.googl" - + "e.cloud.deploy.v1.RepairStateB\003\340A\003\022\027\n\nst" - + "ate_desc\030\004 \001(\tB\003\340A\003\0220\n#disable_rollback_" - + "if_rollout_pending\030\005 \001(\010B\003\340A\003\"\246\001\n\031ListAu" - + "tomationRunsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" - + "\372A*\022(clouddeploy.googleapis.com/Automati" - + "onRun\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\"\212" - + "\001\n\032ListAutomationRunsResponse\022>\n\017automat" - + "ion_runs\030\001 \003(\0132%.google.cloud.deploy.v1." - + "AutomationRun\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"Y\n\027GetAutomationRunR" - + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(clouddeplo" - + "y.googleapis.com/AutomationRun\"\\\n\032Cancel" - + "AutomationRunRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" - + "A*\n(clouddeploy.googleapis.com/Automatio" - + "nRun\"\035\n\033CancelAutomationRunResponse*\271\001\n\024" - + "SkaffoldSupportState\022&\n\"SKAFFOLD_SUPPORT" - + "_STATE_UNSPECIFIED\020\000\022$\n SKAFFOLD_SUPPORT" - + "_STATE_SUPPORTED\020\001\022+\n\'SKAFFOLD_SUPPORT_S" - + "TATE_MAINTENANCE_MODE\020\002\022&\n\"SKAFFOLD_SUPP" - + "ORT_STATE_UNSUPPORTED\020\003*b\n\013BackoffMode\022\034" - + "\n\030BACKOFF_MODE_UNSPECIFIED\020\000\022\027\n\023BACKOFF_" - + "MODE_LINEAR\020\001\022\034\n\030BACKOFF_MODE_EXPONENTIA" - + "L\020\002*\316\001\n\013RepairState\022\034\n\030REPAIR_STATE_UNSP" - + "ECIFIED\020\000\022\032\n\026REPAIR_STATE_SUCCEEDED\020\001\022\032\n" - + "\026REPAIR_STATE_CANCELLED\020\002\022\027\n\023REPAIR_STAT" - + "E_FAILED\020\003\022\034\n\030REPAIR_STATE_IN_PROGRESS\020\004" - + "\022\030\n\024REPAIR_STATE_PENDING\020\005\022\030\n\024REPAIR_STA" - + "TE_ABORTED\020\0072\357L\n\013CloudDeploy\022\314\001\n\025ListDel" - + "iveryPipelines\0224.google.cloud.deploy.v1." - + "ListDeliveryPipelinesRequest\0325.google.cl" - + "oud.deploy.v1.ListDeliveryPipelinesRespo" - + "nse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projec" - + "ts/*/locations/*}/deliveryPipelines\022\271\001\n\023" - + "GetDeliveryPipeline\0222.google.cloud.deplo" - + "y.v1.GetDeliveryPipelineRequest\032(.google" - + ".cloud.deploy.v1.DeliveryPipeline\"D\332A\004na" - + "me\202\323\344\223\0027\0225/v1/{name=projects/*/locations" - + "/*/deliveryPipelines/*}\022\231\002\n\026CreateDelive" - + "ryPipeline\0225.google.cloud.deploy.v1.Crea" - + "teDeliveryPipelineRequest\032\035.google.longr" - + "unning.Operation\"\250\001\312A%\n\020DeliveryPipeline" - + "\022\021OperationMetadata\332A-parent,delivery_pi" - + "peline,delivery_pipeline_id\202\323\344\223\002J\"5/v1/{" - + "parent=projects/*/locations/*}/deliveryP" - + "ipelines:\021delivery_pipeline\022\233\002\n\026UpdateDe" - + "liveryPipeline\0225.google.cloud.deploy.v1." - + "UpdateDeliveryPipelineRequest\032\035.google.l" - + "ongrunning.Operation\"\252\001\312A%\n\020DeliveryPipe" - + "line\022\021OperationMetadata\332A\035delivery_pipel" - + "ine,update_mask\202\323\344\223\002\\2G/v1/{delivery_pip" - + "eline.name=projects/*/locations/*/delive" - + "ryPipelines/*}:\021delivery_pipeline\022\341\001\n\026De" - + "leteDeliveryPipeline\0225.google.cloud.depl" - + "oy.v1.DeleteDeliveryPipelineRequest\032\035.go" - + "ogle.longrunning.Operation\"q\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0027*5/v1/{name=projects/*/locations/*" - + "/deliveryPipelines/*}\022\244\001\n\013ListTargets\022*." - + "google.cloud.deploy.v1.ListTargetsReques" - + "t\032+.google.cloud.deploy.v1.ListTargetsRe" - + "sponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=pro" - + "jects/*/locations/*}/targets\022\334\001\n\016Rollbac" - + "kTarget\022-.google.cloud.deploy.v1.Rollbac" - + "kTargetRequest\032..google.cloud.deploy.v1." - + "RollbackTargetResponse\"k\332A\031name,target_i" - + "d,rollout_id\202\323\344\223\002I\"D/v1/{name=projects/*" - + "/locations/*/deliveryPipelines/*}:rollba" - + "ckTarget:\001*\022\221\001\n\tGetTarget\022(.google.cloud" - + ".deploy.v1.GetTargetRequest\032\036.google.clo" - + "ud.deploy.v1.Target\":\332A\004name\202\323\344\223\002-\022+/v1/" - + "{name=projects/*/locations/*/targets/*}\022" - + "\317\001\n\014CreateTarget\022+.google.cloud.deploy.v" - + "1.CreateTargetRequest\032\035.google.longrunni" - + "ng.Operation\"s\312A\033\n\006Target\022\021OperationMeta" - + "data\332A\027parent,target,target_id\202\323\344\223\0025\"+/v" - + "1/{parent=projects/*/locations/*}/target" - + "s:\006target\022\321\001\n\014UpdateTarget\022+.google.clou" - + "d.deploy.v1.UpdateTargetRequest\032\035.google" - + ".longrunning.Operation\"u\312A\033\n\006Target\022\021Ope" - + "rationMetadata\332A\022target,update_mask\202\323\344\223\002" - + "<22/v1/{target.name=projects/*/locations" - + "/*/targets/*}:\006target\022\303\001\n\014DeleteTarget\022+" - + ".google.cloud.deploy.v1.DeleteTargetRequ" - + "est\032\035.google.longrunning.Operation\"g\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/loc" - + "ations/*/targets/*}\022\314\001\n\025ListCustomTarget" - + "Types\0224.google.cloud.deploy.v1.ListCusto" - + "mTargetTypesRequest\0325.google.cloud.deplo" - + "y.v1.ListCustomTargetTypesResponse\"F\332A\006p" - + "arent\202\323\344\223\0027\0225/v1/{parent=projects/*/loca" - + "tions/*}/customTargetTypes\022\271\001\n\023GetCustom" - + "TargetType\0222.google.cloud.deploy.v1.GetC" - + "ustomTargetTypeRequest\032(.google.cloud.de" - + "ploy.v1.CustomTargetType\"D\332A\004name\202\323\344\223\0027\022" - + "5/v1/{name=projects/*/locations/*/custom" - + "TargetTypes/*}\022\234\002\n\026CreateCustomTargetTyp" - + "e\0225.google.cloud.deploy.v1.CreateCustomT" + + "ogleapis.com/Config\"\227\006\n\nAutomation\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022M\n\013annotations\030\006 \003(\01323.google.clou" + + "d.deploy.v1.Automation.AnnotationsEntryB" + + "\003\340A\001\022C\n\006labels\030\007 \003(\0132..google.cloud.depl" + + "oy.v1.Automation.LabelsEntryB\003\340A\001\022\021\n\004eta" + + "g\030\010 \001(\tB\003\340A\001\022\026\n\tsuspended\030\t \001(\010B\003\340A\001\022\034\n\017" + + "service_account\030\n \001(\tB\003\340A\002\022I\n\010selector\030\013" + + " \001(\01322.google.cloud.deploy.v1.Automation" + + "ResourceSelectorB\003\340A\002\022:\n\005rules\030\016 \003(\0132&.g" + + "oogle.cloud.deploy.v1.AutomationRuleB\003\340A", + "\002\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\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:\226\001\352A\222\001\n%clouddeploy" + + ".googleapis.com/Automation\022fprojects/{pr" + + "oject}/locations/{location}/deliveryPipe" + + "lines/{delivery_pipeline}/automations/{a" + + "utomation}R\001\001\"V\n\032AutomationResourceSelec" + + "tor\0228\n\007targets\030\001 \003(\0132\'.google.cloud.depl" + + "oy.v1.TargetAttribute\"\345\002\n\016AutomationRule" + + "\022O\n\024promote_release_rule\030\001 \001(\0132*.google." + + "cloud.deploy.v1.PromoteReleaseRuleB\003\340A\001H" + + "\000\022O\n\024advance_rollout_rule\030\002 \001(\0132*.google" + + ".cloud.deploy.v1.AdvanceRolloutRuleB\003\340A\001" + + "H\000\022M\n\023repair_rollout_rule\030\003 \001(\0132).google" + + ".cloud.deploy.v1.RepairRolloutRuleB\003\340A\001H" + + "\000\022Z\n\032timed_promote_release_rule\030\004 \001(\0132/." + + "google.cloud.deploy.v1.TimedPromoteRelea" + + "seRuleB\003\340A\001H\000B\006\n\004rule\"\346\001\n\027TimedPromoteRe" + + "leaseRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\"\n\025destinatio" + + "n_target_id\030\002 \001(\tB\003\340A\001\022\025\n\010schedule\030\003 \001(\t" + + "B\003\340A\002\022\026\n\ttime_zone\030\004 \001(\tB\003\340A\002\022G\n\tconditi" + + "on\030\005 \001(\0132/.google.cloud.deploy.v1.Automa" + + "tionRuleConditionB\003\340A\003\022\036\n\021destination_ph" + + "ase\030\006 \001(\tB\003\340A\001\"\340\001\n\022PromoteReleaseRule\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\002\022,\n\004wait\030\002 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022\"\n\025destination_targ" + + "et_id\030\007 \001(\tB\003\340A\001\022G\n\tcondition\030\005 \001(\0132/.go" + + "ogle.cloud.deploy.v1.AutomationRuleCondi" + + "tionB\003\340A\003\022\036\n\021destination_phase\030\010 \001(\tB\003\340A" + + "\001\"\270\001\n\022AdvanceRolloutRule\022\017\n\002id\030\001 \001(\tB\003\340A" + + "\002\022\032\n\rsource_phases\030\006 \003(\tB\003\340A\001\022,\n\004wait\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\022G\n\tc" + + "ondition\030\005 \001(\0132/.google.cloud.deploy.v1." + + "AutomationRuleConditionB\003\340A\003\"\334\001\n\021RepairR" + + "olloutRule\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\023\n\006phases\030\007 " + + "\003(\tB\003\340A\001\022\021\n\004jobs\030\003 \003(\tB\003\340A\001\022G\n\tcondition" + + "\030\006 \001(\0132/.google.cloud.deploy.v1.Automati" + + "onRuleConditionB\003\340A\003\022E\n\rrepair_phases\030\010 " + + "\003(\0132).google.cloud.deploy.v1.RepairPhase" + + "ConfigB\003\340A\002\"\223\001\n\021RepairPhaseConfig\0223\n\005ret" + + "ry\030\001 \001(\0132\035.google.cloud.deploy.v1.RetryB" + + "\003\340A\001H\000\0229\n\010rollback\030\002 \001(\0132 .google.cloud." + + "deploy.v1.RollbackB\003\340A\001H\000B\016\n\014repair_phas" + + "e\"\214\001\n\005Retry\022\025\n\010attempts\030\001 \001(\003B\003\340A\002\022,\n\004wa" + + "it\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001" + + "\022>\n\014backoff_mode\030\003 \001(\0162#.google.cloud.de" + + "ploy.v1.BackoffModeB\003\340A\001\"\\\n\010Rollback\022\036\n\021" + + "destination_phase\030\001 \001(\tB\003\340A\001\0220\n#disable_" + + "rollback_if_rollout_pending\030\002 \001(\010B\003\340A\001\"\357" + + "\001\n\027AutomationRuleCondition\022W\n\031targets_pr" + + "esent_condition\030\001 \001(\0132/.google.cloud.dep" + + "loy.v1.TargetsPresentConditionB\003\340A\001\022d\n\037t" + + "imed_promote_release_condition\030\002 \001(\01324.g" + + "oogle.cloud.deploy.v1.TimedPromoteReleas" + + "eConditionB\003\340A\001H\000B\025\n\023rule_type_condition" + + "\"\203\002\n\034TimedPromoteReleaseCondition\022<\n\023nex" + + "t_promotion_time\030\001 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022W\n\014targets_list\030\002 \003(\0132<." + + "google.cloud.deploy.v1.TimedPromoteRelea" + + "seCondition.TargetsB\003\340A\003\032L\n\007Targets\022\035\n\020s" + + "ource_target_id\030\001 \001(\tB\003\340A\001\022\"\n\025destinatio" + + "n_target_id\030\002 \001(\tB\003\340A\001\"\346\001\n\027CreateAutomat" + + "ionRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%clou" + + "ddeploy.googleapis.com/Automation\022\032\n\raut" + + "omation_id\030\002 \001(\tB\003\340A\002\022;\n\nautomation\030\003 \001(" + + "\0132\".google.cloud.deploy.v1.AutomationB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_" + + "only\030\005 \001(\010B\003\340A\001\"\335\001\n\027UpdateAutomationRequ" + + "est\0224\n\013update_mask\030\001 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\022;\n\nautomation\030\002 \001(\0132\"." + + "google.cloud.deploy.v1.AutomationB\003\340A\002\022\027" + + "\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing" + + "\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"" + + "\272\001\n\027DeleteAutomationRequest\022;\n\004name\030\001 \001(" + + "\tB-\340A\002\372A\'\n%clouddeploy.googleapis.com/Au" + + "tomation\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rall" + + "ow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004" + + " \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\240\001\n\026ListAut" + + "omationsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022" + + "%clouddeploy.googleapis.com/Automation\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\"\200\001\n\027List" + + "AutomationsResponse\0227\n\013automations\030\001 \003(\013" + + "2\".google.cloud.deploy.v1.Automation\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"S\n\024GetAutomationRequest\022;\n\004name\030\001 \001(\t" + + "B-\340A\002\372A\'\n%clouddeploy.googleapis.com/Aut" + + "omation\"\377\t\n\rAutomationRun\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004etag" + + "\030\004 \001(\tB\003\340A\003\022\034\n\017service_account\030\005 \001(\tB\003\340A" + + "\003\022D\n\023automation_snapshot\030\006 \001(\0132\".google." + + "cloud.deploy.v1.AutomationB\003\340A\003\022\026\n\ttarge" + + "t_id\030\007 \001(\tB\003\340A\003\022?\n\005state\030\010 \001(\0162+.google." + + "cloud.deploy.v1.AutomationRun.StateB\003\340A\003" + + "\022\036\n\021state_description\030\t \001(\tB\003\340A\003\022F\n\020poli" + + "cy_violation\030\n \001(\0132\'.google.cloud.deploy" + + ".v1.PolicyViolationB\003\340A\003\0224\n\013expire_time\030" + + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024" + + "\n\007rule_id\030\014 \001(\tB\003\340A\003\022\032\n\rautomation_id\030\017 " + + "\001(\tB\003\340A\003\022Y\n\031promote_release_operation\030\r " + + "\001(\0132/.google.cloud.deploy.v1.PromoteRele" + + "aseOperationB\003\340A\003H\000\022Y\n\031advance_rollout_o" + + "peration\030\016 \001(\0132/.google.cloud.deploy.v1." + + "AdvanceRolloutOperationB\003\340A\003H\000\022W\n\030repair" + + "_rollout_operation\030\021 \001(\0132..google.cloud." + + "deploy.v1.RepairRolloutOperationB\003\340A\003H\000\022" + + "d\n\037timed_promote_release_operation\030\023 \001(\013" + + "24.google.cloud.deploy.v1.TimedPromoteRe" + + "leaseOperationB\003\340A\003H\000\0228\n\017wait_until_time" + + "\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"" + + "s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSUCCE" + + "EDED\020\001\022\r\n\tCANCELLED\020\002\022\n\n\006FAILED\020\003\022\017\n\013IN_" + + "PROGRESS\020\004\022\013\n\007PENDING\020\005\022\013\n\007ABORTED\020\006:\235\001\352" + + "A\231\001\n(clouddeploy.googleapis.com/Automati" + + "onRun\022mprojects/{project}/locations/{loc" + + "ation}/deliveryPipelines/{delivery_pipel" + + "ine}/automationRuns/{automation_run}B\013\n\t" + + "operation\"\211\001\n\027PromoteReleaseOperation\022\026\n" + + "\ttarget_id\030\001 \001(\tB\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\003\022\024\n\007rollout\030\003" + + " \001(\tB\003\340A\003\022\022\n\005phase\030\004 \001(\tB\003\340A\003\"\230\001\n\027Advanc" + + "eRolloutOperation\022\031\n\014source_phase\030\005 \001(\tB" + + "\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\003\022\024\n\007rollout\030\003 \001(\tB\003\340A\003\022\036\n\021dest" + + "ination_phase\030\004 \001(\tB\003\340A\003\"\304\001\n\026RepairRollo" + + "utOperation\022\024\n\007rollout\030\001 \001(\tB\003\340A\003\022\'\n\032cur" + + "rent_repair_phase_index\030\006 \001(\003B\003\340A\003\022?\n\rre" + + "pair_phases\030\003 \003(\0132#.google.cloud.deploy." + + "v1.RepairPhaseB\003\340A\003\022\025\n\010phase_id\030\004 \001(\tB\003\340" + + "A\003\022\023\n\006job_id\030\005 \001(\tB\003\340A\003\"`\n\034TimedPromoteR" + + "eleaseOperation\022\026\n\ttarget_id\030\001 \001(\tB\003\340A\003\022" + + "\024\n\007release\030\002 \001(\tB\003\340A\003\022\022\n\005phase\030\003 \001(\tB\003\340A" + + "\003\"\231\001\n\013RepairPhase\0228\n\005retry\030\001 \001(\0132\".googl" + + "e.cloud.deploy.v1.RetryPhaseB\003\340A\003H\000\022@\n\010r" + + "ollback\030\002 \001(\0132\'.google.cloud.deploy.v1.R" + + "ollbackAttemptB\003\340A\003H\000B\016\n\014repair_phase\"\246\001" + + "\n\nRetryPhase\022\033\n\016total_attempts\030\001 \001(\003B\003\340A" + + "\003\022>\n\014backoff_mode\030\002 \001(\0162#.google.cloud.d" + + "eploy.v1.BackoffModeB\003\340A\003\022;\n\010attempts\030\005 " + + "\003(\0132$.google.cloud.deploy.v1.RetryAttemp" + + "tB\003\340A\003\"\244\001\n\014RetryAttempt\022\024\n\007attempt\030\001 \001(\003" + + "B\003\340A\003\022,\n\004wait\030\002 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\003\0227\n\005state\030\005 \001(\0162#.google.clou" + + "d.deploy.v1.RepairStateB\003\340A\003\022\027\n\nstate_de" + + "sc\030\006 \001(\tB\003\340A\003\"\316\001\n\017RollbackAttempt\022\036\n\021des" + + "tination_phase\030\001 \001(\tB\003\340A\003\022\027\n\nrollout_id\030" + + "\002 \001(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#.google.cloud" + + ".deploy.v1.RepairStateB\003\340A\003\022\027\n\nstate_des" + + "c\030\004 \001(\tB\003\340A\003\0220\n#disable_rollback_if_roll" + + "out_pending\030\005 \001(\010B\003\340A\003\"\246\001\n\031ListAutomatio" + + "nRunsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(cl" + + "ouddeploy.googleapis.com/AutomationRun\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\"\212\001\n\032List" + + "AutomationRunsResponse\022>\n\017automation_run" + + "s\030\001 \003(\0132%.google.cloud.deploy.v1.Automat" + + "ionRun\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"Y\n\027GetAutomationRunRequest\022" + + ">\n\004name\030\001 \001(\tB0\340A\002\372A*\n(clouddeploy.googl" + + "eapis.com/AutomationRun\"\\\n\032CancelAutomat" + + "ionRunRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(clo" + + "uddeploy.googleapis.com/AutomationRun\"\035\n" + + "\033CancelAutomationRunResponse*\271\001\n\024Skaffol" + + "dSupportState\022&\n\"SKAFFOLD_SUPPORT_STATE_" + + "UNSPECIFIED\020\000\022$\n SKAFFOLD_SUPPORT_STATE_" + + "SUPPORTED\020\001\022+\n\'SKAFFOLD_SUPPORT_STATE_MA" + + "INTENANCE_MODE\020\002\022&\n\"SKAFFOLD_SUPPORT_STA" + + "TE_UNSUPPORTED\020\003*b\n\013BackoffMode\022\034\n\030BACKO" + + "FF_MODE_UNSPECIFIED\020\000\022\027\n\023BACKOFF_MODE_LI" + + "NEAR\020\001\022\034\n\030BACKOFF_MODE_EXPONENTIAL\020\002*\316\001\n" + + "\013RepairState\022\034\n\030REPAIR_STATE_UNSPECIFIED" + + "\020\000\022\032\n\026REPAIR_STATE_SUCCEEDED\020\001\022\032\n\026REPAIR" + + "_STATE_CANCELLED\020\002\022\027\n\023REPAIR_STATE_FAILE" + + "D\020\003\022\034\n\030REPAIR_STATE_IN_PROGRESS\020\004\022\030\n\024REP" + + "AIR_STATE_PENDING\020\005\022\030\n\024REPAIR_STATE_ABOR" + + "TED\020\0072\357L\n\013CloudDeploy\022\314\001\n\025ListDeliveryPi" + + "pelines\0224.google.cloud.deploy.v1.ListDel" + + "iveryPipelinesRequest\0325.google.cloud.dep" + + "loy.v1.ListDeliveryPipelinesResponse\"F\332A" + + "\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*/lo" + + "cations/*}/deliveryPipelines\022\271\001\n\023GetDeli" + + "veryPipeline\0222.google.cloud.deploy.v1.Ge" + + "tDeliveryPipelineRequest\032(.google.cloud." + + "deploy.v1.DeliveryPipeline\"D\332A\004name\202\323\344\223\002" + + "7\0225/v1/{name=projects/*/locations/*/deli" + + "veryPipelines/*}\022\231\002\n\026CreateDeliveryPipel" + + "ine\0225.google.cloud.deploy.v1.CreateDeliv" + + "eryPipelineRequest\032\035.google.longrunning." + + "Operation\"\250\001\312A%\n\020DeliveryPipeline\022\021Opera" + + "tionMetadata\332A-parent,delivery_pipeline," + + "delivery_pipeline_id\202\323\344\223\002J\"5/v1/{parent=" + + "projects/*/locations/*}/deliveryPipeline" + + "s:\021delivery_pipeline\022\233\002\n\026UpdateDeliveryP" + + "ipeline\0225.google.cloud.deploy.v1.UpdateD" + + "eliveryPipelineRequest\032\035.google.longrunn" + + "ing.Operation\"\252\001\312A%\n\020DeliveryPipeline\022\021O" + + "perationMetadata\332A\035delivery_pipeline,upd" + + "ate_mask\202\323\344\223\002\\2G/v1/{delivery_pipeline.n" + + "ame=projects/*/locations/*/deliveryPipel" + + "ines/*}:\021delivery_pipeline\022\341\001\n\026DeleteDel" + + "iveryPipeline\0225.google.cloud.deploy.v1.D" + + "eleteDeliveryPipelineRequest\032\035.google.lo" + + "ngrunning.Operation\"q\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0027*" + + "5/v1/{name=projects/*/locations/*/delive" + + "ryPipelines/*}\022\244\001\n\013ListTargets\022*.google." + + "cloud.deploy.v1.ListTargetsRequest\032+.goo" + + "gle.cloud.deploy.v1.ListTargetsResponse\"" + + "<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=projects/*" + + "/locations/*}/targets\022\334\001\n\016RollbackTarget" + + "\022-.google.cloud.deploy.v1.RollbackTarget" + + "Request\032..google.cloud.deploy.v1.Rollbac" + + "kTargetResponse\"k\332A\031name,target_id,rollo" + + "ut_id\202\323\344\223\002I\"D/v1/{name=projects/*/locati" + + "ons/*/deliveryPipelines/*}:rollbackTarge" + + "t:\001*\022\221\001\n\tGetTarget\022(.google.cloud.deploy" + + ".v1.GetTargetRequest\032\036.google.cloud.depl" + + "oy.v1.Target\":\332A\004name\202\323\344\223\002-\022+/v1/{name=p" + + "rojects/*/locations/*/targets/*}\022\317\001\n\014Cre" + + "ateTarget\022+.google.cloud.deploy.v1.Creat" + + "eTargetRequest\032\035.google.longrunning.Oper" + + "ation\"s\312A\033\n\006Target\022\021OperationMetadata\332A\027" + + "parent,target,target_id\202\323\344\223\0025\"+/v1/{pare" + + "nt=projects/*/locations/*}/targets:\006targ" + + "et\022\321\001\n\014UpdateTarget\022+.google.cloud.deplo" + + "y.v1.UpdateTargetRequest\032\035.google.longru" + + "nning.Operation\"u\312A\033\n\006Target\022\021OperationM" + + "etadata\332A\022target,update_mask\202\323\344\223\002<22/v1/" + + "{target.name=projects/*/locations/*/targ" + + "ets/*}:\006target\022\303\001\n\014DeleteTarget\022+.google" + + ".cloud.deploy.v1.DeleteTargetRequest\032\035.g" + + "oogle.longrunning.Operation\"g\312A*\n\025google" + + ".protobuf.Empty\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\002-*+/v1/{name=projects/*/locations/" + + "*/targets/*}\022\314\001\n\025ListCustomTargetTypes\0224" + + ".google.cloud.deploy.v1.ListCustomTarget" + + "TypesRequest\0325.google.cloud.deploy.v1.Li" + + "stCustomTargetTypesResponse\"F\332A\006parent\202\323" + + "\344\223\0027\0225/v1/{parent=projects/*/locations/*" + + "}/customTargetTypes\022\271\001\n\023GetCustomTargetT" + + "ype\0222.google.cloud.deploy.v1.GetCustomTa" + + "rgetTypeRequest\032(.google.cloud.deploy.v1" + + ".CustomTargetType\"D\332A\004name\202\323\344\223\0027\0225/v1/{n" + + "ame=projects/*/locations/*/customTargetT" + + "ypes/*}\022\234\002\n\026CreateCustomTargetType\0225.goo" + + "gle.cloud.deploy.v1.CreateCustomTargetTy" + + "peRequest\032\035.google.longrunning.Operation" + + "\"\253\001\312A%\n\020CustomTargetType\022\021OperationMetad" + + "ata\332A/parent,custom_target_type,custom_t" + + "arget_type_id\202\323\344\223\002K\"5/v1/{parent=project" + + "s/*/locations/*}/customTargetTypes:\022cust" + + "om_target_type\022\236\002\n\026UpdateCustomTargetTyp" + + "e\0225.google.cloud.deploy.v1.UpdateCustomT" + "argetTypeRequest\032\035.google.longrunning.Op" - + "eration\"\253\001\312A%\n\020CustomTargetType\022\021Operati" - + "onMetadata\332A/parent,custom_target_type,c" - + "ustom_target_type_id\202\323\344\223\002K\"5/v1/{parent=" - + "projects/*/locations/*}/customTargetType" - + "s:\022custom_target_type\022\236\002\n\026UpdateCustomTa" - + "rgetType\0225.google.cloud.deploy.v1.Update" - + "CustomTargetTypeRequest\032\035.google.longrun" - + "ning.Operation\"\255\001\312A%\n\020CustomTargetType\022\021" - + "OperationMetadata\332A\036custom_target_type,u" - + "pdate_mask\202\323\344\223\002^2H/v1/{custom_target_typ" - + "e.name=projects/*/locations/*/customTarg" - + "etTypes/*}:\022custom_target_type\022\341\001\n\026Delet" - + "eCustomTargetType\0225.google.cloud.deploy." - + "v1.DeleteCustomTargetTypeRequest\032\035.googl" - + "e.longrunning.Operation\"q\312A*\n\025google.pro" - + "tobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\0027*5/v1/{name=projects/*/locations/*/cu" - + "stomTargetTypes/*}\022\274\001\n\014ListReleases\022+.go" - + "ogle.cloud.deploy.v1.ListReleasesRequest" - + "\032,.google.cloud.deploy.v1.ListReleasesRe" - + "sponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{parent=pro" - + "jects/*/locations/*/deliveryPipelines/*}" - + "/releases\022\251\001\n\nGetRelease\022).google.cloud." - + "deploy.v1.GetReleaseRequest\032\037.google.clo" - + "ud.deploy.v1.Release\"O\332A\004name\202\323\344\223\002B\022@/v1" - + "/{name=projects/*/locations/*/deliveryPi" - + "pelines/*/releases/*}\022\353\001\n\rCreateRelease\022" - + ",.google.cloud.deploy.v1.CreateReleaseRe" - + "quest\032\035.google.longrunning.Operation\"\214\001\312" - + "A\034\n\007Release\022\021OperationMetadata\332A\031parent," - + "release,release_id\202\323\344\223\002K\"@/v1/{parent=pr" - + "ojects/*/locations/*/deliveryPipelines/*" - + "}/releases:\007release\022\313\001\n\016AbandonRelease\022-" - + ".google.cloud.deploy.v1.AbandonReleaseRe" - + "quest\032..google.cloud.deploy.v1.AbandonRe" - + "leaseResponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=" - + "projects/*/locations/*/deliveryPipelines" - + "/*/releases/*}:abandon:\001*\022\376\001\n\022CreateDepl" - + "oyPolicy\0221.google.cloud.deploy.v1.Create" - + "DeployPolicyRequest\032\035.google.longrunning" - + ".Operation\"\225\001\312A!\n\014DeployPolicy\022\021Operatio" - + "nMetadata\332A%parent,deploy_policy,deploy_" - + "policy_id\202\323\344\223\002C\"2/v1/{parent=projects/*/" - + "locations/*}/deployPolicies:\rdeploy_poli" - + "cy\022\200\002\n\022UpdateDeployPolicy\0221.google.cloud" - + ".deploy.v1.UpdateDeployPolicyRequest\032\035.g" - + "oogle.longrunning.Operation\"\227\001\312A!\n\014Deplo" - + "yPolicy\022\021OperationMetadata\332A\031deploy_poli" - + "cy,update_mask\202\323\344\223\002Q2@/v1/{deploy_policy" - + ".name=projects/*/locations/*/deployPolic" - + "ies/*}:\rdeploy_policy\022\326\001\n\022DeleteDeployPo" - + "licy\0221.google.cloud.deploy.v1.DeleteDepl" - + "oyPolicyRequest\032\035.google.longrunning.Ope" - + "ration\"n\312A*\n\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\0024*2/v1/{name=pr" - + "ojects/*/locations/*/deployPolicies/*}\022\300" - + "\001\n\022ListDeployPolicies\0221.google.cloud.dep" - + "loy.v1.ListDeployPoliciesRequest\0322.googl" - + "e.cloud.deploy.v1.ListDeployPoliciesResp" - + "onse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{parent=proje" - + "cts/*/locations/*}/deployPolicies\022\252\001\n\017Ge" - + "tDeployPolicy\022..google.cloud.deploy.v1.G" - + "etDeployPolicyRequest\032$.google.cloud.dep" - + "loy.v1.DeployPolicy\"A\332A\004name\202\323\344\223\0024\0222/v1/" - + "{name=projects/*/locations/*/deployPolic" - + "ies/*}\022\326\001\n\016ApproveRollout\022-.google.cloud" - + ".deploy.v1.ApproveRolloutRequest\032..googl" - + "e.cloud.deploy.v1.ApproveRolloutResponse" - + "\"e\332A\004name\202\323\344\223\002X\"S/v1/{name=projects/*/lo" - + "cations/*/deliveryPipelines/*/releases/*" - + "/rollouts/*}:approve:\001*\022\337\001\n\016AdvanceRollo" - + "ut\022-.google.cloud.deploy.v1.AdvanceRollo" - + "utRequest\032..google.cloud.deploy.v1.Advan" - + "ceRolloutResponse\"n\332A\rname,phase_id\202\323\344\223\002" - + "X\"S/v1/{name=projects/*/locations/*/deli" - + "veryPipelines/*/releases/*/rollouts/*}:a" - + "dvance:\001*\022\322\001\n\rCancelRollout\022,.google.clo" - + "ud.deploy.v1.CancelRolloutRequest\032-.goog" - + "le.cloud.deploy.v1.CancelRolloutResponse" - + "\"d\332A\004name\202\323\344\223\002W\"R/v1/{name=projects/*/lo" - + "cations/*/deliveryPipelines/*/releases/*" - + "/rollouts/*}:cancel:\001*\022\307\001\n\014ListRollouts\022" - + "+.google.cloud.deploy.v1.ListRolloutsReq" - + "uest\032,.google.cloud.deploy.v1.ListRollou" - + "tsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent" - + "=projects/*/locations/*/deliveryPipeline" - + "s/*/releases/*}/rollouts\022\264\001\n\nGetRollout\022" - + ").google.cloud.deploy.v1.GetRolloutReque" - + "st\032\037.google.cloud.deploy.v1.Rollout\"Z\332A\004" - + "name\202\323\344\223\002M\022K/v1/{name=projects/*/locatio" - + "ns/*/deliveryPipelines/*/releases/*/roll" - + "outs/*}\022\366\001\n\rCreateRollout\022,.google.cloud" - + ".deploy.v1.CreateRolloutRequest\032\035.google" - + ".longrunning.Operation\"\227\001\312A\034\n\007Rollout\022\021O" - + "perationMetadata\332A\031parent,rollout,rollou" - + "t_id\202\323\344\223\002V\"K/v1/{parent=projects/*/locat" - + "ions/*/deliveryPipelines/*/releases/*}/r" - + "ollouts:\007rollout\022\337\001\n\tIgnoreJob\022(.google." - + "cloud.deploy.v1.IgnoreJobRequest\032).googl" - + "e.cloud.deploy.v1.IgnoreJobResponse\"}\332A\027" - + "rollout,phase_id,job_id\202\323\344\223\002]\"X/v1/{roll" - + "out=projects/*/locations/*/deliveryPipel" - + "ines/*/releases/*/rollouts/*}:ignoreJob:" - + "\001*\022\333\001\n\010RetryJob\022\'.google.cloud.deploy.v1" - + ".RetryJobRequest\032(.google.cloud.deploy.v" - + "1.RetryJobResponse\"|\332A\027rollout,phase_id," - + "job_id\202\323\344\223\002\\\"W/v1/{rollout=projects/*/lo" - + "cations/*/deliveryPipelines/*/releases/*" - + "/rollouts/*}:retryJob:\001*\022\316\001\n\013ListJobRuns" - + "\022*.google.cloud.deploy.v1.ListJobRunsReq" - + "uest\032+.google.cloud.deploy.v1.ListJobRun" - + "sResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=" + + "eration\"\255\001\312A%\n\020CustomTargetType\022\021Operati" + + "onMetadata\332A\036custom_target_type,update_m" + + "ask\202\323\344\223\002^2H/v1/{custom_target_type.name=" + + "projects/*/locations/*/customTargetTypes" + + "/*}:\022custom_target_type\022\341\001\n\026DeleteCustom" + + "TargetType\0225.google.cloud.deploy.v1.Dele" + + "teCustomTargetTypeRequest\032\035.google.longr" + + "unning.Operation\"q\312A*\n\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\0027*5/v" + + "1/{name=projects/*/locations/*/customTar" + + "getTypes/*}\022\274\001\n\014ListReleases\022+.google.cl" + + "oud.deploy.v1.ListReleasesRequest\032,.goog" + + "le.cloud.deploy.v1.ListReleasesResponse\"" + + "Q\332A\006parent\202\323\344\223\002B\022@/v1/{parent=projects/*" + + "/locations/*/deliveryPipelines/*}/releas" + + "es\022\251\001\n\nGetRelease\022).google.cloud.deploy." + + "v1.GetReleaseRequest\032\037.google.cloud.depl" + + "oy.v1.Release\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=" + "projects/*/locations/*/deliveryPipelines" - + "/*/releases/*/rollouts/*}/jobRuns\022\273\001\n\tGe" - + "tJobRun\022(.google.cloud.deploy.v1.GetJobR" - + "unRequest\032\036.google.cloud.deploy.v1.JobRu" - + "n\"d\332A\004name\202\323\344\223\002W\022U/v1/{name=projects/*/l" - + "ocations/*/deliveryPipelines/*/releases/" - + "*/rollouts/*/jobRuns/*}\022\345\001\n\017TerminateJob" - + "Run\022..google.cloud.deploy.v1.TerminateJo" - + "bRunRequest\032/.google.cloud.deploy.v1.Ter" - + "minateJobRunResponse\"q\332A\004name\202\323\344\223\002d\"_/v1" - + "/{name=projects/*/locations/*/deliveryPi" - + "pelines/*/releases/*/rollouts/*/jobRuns/" - + "*}:terminate:\001*\022\216\001\n\tGetConfig\022(.google.c" - + "loud.deploy.v1.GetConfigRequest\032\036.google" - + ".cloud.deploy.v1.Config\"7\332A\004name\202\323\344\223\002*\022(" - + "/v1/{name=projects/*/locations/*/config}" - + "\022\200\002\n\020CreateAutomation\022/.google.cloud.dep" - + "loy.v1.CreateAutomationRequest\032\035.google." - + "longrunning.Operation\"\233\001\312A\037\n\nAutomation\022" - + "\021OperationMetadata\332A\037parent,automation,a" - + "utomation_id\202\323\344\223\002Q\"C/v1/{parent=projects" - + "/*/locations/*/deliveryPipelines/*}/auto" - + "mations:\nautomation\022\202\002\n\020UpdateAutomation" - + "\022/.google.cloud.deploy.v1.UpdateAutomati" - + "onRequest\032\035.google.longrunning.Operation" - + "\"\235\001\312A\037\n\nAutomation\022\021OperationMetadata\332A\026" - + "automation,update_mask\202\323\344\223\002\\2N/v1/{autom" - + "ation.name=projects/*/locations/*/delive" - + "ryPipelines/*/automations/*}:\nautomation" - + "\022\343\001\n\020DeleteAutomation\022/.google.cloud.dep" - + "loy.v1.DeleteAutomationRequest\032\035.google." - + "longrunning.Operation\"\177\312A*\n\025google.proto" - + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "E*C/v1/{name=projects/*/locations/*/deli" - + "veryPipelines/*/automations/*}\022\265\001\n\rGetAu" - + "tomation\022,.google.cloud.deploy.v1.GetAut" - + "omationRequest\032\".google.cloud.deploy.v1." - + "Automation\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=pro" + + "/*/releases/*}\022\353\001\n\rCreateRelease\022,.googl" + + "e.cloud.deploy.v1.CreateReleaseRequest\032\035" + + ".google.longrunning.Operation\"\214\001\312A\034\n\007Rel" + + "ease\022\021OperationMetadata\332A\031parent,release" + + ",release_id\202\323\344\223\002K\"@/v1/{parent=projects/" + + "*/locations/*/deliveryPipelines/*}/relea" + + "ses:\007release\022\313\001\n\016AbandonRelease\022-.google" + + ".cloud.deploy.v1.AbandonReleaseRequest\032." + + ".google.cloud.deploy.v1.AbandonReleaseRe" + + "sponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*}:abandon:\001*\022\376\001\n\022CreateDeployPolic" + + "y\0221.google.cloud.deploy.v1.CreateDeployP" + + "olicyRequest\032\035.google.longrunning.Operat" + + "ion\"\225\001\312A!\n\014DeployPolicy\022\021OperationMetada" + + "ta\332A%parent,deploy_policy,deploy_policy_" + + "id\202\323\344\223\002C\"2/v1/{parent=projects/*/locatio" + + "ns/*}/deployPolicies:\rdeploy_policy\022\200\002\n\022" + + "UpdateDeployPolicy\0221.google.cloud.deploy" + + ".v1.UpdateDeployPolicyRequest\032\035.google.l" + + "ongrunning.Operation\"\227\001\312A!\n\014DeployPolicy" + + "\022\021OperationMetadata\332A\031deploy_policy,upda" + + "te_mask\202\323\344\223\002Q2@/v1/{deploy_policy.name=p" + + "rojects/*/locations/*/deployPolicies/*}:" + + "\rdeploy_policy\022\326\001\n\022DeleteDeployPolicy\0221." + + "google.cloud.deploy.v1.DeleteDeployPolic" + + "yRequest\032\035.google.longrunning.Operation\"" + + "n\312A*\n\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0024*2/v1/{name=projects/" + + "*/locations/*/deployPolicies/*}\022\300\001\n\022List" + + "DeployPolicies\0221.google.cloud.deploy.v1." + + "ListDeployPoliciesRequest\0322.google.cloud" + + ".deploy.v1.ListDeployPoliciesResponse\"C\332" + + "A\006parent\202\323\344\223\0024\0222/v1/{parent=projects/*/l" + + "ocations/*}/deployPolicies\022\252\001\n\017GetDeploy" + + "Policy\022..google.cloud.deploy.v1.GetDeplo" + + "yPolicyRequest\032$.google.cloud.deploy.v1." + + "DeployPolicy\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=p" + + "rojects/*/locations/*/deployPolicies/*}\022" + + "\326\001\n\016ApproveRollout\022-.google.cloud.deploy" + + ".v1.ApproveRolloutRequest\032..google.cloud" + + ".deploy.v1.ApproveRolloutResponse\"e\332A\004na" + + "me\202\323\344\223\002X\"S/v1/{name=projects/*/locations" + + "/*/deliveryPipelines/*/releases/*/rollou" + + "ts/*}:approve:\001*\022\337\001\n\016AdvanceRollout\022-.go" + + "ogle.cloud.deploy.v1.AdvanceRolloutReque" + + "st\032..google.cloud.deploy.v1.AdvanceRollo" + + "utResponse\"n\332A\rname,phase_id\202\323\344\223\002X\"S/v1/" + + "{name=projects/*/locations/*/deliveryPip" + + "elines/*/releases/*/rollouts/*}:advance:" + + "\001*\022\322\001\n\rCancelRollout\022,.google.cloud.depl" + + "oy.v1.CancelRolloutRequest\032-.google.clou" + + "d.deploy.v1.CancelRolloutResponse\"d\332A\004na" + + "me\202\323\344\223\002W\"R/v1/{name=projects/*/locations" + + "/*/deliveryPipelines/*/releases/*/rollou" + + "ts/*}:cancel:\001*\022\307\001\n\014ListRollouts\022+.googl" + + "e.cloud.deploy.v1.ListRolloutsRequest\032,." + + "google.cloud.deploy.v1.ListRolloutsRespo" + + "nse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent=projec" + + "ts/*/locations/*/deliveryPipelines/*/rel" + + "eases/*}/rollouts\022\264\001\n\nGetRollout\022).googl" + + "e.cloud.deploy.v1.GetRolloutRequest\032\037.go" + + "ogle.cloud.deploy.v1.Rollout\"Z\332A\004name\202\323\344" + + "\223\002M\022K/v1/{name=projects/*/locations/*/de" + + "liveryPipelines/*/releases/*/rollouts/*}" + + "\022\366\001\n\rCreateRollout\022,.google.cloud.deploy" + + ".v1.CreateRolloutRequest\032\035.google.longru" + + "nning.Operation\"\227\001\312A\034\n\007Rollout\022\021Operatio" + + "nMetadata\332A\031parent,rollout,rollout_id\202\323\344" + + "\223\002V\"K/v1/{parent=projects/*/locations/*/" + + "deliveryPipelines/*/releases/*}/rollouts" + + ":\007rollout\022\337\001\n\tIgnoreJob\022(.google.cloud.d" + + "eploy.v1.IgnoreJobRequest\032).google.cloud" + + ".deploy.v1.IgnoreJobResponse\"}\332A\027rollout" + + ",phase_id,job_id\202\323\344\223\002]\"X/v1/{rollout=pro" + "jects/*/locations/*/deliveryPipelines/*/" - + "automations/*}\022\310\001\n\017ListAutomations\022..goo", - "gle.cloud.deploy.v1.ListAutomationsReque" - + "st\032/.google.cloud.deploy.v1.ListAutomati" - + "onsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{paren" - + "t=projects/*/locations/*/deliveryPipelin" - + "es/*}/automations\022\301\001\n\020GetAutomationRun\022/" - + ".google.cloud.deploy.v1.GetAutomationRun" - + "Request\032%.google.cloud.deploy.v1.Automat" - + "ionRun\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=project" - + "s/*/locations/*/deliveryPipelines/*/auto" - + "mationRuns/*}\022\324\001\n\022ListAutomationRuns\0221.g" - + "oogle.cloud.deploy.v1.ListAutomationRuns" - + "Request\0322.google.cloud.deploy.v1.ListAut" - + "omationRunsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v" - + "1/{parent=projects/*/locations/*/deliver" - + "yPipelines/*}/automationRuns\022\337\001\n\023CancelA" - + "utomationRun\0222.google.cloud.deploy.v1.Ca" - + "ncelAutomationRunRequest\0323.google.cloud." - + "deploy.v1.CancelAutomationRunResponse\"_\332" - + "A\004name\202\323\344\223\002R\"M/v1/{name=projects/*/locat" - + "ions/*/deliveryPipelines/*/automationRun" - + "s/*}:cancel:\001*\032N\312A\032clouddeploy.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\215\007\n\032com.google.cloud.depl" - + "oy.v1B\020CloudDeployProtoP\001Z2cloud.google." - + "com/go/deploy/apiv1/deploypb;deploypb\352AY" - + "\n\037cloudbuild.googleapis.com/Build\0226proje" - + "cts/{project}/locations/{location}/build" - + "s/{build}\352A\202\001\n$cloudbuild.googleapis.com" - + "/Repository\022Zprojects/{project}/location" - + "s/{location}/connections/{connection}/re" - + "positories/{repository}\352A^\n container.go" - + "ogleapis.com/Cluster\022:projects/{project}" - + "/locations/{location}/clusters/{cluster}" - + "\352Af\n$clouddeploy.googleapis.com/Operatio" - + "n\022>projects/{project}/locations/{locatio" - + "n}/operations/{operation}\352Ai\n$cloudbuild" - + ".googleapis.com/WorkerPool\022Aprojects/{pr" - + "oject}/locations/{location}/workerPools/" - + "{worker_pool}\352Ad\n gkehub.googleapis.com/" - + "Membership\022@projects/{project}/locations" - + "/{location}/memberships/{membership}\352AX\n" - + "\032run.googleapis.com/Service\022:projects/{p" - + "roject}/locations/{location}/services/{s" - + "ervice}\352AL\n\026run.googleapis.com/Job\0222proj" - + "ects/{project}/locations/{location}/jobs" - + "/{job}b\006proto3" + + "releases/*/rollouts/*}:ignoreJob:\001*\022\333\001\n\010" + + "RetryJob\022\'.google.cloud.deploy.v1.RetryJ" + + "obRequest\032(.google.cloud.deploy.v1.Retry" + + "JobResponse\"|\332A\027rollout,phase_id,job_id\202" + + "\323\344\223\002\\\"W/v1/{rollout=projects/*/locations" + + "/*/deliveryPipelines/*/releases/*/rollou" + + "ts/*}:retryJob:\001*\022\316\001\n\013ListJobRuns\022*.goog" + + "le.cloud.deploy.v1.ListJobRunsRequest\032+." + + "google.cloud.deploy.v1.ListJobRunsRespon" + + "se\"f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*/rollouts/*}/jobRuns\022\273\001\n\tGetJobRun" + + "\022(.google.cloud.deploy.v1.GetJobRunReque" + + "st\032\036.google.cloud.deploy.v1.JobRun\"d\332A\004n" + + "ame\202\323\344\223\002W\022U/v1/{name=projects/*/location" + + "s/*/deliveryPipelines/*/releases/*/rollo" + + "uts/*/jobRuns/*}\022\345\001\n\017TerminateJobRun\022..g" + + "oogle.cloud.deploy.v1.TerminateJobRunReq" + + "uest\032/.google.cloud.deploy.v1.TerminateJ" + + "obRunResponse\"q\332A\004name\202\323\344\223\002d\"_/v1/{name=" + + "projects/*/locations/*/deliveryPipelines" + + "/*/releases/*/rollouts/*/jobRuns/*}:term" + + "inate:\001*\022\216\001\n\tGetConfig\022(.google.cloud.de" + + "ploy.v1.GetConfigRequest\032\036.google.cloud." + + "deploy.v1.Config\"7\332A\004name\202\323\344\223\002*\022(/v1/{na" + + "me=projects/*/locations/*/config}\022\200\002\n\020Cr" + + "eateAutomation\022/.google.cloud.deploy.v1." + + "CreateAutomationRequest\032\035.google.longrun" + + "ning.Operation\"\233\001\312A\037\n\nAutomation\022\021Operat" + + "ionMetadata\332A\037parent,automation,automati" + + "on_id\202\323\344\223\002Q\"C/v1/{parent=projects/*/loca" + + "tions/*/deliveryPipelines/*}/automations" + + ":\nautomation\022\202\002\n\020UpdateAutomation\022/.goog" + + "le.cloud.deploy.v1.UpdateAutomationReque" + + "st\032\035.google.longrunning.Operation\"\235\001\312A\037\n" + + "\nAutomation\022\021OperationMetadata\332A\026automat" + + "ion,update_mask\202\323\344\223\002\\2N/v1/{automation.n" + + "ame=projects/*/locations/*/deliveryPipel" + + "ines/*/automations/*}:\nautomation\022\343\001\n\020De" + + "leteAutomation\022/.google.cloud.deploy.v1." + + "DeleteAutomationRequest\032\035.google.longrun" + + "ning.Operation\"\177\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002E*C/v1/" + + "{name=projects/*/locations/*/deliveryPip" + + "elines/*/automations/*}\022\265\001\n\rGetAutomatio" + + "n\022,.google.cloud.deploy.v1.GetAutomation" + + "Request\032\".google.cloud.deploy.v1.Automat" + + "ion\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects/*" + + "/locations/*/deliveryPipelines/*/automat", + "ions/*}\022\310\001\n\017ListAutomations\022..google.clo" + + "ud.deploy.v1.ListAutomationsRequest\032/.go" + + "ogle.cloud.deploy.v1.ListAutomationsResp" + + "onse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=proje" + + "cts/*/locations/*/deliveryPipelines/*}/a" + + "utomations\022\301\001\n\020GetAutomationRun\022/.google" + + ".cloud.deploy.v1.GetAutomationRunRequest" + + "\032%.google.cloud.deploy.v1.AutomationRun\"" + + "U\332A\004name\202\323\344\223\002H\022F/v1/{name=projects/*/loc" + + "ations/*/deliveryPipelines/*/automationR" + + "uns/*}\022\324\001\n\022ListAutomationRuns\0221.google.c" + + "loud.deploy.v1.ListAutomationRunsRequest" + + "\0322.google.cloud.deploy.v1.ListAutomation" + + "RunsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{pare" + + "nt=projects/*/locations/*/deliveryPipeli" + + "nes/*}/automationRuns\022\337\001\n\023CancelAutomati" + + "onRun\0222.google.cloud.deploy.v1.CancelAut" + + "omationRunRequest\0323.google.cloud.deploy." + + "v1.CancelAutomationRunResponse\"_\332A\004name\202" + + "\323\344\223\002R\"M/v1/{name=projects/*/locations/*/" + + "deliveryPipelines/*/automationRuns/*}:ca" + + "ncel:\001*\032N\312A\032clouddeploy.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\215\007\n\032com.google.cloud.deploy.v1B\020" + + "CloudDeployProtoP\001Z2cloud.google.com/go/" + + "deploy/apiv1/deploypb;deploypb\352AY\n\037cloud" + + "build.googleapis.com/Build\0226projects/{pr" + + "oject}/locations/{location}/builds/{buil" + + "d}\352A\202\001\n$cloudbuild.googleapis.com/Reposi" + + "tory\022Zprojects/{project}/locations/{loca" + + "tion}/connections/{connection}/repositor" + + "ies/{repository}\352A^\n container.googleapi" + + "s.com/Cluster\022:projects/{project}/locati" + + "ons/{location}/clusters/{cluster}\352Af\n$cl" + + "ouddeploy.googleapis.com/Operation\022>proj" + + "ects/{project}/locations/{location}/oper" + + "ations/{operation}\352Ai\n$cloudbuild.google" + + "apis.com/WorkerPool\022Aprojects/{project}/" + + "locations/{location}/workerPools/{worker" + + "_pool}\352Ad\n gkehub.googleapis.com/Members" + + "hip\022@projects/{project}/locations/{locat" + + "ion}/memberships/{membership}\352AX\n\032run.go" + + "ogleapis.com/Service\022:projects/{project}" + + "/locations/{location}/services/{service}" + + "\352AL\n\026run.googleapis.com/Job\0222projects/{p" + + "roject}/locations/{location}/jobs/{job}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2500,7 +2501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GkeCluster_descriptor, new java.lang.String[] { - "Cluster", "InternalIp", "ProxyUrl", + "Cluster", "InternalIp", "ProxyUrl", "DnsEndpoint", }); internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor = getDescriptor().getMessageTypes().get(32); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java index 23fa93cf3809..e7c937b0f0eb 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java @@ -135,6 +135,7 @@ public com.google.protobuf.ByteString getClusterBytes() { * * Only specify this option when `cluster` is a [private GKE * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * Note that `internal_ip` and `dns_endpoint` cannot both be set to true. * * * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -201,6 +202,25 @@ public com.google.protobuf.ByteString getProxyUrlBytes() { } } + public static final int DNS_ENDPOINT_FIELD_NUMBER = 4; + private boolean dnsEndpoint_ = false; + /** + * + * + *
+   * Optional. If set, the cluster will be accessed using the DNS endpoint. Note
+   * that `dns_endpoint` and `internal_ip` cannot both be set to true.
+   * 
+ * + * bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsEndpoint. + */ + @java.lang.Override + public boolean getDnsEndpoint() { + return dnsEndpoint_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -224,6 +244,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proxyUrl_); } + if (dnsEndpoint_ != false) { + output.writeBool(4, dnsEndpoint_); + } getUnknownFields().writeTo(output); } @@ -242,6 +265,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, proxyUrl_); } + if (dnsEndpoint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dnsEndpoint_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +286,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCluster().equals(other.getCluster())) return false; if (getInternalIp() != other.getInternalIp()) return false; if (!getProxyUrl().equals(other.getProxyUrl())) return false; + if (getDnsEndpoint() != other.getDnsEndpoint()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +304,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIp()); hash = (37 * hash) + PROXY_URL_FIELD_NUMBER; hash = (53 * hash) + getProxyUrl().hashCode(); + hash = (37 * hash) + DNS_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDnsEndpoint()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -418,6 +447,7 @@ public Builder clear() { cluster_ = ""; internalIp_ = false; proxyUrl_ = ""; + dnsEndpoint_ = false; return this; } @@ -463,6 +493,9 @@ private void buildPartial0(com.google.cloud.deploy.v1.GkeCluster result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.proxyUrl_ = proxyUrl_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dnsEndpoint_ = dnsEndpoint_; + } } @java.lang.Override @@ -523,6 +556,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.GkeCluster other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.getDnsEndpoint() != false) { + setDnsEndpoint(other.getDnsEndpoint()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -567,6 +603,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + dnsEndpoint_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -720,6 +762,7 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { * * Only specify this option when `cluster` is a [private GKE * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * Note that `internal_ip` and `dns_endpoint` cannot both be set to true. * * * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -742,6 +785,7 @@ public boolean getInternalIp() { * * Only specify this option when `cluster` is a [private GKE * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * Note that `internal_ip` and `dns_endpoint` cannot both be set to true. * * * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -768,6 +812,7 @@ public Builder setInternalIp(boolean value) { * * Only specify this option when `cluster` is a [private GKE * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * Note that `internal_ip` and `dns_endpoint` cannot both be set to true. * * * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -897,6 +942,62 @@ public Builder setProxyUrlBytes(com.google.protobuf.ByteString value) { return this; } + private boolean dnsEndpoint_; + /** + * + * + *
+     * Optional. If set, the cluster will be accessed using the DNS endpoint. Note
+     * that `dns_endpoint` and `internal_ip` cannot both be set to true.
+     * 
+ * + * bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsEndpoint. + */ + @java.lang.Override + public boolean getDnsEndpoint() { + return dnsEndpoint_; + } + /** + * + * + *
+     * Optional. If set, the cluster will be accessed using the DNS endpoint. Note
+     * that `dns_endpoint` and `internal_ip` cannot both be set to true.
+     * 
+ * + * bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dnsEndpoint to set. + * @return This builder for chaining. + */ + public Builder setDnsEndpoint(boolean value) { + + dnsEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, the cluster will be accessed using the DNS endpoint. Note
+     * that `dns_endpoint` and `internal_ip` cannot both be set to true.
+     * 
+ * + * bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDnsEndpoint() { + bitField0_ = (bitField0_ & ~0x00000008); + dnsEndpoint_ = 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-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java index 24c2aaf3dc48..6cd4a26e194d 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java @@ -67,6 +67,7 @@ public interface GkeClusterOrBuilder * * Only specify this option when `cluster` is a [private GKE * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * Note that `internal_ip` and `dns_endpoint` cannot both be set to true. * * * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -103,4 +104,18 @@ public interface GkeClusterOrBuilder * @return The bytes for proxyUrl. */ com.google.protobuf.ByteString getProxyUrlBytes(); + + /** + * + * + *
+   * Optional. If set, the cluster will be accessed using the DNS endpoint. Note
+   * that `dns_endpoint` and `internal_ip` cannot both be set to true.
+   * 
+ * + * bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsEndpoint. + */ + boolean getDnsEndpoint(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java index 9e91176e7cec..a1eeb0f796c2 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java @@ -326,9 +326,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1620,9 +1621,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1639,9 +1641,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1662,9 +1665,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java index 96f124b7f1be..6e89c4eedacd 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java @@ -181,9 +181,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java index b9e3b52f2b60..2eb1beb7ea36 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java @@ -6584,14 +6584,14 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-   * of versions.
+   * Optional. The Skaffold version to use when operating on this release, such
+   * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+   * set of versions.
    *
    * If unset, the most recent supported Skaffold version will be used.
    * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The skaffoldVersion. */ @@ -6611,14 +6611,14 @@ public java.lang.String getSkaffoldVersion() { * * *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-   * of versions.
+   * Optional. The Skaffold version to use when operating on this release, such
+   * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+   * set of versions.
    *
    * If unset, the most recent supported Skaffold version will be used.
    * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for skaffoldVersion. */ @@ -11419,14 +11419,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * * *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-     * of versions.
+     * Optional. The Skaffold version to use when operating on this release, such
+     * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+     * set of versions.
      *
      * If unset, the most recent supported Skaffold version will be used.
      * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The skaffoldVersion. */ @@ -11445,14 +11445,14 @@ public java.lang.String getSkaffoldVersion() { * * *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-     * of versions.
+     * Optional. The Skaffold version to use when operating on this release, such
+     * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+     * set of versions.
      *
      * If unset, the most recent supported Skaffold version will be used.
      * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for skaffoldVersion. */ @@ -11471,14 +11471,14 @@ public com.google.protobuf.ByteString getSkaffoldVersionBytes() { * * *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-     * of versions.
+     * Optional. The Skaffold version to use when operating on this release, such
+     * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+     * set of versions.
      *
      * If unset, the most recent supported Skaffold version will be used.
      * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The skaffoldVersion to set. * @return This builder for chaining. @@ -11496,14 +11496,14 @@ public Builder setSkaffoldVersion(java.lang.String value) { * * *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-     * of versions.
+     * Optional. The Skaffold version to use when operating on this release, such
+     * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+     * set of versions.
      *
      * If unset, the most recent supported Skaffold version will be used.
      * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -11517,14 +11517,14 @@ public Builder clearSkaffoldVersion() { * * *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-     * of versions.
+     * Optional. The Skaffold version to use when operating on this release, such
+     * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+     * set of versions.
      *
      * If unset, the most recent supported Skaffold version will be used.
      * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for skaffoldVersion to set. * @return This builder for chaining. diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java index 2c35086f640d..c843ce593a27 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java @@ -750,14 +750,14 @@ com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeSnapshot * * *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-   * of versions.
+   * Optional. The Skaffold version to use when operating on this release, such
+   * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+   * set of versions.
    *
    * If unset, the most recent supported Skaffold version will be used.
    * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The skaffoldVersion. */ @@ -766,14 +766,14 @@ com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeSnapshot * * *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
-   * of versions.
+   * Optional. The Skaffold version to use when operating on this release, such
+   * as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
+   * set of versions.
    *
    * If unset, the most recent supported Skaffold version will be used.
    * 
* - * string skaffold_version = 19; + * string skaffold_version = 19 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for skaffoldVersion. */ diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index 4e1d200c6f4b..7f26318432a6 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -1427,12 +1427,17 @@ message GkeCluster { // // Only specify this option when `cluster` is a [private GKE // cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + // Note that `internal_ip` and `dns_endpoint` cannot both be set to true. bool internal_ip = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set, used to configure a // [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) // to the Kubernetes server. string proxy_url = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, the cluster will be accessed using the DNS endpoint. Note + // that `dns_endpoint` and `internal_ip` cannot both be set to true. + bool dns_endpoint = 4 [(google.api.field_behavior) = OPTIONAL]; } // Information specifying an Anthos Cluster. @@ -2468,12 +2473,12 @@ message Release { // client has an up-to-date value before proceeding. string etag = 16; - // The Skaffold version to use when operating on this release, such as - // "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - // of versions. + // Optional. The Skaffold version to use when operating on this release, such + // as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific + // set of versions. // // If unset, the most recent supported Skaffold version will be used. - string skaffold_version = 19; + string skaffold_version = 19 [(google.api.field_behavior) = OPTIONAL]; // Output only. Map from target ID to the target artifacts created // during the render operation. @@ -3444,9 +3449,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 573f36b73a41..3d95c811a573 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.10.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.11.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json index 9c26ea668d95..e67e89886cc9 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json @@ -512,6 +512,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.CryptoKeyConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.CryptoKeyConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.DeleteConnectionRequest", "queryAllDeclaredConstructors": true, @@ -818,6 +836,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.GitRepositoryLink", "queryAllDeclaredConstructors": true, @@ -989,6 +1061,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.ServiceDirectoryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.ServiceDirectoryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.UpdateConnectionRequest", "queryAllDeclaredConstructors": true, @@ -1007,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.UserCredential", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.UserCredential$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java index eda7969b3a91..85b59c8ad332 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java @@ -206,6 +206,7 @@ public void getConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -260,6 +261,7 @@ public void getConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -314,6 +316,7 @@ public void createConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -378,6 +381,7 @@ public void createConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -442,6 +446,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -464,6 +469,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -506,6 +512,7 @@ public void updateConnectionExceptionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConnectionAsync(connection, updateMask).get(); @@ -621,6 +628,7 @@ public void createGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -687,6 +695,7 @@ public void createGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -949,6 +958,7 @@ public void getGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockService.addResponse(expectedResponse); @@ -1009,6 +1019,7 @@ public void getGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockService.addResponse(expectedResponse); diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java index 20e80d2af54a..81edb9369a73 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java @@ -201,6 +201,7 @@ public void getConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -249,6 +250,7 @@ public void getConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -297,6 +299,7 @@ public void createConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -360,6 +363,7 @@ public void createConnectionTest2() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -423,6 +427,7 @@ public void updateConnectionTest() throws Exception { .putAllAnnotations(new HashMap()) .setEtag("etag3123477") .setUid("uid115792") + .setCryptoKeyConfig(CryptoKeyConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -568,6 +573,7 @@ public void createGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -634,6 +640,7 @@ public void createGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); Operation resultOperation = Operation.newBuilder() @@ -880,6 +887,7 @@ public void getGitRepositoryLinkTest() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockDeveloperConnect.addResponse(expectedResponse); @@ -935,6 +943,7 @@ public void getGitRepositoryLinkTest2() throws Exception { .setReconciling(true) .putAllAnnotations(new HashMap()) .setUid("uid115792") + .setWebhookId("webhookId-544129550") .build(); mockDeveloperConnect.addResponse(expectedResponse); diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java index 3c49dec16cdf..1f420169c5b4 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/Connection.java @@ -90,6 +90,9 @@ public enum ConnectionConfigCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GITHUB_CONFIG(5), + GITHUB_ENTERPRISE_CONFIG(13), + GITLAB_CONFIG(14), + GITLAB_ENTERPRISE_CONFIG(16), CONNECTIONCONFIG_NOT_SET(0); private final int value; @@ -110,6 +113,12 @@ public static ConnectionConfigCase forNumber(int value) { switch (value) { case 5: return GITHUB_CONFIG; + case 13: + return GITHUB_ENTERPRISE_CONFIG; + case 14: + return GITLAB_CONFIG; + case 16: + return GITLAB_ENTERPRISE_CONFIG; case 0: return CONNECTIONCONFIG_NOT_SET; default: @@ -177,6 +186,167 @@ public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfi return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); } + public static final int GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER = 13; + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGithubEnterpriseConfig() { + return connectionConfigCase_ == 13; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig() { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder() { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + + public static final int GITLAB_CONFIG_FIELD_NUMBER = 14; + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabConfig() { + return connectionConfigCase_ == 14; + } + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig() { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder() { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + + public static final int GITLAB_ENTERPRISE_CONFIG_FIELD_NUMBER = 16; + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabEnterpriseConfig() { + return connectionConfigCase_ == 16; + } + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig() { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder() { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -794,6 +964,66 @@ public com.google.protobuf.ByteString getUidBytes() { } } + public static final int CRYPTO_KEY_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.developerconnect.v1.CryptoKeyConfig cryptoKeyConfig_; + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + @java.lang.Override + public boolean hasCryptoKeyConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig() { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder + getCryptoKeyConfigOrBuilder() { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -842,6 +1072,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uid_); } + if (connectionConfigCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_); + } + if (connectionConfigCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getCryptoKeyConfig()); + } + if (connectionConfigCase_ == 16) { + output.writeMessage( + 16, (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_); + } getUnknownFields().writeTo(output); } @@ -903,6 +1148,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uid_); } + if (connectionConfigCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_); + } + if (connectionConfigCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCryptoKeyConfig()); + } + if (connectionConfigCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -942,11 +1205,24 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUid().equals(other.getUid())) return false; + if (hasCryptoKeyConfig() != other.hasCryptoKeyConfig()) return false; + if (hasCryptoKeyConfig()) { + if (!getCryptoKeyConfig().equals(other.getCryptoKeyConfig())) return false; + } if (!getConnectionConfigCase().equals(other.getConnectionConfigCase())) return false; switch (connectionConfigCase_) { case 5: if (!getGithubConfig().equals(other.getGithubConfig())) return false; break; + case 13: + if (!getGithubEnterpriseConfig().equals(other.getGithubEnterpriseConfig())) return false; + break; + case 14: + if (!getGitlabConfig().equals(other.getGitlabConfig())) return false; + break; + case 16: + if (!getGitlabEnterpriseConfig().equals(other.getGitlabEnterpriseConfig())) return false; + break; case 0: default: } @@ -995,11 +1271,27 @@ public int hashCode() { hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); + if (hasCryptoKeyConfig()) { + hash = (37 * hash) + CRYPTO_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKeyConfig().hashCode(); + } switch (connectionConfigCase_) { case 5: hash = (37 * hash) + GITHUB_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGithubConfig().hashCode(); break; + case 13: + hash = (37 * hash) + GITHUB_ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGithubEnterpriseConfig().hashCode(); + break; + case 14: + hash = (37 * hash) + GITLAB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGitlabConfig().hashCode(); + break; + case 16: + hash = (37 * hash) + GITLAB_ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGitlabEnterpriseConfig().hashCode(); + break; case 0: default: } @@ -1173,6 +1465,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getDeleteTimeFieldBuilder(); getInstallationStateFieldBuilder(); + getCryptoKeyConfigFieldBuilder(); } } @@ -1183,6 +1476,15 @@ public Builder clear() { if (githubConfigBuilder_ != null) { githubConfigBuilder_.clear(); } + if (githubEnterpriseConfigBuilder_ != null) { + githubEnterpriseConfigBuilder_.clear(); + } + if (gitlabConfigBuilder_ != null) { + gitlabConfigBuilder_.clear(); + } + if (gitlabEnterpriseConfigBuilder_ != null) { + gitlabEnterpriseConfigBuilder_.clear(); + } name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { @@ -1210,6 +1512,11 @@ public Builder clear() { internalGetMutableAnnotations().clear(); etag_ = ""; uid_ = ""; + cryptoKeyConfig_ = null; + if (cryptoKeyConfigBuilder_ != null) { + cryptoKeyConfigBuilder_.dispose(); + cryptoKeyConfigBuilder_ = null; + } connectionConfigCase_ = 0; connectionConfig_ = null; return this; @@ -1249,49 +1556,54 @@ public com.google.cloud.developerconnect.v1.Connection buildPartial() { private void buildPartial0(com.google.cloud.developerconnect.v1.Connection result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.installationState_ = installationStateBuilder_ == null ? installationState_ : installationStateBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.disabled_ = disabled_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.uid_ = uid_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.cryptoKeyConfig_ = + cryptoKeyConfigBuilder_ == null ? cryptoKeyConfig_ : cryptoKeyConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1301,6 +1613,15 @@ private void buildPartialOneofs(com.google.cloud.developerconnect.v1.Connection if (connectionConfigCase_ == 5 && githubConfigBuilder_ != null) { result.connectionConfig_ = githubConfigBuilder_.build(); } + if (connectionConfigCase_ == 13 && githubEnterpriseConfigBuilder_ != null) { + result.connectionConfig_ = githubEnterpriseConfigBuilder_.build(); + } + if (connectionConfigCase_ == 14 && gitlabConfigBuilder_ != null) { + result.connectionConfig_ = gitlabConfigBuilder_.build(); + } + if (connectionConfigCase_ == 16 && gitlabEnterpriseConfigBuilder_ != null) { + result.connectionConfig_ = gitlabEnterpriseConfigBuilder_.build(); + } } @java.lang.Override @@ -1351,7 +1672,7 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1364,7 +1685,7 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) mergeDeleteTime(other.getDeleteTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; if (other.hasInstallationState()) { mergeInstallationState(other.getInstallationState()); } @@ -1375,23 +1696,41 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.Connection other) setReconciling(other.getReconciling()); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); } + if (other.hasCryptoKeyConfig()) { + mergeCryptoKeyConfig(other.getCryptoKeyConfig()); + } switch (other.getConnectionConfigCase()) { case GITHUB_CONFIG: { mergeGithubConfig(other.getGithubConfig()); break; } + case GITHUB_ENTERPRISE_CONFIG: + { + mergeGithubEnterpriseConfig(other.getGithubEnterpriseConfig()); + break; + } + case GITLAB_CONFIG: + { + mergeGitlabConfig(other.getGitlabConfig()); + break; + } + case GITLAB_ENTERPRISE_CONFIG: + { + mergeGitlabEnterpriseConfig(other.getGitlabEnterpriseConfig()); + break; + } case CONNECTIONCONFIG_NOT_SET: { break; @@ -1426,19 +1765,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -1450,7 +1789,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 34 case 42: @@ -1463,19 +1802,19 @@ public Builder mergeFrom( { input.readMessage( getInstallationStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 50 case 56: { disabled_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; break; } // case 56 case 64: { reconciling_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; break; } // case 64 case 74: @@ -1487,27 +1826,53 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; break; } // case 74 case 82: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; break; } // case 82 case 90: { input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; break; } // case 90 case 98: { uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; break; } // case 98 + case 106: + { + input.readMessage( + getGithubEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage(getGitlabConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage(getCryptoKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + input.readMessage( + getGitlabEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); + connectionConfigCase_ = 16; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1580,71 +1945,728 @@ public com.google.cloud.developerconnect.v1.GitHubConfig getGithubConfig() { } return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); } else { - if (connectionConfigCase_ == 5) { - return githubConfigBuilder_.getMessage(); + if (connectionConfigCase_ == 5) { + return githubConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder setGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { + if (githubConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + githubConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder setGithubConfig( + com.google.cloud.developerconnect.v1.GitHubConfig.Builder builderForValue) { + if (githubConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + githubConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { + if (githubConfigBuilder_ == null) { + if (connectionConfigCase_ == 5 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 5) { + githubConfigBuilder_.mergeFrom(value); + } else { + githubConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public Builder clearGithubConfig() { + if (githubConfigBuilder_ == null) { + if (connectionConfigCase_ == 5) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 5) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + githubConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + public com.google.cloud.developerconnect.v1.GitHubConfig.Builder getGithubConfigBuilder() { + return getGithubConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder() { + if ((connectionConfigCase_ == 5) && (githubConfigBuilder_ != null)) { + return githubConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 5) { + return (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to github.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubConfig, + com.google.cloud.developerconnect.v1.GitHubConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder> + getGithubConfigFieldBuilder() { + if (githubConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 5)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + } + githubConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubConfig, + com.google.cloud.developerconnect.v1.GitHubConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 5; + onChanged(); + return githubConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder> + githubEnterpriseConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGithubEnterpriseConfig() { + return connectionConfigCase_ == 13; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig() { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 13) { + return githubEnterpriseConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder setGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig value) { + if (githubEnterpriseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + githubEnterpriseConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder setGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder builderForValue) { + if (githubEnterpriseConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + githubEnterpriseConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder mergeGithubEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig value) { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig + .getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 13) { + githubEnterpriseConfigBuilder_.mergeFrom(value); + } else { + githubEnterpriseConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 13; + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public Builder clearGithubEnterpriseConfig() { + if (githubEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 13) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 13) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + githubEnterpriseConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder + getGithubEnterpriseConfigBuilder() { + return getGithubEnterpriseConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder() { + if ((connectionConfigCase_ == 13) && (githubEnterpriseConfigBuilder_ != null)) { + return githubEnterpriseConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 13) { + return (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to an instance of GitHub Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder> + getGithubEnterpriseConfigFieldBuilder() { + if (githubEnterpriseConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 13)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + githubEnterpriseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 13; + onChanged(); + return githubEnterpriseConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder> + gitlabConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabConfig() { + return connectionConfigCase_ == 14; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig() { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 14) { + return gitlabConfigBuilder_.getMessage(); + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder setGitlabConfig(com.google.cloud.developerconnect.v1.GitLabConfig value) { + if (gitlabConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionConfig_ = value; + onChanged(); + } else { + gitlabConfigBuilder_.setMessage(value); + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder setGitlabConfig( + com.google.cloud.developerconnect.v1.GitLabConfig.Builder builderForValue) { + if (gitlabConfigBuilder_ == null) { + connectionConfig_ = builderForValue.build(); + onChanged(); + } else { + gitlabConfigBuilder_.setMessage(builderForValue.build()); + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder mergeGitlabConfig(com.google.cloud.developerconnect.v1.GitLabConfig value) { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14 + && connectionConfig_ + != com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance()) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitLabConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionConfig_ = value; + } + onChanged(); + } else { + if (connectionConfigCase_ == 14) { + gitlabConfigBuilder_.mergeFrom(value); + } else { + gitlabConfigBuilder_.setMessage(value); + } + } + connectionConfigCase_ = 14; + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public Builder clearGitlabConfig() { + if (gitlabConfigBuilder_ == null) { + if (connectionConfigCase_ == 14) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + onChanged(); + } + } else { + if (connectionConfigCase_ == 14) { + connectionConfigCase_ = 0; + connectionConfig_ = null; + } + gitlabConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + public com.google.cloud.developerconnect.v1.GitLabConfig.Builder getGitlabConfigBuilder() { + return getGitlabConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder() { + if ((connectionConfigCase_ == 14) && (gitlabConfigBuilder_ != null)) { + return gitlabConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectionConfigCase_ == 14) { + return (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for connections to gitlab.com.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder> + getGitlabConfigFieldBuilder() { + if (gitlabConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 14)) { + connectionConfig_ = + com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + gitlabConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabConfig, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitLabConfig) connectionConfig_, + getParentForChildren(), + isClean()); + connectionConfig_ = null; + } + connectionConfigCase_ = 14; + onChanged(); + return gitlabConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder> + gitlabEnterpriseConfigBuilder_; + /** + * + * + *
+     * Configuration for connections to an instance of GitLab Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasGitlabEnterpriseConfig() { + return connectionConfigCase_ == 16; + } + /** + * + * + *
+     * Configuration for connections to an instance of GitLab Enterprise.
+     * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; + } + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } else { + if (connectionConfigCase_ == 16) { + return gitlabEnterpriseConfigBuilder_.getMessage(); } - return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder setGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { - if (githubConfigBuilder_ == null) { + public Builder setGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig value) { + if (gitlabEnterpriseConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connectionConfig_ = value; onChanged(); } else { - githubConfigBuilder_.setMessage(value); + gitlabEnterpriseConfigBuilder_.setMessage(value); } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder setGithubConfig( - com.google.cloud.developerconnect.v1.GitHubConfig.Builder builderForValue) { - if (githubConfigBuilder_ == null) { + public Builder setGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder builderForValue) { + if (gitlabEnterpriseConfigBuilder_ == null) { connectionConfig_ = builderForValue.build(); onChanged(); } else { - githubConfigBuilder_.setMessage(builderForValue.build()); + gitlabEnterpriseConfigBuilder_.setMessage(builderForValue.build()); } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConfig value) { - if (githubConfigBuilder_ == null) { - if (connectionConfigCase_ == 5 + public Builder mergeGitlabEnterpriseConfig( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig value) { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16 && connectionConfig_ - != com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance()) { + != com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig + .getDefaultInstance()) { connectionConfig_ = - com.google.cloud.developerconnect.v1.GitHubConfig.newBuilder( - (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_) + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.newBuilder( + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + connectionConfig_) .mergeFrom(value) .buildPartial(); } else { @@ -1652,37 +2674,38 @@ public Builder mergeGithubConfig(com.google.cloud.developerconnect.v1.GitHubConf } onChanged(); } else { - if (connectionConfigCase_ == 5) { - githubConfigBuilder_.mergeFrom(value); + if (connectionConfigCase_ == 16) { + gitlabEnterpriseConfigBuilder_.mergeFrom(value); } else { - githubConfigBuilder_.setMessage(value); + gitlabEnterpriseConfigBuilder_.setMessage(value); } } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; return this; } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public Builder clearGithubConfig() { - if (githubConfigBuilder_ == null) { - if (connectionConfigCase_ == 5) { + public Builder clearGitlabEnterpriseConfig() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (connectionConfigCase_ == 16) { connectionConfigCase_ = 0; connectionConfig_ = null; onChanged(); } } else { - if (connectionConfigCase_ == 5) { + if (connectionConfigCase_ == 16) { connectionConfigCase_ = 0; connectionConfig_ = null; } - githubConfigBuilder_.clear(); + gitlabEnterpriseConfigBuilder_.clear(); } return this; } @@ -1690,66 +2713,71 @@ public Builder clearGithubConfig() { * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ - public com.google.cloud.developerconnect.v1.GitHubConfig.Builder getGithubConfigBuilder() { - return getGithubConfigFieldBuilder().getBuilder(); + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder + getGitlabEnterpriseConfigBuilder() { + return getGitlabEnterpriseConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ @java.lang.Override - public com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder() { - if ((connectionConfigCase_ == 5) && (githubConfigBuilder_ != null)) { - return githubConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder() { + if ((connectionConfigCase_ == 16) && (gitlabEnterpriseConfigBuilder_ != null)) { + return gitlabEnterpriseConfigBuilder_.getMessageOrBuilder(); } else { - if (connectionConfigCase_ == 5) { - return (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_; + if (connectionConfigCase_ == 16) { + return (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_; } - return com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } } /** * * *
-     * Configuration for connections to github.com.
+     * Configuration for connections to an instance of GitLab Enterprise.
      * 
* - * .google.cloud.developerconnect.v1.GitHubConfig github_config = 5; + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.developerconnect.v1.GitHubConfig, - com.google.cloud.developerconnect.v1.GitHubConfig.Builder, - com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder> - getGithubConfigFieldBuilder() { - if (githubConfigBuilder_ == null) { - if (!(connectionConfigCase_ == 5)) { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder> + getGitlabEnterpriseConfigFieldBuilder() { + if (gitlabEnterpriseConfigBuilder_ == null) { + if (!(connectionConfigCase_ == 16)) { connectionConfig_ = - com.google.cloud.developerconnect.v1.GitHubConfig.getDefaultInstance(); + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); } - githubConfigBuilder_ = + gitlabEnterpriseConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.developerconnect.v1.GitHubConfig, - com.google.cloud.developerconnect.v1.GitHubConfig.Builder, - com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder>( - (com.google.cloud.developerconnect.v1.GitHubConfig) connectionConfig_, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder>( + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) connectionConfig_, getParentForChildren(), isClean()); connectionConfig_ = null; } - connectionConfigCase_ = 5; + connectionConfigCase_ = 16; onChanged(); - return githubConfigBuilder_; + return gitlabEnterpriseConfigBuilder_; } private java.lang.Object name_ = ""; @@ -1817,7 +2845,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1835,7 +2863,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1858,7 +2886,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1883,7 +2911,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1927,7 +2955,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1948,7 +2976,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1965,7 +2993,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000020) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1976,7 +3004,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1993,7 +3021,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2014,7 +3042,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2086,7 +3114,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2130,7 +3158,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2151,7 +3179,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2168,7 +3196,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000040) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2179,7 +3207,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2196,7 +3224,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2217,7 +3245,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2289,7 +3317,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2333,7 +3361,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2354,7 +3382,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2371,7 +3399,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && deleteTime_ != null && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); @@ -2382,7 +3410,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { deleteTimeBuilder_.mergeFrom(value); } if (deleteTime_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2399,7 +3427,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); deleteTime_ = null; if (deleteTimeBuilder_ != null) { deleteTimeBuilder_.dispose(); @@ -2420,7 +3448,7 @@ public Builder clearDeleteTime() { *
*/ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } @@ -2489,7 +3517,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -2574,7 +3602,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2597,7 +3625,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2617,7 +3645,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return this; } /** @@ -2631,7 +3659,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; return this; } @@ -2655,7 +3683,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the installationState field is set. */ public boolean hasInstallationState() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2700,7 +3728,7 @@ public Builder setInstallationState( } else { installationStateBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2722,7 +3750,7 @@ public Builder setInstallationState( } else { installationStateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2740,7 +3768,7 @@ public Builder setInstallationState( public Builder mergeInstallationState( com.google.cloud.developerconnect.v1.InstallationState value) { if (installationStateBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000200) != 0) && installationState_ != null && installationState_ != com.google.cloud.developerconnect.v1.InstallationState.getDefaultInstance()) { @@ -2752,7 +3780,7 @@ public Builder mergeInstallationState( installationStateBuilder_.mergeFrom(value); } if (installationState_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2769,7 +3797,7 @@ public Builder mergeInstallationState( * */ public Builder clearInstallationState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); installationState_ = null; if (installationStateBuilder_ != null) { installationStateBuilder_.dispose(); @@ -2791,7 +3819,7 @@ public Builder clearInstallationState() { */ public com.google.cloud.developerconnect.v1.InstallationState.Builder getInstallationStateBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return getInstallationStateFieldBuilder().getBuilder(); } @@ -2879,7 +3907,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2897,7 +3925,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); disabled_ = false; onChanged(); return this; @@ -2936,7 +3964,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2953,7 +3981,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); reconciling_ = false; onChanged(); return this; @@ -2979,7 +4007,7 @@ public Builder clearReconciling() { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return annotations_; } @@ -3068,7 +4096,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -3092,7 +4120,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return internalGetMutableAnnotations().getMutableMap(); } /** @@ -3113,7 +4141,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return this; } /** @@ -3128,7 +4156,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return this; } @@ -3200,7 +4228,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3219,7 +4247,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -3243,7 +4271,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3319,7 +4347,7 @@ public Builder setUid(java.lang.String value) { throw new NullPointerException(); } uid_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3339,7 +4367,7 @@ public Builder setUid(java.lang.String value) { */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -3364,10 +4392,227 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uid_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.CryptoKeyConfig cryptoKeyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder> + cryptoKeyConfigBuilder_; + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + public boolean hasCryptoKeyConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig() { + if (cryptoKeyConfigBuilder_ == null) { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } else { + return cryptoKeyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCryptoKeyConfig(com.google.cloud.developerconnect.v1.CryptoKeyConfig value) { + if (cryptoKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cryptoKeyConfig_ = value; + } else { + cryptoKeyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCryptoKeyConfig( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder builderForValue) { + if (cryptoKeyConfigBuilder_ == null) { + cryptoKeyConfig_ = builderForValue.build(); + } else { + cryptoKeyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCryptoKeyConfig( + com.google.cloud.developerconnect.v1.CryptoKeyConfig value) { + if (cryptoKeyConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && cryptoKeyConfig_ != null + && cryptoKeyConfig_ + != com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance()) { + getCryptoKeyConfigBuilder().mergeFrom(value); + } else { + cryptoKeyConfig_ = value; + } + } else { + cryptoKeyConfigBuilder_.mergeFrom(value); + } + if (cryptoKeyConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCryptoKeyConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + cryptoKeyConfig_ = null; + if (cryptoKeyConfigBuilder_ != null) { + cryptoKeyConfigBuilder_.dispose(); + cryptoKeyConfigBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder + getCryptoKeyConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getCryptoKeyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder + getCryptoKeyConfigOrBuilder() { + if (cryptoKeyConfigBuilder_ != null) { + return cryptoKeyConfigBuilder_.getMessageOrBuilder(); + } else { + return cryptoKeyConfig_ == null + ? com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance() + : cryptoKeyConfig_; + } + } + /** + * + * + *
+     * Optional. The crypto key configuration. This field is used by the
+     * Customer-Managed Encryption Keys (CMEK) feature.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder> + getCryptoKeyConfigFieldBuilder() { + if (cryptoKeyConfigBuilder_ == null) { + cryptoKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.CryptoKeyConfig, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder, + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder>( + getCryptoKeyConfig(), getParentForChildren(), isClean()); + cryptoKeyConfig_ = null; + } + return cryptoKeyConfigBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java index 4ffc433af00e..e478f0bb369e 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionOrBuilder.java @@ -59,6 +59,119 @@ public interface ConnectionOrBuilder */ com.google.cloud.developerconnect.v1.GitHubConfigOrBuilder getGithubConfigOrBuilder(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return Whether the githubEnterpriseConfig field is set. + */ + boolean hasGithubEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + * + * @return The githubEnterpriseConfig. + */ + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getGithubEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitHub Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitHubEnterpriseConfig github_enterprise_config = 13; + * + */ + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder + getGithubEnterpriseConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return Whether the gitlabConfig field is set. + */ + boolean hasGitlabConfig(); + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + * + * @return The gitlabConfig. + */ + com.google.cloud.developerconnect.v1.GitLabConfig getGitlabConfig(); + /** + * + * + *
+   * Configuration for connections to gitlab.com.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabConfig gitlab_config = 14; + */ + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder getGitlabConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return Whether the gitlabEnterpriseConfig field is set. + */ + boolean hasGitlabEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + * + * @return The gitlabEnterpriseConfig. + */ + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getGitlabEnterpriseConfig(); + /** + * + * + *
+   * Configuration for connections to an instance of GitLab Enterprise.
+   * 
+ * + * .google.cloud.developerconnect.v1.GitLabEnterpriseConfig gitlab_enterprise_config = 16; + * + */ + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder + getGitlabEnterpriseConfigOrBuilder(); + /** * * @@ -451,5 +564,49 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getUidBytes(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cryptoKeyConfig field is set. + */ + boolean hasCryptoKeyConfig(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cryptoKeyConfig. + */ + com.google.cloud.developerconnect.v1.CryptoKeyConfig getCryptoKeyConfig(); + /** + * + * + *
+   * Optional. The crypto key configuration. This field is used by the
+   * Customer-Managed Encryption Keys (CMEK) feature.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CryptoKeyConfig crypto_key_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder getCryptoKeyConfigOrBuilder(); + com.google.cloud.developerconnect.v1.Connection.ConnectionConfigCase getConnectionConfigCase(); } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java new file mode 100644 index 000000000000..a4d045534edf --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfig.java @@ -0,0 +1,655 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * The crypto key configuration. This field is used by the Customer-managed
+ * encryption keys (CMEK) feature.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.CryptoKeyConfig} + */ +public final class CryptoKeyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.CryptoKeyConfig) + CryptoKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CryptoKeyConfig.newBuilder() to construct. + private CryptoKeyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CryptoKeyConfig() { + keyReference_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CryptoKeyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.class, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder.class); + } + + public static final int KEY_REFERENCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyReference_ = ""; + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + @java.lang.Override + public java.lang.String getKeyReference() { + java.lang.Object ref = keyReference_; + 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(); + keyReference_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyReferenceBytes() { + java.lang.Object ref = keyReference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyReference_ = 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(keyReference_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyReference_); + } + 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(keyReference_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyReference_); + } + 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.developerconnect.v1.CryptoKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.CryptoKeyConfig other = + (com.google.cloud.developerconnect.v1.CryptoKeyConfig) obj; + + if (!getKeyReference().equals(other.getKeyReference())) 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_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getKeyReference().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig 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 crypto key configuration. This field is used by the Customer-managed
+   * encryption keys (CMEK) feature.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.CryptoKeyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.CryptoKeyConfig) + com.google.cloud.developerconnect.v1.CryptoKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.CryptoKeyConfig.class, + com.google.cloud.developerconnect.v1.CryptoKeyConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.CryptoKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyReference_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig build() { + com.google.cloud.developerconnect.v1.CryptoKeyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.CryptoKeyConfig buildPartial() { + com.google.cloud.developerconnect.v1.CryptoKeyConfig result = + new com.google.cloud.developerconnect.v1.CryptoKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.CryptoKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyReference_ = keyReference_; + } + } + + @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.developerconnect.v1.CryptoKeyConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.CryptoKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.CryptoKeyConfig other) { + if (other == com.google.cloud.developerconnect.v1.CryptoKeyConfig.getDefaultInstance()) + return this; + if (!other.getKeyReference().isEmpty()) { + keyReference_ = other.keyReference_; + 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: + { + keyReference_ = 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 keyReference_ = ""; + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + public java.lang.String getKeyReference() { + java.lang.Object ref = keyReference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyReference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + public com.google.protobuf.ByteString getKeyReferenceBytes() { + java.lang.Object ref = keyReference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyReference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The keyReference to set. + * @return This builder for chaining. + */ + public Builder setKeyReference(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyReference_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKeyReference() { + keyReference_ = getDefaultInstance().getKeyReference(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the key which is used to encrypt/decrypt customer
+     * data. For key in Cloud KMS, the key should be in the format of
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+     * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for keyReference to set. + * @return This builder for chaining. + */ + public Builder setKeyReferenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyReference_ = 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.developerconnect.v1.CryptoKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.CryptoKeyConfig) + private static final com.google.cloud.developerconnect.v1.CryptoKeyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.CryptoKeyConfig(); + } + + public static com.google.cloud.developerconnect.v1.CryptoKeyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKeyConfig 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.developerconnect.v1.CryptoKeyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.java new file mode 100644 index 000000000000..de1c8fe6985b --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CryptoKeyConfigOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface CryptoKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.CryptoKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The keyReference. + */ + java.lang.String getKeyReference(); + /** + * + * + *
+   * Required. The name of the key which is used to encrypt/decrypt customer
+   * data. For key in Cloud KMS, the key should be in the format of
+   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+   * 
+ * + * + * string key_reference = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for keyReference. + */ + com.google.protobuf.ByteString getKeyReferenceBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java index aac50c9a8c5a..7fe3be242461 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_Connection_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_Connection_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,10 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_GitHubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_OAuthCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -178,262 +202,317 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/longrunning/operations.proto\032\033googl" + "e/protobuf/empty.proto\032 google/protobuf/" + "field_mask.proto\032\037google/protobuf/timest" - + "amp.proto\"\357\006\n\nConnection\022G\n\rgithub_confi" + + "amp.proto\"\307\t\n\nConnection\022G\n\rgithub_confi" + "g\030\005 \001(\0132..google.cloud.developerconnect." - + "v1.GitHubConfigH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" - + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M" - + "\n\006labels\030\004 \003(\01328.google.cloud.developerc" - + "onnect.v1.Connection.LabelsEntryB\003\340A\001\022T\n" - + "\022installation_state\030\006 \001(\01323.google.cloud" - + ".developerconnect.v1.InstallationStateB\003" - + "\340A\003\022\025\n\010disabled\030\007 \001(\010B\003\340A\001\022\030\n\013reconcilin" - + "g\030\010 \001(\010B\003\340A\003\022W\n\013annotations\030\t \003(\0132=.goog" - + "le.cloud.developerconnect.v1.Connection." - + "AnnotationsEntryB\003\340A\001\022\021\n\004etag\030\n \001(\tB\003\340A\001" - + "\022\030\n\003uid\030\014 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Ann" - + "otationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:\216\001\352A\212\001\n*developerconnect.googleapi" - + "s.com/Connection\022@projects/{project}/loc" - + "ations/{location}/connections/{connectio" - + "n}*\013connections2\nconnectionR\001\001B\023\n\021connec" - + "tion_config\"\210\002\n\021InstallationState\022M\n\005sta" - + "ge\030\001 \001(\01629.google.cloud.developerconnect" - + ".v1.InstallationState.StageB\003\340A\003\022\024\n\007mess" - + "age\030\002 \001(\tB\003\340A\003\022\027\n\naction_uri\030\003 \001(\tB\003\340A\003\"" - + "u\n\005Stage\022\025\n\021STAGE_UNSPECIFIED\020\000\022\026\n\022PENDI" - + "NG_CREATE_APP\020\001\022\026\n\022PENDING_USER_OAUTH\020\002\022" - + "\027\n\023PENDING_INSTALL_APP\020\003\022\014\n\010COMPLETE\020\n\"\313" - + "\002\n\014GitHubConfig\022T\n\ngithub_app\030\001 \001(\01628.go" - + "ogle.cloud.developerconnect.v1.GitHubCon" - + "fig.GitHubAppB\006\340A\002\340A\005\022U\n\025authorizer_cred" - + "ential\030\002 \001(\01321.google.cloud.developercon" - + "nect.v1.OAuthCredentialB\003\340A\001\022 \n\023app_inst" - + "allation_id\030\003 \001(\003B\003\340A\001\022\035\n\020installation_u" - + "ri\030\004 \001(\tB\003\340A\003\"M\n\tGitHubApp\022\033\n\027GIT_HUB_AP" - + "P_UNSPECIFIED\020\000\022\025\n\021DEVELOPER_CONNECT\020\001\022\014" - + "\n\010FIREBASE\020\002\"\200\001\n\017OAuthCredential\022V\n\032oaut" - + "h_token_secret_version\030\001 \001(\tB2\340A\002\372A,\n*se" - + "cretmanager.googleapis.com/SecretVersion" - + "\022\025\n\010username\030\002 \001(\tB\003\340A\003\"\271\001\n\026ListConnecti" - + "onsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*deve" - + "loperconnect.googleapis.com/Connection\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\"\212\001\n\027ListConnectionsResponse\022" - + "A\n\013connections\030\001 \003(\0132,.google.cloud.deve" - + "loperconnect.v1.Connection\022\027\n\017next_page_" - + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X\n\024GetC" - + "onnectionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" - + "developerconnect.googleapis.com/Connecti" - + "on\"\375\001\n\027CreateConnectionRequest\022B\n\006parent" - + "\030\001 \001(\tB2\340A\002\372A,\022*developerconnect.googlea" - + "pis.com/Connection\022\032\n\rconnection_id\030\002 \001(" - + "\tB\003\340A\002\022E\n\nconnection\030\003 \001(\0132,.google.clou" - + "d.developerconnect.v1.ConnectionB\003\340A\002\022\037\n" - + "\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalida" - + "te_only\030\005 \001(\010B\003\340A\001\"\357\001\n\027UpdateConnectionR" - + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\022E\n\nconnection\030\002 \001(\013" - + "2,.google.cloud.developerconnect.v1.Conn" - + "ectionB\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327" - + "\010\002\010\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvali" - + "date_only\030\005 \001(\010B\003\340A\001\"\253\001\n\027DeleteConnectio" - + "nRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*develope" - + "rconnect.googleapis.com/Connection\022\037\n\nre" - + "quest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_" - + "only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\200\002\n\021O" - + "perationMetadata\0224\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0221\n\010end_ti" - + "me\030\002 \001(\0132\032.google.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_message\030\005 \001(\tB\003\340A\003\022#\n\026reques" - + "ted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versi" - + "on\030\007 \001(\tB\003\340A\003\"\217\006\n\021GitRepositoryLink\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\010\022\026\n\tclone_uri\030\002 \001(\tB\003\340A\002\0224" - + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013delete_tim" - + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022T\n\006labels\030\006 \003(\0132?.google.cloud.develope" - + "rconnect.v1.GitRepositoryLink.LabelsEntr" - + "yB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022\030\n\013reconciling" - + "\030\010 \001(\010B\003\340A\003\022^\n\013annotations\030\t \003(\0132D.googl" - + "e.cloud.developerconnect.v1.GitRepositor" - + "yLink.AnnotationsEntryB\003\340A\001\022\030\n\003uid\030\n \001(\t" - + "B\013\340A\003\342\214\317\327\010\002\010\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\314\001\352A\310\001\n" + + "v1.GitHubConfigH\000\022\\\n\030github_enterprise_c" + + "onfig\030\r \001(\01328.google.cloud.developerconn" + + "ect.v1.GitHubEnterpriseConfigH\000\022G\n\rgitla" + + "b_config\030\016 \001(\0132..google.cloud.developerc" + + "onnect.v1.GitLabConfigH\000\022\\\n\030gitlab_enter" + + "prise_config\030\020 \001(\01328.google.cloud.develo" + + "perconnect.v1.GitLabEnterpriseConfigH\000\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\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\013 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022M\n\006labels\030\004 \003(\01328.go" + + "ogle.cloud.developerconnect.v1.Connectio" + + "n.LabelsEntryB\003\340A\001\022T\n\022installation_state" + + "\030\006 \001(\01323.google.cloud.developerconnect.v" + + "1.InstallationStateB\003\340A\003\022\025\n\010disabled\030\007 \001" + + "(\010B\003\340A\001\022\030\n\013reconciling\030\010 \001(\010B\003\340A\003\022W\n\013ann" + + "otations\030\t \003(\0132=.google.cloud.developerc" + + "onnect.v1.Connection.AnnotationsEntryB\003\340" + + "A\001\022\021\n\004etag\030\n \001(\tB\003\340A\001\022\030\n\003uid\030\014 \001(\tB\013\340A\003\342" + + "\214\317\327\010\002\010\001\022Q\n\021crypto_key_config\030\017 \001(\01321.goo" + + "gle.cloud.developerconnect.v1.CryptoKeyC" + + "onfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\216\001\352A\212\001\n*de" + + "veloperconnect.googleapis.com/Connection" + + "\022@projects/{project}/locations/{location" + + "}/connections/{connection}*\013connections2" + + "\nconnectionR\001\001B\023\n\021connection_config\"S\n\017C" + + "ryptoKeyConfig\022@\n\rkey_reference\030\001 \001(\tB)\340" + + "A\002\372A#\n!cloudkms.googleapis.com/CryptoKey" + + "\"\210\002\n\021InstallationState\022M\n\005stage\030\001 \001(\01629." + + "google.cloud.developerconnect.v1.Install" + + "ationState.StageB\003\340A\003\022\024\n\007message\030\002 \001(\tB\003" + + "\340A\003\022\027\n\naction_uri\030\003 \001(\tB\003\340A\003\"u\n\005Stage\022\025\n" + + "\021STAGE_UNSPECIFIED\020\000\022\026\n\022PENDING_CREATE_A" + + "PP\020\001\022\026\n\022PENDING_USER_OAUTH\020\002\022\027\n\023PENDING_" + + "INSTALL_APP\020\003\022\014\n\010COMPLETE\020\n\"\313\002\n\014GitHubCo" + + "nfig\022T\n\ngithub_app\030\001 \001(\01628.google.cloud." + + "developerconnect.v1.GitHubConfig.GitHubA" + + "ppB\006\340A\002\340A\005\022U\n\025authorizer_credential\030\002 \001(" + + "\01321.google.cloud.developerconnect.v1.OAu" + + "thCredentialB\003\340A\001\022 \n\023app_installation_id" + + "\030\003 \001(\003B\003\340A\001\022\035\n\020installation_uri\030\004 \001(\tB\003\340" + + "A\003\"M\n\tGitHubApp\022\033\n\027GIT_HUB_APP_UNSPECIFI" + + "ED\020\000\022\025\n\021DEVELOPER_CONNECT\020\001\022\014\n\010FIREBASE\020" + + "\002\"\356\003\n\026GitHubEnterpriseConfig\022\025\n\010host_uri" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006app_id\030\002 \001(\003B\003\340A\001\022\025\n\010app_" + + "slug\030\003 \001(\tB\003\340A\003\022V\n\032private_key_secret_ve" + + "rsion\030\004 \001(\tB2\340A\001\372A,\n*secretmanager.googl" + + "eapis.com/SecretVersion\022Y\n\035webhook_secre" + + "t_secret_version\030\005 \001(\tB2\340A\001\372A,\n*secretma" + + "nager.googleapis.com/SecretVersion\022 \n\023ap" + + "p_installation_id\030\010 \001(\003B\003\340A\001\022\035\n\020installa" + + "tion_uri\030\t \001(\tB\003\340A\003\022_\n\030service_directory" + + "_config\030\n \001(\01328.google.cloud.developerco" + + "nnect.v1.ServiceDirectoryConfigB\003\340A\001\022\033\n\016" + + "server_version\030\014 \001(\tB\003\340A\003\022\037\n\022ssl_ca_cert" + + "ificate\030\016 \001(\tB\003\340A\001\"Z\n\026ServiceDirectoryCo" + + "nfig\022@\n\007service\030\001 \001(\tB/\340A\002\372A)\n\'servicedi" + + "rectory.googleapis.com/Service\"\200\001\n\017OAuth" + + "Credential\022V\n\032oauth_token_secret_version" + + "\030\001 \001(\tB2\340A\002\372A,\n*secretmanager.googleapis" + + ".com/SecretVersion\022\025\n\010username\030\002 \001(\tB\003\340A" + + "\003\"\235\002\n\014GitLabConfig\022\\\n\035webhook_secret_sec" + + "ret_version\030\001 \001(\tB5\340A\002\340A\005\372A,\n*secretmana" + + "ger.googleapis.com/SecretVersion\022Y\n\032read" + + "_authorizer_credential\030\002 \001(\01320.google.cl" + + "oud.developerconnect.v1.UserCredentialB\003" + + "\340A\002\022T\n\025authorizer_credential\030\003 \001(\01320.goo" + + "gle.cloud.developerconnect.v1.UserCreden" + + "tialB\003\340A\002\"~\n\016UserCredential\022U\n\031user_toke" + + "n_secret_version\030\001 \001(\tB2\340A\002\372A,\n*secretma" + + "nager.googleapis.com/SecretVersion\022\025\n\010us" + + "ername\030\002 \001(\tB\003\340A\003\"\335\003\n\026GitLabEnterpriseCo" + + "nfig\022\025\n\010host_uri\030\001 \001(\tB\003\340A\002\022\\\n\035webhook_s" + + "ecret_secret_version\030\002 \001(\tB5\340A\002\340A\005\372A,\n*s" + + "ecretmanager.googleapis.com/SecretVersio" + + "n\022Y\n\032read_authorizer_credential\030\003 \001(\01320." + + "google.cloud.developerconnect.v1.UserCre" + + "dentialB\003\340A\002\022T\n\025authorizer_credential\030\004 " + + "\001(\01320.google.cloud.developerconnect.v1.U" + + "serCredentialB\003\340A\002\022_\n\030service_directory_" + + "config\030\005 \001(\01328.google.cloud.developercon" + + "nect.v1.ServiceDirectoryConfigB\003\340A\001\022\037\n\022s" + + "sl_ca_certificate\030\006 \001(\tB\003\340A\001\022\033\n\016server_v" + + "ersion\030\007 \001(\tB\003\340A\003\"\271\001\n\026ListConnectionsReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*developerc" + + "onnect.googleapis.com/Connection\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(\t" + + "B\003\340A\001\"\212\001\n\027ListConnectionsResponse\022A\n\013con" + + "nections\030\001 \003(\0132,.google.cloud.developerc" + + "onnect.v1.Connection\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X\n\024GetConnect" + + "ionRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*develo" + + "perconnect.googleapis.com/Connection\"\375\001\n" + + "\027CreateConnectionRequest\022B\n\006parent\030\001 \001(\t" + + "B2\340A\002\372A,\022*developerconnect.googleapis.co" + + "m/Connection\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\002" + + "\022E\n\nconnection\030\003 \001(\0132,.google.cloud.deve" + + "loperconnect.v1.ConnectionB\003\340A\002\022\037\n\nreque" + + "st_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_onl" + + "y\030\005 \001(\010B\003\340A\001\"\357\001\n\027UpdateConnectionRequest" + + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\022E\n\nconnection\030\002 \001(\0132,.goo" + + "gle.cloud.developerconnect.v1.Connection" + + "B\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032" + + "\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_o" + + "nly\030\005 \001(\010B\003\340A\001\"\253\001\n\027DeleteConnectionReque" + + "st\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*developerconne" + + "ct.googleapis.com/Connection\022\037\n\nrequest_" + + "id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_only\030\003" + + " \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\200\002\n\021Operati" + + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" + + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" + + "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" + + "(\tB\003\340A\003\"\250\006\n\021GitRepositoryLink\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\010\022\026\n\tclone_uri\030\002 \001(\tB\003\340A\002\0224\n\013crea" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\005 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n\006la" + + "bels\030\006 \003(\0132?.google.cloud.developerconne" + + "ct.v1.GitRepositoryLink.LabelsEntryB\003\340A\001" + + "\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022\030\n\013reconciling\030\010 \001(\010" + + "B\003\340A\003\022^\n\013annotations\030\t \003(\0132D.google.clou" + + "d.developerconnect.v1.GitRepositoryLink." + + "AnnotationsEntryB\003\340A\001\022\030\n\003uid\030\n \001(\tB\013\340A\003\342" + + "\214\317\327\010\002\010\001\022\027\n\nwebhook_id\030\013 \001(\tB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:\314\001\352A\310\001\n1developerconnect.goo" + + "gleapis.com/GitRepositoryLink\022iprojects/" + + "{project}/locations/{location}/connectio" + + "ns/{connection}/gitRepositoryLinks/{git_" + + "repository_link}*\022gitRepositoryLinks2\021gi" + + "tRepositoryLinkR\001\001\"\244\002\n\036CreateGitReposito" + + "ryLinkRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\0221d" + + "eveloperconnect.googleapis.com/GitReposi" + + "toryLink\022U\n\023git_repository_link\030\002 \001(\01323." + + "google.cloud.developerconnect.v1.GitRepo" + + "sitoryLinkB\003\340A\002\022#\n\026git_repository_link_i" + + "d\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317" + + "\327\010\002\010\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\271\001\n\036De" + + "leteGitRepositoryLinkRequest\022G\n\004name\030\001 \001" + + "(\tB9\340A\002\372A3\n1developerconnect.googleapis." + + "com/GitRepositoryLink\022\037\n\nrequest_id\030\002 \001(" + + "\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340" + + "A\001\022\021\n\004etag\030\004 \001(\tB\003\340A\001\"\307\001\n\035ListGitReposit" + + "oryLinksRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\022" + "1developerconnect.googleapis.com/GitRepo" - + "sitoryLink\022iprojects/{project}/locations" - + "/{location}/connections/{connection}/git" - + "RepositoryLinks/{git_repository_link}*\022g" - + "itRepositoryLinks2\021gitRepositoryLinkR\001\001\"" - + "\244\002\n\036CreateGitRepositoryLinkRequest\022I\n\006pa" - + "rent\030\001 \001(\tB9\340A\002\372A3\0221developerconnect.goo" - + "gleapis.com/GitRepositoryLink\022U\n\023git_rep" - + "ository_link\030\002 \001(\01323.google.cloud.develo" - + "perconnect.v1.GitRepositoryLinkB\003\340A\002\022#\n\026" - + "git_repository_link_id\030\003 \001(\tB\003\340A\002\022\037\n\nreq" - + "uest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rvalidate_o" - + "nly\030\005 \001(\010B\003\340A\001\"\271\001\n\036DeleteGitRepositoryLi" - + "nkRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1develop" + + "sitoryLink\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_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\"\241\001\n\036ListGitRepos" + + "itoryLinksResponse\022Q\n\024git_repository_lin" + + "ks\030\001 \003(\01323.google.cloud.developerconnect" + + ".v1.GitRepositoryLink\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"f\n\033GetGitRep" + + "ositoryLinkRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3" + + "\n1developerconnect.googleapis.com/GitRep" + + "ositoryLink\"t\n\032FetchReadWriteTokenReques" + + "t\022V\n\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n1" + + "developerconnect.googleapis.com/GitRepos" + + "itoryLink\"o\n\025FetchReadTokenRequest\022V\n\023gi" + + "t_repository_link\030\001 \001(\tB9\340A\002\372A3\n1develop" + "erconnect.googleapis.com/GitRepositoryLi" - + "nk\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\rv" - + "alidate_only\030\003 \001(\010B\003\340A\001\022\021\n\004etag\030\004 \001(\tB\003\340" - + "A\001\"\307\001\n\035ListGitRepositoryLinksRequest\022I\n\006" - + "parent\030\001 \001(\tB9\340A\002\372A3\0221developerconnect.g" - + "oogleapis.com/GitRepositoryLink\022\026\n\tpage_" + + "nk\"r\n\026FetchReadTokenResponse\022\r\n\005token\030\001 " + + "\001(\t\0223\n\017expiration_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\024\n\014git_username\030\003 \001(\t\"w" + + "\n\033FetchReadWriteTokenResponse\022\r\n\005token\030\001" + + " \001(\t\0223\n\017expiration_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\024\n\014git_username\030\003 \001(\t\"" + + "\236\001\n#FetchLinkableGitRepositoriesRequest\022" + + "F\n\nconnection\030\001 \001(\tB2\340A\002\372A,\n*developerco" + + "nnect.googleapis.com/Connection\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\"\241\001\n\036ListGitRepositoryLinksResponse\022" - + "Q\n\024git_repository_links\030\001 \003(\01323.google.c" - + "loud.developerconnect.v1.GitRepositoryLi" - + "nk\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"f\n\033GetGitRepositoryLinkRequest\022" - + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1developerconnect." - + "googleapis.com/GitRepositoryLink\"t\n\032Fetc" - + "hReadWriteTokenRequest\022V\n\023git_repository" - + "_link\030\001 \001(\tB9\340A\002\372A3\n1developerconnect.go" - + "ogleapis.com/GitRepositoryLink\"o\n\025FetchR" - + "eadTokenRequest\022V\n\023git_repository_link\030\001" - + " \001(\tB9\340A\002\372A3\n1developerconnect.googleapi" - + "s.com/GitRepositoryLink\"r\n\026FetchReadToke" - + "nResponse\022\r\n\005token\030\001 \001(\t\0223\n\017expiration_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024\n" - + "\014git_username\030\003 \001(\t\"w\n\033FetchReadWriteTok" - + "enResponse\022\r\n\005token\030\001 \001(\t\0223\n\017expiration_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024" - + "\n\014git_username\030\003 \001(\t\"\236\001\n#FetchLinkableGi" - + "tRepositoriesRequest\022F\n\nconnection\030\001 \001(\t" - + "B2\340A\002\372A,\n*developerconnect.googleapis.co" - + "m/Connection\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"\233\001\n$FetchLinkableG" - + "itRepositoriesResponse\022Z\n\031linkable_git_r" - + "epositories\030\001 \003(\01327.google.cloud.develop" - + "erconnect.v1.LinkableGitRepository\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"*\n\025LinkableGitReposi" - + "tory\022\021\n\tclone_uri\030\001 \001(\t\"i\n\037FetchGitHubIn" - + "stallationsRequest\022F\n\nconnection\030\001 \001(\tB2" - + "\340A\002\372A,\n*developerconnect.googleapis.com/" - + "Connection\"\302\001\n FetchGitHubInstallationsR" - + "esponse\022f\n\rinstallations\030\001 \003(\0132O.google." - + "cloud.developerconnect.v1.FetchGitHubIns" - + "tallationsResponse.Installation\0326\n\014Insta" - + "llation\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004typ" - + "e\030\003 \001(\t\"\256\002\n\023FetchGitRefsRequest\022V\n\023git_r" - + "epository_link\030\001 \001(\tB9\340A\002\372A3\n1developerc" - + "onnect.googleapis.com/GitRepositoryLink\022" - + "T\n\010ref_type\030\002 \001(\0162=.google.cloud.develop" - + "erconnect.v1.FetchGitRefsRequest.RefType" - + "B\003\340A\002\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\005 \001(\tB\003\340A\001\"8\n\007RefType\022\030\n\024REF_TYPE_UN" - + "SPECIFIED\020\000\022\007\n\003TAG\020\001\022\n\n\006BRANCH\020\002\"B\n\024Fetc" - + "hGitRefsResponse\022\021\n\tref_names\030\001 \003(\t\022\027\n\017n" - + "ext_page_token\030\002 \001(\t2\247\034\n\020DeveloperConnec" - + "t\022\310\001\n\017ListConnections\0228.google.cloud.dev" - + "eloperconnect.v1.ListConnectionsRequest\032" - + "9.google.cloud.developerconnect.v1.ListC" - + "onnectionsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1" + + "\"\233\001\n$FetchLinkableGitRepositoriesRespons" + + "e\022Z\n\031linkable_git_repositories\030\001 \003(\01327.g" + + "oogle.cloud.developerconnect.v1.Linkable" + + "GitRepository\022\027\n\017next_page_token\030\002 \001(\t\"*" + + "\n\025LinkableGitRepository\022\021\n\tclone_uri\030\001 \001" + + "(\t\"i\n\037FetchGitHubInstallationsRequest\022F\n" + + "\nconnection\030\001 \001(\tB2\340A\002\372A,\n*developerconn" + + "ect.googleapis.com/Connection\"\302\001\n FetchG" + + "itHubInstallationsResponse\022f\n\rinstallati" + + "ons\030\001 \003(\0132O.google.cloud.developerconnec" + + "t.v1.FetchGitHubInstallationsResponse.In" + + "stallation\0326\n\014Installation\022\n\n\002id\030\001 \001(\003\022\014" + + "\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\"\256\002\n\023FetchGitR" + + "efsRequest\022V\n\023git_repository_link\030\001 \001(\tB" + + "9\340A\002\372A3\n1developerconnect.googleapis.com" + + "/GitRepositoryLink\022T\n\010ref_type\030\002 \001(\0162=.g" + + "oogle.cloud.developerconnect.v1.FetchGit" + + "RefsRequest.RefTypeB\003\340A\002\022\026\n\tpage_size\030\004 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"8\n\007Ref" + + "Type\022\030\n\024REF_TYPE_UNSPECIFIED\020\000\022\007\n\003TAG\020\001\022" + + "\n\n\006BRANCH\020\002\"B\n\024FetchGitRefsResponse\022\021\n\tr" + + "ef_names\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2" + + "\247\034\n\020DeveloperConnect\022\310\001\n\017ListConnections" + + "\0228.google.cloud.developerconnect.v1.List" + + "ConnectionsRequest\0329.google.cloud.develo" + + "perconnect.v1.ListConnectionsResponse\"@\332" + + "A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/connections\022\265\001\n\rGetConnectio" + + "n\0226.google.cloud.developerconnect.v1.Get" + + "ConnectionRequest\032,.google.cloud.develop" + + "erconnect.v1.Connection\">\332A\004name\202\323\344\223\0021\022/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}\022\366\001\n\020CreateConnection\0229.google.cl" + + "oud.developerconnect.v1.CreateConnection" + + "Request\032\035.google.longrunning.Operation\"\207" + + "\001\312A\037\n\nConnection\022\021OperationMetadata\332A\037pa" + + "rent,connection,connection_id\202\323\344\223\002=\"//v1" + "/{parent=projects/*/locations/*}/connect" - + "ions\022\265\001\n\rGetConnection\0226.google.cloud.de" - + "veloperconnect.v1.GetConnectionRequest\032," - + ".google.cloud.developerconnect.v1.Connec" - + "tion\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/" - + "*/locations/*/connections/*}\022\366\001\n\020CreateC" - + "onnection\0229.google.cloud.developerconnec" - + "t.v1.CreateConnectionRequest\032\035.google.lo" - + "ngrunning.Operation\"\207\001\312A\037\n\nConnection\022\021O" - + "perationMetadata\332A\037parent,connection,con" - + "nection_id\202\323\344\223\002=\"//v1/{parent=projects/*" - + "/locations/*}/connections:\nconnection\022\370\001" - + "\n\020UpdateConnection\0229.google.cloud.develo" - + "perconnect.v1.UpdateConnectionRequest\032\035." - + "google.longrunning.Operation\"\211\001\312A\037\n\nConn" - + "ection\022\021OperationMetadata\332A\026connection,u" - + "pdate_mask\202\323\344\223\002H2:/v1/{connection.name=p" - + "rojects/*/locations/*/connections/*}:\nco" - + "nnection\022\331\001\n\020DeleteConnection\0229.google.c" - + "loud.developerconnect.v1.DeleteConnectio" - + "nRequest\032\035.google.longrunning.Operation\"" - + "k\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/" - + "*/locations/*/connections/*}\022\273\002\n\027CreateG" - + "itRepositoryLink\022@.google.cloud.develope" - + "rconnect.v1.CreateGitRepositoryLinkReque" - + "st\032\035.google.longrunning.Operation\"\276\001\312A&\n" - + "\021GitRepositoryLink\022\021OperationMetadata\332A1" - + "parent,git_repository_link,git_repositor" - + "y_link_id\202\323\344\223\002[\"D/v1/{parent=projects/*/" - + "locations/*/connections/*}/gitRepository" - + "Links:\023git_repository_link\022\375\001\n\027DeleteGit" - + "RepositoryLink\022@.google.cloud.developerc" - + "onnect.v1.DeleteGitRepositoryLinkRequest" - + "\032\035.google.longrunning.Operation\"\200\001\312A*\n\025g" - + "oogle.protobuf.Empty\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002F*D/v1/{name=projects/*/locat" - + "ions/*/connections/*/gitRepositoryLinks/" - + "*}\022\362\001\n\026ListGitRepositoryLinks\022?.google.c" - + "loud.developerconnect.v1.ListGitReposito" - + "ryLinksRequest\032@.google.cloud.developerc" - + "onnect.v1.ListGitRepositoryLinksResponse" - + "\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=projects/" - + "*/locations/*/connections/*}/gitReposito" - + "ryLinks\022\337\001\n\024GetGitRepositoryLink\022=.googl" - + "e.cloud.developerconnect.v1.GetGitReposi" - + "toryLinkRequest\0323.google.cloud.developer" - + "connect.v1.GitRepositoryLink\"S\332A\004name\202\323\344" - + "\223\002F\022D/v1/{name=projects/*/locations/*/co" - + "nnections/*/gitRepositoryLinks/*}\022\235\002\n\023Fe" - + "tchReadWriteToken\022<.google.cloud.develop" - + "erconnect.v1.FetchReadWriteTokenRequest\032" - + "=.google.cloud.developerconnect.v1.Fetch" - + "ReadWriteTokenResponse\"\210\001\332A\023git_reposito" - + "ry_link\202\323\344\223\002l\"g/v1/{git_repository_link=" - + "projects/*/locations/*/connections/*/git" - + "RepositoryLinks/*}:fetchReadWriteToken:\001" - + "*\022\211\002\n\016FetchReadToken\0227.google.cloud.deve" - + "loperconnect.v1.FetchReadTokenRequest\0328." - + "google.cloud.developerconnect.v1.FetchRe" - + "adTokenResponse\"\203\001\332A\023git_repository_link" - + "\202\323\344\223\002g\"b/v1/{git_repository_link=project" - + "s/*/locations/*/connections/*/gitReposit" - + "oryLinks/*}:fetchReadToken:\001*\022\226\002\n\034FetchL" - + "inkableGitRepositories\022E.google.cloud.de" - + "veloperconnect.v1.FetchLinkableGitReposi" - + "toriesRequest\032F.google.cloud.developerco" - + "nnect.v1.FetchLinkableGitRepositoriesRes" - + "ponse\"g\332A\nconnection\202\323\344\223\002T\022R/v1/{connect" - + "ion=projects/*/locations/*/connections/*" - + "}:fetchLinkableGitRepositories\022\206\002\n\030Fetch" - + "GitHubInstallations\022A.google.cloud.devel" - + "operconnect.v1.FetchGitHubInstallationsR" - + "equest\032B.google.cloud.developerconnect.v" - + "1.FetchGitHubInstallationsResponse\"c\332A\nc" - + "onnection\202\323\344\223\002P\022N/v1/{connection=project" - + "s/*/locations/*/connections/*}:fetchGitH" - + "ubInstallations\022\207\002\n\014FetchGitRefs\0225.googl" - + "e.cloud.developerconnect.v1.FetchGitRefs" - + "Request\0326.google.cloud.developerconnect." - + "v1.FetchGitRefsResponse\"\207\001\332A\034git_reposit" - + "ory_link,ref_type\202\323\344\223\002b\022`/v1/{git_reposi" - + "tory_link=projects/*/locations/*/connect" - + "ions/*/gitRepositoryLinks/*}:fetchGitRef" - + "s\032S\312A\037developerconnect.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\376\002\n$com.google.cloud.developercon" - + "nect.v1B\025DeveloperConnectProtoP\001ZPcloud." - + "google.com/go/developerconnect/apiv1/dev" - + "eloperconnectpb;developerconnectpb\242\002\020Dev" - + "eloperConnect\252\002 Google.Cloud.DeveloperCo" - + "nnect.V1\312\002 Google\\Cloud\\DeveloperConnect" - + "\\V1\352\002#Google::Cloud::DeveloperConnect::V" - + "1\352Ak\n*secretmanager.googleapis.com/Secre" - + "tVersion\022=projects/{project}/secrets/{se" - + "cret}/versions/{secret_version}b\006proto3" + + "ions:\nconnection\022\370\001\n\020UpdateConnection\0229." + + "google.cloud.developerconnect.v1.UpdateC" + + "onnectionRequest\032\035.google.longrunning.Op" + + "eration\"\211\001\312A\037\n\nConnection\022\021OperationMeta" + + "data\332A\026connection,update_mask\202\323\344\223\002H2:/v1" + + "/{connection.name=projects/*/locations/*" + + "/connections/*}:\nconnection\022\331\001\n\020DeleteCo" + + "nnection\0229.google.cloud.developerconnect" + + ".v1.DeleteConnectionRequest\032\035.google.lon" + + "grunning.Operation\"k\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}\022\273\002\n\027CreateGitRepositoryLink\022@.go" + + "ogle.cloud.developerconnect.v1.CreateGit" + + "RepositoryLinkRequest\032\035.google.longrunni" + + "ng.Operation\"\276\001\312A&\n\021GitRepositoryLink\022\021O" + + "perationMetadata\332A1parent,git_repository" + + "_link,git_repository_link_id\202\323\344\223\002[\"D/v1/" + + "{parent=projects/*/locations/*/connectio" + + "ns/*}/gitRepositoryLinks:\023git_repository" + + "_link\022\375\001\n\027DeleteGitRepositoryLink\022@.goog" + + "le.cloud.developerconnect.v1.DeleteGitRe" + + "positoryLinkRequest\032\035.google.longrunning" + + ".Operation\"\200\001\312A*\n\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\002F*D/v1/{na" + + "me=projects/*/locations/*/connections/*/" + + "gitRepositoryLinks/*}\022\362\001\n\026ListGitReposit" + + "oryLinks\022?.google.cloud.developerconnect" + + ".v1.ListGitRepositoryLinksRequest\032@.goog" + + "le.cloud.developerconnect.v1.ListGitRepo" + + "sitoryLinksResponse\"U\332A\006parent\202\323\344\223\002F\022D/v" + + "1/{parent=projects/*/locations/*/connect" + + "ions/*}/gitRepositoryLinks\022\337\001\n\024GetGitRep" + + "ositoryLink\022=.google.cloud.developerconn" + + "ect.v1.GetGitRepositoryLinkRequest\0323.goo" + + "gle.cloud.developerconnect.v1.GitReposit" + + "oryLink\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=projec" + + "ts/*/locations/*/connections/*/gitReposi" + + "toryLinks/*}\022\235\002\n\023FetchReadWriteToken\022<.g" + + "oogle.cloud.developerconnect.v1.FetchRea" + + "dWriteTokenRequest\032=.google.cloud.develo" + + "perconnect.v1.FetchReadWriteTokenRespons" + + "e\"\210\001\332A\023git_repository_link\202\323\344\223\002l\"g/v1/{g" + + "it_repository_link=projects/*/locations/" + + "*/connections/*/gitRepositoryLinks/*}:fe" + + "tchReadWriteToken:\001*\022\211\002\n\016FetchReadToken\022" + + "7.google.cloud.developerconnect.v1.Fetch" + + "ReadTokenRequest\0328.google.cloud.develope" + + "rconnect.v1.FetchReadTokenResponse\"\203\001\332A\023" + + "git_repository_link\202\323\344\223\002g\"b/v1/{git_repo" + + "sitory_link=projects/*/locations/*/conne" + + "ctions/*/gitRepositoryLinks/*}:fetchRead" + + "Token:\001*\022\226\002\n\034FetchLinkableGitRepositorie" + + "s\022E.google.cloud.developerconnect.v1.Fet" + + "chLinkableGitRepositoriesRequest\032F.googl" + + "e.cloud.developerconnect.v1.FetchLinkabl" + + "eGitRepositoriesResponse\"g\332A\nconnection\202" + + "\323\344\223\002T\022R/v1/{connection=projects/*/locati" + + "ons/*/connections/*}:fetchLinkableGitRep" + + "ositories\022\206\002\n\030FetchGitHubInstallations\022A" + + ".google.cloud.developerconnect.v1.FetchG" + + "itHubInstallationsRequest\032B.google.cloud" + + ".developerconnect.v1.FetchGitHubInstalla" + + "tionsResponse\"c\332A\nconnection\202\323\344\223\002P\022N/v1/" + + "{connection=projects/*/locations/*/conne" + + "ctions/*}:fetchGitHubInstallations\022\207\002\n\014F" + + "etchGitRefs\0225.google.cloud.developerconn" + + "ect.v1.FetchGitRefsRequest\0326.google.clou" + + "d.developerconnect.v1.FetchGitRefsRespon" + + "se\"\207\001\332A\034git_repository_link,ref_type\202\323\344\223" + + "\002b\022`/v1/{git_repository_link=projects/*/" + + "locations/*/connections/*/gitRepositoryL" + + "inks/*}:fetchGitRefs\032S\312A\037developerconnec" + + "t.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\370\004\n$com.google" + + ".cloud.developerconnect.v1B\025DeveloperCon" + + "nectProtoP\001ZPcloud.google.com/go/develop" + + "erconnect/apiv1/developerconnectpb;devel" + + "operconnectpb\242\002\020DeveloperConnect\252\002 Googl" + + "e.Cloud.DeveloperConnect.V1\312\002 Google\\Clo" + + "ud\\DeveloperConnect\\V1\352\002#Google::Cloud::" + + "DeveloperConnect::V1\352Ak\n*secretmanager.g" + + "oogleapis.com/SecretVersion\022=projects/{p" + + "roject}/secrets/{secret}/versions/{secre" + + "t_version}\352Ax\n!cloudkms.googleapis.com/C" + + "ryptoKey\022Sprojects/{project}/locations/{" + + "location}/keyRings/{key_ring}/cryptoKeys" + + "/{crypto_key}\352A|\n\'servicedirectory.googl" + + "eapis.com/Service\022Qprojects/{project}/lo" + + "cations/{location}/namespaces/{namespace" + + "}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -456,6 +535,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_developerconnect_v1_Connection_descriptor, new java.lang.String[] { "GithubConfig", + "GithubEnterpriseConfig", + "GitlabConfig", + "GitlabEnterpriseConfig", "Name", "CreateTime", "UpdateTime", @@ -467,6 +549,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Annotations", "Etag", "Uid", + "CryptoKeyConfig", "ConnectionConfig", }); internal_static_google_cloud_developerconnect_v1_Connection_LabelsEntry_descriptor = @@ -489,8 +572,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor = + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_CryptoKeyConfig_descriptor, + new java.lang.String[] { + "KeyReference", + }); + internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_developerconnect_v1_InstallationState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_InstallationState_descriptor, @@ -498,23 +589,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Stage", "Message", "ActionUri", }); internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_developerconnect_v1_GitHubConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GitHubConfig_descriptor, new java.lang.String[] { "GithubApp", "AuthorizerCredential", "AppInstallationId", "InstallationUri", }); + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor, + new java.lang.String[] { + "HostUri", + "AppId", + "AppSlug", + "PrivateKeySecretVersion", + "WebhookSecretSecretVersion", + "AppInstallationId", + "InstallationUri", + "ServiceDirectoryConfig", + "ServerVersion", + "SslCaCertificate", + }); + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor, + new java.lang.String[] { + "Service", + }); internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_developerconnect_v1_OAuthCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_OAuthCredential_descriptor, new java.lang.String[] { "OauthTokenSecretVersion", "Username", }); + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor, + new java.lang.String[] { + "WebhookSecretSecretVersion", "ReadAuthorizerCredential", "AuthorizerCredential", + }); + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor, + new java.lang.String[] { + "UserTokenSecretVersion", "Username", + }); + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor, + new java.lang.String[] { + "HostUri", + "WebhookSecretSecretVersion", + "ReadAuthorizerCredential", + "AuthorizerCredential", + "ServiceDirectoryConfig", + "SslCaCertificate", + "ServerVersion", + }); internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListConnectionsRequest_descriptor, @@ -522,7 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListConnectionsResponse_descriptor, @@ -530,7 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GetConnectionRequest_descriptor, @@ -538,7 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_CreateConnectionRequest_descriptor, @@ -546,7 +692,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ConnectionId", "Connection", "RequestId", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_UpdateConnectionRequest_descriptor, @@ -554,7 +700,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Connection", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_DeleteConnectionRequest_descriptor, @@ -562,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_developerconnect_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_developerconnect_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_OperationMetadata_descriptor, @@ -576,7 +722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor, @@ -591,6 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reconciling", "Annotations", "Uid", + "WebhookId", }); internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_LabelsEntry_descriptor = internal_static_google_cloud_developerconnect_v1_GitRepositoryLink_descriptor @@ -613,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_CreateGitRepositoryLinkRequest_descriptor, @@ -621,7 +768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GitRepositoryLink", "GitRepositoryLinkId", "RequestId", "ValidateOnly", }); internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_DeleteGitRepositoryLinkRequest_descriptor, @@ -629,7 +776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksRequest_descriptor, @@ -637,7 +784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_ListGitRepositoryLinksResponse_descriptor, @@ -645,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLinks", "NextPageToken", "Unreachable", }); internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_GetGitRepositoryLinkRequest_descriptor, @@ -653,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenRequest_descriptor, @@ -661,7 +808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", }); internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadTokenRequest_descriptor, @@ -669,7 +816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", }); internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadTokenResponse_descriptor, @@ -677,7 +824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Token", "ExpirationTime", "GitUsername", }); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_descriptor, @@ -685,7 +832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Token", "ExpirationTime", "GitUsername", }); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_descriptor, @@ -693,7 +840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connection", "PageSize", "PageToken", }); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesResponse_descriptor, @@ -701,7 +848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LinkableGitRepositories", "NextPageToken", }); internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_LinkableGitRepository_descriptor, @@ -709,7 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloneUri", }); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsRequest_descriptor, @@ -717,7 +864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connection", }); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitHubInstallationsResponse_descriptor, @@ -735,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Name", "Type", }); internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitRefsRequest_descriptor, @@ -743,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GitRepositoryLink", "RefType", "PageSize", "PageToken", }); internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_descriptor, diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java new file mode 100644 index 000000000000..624d57d13a64 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfig.java @@ -0,0 +1,2319 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to an instance of GitHub Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitHubEnterpriseConfig} + */ +public final class GitHubEnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + GitHubEnterpriseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitHubEnterpriseConfig.newBuilder() to construct. + private GitHubEnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitHubEnterpriseConfig() { + hostUri_ = ""; + appSlug_ = ""; + privateKeySecretVersion_ = ""; + webhookSecretSecretVersion_ = ""; + installationUri_ = ""; + serverVersion_ = ""; + sslCaCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitHubEnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder.class); + } + + private int bitField0_; + public static final int HOST_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostUri_ = ""; + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + @java.lang.Override + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + 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(); + hostUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_ID_FIELD_NUMBER = 2; + private long appId_ = 0L; + /** + * + * + *
+   * Optional. ID of the GitHub App created from the manifest.
+   * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public long getAppId() { + return appId_; + } + + public static final int APP_SLUG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object appSlug_ = ""; + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + @java.lang.Override + public java.lang.String getAppSlug() { + java.lang.Object ref = appSlug_; + 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(); + appSlug_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppSlugBytes() { + java.lang.Object ref = appSlug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateKeySecretVersion_ = ""; + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getPrivateKeySecretVersion() { + java.lang.Object ref = privateKeySecretVersion_; + 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(); + privateKeySecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKeySecretVersionBytes() { + java.lang.Object ref = privateKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_INSTALLATION_ID_FIELD_NUMBER = 8; + private long appInstallationId_ = 0L; + /** + * + * + *
+   * Optional. ID of the installation of the GitHub App.
+   * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + @java.lang.Override + public long getAppInstallationId() { + return appInstallationId_; + } + + public static final int INSTALLATION_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object installationUri_ = ""; + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + @java.lang.Override + public java.lang.String getInstallationUri() { + java.lang.Object ref = installationUri_; + 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(); + installationUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstallationUriBytes() { + java.lang.Object ref = installationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + installationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int SERVER_VERSION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverVersion_ = ""; + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + @java.lang.Override + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + 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(); + serverVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + @java.lang.Override + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + 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(); + sslCaCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = 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(hostUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostUri_); + } + if (appId_ != 0L) { + output.writeInt64(2, appId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appSlug_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appSlug_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeySecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, webhookSecretSecretVersion_); + } + if (appInstallationId_ != 0L) { + output.writeInt64(8, appInstallationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installationUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, installationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, serverVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, sslCaCertificate_); + } + 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(hostUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostUri_); + } + if (appId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, appId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appSlug_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appSlug_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeySecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateKeySecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, webhookSecretSecretVersion_); + } + if (appInstallationId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, appInstallationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installationUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, installationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serverVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, sslCaCertificate_); + } + 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.developerconnect.v1.GitHubEnterpriseConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig other = + (com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) obj; + + if (!getHostUri().equals(other.getHostUri())) return false; + if (getAppId() != other.getAppId()) return false; + if (!getAppSlug().equals(other.getAppSlug())) return false; + if (!getPrivateKeySecretVersion().equals(other.getPrivateKeySecretVersion())) return false; + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (getAppInstallationId() != other.getAppInstallationId()) return false; + if (!getInstallationUri().equals(other.getInstallationUri())) return false; + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getServerVersion().equals(other.getServerVersion())) return false; + if (!getSslCaCertificate().equals(other.getSslCaCertificate())) 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) + HOST_URI_FIELD_NUMBER; + hash = (53 * hash) + getHostUri().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppId()); + hash = (37 * hash) + APP_SLUG_FIELD_NUMBER; + hash = (53 * hash) + getAppSlug().hashCode(); + hash = (37 * hash) + PRIVATE_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeySecretVersion().hashCode(); + hash = (37 * hash) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + hash = (37 * hash) + APP_INSTALLATION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppInstallationId()); + hash = (37 * hash) + INSTALLATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstallationUri().hashCode(); + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getServerVersion().hashCode(); + hash = (37 * hash) + SSL_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getSslCaCertificate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig 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 connections to an instance of GitHub Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitHubEnterpriseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostUri_ = ""; + appId_ = 0L; + appSlug_ = ""; + privateKeySecretVersion_ = ""; + webhookSecretSecretVersion_ = ""; + appInstallationId_ = 0L; + installationUri_ = ""; + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + serverVersion_ = ""; + sslCaCertificate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitHubEnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig build() { + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result = + new com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostUri_ = hostUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appId_ = appId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appSlug_ = appSlug_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateKeySecretVersion_ = privateKeySecretVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.appInstallationId_ = appInstallationId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.installationUri_ = installationUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serverVersion_ = serverVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sslCaCertificate_ = sslCaCertificate_; + } + 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.developerconnect.v1.GitHubEnterpriseConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig.getDefaultInstance()) + return this; + if (!other.getHostUri().isEmpty()) { + hostUri_ = other.hostUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAppId() != 0L) { + setAppId(other.getAppId()); + } + if (!other.getAppSlug().isEmpty()) { + appSlug_ = other.appSlug_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrivateKeySecretVersion().isEmpty()) { + privateKeySecretVersion_ = other.privateKeySecretVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getAppInstallationId() != 0L) { + setAppInstallationId(other.getAppInstallationId()); + } + if (!other.getInstallationUri().isEmpty()) { + installationUri_ = other.installationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (!other.getServerVersion().isEmpty()) { + serverVersion_ = other.serverVersion_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getSslCaCertificate().isEmpty()) { + sslCaCertificate_ = other.sslCaCertificate_; + bitField0_ |= 0x00000200; + 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: + { + hostUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + appId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + appSlug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + privateKeySecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 64: + { + appInstallationId_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 74: + { + installationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 98: + { + serverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 98 + case 114: + { + sslCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 114 + 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 hostUri_ = ""; + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostUri() { + hostUri_ = getDefaultInstance().getHostUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitHub Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long appId_; + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public long getAppId() { + return appId_; + } + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appId to set. + * @return This builder for chaining. + */ + public Builder setAppId(long value) { + + appId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. ID of the GitHub App created from the manifest.
+     * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppId() { + bitField0_ = (bitField0_ & ~0x00000002); + appId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object appSlug_ = ""; + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + public java.lang.String getAppSlug() { + java.lang.Object ref = appSlug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appSlug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + public com.google.protobuf.ByteString getAppSlugBytes() { + java.lang.Object ref = appSlug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appSlug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The appSlug to set. + * @return This builder for chaining. + */ + public Builder setAppSlug(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appSlug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAppSlug() { + appSlug_ = getDefaultInstance().getAppSlug(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URL-friendly name of the GitHub App.
+     * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for appSlug to set. + * @return This builder for chaining. + */ + public Builder setAppSlugBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appSlug_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object privateKeySecretVersion_ = ""; + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + public java.lang.String getPrivateKeySecretVersion() { + java.lang.Object ref = privateKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + public com.google.protobuf.ByteString getPrivateKeySecretVersionBytes() { + java.lang.Object ref = privateKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateKeySecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateKeySecretVersion() { + privateKeySecretVersion_ = getDefaultInstance().getPrivateKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the private key of the GitHub
+     * App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateKeySecretVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SecretManager resource containing the webhook secret of the
+     * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long appInstallationId_; + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + @java.lang.Override + public long getAppInstallationId() { + return appInstallationId_; + } + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appInstallationId to set. + * @return This builder for chaining. + */ + public Builder setAppInstallationId(long value) { + + appInstallationId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. ID of the installation of the GitHub App.
+     * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppInstallationId() { + bitField0_ = (bitField0_ & ~0x00000020); + appInstallationId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object installationUri_ = ""; + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + public java.lang.String getInstallationUri() { + java.lang.Object ref = installationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + installationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + public com.google.protobuf.ByteString getInstallationUriBytes() { + java.lang.Object ref = installationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + installationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The installationUri to set. + * @return This builder for chaining. + */ + public Builder setInstallationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + installationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInstallationUri() { + installationUri_ = getDefaultInstance().getInstallationUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The URI to navigate to in order to manage the installation
+     * associated with this GitHubEnterpriseConfig.
+     * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for installationUri to set. + * @return This builder for chaining. + */ + public Builder setInstallationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + installationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.developerconnect.v1.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitHub Enterprise server. This should only be set if the GitHub
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitHub Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private java.lang.Object serverVersion_ = ""; + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServerVersion() { + serverVersion_ = getDefaultInstance().getServerVersion(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. GitHub Enterprise version installed at the host_uri.
+     * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sslCaCertificate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSslCaCertificate() { + sslCaCertificate_ = getDefaultInstance().getSslCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL certificate to use for requests to GitHub Enterprise.
+     * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sslCaCertificate_ = value; + bitField0_ |= 0x00000200; + 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.developerconnect.v1.GitHubEnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + private static final com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitHubEnterpriseConfig 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.developerconnect.v1.GitHubEnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..f6bd1f8b763c --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitHubEnterpriseConfigOrBuilder.java @@ -0,0 +1,295 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitHubEnterpriseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitHubEnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + java.lang.String getHostUri(); + /** + * + * + *
+   * Required. The URI of the GitHub Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + com.google.protobuf.ByteString getHostUriBytes(); + + /** + * + * + *
+   * Optional. ID of the GitHub App created from the manifest.
+   * 
+ * + * int64 app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + long getAppId(); + + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The appSlug. + */ + java.lang.String getAppSlug(); + /** + * + * + *
+   * Output only. The URL-friendly name of the GitHub App.
+   * 
+ * + * string app_slug = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for appSlug. + */ + com.google.protobuf.ByteString getAppSlugBytes(); + + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKeySecretVersion. + */ + java.lang.String getPrivateKeySecretVersion(); + /** + * + * + *
+   * Optional. SecretManager resource containing the private key of the GitHub
+   * App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string private_key_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKeySecretVersion. + */ + com.google.protobuf.ByteString getPrivateKeySecretVersionBytes(); + + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Optional. SecretManager resource containing the webhook secret of the
+   * GitHub App, formatted as `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string webhook_secret_secret_version = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Optional. ID of the installation of the GitHub App.
+   * 
+ * + * int64 app_installation_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appInstallationId. + */ + long getAppInstallationId(); + + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The installationUri. + */ + java.lang.String getInstallationUri(); + /** + * + * + *
+   * Output only. The URI to navigate to in order to manage the installation
+   * associated with this GitHubEnterpriseConfig.
+   * 
+ * + * string installation_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for installationUri. + */ + com.google.protobuf.ByteString getInstallationUriBytes(); + + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitHub Enterprise server. This should only be set if the GitHub
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitHub Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + java.lang.String getServerVersion(); + /** + * + * + *
+   * Output only. GitHub Enterprise version installed at the host_uri.
+   * 
+ * + * string server_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + com.google.protobuf.ByteString getServerVersionBytes(); + + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + java.lang.String getSslCaCertificate(); + /** + * + * + *
+   * Optional. SSL certificate to use for requests to GitHub Enterprise.
+   * 
+ * + * string ssl_ca_certificate = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + com.google.protobuf.ByteString getSslCaCertificateBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java new file mode 100644 index 000000000000..2839907e9c19 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfig.java @@ -0,0 +1,1347 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to gitlab.com.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabConfig} + */ +public final class GitLabConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitLabConfig) + GitLabConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitLabConfig.newBuilder() to construct. + private GitLabConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitLabConfig() { + webhookSecretSecretVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitLabConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabConfig.class, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder.class); + } + + private int bitField0_; + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 2; + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + @java.lang.Override + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + + public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + @java.lang.Override + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + + 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(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAuthorizerCredential()); + } + 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(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthorizerCredential()); + } + 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.developerconnect.v1.GitLabConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitLabConfig other = + (com.google.cloud.developerconnect.v1.GitLabConfig) obj; + + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (hasReadAuthorizerCredential() != other.hasReadAuthorizerCredential()) return false; + if (hasReadAuthorizerCredential()) { + if (!getReadAuthorizerCredential().equals(other.getReadAuthorizerCredential())) return false; + } + if (hasAuthorizerCredential() != other.hasAuthorizerCredential()) return false; + if (hasAuthorizerCredential()) { + if (!getAuthorizerCredential().equals(other.getAuthorizerCredential())) 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) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + if (hasReadAuthorizerCredential()) { + hash = (37 * hash) + READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getReadAuthorizerCredential().hashCode(); + } + if (hasAuthorizerCredential()) { + hash = (37 * hash) + AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizerCredential().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig 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.developerconnect.v1.GitLabConfig 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 connections to gitlab.com.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitLabConfig) + com.google.cloud.developerconnect.v1.GitLabConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabConfig.class, + com.google.cloud.developerconnect.v1.GitLabConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitLabConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReadAuthorizerCredentialFieldBuilder(); + getAuthorizerCredentialFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + webhookSecretSecretVersion_ = ""; + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig build() { + com.google.cloud.developerconnect.v1.GitLabConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitLabConfig result = + new com.google.cloud.developerconnect.v1.GitLabConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitLabConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readAuthorizerCredential_ = + readAuthorizerCredentialBuilder_ == null + ? readAuthorizerCredential_ + : readAuthorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authorizerCredential_ = + authorizerCredentialBuilder_ == null + ? authorizerCredential_ + : authorizerCredentialBuilder_.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.developerconnect.v1.GitLabConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitLabConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitLabConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitLabConfig.getDefaultInstance()) + return this; + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReadAuthorizerCredential()) { + mergeReadAuthorizerCredential(other.getReadAuthorizerCredential()); + } + if (other.hasAuthorizerCredential()) { + mergeAuthorizerCredential(other.getAuthorizerCredential()); + } + 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: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getReadAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + 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 webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + readAuthorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + if (readAuthorizerCredentialBuilder_ == null) { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } else { + return readAuthorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readAuthorizerCredential_ = value; + } else { + readAuthorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredential_ = builderForValue.build(); + } else { + readAuthorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && readAuthorizerCredential_ != null + && readAuthorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getReadAuthorizerCredentialBuilder().mergeFrom(value); + } else { + readAuthorizerCredential_ = value; + } + } else { + readAuthorizerCredentialBuilder_.mergeFrom(value); + } + if (readAuthorizerCredential_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReadAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000002); + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getReadAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReadAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + if (readAuthorizerCredentialBuilder_ != null) { + return readAuthorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getReadAuthorizerCredentialFieldBuilder() { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getReadAuthorizerCredential(), getParentForChildren(), isClean()); + readAuthorizerCredential_ = null; + } + return readAuthorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + authorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + if (authorizerCredentialBuilder_ == null) { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } else { + return authorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorizerCredential_ = value; + } else { + authorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (authorizerCredentialBuilder_ == null) { + authorizerCredential_ = builderForValue.build(); + } else { + authorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authorizerCredential_ != null + && authorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getAuthorizerCredentialBuilder().mergeFrom(value); + } else { + authorizerCredential_ = value; + } + } else { + authorizerCredentialBuilder_.mergeFrom(value); + } + if (authorizerCredential_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000004); + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + if (authorizerCredentialBuilder_ != null) { + return authorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getAuthorizerCredentialFieldBuilder() { + if (authorizerCredentialBuilder_ == null) { + authorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getAuthorizerCredential(), getParentForChildren(), isClean()); + authorizerCredential_ = null; + } + return authorizerCredentialBuilder_; + } + + @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.developerconnect.v1.GitLabConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitLabConfig) + private static final com.google.cloud.developerconnect.v1.GitLabConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitLabConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitLabConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitLabConfig 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.developerconnect.v1.GitLabConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.java new file mode 100644 index 000000000000..20c53b43f2fa --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabConfigOrBuilder.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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitLabConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitLabConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + boolean hasReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + boolean hasAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder getAuthorizerCredentialOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java new file mode 100644 index 000000000000..47234aae766d --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfig.java @@ -0,0 +1,2261 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Configuration for connections to an instance of GitLab Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabEnterpriseConfig} + */ +public final class GitLabEnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + GitLabEnterpriseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitLabEnterpriseConfig.newBuilder() to construct. + private GitLabEnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitLabEnterpriseConfig() { + hostUri_ = ""; + webhookSecretSecretVersion_ = ""; + sslCaCertificate_ = ""; + serverVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitLabEnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder.class); + } + + private int bitField0_; + public static final int HOST_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostUri_ = ""; + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + @java.lang.Override + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + 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(); + hostUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + @java.lang.Override + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + 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(); + webhookSecretSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + @java.lang.Override + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + + public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER = 4; + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + @java.lang.Override + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + @java.lang.Override + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + 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(); + sslCaCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverVersion_ = ""; + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + @java.lang.Override + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + 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(); + serverVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = 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(hostUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getAuthorizerCredential()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sslCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serverVersion_); + } + 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(hostUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookSecretSecretVersion_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhookSecretSecretVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getReadAuthorizerCredential()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthorizerCredential()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getServiceDirectoryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sslCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serverVersion_); + } + 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.developerconnect.v1.GitLabEnterpriseConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig other = + (com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) obj; + + if (!getHostUri().equals(other.getHostUri())) return false; + if (!getWebhookSecretSecretVersion().equals(other.getWebhookSecretSecretVersion())) + return false; + if (hasReadAuthorizerCredential() != other.hasReadAuthorizerCredential()) return false; + if (hasReadAuthorizerCredential()) { + if (!getReadAuthorizerCredential().equals(other.getReadAuthorizerCredential())) return false; + } + if (hasAuthorizerCredential() != other.hasAuthorizerCredential()) return false; + if (hasAuthorizerCredential()) { + if (!getAuthorizerCredential().equals(other.getAuthorizerCredential())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getSslCaCertificate().equals(other.getSslCaCertificate())) return false; + if (!getServerVersion().equals(other.getServerVersion())) 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) + HOST_URI_FIELD_NUMBER; + hash = (53 * hash) + getHostUri().hashCode(); + hash = (37 * hash) + WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getWebhookSecretSecretVersion().hashCode(); + if (hasReadAuthorizerCredential()) { + hash = (37 * hash) + READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getReadAuthorizerCredential().hashCode(); + } + if (hasAuthorizerCredential()) { + hash = (37 * hash) + AUTHORIZER_CREDENTIAL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizerCredential().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + SSL_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getSslCaCertificate().hashCode(); + hash = (37 * hash) + SERVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getServerVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig 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 connections to an instance of GitLab Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.GitLabEnterpriseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.class, + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReadAuthorizerCredentialFieldBuilder(); + getAuthorizerCredentialFieldBuilder(); + getServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostUri_ = ""; + webhookSecretSecretVersion_ = ""; + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + sslCaCertificate_ = ""; + serverVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_GitLabEnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig build() { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig buildPartial() { + com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result = + new com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostUri_ = hostUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhookSecretSecretVersion_ = webhookSecretSecretVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.readAuthorizerCredential_ = + readAuthorizerCredentialBuilder_ == null + ? readAuthorizerCredential_ + : readAuthorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorizerCredential_ = + authorizerCredentialBuilder_ == null + ? authorizerCredential_ + : authorizerCredentialBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sslCaCertificate_ = sslCaCertificate_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serverVersion_ = serverVersion_; + } + 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.developerconnect.v1.GitLabEnterpriseConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig other) { + if (other == com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig.getDefaultInstance()) + return this; + if (!other.getHostUri().isEmpty()) { + hostUri_ = other.hostUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWebhookSecretSecretVersion().isEmpty()) { + webhookSecretSecretVersion_ = other.webhookSecretSecretVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasReadAuthorizerCredential()) { + mergeReadAuthorizerCredential(other.getReadAuthorizerCredential()); + } + if (other.hasAuthorizerCredential()) { + mergeAuthorizerCredential(other.getAuthorizerCredential()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (!other.getSslCaCertificate().isEmpty()) { + sslCaCertificate_ = other.sslCaCertificate_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServerVersion().isEmpty()) { + serverVersion_ = other.serverVersion_; + bitField0_ |= 0x00000040; + 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: + { + hostUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + webhookSecretSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getReadAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getAuthorizerCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getServiceDirectoryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + sslCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + serverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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 hostUri_ = ""; + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + public java.lang.String getHostUri() { + java.lang.Object ref = hostUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + public com.google.protobuf.ByteString getHostUriBytes() { + java.lang.Object ref = hostUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostUri() { + hostUri_ = getDefaultInstance().getHostUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of the GitLab Enterprise host this connection is for.
+     * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostUri to set. + * @return This builder for chaining. + */ + public Builder setHostUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object webhookSecretSecretVersion_ = ""; + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + public java.lang.String getWebhookSecretSecretVersion() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookSecretSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes() { + java.lang.Object ref = webhookSecretSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookSecretSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearWebhookSecretSecretVersion() { + webhookSecretSecretVersion_ = getDefaultInstance().getWebhookSecretSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. SecretManager resource containing the webhook secret
+     * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+     * is used to validate webhooks.
+     * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for webhookSecretSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setWebhookSecretSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookSecretSecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.UserCredential readAuthorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + readAuthorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + public boolean hasReadAuthorizerCredential() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential() { + if (readAuthorizerCredentialBuilder_ == null) { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } else { + return readAuthorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readAuthorizerCredential_ = value; + } else { + readAuthorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredential_ = builderForValue.build(); + } else { + readAuthorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReadAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (readAuthorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && readAuthorizerCredential_ != null + && readAuthorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getReadAuthorizerCredentialBuilder().mergeFrom(value); + } else { + readAuthorizerCredential_ = value; + } + } else { + readAuthorizerCredentialBuilder_.mergeFrom(value); + } + if (readAuthorizerCredential_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReadAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000004); + readAuthorizerCredential_ = null; + if (readAuthorizerCredentialBuilder_ != null) { + readAuthorizerCredentialBuilder_.dispose(); + readAuthorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getReadAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReadAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder() { + if (readAuthorizerCredentialBuilder_ != null) { + return readAuthorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return readAuthorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : readAuthorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `read_api` scope
+     * access and a minimum role of `reporter`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getReadAuthorizerCredentialFieldBuilder() { + if (readAuthorizerCredentialBuilder_ == null) { + readAuthorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getReadAuthorizerCredential(), getParentForChildren(), isClean()); + readAuthorizerCredential_ = null; + } + return readAuthorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.UserCredential authorizerCredential_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + authorizerCredentialBuilder_; + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + public boolean hasAuthorizerCredential() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + public com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential() { + if (authorizerCredentialBuilder_ == null) { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } else { + return authorizerCredentialBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorizerCredential_ = value; + } else { + authorizerCredentialBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential.Builder builderForValue) { + if (authorizerCredentialBuilder_ == null) { + authorizerCredential_ = builderForValue.build(); + } else { + authorizerCredentialBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthorizerCredential( + com.google.cloud.developerconnect.v1.UserCredential value) { + if (authorizerCredentialBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && authorizerCredential_ != null + && authorizerCredential_ + != com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) { + getAuthorizerCredentialBuilder().mergeFrom(value); + } else { + authorizerCredential_ = value; + } + } else { + authorizerCredentialBuilder_.mergeFrom(value); + } + if (authorizerCredential_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthorizerCredential() { + bitField0_ = (bitField0_ & ~0x00000008); + authorizerCredential_ = null; + if (authorizerCredentialBuilder_ != null) { + authorizerCredentialBuilder_.dispose(); + authorizerCredentialBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredential.Builder + getAuthorizerCredentialBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAuthorizerCredentialFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getAuthorizerCredentialOrBuilder() { + if (authorizerCredentialBuilder_ != null) { + return authorizerCredentialBuilder_.getMessageOrBuilder(); + } else { + return authorizerCredential_ == null + ? com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance() + : authorizerCredential_; + } + } + /** + * + * + *
+     * Required. A GitLab personal access token with the minimum `api` scope
+     * access and a minimum role of `maintainer`. The GitLab Projects visible to
+     * this Personal Access Token will control which Projects Developer Connect
+     * has access to.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder> + getAuthorizerCredentialFieldBuilder() { + if (authorizerCredentialBuilder_ == null) { + authorizerCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.UserCredential, + com.google.cloud.developerconnect.v1.UserCredential.Builder, + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder>( + getAuthorizerCredential(), getParentForChildren(), isClean()); + authorizerCredential_ = null; + } + return authorizerCredentialBuilder_; + } + + private com.google.cloud.developerconnect.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.developerconnect.v1.ServiceDirectoryConfig + .getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getServiceDirectoryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for using Service Directory to privately connect to
+     * a GitLab Enterprise instance. This should only be set if the GitLab
+     * Enterprise server is hosted on-premises and not reachable by public
+     * internet. If this field is left empty, calls to the GitLab Enterprise
+     * server will be made over the public internet.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder> + getServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private java.lang.Object sslCaCertificate_ = ""; + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + public java.lang.String getSslCaCertificate() { + java.lang.Object ref = sslCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + public com.google.protobuf.ByteString getSslCaCertificateBytes() { + java.lang.Object ref = sslCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sslCaCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSslCaCertificate() { + sslCaCertificate_ = getDefaultInstance().getSslCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL Certificate Authority certificate to use for requests to
+     * GitLab Enterprise instance.
+     * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sslCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setSslCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sslCaCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object serverVersion_ = ""; + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + public java.lang.String getServerVersion() { + java.lang.Object ref = serverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + public com.google.protobuf.ByteString getServerVersionBytes() { + java.lang.Object ref = serverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServerVersion() { + serverVersion_ = getDefaultInstance().getServerVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Version of the GitLab Enterprise server running on the
+     * `host_uri`.
+     * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serverVersion to set. + * @return This builder for chaining. + */ + public Builder setServerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverVersion_ = value; + bitField0_ |= 0x00000040; + 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.developerconnect.v1.GitLabEnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + private static final com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig(); + } + + public static com.google.cloud.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitLabEnterpriseConfig 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.developerconnect.v1.GitLabEnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..6f52da1d62ee --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitLabEnterpriseConfigOrBuilder.java @@ -0,0 +1,293 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface GitLabEnterpriseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.GitLabEnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostUri. + */ + java.lang.String getHostUri(); + /** + * + * + *
+   * Required. The URI of the GitLab Enterprise host this connection is for.
+   * 
+ * + * string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostUri. + */ + com.google.protobuf.ByteString getHostUriBytes(); + + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The webhookSecretSecretVersion. + */ + java.lang.String getWebhookSecretSecretVersion(); + /** + * + * + *
+   * Required. Immutable. SecretManager resource containing the webhook secret
+   * of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This
+   * is used to validate webhooks.
+   * 
+ * + * + * string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for webhookSecretSecretVersion. + */ + com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the readAuthorizerCredential field is set. + */ + boolean hasReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The readAuthorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getReadAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `read_api` scope
+   * access and a minimum role of `reporter`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder + getReadAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authorizerCredential field is set. + */ + boolean hasAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authorizerCredential. + */ + com.google.cloud.developerconnect.v1.UserCredential getAuthorizerCredential(); + /** + * + * + *
+   * Required. A GitLab personal access token with the minimum `api` scope
+   * access and a minimum role of `maintainer`. The GitLab Projects visible to
+   * this Personal Access Token will control which Projects Developer Connect
+   * has access to.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder getAuthorizerCredentialOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + /** + * + * + *
+   * Optional. Configuration for using Service Directory to privately connect to
+   * a GitLab Enterprise instance. This should only be set if the GitLab
+   * Enterprise server is hosted on-premises and not reachable by public
+   * internet. If this field is left empty, calls to the GitLab Enterprise
+   * server will be made over the public internet.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslCaCertificate. + */ + java.lang.String getSslCaCertificate(); + /** + * + * + *
+   * Optional. SSL Certificate Authority certificate to use for requests to
+   * GitLab Enterprise instance.
+   * 
+ * + * string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslCaCertificate. + */ + com.google.protobuf.ByteString getSslCaCertificateBytes(); + + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serverVersion. + */ + java.lang.String getServerVersion(); + /** + * + * + *
+   * Output only. Version of the GitLab Enterprise server running on the
+   * `host_uri`.
+   * 
+ * + * string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serverVersion. + */ + com.google.protobuf.ByteString getServerVersionBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java index b71e2aa022ed..3039431abc61 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLink.java @@ -43,6 +43,7 @@ private GitRepositoryLink() { cloneUri_ = ""; etag_ = ""; uid_ = ""; + webhookId_ = ""; } @java.lang.Override @@ -672,6 +673,57 @@ public com.google.protobuf.ByteString getUidBytes() { } } + public static final int WEBHOOK_ID_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookId_ = ""; + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + @java.lang.Override + public java.lang.String getWebhookId() { + java.lang.Object ref = webhookId_; + 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(); + webhookId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookIdBytes() { + java.lang.Object ref = webhookId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -714,6 +766,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, webhookId_); + } getUnknownFields().writeTo(output); } @@ -767,6 +822,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, webhookId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -802,6 +860,7 @@ public boolean equals(final java.lang.Object obj) { if (getReconciling() != other.getReconciling()) return false; if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getUid().equals(other.getUid())) return false; + if (!getWebhookId().equals(other.getWebhookId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -843,6 +902,8 @@ public int hashCode() { } hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + WEBHOOK_ID_FIELD_NUMBER; + hash = (53 * hash) + getWebhookId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1042,6 +1103,7 @@ public Builder clear() { reconciling_ = false; internalGetMutableAnnotations().clear(); uid_ = ""; + webhookId_ = ""; return this; } @@ -1114,6 +1176,9 @@ private void buildPartial0(com.google.cloud.developerconnect.v1.GitRepositoryLin if (((from_bitField0_ & 0x00000200) != 0)) { result.uid_ = uid_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.webhookId_ = webhookId_; + } result.bitField0_ |= to_bitField0_; } @@ -1199,6 +1264,11 @@ public Builder mergeFrom(com.google.cloud.developerconnect.v1.GitRepositoryLink bitField0_ |= 0x00000200; onChanged(); } + if (!other.getWebhookId().isEmpty()) { + webhookId_ = other.webhookId_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1297,6 +1367,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 82 + case 90: + { + webhookId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2771,6 +2847,112 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object webhookId_ = ""; + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + public java.lang.String getWebhookId() { + java.lang.Object ref = webhookId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + public com.google.protobuf.ByteString getWebhookIdBytes() { + java.lang.Object ref = webhookId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The webhookId to set. + * @return This builder for chaining. + */ + public Builder setWebhookId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWebhookId() { + webhookId_ = getDefaultInstance().getWebhookId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. External ID of the webhook created for the repository.
+     * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for webhookId to set. + * @return This builder for chaining. + */ + public Builder setWebhookIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java index c5bb243e0f27..36361e279dea 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkOrBuilder.java @@ -384,4 +384,29 @@ java.lang.String getAnnotationsOrDefault( * @return The bytes for uid. */ com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The webhookId. + */ + java.lang.String getWebhookId(); + /** + * + * + *
+   * Output only. External ID of the webhook created for the repository.
+   * 
+ * + * string webhook_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for webhookId. + */ + com.google.protobuf.ByteString getWebhookIdBytes(); } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java index c82000c10ebe..ae1b772cc733 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadata.java @@ -326,9 +326,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1622,9 +1623,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1641,9 +1643,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1664,9 +1667,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java index cc3d56d07ec0..ec10b99e2f3f 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OperationMetadataOrBuilder.java @@ -181,9 +181,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java new file mode 100644 index 000000000000..5124c5494da5 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfig.java @@ -0,0 +1,656 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * ServiceDirectoryConfig represents Service Directory configuration for a
+ * connection.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.ServiceDirectoryConfig} + */ +public final class ServiceDirectoryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + ServiceDirectoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceDirectoryConfig.newBuilder() to construct. + private ServiceDirectoryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceDirectoryConfig() { + service_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceDirectoryConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.class, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = 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(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + 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(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + 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.developerconnect.v1.ServiceDirectoryConfig)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig other = + (com.google.cloud.developerconnect.v1.ServiceDirectoryConfig) obj; + + if (!getService().equals(other.getService())) 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) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig 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; + } + /** + * + * + *
+   * ServiceDirectoryConfig represents Service Directory configuration for a
+   * connection.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.ServiceDirectoryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + com.google.cloud.developerconnect.v1.ServiceDirectoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.class, + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig build() { + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ServiceDirectoryConfig buildPartial() { + com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result = + new com.google.cloud.developerconnect.v1.ServiceDirectoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + } + + @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.developerconnect.v1.ServiceDirectoryConfig) { + return mergeFrom((com.google.cloud.developerconnect.v1.ServiceDirectoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.ServiceDirectoryConfig other) { + if (other == com.google.cloud.developerconnect.v1.ServiceDirectoryConfig.getDefaultInstance()) + return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + 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: + { + service_ = 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 service_ = ""; + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Service Directory service name.
+     * Format:
+     * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+     * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = 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.developerconnect.v1.ServiceDirectoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + private static final com.google.cloud.developerconnect.v1.ServiceDirectoryConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.ServiceDirectoryConfig(); + } + + public static com.google.cloud.developerconnect.v1.ServiceDirectoryConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDirectoryConfig 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.developerconnect.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.java new file mode 100644 index 000000000000..5616bd3b0bb3 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ServiceDirectoryConfigOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface ServiceDirectoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.ServiceDirectoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + /** + * + * + *
+   * Required. The Service Directory service name.
+   * Format:
+   * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
+   * 
+ * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java new file mode 100644 index 000000000000..7e9caf0335f5 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredential.java @@ -0,0 +1,837 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Represents a personal access token that authorized the Connection,
+ * and associated metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.UserCredential} + */ +public final class UserCredential extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.UserCredential) + UserCredentialOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserCredential.newBuilder() to construct. + private UserCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserCredential() { + userTokenSecretVersion_ = ""; + username_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserCredential(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.UserCredential.class, + com.google.cloud.developerconnect.v1.UserCredential.Builder.class); + } + + public static final int USER_TOKEN_SECRET_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userTokenSecretVersion_ = ""; + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + @java.lang.Override + public java.lang.String getUserTokenSecretVersion() { + java.lang.Object ref = userTokenSecretVersion_; + 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(); + userTokenSecretVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserTokenSecretVersionBytes() { + java.lang.Object ref = userTokenSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERNAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = 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(userTokenSecretVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userTokenSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); + } + 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(userTokenSecretVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userTokenSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); + } + 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.developerconnect.v1.UserCredential)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.UserCredential other = + (com.google.cloud.developerconnect.v1.UserCredential) obj; + + if (!getUserTokenSecretVersion().equals(other.getUserTokenSecretVersion())) return false; + if (!getUsername().equals(other.getUsername())) 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) + USER_TOKEN_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getUserTokenSecretVersion().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.UserCredential parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.UserCredential 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.developerconnect.v1.UserCredential 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 personal access token that authorized the Connection,
+   * and associated metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.UserCredential} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.UserCredential) + com.google.cloud.developerconnect.v1.UserCredentialOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.UserCredential.class, + com.google.cloud.developerconnect.v1.UserCredential.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.UserCredential.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userTokenSecretVersion_ = ""; + username_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_UserCredential_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential build() { + com.google.cloud.developerconnect.v1.UserCredential result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.UserCredential buildPartial() { + com.google.cloud.developerconnect.v1.UserCredential result = + new com.google.cloud.developerconnect.v1.UserCredential(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.UserCredential result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userTokenSecretVersion_ = userTokenSecretVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } + } + + @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.developerconnect.v1.UserCredential) { + return mergeFrom((com.google.cloud.developerconnect.v1.UserCredential) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.UserCredential other) { + if (other == com.google.cloud.developerconnect.v1.UserCredential.getDefaultInstance()) + return this; + if (!other.getUserTokenSecretVersion().isEmpty()) { + userTokenSecretVersion_ = other.userTokenSecretVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + 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: + { + userTokenSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = 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 userTokenSecretVersion_ = ""; + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + public java.lang.String getUserTokenSecretVersion() { + java.lang.Object ref = userTokenSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userTokenSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + public com.google.protobuf.ByteString getUserTokenSecretVersionBytes() { + java.lang.Object ref = userTokenSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userTokenSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The userTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserTokenSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userTokenSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserTokenSecretVersion() { + userTokenSecretVersion_ = getDefaultInstance().getUserTokenSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A SecretManager resource containing the user token that
+     * authorizes the Developer Connect connection. Format:
+     * `projects/*/secrets/*/versions/*`.
+     * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userTokenSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setUserTokenSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userTokenSecretVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The username associated with this token.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = 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.developerconnect.v1.UserCredential) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.UserCredential) + private static final com.google.cloud.developerconnect.v1.UserCredential DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.UserCredential(); + } + + public static com.google.cloud.developerconnect.v1.UserCredential getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserCredential 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.developerconnect.v1.UserCredential getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.java new file mode 100644 index 000000000000..37f23dd5a3c4 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserCredentialOrBuilder.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/developerconnect/v1/developer_connect.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.developerconnect.v1; + +public interface UserCredentialOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.UserCredential) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The userTokenSecretVersion. + */ + java.lang.String getUserTokenSecretVersion(); + /** + * + * + *
+   * Required. A SecretManager resource containing the user token that
+   * authorizes the Developer Connect connection. Format:
+   * `projects/*/secrets/*/versions/*`.
+   * 
+ * + * + * string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userTokenSecretVersion. + */ + com.google.protobuf.ByteString getUserTokenSecretVersionBytes(); + + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Output only. The username associated with this token.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto index 3bd3a64ef560..77ac1d3a96bc 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto @@ -38,6 +38,14 @@ option (google.api.resource_definition) = { type: "secretmanager.googleapis.com/SecretVersion" pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}" }; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; // Service describing handlers for resources service DeveloperConnect { @@ -217,6 +225,15 @@ message Connection { oneof connection_config { // Configuration for connections to github.com. GitHubConfig github_config = 5; + + // Configuration for connections to an instance of GitHub Enterprise. + GitHubEnterpriseConfig github_enterprise_config = 13; + + // Configuration for connections to gitlab.com. + GitLabConfig gitlab_config = 14; + + // Configuration for connections to an instance of GitLab Enterprise. + GitLabEnterpriseConfig gitlab_enterprise_config = 16; } // Identifier. The resource name of the connection, in the format @@ -265,6 +282,25 @@ message Connection { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Optional. The crypto key configuration. This field is used by the + // Customer-Managed Encryption Keys (CMEK) feature. + CryptoKeyConfig crypto_key_config = 15 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The crypto key configuration. This field is used by the Customer-managed +// encryption keys (CMEK) feature. +message CryptoKeyConfig { + // Required. The name of the key which is used to encrypt/decrypt customer + // data. For key in Cloud KMS, the key should be in the format of + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + string key_reference = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } // Describes stage and necessary actions to be taken by the @@ -338,6 +374,71 @@ message GitHubConfig { string installation_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for connections to an instance of GitHub Enterprise. +message GitHubEnterpriseConfig { + // Required. The URI of the GitHub Enterprise host this connection is for. + string host_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. ID of the GitHub App created from the manifest. + int64 app_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The URL-friendly name of the GitHub App. + string app_slug = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SecretManager resource containing the private key of the GitHub + // App, formatted as `projects/*/secrets/*/versions/*`. + string private_key_secret_version = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. SecretManager resource containing the webhook secret of the + // GitHub App, formatted as `projects/*/secrets/*/versions/*`. + string webhook_secret_secret_version = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. ID of the installation of the GitHub App. + int64 app_installation_id = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The URI to navigate to in order to manage the installation + // associated with this GitHubEnterpriseConfig. + string installation_uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for using Service Directory to privately connect to + // a GitHub Enterprise server. This should only be set if the GitHub + // Enterprise server is hosted on-premises and not reachable by public + // internet. If this field is left empty, calls to the GitHub Enterprise + // server will be made over the public internet. + ServiceDirectoryConfig service_directory_config = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. GitHub Enterprise version installed at the host_uri. + string server_version = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SSL certificate to use for requests to GitHub Enterprise. + string ssl_ca_certificate = 14 [(google.api.field_behavior) = OPTIONAL]; +} + +// ServiceDirectoryConfig represents Service Directory configuration for a +// connection. +message ServiceDirectoryConfig { + // Required. The Service Directory service name. + // Format: + // projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; +} + // Represents an OAuth token of the account that authorized the Connection, // and associated metadata. message OAuthCredential { @@ -354,6 +455,98 @@ message OAuthCredential { string username = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for connections to gitlab.com. +message GitLabConfig { + // Required. Immutable. SecretManager resource containing the webhook secret + // of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This + // is used to validate webhooks. + string webhook_secret_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. A GitLab personal access token with the minimum `read_api` scope + // access and a minimum role of `reporter`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential read_authorizer_credential = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A GitLab personal access token with the minimum `api` scope + // access and a minimum role of `maintainer`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential authorizer_credential = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a personal access token that authorized the Connection, +// and associated metadata. +message UserCredential { + // Required. A SecretManager resource containing the user token that + // authorizes the Developer Connect connection. Format: + // `projects/*/secrets/*/versions/*`. + string user_token_secret_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Output only. The username associated with this token. + string username = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration for connections to an instance of GitLab Enterprise. +message GitLabEnterpriseConfig { + // Required. The URI of the GitLab Enterprise host this connection is for. + string host_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. SecretManager resource containing the webhook secret + // of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This + // is used to validate webhooks. + string webhook_secret_secret_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. A GitLab personal access token with the minimum `read_api` scope + // access and a minimum role of `reporter`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential read_authorizer_credential = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A GitLab personal access token with the minimum `api` scope + // access and a minimum role of `maintainer`. The GitLab Projects visible to + // this Personal Access Token will control which Projects Developer Connect + // has access to. + UserCredential authorizer_credential = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for using Service Directory to privately connect to + // a GitLab Enterprise instance. This should only be set if the GitLab + // Enterprise server is hosted on-premises and not reachable by public + // internet. If this field is left empty, calls to the GitLab Enterprise + // server will be made over the public internet. + ServiceDirectoryConfig service_directory_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SSL Certificate Authority certificate to use for requests to + // GitLab Enterprise instance. + string ssl_ca_certificate = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Version of the GitLab Enterprise server running on the + // `host_uri`. + string server_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Message for requesting list of Connections message ListConnectionsRequest { // Required. Parent value for ListConnectionsRequest @@ -541,9 +734,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have been cancelled successfully - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. @@ -600,6 +794,9 @@ message GitRepositoryLink { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Output only. External ID of the webhook created for the repository. + string webhook_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Message for creating a GitRepositoryLink diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index c13ed0121aaf..66b068ead595 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.64.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.65.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 83dfec845775..9ff640be01ae 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.59.0 + 4.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.59.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.60.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index 0d4f4301abe7..e59bdf395c1e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -120,7 +120,7 @@ * *

CreateConversationProfile *

Creates a conversation profile in the specified project. - *

[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + *

[ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. * *

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

*
    @@ -141,7 +141,7 @@ * *

    UpdateConversationProfile *

    Updates the specified conversation profile. - *

    [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + *

    [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. * *

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

    *
      @@ -729,8 +729,10 @@ public final ConversationProfile getConversationProfile(GetConversationProfileRe /** * Creates a conversation profile in the specified project. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -770,8 +772,10 @@ public final ConversationProfile createConversationProfile( /** * Creates a conversation profile in the specified project. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -811,8 +815,10 @@ public final ConversationProfile createConversationProfile( /** * Creates a conversation profile in the specified project. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -852,8 +858,10 @@ public final ConversationProfile createConversationProfile( /** * Creates a conversation profile in the specified project. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -888,8 +896,10 @@ public final ConversationProfile createConversationProfile( /** * Creates a conversation profile in the specified project. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -924,8 +934,10 @@ public final ConversationProfile createConversationProfile( /** * Updates the specified conversation profile. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -964,8 +976,10 @@ public final ConversationProfile updateConversationProfile( /** * Updates the specified conversation profile. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * @@ -1000,8 +1014,10 @@ public final ConversationProfile updateConversationProfile( /** * Updates the specified conversation profile. * - *

      [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated - * in the response. You can retrieve them via + *

      [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] + * and + * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] + * aren't populated in the response. You can retrieve them via * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] * API. * diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java index 9f643056f9e7..6d9726dcc9ad 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java @@ -490,7 +490,9 @@ default void getConversationProfile( * *

            * Creates a conversation profile in the specified project.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -509,7 +511,9 @@ default void createConversationProfile(
            *
            * 
            * Updates the specified conversation profile.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -664,7 +668,9 @@ public void getConversationProfile(
            *
            * 
            * Creates a conversation profile in the specified project.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -685,7 +691,9 @@ public void createConversationProfile(
            *
            * 
            * Updates the specified conversation profile.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -824,7 +832,9 @@ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile
            *
            * 
            * Creates a conversation profile in the specified project.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -841,7 +851,9 @@ public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProf
            *
            * 
            * Updates the specified conversation profile.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -971,7 +983,9 @@ protected ConversationProfilesFutureStub build(
            *
            * 
            * Creates a conversation profile in the specified project.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      @@ -990,7 +1004,9 @@ protected ConversationProfilesFutureStub build(
            *
            * 
            * Updates the specified conversation profile.
      -     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
      +     * [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time]
      +     * and
      +     * [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time]
            * aren't populated in the response. You can retrieve them via
            * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
            * API.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java
      index accd50223a07..349fcb9159d1 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java
      @@ -209,8 +209,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      @@ -229,8 +230,9 @@ public boolean hasAutomatedAgentReply() {
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      @@ -251,8 +253,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      @@ -1650,8 +1653,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1669,8 +1673,9 @@ public boolean hasAutomatedAgentReply() {
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1694,8 +1699,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1722,8 +1728,9 @@ public Builder setAutomatedAgentReply(
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1747,8 +1754,9 @@ public Builder setAutomatedAgentReply(
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1781,8 +1789,9 @@ public Builder mergeAutomatedAgentReply(
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1805,8 +1814,9 @@ public Builder clearAutomatedAgentReply() {
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1825,8 +1835,9 @@ public Builder clearAutomatedAgentReply() {
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      @@ -1849,8 +1860,9 @@ public Builder clearAutomatedAgentReply() {
            *
            * 
            * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
            * instead.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java
      index 8ad8b11d611e..3004ac2f13d1 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java
      @@ -123,8 +123,9 @@ public interface AnalyzeContentResponseOrBuilder
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      @@ -140,8 +141,9 @@ public interface AnalyzeContentResponseOrBuilder
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      @@ -157,8 +159,9 @@ public interface AnalyzeContentResponseOrBuilder
          *
          * 
          * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio]
          * instead.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java
      index 018515c695e0..f155e51588ab 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java
      @@ -49,8 +49,9 @@
        *    returned to the customers.
        * 2. The customer uses the
        * [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the
      - *    [UpdateAnswerRecord][] method to send feedback about a specific answer
      - *    that they believe is wrong.
      + *    [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord]
      + *    method to send feedback about a specific answer that they believe is
      + *    wrong.
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.AnswerRecord} @@ -539,8 +540,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * returned to the customers. * 2. The customer uses the * [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the - * [UpdateAnswerRecord][] method to send feedback about a specific answer - * that they believe is wrong. + * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] + * method to send feedback about a specific answer that they believe is + * wrong. *
      * * Protobuf type {@code google.cloud.dialogflow.v2.AnswerRecord} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigOperationMetadata.java index 24e6c081c104..b512c823a422 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigOperationMetadata.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigOperationMetadata.java @@ -23,7 +23,8 @@ * * *
      - * Metadata for a [ConversationProfile.ClearSuggestionFeatureConfig][]
      + * Metadata for a
      + * [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig]
        * operation.
        * 
      * @@ -460,7 +461,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * Metadata for a [ConversationProfile.ClearSuggestionFeatureConfig][]
      +   * Metadata for a
      +   * [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig]
          * operation.
          * 
      * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigRequest.java index 18d12a0b71f6..5868de6f2bcb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ClearSuggestionFeatureConfigRequest.java @@ -23,7 +23,8 @@ * * *
      - * The request message for [ConversationProfiles.ClearFeature][].
      + * The request message for
      + * [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig].
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest} @@ -391,7 +392,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * The request message for [ConversationProfiles.ClearFeature][].
      +   * The request message for
      +   * [ConversationProfiles.ClearSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig].
          * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationDatasetOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationDatasetOperationMetadata.java index 8cfe73e6272e..7500e81810b5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationDatasetOperationMetadata.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationDatasetOperationMetadata.java @@ -23,7 +23,7 @@ * * *
      - * Metadata for [ConversationDatasets][CreateConversationDataset].
      + * Metadata for [CreateConversationDataset][].
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata} @@ -287,7 +287,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * Metadata for [ConversationDatasets][CreateConversationDataset].
      +   * Metadata for [CreateConversationDataset][].
          * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationDatasetOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationDatasetOperationMetadata.java index 66e15767983f..42f469a5d304 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationDatasetOperationMetadata.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationDatasetOperationMetadata.java @@ -23,7 +23,7 @@ * * *
      - * Metadata for [ConversationDatasets][DeleteConversationDataset].
      + * Metadata for [DeleteConversationDataset][].
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata} @@ -221,7 +221,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * Metadata for [ConversationDatasets][DeleteConversationDataset].
      +   * Metadata for [DeleteConversationDataset][].
          * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java index 2eb30b751ca5..a73560fc9ac5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java @@ -23,7 +23,7 @@ * * *
      - * The message returned from the DetectIntent method.
      + * The message returned from the [DetectIntent][] method.
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentResponse} @@ -508,7 +508,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * The message returned from the DetectIntent method.
      +   * The message returned from the [DetectIntent][] method.
          * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentResponse} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponse.java index d59b90287085..905a8ed58478 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponse.java @@ -1487,9 +1487,11 @@ public com.google.protobuf.ByteString getLatestMessageBytes() { * *
          * Number of messages prior to and including
      -   * [last_conversation_message][] used to compile the suggestion. It may be
      -   * smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
      -   * the request if there weren't that many messages in the conversation.
      +   * [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
      +   * used to compile the suggestion. It may be smaller than the
      +   * [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
      +   * field in the request if there weren't that many messages in the
      +   * conversation.
          * 
      * * int32 context_size = 3; @@ -2240,9 +2242,11 @@ public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
      -     * the request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; @@ -2258,9 +2262,11 @@ public int getContextSize() { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
      -     * the request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; @@ -2280,9 +2286,11 @@ public Builder setContextSize(int value) { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
      -     * the request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponseOrBuilder.java index 7714ae7977ee..47eeeddce4fa 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GenerateStatelessSummaryResponseOrBuilder.java @@ -94,9 +94,11 @@ public interface GenerateStatelessSummaryResponseOrBuilder * *
          * Number of messages prior to and including
      -   * [last_conversation_message][] used to compile the suggestion. It may be
      -   * smaller than the [GenerateStatelessSummaryRequest.context_size][] field in
      -   * the request if there weren't that many messages in the conversation.
      +   * [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message]
      +   * used to compile the suggestion. It may be smaller than the
      +   * [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size]
      +   * field in the request if there weren't that many messages in the
      +   * conversation.
          * 
      * * int32 context_size = 3; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java index df544186cbef..c493b820b413 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java @@ -255,7 +255,7 @@ public interface TrainingPhraseOrBuilder * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -267,7 +267,7 @@ public interface TrainingPhraseOrBuilder * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -1916,7 +1916,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getDefaultInsta * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -1939,7 +1939,7 @@ public java.lang.String getName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2677,7 +2677,7 @@ public Builder mergeFrom( * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -2699,7 +2699,7 @@ public java.lang.String getName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2721,7 +2721,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -2742,7 +2742,7 @@ public Builder setName(java.lang.String value) { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2759,7 +2759,7 @@ public Builder clearName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java index 5a66178fcd03..6ba9c483b42a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java @@ -217,7 +217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ialogflow/v2/context.proto\032#google/longr" + "unning/operations.proto\032\033google/protobuf" + "/empty.proto\032 google/protobuf/field_mask" - + ".proto\032\034google/protobuf/struct.proto\"\3278\n" + + ".proto\032\034google/protobuf/struct.proto\"\3348\n" + "\006Intent\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_na" + "me\030\002 \001(\tB\003\340A\002\022K\n\rwebhook_state\030\006 \001(\0162/.g" + "oogle.cloud.dialogflow.v2.Intent.Webhook" @@ -241,267 +241,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rent_followup_intent_name\030\021 \001(\t\022X\n\024follo" + "wup_intent_info\030\022 \003(\01325.google.cloud.dia" + "logflow.v2.Intent.FollowupIntentInfoB\003\340A" - + "\003\032\361\002\n\016TrainingPhrase\022\014\n\004name\030\001 \001(\t\022I\n\004ty" - + "pe\030\002 \001(\01626.google.cloud.dialogflow.v2.In" - + "tent.TrainingPhrase.TypeB\003\340A\002\022J\n\005parts\030\003" - + " \003(\01326.google.cloud.dialogflow.v2.Intent" - + ".TrainingPhrase.PartB\003\340A\002\022\036\n\021times_added" - + "_count\030\004 \001(\005B\003\340A\001\032]\n\004Part\022\014\n\004text\030\001 \001(\t\022" - + "\030\n\013entity_type\030\002 \001(\tB\003\340A\001\022\022\n\005alias\030\003 \001(\t" - + "B\003\340A\001\022\031\n\014user_defined\030\004 \001(\010B\003\340A\001\";\n\004Type" - + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010T" - + "EMPLATE\020\002\032\002\010\001\032\312\001\n\tParameter\022\014\n\004name\030\001 \001(" - + "\t\022\024\n\014display_name\030\002 \001(\t\022\022\n\005value\030\003 \001(\tB\003" - + "\340A\001\022\032\n\rdefault_value\030\004 \001(\tB\003\340A\001\022%\n\030entit" - + "y_type_display_name\030\005 \001(\tB\003\340A\001\022\026\n\tmandat" - + "ory\030\006 \001(\010B\003\340A\001\022\024\n\007prompts\030\007 \003(\tB\003\340A\001\022\024\n\007" - + "is_list\030\010 \001(\010B\003\340A\001\032\226*\n\007Message\022?\n\004text\030\001" - + " \001(\0132/.google.cloud.dialogflow.v2.Intent" - + ".Message.TextH\000\022A\n\005image\030\002 \001(\01320.google." - + "cloud.dialogflow.v2.Intent.Message.Image" - + "H\000\022P\n\rquick_replies\030\003 \001(\01327.google.cloud" - + ".dialogflow.v2.Intent.Message.QuickRepli" - + "esH\000\022?\n\004card\030\004 \001(\0132/.google.cloud.dialog" - + "flow.v2.Intent.Message.CardH\000\022*\n\007payload" - + "\030\005 \001(\0132\027.google.protobuf.StructH\000\022V\n\020sim" - + "ple_responses\030\007 \001(\0132:.google.cloud.dialo" - + "gflow.v2.Intent.Message.SimpleResponsesH" - + "\000\022J\n\nbasic_card\030\010 \001(\01324.google.cloud.dia" - + "logflow.v2.Intent.Message.BasicCardH\000\022M\n" - + "\013suggestions\030\t \001(\01326.google.cloud.dialog" - + "flow.v2.Intent.Message.SuggestionsH\000\022[\n\023" - + "link_out_suggestion\030\n \001(\0132<.google.cloud" - + ".dialogflow.v2.Intent.Message.LinkOutSug" - + "gestionH\000\022L\n\013list_select\030\013 \001(\01325.google." - + "cloud.dialogflow.v2.Intent.Message.ListS" - + "electH\000\022T\n\017carousel_select\030\014 \001(\01329.googl" - + "e.cloud.dialogflow.v2.Intent.Message.Car" - + "ouselSelectH\000\022]\n\024browse_carousel_card\030\026 " - + "\001(\0132=.google.cloud.dialogflow.v2.Intent." - + "Message.BrowseCarouselCardH\000\022J\n\ntable_ca" - + "rd\030\027 \001(\01324.google.cloud.dialogflow.v2.In" - + "tent.Message.TableCardH\000\022P\n\rmedia_conten" - + "t\030\030 \001(\01327.google.cloud.dialogflow.v2.Int" - + "ent.Message.MediaContentH\000\022J\n\010platform\030\006" - + " \001(\01623.google.cloud.dialogflow.v2.Intent" - + ".Message.PlatformB\003\340A\001\032\031\n\004Text\022\021\n\004text\030\001" - + " \003(\tB\003\340A\001\032@\n\005Image\022\026\n\timage_uri\030\001 \001(\tB\003\340" - + "A\001\022\037\n\022accessibility_text\030\002 \001(\tB\003\340A\001\032>\n\014Q" - + "uickReplies\022\022\n\005title\030\001 \001(\tB\003\340A\001\022\032\n\rquick" - + "_replies\030\002 \003(\tB\003\340A\001\032\313\001\n\004Card\022\022\n\005title\030\001 " - + "\001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\timage" - + "_uri\030\003 \001(\tB\003\340A\001\022L\n\007buttons\030\004 \003(\01326.googl" - + "e.cloud.dialogflow.v2.Intent.Message.Car" - + "d.ButtonB\003\340A\001\0322\n\006Button\022\021\n\004text\030\001 \001(\tB\003\340" - + "A\001\022\025\n\010postback\030\002 \001(\tB\003\340A\001\032Q\n\016SimpleRespo" - + "nse\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(" - + "\t\022\031\n\014display_text\030\003 \001(\tB\003\340A\001\032k\n\017SimpleRe" - + "sponses\022X\n\020simple_responses\030\001 \003(\01329.goog" - + "le.cloud.dialogflow.v2.Intent.Message.Si" - + "mpleResponseB\003\340A\002\032\210\003\n\tBasicCard\022\022\n\005title" - + "\030\001 \001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\016fo" - + "rmatted_text\030\003 \001(\t\022D\n\005image\030\004 \001(\01320.goog" - + "le.cloud.dialogflow.v2.Intent.Message.Im" - + "ageB\003\340A\001\022Q\n\007buttons\030\005 \003(\0132;.google.cloud" - + ".dialogflow.v2.Intent.Message.BasicCard." - + "ButtonB\003\340A\001\032\236\001\n\006Button\022\r\n\005title\030\001 \001(\t\022g\n" - + "\017open_uri_action\030\002 \001(\0132I.google.cloud.di" - + "alogflow.v2.Intent.Message.BasicCard.But" - + "ton.OpenUriActionB\003\340A\002\032\034\n\rOpenUriAction\022" - + "\013\n\003uri\030\001 \001(\t\032 \n\nSuggestion\022\022\n\005title\030\001 \001(" - + "\tB\003\340A\002\032^\n\013Suggestions\022O\n\013suggestions\030\001 \003" - + "(\01325.google.cloud.dialogflow.v2.Intent.M" - + "essage.SuggestionB\003\340A\002\032D\n\021LinkOutSuggest" - + "ion\022\035\n\020destination_name\030\001 \001(\tB\003\340A\002\022\020\n\003ur" - + "i\030\002 \001(\tB\003\340A\002\032\322\002\n\nListSelect\022\022\n\005title\030\001 \001" - + "(\tB\003\340A\001\022N\n\005items\030\002 \003(\0132:.google.cloud.di" - + "alogflow.v2.Intent.Message.ListSelect.It" - + "emB\003\340A\002\022\025\n\010subtitle\030\003 \001(\tB\003\340A\001\032\310\001\n\004Item\022" - + "L\n\004info\030\001 \001(\01329.google.cloud.dialogflow." - + "v2.Intent.Message.SelectItemInfoB\003\340A\002\022\022\n" - + "\005title\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003" - + "\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.dialog" - + "flow.v2.Intent.Message.ImageB\003\340A\001\032\257\002\n\016Ca" - + "rouselSelect\022R\n\005items\030\001 \003(\0132>.google.clo" - + "ud.dialogflow.v2.Intent.Message.Carousel" - + "Select.ItemB\003\340A\002\032\310\001\n\004Item\022L\n\004info\030\001 \001(\0132" - + "9.google.cloud.dialogflow.v2.Intent.Mess" - + "age.SelectItemInfoB\003\340A\002\022\022\n\005title\030\002 \001(\tB\003" - + "\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022D\n\005image\030\004" - + " \001(\01320.google.cloud.dialogflow.v2.Intent" - + ".Message.ImageB\003\340A\001\0329\n\016SelectItemInfo\022\020\n" - + "\003key\030\001 \001(\tB\003\340A\002\022\025\n\010synonyms\030\002 \003(\tB\003\340A\001\032\216" - + "\004\n\014MediaContent\022b\n\nmedia_type\030\001 \001(\0162I.go" + + "\003\032\366\002\n\016TrainingPhrase\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "I\n\004type\030\002 \001(\01626.google.cloud.dialogflow." + + "v2.Intent.TrainingPhrase.TypeB\003\340A\002\022J\n\005pa" + + "rts\030\003 \003(\01326.google.cloud.dialogflow.v2.I" + + "ntent.TrainingPhrase.PartB\003\340A\002\022\036\n\021times_" + + "added_count\030\004 \001(\005B\003\340A\001\032]\n\004Part\022\014\n\004text\030\001" + + " \001(\t\022\030\n\013entity_type\030\002 \001(\tB\003\340A\001\022\022\n\005alias\030" + + "\003 \001(\tB\003\340A\001\022\031\n\014user_defined\030\004 \001(\010B\003\340A\001\";\n" + + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001" + + "\022\020\n\010TEMPLATE\020\002\032\002\010\001\032\312\001\n\tParameter\022\014\n\004name" + + "\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\022\n\005value\030\003 " + + "\001(\tB\003\340A\001\022\032\n\rdefault_value\030\004 \001(\tB\003\340A\001\022%\n\030" + + "entity_type_display_name\030\005 \001(\tB\003\340A\001\022\026\n\tm" + + "andatory\030\006 \001(\010B\003\340A\001\022\024\n\007prompts\030\007 \003(\tB\003\340A" + + "\001\022\024\n\007is_list\030\010 \001(\010B\003\340A\001\032\226*\n\007Message\022?\n\004t" + + "ext\030\001 \001(\0132/.google.cloud.dialogflow.v2.I" + + "ntent.Message.TextH\000\022A\n\005image\030\002 \001(\01320.go" + "ogle.cloud.dialogflow.v2.Intent.Message." - + "MediaContent.ResponseMediaTypeB\003\340A\001\022b\n\rm" - + "edia_objects\030\002 \003(\0132K.google.cloud.dialog" - + "flow.v2.Intent.Message.MediaContent.Resp" - + "onseMediaObject\032\360\001\n\023ResponseMediaObject\022" - + "\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 \001(\tB\003\340A\001\022" - + "L\n\013large_image\030\003 \001(\01320.google.cloud.dial" - + "ogflow.v2.Intent.Message.ImageB\003\340A\001H\000\022E\n" - + "\004icon\030\004 \001(\01320.google.cloud.dialogflow.v2" - + ".Intent.Message.ImageB\003\340A\001H\000\022\023\n\013content_" - + "url\030\005 \001(\tB\007\n\005image\"C\n\021ResponseMediaType\022" - + "#\n\037RESPONSE_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n\005" - + "AUDIO\020\001\032\377\006\n\022BrowseCarouselCard\022c\n\005items\030" - + "\001 \003(\0132T.google.cloud.dialogflow.v2.Inten" - + "t.Message.BrowseCarouselCard.BrowseCarou" - + "selCardItem\022u\n\025image_display_options\030\002 \001" - + "(\0162Q.google.cloud.dialogflow.v2.Intent.M" - + "essage.BrowseCarouselCard.ImageDisplayOp" - + "tionsB\003\340A\001\032\224\004\n\026BrowseCarouselCardItem\022{\n" - + "\017open_uri_action\030\001 \001(\0132b.google.cloud.di" - + "alogflow.v2.Intent.Message.BrowseCarouse" - + "lCard.BrowseCarouselCardItem.OpenUrlActi" - + "on\022\r\n\005title\030\002 \001(\t\022\030\n\013description\030\003 \001(\tB\003" - + "\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.dialog" - + "flow.v2.Intent.Message.ImageB\003\340A\001\022\023\n\006foo" - + "ter\030\005 \001(\tB\003\340A\001\032\370\001\n\rOpenUrlAction\022\013\n\003url\030" - + "\001 \001(\t\022\212\001\n\rurl_type_hint\030\003 \001(\0162n.google.c" - + "loud.dialogflow.v2.Intent.Message.Browse" - + "CarouselCard.BrowseCarouselCardItem.Open" - + "UrlAction.UrlTypeHintB\003\340A\001\"M\n\013UrlTypeHin" - + "t\022\035\n\031URL_TYPE_HINT_UNSPECIFIED\020\000\022\016\n\nAMP_" - + "ACTION\020\001\022\017\n\013AMP_CONTENT\020\002\"v\n\023ImageDispla" - + "yOptions\022%\n!IMAGE_DISPLAY_OPTIONS_UNSPEC" - + "IFIED\020\000\022\010\n\004GRAY\020\001\022\t\n\005WHITE\020\002\022\013\n\007CROPPED\020" - + "\003\022\026\n\022BLURRED_BACKGROUND\020\004\032\363\002\n\tTableCard\022" - + "\r\n\005title\030\001 \001(\t\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022D\n" - + "\005image\030\003 \001(\01320.google.cloud.dialogflow.v" - + "2.Intent.Message.ImageB\003\340A\001\022[\n\021column_pr" - + "operties\030\004 \003(\0132;.google.cloud.dialogflow" - + ".v2.Intent.Message.ColumnPropertiesB\003\340A\001" - + "\022J\n\004rows\030\005 \003(\01327.google.cloud.dialogflow" - + ".v2.Intent.Message.TableCardRowB\003\340A\001\022Q\n\007" - + "buttons\030\006 \003(\0132;.google.cloud.dialogflow." - + "v2.Intent.Message.BasicCard.ButtonB\003\340A\001\032" - + "\372\001\n\020ColumnProperties\022\016\n\006header\030\001 \001(\t\022r\n\024" - + "horizontal_alignment\030\002 \001(\0162O.google.clou" - + "d.dialogflow.v2.Intent.Message.ColumnPro" - + "perties.HorizontalAlignmentB\003\340A\001\"b\n\023Hori" - + "zontalAlignment\022$\n HORIZONTAL_ALIGNMENT_" - + "UNSPECIFIED\020\000\022\013\n\007LEADING\020\001\022\n\n\006CENTER\020\002\022\014" - + "\n\010TRAILING\020\003\032x\n\014TableCardRow\022L\n\005cells\030\001 " - + "\003(\01328.google.cloud.dialogflow.v2.Intent." - + "Message.TableCardCellB\003\340A\001\022\032\n\rdivider_af" - + "ter\030\002 \001(\010B\003\340A\001\032\035\n\rTableCardCell\022\014\n\004text\030" - + "\001 \001(\t\"\240\001\n\010Platform\022\030\n\024PLATFORM_UNSPECIFI" - + "ED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TELEGRA" - + "M\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t\n\005VIB" - + "ER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\023\n\017GOOGLE_HA" - + "NGOUTS\020\013B\t\n\007message\032W\n\022FollowupIntentInf" - + "o\022\034\n\024followup_intent_name\030\001 \001(\t\022#\n\033paren" - + "t_followup_intent_name\030\002 \001(\t\"t\n\014WebhookS" - + "tate\022\035\n\031WEBHOOK_STATE_UNSPECIFIED\020\000\022\031\n\025W" - + "EBHOOK_STATE_ENABLED\020\001\022*\n&WEBHOOK_STATE_" - + "ENABLED_FOR_SLOT_FILLING\020\002:\221\001\352A\215\001\n dialo" - + "gflow.googleapis.com/Intent\022)projects/{p" - + "roject}/agent/intents/{intent}\022>projects" - + "/{project}/locations/{location}/agent/in" - + "tents/{intent}\"\335\001\n\022ListIntentsRequest\0228\n" - + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.google" - + "apis.com/Intent\022\032\n\rlanguage_code\030\002 \001(\tB\003" - + "\340A\001\022@\n\013intent_view\030\003 \001(\0162&.google.cloud." - + "dialogflow.v2.IntentViewB\003\340A\001\022\026\n\tpage_si" - + "ze\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"c" - + "\n\023ListIntentsResponse\0223\n\007intents\030\001 \003(\0132\"" - + ".google.cloud.dialogflow.v2.Intent\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\250\001\n\020GetIntentRequest" + + "ImageH\000\022P\n\rquick_replies\030\003 \001(\01327.google." + + "cloud.dialogflow.v2.Intent.Message.Quick" + + "RepliesH\000\022?\n\004card\030\004 \001(\0132/.google.cloud.d" + + "ialogflow.v2.Intent.Message.CardH\000\022*\n\007pa" + + "yload\030\005 \001(\0132\027.google.protobuf.StructH\000\022V" + + "\n\020simple_responses\030\007 \001(\0132:.google.cloud." + + "dialogflow.v2.Intent.Message.SimpleRespo" + + "nsesH\000\022J\n\nbasic_card\030\010 \001(\01324.google.clou" + + "d.dialogflow.v2.Intent.Message.BasicCard" + + "H\000\022M\n\013suggestions\030\t \001(\01326.google.cloud.d" + + "ialogflow.v2.Intent.Message.SuggestionsH" + + "\000\022[\n\023link_out_suggestion\030\n \001(\0132<.google." + + "cloud.dialogflow.v2.Intent.Message.LinkO" + + "utSuggestionH\000\022L\n\013list_select\030\013 \001(\01325.go" + + "ogle.cloud.dialogflow.v2.Intent.Message." + + "ListSelectH\000\022T\n\017carousel_select\030\014 \001(\01329." + + "google.cloud.dialogflow.v2.Intent.Messag" + + "e.CarouselSelectH\000\022]\n\024browse_carousel_ca" + + "rd\030\026 \001(\0132=.google.cloud.dialogflow.v2.In" + + "tent.Message.BrowseCarouselCardH\000\022J\n\ntab" + + "le_card\030\027 \001(\01324.google.cloud.dialogflow." + + "v2.Intent.Message.TableCardH\000\022P\n\rmedia_c" + + "ontent\030\030 \001(\01327.google.cloud.dialogflow.v" + + "2.Intent.Message.MediaContentH\000\022J\n\010platf" + + "orm\030\006 \001(\01623.google.cloud.dialogflow.v2.I" + + "ntent.Message.PlatformB\003\340A\001\032\031\n\004Text\022\021\n\004t" + + "ext\030\001 \003(\tB\003\340A\001\032@\n\005Image\022\026\n\timage_uri\030\001 \001" + + "(\tB\003\340A\001\022\037\n\022accessibility_text\030\002 \001(\tB\003\340A\001" + + "\032>\n\014QuickReplies\022\022\n\005title\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "quick_replies\030\002 \003(\tB\003\340A\001\032\313\001\n\004Card\022\022\n\005tit" + + "le\030\001 \001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022\026\n\t" + + "image_uri\030\003 \001(\tB\003\340A\001\022L\n\007buttons\030\004 \003(\01326." + + "google.cloud.dialogflow.v2.Intent.Messag" + + "e.Card.ButtonB\003\340A\001\0322\n\006Button\022\021\n\004text\030\001 \001" + + "(\tB\003\340A\001\022\025\n\010postback\030\002 \001(\tB\003\340A\001\032Q\n\016Simple" + + "Response\022\026\n\016text_to_speech\030\001 \001(\t\022\014\n\004ssml" + + "\030\002 \001(\t\022\031\n\014display_text\030\003 \001(\tB\003\340A\001\032k\n\017Sim" + + "pleResponses\022X\n\020simple_responses\030\001 \003(\01329" + + ".google.cloud.dialogflow.v2.Intent.Messa" + + "ge.SimpleResponseB\003\340A\002\032\210\003\n\tBasicCard\022\022\n\005" + + "title\030\001 \001(\tB\003\340A\001\022\025\n\010subtitle\030\002 \001(\tB\003\340A\001\022" + + "\026\n\016formatted_text\030\003 \001(\t\022D\n\005image\030\004 \001(\01320" + + ".google.cloud.dialogflow.v2.Intent.Messa" + + "ge.ImageB\003\340A\001\022Q\n\007buttons\030\005 \003(\0132;.google." + + "cloud.dialogflow.v2.Intent.Message.Basic" + + "Card.ButtonB\003\340A\001\032\236\001\n\006Button\022\r\n\005title\030\001 \001" + + "(\t\022g\n\017open_uri_action\030\002 \001(\0132I.google.clo" + + "ud.dialogflow.v2.Intent.Message.BasicCar" + + "d.Button.OpenUriActionB\003\340A\002\032\034\n\rOpenUriAc" + + "tion\022\013\n\003uri\030\001 \001(\t\032 \n\nSuggestion\022\022\n\005title" + + "\030\001 \001(\tB\003\340A\002\032^\n\013Suggestions\022O\n\013suggestion" + + "s\030\001 \003(\01325.google.cloud.dialogflow.v2.Int" + + "ent.Message.SuggestionB\003\340A\002\032D\n\021LinkOutSu" + + "ggestion\022\035\n\020destination_name\030\001 \001(\tB\003\340A\002\022" + + "\020\n\003uri\030\002 \001(\tB\003\340A\002\032\322\002\n\nListSelect\022\022\n\005titl" + + "e\030\001 \001(\tB\003\340A\001\022N\n\005items\030\002 \003(\0132:.google.clo" + + "ud.dialogflow.v2.Intent.Message.ListSele" + + "ct.ItemB\003\340A\002\022\025\n\010subtitle\030\003 \001(\tB\003\340A\001\032\310\001\n\004" + + "Item\022L\n\004info\030\001 \001(\01329.google.cloud.dialog" + + "flow.v2.Intent.Message.SelectItemInfoB\003\340" + + "A\002\022\022\n\005title\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 " + + "\001(\tB\003\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.d" + + "ialogflow.v2.Intent.Message.ImageB\003\340A\001\032\257" + + "\002\n\016CarouselSelect\022R\n\005items\030\001 \003(\0132>.googl" + + "e.cloud.dialogflow.v2.Intent.Message.Car" + + "ouselSelect.ItemB\003\340A\002\032\310\001\n\004Item\022L\n\004info\030\001" + + " \001(\01329.google.cloud.dialogflow.v2.Intent" + + ".Message.SelectItemInfoB\003\340A\002\022\022\n\005title\030\002 " + + "\001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022D\n\005im" + + "age\030\004 \001(\01320.google.cloud.dialogflow.v2.I" + + "ntent.Message.ImageB\003\340A\001\0329\n\016SelectItemIn" + + "fo\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\025\n\010synonyms\030\002 \003(\tB\003" + + "\340A\001\032\216\004\n\014MediaContent\022b\n\nmedia_type\030\001 \001(\016" + + "2I.google.cloud.dialogflow.v2.Intent.Mes" + + "sage.MediaContent.ResponseMediaTypeB\003\340A\001" + + "\022b\n\rmedia_objects\030\002 \003(\0132K.google.cloud.d" + + "ialogflow.v2.Intent.Message.MediaContent" + + ".ResponseMediaObject\032\360\001\n\023ResponseMediaOb" + + "ject\022\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 \001(\tB" + + "\003\340A\001\022L\n\013large_image\030\003 \001(\01320.google.cloud" + + ".dialogflow.v2.Intent.Message.ImageB\003\340A\001" + + "H\000\022E\n\004icon\030\004 \001(\01320.google.cloud.dialogfl" + + "ow.v2.Intent.Message.ImageB\003\340A\001H\000\022\023\n\013con" + + "tent_url\030\005 \001(\tB\007\n\005image\"C\n\021ResponseMedia" + + "Type\022#\n\037RESPONSE_MEDIA_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005AUDIO\020\001\032\377\006\n\022BrowseCarouselCard\022c\n\005i" + + "tems\030\001 \003(\0132T.google.cloud.dialogflow.v2." + + "Intent.Message.BrowseCarouselCard.Browse" + + "CarouselCardItem\022u\n\025image_display_option" + + "s\030\002 \001(\0162Q.google.cloud.dialogflow.v2.Int" + + "ent.Message.BrowseCarouselCard.ImageDisp" + + "layOptionsB\003\340A\001\032\224\004\n\026BrowseCarouselCardIt" + + "em\022{\n\017open_uri_action\030\001 \001(\0132b.google.clo" + + "ud.dialogflow.v2.Intent.Message.BrowseCa" + + "rouselCard.BrowseCarouselCardItem.OpenUr" + + "lAction\022\r\n\005title\030\002 \001(\t\022\030\n\013description\030\003 " + + "\001(\tB\003\340A\001\022D\n\005image\030\004 \001(\01320.google.cloud.d" + + "ialogflow.v2.Intent.Message.ImageB\003\340A\001\022\023" + + "\n\006footer\030\005 \001(\tB\003\340A\001\032\370\001\n\rOpenUrlAction\022\013\n" + + "\003url\030\001 \001(\t\022\212\001\n\rurl_type_hint\030\003 \001(\0162n.goo" + + "gle.cloud.dialogflow.v2.Intent.Message.B" + + "rowseCarouselCard.BrowseCarouselCardItem" + + ".OpenUrlAction.UrlTypeHintB\003\340A\001\"M\n\013UrlTy" + + "peHint\022\035\n\031URL_TYPE_HINT_UNSPECIFIED\020\000\022\016\n" + + "\nAMP_ACTION\020\001\022\017\n\013AMP_CONTENT\020\002\"v\n\023ImageD" + + "isplayOptions\022%\n!IMAGE_DISPLAY_OPTIONS_U" + + "NSPECIFIED\020\000\022\010\n\004GRAY\020\001\022\t\n\005WHITE\020\002\022\013\n\007CRO" + + "PPED\020\003\022\026\n\022BLURRED_BACKGROUND\020\004\032\363\002\n\tTable" + + "Card\022\r\n\005title\030\001 \001(\t\022\025\n\010subtitle\030\002 \001(\tB\003\340" + + "A\001\022D\n\005image\030\003 \001(\01320.google.cloud.dialogf" + + "low.v2.Intent.Message.ImageB\003\340A\001\022[\n\021colu" + + "mn_properties\030\004 \003(\0132;.google.cloud.dialo" + + "gflow.v2.Intent.Message.ColumnProperties" + + "B\003\340A\001\022J\n\004rows\030\005 \003(\01327.google.cloud.dialo" + + "gflow.v2.Intent.Message.TableCardRowB\003\340A" + + "\001\022Q\n\007buttons\030\006 \003(\0132;.google.cloud.dialog" + + "flow.v2.Intent.Message.BasicCard.ButtonB" + + "\003\340A\001\032\372\001\n\020ColumnProperties\022\016\n\006header\030\001 \001(" + + "\t\022r\n\024horizontal_alignment\030\002 \001(\0162O.google" + + ".cloud.dialogflow.v2.Intent.Message.Colu" + + "mnProperties.HorizontalAlignmentB\003\340A\001\"b\n" + + "\023HorizontalAlignment\022$\n HORIZONTAL_ALIGN" + + "MENT_UNSPECIFIED\020\000\022\013\n\007LEADING\020\001\022\n\n\006CENTE" + + "R\020\002\022\014\n\010TRAILING\020\003\032x\n\014TableCardRow\022L\n\005cel" + + "ls\030\001 \003(\01328.google.cloud.dialogflow.v2.In" + + "tent.Message.TableCardCellB\003\340A\001\022\032\n\rdivid" + + "er_after\030\002 \001(\010B\003\340A\001\032\035\n\rTableCardCell\022\014\n\004" + + "text\030\001 \001(\t\"\240\001\n\010Platform\022\030\n\024PLATFORM_UNSP" + + "ECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010TE" + + "LEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006\022\t" + + "\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\023\n\017GOOG" + + "LE_HANGOUTS\020\013B\t\n\007message\032W\n\022FollowupInte" + + "ntInfo\022\034\n\024followup_intent_name\030\001 \001(\t\022#\n\033" + + "parent_followup_intent_name\030\002 \001(\t\"t\n\014Web" + + "hookState\022\035\n\031WEBHOOK_STATE_UNSPECIFIED\020\000" + + "\022\031\n\025WEBHOOK_STATE_ENABLED\020\001\022*\n&WEBHOOK_S" + + "TATE_ENABLED_FOR_SLOT_FILLING\020\002:\221\001\352A\215\001\n " + + "dialogflow.googleapis.com/Intent\022)projec" + + "ts/{project}/agent/intents/{intent}\022>pro" + + "jects/{project}/locations/{location}/age" + + "nt/intents/{intent}\"\335\001\n\022ListIntentsReque" + + "st\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.g" + + "oogleapis.com/Intent\022\032\n\rlanguage_code\030\002 " + + "\001(\tB\003\340A\001\022@\n\013intent_view\030\003 \001(\0162&.google.c" + + "loud.dialogflow.v2.IntentViewB\003\340A\001\022\026\n\tpa" + + "ge_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003" + + "\340A\001\"c\n\023ListIntentsResponse\0223\n\007intents\030\001 " + + "\003(\0132\".google.cloud.dialogflow.v2.Intent\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\250\001\n\020GetIntentRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dialogflow." + + "googleapis.com/Intent\022\032\n\rlanguage_code\030\002" + + " \001(\tB\003\340A\001\022@\n\013intent_view\030\003 \001(\0162&.google." + + "cloud.dialogflow.v2.IntentViewB\003\340A\001\"\346\001\n\023" + + "CreateIntentRequest\0228\n\006parent\030\001 \001(\tB(\340A\002" + + "\372A\"\022 dialogflow.googleapis.com/Intent\0227\n" + + "\006intent\030\002 \001(\0132\".google.cloud.dialogflow." + + "v2.IntentB\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\tB\003\340" + + "A\001\022@\n\013intent_view\030\004 \001(\0162&.google.cloud.d" + + "ialogflow.v2.IntentViewB\003\340A\001\"\342\001\n\023UpdateI" + + "ntentRequest\0227\n\006intent\030\001 \001(\0132\".google.cl" + + "oud.dialogflow.v2.IntentB\003\340A\002\022\032\n\rlanguag" + + "e_code\030\002 \001(\tB\003\340A\001\0224\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\001\022@\n\013inten" + + "t_view\030\004 \001(\0162&.google.cloud.dialogflow.v" + + "2.IntentViewB\003\340A\001\"M\n\023DeleteIntentRequest" + "\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googl" - + "eapis.com/Intent\022\032\n\rlanguage_code\030\002 \001(\tB" - + "\003\340A\001\022@\n\013intent_view\030\003 \001(\0162&.google.cloud" - + ".dialogflow.v2.IntentViewB\003\340A\001\"\346\001\n\023Creat" - + "eIntentRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " - + "dialogflow.googleapis.com/Intent\0227\n\006inte" - + "nt\030\002 \001(\0132\".google.cloud.dialogflow.v2.In" - + "tentB\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\001\022@\n" - + "\013intent_view\030\004 \001(\0162&.google.cloud.dialog" - + "flow.v2.IntentViewB\003\340A\001\"\342\001\n\023UpdateIntent" - + "Request\0227\n\006intent\030\001 \001(\0132\".google.cloud.d" - + "ialogflow.v2.IntentB\003\340A\002\022\032\n\rlanguage_cod" - + "e\030\002 \001(\tB\003\340A\001\0224\n\013update_mask\030\003 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\001\022@\n\013intent_vie" - + "w\030\004 \001(\0162&.google.cloud.dialogflow.v2.Int" - + "entViewB\003\340A\001\"M\n\023DeleteIntentRequest\0226\n\004n" - + "ame\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googleapis" - + ".com/Intent\"\335\002\n\031BatchUpdateIntentsReques" + + "eapis.com/Intent\"\335\002\n\031BatchUpdateIntentsR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogfl" + + "ow.googleapis.com/Intent\022\032\n\020intent_batch" + + "_uri\030\002 \001(\tH\000\022F\n\023intent_batch_inline\030\003 \001(" + + "\0132\'.google.cloud.dialogflow.v2.IntentBat" + + "chH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\001\0224\n\013upda" + + "te_mask\030\005 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\001\022@\n\013intent_view\030\006 \001(\0162&.google.clo" + + "ud.dialogflow.v2.IntentViewB\003\340A\001B\016\n\014inte" + + "nt_batch\"Q\n\032BatchUpdateIntentsResponse\0223" + + "\n\007intents\030\001 \003(\0132\".google.cloud.dialogflo" + + "w.v2.Intent\"\217\001\n\031BatchDeleteIntentsReques" + "t\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.go" - + "ogleapis.com/Intent\022\032\n\020intent_batch_uri\030" - + "\002 \001(\tH\000\022F\n\023intent_batch_inline\030\003 \001(\0132\'.g" - + "oogle.cloud.dialogflow.v2.IntentBatchH\000\022" - + "\032\n\rlanguage_code\030\004 \001(\tB\003\340A\001\0224\n\013update_ma" - + "sk\030\005 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\001\022@\n\013intent_view\030\006 \001(\0162&.google.cloud.di" - + "alogflow.v2.IntentViewB\003\340A\001B\016\n\014intent_ba" - + "tch\"Q\n\032BatchUpdateIntentsResponse\0223\n\007int" - + "ents\030\001 \003(\0132\".google.cloud.dialogflow.v2." - + "Intent\"\217\001\n\031BatchDeleteIntentsRequest\0228\n\006" - + "parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.googlea" - + "pis.com/Intent\0228\n\007intents\030\002 \003(\0132\".google" - + ".cloud.dialogflow.v2.IntentB\003\340A\002\"B\n\013Inte" - + "ntBatch\0223\n\007intents\030\001 \003(\0132\".google.cloud." - + "dialogflow.v2.Intent*?\n\nIntentView\022\033\n\027IN" - + "TENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_F" - + "ULL\020\0012\363\020\n\007Intents\022\360\002\n\013ListIntents\022..goog" - + "le.cloud.dialogflow.v2.ListIntentsReques" - + "t\032/.google.cloud.dialogflow.v2.ListInten" - + "tsResponse\"\377\001\332A\006parent\332A\024parent,language" - + "_code\202\323\344\223\002\330\001\022%/v2/{parent=projects/*/age" - + "nt}/intentsZ3\0221/v2/{parent=projects/*/lo" - + "cations/*/agent}/intentsZ6\0224/v2/{parent=" - + "projects/*/agent/environments/*}/intents" - + "ZB\022@/v2/{parent=projects/*/locations/*/a" - + "gent/environments/*}/intents\022\335\001\n\tGetInte" - + "nt\022,.google.cloud.dialogflow.v2.GetInten" - + "tRequest\032\".google.cloud.dialogflow.v2.In" - + "tent\"~\332A\004name\332A\022name,language_code\202\323\344\223\002\\" - + "\022%/v2/{name=projects/*/agent/intents/*}Z" - + "3\0221/v2/{name=projects/*/locations/*/agen" - + "t/intents/*}\022\206\002\n\014CreateIntent\022/.google.c" - + "loud.dialogflow.v2.CreateIntentRequest\032\"" - + ".google.cloud.dialogflow.v2.Intent\"\240\001\332A\r" - + "parent,intent\332A\033parent,intent,language_c" - + "ode\202\323\344\223\002l\"%/v2/{parent=projects/*/agent}" - + "/intents:\006intentZ;\"1/v2/{parent=projects" - + "/*/locations/*/agent}/intents:\006intent\022\240\002" - + "\n\014UpdateIntent\022/.google.cloud.dialogflow" - + ".v2.UpdateIntentRequest\032\".google.cloud.d" - + "ialogflow.v2.Intent\"\272\001\332A\024intent,language" - + "_code\332A intent,language_code,update_mask" - + "\202\323\344\223\002z2,/v2/{intent.name=projects/*/agen" - + "t/intents/*}:\006intentZB28/v2/{intent.name" - + "=projects/*/locations/*/agent/intents/*}" - + ":\006intent\022\302\001\n\014DeleteIntent\022/.google.cloud" - + ".dialogflow.v2.DeleteIntentRequest\032\026.goo" - + "gle.protobuf.Empty\"i\332A\004name\202\323\344\223\002\\*%/v2/{" - + "name=projects/*/agent/intents/*}Z3*1/v2/" - + "{name=projects/*/locations/*/agent/inten" - + "ts/*}\022\366\002\n\022BatchUpdateIntents\0225.google.cl" - + "oud.dialogflow.v2.BatchUpdateIntentsRequ" - + "est\032\035.google.longrunning.Operation\"\211\002\312AO" - + "\n5google.cloud.dialogflow.v2.BatchUpdate" - + "IntentsResponse\022\026google.protobuf.Struct\332" - + "A\027parent,intent_batch_uri\332A\032parent,inten" - + "t_batch_inline\202\323\344\223\002z\"1/v2/{parent=projec" - + "ts/*/agent}/intents:batchUpdate:\001*ZB\"=/v" - + "2/{parent=projects/*/locations/*/agent}/" - + "intents:batchUpdate:\001*\022\260\002\n\022BatchDeleteIn" - + "tents\0225.google.cloud.dialogflow.v2.Batch" - + "DeleteIntentsRequest\032\035.google.longrunnin" - + "g.Operation\"\303\001\312A/\n\025google.protobuf.Empty" - + "\022\026google.protobuf.Struct\332A\016parent,intent" - + "s\202\323\344\223\002z\"1/v2/{parent=projects/*/agent}/i" - + "ntents:batchDelete:\001*ZB\"=/v2/{parent=pro" - + "jects/*/locations/*/agent}/intents:batch" - + "Delete:\001*\032x\312A\031dialogflow.googleapis.com\322" - + "AYhttps://www.googleapis.com/auth/cloud-" - + "platform,https://www.googleapis.com/auth" - + "/dialogflowB\221\001\n\036com.google.cloud.dialogf" - + "low.v2B\013IntentProtoP\001Z>cloud.google.com/" - + "go/dialogflow/apiv2/dialogflowpb;dialogf" - + "lowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b" - + "\006proto3" + + "ogleapis.com/Intent\0228\n\007intents\030\002 \003(\0132\".g" + + "oogle.cloud.dialogflow.v2.IntentB\003\340A\002\"B\n" + + "\013IntentBatch\0223\n\007intents\030\001 \003(\0132\".google.c" + + "loud.dialogflow.v2.Intent*?\n\nIntentView\022" + + "\033\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_V" + + "IEW_FULL\020\0012\363\020\n\007Intents\022\360\002\n\013ListIntents\022." + + ".google.cloud.dialogflow.v2.ListIntentsR" + + "equest\032/.google.cloud.dialogflow.v2.List" + + "IntentsResponse\"\377\001\332A\006parent\332A\024parent,lan" + + "guage_code\202\323\344\223\002\330\001\022%/v2/{parent=projects/" + + "*/agent}/intentsZ3\0221/v2/{parent=projects" + + "/*/locations/*/agent}/intentsZ6\0224/v2/{pa" + + "rent=projects/*/agent/environments/*}/in" + + "tentsZB\022@/v2/{parent=projects/*/location" + + "s/*/agent/environments/*}/intents\022\335\001\n\tGe" + + "tIntent\022,.google.cloud.dialogflow.v2.Get" + + "IntentRequest\032\".google.cloud.dialogflow." + + "v2.Intent\"~\332A\004name\332A\022name,language_code\202" + + "\323\344\223\002\\\022%/v2/{name=projects/*/agent/intent" + + "s/*}Z3\0221/v2/{name=projects/*/locations/*" + + "/agent/intents/*}\022\206\002\n\014CreateIntent\022/.goo" + + "gle.cloud.dialogflow.v2.CreateIntentRequ" + + "est\032\".google.cloud.dialogflow.v2.Intent\"" + + "\240\001\332A\rparent,intent\332A\033parent,intent,langu" + + "age_code\202\323\344\223\002l\"%/v2/{parent=projects/*/a" + + "gent}/intents:\006intentZ;\"1/v2/{parent=pro" + + "jects/*/locations/*/agent}/intents:\006inte" + + "nt\022\240\002\n\014UpdateIntent\022/.google.cloud.dialo" + + "gflow.v2.UpdateIntentRequest\032\".google.cl" + + "oud.dialogflow.v2.Intent\"\272\001\332A\024intent,lan" + + "guage_code\332A intent,language_code,update" + + "_mask\202\323\344\223\002z2,/v2/{intent.name=projects/*" + + "/agent/intents/*}:\006intentZB28/v2/{intent" + + ".name=projects/*/locations/*/agent/inten" + + "ts/*}:\006intent\022\302\001\n\014DeleteIntent\022/.google." + + "cloud.dialogflow.v2.DeleteIntentRequest\032" + + "\026.google.protobuf.Empty\"i\332A\004name\202\323\344\223\002\\*%" + + "/v2/{name=projects/*/agent/intents/*}Z3*" + + "1/v2/{name=projects/*/locations/*/agent/" + + "intents/*}\022\366\002\n\022BatchUpdateIntents\0225.goog" + + "le.cloud.dialogflow.v2.BatchUpdateIntent" + + "sRequest\032\035.google.longrunning.Operation\"" + + "\211\002\312AO\n5google.cloud.dialogflow.v2.BatchU" + + "pdateIntentsResponse\022\026google.protobuf.St" + + "ruct\332A\027parent,intent_batch_uri\332A\032parent," + + "intent_batch_inline\202\323\344\223\002z\"1/v2/{parent=p" + + "rojects/*/agent}/intents:batchUpdate:\001*Z" + + "B\"=/v2/{parent=projects/*/locations/*/ag" + + "ent}/intents:batchUpdate:\001*\022\260\002\n\022BatchDel" + + "eteIntents\0225.google.cloud.dialogflow.v2." + + "BatchDeleteIntentsRequest\032\035.google.longr" + + "unning.Operation\"\303\001\312A/\n\025google.protobuf." + + "Empty\022\026google.protobuf.Struct\332A\016parent,i" + + "ntents\202\323\344\223\002z\"1/v2/{parent=projects/*/age" + + "nt}/intents:batchDelete:\001*ZB\"=/v2/{paren" + + "t=projects/*/locations/*/agent}/intents:" + + "batchDelete:\001*\032x\312A\031dialogflow.googleapis" + + ".com\322AYhttps://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/dialogflowB\221\001\n\036com.google.cloud.di" + + "alogflow.v2B\013IntentProtoP\001Z>cloud.google" + + ".com/go/dialogflow/apiv2/dialogflowpb;di" + + "alogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflo" + + "w.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequest.java index a22ddcf2c5b9..d65893dba244 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequest.java @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getParentBytes() { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The filter. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getFilter() { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The bytes for filter. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The filter. */ @java.lang.Deprecated @@ -855,7 +855,7 @@ public java.lang.String getFilter() { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The bytes for filter. */ @java.lang.Deprecated @@ -885,7 +885,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @param value The filter to set. * @return This builder for chaining. */ @@ -914,7 +914,7 @@ public Builder setFilter(java.lang.String value) { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return This builder for chaining. */ @java.lang.Deprecated @@ -939,7 +939,7 @@ public Builder clearFilter() { * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @param value The bytes for filter to set. * @return This builder for chaining. */ diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequestOrBuilder.java index f174e333d67b..204c7d41fb44 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface ListAnswerRecordsRequestOrBuilder * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The filter. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListAnswerRecordsRequestOrBuilder * string filter = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dialogflow.v2.ListAnswerRecordsRequest.filter is deprecated. See - * google/cloud/dialogflow/v2/answer_record.proto;l=141 + * google/cloud/dialogflow/v2/answer_record.proto;l=142 * @return The bytes for filter. */ @java.lang.Deprecated diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java index ae13b546e60a..249799efc8b8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java @@ -430,9 +430,9 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -485,9 +485,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1537,9 +1537,9 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1592,9 +1592,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1647,9 +1647,9 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1701,9 +1701,9 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1751,9 +1751,9 @@ public Builder clearObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java index c767dc1af3a2..4731ea8fe39b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java @@ -129,9 +129,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -173,9 +173,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java index f6059b129853..dce38be3002e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java @@ -206,8 +206,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * was not set. * * This field is not guaranteed to be accurate or set. In particular this - * field isn't set for StreamingDetectIntent since the streaming endpoint has - * separate confidence estimates per portion of the audio in + * field isn't set for [StreamingDetectIntent][] since the streaming endpoint + * has separate confidence estimates per portion of the audio in * StreamingRecognitionResult. *
      * @@ -2050,8 +2050,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * was not set. * * This field is not guaranteed to be accurate or set. In particular this - * field isn't set for StreamingDetectIntent since the streaming endpoint has - * separate confidence estimates per portion of the audio in + * field isn't set for [StreamingDetectIntent][] since the streaming endpoint + * has separate confidence estimates per portion of the audio in * StreamingRecognitionResult. *
      * @@ -2073,8 +2073,8 @@ public float getSpeechRecognitionConfidence() { * was not set. * * This field is not guaranteed to be accurate or set. In particular this - * field isn't set for StreamingDetectIntent since the streaming endpoint has - * separate confidence estimates per portion of the audio in + * field isn't set for [StreamingDetectIntent][] since the streaming endpoint + * has separate confidence estimates per portion of the audio in * StreamingRecognitionResult. *
      * @@ -2100,8 +2100,8 @@ public Builder setSpeechRecognitionConfidence(float value) { * was not set. * * This field is not guaranteed to be accurate or set. In particular this - * field isn't set for StreamingDetectIntent since the streaming endpoint has - * separate confidence estimates per portion of the audio in + * field isn't set for [StreamingDetectIntent][] since the streaming endpoint + * has separate confidence estimates per portion of the audio in * StreamingRecognitionResult. *
      * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java index d89124f6f2f4..c66e4abc3598 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java @@ -106,8 +106,8 @@ public interface QueryResultOrBuilder * was not set. * * This field is not guaranteed to be accurate or set. In particular this - * field isn't set for StreamingDetectIntent since the streaming endpoint has - * separate confidence estimates per portion of the audio in + * field isn't set for [StreamingDetectIntent][] since the streaming endpoint + * has separate confidence estimates per portion of the audio in * StreamingRecognitionResult. *
      * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java index c966e43b821c..a3e546215a42 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java @@ -26,9 +26,9 @@ * The result of sentiment analysis. Sentiment analysis inspects user input * and identifies the prevailing subjective opinion, especially to determine a * user's attitude as positive, negative, or neutral. - * For [Participants.DetectIntent][], it needs to be configured in + * For [DetectIntent][], it needs to be configured in * [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. - * For [Participants.StreamingDetectIntent][], it needs to be configured in + * For [StreamingDetectIntent][], it needs to be configured in * [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. * And for * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] @@ -296,9 +296,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * The result of sentiment analysis. Sentiment analysis inspects user input * and identifies the prevailing subjective opinion, especially to determine a * user's attitude as positive, negative, or neutral. - * For [Participants.DetectIntent][], it needs to be configured in + * For [DetectIntent][], it needs to be configured in * [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. - * For [Participants.StreamingDetectIntent][], it needs to be configured in + * For [StreamingDetectIntent][], it needs to be configured in * [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. * And for * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigOperationMetadata.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigOperationMetadata.java index 95e6230aa1d0..d36d41ecae25 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigOperationMetadata.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigOperationMetadata.java @@ -23,7 +23,8 @@ * * *
      - * Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][]
      + * Metadata for a
      + * [ConversationProfiles.SetSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig]
        * operation.
        * 
      * @@ -460,7 +461,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][]
      +   * Metadata for a
      +   * [ConversationProfiles.SetSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig]
          * operation.
          * 
      * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigRequest.java index 8fbce9882ae6..927fe35d7beb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SetSuggestionFeatureConfigRequest.java @@ -24,7 +24,7 @@ * *
        * The request message for
      - * [ConversationProfiles.SetSuggestionFeature][].
      + * [ConversationProfiles.SetSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig].
        * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest} @@ -415,7 +415,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
          * The request message for
      -   * [ConversationProfiles.SetSuggestionFeature][].
      +   * [ConversationProfiles.SetSuggestionFeatureConfig][google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig].
          * 
      * * Protobuf type {@code google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java index ee5626797e29..fb1ea1843018 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java @@ -51,8 +51,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu * * *
      -   * Use the best available variant of the [Speech
      -   * model][InputAudioConfig.model] that the caller is eligible for.
      +   * Use the best available variant of the [Speech model][model] that the caller
      +   * is eligible for.
          *
          * Please see the [Dialogflow
          * docs](https://cloud.google.com/dialogflow/docs/data-logging) for
      @@ -116,8 +116,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu
          *
          *
          * 
      -   * Use the best available variant of the [Speech
      -   * model][InputAudioConfig.model] that the caller is eligible for.
      +   * Use the best available variant of the [Speech model][model] that the caller
      +   * is eligible for.
          *
          * Please see the [Dialogflow
          * docs](https://cloud.google.com/dialogflow/docs/data-logging) for
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java
      index dcd810c5b80d..854344768d2d 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java
      @@ -785,7 +785,8 @@ public com.google.protobuf.StructOrBuilder getCxParametersOrBuilder() {
          * and
          * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
          * - Lifecycle: conversation should be in `Assist Stage`, go to
      -   *   [Conversation.CreateConversation][] for more information.
      +   *   [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]
      +   *   for more information.
          *
          * InvalidArgument Error will be returned if the one of restriction checks
          * failed.
      @@ -3529,7 +3530,8 @@ public com.google.protobuf.StructOrBuilder getCxParametersOrBuilder() {
            * and
            * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
            * - Lifecycle: conversation should be in `Assist Stage`, go to
      -     *   [Conversation.CreateConversation][] for more information.
      +     *   [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]
      +     *   for more information.
            *
            * InvalidArgument Error will be returned if the one of restriction checks
            * failed.
      @@ -3562,7 +3564,8 @@ public boolean getEnableExtendedStreaming() {
            * and
            * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
            * - Lifecycle: conversation should be in `Assist Stage`, go to
      -     *   [Conversation.CreateConversation][] for more information.
      +     *   [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]
      +     *   for more information.
            *
            * InvalidArgument Error will be returned if the one of restriction checks
            * failed.
      @@ -3599,7 +3602,8 @@ public Builder setEnableExtendedStreaming(boolean value) {
            * and
            * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
            * - Lifecycle: conversation should be in `Assist Stage`, go to
      -     *   [Conversation.CreateConversation][] for more information.
      +     *   [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]
      +     *   for more information.
            *
            * InvalidArgument Error will be returned if the one of restriction checks
            * failed.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java
      index aa1621ea96b3..2d381775e940 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java
      @@ -429,7 +429,8 @@ public interface StreamingAnalyzeContentRequestOrBuilder
          * and
          * [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
          * - Lifecycle: conversation should be in `Assist Stage`, go to
      -   *   [Conversation.CreateConversation][] for more information.
      +   *   [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]
      +   *   for more information.
          *
          * InvalidArgument Error will be returned if the one of restriction checks
          * failed.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java
      index a6790f81a6b0..e7f82affe348 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java
      @@ -278,9 +278,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      @@ -298,9 +298,9 @@ public boolean hasAutomatedAgentReply() {
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      @@ -320,9 +320,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      @@ -2003,9 +2003,9 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2022,9 +2022,9 @@ public boolean hasAutomatedAgentReply() {
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2047,9 +2047,9 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2075,9 +2075,9 @@ public Builder setAutomatedAgentReply(
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2100,9 +2100,9 @@ public Builder setAutomatedAgentReply(
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2134,9 +2134,9 @@ public Builder mergeAutomatedAgentReply(
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2158,9 +2158,9 @@ public Builder clearAutomatedAgentReply() {
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2178,9 +2178,9 @@ public Builder clearAutomatedAgentReply() {
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      @@ -2202,9 +2202,9 @@ public Builder clearAutomatedAgentReply() {
            *
            *
            * 
      -     * Only set if a Dialogflow automated agent has responded.
      -     * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -     * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +     * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +     * [Sessions.DetectIntentResponse.output_audio][]
      +     * and [Sessions.DetectIntentResponse.output_audio_config][]
            * are always empty, use
            * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
            * instead.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponseOrBuilder.java
      index eb644252b994..10a43e8ac1d0 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponseOrBuilder.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponseOrBuilder.java
      @@ -156,9 +156,9 @@ public interface StreamingAnalyzeContentResponseOrBuilder
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      @@ -173,9 +173,9 @@ public interface StreamingAnalyzeContentResponseOrBuilder
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      @@ -190,9 +190,9 @@ public interface StreamingAnalyzeContentResponseOrBuilder
          *
          *
          * 
      -   * Only set if a Dialogflow automated agent has responded.
      -   * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
      -   * and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
      +   * Note that in [AutomatedAgentReply.DetectIntentResponse][],
      +   * [Sessions.DetectIntentResponse.output_audio][]
      +   * and [Sessions.DetectIntentResponse.output_audio_config][]
          * are always empty, use
          * [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio]
          * instead.
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
      index 2b6258ca5e48..e448ffbd071a 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java
      @@ -24,8 +24,7 @@
        *
        * 
        * The top-level message sent by the client to the
      - * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]
      - * method.
      + * [StreamingDetectIntent][] method.
        *
        * Multiple request messages should be sent in order:
        *
      @@ -332,7 +331,7 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
          * bool single_utterance = 4 [deprecated = true];
          *
          * @deprecated google.cloud.dialogflow.v2.StreamingDetectIntentRequest.single_utterance is
      -   *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=469
      +   *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=468
          * @return The singleUtterance.
          */
         @java.lang.Override
      @@ -755,8 +754,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * 
          * The top-level message sent by the client to the
      -   * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]
      -   * method.
      +   * [StreamingDetectIntent][] method.
          *
          * Multiple request messages should be sent in order:
          *
      @@ -1769,7 +1767,7 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
            * bool single_utterance = 4 [deprecated = true];
            *
            * @deprecated google.cloud.dialogflow.v2.StreamingDetectIntentRequest.single_utterance is
      -     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=469
      +     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=468
            * @return The singleUtterance.
            */
           @java.lang.Override
      @@ -1795,7 +1793,7 @@ public boolean getSingleUtterance() {
            * bool single_utterance = 4 [deprecated = true];
            *
            * @deprecated google.cloud.dialogflow.v2.StreamingDetectIntentRequest.single_utterance is
      -     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=469
      +     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=468
            * @param value The singleUtterance to set.
            * @return This builder for chaining.
            */
      @@ -1825,7 +1823,7 @@ public Builder setSingleUtterance(boolean value) {
            * bool single_utterance = 4 [deprecated = true];
            *
            * @deprecated google.cloud.dialogflow.v2.StreamingDetectIntentRequest.single_utterance is
      -     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=469
      +     *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=468
            * @return This builder for chaining.
            */
           @java.lang.Deprecated
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
      index 8ab4d7206dce..e39dd1f7a640 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java
      @@ -200,7 +200,7 @@ public interface StreamingDetectIntentRequestOrBuilder
          * bool single_utterance = 4 [deprecated = true];
          *
          * @deprecated google.cloud.dialogflow.v2.StreamingDetectIntentRequest.single_utterance is
      -   *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=469
      +   *     deprecated. See google/cloud/dialogflow/v2/session.proto;l=468
          * @return The singleUtterance.
          */
         @java.lang.Deprecated
      diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
      index eda0bb4bec79..5d104df1323e 100644
      --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
      +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java
      @@ -24,11 +24,13 @@
        *
        * 
        * The top-level message returned from the
      - * `StreamingDetectIntent` method.
      + * [StreamingDetectIntent][] method.
        *
        * Multiple response messages can be returned in order:
        *
      - * 1.  If the `StreamingDetectIntentRequest.input_audio` field was
      + * 1.  If the
      + * [StreamingDetectIntentRequest.input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio]
      + * field was
        *     set, the `recognition_result` field is populated for one
        *     or more messages.
        *     See the
      @@ -362,7 +364,8 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioC
          *
          * 
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -378,7 +381,8 @@ public boolean hasDebuggingInfo() { * *
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -396,7 +400,8 @@ public com.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo getDebuggin * *
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -653,11 +658,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
          * The top-level message returned from the
      -   * `StreamingDetectIntent` method.
      +   * [StreamingDetectIntent][] method.
          *
          * Multiple response messages can be returned in order:
          *
      -   * 1.  If the `StreamingDetectIntentRequest.input_audio` field was
      +   * 1.  If the
      +   * [StreamingDetectIntentRequest.input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio]
      +   * field was
          *     set, the `recognition_result` field is populated for one
          *     or more messages.
          *     See the
      @@ -1922,7 +1929,8 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo
            *
            * 
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -1937,7 +1945,8 @@ public boolean hasDebuggingInfo() { * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -1958,7 +1967,8 @@ public com.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo getDebuggin * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -1982,7 +1992,8 @@ public Builder setDebuggingInfo( * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -2003,7 +2014,8 @@ public Builder setDebuggingInfo( * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -2034,7 +2046,8 @@ public Builder mergeDebuggingInfo( * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -2054,7 +2067,8 @@ public Builder clearDebuggingInfo() { * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -2070,7 +2084,8 @@ public Builder clearDebuggingInfo() { * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -2090,7 +2105,8 @@ public Builder clearDebuggingInfo() { * *
            * Debugging info that would get populated when
      -     * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +     * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +     * is set to true.
            * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java index de0780e1a219..23b3b9a0c7e4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java @@ -219,7 +219,8 @@ public interface StreamingDetectIntentResponseOrBuilder * *
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -232,7 +233,8 @@ public interface StreamingDetectIntentResponseOrBuilder * *
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; @@ -245,7 +247,8 @@ public interface StreamingDetectIntentResponseOrBuilder * *
          * Debugging info that would get populated when
      -   * `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
      +   * [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info]
      +   * is set to true.
          * 
      * * .google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java index 904758312784..8adc72a8f479 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java @@ -1715,9 +1715,11 @@ public com.google.protobuf.ByteString getLatestMessageBytes() { * *
          * Number of messages prior to and including
      -   * [last_conversation_message][] used to compile the suggestion. It may be
      -   * smaller than the [SuggestSummaryRequest.context_size][] field in the
      -   * request if there weren't that many messages in the conversation.
      +   * [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
      +   * used to compile the suggestion. It may be smaller than the
      +   * [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
      +   * field in the request if there weren't that many messages in the
      +   * conversation.
          * 
      * * int32 context_size = 3; @@ -2480,9 +2482,11 @@ public Builder setLatestMessageBytes(com.google.protobuf.ByteString value) { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [SuggestSummaryRequest.context_size][] field in the
      -     * request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; @@ -2498,9 +2502,11 @@ public int getContextSize() { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [SuggestSummaryRequest.context_size][] field in the
      -     * request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; @@ -2520,9 +2526,11 @@ public Builder setContextSize(int value) { * *
            * Number of messages prior to and including
      -     * [last_conversation_message][] used to compile the suggestion. It may be
      -     * smaller than the [SuggestSummaryRequest.context_size][] field in the
      -     * request if there weren't that many messages in the conversation.
      +     * [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
      +     * used to compile the suggestion. It may be smaller than the
      +     * [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
      +     * field in the request if there weren't that many messages in the
      +     * conversation.
            * 
      * * int32 context_size = 3; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponseOrBuilder.java index 78f76893aa03..2f307ee4bf78 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponseOrBuilder.java @@ -101,9 +101,11 @@ public interface SuggestConversationSummaryResponseOrBuilder * *
          * Number of messages prior to and including
      -   * [last_conversation_message][] used to compile the suggestion. It may be
      -   * smaller than the [SuggestSummaryRequest.context_size][] field in the
      -   * request if there weren't that many messages in the conversation.
      +   * [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message]
      +   * used to compile the suggestion. It may be smaller than the
      +   * [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size]
      +   * field in the request if there weren't that many messages in the
      +   * conversation.
          * 
      * * int32 context_size = 3; 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 73da1490612d..97657550e79d 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 @@ -93,8 +93,9 @@ service AnswerRecords { // returned to the customers. // 2. The customer uses the // [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the -// [UpdateAnswerRecord][] method to send feedback about a specific answer -// that they believe is wrong. +// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] +// method to send feedback about a specific answer that they believe is +// wrong. message AnswerRecord { option (google.api.resource) = { type: "dialogflow.googleapis.com/AnswerRecord" 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 0f58aee2f5c4..89e4eb6028cd 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 @@ -445,8 +445,8 @@ enum SpeechModelVariant { // USE_BEST_AVAILABLE. SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; - // Use the best available variant of the [Speech - // model][InputAudioConfig.model] that the caller is eligible for. + // Use the best available variant of the [Speech model][model] that the caller + // is eligible for. // // Please see the [Dialogflow // docs](https://cloud.google.com/dialogflow/docs/data-logging) for diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto index e6c37a533dd9..12c30b1838f6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto @@ -515,9 +515,11 @@ message SuggestConversationSummaryResponse { }]; // Number of messages prior to and including - // [last_conversation_message][] used to compile the suggestion. It may be - // smaller than the [SuggestSummaryRequest.context_size][] field in the - // request if there weren't that many messages in the conversation. + // [latest_message][google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.latest_message] + // used to compile the suggestion. It may be smaller than the + // [SuggestConversationSummaryRequest.context_size][google.cloud.dialogflow.v2.SuggestConversationSummaryRequest.context_size] + // field in the request if there weren't that many messages in the + // conversation. int32 context_size = 3; } @@ -601,9 +603,11 @@ message GenerateStatelessSummaryResponse { }]; // Number of messages prior to and including - // [last_conversation_message][] used to compile the suggestion. It may be - // smaller than the [GenerateStatelessSummaryRequest.context_size][] field in - // the request if there weren't that many messages in the conversation. + // [latest_message][google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse.latest_message] + // used to compile the suggestion. It may be smaller than the + // [GenerateStatelessSummaryRequest.max_context_size][google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.max_context_size] + // field in the request if there weren't that many messages in the + // conversation. int32 context_size = 3; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto index 759e54900960..e45054630d9f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto @@ -330,7 +330,7 @@ message ImportConversationDataOperationResponse { int32 import_count = 3; } -// Metadata for [ConversationDatasets][CreateConversationDataset]. +// Metadata for [CreateConversationDataset][]. message CreateConversationDatasetOperationMetadata { // The resource name of the conversation dataset that will be created. Format: // `projects//locations//locations//locations/ * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -267,7 +267,7 @@ public interface TrainingPhraseOrBuilder * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -1926,7 +1926,7 @@ public com.google.protobuf.Parser getParserForType() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -1949,7 +1949,7 @@ public java.lang.String getName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2687,7 +2687,7 @@ public Builder mergeFrom( * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -2709,7 +2709,7 @@ public java.lang.String getName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -2731,7 +2731,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -2752,7 +2752,7 @@ public Builder setName(java.lang.String value) { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2769,7 +2769,7 @@ public Builder clearName() { * Output only. The unique identifier of this training phrase. *
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java index 36b39d346cf0..920dc3678a0d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java @@ -274,7 +274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032#google/longrunning/operations.proto\032\033" + "google/protobuf/empty.proto\032 google/prot" + "obuf/field_mask.proto\032\034google/protobuf/s" - + "truct.proto\"\236O\n\006Intent\022\021\n\004name\030\001 \001(\tB\003\340A" + + "truct.proto\"\243O\n\006Intent\022\021\n\004name\030\001 \001(\tB\003\340A" + "\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022P\n\rwebhook_" + "state\030\006 \001(\01624.google.cloud.dialogflow.v2" + "beta1.Intent.WebhookStateB\003\340A\001\022\025\n\010priori" @@ -298,343 +298,343 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntent_name\030\020 \001(\tB\003\340A\003\022(\n\033parent_followup" + "_intent_name\030\021 \001(\tB\003\340A\001\022]\n\024followup_inte" + "nt_info\030\022 \003(\0132:.google.cloud.dialogflow." - + "v2beta1.Intent.FollowupIntentInfoB\003\340A\003\032\354" - + "\002\n\016TrainingPhrase\022\014\n\004name\030\001 \001(\t\022N\n\004type\030" - + "\002 \001(\0162;.google.cloud.dialogflow.v2beta1." - + "Intent.TrainingPhrase.TypeB\003\340A\002\022O\n\005parts" - + "\030\003 \003(\0132;.google.cloud.dialogflow.v2beta1" - + ".Intent.TrainingPhrase.PartB\003\340A\002\022\036\n\021time" - + "s_added_count\030\004 \001(\005B\003\340A\001\032N\n\004Part\022\014\n\004text" - + "\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022\r\n\005alias\030\003 \001" - + "(\t\022\024\n\014user_defined\030\004 \001(\010\";\n\004Type\022\024\n\020TYPE" - + "_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010TEMPLATE\020" - + "\002\032\002\010\001\032\254\001\n\tParameter\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" - + "play_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\025\n\rdefaul" - + "t_value\030\004 \001(\t\022 \n\030entity_type_display_nam" - + "e\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007prompts\030\007 " - + "\003(\t\022\017\n\007is_list\030\010 \001(\010\032\302@\n\007Message\022D\n\004text" - + "\030\001 \001(\01324.google.cloud.dialogflow.v2beta1" - + ".Intent.Message.TextH\000\022F\n\005image\030\002 \001(\01325." + + "v2beta1.Intent.FollowupIntentInfoB\003\340A\003\032\361" + + "\002\n\016TrainingPhrase\022\021\n\004name\030\001 \001(\tB\003\340A\003\022N\n\004" + + "type\030\002 \001(\0162;.google.cloud.dialogflow.v2b" + + "eta1.Intent.TrainingPhrase.TypeB\003\340A\002\022O\n\005" + + "parts\030\003 \003(\0132;.google.cloud.dialogflow.v2" + + "beta1.Intent.TrainingPhrase.PartB\003\340A\002\022\036\n" + + "\021times_added_count\030\004 \001(\005B\003\340A\001\032N\n\004Part\022\014\n" + + "\004text\030\001 \001(\t\022\023\n\013entity_type\030\002 \001(\t\022\r\n\005alia" + + "s\030\003 \001(\t\022\024\n\014user_defined\030\004 \001(\010\";\n\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n\007EXAMPLE\020\001\022\020\n\010TEMP" + + "LATE\020\002\032\002\010\001\032\254\001\n\tParameter\022\014\n\004name\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\025\n\rd" + + "efault_value\030\004 \001(\t\022 \n\030entity_type_displa" + + "y_name\030\005 \001(\t\022\021\n\tmandatory\030\006 \001(\010\022\017\n\007promp" + + "ts\030\007 \003(\t\022\017\n\007is_list\030\010 \001(\010\032\302@\n\007Message\022D\n" + + "\004text\030\001 \001(\01324.google.cloud.dialogflow.v2" + + "beta1.Intent.Message.TextH\000\022F\n\005image\030\002 \001" + + "(\01325.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message.ImageH\000\022U\n\rquick_replies\030\003 \001" + + "(\0132<.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message.QuickRepliesH\000\022D\n\004card\030\004 \001(\013" + + "24.google.cloud.dialogflow.v2beta1.Inten" + + "t.Message.CardH\000\022*\n\007payload\030\005 \001(\0132\027.goog" + + "le.protobuf.StructH\000\022[\n\020simple_responses" + + "\030\007 \001(\0132?.google.cloud.dialogflow.v2beta1" + + ".Intent.Message.SimpleResponsesH\000\022O\n\nbas" + + "ic_card\030\010 \001(\01329.google.cloud.dialogflow." + + "v2beta1.Intent.Message.BasicCardH\000\022R\n\013su" + + "ggestions\030\t \001(\0132;.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.SuggestionsH\000\022`" + + "\n\023link_out_suggestion\030\n \001(\0132A.google.clo" + + "ud.dialogflow.v2beta1.Intent.Message.Lin" + + "kOutSuggestionH\000\022Q\n\013list_select\030\013 \001(\0132:." + "google.cloud.dialogflow.v2beta1.Intent.M" - + "essage.ImageH\000\022U\n\rquick_replies\030\003 \001(\0132<." + + "essage.ListSelectH\000\022Y\n\017carousel_select\030\014" + + " \001(\0132>.google.cloud.dialogflow.v2beta1.I" + + "ntent.Message.CarouselSelectH\000\022b\n\024teleph" + + "ony_play_audio\030\r \001(\0132B.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.TelephonyP" + + "layAudioH\000\022p\n\033telephony_synthesize_speec" + + "h\030\016 \001(\0132I.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.TelephonySynthesizeSpee" + + "chH\000\022h\n\027telephony_transfer_call\030\017 \001(\0132E." + "google.cloud.dialogflow.v2beta1.Intent.M" - + "essage.QuickRepliesH\000\022D\n\004card\030\004 \001(\01324.go" + + "essage.TelephonyTransferCallH\000\022K\n\010rbm_te" + + "xt\030\022 \001(\01327.google.cloud.dialogflow.v2bet" + + "a1.Intent.Message.RbmTextH\000\022e\n\030rbm_stand" + + "alone_rich_card\030\023 \001(\0132A.google.cloud.dia" + + "logflow.v2beta1.Intent.Message.RbmStanda" + + "loneCardH\000\022a\n\026rbm_carousel_rich_card\030\024 \001" + + "(\0132?.google.cloud.dialogflow.v2beta1.Int" + + "ent.Message.RbmCarouselCardH\000\022b\n\024browse_" + + "carousel_card\030\026 \001(\0132B.google.cloud.dialo" + + "gflow.v2beta1.Intent.Message.BrowseCarou" + + "selCardH\000\022O\n\ntable_card\030\027 \001(\01329.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.T" + + "ableCardH\000\022U\n\rmedia_content\030\030 \001(\0132<.goog" + + "le.cloud.dialogflow.v2beta1.Intent.Messa" + + "ge.MediaContentH\000\022O\n\010platform\030\006 \001(\01628.go" + "ogle.cloud.dialogflow.v2beta1.Intent.Mes" - + "sage.CardH\000\022*\n\007payload\030\005 \001(\0132\027.google.pr" - + "otobuf.StructH\000\022[\n\020simple_responses\030\007 \001(" - + "\0132?.google.cloud.dialogflow.v2beta1.Inte" - + "nt.Message.SimpleResponsesH\000\022O\n\nbasic_ca" - + "rd\030\010 \001(\01329.google.cloud.dialogflow.v2bet" - + "a1.Intent.Message.BasicCardH\000\022R\n\013suggest" - + "ions\030\t \001(\0132;.google.cloud.dialogflow.v2b" - + "eta1.Intent.Message.SuggestionsH\000\022`\n\023lin" - + "k_out_suggestion\030\n \001(\0132A.google.cloud.di" - + "alogflow.v2beta1.Intent.Message.LinkOutS" - + "uggestionH\000\022Q\n\013list_select\030\013 \001(\0132:.googl" - + "e.cloud.dialogflow.v2beta1.Intent.Messag" - + "e.ListSelectH\000\022Y\n\017carousel_select\030\014 \001(\0132" - + ">.google.cloud.dialogflow.v2beta1.Intent" - + ".Message.CarouselSelectH\000\022b\n\024telephony_p" - + "lay_audio\030\r \001(\0132B.google.cloud.dialogflo" - + "w.v2beta1.Intent.Message.TelephonyPlayAu" - + "dioH\000\022p\n\033telephony_synthesize_speech\030\016 \001" - + "(\0132I.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.TelephonySynthesizeSpeechH\000\022" - + "h\n\027telephony_transfer_call\030\017 \001(\0132E.googl" - + "e.cloud.dialogflow.v2beta1.Intent.Messag" - + "e.TelephonyTransferCallH\000\022K\n\010rbm_text\030\022 " - + "\001(\01327.google.cloud.dialogflow.v2beta1.In" - + "tent.Message.RbmTextH\000\022e\n\030rbm_standalone" - + "_rich_card\030\023 \001(\0132A.google.cloud.dialogfl" - + "ow.v2beta1.Intent.Message.RbmStandaloneC" - + "ardH\000\022a\n\026rbm_carousel_rich_card\030\024 \001(\0132?." - + "google.cloud.dialogflow.v2beta1.Intent.M" - + "essage.RbmCarouselCardH\000\022b\n\024browse_carou" - + "sel_card\030\026 \001(\0132B.google.cloud.dialogflow" - + ".v2beta1.Intent.Message.BrowseCarouselCa" - + "rdH\000\022O\n\ntable_card\030\027 \001(\01329.google.cloud." - + "dialogflow.v2beta1.Intent.Message.TableC" - + "ardH\000\022U\n\rmedia_content\030\030 \001(\0132<.google.cl" - + "oud.dialogflow.v2beta1.Intent.Message.Me" - + "diaContentH\000\022O\n\010platform\030\006 \001(\01628.google." - + "cloud.dialogflow.v2beta1.Intent.Message." - + "PlatformB\003\340A\001\032\024\n\004Text\022\014\n\004text\030\001 \003(\t\0326\n\005I" - + "mage\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022accessibility" - + "_text\030\002 \001(\t\0324\n\014QuickReplies\022\r\n\005title\030\001 \001" - + "(\t\022\025\n\rquick_replies\030\002 \003(\t\032\262\001\n\004Card\022\r\n\005ti" - + "tle\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\021\n\timage_uri" - + "\030\003 \001(\t\022L\n\007buttons\030\004 \003(\0132;.google.cloud.d" - + "ialogflow.v2beta1.Intent.Message.Card.Bu" - + "tton\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022\020\n\010postback" - + "\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016text_to_spee" - + "ch\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014display_text\030\003" - + " \001(\t\032k\n\017SimpleResponses\022X\n\020simple_respon" - + "ses\030\001 \003(\0132>.google.cloud.dialogflow.v2be" - + "ta1.Intent.Message.SimpleResponse\032\376\002\n\tBa" - + "sicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t" - + "\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005image\030\004 \001(\0132" + + "sage.PlatformB\003\340A\001\032\024\n\004Text\022\014\n\004text\030\001 \003(\t" + + "\0326\n\005Image\022\021\n\timage_uri\030\001 \001(\t\022\032\n\022accessib" + + "ility_text\030\002 \001(\t\0324\n\014QuickReplies\022\r\n\005titl" + + "e\030\001 \001(\t\022\025\n\rquick_replies\030\002 \003(\t\032\262\001\n\004Card\022" + + "\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030\002 \001(\t\022\021\n\timag" + + "e_uri\030\003 \001(\t\022L\n\007buttons\030\004 \003(\0132;.google.cl" + + "oud.dialogflow.v2beta1.Intent.Message.Ca" + + "rd.Button\032(\n\006Button\022\014\n\004text\030\001 \001(\t\022\020\n\010pos" + + "tback\030\002 \001(\t\032L\n\016SimpleResponse\022\026\n\016text_to" + + "_speech\030\001 \001(\t\022\014\n\004ssml\030\002 \001(\t\022\024\n\014display_t" + + "ext\030\003 \001(\t\032k\n\017SimpleResponses\022X\n\020simple_r" + + "esponses\030\001 \003(\0132>.google.cloud.dialogflow" + + ".v2beta1.Intent.Message.SimpleResponse\032\376" + + "\002\n\tBasicCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subtitle\030" + + "\002 \001(\t\022\026\n\016formatted_text\030\003 \001(\t\022D\n\005image\030\004" + + " \001(\01325.google.cloud.dialogflow.v2beta1.I" + + "ntent.Message.Image\022Q\n\007buttons\030\005 \003(\0132@.g" + + "oogle.cloud.dialogflow.v2beta1.Intent.Me" + + "ssage.BasicCard.Button\032\236\001\n\006Button\022\r\n\005tit" + + "le\030\001 \001(\t\022g\n\017open_uri_action\030\002 \001(\0132N.goog" + + "le.cloud.dialogflow.v2beta1.Intent.Messa" + + "ge.BasicCard.Button.OpenUriAction\032\034\n\rOpe" + + "nUriAction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggestion\022\r\n" + + "\005title\030\001 \001(\t\032^\n\013Suggestions\022O\n\013suggestio" + + "ns\030\001 \003(\0132:.google.cloud.dialogflow.v2bet" + + "a1.Intent.Message.Suggestion\032:\n\021LinkOutS" + + "uggestion\022\030\n\020destination_name\030\001 \001(\t\022\013\n\003u" + + "ri\030\002 \001(\t\032\303\002\n\nListSelect\022\r\n\005title\030\001 \001(\t\022N" + + "\n\005items\030\002 \003(\0132?.google.cloud.dialogflow." + + "v2beta1.Intent.Message.ListSelect.Item\022\025" + + "\n\010subtitle\030\003 \001(\tB\003\340A\001\032\276\001\n\004Item\022L\n\004info\030\001" + + " \001(\0132>.google.cloud.dialogflow.v2beta1.I" + + "ntent.Message.SelectItemInfo\022\r\n\005title\030\002 " + + "\001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\0132" + "5.google.cloud.dialogflow.v2beta1.Intent" - + ".Message.Image\022Q\n\007buttons\030\005 \003(\0132@.google" + + ".Message.Image\032\245\002\n\016CarouselSelect\022R\n\005ite" + + "ms\030\001 \003(\0132C.google.cloud.dialogflow.v2bet" + + "a1.Intent.Message.CarouselSelect.Item\032\276\001" + + "\n\004Item\022L\n\004info\030\001 \001(\0132>.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.SelectItem" + + "Info\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(\t" + + "\022D\n\005image\030\004 \001(\01325.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.Image\032/\n\016Select" + + "ItemInfo\022\013\n\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t\032" + + "\'\n\022TelephonyPlayAudio\022\021\n\taudio_uri\030\001 \001(\t" + + "\032E\n\031TelephonySynthesizeSpeech\022\016\n\004text\030\001 " + + "\001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\010\n\006source\032-\n\025Telep" + + "honyTransferCall\022\024\n\014phone_number\030\001 \001(\t\032n" + + "\n\007RbmText\022\014\n\004text\030\001 \001(\t\022U\n\016rbm_suggestio" + + "n\030\002 \003(\0132=.google.cloud.dialogflow.v2beta" + + "1.Intent.Message.RbmSuggestion\032\207\002\n\017RbmCa" + + "rouselCard\022]\n\ncard_width\030\001 \001(\0162I.google." + + "cloud.dialogflow.v2beta1.Intent.Message." + + "RbmCarouselCard.CardWidth\022U\n\rcard_conten" + + "ts\030\002 \003(\0132>.google.cloud.dialogflow.v2bet" + + "a1.Intent.Message.RbmCardContent\">\n\tCard" + + "Width\022\032\n\026CARD_WIDTH_UNSPECIFIED\020\000\022\t\n\005SMA" + + "LL\020\001\022\n\n\006MEDIUM\020\002\032\202\004\n\021RbmStandaloneCard\022k" + + "\n\020card_orientation\030\001 \001(\0162Q.google.cloud." + + "dialogflow.v2beta1.Intent.Message.RbmSta" + + "ndaloneCard.CardOrientation\022|\n\031thumbnail" + + "_image_alignment\030\002 \001(\0162Y.google.cloud.di" + + "alogflow.v2beta1.Intent.Message.RbmStand" + + "aloneCard.ThumbnailImageAlignment\022T\n\014car" + + "d_content\030\003 \001(\0132>.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.RbmCardContent\"" + + "Q\n\017CardOrientation\022 \n\034CARD_ORIENTATION_U" + + "NSPECIFIED\020\000\022\016\n\nHORIZONTAL\020\001\022\014\n\010VERTICAL" + + "\020\002\"Y\n\027ThumbnailImageAlignment\022)\n%THUMBNA" + + "IL_IMAGE_ALIGNMENT_UNSPECIFIED\020\000\022\010\n\004LEFT" + + "\020\001\022\t\n\005RIGHT\020\002\032\271\003\n\016RbmCardContent\022\r\n\005titl" + + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022V\n\005media\030\003 " + + "\001(\0132G.google.cloud.dialogflow.v2beta1.In" + + "tent.Message.RbmCardContent.RbmMedia\022R\n\013" + + "suggestions\030\004 \003(\0132=.google.cloud.dialogf" + + "low.v2beta1.Intent.Message.RbmSuggestion" + + "\032\326\001\n\010RbmMedia\022\020\n\010file_uri\030\001 \001(\t\022\025\n\rthumb" + + "nail_uri\030\002 \001(\t\022^\n\006height\030\003 \001(\0162N.google." + + "cloud.dialogflow.v2beta1.Intent.Message." + + "RbmCardContent.RbmMedia.Height\"A\n\006Height" + + "\022\026\n\022HEIGHT_UNSPECIFIED\020\000\022\t\n\005SHORT\020\001\022\n\n\006M" + + "EDIUM\020\002\022\010\n\004TALL\020\003\032\307\001\n\rRbmSuggestion\022R\n\005r" + + "eply\030\001 \001(\0132A.google.cloud.dialogflow.v2b" + + "eta1.Intent.Message.RbmSuggestedReplyH\000\022" + + "T\n\006action\030\002 \001(\0132B.google.cloud.dialogflo" + + "w.v2beta1.Intent.Message.RbmSuggestedAct" + + "ionH\000B\014\n\nsuggestion\0328\n\021RbmSuggestedReply" + + "\022\014\n\004text\030\001 \001(\t\022\025\n\rpostback_data\030\002 \001(\t\032\233\004" + + "\n\022RbmSuggestedAction\022\014\n\004text\030\001 \001(\t\022\025\n\rpo" + + "stback_data\030\002 \001(\t\022i\n\004dial\030\003 \001(\0132Y.google" + ".cloud.dialogflow.v2beta1.Intent.Message" - + ".BasicCard.Button\032\236\001\n\006Button\022\r\n\005title\030\001 " - + "\001(\t\022g\n\017open_uri_action\030\002 \001(\0132N.google.cl" - + "oud.dialogflow.v2beta1.Intent.Message.Ba" - + "sicCard.Button.OpenUriAction\032\034\n\rOpenUriA" - + "ction\022\013\n\003uri\030\001 \001(\t\032\033\n\nSuggestion\022\r\n\005titl" - + "e\030\001 \001(\t\032^\n\013Suggestions\022O\n\013suggestions\030\001 " - + "\003(\0132:.google.cloud.dialogflow.v2beta1.In" - + "tent.Message.Suggestion\032:\n\021LinkOutSugges" - + "tion\022\030\n\020destination_name\030\001 \001(\t\022\013\n\003uri\030\002 " - + "\001(\t\032\303\002\n\nListSelect\022\r\n\005title\030\001 \001(\t\022N\n\005ite" - + "ms\030\002 \003(\0132?.google.cloud.dialogflow.v2bet" - + "a1.Intent.Message.ListSelect.Item\022\025\n\010sub" - + "title\030\003 \001(\tB\003\340A\001\032\276\001\n\004Item\022L\n\004info\030\001 \001(\0132" - + ">.google.cloud.dialogflow.v2beta1.Intent" - + ".Message.SelectItemInfo\022\r\n\005title\030\002 \001(\t\022\023" - + "\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\01325.goo" - + "gle.cloud.dialogflow.v2beta1.Intent.Mess" - + "age.Image\032\245\002\n\016CarouselSelect\022R\n\005items\030\001 " - + "\003(\0132C.google.cloud.dialogflow.v2beta1.In" - + "tent.Message.CarouselSelect.Item\032\276\001\n\004Ite" - + "m\022L\n\004info\030\001 \001(\0132>.google.cloud.dialogflo" - + "w.v2beta1.Intent.Message.SelectItemInfo\022" - + "\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005i" - + "mage\030\004 \001(\01325.google.cloud.dialogflow.v2b" - + "eta1.Intent.Message.Image\032/\n\016SelectItemI" - + "nfo\022\013\n\003key\030\001 \001(\t\022\020\n\010synonyms\030\002 \003(\t\032\'\n\022Te" - + "lephonyPlayAudio\022\021\n\taudio_uri\030\001 \001(\t\032E\n\031T" - + "elephonySynthesizeSpeech\022\016\n\004text\030\001 \001(\tH\000" - + "\022\016\n\004ssml\030\002 \001(\tH\000B\010\n\006source\032-\n\025TelephonyT" - + "ransferCall\022\024\n\014phone_number\030\001 \001(\t\032n\n\007Rbm" - + "Text\022\014\n\004text\030\001 \001(\t\022U\n\016rbm_suggestion\030\002 \003" - + "(\0132=.google.cloud.dialogflow.v2beta1.Int" - + "ent.Message.RbmSuggestion\032\207\002\n\017RbmCarouse" - + "lCard\022]\n\ncard_width\030\001 \001(\0162I.google.cloud" - + ".dialogflow.v2beta1.Intent.Message.RbmCa" - + "rouselCard.CardWidth\022U\n\rcard_contents\030\002 " - + "\003(\0132>.google.cloud.dialogflow.v2beta1.In" - + "tent.Message.RbmCardContent\">\n\tCardWidth" - + "\022\032\n\026CARD_WIDTH_UNSPECIFIED\020\000\022\t\n\005SMALL\020\001\022" - + "\n\n\006MEDIUM\020\002\032\202\004\n\021RbmStandaloneCard\022k\n\020car" - + "d_orientation\030\001 \001(\0162Q.google.cloud.dialo" - + "gflow.v2beta1.Intent.Message.RbmStandalo" - + "neCard.CardOrientation\022|\n\031thumbnail_imag" - + "e_alignment\030\002 \001(\0162Y.google.cloud.dialogf" - + "low.v2beta1.Intent.Message.RbmStandalone" - + "Card.ThumbnailImageAlignment\022T\n\014card_con" - + "tent\030\003 \001(\0132>.google.cloud.dialogflow.v2b" - + "eta1.Intent.Message.RbmCardContent\"Q\n\017Ca" - + "rdOrientation\022 \n\034CARD_ORIENTATION_UNSPEC" - + "IFIED\020\000\022\016\n\nHORIZONTAL\020\001\022\014\n\010VERTICAL\020\002\"Y\n" - + "\027ThumbnailImageAlignment\022)\n%THUMBNAIL_IM" - + "AGE_ALIGNMENT_UNSPECIFIED\020\000\022\010\n\004LEFT\020\001\022\t\n" - + "\005RIGHT\020\002\032\271\003\n\016RbmCardContent\022\r\n\005title\030\001 \001" - + "(\t\022\023\n\013description\030\002 \001(\t\022V\n\005media\030\003 \001(\0132G" - + ".google.cloud.dialogflow.v2beta1.Intent." - + "Message.RbmCardContent.RbmMedia\022R\n\013sugge" - + "stions\030\004 \003(\0132=.google.cloud.dialogflow.v" - + "2beta1.Intent.Message.RbmSuggestion\032\326\001\n\010" - + "RbmMedia\022\020\n\010file_uri\030\001 \001(\t\022\025\n\rthumbnail_" - + "uri\030\002 \001(\t\022^\n\006height\030\003 \001(\0162N.google.cloud" - + ".dialogflow.v2beta1.Intent.Message.RbmCa" - + "rdContent.RbmMedia.Height\"A\n\006Height\022\026\n\022H" - + "EIGHT_UNSPECIFIED\020\000\022\t\n\005SHORT\020\001\022\n\n\006MEDIUM" - + "\020\002\022\010\n\004TALL\020\003\032\307\001\n\rRbmSuggestion\022R\n\005reply\030" - + "\001 \001(\0132A.google.cloud.dialogflow.v2beta1." - + "Intent.Message.RbmSuggestedReplyH\000\022T\n\006ac" - + "tion\030\002 \001(\0132B.google.cloud.dialogflow.v2b" - + "eta1.Intent.Message.RbmSuggestedActionH\000" - + "B\014\n\nsuggestion\0328\n\021RbmSuggestedReply\022\014\n\004t" - + "ext\030\001 \001(\t\022\025\n\rpostback_data\030\002 \001(\t\032\233\004\n\022Rbm" - + "SuggestedAction\022\014\n\004text\030\001 \001(\t\022\025\n\rpostbac" - + "k_data\030\002 \001(\t\022i\n\004dial\030\003 \001(\0132Y.google.clou" - + "d.dialogflow.v2beta1.Intent.Message.RbmS" - + "uggestedAction.RbmSuggestedActionDialH\000\022" - + "p\n\010open_url\030\004 \001(\0132\\.google.cloud.dialogf" - + "low.v2beta1.Intent.Message.RbmSuggestedA" - + "ction.RbmSuggestedActionOpenUriH\000\022|\n\016sha" - + "re_location\030\005 \001(\0132b.google.cloud.dialogf" - + "low.v2beta1.Intent.Message.RbmSuggestedA" - + "ction.RbmSuggestedActionShareLocationH\000\032" - + ".\n\026RbmSuggestedActionDial\022\024\n\014phone_numbe" - + "r\030\001 \001(\t\032(\n\031RbmSuggestedActionOpenUri\022\013\n\003" - + "uri\030\001 \001(\t\032!\n\037RbmSuggestedActionShareLoca" - + "tionB\010\n\006action\032\216\004\n\014MediaContent\022b\n\nmedia" - + "_type\030\001 \001(\0162N.google.cloud.dialogflow.v2" - + "beta1.Intent.Message.MediaContent.Respon" - + "seMediaType\022g\n\rmedia_objects\030\002 \003(\0132P.goo" - + "gle.cloud.dialogflow.v2beta1.Intent.Mess" - + "age.MediaContent.ResponseMediaObject\032\353\001\n" - + "\023ResponseMediaObject\022\014\n\004name\030\001 \001(\t\022\023\n\013de" - + "scription\030\002 \001(\t\022L\n\013large_image\030\003 \001(\01325.g" - + "oogle.cloud.dialogflow.v2beta1.Intent.Me" - + "ssage.ImageH\000\022E\n\004icon\030\004 \001(\01325.google.clo" - + "ud.dialogflow.v2beta1.Intent.Message.Ima" - + "geH\000\022\023\n\013content_url\030\005 \001(\tB\007\n\005image\"C\n\021Re" - + "sponseMediaType\022#\n\037RESPONSE_MEDIA_TYPE_U" - + "NSPECIFIED\020\000\022\t\n\005AUDIO\020\001\032\200\007\n\022BrowseCarous" - + "elCard\022h\n\005items\030\001 \003(\0132Y.google.cloud.dia" - + "logflow.v2beta1.Intent.Message.BrowseCar" - + "ouselCard.BrowseCarouselCardItem\022u\n\025imag" - + "e_display_options\030\002 \001(\0162V.google.cloud.d" - + "ialogflow.v2beta1.Intent.Message.BrowseC" - + "arouselCard.ImageDisplayOptions\032\220\004\n\026Brow" - + "seCarouselCardItem\022\200\001\n\017open_uri_action\030\001" - + " \001(\0132g.google.cloud.dialogflow.v2beta1.I" - + "ntent.Message.BrowseCarouselCard.BrowseC" - + "arouselCardItem.OpenUrlAction\022\r\n\005title\030\002" - + " \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030\004 \001(\013" - + "25.google.cloud.dialogflow.v2beta1.Inten" - + "t.Message.Image\022\016\n\006footer\030\005 \001(\t\032\370\001\n\rOpen" - + "UrlAction\022\013\n\003url\030\001 \001(\t\022\212\001\n\rurl_type_hint" - + "\030\003 \001(\0162s.google.cloud.dialogflow.v2beta1" - + ".Intent.Message.BrowseCarouselCard.Brows" - + "eCarouselCardItem.OpenUrlAction.UrlTypeH" - + "int\"M\n\013UrlTypeHint\022\035\n\031URL_TYPE_HINT_UNSP" - + "ECIFIED\020\000\022\016\n\nAMP_ACTION\020\001\022\017\n\013AMP_CONTENT" - + "\020\002\"v\n\023ImageDisplayOptions\022%\n!IMAGE_DISPL" - + "AY_OPTIONS_UNSPECIFIED\020\000\022\010\n\004GRAY\020\001\022\t\n\005WH" - + "ITE\020\002\022\013\n\007CROPPED\020\003\022\026\n\022BLURRED_BACKGROUND" - + "\020\004\032\356\002\n\tTableCard\022\r\n\005title\030\001 \001(\t\022\020\n\010subti" - + "tle\030\002 \001(\t\022D\n\005image\030\003 \001(\01325.google.cloud." - + "dialogflow.v2beta1.Intent.Message.Image\022" - + "[\n\021column_properties\030\004 \003(\0132@.google.clou" - + "d.dialogflow.v2beta1.Intent.Message.Colu" - + "mnProperties\022J\n\004rows\030\005 \003(\0132<.google.clou" - + "d.dialogflow.v2beta1.Intent.Message.Tabl" - + "eCardRow\022Q\n\007buttons\030\006 \003(\0132@.google.cloud" - + ".dialogflow.v2beta1.Intent.Message.Basic" - + "Card.Button\032\372\001\n\020ColumnProperties\022\016\n\006head" - + "er\030\001 \001(\t\022r\n\024horizontal_alignment\030\002 \001(\0162T" - + ".google.cloud.dialogflow.v2beta1.Intent." - + "Message.ColumnProperties.HorizontalAlign" - + "ment\"b\n\023HorizontalAlignment\022$\n HORIZONTA" - + "L_ALIGNMENT_UNSPECIFIED\020\000\022\013\n\007LEADING\020\001\022\n" - + "\n\006CENTER\020\002\022\014\n\010TRAILING\020\003\032s\n\014TableCardRow" - + "\022L\n\005cells\030\001 \003(\0132=.google.cloud.dialogflo" - + "w.v2beta1.Intent.Message.TableCardCell\022\025" - + "\n\rdivider_after\030\002 \001(\010\032\035\n\rTableCardCell\022\014" - + "\n\004text\030\001 \001(\t\"\257\001\n\010Platform\022\030\n\024PLATFORM_UN" - + "SPECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020\002\022\014\n\010" - + "TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004LINE\020\006" - + "\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022\r\n\tTE" - + "LEPHONY\020\n\022\023\n\017GOOGLE_HANGOUTS\020\013B\t\n\007messag" - + "e\032W\n\022FollowupIntentInfo\022\034\n\024followup_inte" - + "nt_name\030\001 \001(\t\022#\n\033parent_followup_intent_" - + "name\030\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHOOK_ST" - + "ATE_UNSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_ENABL" - + "ED\020\001\022*\n&WEBHOOK_STATE_ENABLED_FOR_SLOT_F" - + "ILLING\020\002:\221\001\352A\215\001\n dialogflow.googleapis.c" - + "om/Intent\022)projects/{project}/agent/inte" - + "nts/{intent}\022>projects/{project}/locatio" - + "ns/{location}/agent/intents/{intent}\"\323\001\n" - + "\022ListIntentsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002" - + "\372A\"\022 dialogflow.googleapis.com/Intent\022\032\n" - + "\rlanguage_code\030\002 \001(\tB\003\340A\001\022@\n\013intent_view" - + "\030\003 \001(\0162+.google.cloud.dialogflow.v2beta1" - + ".IntentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_t" - + "oken\030\005 \001(\t\"h\n\023ListIntentsResponse\0228\n\007int" - + "ents\030\001 \003(\0132\'.google.cloud.dialogflow.v2b" - + "eta1.Intent\022\027\n\017next_page_token\030\002 \001(\t\"\250\001\n" - + "\020GetIntentRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " dialogflow.googleapis.com/Intent\022\032\n\rlan" - + "guage_code\030\002 \001(\tB\003\340A\001\022@\n\013intent_view\030\003 \001" - + "(\0162+.google.cloud.dialogflow.v2beta1.Int" - + "entView\"\353\001\n\023CreateIntentRequest\0228\n\006paren" - + "t\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.googleapis.c" - + "om/Intent\022<\n\006intent\030\002 \001(\0132\'.google.cloud" - + ".dialogflow.v2beta1.IntentB\003\340A\002\022\032\n\rlangu" - + "age_code\030\003 \001(\tB\003\340A\001\022@\n\013intent_view\030\004 \001(\016" - + "2+.google.cloud.dialogflow.v2beta1.Inten" - + "tView\"\342\001\n\023UpdateIntentRequest\022<\n\006intent\030" - + "\001 \001(\0132\'.google.cloud.dialogflow.v2beta1." - + "IntentB\003\340A\002\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022" - + "/\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" - + "ieldMask\022@\n\013intent_view\030\004 \001(\0162+.google.c" - + "loud.dialogflow.v2beta1.IntentView\"M\n\023De" - + "leteIntentRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " dialogflow.googleapis.com/Intent\"\335\002\n\031Ba" - + "tchUpdateIntentsRequest\0228\n\006parent\030\001 \001(\tB" - + "(\340A\002\372A\"\022 dialogflow.googleapis.com/Inten" - + "t\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023intent_" - + "batch_inline\030\003 \001(\0132,.google.cloud.dialog" - + "flow.v2beta1.IntentBatchH\000\022\032\n\rlanguage_c" - + "ode\030\004 \001(\tB\003\340A\001\022/\n\013update_mask\030\005 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\022@\n\013intent_view\030\006" - + " \001(\0162+.google.cloud.dialogflow.v2beta1.I" - + "ntentViewB\016\n\014intent_batch\"V\n\032BatchUpdate" - + "IntentsResponse\0228\n\007intents\030\001 \003(\0132\'.googl" - + "e.cloud.dialogflow.v2beta1.Intent\"\224\001\n\031Ba" - + "tchDeleteIntentsRequest\0228\n\006parent\030\001 \001(\tB" - + "(\340A\002\372A\"\022 dialogflow.googleapis.com/Inten" - + "t\022=\n\007intents\030\002 \003(\0132\'.google.cloud.dialog" - + "flow.v2beta1.IntentB\003\340A\002\"G\n\013IntentBatch\022" - + "8\n\007intents\030\001 \003(\0132\'.google.cloud.dialogfl" - + "ow.v2beta1.Intent*?\n\nIntentView\022\033\n\027INTEN" - + "T_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW_FULL" - + "\020\0012\241\022\n\007Intents\022\216\003\n\013ListIntents\0223.google." - + "cloud.dialogflow.v2beta1.ListIntentsRequ" - + "est\0324.google.cloud.dialogflow.v2beta1.Li" - + "stIntentsResponse\"\223\002\332A\006parent\332A\024parent,l" - + "anguage_code\202\323\344\223\002\354\001\022*/v2beta1/{parent=pr" - + "ojects/*/agent}/intentsZ8\0226/v2beta1/{par" - + "ent=projects/*/locations/*/agent}/intent" - + "sZ;\0229/v2beta1/{parent=projects/*/agent/e" - + "nvironments/*}/intentsZG\022E/v2beta1/{pare" - + "nt=projects/*/locations/*/agent/environm" - + "ents/*}/intents\022\362\001\n\tGetIntent\0221.google.c" - + "loud.dialogflow.v2beta1.GetIntentRequest" - + "\032\'.google.cloud.dialogflow.v2beta1.Inten" - + "t\"\210\001\332A\004name\332A\022name,language_code\202\323\344\223\002f\022*" - + "/v2beta1/{name=projects/*/agent/intents/" - + "*}Z8\0226/v2beta1/{name=projects/*/location" - + "s/*/agent/intents/*}\022\232\002\n\014CreateIntent\0224." - + "google.cloud.dialogflow.v2beta1.CreateIn" - + "tentRequest\032\'.google.cloud.dialogflow.v2" - + "beta1.Intent\"\252\001\332A\rparent,intent\332A\033parent" - + ",intent,language_code\202\323\344\223\002v\"*/v2beta1/{p" - + "arent=projects/*/agent}/intents:\006intentZ" - + "@\"6/v2beta1/{parent=projects/*/locations" - + "/*/agent}/intents:\006intent\022\323\002\n\014UpdateInte" - + "nt\0224.google.cloud.dialogflow.v2beta1.Upd" + + ".RbmSuggestedAction.RbmSuggestedActionDi" + + "alH\000\022p\n\010open_url\030\004 \001(\0132\\.google.cloud.di" + + "alogflow.v2beta1.Intent.Message.RbmSugge" + + "stedAction.RbmSuggestedActionOpenUriH\000\022|" + + "\n\016share_location\030\005 \001(\0132b.google.cloud.di" + + "alogflow.v2beta1.Intent.Message.RbmSugge" + + "stedAction.RbmSuggestedActionShareLocati" + + "onH\000\032.\n\026RbmSuggestedActionDial\022\024\n\014phone_" + + "number\030\001 \001(\t\032(\n\031RbmSuggestedActionOpenUr" + + "i\022\013\n\003uri\030\001 \001(\t\032!\n\037RbmSuggestedActionShar" + + "eLocationB\010\n\006action\032\216\004\n\014MediaContent\022b\n\n" + + "media_type\030\001 \001(\0162N.google.cloud.dialogfl" + + "ow.v2beta1.Intent.Message.MediaContent.R" + + "esponseMediaType\022g\n\rmedia_objects\030\002 \003(\0132" + + "P.google.cloud.dialogflow.v2beta1.Intent" + + ".Message.MediaContent.ResponseMediaObjec" + + "t\032\353\001\n\023ResponseMediaObject\022\014\n\004name\030\001 \001(\t\022" + + "\023\n\013description\030\002 \001(\t\022L\n\013large_image\030\003 \001(" + + "\01325.google.cloud.dialogflow.v2beta1.Inte" + + "nt.Message.ImageH\000\022E\n\004icon\030\004 \001(\01325.googl" + + "e.cloud.dialogflow.v2beta1.Intent.Messag" + + "e.ImageH\000\022\023\n\013content_url\030\005 \001(\tB\007\n\005image\"" + + "C\n\021ResponseMediaType\022#\n\037RESPONSE_MEDIA_T" + + "YPE_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\032\200\007\n\022BrowseC" + + "arouselCard\022h\n\005items\030\001 \003(\0132Y.google.clou" + + "d.dialogflow.v2beta1.Intent.Message.Brow" + + "seCarouselCard.BrowseCarouselCardItem\022u\n" + + "\025image_display_options\030\002 \001(\0162V.google.cl" + + "oud.dialogflow.v2beta1.Intent.Message.Br" + + "owseCarouselCard.ImageDisplayOptions\032\220\004\n" + + "\026BrowseCarouselCardItem\022\200\001\n\017open_uri_act" + + "ion\030\001 \001(\0132g.google.cloud.dialogflow.v2be" + + "ta1.Intent.Message.BrowseCarouselCard.Br" + + "owseCarouselCardItem.OpenUrlAction\022\r\n\005ti" + + "tle\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022D\n\005image\030" + + "\004 \001(\01325.google.cloud.dialogflow.v2beta1." + + "Intent.Message.Image\022\016\n\006footer\030\005 \001(\t\032\370\001\n" + + "\rOpenUrlAction\022\013\n\003url\030\001 \001(\t\022\212\001\n\rurl_type" + + "_hint\030\003 \001(\0162s.google.cloud.dialogflow.v2" + + "beta1.Intent.Message.BrowseCarouselCard." + + "BrowseCarouselCardItem.OpenUrlAction.Url" + + "TypeHint\"M\n\013UrlTypeHint\022\035\n\031URL_TYPE_HINT" + + "_UNSPECIFIED\020\000\022\016\n\nAMP_ACTION\020\001\022\017\n\013AMP_CO" + + "NTENT\020\002\"v\n\023ImageDisplayOptions\022%\n!IMAGE_" + + "DISPLAY_OPTIONS_UNSPECIFIED\020\000\022\010\n\004GRAY\020\001\022" + + "\t\n\005WHITE\020\002\022\013\n\007CROPPED\020\003\022\026\n\022BLURRED_BACKG" + + "ROUND\020\004\032\356\002\n\tTableCard\022\r\n\005title\030\001 \001(\t\022\020\n\010" + + "subtitle\030\002 \001(\t\022D\n\005image\030\003 \001(\01325.google.c" + + "loud.dialogflow.v2beta1.Intent.Message.I" + + "mage\022[\n\021column_properties\030\004 \003(\0132@.google" + + ".cloud.dialogflow.v2beta1.Intent.Message" + + ".ColumnProperties\022J\n\004rows\030\005 \003(\0132<.google" + + ".cloud.dialogflow.v2beta1.Intent.Message" + + ".TableCardRow\022Q\n\007buttons\030\006 \003(\0132@.google." + + "cloud.dialogflow.v2beta1.Intent.Message." + + "BasicCard.Button\032\372\001\n\020ColumnProperties\022\016\n" + + "\006header\030\001 \001(\t\022r\n\024horizontal_alignment\030\002 " + + "\001(\0162T.google.cloud.dialogflow.v2beta1.In" + + "tent.Message.ColumnProperties.Horizontal" + + "Alignment\"b\n\023HorizontalAlignment\022$\n HORI" + + "ZONTAL_ALIGNMENT_UNSPECIFIED\020\000\022\013\n\007LEADIN" + + "G\020\001\022\n\n\006CENTER\020\002\022\014\n\010TRAILING\020\003\032s\n\014TableCa" + + "rdRow\022L\n\005cells\030\001 \003(\0132=.google.cloud.dial" + + "ogflow.v2beta1.Intent.Message.TableCardC" + + "ell\022\025\n\rdivider_after\030\002 \001(\010\032\035\n\rTableCardC" + + "ell\022\014\n\004text\030\001 \001(\t\"\257\001\n\010Platform\022\030\n\024PLATFO" + + "RM_UNSPECIFIED\020\000\022\014\n\010FACEBOOK\020\001\022\t\n\005SLACK\020" + + "\002\022\014\n\010TELEGRAM\020\003\022\007\n\003KIK\020\004\022\t\n\005SKYPE\020\005\022\010\n\004L" + + "INE\020\006\022\t\n\005VIBER\020\007\022\025\n\021ACTIONS_ON_GOOGLE\020\010\022" + + "\r\n\tTELEPHONY\020\n\022\023\n\017GOOGLE_HANGOUTS\020\013B\t\n\007m" + + "essage\032W\n\022FollowupIntentInfo\022\034\n\024followup" + + "_intent_name\030\001 \001(\t\022#\n\033parent_followup_in" + + "tent_name\030\002 \001(\t\"t\n\014WebhookState\022\035\n\031WEBHO" + + "OK_STATE_UNSPECIFIED\020\000\022\031\n\025WEBHOOK_STATE_" + + "ENABLED\020\001\022*\n&WEBHOOK_STATE_ENABLED_FOR_S" + + "LOT_FILLING\020\002:\221\001\352A\215\001\n dialogflow.googlea" + + "pis.com/Intent\022)projects/{project}/agent" + + "/intents/{intent}\022>projects/{project}/lo" + + "cations/{location}/agent/intents/{intent" + + "}\"\323\001\n\022ListIntentsRequest\0228\n\006parent\030\001 \001(\t" + + "B(\340A\002\372A\"\022 dialogflow.googleapis.com/Inte" + + "nt\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022@\n\013intent" + + "_view\030\003 \001(\0162+.google.cloud.dialogflow.v2" + + "beta1.IntentView\022\021\n\tpage_size\030\004 \001(\005\022\022\n\np" + + "age_token\030\005 \001(\t\"h\n\023ListIntentsResponse\0228" + + "\n\007intents\030\001 \003(\0132\'.google.cloud.dialogflo" + + "w.v2beta1.Intent\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\250\001\n\020GetIntentRequest\0226\n\004name\030\001 \001(\tB(\340A" + + "\002\372A\"\n dialogflow.googleapis.com/Intent\022\032" + + "\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022@\n\013intent_vie" + + "w\030\003 \001(\0162+.google.cloud.dialogflow.v2beta" + + "1.IntentView\"\353\001\n\023CreateIntentRequest\0228\n\006" + + "parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.googlea" + + "pis.com/Intent\022<\n\006intent\030\002 \001(\0132\'.google." + + "cloud.dialogflow.v2beta1.IntentB\003\340A\002\022\032\n\r" + + "language_code\030\003 \001(\tB\003\340A\001\022@\n\013intent_view\030" + + "\004 \001(\0162+.google.cloud.dialogflow.v2beta1." + + "IntentView\"\342\001\n\023UpdateIntentRequest\022<\n\006in" + + "tent\030\001 \001(\0132\'.google.cloud.dialogflow.v2b" + + "eta1.IntentB\003\340A\002\022\032\n\rlanguage_code\030\002 \001(\tB" + + "\003\340A\001\022/\n\013update_mask\030\003 \001(\0132\032.google.proto" + + "buf.FieldMask\022@\n\013intent_view\030\004 \001(\0162+.goo" + + "gle.cloud.dialogflow.v2beta1.IntentView\"" + + "M\n\023DeleteIntentRequest\0226\n\004name\030\001 \001(\tB(\340A" + + "\002\372A\"\n dialogflow.googleapis.com/Intent\"\335" + + "\002\n\031BatchUpdateIntentsRequest\0228\n\006parent\030\001" + + " \001(\tB(\340A\002\372A\"\022 dialogflow.googleapis.com/" + + "Intent\022\032\n\020intent_batch_uri\030\002 \001(\tH\000\022K\n\023in" + + "tent_batch_inline\030\003 \001(\0132,.google.cloud.d" + + "ialogflow.v2beta1.IntentBatchH\000\022\032\n\rlangu" + + "age_code\030\004 \001(\tB\003\340A\001\022/\n\013update_mask\030\005 \001(\013" + + "2\032.google.protobuf.FieldMask\022@\n\013intent_v" + + "iew\030\006 \001(\0162+.google.cloud.dialogflow.v2be" + + "ta1.IntentViewB\016\n\014intent_batch\"V\n\032BatchU" + + "pdateIntentsResponse\0228\n\007intents\030\001 \003(\0132\'." + + "google.cloud.dialogflow.v2beta1.Intent\"\224" + + "\001\n\031BatchDeleteIntentsRequest\0228\n\006parent\030\001" + + " \001(\tB(\340A\002\372A\"\022 dialogflow.googleapis.com/" + + "Intent\022=\n\007intents\030\002 \003(\0132\'.google.cloud.d" + + "ialogflow.v2beta1.IntentB\003\340A\002\"G\n\013IntentB" + + "atch\0228\n\007intents\030\001 \003(\0132\'.google.cloud.dia" + + "logflow.v2beta1.Intent*?\n\nIntentView\022\033\n\027" + + "INTENT_VIEW_UNSPECIFIED\020\000\022\024\n\020INTENT_VIEW" + + "_FULL\020\0012\241\022\n\007Intents\022\216\003\n\013ListIntents\0223.go" + + "ogle.cloud.dialogflow.v2beta1.ListIntent" + + "sRequest\0324.google.cloud.dialogflow.v2bet" + + "a1.ListIntentsResponse\"\223\002\332A\006parent\332A\024par" + + "ent,language_code\202\323\344\223\002\354\001\022*/v2beta1/{pare" + + "nt=projects/*/agent}/intentsZ8\0226/v2beta1" + + "/{parent=projects/*/locations/*/agent}/i" + + "ntentsZ;\0229/v2beta1/{parent=projects/*/ag" + + "ent/environments/*}/intentsZG\022E/v2beta1/" + + "{parent=projects/*/locations/*/agent/env" + + "ironments/*}/intents\022\362\001\n\tGetIntent\0221.goo" + + "gle.cloud.dialogflow.v2beta1.GetIntentRe" + + "quest\032\'.google.cloud.dialogflow.v2beta1." + + "Intent\"\210\001\332A\004name\332A\022name,language_code\202\323\344" + + "\223\002f\022*/v2beta1/{name=projects/*/agent/int" + + "ents/*}Z8\0226/v2beta1/{name=projects/*/loc" + + "ations/*/agent/intents/*}\022\232\002\n\014CreateInte" + + "nt\0224.google.cloud.dialogflow.v2beta1.Cre" + "ateIntentRequest\032\'.google.cloud.dialogfl" - + "ow.v2beta1.Intent\"\343\001\332A\022intent,update_mas" - + "k\332A\006intent\332A\024intent,language_code\332A inte" - + "nt,language_code,update_mask\202\323\344\223\002\204\00121/v2" - + "beta1/{intent.name=projects/*/agent/inte" - + "nts/*}:\006intentZG2=/v2beta1/{intent.name=" - + "projects/*/locations/*/agent/intents/*}:" - + "\006intent\022\321\001\n\014DeleteIntent\0224.google.cloud." - + "dialogflow.v2beta1.DeleteIntentRequest\032\026" - + ".google.protobuf.Empty\"s\332A\004name\202\323\344\223\002f**/" - + "v2beta1/{name=projects/*/agent/intents/*" - + "}Z8*6/v2beta1/{name=projects/*/locations" - + "/*/agent/intents/*}\022\213\003\n\022BatchUpdateInten" - + "ts\022:.google.cloud.dialogflow.v2beta1.Bat" - + "chUpdateIntentsRequest\032\035.google.longrunn" - + "ing.Operation\"\231\002\312AT\n:google.cloud.dialog" - + "flow.v2beta1.BatchUpdateIntentsResponse\022" - + "\026google.protobuf.Struct\332A\027parent,intent_" - + "batch_uri\332A\032parent,intent_batch_inline\202\323" - + "\344\223\002\204\001\"6/v2beta1/{parent=projects/*/agent" - + "}/intents:batchUpdate:\001*ZG\"B/v2beta1/{pa" - + "rent=projects/*/locations/*/agent}/inten" - + "ts:batchUpdate:\001*\022\300\002\n\022BatchDeleteIntents" - + "\022:.google.cloud.dialogflow.v2beta1.Batch" - + "DeleteIntentsRequest\032\035.google.longrunnin" - + "g.Operation\"\316\001\312A/\n\025google.protobuf.Empty" - + "\022\026google.protobuf.Struct\332A\016parent,intent" - + "s\202\323\344\223\002\204\001\"6/v2beta1/{parent=projects/*/ag" - + "ent}/intents:batchDelete:\001*ZG\"B/v2beta1/" - + "{parent=projects/*/locations/*/agent}/in" - + "tents:batchDelete:\001*\032x\312A\031dialogflow.goog" - + "leapis.com\322AYhttps://www.googleapis.com/" - + "auth/cloud-platform,https://www.googleap" - + "is.com/auth/dialogflowB\240\001\n#com.google.cl" - + "oud.dialogflow.v2beta1B\013IntentProtoP\001ZCc" - + "loud.google.com/go/dialogflow/apiv2beta1" - + "/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google" - + ".Cloud.Dialogflow.V2Beta1b\006proto3" + + "ow.v2beta1.Intent\"\252\001\332A\rparent,intent\332A\033p" + + "arent,intent,language_code\202\323\344\223\002v\"*/v2bet" + + "a1/{parent=projects/*/agent}/intents:\006in" + + "tentZ@\"6/v2beta1/{parent=projects/*/loca" + + "tions/*/agent}/intents:\006intent\022\323\002\n\014Updat" + + "eIntent\0224.google.cloud.dialogflow.v2beta" + + "1.UpdateIntentRequest\032\'.google.cloud.dia" + + "logflow.v2beta1.Intent\"\343\001\332A\022intent,updat" + + "e_mask\332A\006intent\332A\024intent,language_code\332A" + + " intent,language_code,update_mask\202\323\344\223\002\204\001" + + "21/v2beta1/{intent.name=projects/*/agent" + + "/intents/*}:\006intentZG2=/v2beta1/{intent." + + "name=projects/*/locations/*/agent/intent" + + "s/*}:\006intent\022\321\001\n\014DeleteIntent\0224.google.c" + + "loud.dialogflow.v2beta1.DeleteIntentRequ" + + "est\032\026.google.protobuf.Empty\"s\332A\004name\202\323\344\223" + + "\002f**/v2beta1/{name=projects/*/agent/inte" + + "nts/*}Z8*6/v2beta1/{name=projects/*/loca" + + "tions/*/agent/intents/*}\022\213\003\n\022BatchUpdate" + + "Intents\022:.google.cloud.dialogflow.v2beta" + + "1.BatchUpdateIntentsRequest\032\035.google.lon" + + "grunning.Operation\"\231\002\312AT\n:google.cloud.d" + + "ialogflow.v2beta1.BatchUpdateIntentsResp" + + "onse\022\026google.protobuf.Struct\332A\027parent,in" + + "tent_batch_uri\332A\032parent,intent_batch_inl" + + "ine\202\323\344\223\002\204\001\"6/v2beta1/{parent=projects/*/" + + "agent}/intents:batchUpdate:\001*ZG\"B/v2beta" + + "1/{parent=projects/*/locations/*/agent}/" + + "intents:batchUpdate:\001*\022\300\002\n\022BatchDeleteIn" + + "tents\022:.google.cloud.dialogflow.v2beta1." + + "BatchDeleteIntentsRequest\032\035.google.longr" + + "unning.Operation\"\316\001\312A/\n\025google.protobuf." + + "Empty\022\026google.protobuf.Struct\332A\016parent,i" + + "ntents\202\323\344\223\002\204\001\"6/v2beta1/{parent=projects" + + "/*/agent}/intents:batchDelete:\001*ZG\"B/v2b" + + "eta1/{parent=projects/*/locations/*/agen" + + "t}/intents:batchDelete:\001*\032x\312A\031dialogflow" + + ".googleapis.com\322AYhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/dialogflowB\240\001\n#com.goog" + + "le.cloud.dialogflow.v2beta1B\013IntentProto" + + "P\001ZCcloud.google.com/go/dialogflow/apiv2" + + "beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037G" + + "oogle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index 632dab338a10..c816fefaa0ab 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -258,7 +258,7 @@ message Intent { } // Output only. The unique identifier of this training phrase. - string name = 1; + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The type of the training phrase. Type type = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 0b526e01deaf..6a2ea5e3cad6 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.49.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.50.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 42377be8a159..794ab628b7c2 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.50.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/README.md b/java-dlp/README.md index 232e69872060..c55b22c7a00b 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.57.0 + 3.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.57.0' +implementation 'com.google.cloud:google-cloud-dlp:3.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.58.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/README.md b/java-dms/README.md index e57dd69a587b..971c01c755a6 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.52.0 + 2.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.52.0' +implementation 'com.google.cloud:google-cloud-dms:2.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 95c019071c91..5572155c1b4a 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.57.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.58.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/README.md b/java-domains/README.md index fd28ae436e1d..58f00a8c2669 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.50.0 + 1.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.50.0' +implementation 'com.google.cloud:google-cloud-domains:1.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 3aca208512c3..17da9cf6abb8 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.21.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.22.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index b69325baba5c..e5a1e385310c 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.49.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.50.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 7bc0835fa846..86000f5c599a 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.174.0-beta + 0.175.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.174.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.175.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.174.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.175.0-beta" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.174.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.175.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index e0527d23c97c..ec7cbf1c735b 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.53.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 8f58c1ba1af3..f1b205065f82 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.53.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.54.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 8f3c5a3182b0..9f8cc37ef405 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.53.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/README.md b/java-filestore/README.md index 5a9c5ff105f5..0a6a6bf670bd 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.54.0' +implementation 'com.google.cloud:google-cloud-filestore:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/README.md b/java-functions/README.md index 345d189bab42..99d17fce4a1b 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.55.0' +implementation 'com.google.cloud:google-cloud-functions:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index bdbdbf912122..732b678b1bc1 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.8.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.9.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index a9794ed2c1e9..937c284598d5 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.52.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.53.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 4bee2b20a2e5..799cdfe6eab3 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.54.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index b4c8021e47e3..80a13cc02911 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.52.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.53.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/README.md b/java-gkehub/README.md index f71c8938c777..1fe16044f20c 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.53.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/README.md b/java-grafeas/README.md index e3ae1182fb73..314f167b58bd 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.54.0' +implementation 'io.grafeas:grafeas:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.54.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index d12463a5f0b7..f6704a6c0202 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.53.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 5b3487ee5c09..a183f93f503f 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.48.0 + 3.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.48.0' +implementation 'com.google.cloud:google-iam-admin:3.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.48.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.49.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam/README.md b/java-iam/README.md index 14aa39bd0f6e..3a3a67a28eb6 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.51.0' +implementation 'com.google.cloud:google-iam-policy:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 78a4c1c5ad5a..3aec7444acb4 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.53.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/README.md b/java-iap/README.md index b6b90d9384bc..6c8efa203521 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.9.0' +implementation 'com.google.cloud:google-cloud-iap:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.10.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/README.md b/java-ids/README.md index 7c0afe04efef..4a62e6497a45 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.52.0' +implementation 'com.google.cloud:google-cloud-ids:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 3728dc8deabb..b79c2cb7e18e 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.30.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.31.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java index d25ed8ad91fb..a635c6f9bc68 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java @@ -236,7 +236,7 @@ * * *

      ListResources - *

      Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + *

      Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

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

      *
        @@ -1845,7 +1845,7 @@ public final UnaryCallable getResourceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

        Sample code: * @@ -1879,7 +1879,7 @@ public final ListResourcesPagedResponse listResources(RevisionName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

        Sample code: * @@ -1910,7 +1910,7 @@ public final ListResourcesPagedResponse listResources(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

        Sample code: * @@ -1946,7 +1946,7 @@ public final ListResourcesPagedResponse listResources(ListResourcesRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

        Sample code: * @@ -1982,7 +1982,7 @@ public final ListResourcesPagedResponse listResources(ListResourcesRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + * Lists [Resources][google.cloud.config.v1.Resource] in a given revision. * *

        Sample code: * diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java index 43c00aeef452..e49d0c779a9b 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java @@ -997,7 +997,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -1006,8 +1008,17 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -1186,151 +1197,151 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .listDeploymentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listRevisionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getRevisionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getResourceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listResourcesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportDeploymentStatefileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportRevisionStatefileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .importStatefileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteStatefileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .lockDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .unlockDeploymentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportLockInfoSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createPreviewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getPreviewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listPreviewsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deletePreviewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportPreviewResultSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listTerraformVersionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getTerraformVersionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createDeploymentOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Deployment.class)) @@ -1353,8 +1364,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Deployment.class)) @@ -1377,8 +1388,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Deployment.class)) @@ -1401,8 +1412,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Deployment.class)) @@ -1425,8 +1436,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Deployment.class)) @@ -1449,8 +1460,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Preview.class)) @@ -1473,8 +1484,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Preview.class)) diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java index 5a5bbcf1d0df..a596ded22250 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java @@ -1795,6 +1795,7 @@ public void createPreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1860,6 +1861,7 @@ public void createPreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1925,6 +1927,7 @@ public void getPreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -1983,6 +1986,7 @@ public void getPreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -2141,6 +2145,7 @@ public void deletePreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2204,6 +2209,7 @@ public void deletePreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java index fe5de4eadbd8..a6dac4074d02 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java @@ -1622,6 +1622,7 @@ public void createPreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1685,6 +1686,7 @@ public void createPreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1748,6 +1750,7 @@ public void getPreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); mockConfig.addResponse(expectedResponse); @@ -1800,6 +1803,7 @@ public void getPreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); mockConfig.addResponse(expectedResponse); @@ -1940,6 +1944,7 @@ public void deletePreviewTest() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2000,6 +2005,7 @@ public void deletePreviewTest2() throws Exception { .setLogs("logs3327407") .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") + .putAllAnnotations(new HashMap()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java index c52d5ffa8349..8b3d93e15bea 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java @@ -1208,7 +1208,7 @@ default void getResource( * * *

        -     * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.
        +     * Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
              * 
        */ default void listResources( @@ -1592,7 +1592,7 @@ public void getResource( * * *
        -     * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.
        +     * Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
              * 
        */ public void listResources( @@ -1964,7 +1964,7 @@ public com.google.cloud.config.v1.Resource getResource( * * *
        -     * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.
        +     * Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
              * 
        */ public com.google.cloud.config.v1.ListResourcesResponse listResources( @@ -2291,7 +2291,7 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
        -     * Lists [Resource][google.cloud.config.v1.Resource]s in a given revision.
        +     * Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java index fab74b3c7a58..5d6fc368d407 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java @@ -192,6 +192,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_Preview_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_config_v1_Preview_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_config_v1_PreviewOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -285,7 +289,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.config.v1.TerraformErrorB\003" + "\340A\003\022\027\n\nerror_logs\030\016 \001(\tB\003\340A\003\022&\n\024artifact" + "s_gcs_bucket\030\017 \001(\tB\003\340A\001H\001\210\001\001\022G\n\017service_" - + "account\030\020 \001(\tB)\340A\001\372A#\n!iam.googleapis.co" + + "account\030\020 \001(\tB)\340A\002\372A#\n!iam.googleapis.co" + "m/ServiceAccountH\002\210\001\001\022&\n\031import_existing" + "_resources\030\021 \001(\010H\003\210\001\001\022F\n\013worker_pool\030\023 \001" + "(\tB,\340A\001\372A&\n$cloudbuild.googleapis.com/Wo" @@ -316,405 +320,408 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "}/deployments/{deployment}B\013\n\tblueprintB" + "\027\n\025_artifacts_gcs_bucketB\022\n\020_service_acc" + "ountB\034\n\032_import_existing_resourcesB\016\n\014_w" - + "orker_poolB\030\n\026_tf_version_constraint\"\251\002\n" - + "\022TerraformBlueprint\022\031\n\ngcs_source\030\001 \001(\tB" - + "\003\340A\002H\000\022<\n\ngit_source\030\002 \001(\0132!.google.clou" - + "d.config.v1.GitSourceB\003\340A\002H\000\022Q\n\014input_va" - + "lues\030\004 \003(\0132;.google.cloud.config.v1.Terr" - + "aformBlueprint.InputValuesEntry\032]\n\020Input" - + "ValuesEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132" - + ").google.cloud.config.v1.TerraformVariab" - + "le:\0028\001B\010\n\006source\"@\n\021TerraformVariable\022+\n" - + "\013input_value\030\005 \001(\0132\026.google.protobuf.Val" - + "ue\"\317\001\n\014ApplyResults\022\017\n\007content\030\001 \001(\t\022\021\n\t" - + "artifacts\030\002 \001(\t\022B\n\007outputs\030\003 \003(\01321.googl" - + "e.cloud.config.v1.ApplyResults.OutputsEn" - + "try\032W\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005valu" - + "e\030\002 \001(\0132\'.google.cloud.config.v1.Terrafo" - + "rmOutput:\0028\001\"K\n\017TerraformOutput\022\021\n\tsensi" - + "tive\030\001 \001(\010\022%\n\005value\030\002 \001(\0132\026.google.proto" - + "buf.Value\"\234\001\n\026ListDeploymentsRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_" - + "by\030\005 \001(\t\"\200\001\n\027ListDeploymentsResponse\0227\n\013" - + "deployments\030\001 \003(\0132\".google.cloud.config." - + "v1.Deployment\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"N\n\024GetDeploymentRequ" - + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n config.google" - + "apis.com/Deployment\"\231\001\n\024ListRevisionsReq" - + "uest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n config.goo" - + "gleapis.com/Deployment\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\"z\n\025ListRevisionsResponse" - + "\0223\n\trevisions\030\001 \003(\0132 .google.cloud.confi" - + "g.v1.Revision\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"J\n\022GetRevisionReques" - + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036config.googleap" - + "is.com/Revision\"\306\001\n\027CreateDeploymentRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" - + "oogleapis.com/Location\022\032\n\rdeployment_id\030" - + "\002 \001(\tB\003\340A\002\022;\n\ndeployment\030\003 \001(\0132\".google." - + "cloud.config.v1.DeploymentB\003\340A\002\022\027\n\nreque" - + "st_id\030\004 \001(\tB\003\340A\001\"\245\001\n\027UpdateDeploymentReq" - + "uest\0224\n\013update_mask\030\001 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\001\022;\n\ndeployment\030\002 \001(\0132\"" - + ".google.cloud.config.v1.DeploymentB\003\340A\002\022" - + "\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\240\002\n\027DeleteDeplo" - + "ymentRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n conf" - + "ig.googleapis.com/Deployment\022\027\n\nrequest_" - + "id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\022X\n\rdel" - + "ete_policy\030\004 \001(\0162<.google.cloud.config.v" - + "1.DeleteDeploymentRequest.DeletePolicyB\003" - + "\340A\001\"F\n\014DeletePolicy\022\035\n\031DELETE_POLICY_UNS" - + "PECIFIED\020\000\022\n\n\006DELETE\020\001\022\013\n\007ABANDON\020\002\"\301\003\n\021" - + "OperationMetadata\022W\n\023deployment_metadata" - + "\030\010 \001(\01323.google.cloud.config.v1.Deployme" - + "ntOperationMetadataB\003\340A\003H\000\022Q\n\020preview_me" - + "tadata\030\t \001(\01320.google.cloud.config.v1.Pr" - + "eviewOperationMetadataB\003\340A\003H\000\0224\n\013create_" - + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" - + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" - + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" - + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B\023\n\021resource_m" - + "etadata\"\203\013\n\010Revision\022N\n\023terraform_bluepr" - + "int\030\006 \001(\0132*.google.cloud.config.v1.Terra" - + "formBlueprintB\003\340A\003H\000\022\014\n\004name\030\001 \001(\t\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022<\n\006action\030\004 \001(\0162\'" - + ".google.cloud.config.v1.Revision.ActionB" - + "\003\340A\003\022:\n\005state\030\005 \001(\0162&.google.cloud.confi" - + "g.v1.Revision.StateB\003\340A\003\022@\n\rapply_result" - + "s\030\007 \001(\0132$.google.cloud.config.v1.ApplyRe" - + "sultsB\003\340A\003\022\031\n\014state_detail\030\010 \001(\tB\003\340A\003\022C\n" - + "\nerror_code\030\t \001(\0162*.google.cloud.config." - + "v1.Revision.ErrorCodeB\003\340A\003\022\022\n\005build\030\n \001(" - + "\tB\003\340A\003\022\021\n\004logs\030\013 \001(\tB\003\340A\003\022>\n\ttf_errors\030\014" - + " \003(\0132&.google.cloud.config.v1.TerraformE" - + "rrorB\003\340A\003\022\027\n\nerror_logs\030\r \001(\tB\003\340A\003\022B\n\017se" - + "rvice_account\030\016 \001(\tB)\340A\003\372A#\n!iam.googlea" - + "pis.com/ServiceAccount\022&\n\031import_existin" - + "g_resources\030\017 \001(\010B\003\340A\003\022A\n\013worker_pool\030\021 " - + "\001(\tB,\340A\003\372A&\n$cloudbuild.googleapis.com/W" - + "orkerPool\022\"\n\025tf_version_constraint\030\022 \001(\t" - + "B\003\340A\003\022\027\n\ntf_version\030\023 \001(\tB\003\340A\003\022%\n\030quota_" - + "validation_results\030\035 \001(\tB\003\340A\003\022F\n\020quota_v" - + "alidation\030\024 \001(\0162\'.google.cloud.config.v1" - + ".QuotaValidationB\003\340A\001\"D\n\006Action\022\026\n\022ACTIO" - + "N_UNSPECIFIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022" - + "\n\n\006DELETE\020\003\"E\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\014\n\010APPLYING\020\001\022\013\n\007APPLIED\020\002\022\n\n\006FAILED" - + "\020\003\"\237\001\n\tErrorCode\022\032\n\026ERROR_CODE_UNSPECIFI" - + "ED\020\000\022!\n\035CLOUD_BUILD_PERMISSION_DENIED\020\001\022" - + "\032\n\026APPLY_BUILD_API_FAILED\020\004\022\032\n\026APPLY_BUI" - + "LD_RUN_FAILED\020\005\022\033\n\027QUOTA_VALIDATION_FAIL" - + "ED\020\007:z\352Aw\n\036config.googleapis.com/Revisio" - + "n\022Uprojects/{project}/locations/{locatio" - + "n}/deployments/{deployment}/revisions/{r" - + "evision}B\013\n\tblueprint\"\204\001\n\016TerraformError" - + "\022\030\n\020resource_address\030\001 \001(\t\022\032\n\022http_respo" - + "nse_code\030\002 \001(\005\022\031\n\021error_description\030\003 \001(" - + "\t\022!\n\005error\030\004 \001(\0132\022.google.rpc.Status\"v\n\t" - + "GitSource\022\026\n\004repo\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\033\n\tdir" - + "ectory\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\025\n\003ref\030\003 \001(\tB\003\340A\001" - + "H\002\210\001\001B\007\n\005_repoB\014\n\n_directoryB\006\n\004_ref\"\237\004\n" - + "\033DeploymentOperationMetadata\022P\n\004step\030\001 \001" - + "(\0162B.google.cloud.config.v1.DeploymentOp" - + "erationMetadata.DeploymentStep\022;\n\rapply_" - + "results\030\002 \001(\0132$.google.cloud.config.v1.A" - + "pplyResults\022\022\n\005build\030\003 \001(\tB\003\340A\003\022\021\n\004logs\030" - + "\004 \001(\tB\003\340A\003\"\311\002\n\016DeploymentStep\022\037\n\033DEPLOYM" - + "ENT_STEP_UNSPECIFIED\020\000\022\034\n\030PREPARING_STOR" - + "AGE_BUCKET\020\001\022\031\n\025DOWNLOADING_BLUEPRINT\020\002\022" - + "\023\n\017RUNNING_TF_INIT\020\003\022\023\n\017RUNNING_TF_PLAN\020" - + "\004\022\024\n\020RUNNING_TF_APPLY\020\005\022\026\n\022RUNNING_TF_DE" - + "STROY\020\006\022\027\n\023RUNNING_TF_VALIDATE\020\007\022\030\n\024UNLO" - + "CKING_DEPLOYMENT\020\010\022\r\n\tSUCCEEDED\020\t\022\n\n\006FAI" - + "LED\020\n\022\031\n\025VALIDATING_REPOSITORY\020\013\022\034\n\030RUNN" - + "ING_QUOTA_VALIDATION\020\014\"\330\005\n\010Resource\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022J\n\016terraform_info\030\002 \001(\0132-" - + ".google.cloud.config.v1.ResourceTerrafor" - + "mInfoB\003\340A\003\022H\n\ncai_assets\030\003 \003(\0132/.google." - + "cloud.config.v1.Resource.CaiAssetsEntryB" - + "\003\340A\003\022<\n\006intent\030\004 \001(\0162\'.google.cloud.conf" - + "ig.v1.Resource.IntentB\003\340A\003\022:\n\005state\030\005 \001(" - + "\0162&.google.cloud.config.v1.Resource.Stat" - + "eB\003\340A\003\032Y\n\016CaiAssetsEntry\022\013\n\003key\030\001 \001(\t\0226\n" - + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.Re" - + "sourceCAIInfo:\0028\001\"a\n\006Intent\022\026\n\022INTENT_UN" - + "SPECIFIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006D" - + "ELETE\020\003\022\014\n\010RECREATE\020\004\022\r\n\tUNCHANGED\020\005\"X\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PLANNED\020" - + "\001\022\017\n\013IN_PROGRESS\020\002\022\016\n\nRECONCILED\020\003\022\n\n\006FA" - + "ILED\020\004:\220\001\352A\214\001\n\036config.googleapis.com/Res" - + "ource\022jprojects/{project}/locations/{loc" - + "ation}/deployments/{deployment}/revision" - + "s/{revision}/resources/{resource}\"B\n\025Res" - + "ourceTerraformInfo\022\017\n\007address\030\001 \001(\t\022\014\n\004t" - + "ype\030\002 \001(\t\022\n\n\002id\030\003 \001(\t\"-\n\017ResourceCAIInfo" - + "\022\032\n\022full_resource_name\030\001 \001(\t\"J\n\022GetResou" - + "rceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036config" - + ".googleapis.com/Resource\"\227\001\n\024ListResourc" - + "esRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036confi" - + "g.googleapis.com/Revision\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\"z\n\025ListResourcesRespo" - + "nse\0223\n\tresources\030\001 \003(\0132 .google.cloud.co" - + "nfig.v1.Resource\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"$\n\tStatefile\022\027\n\ns" - + "igned_uri\030\001 \001(\tB\003\340A\003\"p\n ExportDeployment" - + "StatefileRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" - + "\n config.googleapis.com/Deployment\022\022\n\005dr" - + "aft\030\003 \001(\010B\003\340A\001\"X\n\036ExportRevisionStatefil" - + "eRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036config" - + ".googleapis.com/Revision\"\201\001\n\026ImportState" - + "fileRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n con" - + "fig.googleapis.com/Deployment\022\024\n\007lock_id" - + "\030\002 \001(\003B\003\340A\002\022\027\n\nskip_draft\030\003 \001(\010B\003\340A\001\"f\n\026" - + "DeleteStatefileRequest\0226\n\004name\030\001 \001(\tB(\340A" - + "\002\372A\"\n config.googleapis.com/Deployment\022\024" - + "\n\007lock_id\030\002 \001(\003B\003\340A\002\"O\n\025LockDeploymentRe" - + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n config.goog" - + "leapis.com/Deployment\"g\n\027UnlockDeploymen" - + "tRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n config.g" - + "oogleapis.com/Deployment\022\024\n\007lock_id\030\002 \001(" - + "\003B\003\340A\002\"O\n\025ExportLockInfoRequest\0226\n\004name\030" - + "\001 \001(\tB(\340A\002\372A\"\n config.googleapis.com/Dep" - + "loyment\"\213\001\n\010LockInfo\022\017\n\007lock_id\030\001 \001(\003\022\021\n" - + "\toperation\030\002 \001(\t\022\014\n\004info\030\003 \001(\t\022\013\n\003who\030\004 " - + "\001(\t\022\017\n\007version\030\005 \001(\t\022/\n\013create_time\030\006 \001(" - + "\0132\032.google.protobuf.Timestamp\"\370\014\n\007Previe" - + "w\022I\n\023terraform_blueprint\030\006 \001(\0132*.google." - + "cloud.config.v1.TerraformBlueprintH\000\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022@\n\006labels\030" - + "\003 \003(\0132+.google.cloud.config.v1.Preview.L" - + "abelsEntryB\003\340A\001\0229\n\005state\030\004 \001(\0162%.google." - + "cloud.config.v1.Preview.StateB\003\340A\003\022<\n\nde" - + "ployment\030\005 \001(\tB(\340A\001\372A\"\n config.googleapi" - + "s.com/Deployment\022F\n\014preview_mode\030\017 \001(\0162+" - + ".google.cloud.config.v1.Preview.PreviewM" - + "odeB\003\340A\001\022B\n\017service_account\030\007 \001(\tB)\340A\001\372A" - + "#\n!iam.googleapis.com/ServiceAccount\022&\n\024" - + "artifacts_gcs_bucket\030\010 \001(\tB\003\340A\001H\001\210\001\001\022F\n\013" - + "worker_pool\030\t \001(\tB,\340A\001\372A&\n$cloudbuild.go" - + "ogleapis.com/WorkerPoolH\002\210\001\001\022B\n\nerror_co" - + "de\030\n \001(\0162).google.cloud.config.v1.Previe" - + "w.ErrorCodeB\003\340A\003\022-\n\014error_status\030\013 \001(\0132\022" - + ".google.rpc.StatusB\003\340A\003\022\022\n\005build\030\014 \001(\tB\003" - + "\340A\003\022>\n\ttf_errors\030\r \003(\0132&.google.cloud.co" - + "nfig.v1.TerraformErrorB\003\340A\003\022\027\n\nerror_log" - + "s\030\016 \001(\tB\003\340A\003\022H\n\021preview_artifacts\030\020 \001(\0132" - + "(.google.cloud.config.v1.PreviewArtifact" - + "sB\003\340A\003\022\021\n\004logs\030\021 \001(\tB\003\340A\003\022\027\n\ntf_version\030" - + "\022 \001(\tB\003\340A\003\022\'\n\025tf_version_constraint\030\023 \001(" - + "\tB\003\340A\001H\003\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_UNS" - + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tSUCCEEDED\020\002\022" - + "\014\n\010APPLYING\020\003\022\t\n\005STALE\020\004\022\014\n\010DELETING\020\005\022\n" - + "\n\006FAILED\020\006\022\013\n\007DELETED\020\007\"D\n\013PreviewMode\022\034" - + "\n\030PREVIEW_MODE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020" - + "\001\022\n\n\006DELETE\020\002\"\355\001\n\tErrorCode\022\032\n\026ERROR_COD" - + "E_UNSPECIFIED\020\000\022!\n\035CLOUD_BUILD_PERMISSIO" - + "N_DENIED\020\001\022%\n!BUCKET_CREATION_PERMISSION" - + "_DENIED\020\002\022\032\n\026BUCKET_CREATION_FAILED\020\003\022\"\n" - + "\036DEPLOYMENT_LOCK_ACQUIRE_FAILED\020\004\022\034\n\030PRE" - + "VIEW_BUILD_API_FAILED\020\005\022\034\n\030PREVIEW_BUILD" - + "_RUN_FAILED\020\006:q\352An\n\035config.googleapis.co" - + "m/Preview\022:projects/{project}/locations/" - + "{location}/previews/{preview}*\010previews2" - + "\007previewB\013\n\tblueprintB\027\n\025_artifacts_gcs_" - + "bucketB\016\n\014_worker_poolB\030\n\026_tf_version_co" - + "nstraint\"\344\003\n\030PreviewOperationMetadata\022J\n" - + "\004step\030\001 \001(\0162<.google.cloud.config.v1.Pre" - + "viewOperationMetadata.PreviewStep\022C\n\021pre" - + "view_artifacts\030\002 \001(\0132(.google.cloud.conf" - + "ig.v1.PreviewArtifacts\022\021\n\004logs\030\003 \001(\tB\003\340A" - + "\003\022\022\n\005build\030\004 \001(\tB\003\340A\003\"\217\002\n\013PreviewStep\022\034\n" - + "\030PREVIEW_STEP_UNSPECIFIED\020\000\022\034\n\030PREPARING" - + "_STORAGE_BUCKET\020\001\022\031\n\025DOWNLOADING_BLUEPRI" - + "NT\020\002\022\023\n\017RUNNING_TF_INIT\020\003\022\023\n\017RUNNING_TF_" - + "PLAN\020\004\022\027\n\023FETCHING_DEPLOYMENT\020\005\022\026\n\022LOCKI" - + "NG_DEPLOYMENT\020\006\022\030\n\024UNLOCKING_DEPLOYMENT\020" - + "\007\022\r\n\tSUCCEEDED\020\010\022\n\n\006FAILED\020\t\022\031\n\025VALIDATI" - + "NG_REPOSITORY\020\n\"@\n\020PreviewArtifacts\022\024\n\007c" - + "ontent\030\001 \001(\tB\003\340A\003\022\026\n\tartifacts\030\002 \001(\tB\003\340A" - + "\003\"\302\001\n\024CreatePreviewRequest\0229\n\006parent\030\001 \001" + + "orker_poolB\030\n\026_tf_version_constraint\"\237\002\n" + + "\022TerraformBlueprint\022\024\n\ngcs_source\030\001 \001(\tH" + + "\000\0227\n\ngit_source\030\002 \001(\0132!.google.cloud.con" + + "fig.v1.GitSourceH\000\022Q\n\014input_values\030\004 \003(\013" + + "2;.google.cloud.config.v1.TerraformBluep" + + "rint.InputValuesEntry\032]\n\020InputValuesEntr" + + "y\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).google.c" + + "loud.config.v1.TerraformVariable:\0028\001B\010\n\006" + + "source\"@\n\021TerraformVariable\022+\n\013input_val" + + "ue\030\005 \001(\0132\026.google.protobuf.Value\"\317\001\n\014App" + + "lyResults\022\017\n\007content\030\001 \001(\t\022\021\n\tartifacts\030" + + "\002 \001(\t\022B\n\007outputs\030\003 \003(\01321.google.cloud.co" + + "nfig.v1.ApplyResults.OutputsEntry\032W\n\014Out" + + "putsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'." + + "google.cloud.config.v1.TerraformOutput:\002" + + "8\001\"K\n\017TerraformOutput\022\021\n\tsensitive\030\001 \001(\010" + + "\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Value\"" + + "\234\001\n\026ListDeploymentsRequest\0229\n\006parent\030\001 \001" + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\027\n\npreview_id\030\002 \001(\tB\003\340A\001\0225\n\007previe" - + "w\030\003 \001(\0132\037.google.cloud.config.v1.Preview" - + "B\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"H" - + "\n\021GetPreviewRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A" - + "\037\n\035config.googleapis.com/Preview\"\255\001\n\023Lis" - + "tPreviewsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\026\n\tp" - + "age_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\"w\n\024ListPreviewsResponse\0221\n\010prev" - + "iews\030\001 \003(\0132\037.google.cloud.config.v1.Prev" - + "iew\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" - + "ble\030\003 \003(\t\"l\n\024DeletePreviewRequest\0223\n\004nam" - + "e\030\001 \001(\tB%\340A\002\372A\037\n\035config.googleapis.com/P" - + "review\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"" - + "S\n\032ExportPreviewResultRequest\0225\n\006parent\030" + + "ation\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\"\200" + + "\001\n\027ListDeploymentsResponse\0227\n\013deployment" + + "s\030\001 \003(\0132\".google.cloud.config.v1.Deploym" + + "ent\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"N\n\024GetDeploymentRequest\0226\n\004nam" + + "e\030\001 \001(\tB(\340A\002\372A\"\n config.googleapis.com/D" + + "eployment\"\231\001\n\024ListRevisionsRequest\0228\n\006pa" + + "rent\030\001 \001(\tB(\340A\002\372A\"\n config.googleapis.co" + + "m/Deployment\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\"z\n\025ListRevisionsResponse\0223\n\trevisi" + + "ons\030\001 \003(\0132 .google.cloud.config.v1.Revis" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"J\n\022GetRevisionRequest\0224\n\004name\030" + + "\001 \001(\tB&\340A\002\372A \n\036config.googleapis.com/Rev" + + "ision\"\306\001\n\027CreateDeploymentRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002" + + "\022;\n\ndeployment\030\003 \001(\0132\".google.cloud.conf" + + "ig.v1.DeploymentB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + + "\tB\003\340A\001\"\245\001\n\027UpdateDeploymentRequest\0224\n\013up" + + "date_mask\030\001 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\001\022;\n\ndeployment\030\002 \001(\0132\".google.cl" + + "oud.config.v1.DeploymentB\003\340A\002\022\027\n\nrequest" + + "_id\030\003 \001(\tB\003\340A\001\"\240\002\n\027DeleteDeploymentReque" + + "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n config.googlea" + + "pis.com/Deployment\022\027\n\nrequest_id\030\002 \001(\tB\003" + + "\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\022X\n\rdelete_policy" + + "\030\004 \001(\0162<.google.cloud.config.v1.DeleteDe" + + "ploymentRequest.DeletePolicyB\003\340A\001\"F\n\014Del" + + "etePolicy\022\035\n\031DELETE_POLICY_UNSPECIFIED\020\000" + + "\022\n\n\006DELETE\020\001\022\013\n\007ABANDON\020\002\"\301\003\n\021OperationM" + + "etadata\022W\n\023deployment_metadata\030\010 \001(\01323.g" + + "oogle.cloud.config.v1.DeploymentOperatio" + + "nMetadataB\003\340A\003H\000\022Q\n\020preview_metadata\030\t \001" + + "(\01320.google.cloud.config.v1.PreviewOpera" + + "tionMetadataB\003\340A\003H\000\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.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_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\003B\023\n\021resource_metadata\"\203\013" + + "\n\010Revision\022N\n\023terraform_blueprint\030\006 \001(\0132" + + "*.google.cloud.config.v1.TerraformBluepr" + + "intB\003\340A\003H\000\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022<\n\006action\030\004 \001(\0162\'.google.cl" + + "oud.config.v1.Revision.ActionB\003\340A\003\022:\n\005st" + + "ate\030\005 \001(\0162&.google.cloud.config.v1.Revis" + + "ion.StateB\003\340A\003\022@\n\rapply_results\030\007 \001(\0132$." + + "google.cloud.config.v1.ApplyResultsB\003\340A\003" + + "\022\031\n\014state_detail\030\010 \001(\tB\003\340A\003\022C\n\nerror_cod" + + "e\030\t \001(\0162*.google.cloud.config.v1.Revisio" + + "n.ErrorCodeB\003\340A\003\022\022\n\005build\030\n \001(\tB\003\340A\003\022\021\n\004" + + "logs\030\013 \001(\tB\003\340A\003\022>\n\ttf_errors\030\014 \003(\0132&.goo" + + "gle.cloud.config.v1.TerraformErrorB\003\340A\003\022" + + "\027\n\nerror_logs\030\r \001(\tB\003\340A\003\022B\n\017service_acco" + + "unt\030\016 \001(\tB)\340A\003\372A#\n!iam.googleapis.com/Se" + + "rviceAccount\022&\n\031import_existing_resource" + + "s\030\017 \001(\010B\003\340A\003\022A\n\013worker_pool\030\021 \001(\tB,\340A\003\372A" + + "&\n$cloudbuild.googleapis.com/WorkerPool\022" + + "\"\n\025tf_version_constraint\030\022 \001(\tB\003\340A\003\022\027\n\nt" + + "f_version\030\023 \001(\tB\003\340A\003\022%\n\030quota_validation" + + "_results\030\035 \001(\tB\003\340A\003\022F\n\020quota_validation\030" + + "\024 \001(\0162\'.google.cloud.config.v1.QuotaVali" + + "dationB\003\340A\001\"D\n\006Action\022\026\n\022ACTION_UNSPECIF" + + "IED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020" + + "\003\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010APP" + + "LYING\020\001\022\013\n\007APPLIED\020\002\022\n\n\006FAILED\020\003\"\237\001\n\tErr" + + "orCode\022\032\n\026ERROR_CODE_UNSPECIFIED\020\000\022!\n\035CL" + + "OUD_BUILD_PERMISSION_DENIED\020\001\022\032\n\026APPLY_B" + + "UILD_API_FAILED\020\004\022\032\n\026APPLY_BUILD_RUN_FAI" + + "LED\020\005\022\033\n\027QUOTA_VALIDATION_FAILED\020\007:z\352Aw\n" + + "\036config.googleapis.com/Revision\022Uproject" + + "s/{project}/locations/{location}/deploym" + + "ents/{deployment}/revisions/{revision}B\013" + + "\n\tblueprint\"\204\001\n\016TerraformError\022\030\n\020resour" + + "ce_address\030\001 \001(\t\022\032\n\022http_response_code\030\002" + + " \001(\005\022\031\n\021error_description\030\003 \001(\t\022!\n\005error" + + "\030\004 \001(\0132\022.google.rpc.Status\"v\n\tGitSource\022" + + "\026\n\004repo\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\033\n\tdirectory\030\002 \001" + + "(\tB\003\340A\001H\001\210\001\001\022\025\n\003ref\030\003 \001(\tB\003\340A\001H\002\210\001\001B\007\n\005_" + + "repoB\014\n\n_directoryB\006\n\004_ref\"\237\004\n\033Deploymen" + + "tOperationMetadata\022P\n\004step\030\001 \001(\0162B.googl" + + "e.cloud.config.v1.DeploymentOperationMet" + + "adata.DeploymentStep\022;\n\rapply_results\030\002 " + + "\001(\0132$.google.cloud.config.v1.ApplyResult" + + "s\022\022\n\005build\030\003 \001(\tB\003\340A\003\022\021\n\004logs\030\004 \001(\tB\003\340A\003" + + "\"\311\002\n\016DeploymentStep\022\037\n\033DEPLOYMENT_STEP_U" + + "NSPECIFIED\020\000\022\034\n\030PREPARING_STORAGE_BUCKET" + + "\020\001\022\031\n\025DOWNLOADING_BLUEPRINT\020\002\022\023\n\017RUNNING" + + "_TF_INIT\020\003\022\023\n\017RUNNING_TF_PLAN\020\004\022\024\n\020RUNNI" + + "NG_TF_APPLY\020\005\022\026\n\022RUNNING_TF_DESTROY\020\006\022\027\n" + + "\023RUNNING_TF_VALIDATE\020\007\022\030\n\024UNLOCKING_DEPL" + + "OYMENT\020\010\022\r\n\tSUCCEEDED\020\t\022\n\n\006FAILED\020\n\022\031\n\025V" + + "ALIDATING_REPOSITORY\020\013\022\034\n\030RUNNING_QUOTA_" + + "VALIDATION\020\014\"\330\005\n\010Resource\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022J\n\016terraform_info\030\002 \001(\0132-.google.cl" + + "oud.config.v1.ResourceTerraformInfoB\003\340A\003" + + "\022H\n\ncai_assets\030\003 \003(\0132/.google.cloud.conf" + + "ig.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n\006in" + + "tent\030\004 \001(\0162\'.google.cloud.config.v1.Reso" + + "urce.IntentB\003\340A\003\022:\n\005state\030\005 \001(\0162&.google" + + ".cloud.config.v1.Resource.StateB\003\340A\003\032Y\n\016" + + "CaiAssetsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001" + + "(\0132\'.google.cloud.config.v1.ResourceCAII" + + "nfo:\0028\001\"a\n\006Intent\022\026\n\022INTENT_UNSPECIFIED\020" + + "\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\022\014\n" + + "\010RECREATE\020\004\022\r\n\tUNCHANGED\020\005\"X\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007PLANNED\020\001\022\017\n\013IN_PR" + + "OGRESS\020\002\022\016\n\nRECONCILED\020\003\022\n\n\006FAILED\020\004:\220\001\352" + + "A\214\001\n\036config.googleapis.com/Resource\022jpro" + + "jects/{project}/locations/{location}/dep" + + "loyments/{deployment}/revisions/{revisio" + + "n}/resources/{resource}\"B\n\025ResourceTerra" + + "formInfo\022\017\n\007address\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022" + + "\n\n\002id\030\003 \001(\t\"-\n\017ResourceCAIInfo\022\032\n\022full_r" + + "esource_name\030\001 \001(\t\"J\n\022GetResourceRequest" + + "\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036config.googleapi" + + "s.com/Resource\"\227\001\n\024ListResourcesRequest\022" + + "6\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036config.googleap" + + "is.com/Revision\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_" + + "by\030\005 \001(\t\"z\n\025ListResourcesResponse\0223\n\tres" + + "ources\030\001 \003(\0132 .google.cloud.config.v1.Re" + + "source\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"$\n\tStatefile\022\027\n\nsigned_uri\030" + + "\001 \001(\tB\003\340A\003\"p\n ExportDeploymentStatefileR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n config.g" + + "oogleapis.com/Deployment\022\022\n\005draft\030\003 \001(\010B" + + "\003\340A\001\"X\n\036ExportRevisionStatefileRequest\0226" + + "\n\006parent\030\001 \001(\tB&\340A\002\372A \n\036config.googleapi" + + "s.com/Revision\"\201\001\n\026ImportStatefileReques" + + "t\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n config.google" + + "apis.com/Deployment\022\024\n\007lock_id\030\002 \001(\003B\003\340A" + + "\002\022\027\n\nskip_draft\030\003 \001(\010B\003\340A\001\"f\n\026DeleteStat" + + "efileRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n conf" + + "ig.googleapis.com/Deployment\022\024\n\007lock_id\030" + + "\002 \001(\003B\003\340A\002\"O\n\025LockDeploymentRequest\0226\n\004n" + + "ame\030\001 \001(\tB(\340A\002\372A\"\n config.googleapis.com" + + "/Deployment\"g\n\027UnlockDeploymentRequest\0226" + + "\n\004name\030\001 \001(\tB(\340A\002\372A\"\n config.googleapis." + + "com/Deployment\022\024\n\007lock_id\030\002 \001(\003B\003\340A\002\"O\n\025" + + "ExportLockInfoRequest\0226\n\004name\030\001 \001(\tB(\340A\002" + + "\372A\"\n config.googleapis.com/Deployment\"\213\001" + + "\n\010LockInfo\022\017\n\007lock_id\030\001 \001(\003\022\021\n\toperation" + + "\030\002 \001(\t\022\014\n\004info\030\003 \001(\t\022\013\n\003who\030\004 \001(\t\022\017\n\007ver" + + "sion\030\005 \001(\t\022/\n\013create_time\030\006 \001(\0132\032.google" + + ".protobuf.Timestamp\"\370\r\n\007Preview\022I\n\023terra" + + "form_blueprint\030\006 \001(\0132*.google.cloud.conf" + + "ig.v1.TerraformBlueprintH\000\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022@\n\006labels\030\003 \003(\0132+.go" + + "ogle.cloud.config.v1.Preview.LabelsEntry" + + "B\003\340A\001\0229\n\005state\030\004 \001(\0162%.google.cloud.conf" + + "ig.v1.Preview.StateB\003\340A\003\022<\n\ndeployment\030\005" + + " \001(\tB(\340A\001\372A\"\n config.googleapis.com/Depl" + + "oyment\022F\n\014preview_mode\030\017 \001(\0162+.google.cl" + + "oud.config.v1.Preview.PreviewModeB\003\340A\001\022B" + + "\n\017service_account\030\007 \001(\tB)\340A\002\372A#\n!iam.goo" + + "gleapis.com/ServiceAccount\022&\n\024artifacts_" + + "gcs_bucket\030\010 \001(\tB\003\340A\001H\001\210\001\001\022F\n\013worker_poo" + + "l\030\t \001(\tB,\340A\001\372A&\n$cloudbuild.googleapis.c" + + "om/WorkerPoolH\002\210\001\001\022B\n\nerror_code\030\n \001(\0162)" + + ".google.cloud.config.v1.Preview.ErrorCod" + + "eB\003\340A\003\022-\n\014error_status\030\013 \001(\0132\022.google.rp" + + "c.StatusB\003\340A\003\022\022\n\005build\030\014 \001(\tB\003\340A\003\022>\n\ttf_" + + "errors\030\r \003(\0132&.google.cloud.config.v1.Te" + + "rraformErrorB\003\340A\003\022\027\n\nerror_logs\030\016 \001(\tB\003\340" + + "A\003\022H\n\021preview_artifacts\030\020 \001(\0132(.google.c" + + "loud.config.v1.PreviewArtifactsB\003\340A\003\022\021\n\004" + + "logs\030\021 \001(\tB\003\340A\003\022\027\n\ntf_version\030\022 \001(\tB\003\340A\003" + + "\022\'\n\025tf_version_constraint\030\023 \001(\tB\003\340A\001H\003\210\001" + + "\001\022J\n\013annotations\030\024 \003(\01320.google.cloud.co" + + "nfig.v1.Preview.AnnotationsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"{\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\014\n\010CREATING\020\001\022\r\n\tSUCCEEDED\020\002\022\014\n" + + "\010APPLYING\020\003\022\t\n\005STALE\020\004\022\014\n\010DELETING\020\005\022\n\n\006" + + "FAILED\020\006\022\013\n\007DELETED\020\007\"D\n\013PreviewMode\022\034\n\030" + + "PREVIEW_MODE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022" + + "\n\n\006DELETE\020\002\"\355\001\n\tErrorCode\022\032\n\026ERROR_CODE_" + + "UNSPECIFIED\020\000\022!\n\035CLOUD_BUILD_PERMISSION_" + + "DENIED\020\001\022%\n!BUCKET_CREATION_PERMISSION_D" + + "ENIED\020\002\022\032\n\026BUCKET_CREATION_FAILED\020\003\022\"\n\036D" + + "EPLOYMENT_LOCK_ACQUIRE_FAILED\020\004\022\034\n\030PREVI" + + "EW_BUILD_API_FAILED\020\005\022\034\n\030PREVIEW_BUILD_R" + + "UN_FAILED\020\006:q\352An\n\035config.googleapis.com/" + + "Preview\022:projects/{project}/locations/{l" + + "ocation}/previews/{preview}*\010previews2\007p" + + "reviewB\013\n\tblueprintB\027\n\025_artifacts_gcs_bu" + + "cketB\016\n\014_worker_poolB\030\n\026_tf_version_cons" + + "traint\"\344\003\n\030PreviewOperationMetadata\022J\n\004s" + + "tep\030\001 \001(\0162<.google.cloud.config.v1.Previ" + + "ewOperationMetadata.PreviewStep\022C\n\021previ" + + "ew_artifacts\030\002 \001(\0132(.google.cloud.config" + + ".v1.PreviewArtifacts\022\021\n\004logs\030\003 \001(\tB\003\340A\003\022" + + "\022\n\005build\030\004 \001(\tB\003\340A\003\"\217\002\n\013PreviewStep\022\034\n\030P" + + "REVIEW_STEP_UNSPECIFIED\020\000\022\034\n\030PREPARING_S" + + "TORAGE_BUCKET\020\001\022\031\n\025DOWNLOADING_BLUEPRINT" + + "\020\002\022\023\n\017RUNNING_TF_INIT\020\003\022\023\n\017RUNNING_TF_PL" + + "AN\020\004\022\027\n\023FETCHING_DEPLOYMENT\020\005\022\026\n\022LOCKING" + + "_DEPLOYMENT\020\006\022\030\n\024UNLOCKING_DEPLOYMENT\020\007\022" + + "\r\n\tSUCCEEDED\020\010\022\n\n\006FAILED\020\t\022\031\n\025VALIDATING" + + "_REPOSITORY\020\n\"@\n\020PreviewArtifacts\022\024\n\007con" + + "tent\030\001 \001(\tB\003\340A\003\022\026\n\tartifacts\030\002 \001(\tB\003\340A\003\"" + + "\302\001\n\024CreatePreviewRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\027\n\npreview_id\030\002 \001(\tB\003\340A\001\0225\n\007preview\030" + + "\003 \001(\0132\037.google.cloud.config.v1.PreviewB\003" + + "\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"H\n\021" + + "GetPreviewRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035config.googleapis.com/Preview\"\255\001\n\023ListP" + + "reviewsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + + "locations.googleapis.com/Location\022\026\n\tpag" + + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(" + + "\tB\003\340A\001\"w\n\024ListPreviewsResponse\0221\n\010previe" + + "ws\030\001 \003(\0132\037.google.cloud.config.v1.Previe" + + "w\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"l\n\024DeletePreviewRequest\0223\n\004name\030" + "\001 \001(\tB%\340A\002\372A\037\n\035config.googleapis.com/Pre" - + "view\"Y\n\033ExportPreviewResultResponse\022:\n\006r" - + "esult\030\001 \001(\0132%.google.cloud.config.v1.Pre" - + "viewResultB\003\340A\003\"M\n\rPreviewResult\022\036\n\021bina" - + "ry_signed_uri\030\001 \001(\tB\003\340A\003\022\034\n\017json_signed_" - + "uri\030\002 \001(\tB\003\340A\003\"Z\n\032GetTerraformVersionReq" - + "uest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&config.googl" - + "eapis.com/TerraformVersion\"\266\001\n\034ListTerra" - + "formVersionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\n!locations.googleapis.com/Location\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\"\223\001\n\035ListTerraformVersionsRes" - + "ponse\022D\n\022terraform_versions\030\001 \003(\0132(.goog" - + "le.cloud.config.v1.TerraformVersion\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"\255\004\n\020TerraformVersion\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\010\022B\n\005state\030\002 \001(\0162..google.cloud.config.v" - + "1.TerraformVersion.StateB\003\340A\003\0225\n\014support" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022<\n\016deprecate_time\030\004 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003H\000\210\001\001\022;\n\robsolete_t" - + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003H\001\210\001\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\016\n\nDEPRECATED\020\002\022\014\n\010OBSOLETE\020" - + "\003:\240\001\352A\234\001\n&config.googleapis.com/Terrafor" - + "mVersion\022Mprojects/{project}/locations/{" - + "location}/terraformVersions/{terraform_v" - + "ersion}*\021terraformVersions2\020terraformVer" - + "sionB\021\n\017_deprecate_timeB\020\n\016_obsolete_tim" - + "e*N\n\017QuotaValidation\022 \n\034QUOTA_VALIDATION" - + "_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010ENFORCED\020" - + "\0022\247#\n\006Config\022\264\001\n\017ListDeployments\022..googl" - + "e.cloud.config.v1.ListDeploymentsRequest" - + "\032/.google.cloud.config.v1.ListDeployment" - + "sResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=" - + "projects/*/locations/*}/deployments\022\241\001\n\r" - + "GetDeployment\022,.google.cloud.config.v1.G" - + "etDeploymentRequest\032\".google.cloud.confi" - + "g.v1.Deployment\">\332A\004name\202\323\344\223\0021\022//v1/{nam" - + "e=projects/*/locations/*/deployments/*}\022" - + "\354\001\n\020CreateDeployment\022/.google.cloud.conf" - + "ig.v1.CreateDeploymentRequest\032\035.google.l" - + "ongrunning.Operation\"\207\001\312A\037\n\nDeployment\022\021" - + "OperationMetadata\332A\037parent,deployment,de" - + "ployment_id\202\323\344\223\002=\"//v1/{parent=projects/" - + "*/locations/*}/deployments:\ndeployment\022\356" - + "\001\n\020UpdateDeployment\022/.google.cloud.confi" - + "g.v1.UpdateDeploymentRequest\032\035.google.lo" - + "ngrunning.Operation\"\211\001\312A\037\n\nDeployment\022\021O" - + "perationMetadata\332A\026deployment,update_mas" - + "k\202\323\344\223\002H2:/v1/{deployment.name=projects/*" - + "/locations/*/deployments/*}:\ndeployment\022" - + "\304\001\n\020DeleteDeployment\022/.google.cloud.conf" - + "ig.v1.DeleteDeploymentRequest\032\035.google.l" - + "ongrunning.Operation\"`\312A\037\n\nDeployment\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\0021*//v1/{name" - + "=projects/*/locations/*/deployments/*}\022\272" - + "\001\n\rListRevisions\022,.google.cloud.config.v" - + "1.ListRevisionsRequest\032-.google.cloud.co" - + "nfig.v1.ListRevisionsResponse\"L\332A\006parent" - + "\202\323\344\223\002=\022;/v1/{parent=projects/*/locations" - + "/*/deployments/*}/revisions\022\247\001\n\013GetRevis" - + "ion\022*.google.cloud.config.v1.GetRevision" - + "Request\032 .google.cloud.config.v1.Revisio" - + "n\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/l" - + "ocations/*/deployments/*/revisions/*}\022\263\001" - + "\n\013GetResource\022*.google.cloud.config.v1.G" - + "etResourceRequest\032 .google.cloud.config." - + "v1.Resource\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=pr" - + "ojects/*/locations/*/deployments/*/revis" - + "ions/*/resources/*}\022\306\001\n\rListResources\022,." - + "google.cloud.config.v1.ListResourcesRequ" - + "est\032-.google.cloud.config.v1.ListResourc" - + "esResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent" - + "=projects/*/locations/*/deployments/*/re" - + "visions/*}/resources\022\302\001\n\031ExportDeploymen" - + "tStatefile\0228.google.cloud.config.v1.Expo" - + "rtDeploymentStatefileRequest\032!.google.cl" - + "oud.config.v1.Statefile\"H\202\323\344\223\002B\"=/v1/{pa" - + "rent=projects/*/locations/*/deployments/" - + "*}:exportState:\001*\022\312\001\n\027ExportRevisionStat" - + "efile\0226.google.cloud.config.v1.ExportRev" - + "isionStatefileRequest\032!.google.cloud.con" - + "fig.v1.Statefile\"T\202\323\344\223\002N\"I/v1/{parent=pr" - + "ojects/*/locations/*/deployments/*/revis" - + "ions/*}:exportState:\001*\022\277\001\n\017ImportStatefi" - + "le\022..google.cloud.config.v1.ImportStatef" - + "ileRequest\032!.google.cloud.config.v1.Stat" - + "efile\"Y\332A\016parent,lock_id\202\323\344\223\002B\"=/v1/{par" - + "ent=projects/*/locations/*/deployments/*" - + "}:importState:\001*\022\250\001\n\017DeleteStatefile\022..g" - + "oogle.cloud.config.v1.DeleteStatefileReq" - + "uest\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344" - + "\223\002@\";/v1/{name=projects/*/locations/*/de" - + "ployments/*}:deleteState:\001*\022\310\001\n\016LockDepl" - + "oyment\022-.google.cloud.config.v1.LockDepl", - "oymentRequest\032\035.google.longrunning.Opera" - + "tion\"h\312A\037\n\nDeployment\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\0029\"4/v1/{name=projects/*/loca" - + "tions/*/deployments/*}:lock:\001*\022\326\001\n\020Unloc" - + "kDeployment\022/.google.cloud.config.v1.Unl" - + "ockDeploymentRequest\032\035.google.longrunnin" - + "g.Operation\"r\312A\037\n\nDeployment\022\021OperationM" - + "etadata\332A\014name,lock_id\202\323\344\223\002;\"6/v1/{name=" - + "projects/*/locations/*/deployments/*}:un" - + "lock:\001*\022\254\001\n\016ExportLockInfo\022-.google.clou" - + "d.config.v1.ExportLockInfoRequest\032 .goog" - + "le.cloud.config.v1.LockInfo\"I\332A\004name\202\323\344\223" - + "\002<\022:/v1/{name=projects/*/locations/*/dep" - + "loyments/*}:exportLock\022\313\001\n\rCreatePreview" - + "\022,.google.cloud.config.v1.CreatePreviewR" - + "equest\032\035.google.longrunning.Operation\"m\312" - + "A\034\n\007Preview\022\021OperationMetadata\332A\016parent," - + "preview\202\323\344\223\0027\",/v1/{parent=projects/*/lo" - + "cations/*}/previews:\007preview\022\225\001\n\nGetPrev" - + "iew\022).google.cloud.config.v1.GetPreviewR" - + "equest\032\037.google.cloud.config.v1.Preview\"" - + ";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/loc" - + "ations/*/previews/*}\022\250\001\n\014ListPreviews\022+." - + "google.cloud.config.v1.ListPreviewsReque" - + "st\032,.google.cloud.config.v1.ListPreviews" - + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=p" - + "rojects/*/locations/*}/previews\022\270\001\n\rDele" - + "tePreview\022,.google.cloud.config.v1.Delet" - + "ePreviewRequest\032\035.google.longrunning.Ope" - + "ration\"Z\312A\034\n\007Preview\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locat" - + "ions/*/previews/*}\022\300\001\n\023ExportPreviewResu" - + "lt\0222.google.cloud.config.v1.ExportPrevie" - + "wResultRequest\0323.google.cloud.config.v1." - + "ExportPreviewResultResponse\"@\202\323\344\223\002:\"5/v1" - + "/{parent=projects/*/locations/*/previews" - + "/*}:export:\001*\022\314\001\n\025ListTerraformVersions\022" - + "4.google.cloud.config.v1.ListTerraformVe" - + "rsionsRequest\0325.google.cloud.config.v1.L" - + "istTerraformVersionsResponse\"F\332A\006parent\202" - + "\323\344\223\0027\0225/v1/{parent=projects/*/locations/" - + "*}/terraformVersions\022\271\001\n\023GetTerraformVer" - + "sion\0222.google.cloud.config.v1.GetTerrafo" - + "rmVersionRequest\032(.google.cloud.config.v" - + "1.TerraformVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{" - + "name=projects/*/locations/*/terraformVer" - + "sions/*}\032I\312A\025config.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "ormB\374\002\n\032com.google.cloud.config.v1B\013Conf" - + "igProtoP\001Z2cloud.google.com/go/config/ap" - + "iv1/configpb;configpb\252\002\026Google.Cloud.Con" - + "fig.V1\312\002\026Google\\Cloud\\Config\\V1\352\002 Google" - + "::Cloud::ConfigService::V1\352AY\n!iam.googl" - + "eapis.com/ServiceAccount\0224projects/{proj" - + "ect}/serviceAccounts/{service_account}\352A" - + "i\n$cloudbuild.googleapis.com/WorkerPool\022" - + "Aprojects/{project}/locations/{location}" - + "/workerPools/{worker_pool}b\006proto3" + + "view\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"S\n" + + "\032ExportPreviewResultRequest\0225\n\006parent\030\001 " + + "\001(\tB%\340A\002\372A\037\n\035config.googleapis.com/Previ" + + "ew\"Y\n\033ExportPreviewResultResponse\022:\n\006res" + + "ult\030\001 \001(\0132%.google.cloud.config.v1.Previ" + + "ewResultB\003\340A\003\"M\n\rPreviewResult\022\036\n\021binary" + + "_signed_uri\030\001 \001(\tB\003\340A\003\022\034\n\017json_signed_ur" + + "i\030\002 \001(\tB\003\340A\003\"Z\n\032GetTerraformVersionReque" + + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&config.googlea" + + "pis.com/TerraformVersion\"\266\001\n\034ListTerrafo" + + "rmVersionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" + + "#\n!locations.googleapis.com/Location\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\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" + + " \001(\tB\003\340A\001\"\223\001\n\035ListTerraformVersionsRespo" + + "nse\022D\n\022terraform_versions\030\001 \003(\0132(.google" + + ".cloud.config.v1.TerraformVersion\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "\255\004\n\020TerraformVersion\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "B\n\005state\030\002 \001(\0162..google.cloud.config.v1." + + "TerraformVersion.StateB\003\340A\003\0225\n\014support_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022<\n\016deprecate_time\030\004 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003H\000\210\001\001\022;\n\robsolete_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "H\001\210\001\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\016\n\nDEPRECATED\020\002\022\014\n\010OBSOLETE\020\003:" + + "\240\001\352A\234\001\n&config.googleapis.com/TerraformV" + + "ersion\022Mprojects/{project}/locations/{lo" + + "cation}/terraformVersions/{terraform_ver" + + "sion}*\021terraformVersions2\020terraformVersi" + + "onB\021\n\017_deprecate_timeB\020\n\016_obsolete_time*" + + "N\n\017QuotaValidation\022 \n\034QUOTA_VALIDATION_U" + + "NSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010ENFORCED\020\0022" + + "\247#\n\006Config\022\264\001\n\017ListDeployments\022..google." + + "cloud.config.v1.ListDeploymentsRequest\032/" + + ".google.cloud.config.v1.ListDeploymentsR" + + "esponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=pr" + + "ojects/*/locations/*}/deployments\022\241\001\n\rGe" + + "tDeployment\022,.google.cloud.config.v1.Get" + + "DeploymentRequest\032\".google.cloud.config." + + "v1.Deployment\">\332A\004name\202\323\344\223\0021\022//v1/{name=" + + "projects/*/locations/*/deployments/*}\022\354\001" + + "\n\020CreateDeployment\022/.google.cloud.config" + + ".v1.CreateDeploymentRequest\032\035.google.lon" + + "grunning.Operation\"\207\001\312A\037\n\nDeployment\022\021Op" + + "erationMetadata\332A\037parent,deployment,depl" + + "oyment_id\202\323\344\223\002=\"//v1/{parent=projects/*/" + + "locations/*}/deployments:\ndeployment\022\356\001\n" + + "\020UpdateDeployment\022/.google.cloud.config." + + "v1.UpdateDeploymentRequest\032\035.google.long" + + "running.Operation\"\211\001\312A\037\n\nDeployment\022\021Ope" + + "rationMetadata\332A\026deployment,update_mask\202" + + "\323\344\223\002H2:/v1/{deployment.name=projects/*/l" + + "ocations/*/deployments/*}:\ndeployment\022\304\001" + + "\n\020DeleteDeployment\022/.google.cloud.config" + + ".v1.DeleteDeploymentRequest\032\035.google.lon" + + "grunning.Operation\"`\312A\037\n\nDeployment\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=p" + + "rojects/*/locations/*/deployments/*}\022\272\001\n" + + "\rListRevisions\022,.google.cloud.config.v1." + + "ListRevisionsRequest\032-.google.cloud.conf" + + "ig.v1.ListRevisionsResponse\"L\332A\006parent\202\323" + + "\344\223\002=\022;/v1/{parent=projects/*/locations/*" + + "/deployments/*}/revisions\022\247\001\n\013GetRevisio" + + "n\022*.google.cloud.config.v1.GetRevisionRe" + + "quest\032 .google.cloud.config.v1.Revision\"" + + "J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/loc" + + "ations/*/deployments/*/revisions/*}\022\263\001\n\013" + + "GetResource\022*.google.cloud.config.v1.Get" + + "ResourceRequest\032 .google.cloud.config.v1" + + ".Resource\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=proj" + + "ects/*/locations/*/deployments/*/revisio" + + "ns/*/resources/*}\022\306\001\n\rListResources\022,.go" + + "ogle.cloud.config.v1.ListResourcesReques" + + "t\032-.google.cloud.config.v1.ListResources" + + "Response\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=p" + + "rojects/*/locations/*/deployments/*/revi" + + "sions/*}/resources\022\302\001\n\031ExportDeploymentS" + + "tatefile\0228.google.cloud.config.v1.Export" + + "DeploymentStatefileRequest\032!.google.clou" + + "d.config.v1.Statefile\"H\202\323\344\223\002B\"=/v1/{pare" + + "nt=projects/*/locations/*/deployments/*}" + + ":exportState:\001*\022\312\001\n\027ExportRevisionStatef" + + "ile\0226.google.cloud.config.v1.ExportRevis" + + "ionStatefileRequest\032!.google.cloud.confi" + + "g.v1.Statefile\"T\202\323\344\223\002N\"I/v1/{parent=proj" + + "ects/*/locations/*/deployments/*/revisio" + + "ns/*}:exportState:\001*\022\277\001\n\017ImportStatefile" + + "\022..google.cloud.config.v1.ImportStatefil" + + "eRequest\032!.google.cloud.config.v1.Statef" + + "ile\"Y\332A\016parent,lock_id\202\323\344\223\002B\"=/v1/{paren" + + "t=projects/*/locations/*/deployments/*}:" + + "importState:\001*\022\250\001\n\017DeleteStatefile\022..goo" + + "gle.cloud.config.v1.DeleteStatefileReque" + + "st\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223\002", + "@\";/v1/{name=projects/*/locations/*/depl" + + "oyments/*}:deleteState:\001*\022\310\001\n\016LockDeploy" + + "ment\022-.google.cloud.config.v1.LockDeploy" + + "mentRequest\032\035.google.longrunning.Operati" + + "on\"h\312A\037\n\nDeployment\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0029\"4/v1/{name=projects/*/locati" + + "ons/*/deployments/*}:lock:\001*\022\326\001\n\020UnlockD" + + "eployment\022/.google.cloud.config.v1.Unloc" + + "kDeploymentRequest\032\035.google.longrunning." + + "Operation\"r\312A\037\n\nDeployment\022\021OperationMet" + + "adata\332A\014name,lock_id\202\323\344\223\002;\"6/v1/{name=pr" + + "ojects/*/locations/*/deployments/*}:unlo" + + "ck:\001*\022\254\001\n\016ExportLockInfo\022-.google.cloud." + + "config.v1.ExportLockInfoRequest\032 .google" + + ".cloud.config.v1.LockInfo\"I\332A\004name\202\323\344\223\002<" + + "\022:/v1/{name=projects/*/locations/*/deplo" + + "yments/*}:exportLock\022\313\001\n\rCreatePreview\022," + + ".google.cloud.config.v1.CreatePreviewReq" + + "uest\032\035.google.longrunning.Operation\"m\312A\034" + + "\n\007Preview\022\021OperationMetadata\332A\016parent,pr" + + "eview\202\323\344\223\0027\",/v1/{parent=projects/*/loca" + + "tions/*}/previews:\007preview\022\225\001\n\nGetPrevie" + + "w\022).google.cloud.config.v1.GetPreviewReq" + + "uest\032\037.google.cloud.config.v1.Preview\";\332" + + "A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locat" + + "ions/*/previews/*}\022\250\001\n\014ListPreviews\022+.go" + + "ogle.cloud.config.v1.ListPreviewsRequest" + + "\032,.google.cloud.config.v1.ListPreviewsRe" + + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*/locations/*}/previews\022\270\001\n\rDelete" + + "Preview\022,.google.cloud.config.v1.DeleteP" + + "reviewRequest\032\035.google.longrunning.Opera" + + "tion\"Z\312A\034\n\007Preview\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\002.*,/v1/{name=projects/*/locatio" + + "ns/*/previews/*}\022\300\001\n\023ExportPreviewResult" + + "\0222.google.cloud.config.v1.ExportPreviewR" + + "esultRequest\0323.google.cloud.config.v1.Ex" + + "portPreviewResultResponse\"@\202\323\344\223\002:\"5/v1/{" + + "parent=projects/*/locations/*/previews/*" + + "}:export:\001*\022\314\001\n\025ListTerraformVersions\0224." + + "google.cloud.config.v1.ListTerraformVers" + + "ionsRequest\0325.google.cloud.config.v1.Lis" + + "tTerraformVersionsResponse\"F\332A\006parent\202\323\344" + + "\223\0027\0225/v1/{parent=projects/*/locations/*}" + + "/terraformVersions\022\271\001\n\023GetTerraformVersi" + + "on\0222.google.cloud.config.v1.GetTerraform" + + "VersionRequest\032(.google.cloud.config.v1." + + "TerraformVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" + + "me=projects/*/locations/*/terraformVersi" + + "ons/*}\032I\312A\025config.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\374\002\n\032com.google.cloud.config.v1B\013Config" + + "ProtoP\001Z2cloud.google.com/go/config/apiv" + + "1/configpb;configpb\252\002\026Google.Cloud.Confi" + + "g.V1\312\002\026Google\\Cloud\\Config\\V1\352\002 Google::" + + "Cloud::ConfigService::V1\352AY\n!iam.googlea" + + "pis.com/ServiceAccount\0224projects/{projec" + + "t}/serviceAccounts/{service_account}\352Ai\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Ap" + + "rojects/{project}/locations/{location}/w" + + "orkerPools/{worker_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1123,6 +1130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Logs", "TfVersion", "TfVersionConstraint", + "Annotations", "Blueprint", }); internal_static_google_cloud_config_v1_Preview_LabelsEntry_descriptor = @@ -1133,6 +1141,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_descriptor = + internal_static_google_cloud_config_v1_Preview_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_config_v1_PreviewOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_config_v1_PreviewOperationMetadata_fieldAccessorTable = diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java index d7dd4e658fd4..7761c6fc4750 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java @@ -1803,13 +1803,13 @@ public com.google.protobuf.ByteString getArtifactsGcsBucketBytes() { * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return Whether the serviceAccount field is set. @@ -1822,13 +1822,13 @@ public boolean hasServiceAccount() { * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -1849,13 +1849,13 @@ public java.lang.String getServiceAccount() { * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. @@ -5861,13 +5861,13 @@ public Builder setArtifactsGcsBucketBytes(com.google.protobuf.ByteString value) * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return Whether the serviceAccount field is set. @@ -5879,13 +5879,13 @@ public boolean hasServiceAccount() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -5905,13 +5905,13 @@ public java.lang.String getServiceAccount() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. @@ -5931,13 +5931,13 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The serviceAccount to set. @@ -5956,13 +5956,13 @@ public Builder setServiceAccount(java.lang.String value) { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -5977,13 +5977,13 @@ public Builder clearServiceAccount() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * actuating resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for serviceAccount to set. diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java index 9b6440c9118a..5ee52b4a861d 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java @@ -597,13 +597,13 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return Whether the serviceAccount field is set. @@ -613,13 +613,13 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -629,13 +629,13 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * actuating resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string service_account = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponse.java index a9f2c829dd10..bbaa3f5f01e2 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponse.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponse.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -86,7 +86,7 @@ public java.util.List getPreviewsList() { * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -100,7 +100,7 @@ public java.util.List getPreviewsList() { * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -113,7 +113,7 @@ public int getPreviewsCount() { * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -126,7 +126,7 @@ public com.google.cloud.config.v1.Preview getPreviews(int index) { * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -725,7 +725,7 @@ private void ensurePreviewsIsMutable() { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -741,7 +741,7 @@ public java.util.List getPreviewsList() { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -757,7 +757,7 @@ public int getPreviewsCount() { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -773,7 +773,7 @@ public com.google.cloud.config.v1.Preview getPreviews(int index) { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -795,7 +795,7 @@ public Builder setPreviews(int index, com.google.cloud.config.v1.Preview value) * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -815,7 +815,7 @@ public Builder setPreviews( * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -837,7 +837,7 @@ public Builder addPreviews(com.google.cloud.config.v1.Preview value) { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -859,7 +859,7 @@ public Builder addPreviews(int index, com.google.cloud.config.v1.Preview value) * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -878,7 +878,7 @@ public Builder addPreviews(com.google.cloud.config.v1.Preview.Builder builderFor * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -898,7 +898,7 @@ public Builder addPreviews( * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -918,7 +918,7 @@ public Builder addAllPreviews( * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -937,7 +937,7 @@ public Builder clearPreviews() { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -956,7 +956,7 @@ public Builder removePreviews(int index) { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -968,7 +968,7 @@ public com.google.cloud.config.v1.Preview.Builder getPreviewsBuilder(int index) * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -984,7 +984,7 @@ public com.google.cloud.config.v1.PreviewOrBuilder getPreviewsOrBuilder(int inde * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -1001,7 +1001,7 @@ public com.google.cloud.config.v1.PreviewOrBuilder getPreviewsOrBuilder(int inde * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -1014,7 +1014,7 @@ public com.google.cloud.config.v1.Preview.Builder addPreviewsBuilder() { * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -1027,7 +1027,7 @@ public com.google.cloud.config.v1.Preview.Builder addPreviewsBuilder(int index) * * *
        -     * List of [Previews][]s.
        +     * List of [Previews][google.cloud.config.v1.Preview].
              * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponseOrBuilder.java index 3bd938ac272a..bbad2d954a77 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponseOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListPreviewsResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListPreviewsResponseOrBuilder * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -38,7 +38,7 @@ public interface ListPreviewsResponseOrBuilder * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -48,7 +48,7 @@ public interface ListPreviewsResponseOrBuilder * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -58,7 +58,7 @@ public interface ListPreviewsResponseOrBuilder * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; @@ -68,7 +68,7 @@ public interface ListPreviewsResponseOrBuilder * * *
        -   * List of [Previews][]s.
        +   * List of [Previews][google.cloud.config.v1.Preview].
            * 
        * * repeated .google.cloud.config.v1.Preview previews = 1; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponse.java index f79b59d3d837..041b661bcc74 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponse.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponse.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -86,7 +86,7 @@ public java.util.List getResourcesList() { * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -100,7 +100,7 @@ public java.util.List getResourcesList() { * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -113,7 +113,7 @@ public int getResourcesCount() { * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -126,7 +126,7 @@ public com.google.cloud.config.v1.Resource getResources(int index) { * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -727,7 +727,7 @@ private void ensureResourcesIsMutable() { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -743,7 +743,7 @@ public java.util.List getResourcesList() { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -759,7 +759,7 @@ public int getResourcesCount() { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -775,7 +775,7 @@ public com.google.cloud.config.v1.Resource getResources(int index) { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -797,7 +797,7 @@ public Builder setResources(int index, com.google.cloud.config.v1.Resource value * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -817,7 +817,7 @@ public Builder setResources( * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -839,7 +839,7 @@ public Builder addResources(com.google.cloud.config.v1.Resource value) { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -861,7 +861,7 @@ public Builder addResources(int index, com.google.cloud.config.v1.Resource value * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -880,7 +880,7 @@ public Builder addResources(com.google.cloud.config.v1.Resource.Builder builderF * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -900,7 +900,7 @@ public Builder addResources( * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -920,7 +920,7 @@ public Builder addAllResources( * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -939,7 +939,7 @@ public Builder clearResources() { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -958,7 +958,7 @@ public Builder removeResources(int index) { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -970,7 +970,7 @@ public com.google.cloud.config.v1.Resource.Builder getResourcesBuilder(int index * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -986,7 +986,7 @@ public com.google.cloud.config.v1.ResourceOrBuilder getResourcesOrBuilder(int in * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -1003,7 +1003,7 @@ public com.google.cloud.config.v1.ResourceOrBuilder getResourcesOrBuilder(int in * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -1016,7 +1016,7 @@ public com.google.cloud.config.v1.Resource.Builder addResourcesBuilder() { * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -1029,7 +1029,7 @@ public com.google.cloud.config.v1.Resource.Builder addResourcesBuilder(int index * * *
        -     * List of [Resources][]s.
        +     * List of [Resources][google.cloud.config.v1.Resource].
              * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponseOrBuilder.java index c4d2e5278e3b..57815dd2b1c1 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponseOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourcesResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListResourcesResponseOrBuilder * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -38,7 +38,7 @@ public interface ListResourcesResponseOrBuilder * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -48,7 +48,7 @@ public interface ListResourcesResponseOrBuilder * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -58,7 +58,7 @@ public interface ListResourcesResponseOrBuilder * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; @@ -69,7 +69,7 @@ public interface ListResourcesResponseOrBuilder * * *
        -   * List of [Resources][]s.
        +   * List of [Resources][google.cloud.config.v1.Resource].
            * 
        * * repeated .google.cloud.config.v1.Resource resources = 1; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java index 9f2b0a40dc0d..a12c4485242a 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadata.java @@ -491,9 +491,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
            * Output only. Identifies whether the user has requested cancellation of the
            * operation. Operations that have successfully been cancelled have
        -   * [Operation.error][] value with a
        -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
        -   * `Code.CANCELLED`.
        +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
        +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
        +   * corresponding to `Code.CANCELLED`.
            * 
        * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2352,9 +2352,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
              * Output only. Identifies whether the user has requested cancellation of the
              * operation. Operations that have successfully been cancelled have
        -     * [Operation.error][] value with a
        -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
        -     * `Code.CANCELLED`.
        +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
        +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
        +     * corresponding to `Code.CANCELLED`.
              * 
        * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2371,9 +2371,9 @@ public boolean getRequestedCancellation() { *
              * Output only. Identifies whether the user has requested cancellation of the
              * operation. Operations that have successfully been cancelled have
        -     * [Operation.error][] value with a
        -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
        -     * `Code.CANCELLED`.
        +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
        +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
        +     * corresponding to `Code.CANCELLED`.
              * 
        * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2394,9 +2394,9 @@ public Builder setRequestedCancellation(boolean value) { *
              * Output only. Identifies whether the user has requested cancellation of the
              * operation. Operations that have successfully been cancelled have
        -     * [Operation.error][] value with a
        -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
        -     * `Code.CANCELLED`.
        +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
        +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
        +     * corresponding to `Code.CANCELLED`.
              * 
        * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java index 552b0c42a3c9..04b9ca6ac2e0 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/OperationMetadataOrBuilder.java @@ -263,9 +263,9 @@ public interface OperationMetadataOrBuilder *
            * Output only. Identifies whether the user has requested cancellation of the
            * operation. Operations that have successfully been cancelled have
        -   * [Operation.error][] value with a
        -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
        -   * `Code.CANCELLED`.
        +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
        +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
        +   * corresponding to `Code.CANCELLED`.
            * 
        * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java index ab782a65f495..bf64d4ab1e7d 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java @@ -75,6 +75,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 20: + return internalGetAnnotations(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1214,13 +1216,13 @@ public com.google.cloud.config.v1.Preview.PreviewMode getPreviewMode() { * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * previewing resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -1241,13 +1243,13 @@ public java.lang.String getServiceAccount() { * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * previewing resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. @@ -1957,6 +1959,125 @@ public com.google.protobuf.ByteString getTfVersionConstraintBytes() { } } + public static final int ANNOTATIONS_FIELD_NUMBER = 20; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_Preview_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2029,6 +2150,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, tfVersionConstraint_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 20); getUnknownFields().writeTo(output); } @@ -2106,6 +2229,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, tfVersionConstraint_); } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, annotations__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2157,6 +2290,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTfVersionConstraint()) { if (!getTfVersionConstraint().equals(other.getTfVersionConstraint())) return false; } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!getBlueprintCase().equals(other.getBlueprintCase())) return false; switch (blueprintCase_) { case 6: @@ -2228,6 +2362,10 @@ public int hashCode() { hash = (37 * hash) + TF_VERSION_CONSTRAINT_FIELD_NUMBER; hash = (53 * hash) + getTfVersionConstraint().hashCode(); } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } switch (blueprintCase_) { case 6: hash = (37 * hash) + TERRAFORM_BLUEPRINT_FIELD_NUMBER; @@ -2361,6 +2499,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 20: + return internalGetAnnotations(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2372,6 +2512,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 3: return internalGetMutableLabels(); + case 20: + return internalGetMutableAnnotations(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2449,6 +2591,7 @@ public Builder clear() { logs_ = ""; tfVersion_ = ""; tfVersionConstraint_ = ""; + internalGetMutableAnnotations().clear(); blueprintCase_ = 0; blueprint_ = null; return this; @@ -2561,6 +2704,10 @@ private void buildPartial0(com.google.cloud.config.v1.Preview result) { result.tfVersionConstraint_ = tfVersionConstraint_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -2714,6 +2861,8 @@ public Builder mergeFrom(com.google.cloud.config.v1.Preview other) { bitField0_ |= 0x00040000; onChanged(); } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00080000; switch (other.getBlueprintCase()) { case TERRAFORM_BLUEPRINT: { @@ -2880,6 +3029,18 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 154 + case 162: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00080000; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3940,13 +4101,13 @@ public Builder clearPreviewMode() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * previewing resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -3966,13 +4127,13 @@ public java.lang.String getServiceAccount() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * previewing resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. @@ -3992,13 +4153,13 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * previewing resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The serviceAccount to set. @@ -4017,13 +4178,13 @@ public Builder setServiceAccount(java.lang.String value) { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * previewing resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4038,13 +4199,13 @@ public Builder clearServiceAccount() { * * *
        -     * Optional. User-specified Service Account (SA) credentials to be used when
        +     * Required. User-specified Service Account (SA) credentials to be used when
              * previewing resources.
              * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
              * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for serviceAccount to set. @@ -5868,6 +6029,200 @@ public Builder setTfVersionConstraintBytes(com.google.protobuf.ByteString value) return this; } + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00080000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00080000; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00080000; + return this; + } + /** + * + * + *
        +     * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +     * identifiy preview during automation. See
        +     * https://google.aip.dev/148#annotations for details on format and size
        +     * limitations.
        +     * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00080000; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java index f9addc345554..bd2fb2032691 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java @@ -281,13 +281,13 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * previewing resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The serviceAccount. @@ -297,13 +297,13 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Optional. User-specified Service Account (SA) credentials to be used when
        +   * Required. User-specified Service Account (SA) credentials to be used when
            * previewing resources.
            * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
            * 
        * * - * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string service_account = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for serviceAccount. @@ -756,5 +756,83 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getTfVersionConstraintBytes(); + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
        +   * Optional. Arbitrary key-value metadata storage e.g. to help client tools
        +   * identifiy preview during automation. See
        +   * https://google.aip.dev/148#annotations for details on format and size
        +   * limitations.
        +   * 
        + * + * map<string, string> annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + com.google.cloud.config.v1.Preview.BlueprintCase getBlueprintCase(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java index 533d71687f24..e8be765c2514 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java @@ -128,14 +128,14 @@ public SourceCase getSourceCase() { * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return Whether the gcsSource field is set. */ @@ -146,14 +146,14 @@ public boolean hasGcsSource() { * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The gcsSource. */ @@ -177,14 +177,14 @@ public java.lang.String getGcsSource() { * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The bytes for gcsSource. */ @@ -210,12 +210,10 @@ public com.google.protobuf.ByteString getGcsSourceBytes() { * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return Whether the gitSource field is set. */ @@ -227,12 +225,10 @@ public boolean hasGitSource() { * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return The gitSource. */ @@ -247,12 +243,10 @@ public com.google.cloud.config.v1.GitSource getGitSource() { * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ @java.lang.Override public com.google.cloud.config.v1.GitSourceOrBuilder getGitSourceOrBuilder() { @@ -854,14 +848,14 @@ public Builder clearSource() { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return Whether the gcsSource field is set. */ @@ -873,14 +867,14 @@ public boolean hasGcsSource() { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The gcsSource. */ @@ -905,14 +899,14 @@ public java.lang.String getGcsSource() { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The bytes for gcsSource. */ @@ -937,14 +931,14 @@ public com.google.protobuf.ByteString getGcsSourceBytes() { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @param value The gcsSource to set. * @return This builder for chaining. @@ -962,14 +956,14 @@ public Builder setGcsSource(java.lang.String value) { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return This builder for chaining. */ @@ -985,14 +979,14 @@ public Builder clearGcsSource() { * * *
        -     * Required. URI of an object in Google Cloud Storage.
        +     * URI of an object in Google Cloud Storage.
              * Format: `gs://{bucket}/{object}`
              *
              * URI may also specify an object version for zipped objects.
              * Format: `gs://{bucket}/{object}#{version}`
              * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @param value The bytes for gcsSource to set. * @return This builder for chaining. @@ -1017,12 +1011,10 @@ public Builder setGcsSourceBytes(com.google.protobuf.ByteString value) { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return Whether the gitSource field is set. */ @@ -1034,12 +1026,10 @@ public boolean hasGitSource() { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return The gitSource. */ @@ -1061,12 +1051,10 @@ public com.google.cloud.config.v1.GitSource getGitSource() { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ public Builder setGitSource(com.google.cloud.config.v1.GitSource value) { if (gitSourceBuilder_ == null) { @@ -1085,12 +1073,10 @@ public Builder setGitSource(com.google.cloud.config.v1.GitSource value) { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ public Builder setGitSource(com.google.cloud.config.v1.GitSource.Builder builderForValue) { if (gitSourceBuilder_ == null) { @@ -1106,12 +1092,10 @@ public Builder setGitSource(com.google.cloud.config.v1.GitSource.Builder builder * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ public Builder mergeGitSource(com.google.cloud.config.v1.GitSource value) { if (gitSourceBuilder_ == null) { @@ -1140,12 +1124,10 @@ public Builder mergeGitSource(com.google.cloud.config.v1.GitSource value) { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ public Builder clearGitSource() { if (gitSourceBuilder_ == null) { @@ -1167,12 +1149,10 @@ public Builder clearGitSource() { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ public com.google.cloud.config.v1.GitSource.Builder getGitSourceBuilder() { return getGitSourceFieldBuilder().getBuilder(); @@ -1181,12 +1161,10 @@ public com.google.cloud.config.v1.GitSource.Builder getGitSourceBuilder() { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ @java.lang.Override public com.google.cloud.config.v1.GitSourceOrBuilder getGitSourceOrBuilder() { @@ -1203,12 +1181,10 @@ public com.google.cloud.config.v1.GitSourceOrBuilder getGitSourceOrBuilder() { * * *
        -     * Required. URI of a public Git repo.
        +     * URI of a public Git repo.
              * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.config.v1.GitSource, diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java index 4dcccbd04ea5..14ebd16e392b 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java @@ -28,14 +28,14 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return Whether the gcsSource field is set. */ @@ -44,14 +44,14 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The gcsSource. */ @@ -60,14 +60,14 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of an object in Google Cloud Storage.
        +   * URI of an object in Google Cloud Storage.
            * Format: `gs://{bucket}/{object}`
            *
            * URI may also specify an object version for zipped objects.
            * Format: `gs://{bucket}/{object}#{version}`
            * 
        * - * string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * string gcs_source = 1; * * @return The bytes for gcsSource. */ @@ -77,12 +77,10 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return Whether the gitSource field is set. */ @@ -91,12 +89,10 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; * * @return The gitSource. */ @@ -105,12 +101,10 @@ public interface TerraformBlueprintOrBuilder * * *
        -   * Required. URI of a public Git repo.
        +   * URI of a public Git repo.
            * 
        * - * - * .google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.config.v1.GitSource git_source = 2; */ com.google.cloud.config.v1.GitSourceOrBuilder getGitSourceOrBuilder(); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto index 9bafe34a219f..b9b2559c9cf0 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto @@ -135,7 +135,7 @@ service Config { option (google.api.method_signature) = "name"; } - // Lists [Resource][google.cloud.config.v1.Resource]s in a given revision. + // Lists [Resources][google.cloud.config.v1.Resource] in a given revision. rpc ListResources(ListResourcesRequest) returns (ListResourcesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/deployments/*/revisions/*}/resources" @@ -463,11 +463,11 @@ message Deployment { optional string artifacts_gcs_bucket = 15 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User-specified Service Account (SA) credentials to be used when + // Required. User-specified Service Account (SA) credentials to be used when // actuating resources. // Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` optional string service_account = 16 [ - (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "iam.googleapis.com/ServiceAccount" } @@ -523,16 +523,17 @@ message Deployment { // describes the resources and configs to be deployed. message TerraformBlueprint { // Location of the source configs. + // Required. oneof source { - // Required. URI of an object in Google Cloud Storage. + // URI of an object in Google Cloud Storage. // Format: `gs://{bucket}/{object}` // // URI may also specify an object version for zipped objects. // Format: `gs://{bucket}/{object}#{version}` - string gcs_source = 1 [(google.api.field_behavior) = REQUIRED]; + string gcs_source = 1; - // Required. URI of a public Git repo. - GitSource git_source = 2 [(google.api.field_behavior) = REQUIRED]; + // URI of a public Git repo. + GitSource git_source = 2; } // Input variable values for the Terraform blueprint. @@ -858,9 +859,9 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation of the // operation. Operations that have successfully been cancelled have - // [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. @@ -1264,7 +1265,7 @@ message ListResourcesRequest { // A response to a 'ListResources' call. Contains a list of Resources. message ListResourcesResponse { - // List of [Resources][]s. + // List of [Resources][google.cloud.config.v1.Resource]. repeated Resource resources = 1; // A token to request the next page of resources from the 'ListResources' @@ -1521,11 +1522,11 @@ message Preview { // Optional. Current mode of preview. PreviewMode preview_mode = 15 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User-specified Service Account (SA) credentials to be used when + // Required. User-specified Service Account (SA) credentials to be used when // previewing resources. // Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` string service_account = 7 [ - (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "iam.googleapis.com/ServiceAccount" } @@ -1592,6 +1593,12 @@ message Preview { // Example: "=1.3.10". optional string tf_version_constraint = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Arbitrary key-value metadata storage e.g. to help client tools + // identifiy preview during automation. See + // https://google.aip.dev/148#annotations for details on format and size + // limitations. + map annotations = 20 [(google.api.field_behavior) = OPTIONAL]; } // Ephemeral metadata content describing the state of a preview operation. @@ -1753,7 +1760,7 @@ message ListPreviewsRequest { // A response to a `ListPreviews` call. Contains a list of Previews. message ListPreviewsResponse { - // List of [Previews][]s. + // List of [Previews][google.cloud.config.v1.Preview]. repeated Preview previews = 1; // Token to be supplied to the next ListPreviews request via `page_token` diff --git a/java-iot/README.md b/java-iot/README.md index 5d5397cf760f..814ab0a72127 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.53.0' +implementation 'com.google.cloud:google-cloud-iot:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/README.md b/java-kms/README.md index f31d2e47f225..0ea74f5e0fd6 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.56.0' +implementation 'com.google.cloud:google-cloud-kms:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.57.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java index 00c91ef70bd4..5ceac035fd5c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java @@ -127,6 +127,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The suffix following `HMAC_` corresponds to the hash algorithm being used * (eg. SHA256). * + * Algorithms beginning with `PQ_` are post-quantum. + * * For more information, see [Key purposes and algorithms] * (https://cloud.google.com/kms/docs/algorithms). *
      diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java index dffad2daa5e8..7c378d690624 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java @@ -191,14 +191,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ifyConnectivity\032t\312A\027cloudkms.googleapis." + "com\322AWhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/cloudkmsB\205\002\n\027com.google.cloud.kms.v" + + "auth/cloudkmsB\202\002\n\027com.google.cloud.kms.v" + "1B\017EkmServiceProtoP\001Z)cloud.google.com/g" - + "o/kms/apiv1/kmspb;kmspb\370\001\001\252\002\023Google.Clou" - + "d.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1\352A|\n\'servi" - + "cedirectory.googleapis.com/Service\022Qproj" - + "ects/{project}/locations/{location}/name" - + "spaces/{namespace}/services/{service}b\006p" - + "roto3" + + "o/kms/apiv1/kmspb;kmspb\252\002\023Google.Cloud.K" + + "ms.V1\312\002\023Google\\Cloud\\Kms\\V1\352A|\n\'serviced" + + "irectory.googleapis.com/Service\022Qproject" + + "s/{project}/locations/{location}/namespa" + + "ces/{namespace}/services/{service}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java index 863b91699bba..37f7cb9d663d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java @@ -253,11 +253,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ER_INITIATED_ACCESS\020\010\022.\n*MODIFIED_GOOGLE" + "_INITIATED_SYSTEM_OPERATION\020\t\022\'\n#GOOGLE_" + "RESPONSE_TO_PRODUCTION_ALERT\020\n\022*\n&CUSTOM" - + "ER_AUTHORIZED_WORKFLOW_SERVICING\020\013B\210\001\n\027c" + + "ER_AUTHORIZED_WORKFLOW_SERVICING\020\013B\205\001\n\027c" + "om.google.cloud.kms.v1B\021KmsResourcesProt" + "oP\001Z)cloud.google.com/go/kms/apiv1/kmspb" - + ";kmspb\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google" - + "\\Cloud\\Kms\\V1b\006proto3" + + ";kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cl" + + "oud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto index f5130ced1a24..d8ac55ade24b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto @@ -23,7 +23,6 @@ import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Kms.V1"; option go_package = "cloud.google.com/go/kms/apiv1/kmspb;kmspb"; option java_multiple_files = true; diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index 439e127f3ca2..2cc196550a6c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -22,7 +22,6 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Kms.V1"; option go_package = "cloud.google.com/go/kms/apiv1/kmspb;kmspb"; option java_multiple_files = true; @@ -348,6 +347,8 @@ message CryptoKeyVersion { // The suffix following `HMAC_` corresponds to the hash algorithm being used // (eg. SHA256). // + // Algorithms beginning with `PQ_` are post-quantum. + // // For more information, see [Key purposes and algorithms] // (https://cloud.google.com/kms/docs/algorithms). enum CryptoKeyVersionAlgorithm { diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 2a3b6c5ef257..776394cdf786 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.42.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.43.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/README.md b/java-language/README.md index 2abfd44062d7..b825e6175fcb 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.54.0' +implementation 'com.google.cloud:google-cloud-language:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.55.0" ``` ## Authentication @@ -226,7 +226,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 542d3f3124fb..f79a908e7798 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.55.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.56.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index f90183e2b7b3..4dfd8414f604 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.51.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 7a016181c08b..c01dddda0858 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.9.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java index 15feefa7a630..4205e76228c4 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java +++ b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java @@ -199,6 +199,8 @@ public void getClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); mockService.addResponse(expectedResponse); @@ -248,6 +250,8 @@ public void getClusterTest2() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); mockService.addResponse(expectedResponse); @@ -297,6 +301,8 @@ public void createClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -355,6 +361,8 @@ public void createClusterTest2() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -413,6 +421,8 @@ public void updateClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -430,6 +440,8 @@ public void updateClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -467,6 +479,8 @@ public void updateClusterExceptionTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); diff --git a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java index 985af7909f59..43f49b9fe693 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java +++ b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java @@ -194,6 +194,8 @@ public void getClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); mockManagedKafka.addResponse(expectedResponse); @@ -237,6 +239,8 @@ public void getClusterTest2() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); mockManagedKafka.addResponse(expectedResponse); @@ -280,6 +284,8 @@ public void createClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -337,6 +343,8 @@ public void createClusterTest2() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -394,6 +402,8 @@ public void updateClusterTest() throws Exception { .putAllLabels(new HashMap()) .setCapacityConfig(CapacityConfig.newBuilder().build()) .setRebalanceConfig(RebalanceConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java index b37e8590c592..5f08a71d5517 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java @@ -766,6 +766,72 @@ public com.google.cloud.managedkafka.v1.Cluster.State getState() { return result == null ? com.google.cloud.managedkafka.v1.Cluster.State.UNRECOGNIZED : result; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 11; + private boolean satisfiesPzi_ = false; + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 12; + private boolean satisfiesPzs_ = false; + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -803,6 +869,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.managedkafka.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(11, satisfiesPzi_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(12, satisfiesPzs_); + } getUnknownFields().writeTo(output); } @@ -845,6 +917,12 @@ public int getSerializedSize() { if (state_ != com.google.cloud.managedkafka.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, satisfiesPzi_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, satisfiesPzs_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -879,6 +957,14 @@ public boolean equals(final java.lang.Object obj) { if (!getRebalanceConfig().equals(other.getRebalanceConfig())) return false; } if (state_ != other.state_) return false; + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } + if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + } if (!getPlatformConfigCase().equals(other.getPlatformConfigCase())) return false; switch (platformConfigCase_) { case 9: @@ -922,6 +1008,14 @@ public int hashCode() { } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } + if (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + } switch (platformConfigCase_) { case 9: hash = (37 * hash) + GCP_CONFIG_FIELD_NUMBER; @@ -1129,6 +1223,8 @@ public Builder clear() { rebalanceConfigBuilder_ = null; } state_ = 0; + satisfiesPzi_ = false; + satisfiesPzs_ = false; platformConfigCase_ = 0; platformConfig_ = null; return this; @@ -1197,6 +1293,14 @@ private void buildPartial0(com.google.cloud.managedkafka.v1.Cluster result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -1275,6 +1379,12 @@ public Builder mergeFrom(com.google.cloud.managedkafka.v1.Cluster other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } + if (other.hasSatisfiesPzs()) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } switch (other.getPlatformConfigCase()) { case GCP_CONFIG: { @@ -1366,6 +1476,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 80 + case 88: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 88 + case 96: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2825,6 +2947,142 @@ public Builder clearState() { return this; } + private boolean satisfiesPzi_; + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000100); + satisfiesPzi_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzs_; + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000200); + satisfiesPzs_ = 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-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java index b504716a1699..5b049926f982 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java @@ -340,5 +340,55 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.managedkafka.v1.Cluster.State getState(); + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * optional bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + com.google.cloud.managedkafka.v1.Cluster.PlatformConfigCase getPlatformConfigCase(); } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java index 6eb6bc3c0d0e..0710b4b447f8 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java @@ -101,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\022\034google.cloud.managedkafka.v1\032\037go" + "ogle/api/field_behavior.proto\032\031google/ap" + "i/resource.proto\032\037google/protobuf/timest" - + "amp.proto\"\362\005\n\007Cluster\022B\n\ngcp_config\030\t \001(" + + "amp.proto\"\330\006\n\007Cluster\022B\n\ngcp_config\030\t \001(" + "\0132\'.google.cloud.managedkafka.v1.GcpConf" + "igB\003\340A\002H\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_t" + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" @@ -113,68 +113,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003\340A\002\022L\n\020rebalance_config\030\010 \001(\0132-.google." + "cloud.managedkafka.v1.RebalanceConfigB\003\340" + "A\001\022?\n\005state\030\n \001(\0162+.google.cloud.managed" - + "kafka.v1.Cluster.StateB\003\340A\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" - + "\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003:w\352At\n#managed" - + "kafka.googleapis.com/Cluster\022:projects/{" - + "project}/locations/{location}/clusters/{" - + "cluster}*\010clusters2\007clusterB\021\n\017platform_" - + "config\"D\n\016CapacityConfig\022\027\n\nvcpu_count\030\001" - + " \001(\003B\003\340A\002\022\031\n\014memory_bytes\030\002 \001(\003B\003\340A\002\"\250\001\n" - + "\017RebalanceConfig\022E\n\004mode\030\001 \001(\01622.google." - + "cloud.managedkafka.v1.RebalanceConfig.Mo" - + "deB\003\340A\001\"N\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n" - + "\014NO_REBALANCE\020\001\022\036\n\032AUTO_REBALANCE_ON_SCA" - + "LE_UP\020\002\"$\n\rNetworkConfig\022\023\n\006subnet\030\002 \001(\t" - + "B\003\340A\002\"Y\n\014AccessConfig\022I\n\017network_configs" - + "\030\001 \003(\0132+.google.cloud.managedkafka.v1.Ne" - + "tworkConfigB\003\340A\002\"\222\001\n\tGcpConfig\022F\n\raccess" - + "_config\030\003 \001(\0132*.google.cloud.managedkafk" - + "a.v1.AccessConfigB\003\340A\002\022=\n\007kms_key\030\002 \001(\tB" - + ",\340A\001\340A\005\372A#\n!cloudkms.googleapis.com/Cryp" - + "toKey\"\327\002\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\034\n\017pa" - + "rtition_count\030\002 \001(\005B\003\340A\002\022\"\n\022replication_" - + "factor\030\003 \001(\005B\006\340A\002\340A\005\022F\n\007configs\030\004 \003(\01320." - + "google.cloud.managedkafka.v1.Topic.Confi" - + "gsEntryB\003\340A\001\032.\n\014ConfigsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n!managedkafka" - + ".googleapis.com/Topic\022Iprojects/{project" - + "}/locations/{location}/clusters/{cluster" - + "}/topics/{topic}*\006topics2\005topic\"\341\001\n\025Cons" - + "umerTopicMetadata\022\\\n\npartitions\030\001 \003(\0132C." - + "google.cloud.managedkafka.v1.ConsumerTop" - + "icMetadata.PartitionsEntryB\003\340A\001\032j\n\017Parti" - + "tionsEntry\022\013\n\003key\030\001 \001(\005\022F\n\005value\030\002 \001(\01327" - + ".google.cloud.managedkafka.v1.ConsumerPa" - + "rtitionMetadata:\0028\001\"G\n\031ConsumerPartition" - + "Metadata\022\023\n\006offset\030\001 \001(\003B\003\340A\002\022\025\n\010metadat" - + "a\030\002 \001(\tB\003\340A\001\"\201\003\n\rConsumerGroup\022\021\n\004name\030\001" - + " \001(\tB\003\340A\010\022L\n\006topics\030\002 \003(\01327.google.cloud" - + ".managedkafka.v1.ConsumerGroup.TopicsEnt" - + "ryB\003\340A\001\032b\n\013TopicsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005v" - + "alue\030\002 \001(\01323.google.cloud.managedkafka.v" - + "1.ConsumerTopicMetadata:\0028\001:\252\001\352A\246\001\n)mana" - + "gedkafka.googleapis.com/ConsumerGroup\022Zp" - + "rojects/{project}/locations/{location}/c" - + "lusters/{cluster}/consumerGroups/{consum" - + "er_group}*\016consumerGroups2\rconsumerGroup" - + "\"\200\002\n\021OperationMetadata\0224\n\013create_time\030\001 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" - + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\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_message\030\005 \001(\tB\003\340A\003\022#\n\026" - + "requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api" - + "_version\030\007 \001(\tB\003\340A\003B\325\002\n com.google.cloud" - + ".managedkafka.v1B\016ResourcesProtoP\001ZDclou" - + "d.google.com/go/managedkafka/apiv1/manag" - + "edkafkapb;managedkafkapb\252\002\034Google.Cloud." - + "ManagedKafka.V1\312\002\034Google\\Cloud\\ManagedKa" - + "fka\\V1\352\002\037Google::Cloud::ManagedKafka::V1" - + "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" - + "projects/{project}/locations/{location}/" - + "keyRings/{key_ring}/cryptoKeys/{crypto_k" - + "ey}b\006proto3" + + "kafka.v1.Cluster.StateB\003\340A\003\022\037\n\rsatisfies" + + "_pzi\030\013 \001(\010B\003\340A\003H\001\210\001\001\022\037\n\rsatisfies_pzs\030\014 " + + "\001(\010B\003\340A\003H\002\210\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014" + + "\n\010DELETING\020\003:w\352At\n#managedkafka.googleap" + + "is.com/Cluster\022:projects/{project}/locat" + + "ions/{location}/clusters/{cluster}*\010clus" + + "ters2\007clusterB\021\n\017platform_configB\020\n\016_sat" + + "isfies_pziB\020\n\016_satisfies_pzs\"D\n\016Capacity" + + "Config\022\027\n\nvcpu_count\030\001 \001(\003B\003\340A\002\022\031\n\014memor" + + "y_bytes\030\002 \001(\003B\003\340A\002\"\250\001\n\017RebalanceConfig\022E" + + "\n\004mode\030\001 \001(\01622.google.cloud.managedkafka" + + ".v1.RebalanceConfig.ModeB\003\340A\001\"N\n\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\020\n\014NO_REBALANCE\020\001\022\036\n" + + "\032AUTO_REBALANCE_ON_SCALE_UP\020\002\"$\n\rNetwork" + + "Config\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"Y\n\014AccessCon" + + "fig\022I\n\017network_configs\030\001 \003(\0132+.google.cl" + + "oud.managedkafka.v1.NetworkConfigB\003\340A\002\"\222" + + "\001\n\tGcpConfig\022F\n\raccess_config\030\003 \001(\0132*.go" + + "ogle.cloud.managedkafka.v1.AccessConfigB" + + "\003\340A\002\022=\n\007kms_key\030\002 \001(\tB,\340A\001\340A\005\372A#\n!cloudk" + + "ms.googleapis.com/CryptoKey\"\327\002\n\005Topic\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n\017partition_count\030\002 \001(" + + "\005B\003\340A\002\022\"\n\022replication_factor\030\003 \001(\005B\006\340A\002\340" + + "A\005\022F\n\007configs\030\004 \003(\01320.google.cloud.manag" + + "edkafka.v1.Topic.ConfigsEntryB\003\340A\001\032.\n\014Co" + + "nfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:\200\001\352A}\n!managedkafka.googleapis.com/To" + + "pic\022Iprojects/{project}/locations/{locat" + + "ion}/clusters/{cluster}/topics/{topic}*\006" + + "topics2\005topic\"\341\001\n\025ConsumerTopicMetadata\022" + + "\\\n\npartitions\030\001 \003(\0132C.google.cloud.manag" + + "edkafka.v1.ConsumerTopicMetadata.Partiti" + + "onsEntryB\003\340A\001\032j\n\017PartitionsEntry\022\013\n\003key\030" + + "\001 \001(\005\022F\n\005value\030\002 \001(\01327.google.cloud.mana" + + "gedkafka.v1.ConsumerPartitionMetadata:\0028" + + "\001\"G\n\031ConsumerPartitionMetadata\022\023\n\006offset" + + "\030\001 \001(\003B\003\340A\002\022\025\n\010metadata\030\002 \001(\tB\003\340A\001\"\201\003\n\rC" + + "onsumerGroup\022\021\n\004name\030\001 \001(\tB\003\340A\010\022L\n\006topic" + + "s\030\002 \003(\01327.google.cloud.managedkafka.v1.C" + + "onsumerGroup.TopicsEntryB\003\340A\001\032b\n\013TopicsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.googl" + + "e.cloud.managedkafka.v1.ConsumerTopicMet" + + "adata:\0028\001:\252\001\352A\246\001\n)managedkafka.googleapi" + + "s.com/ConsumerGroup\022Zprojects/{project}/" + + "locations/{location}/clusters/{cluster}/" + + "consumerGroups/{consumer_group}*\016consume" + + "rGroups2\rconsumerGroup\"\200\002\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.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_" + + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + + "\003B\325\002\n com.google.cloud.managedkafka.v1B\016" + + "ResourcesProtoP\001ZDcloud.google.com/go/ma" + + "nagedkafka/apiv1/managedkafkapb;managedk" + + "afkapb\252\002\034Google.Cloud.ManagedKafka.V1\312\002\034" + + "Google\\Cloud\\ManagedKafka\\V1\352\002\037Google::C" + + "loud::ManagedKafka::V1\352Ax\n!cloudkms.goog" + + "leapis.com/CryptoKey\022Sprojects/{project}" + + "/locations/{location}/keyRings/{key_ring" + + "}/cryptoKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -198,6 +200,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CapacityConfig", "RebalanceConfig", "State", + "SatisfiesPzi", + "SatisfiesPzs", "PlatformConfig", }); internal_static_google_cloud_managedkafka_v1_Cluster_LabelsEntry_descriptor = diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto index 460ef20a31b4..640c58b57bd7 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto @@ -86,6 +86,12 @@ message Cluster { // Output only. The current state of the cluster. State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + optional bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + optional bool satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A capacity configuration of a Kafka cluster. diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 6b4e7f373088..e4480424d53f 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-addressvalidation - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.47.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.47.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.48.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 22026be520db..0206f1101617 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-area-insights - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.4.0' +implementation 'com.google.maps:google-maps-area-insights:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.4.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.5.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.5.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index b959e36add39..25d9ef5cf681 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine-delivery - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.0.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.0.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index e717c624dfbf..91d14d34ecc4 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.0.0' +implementation 'com.google.maps:google-maps-fleetengine:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.0.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatch.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatch.java index c8adb4829728..801029cca984 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatch.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatch.java @@ -833,7 +833,8 @@ public com.google.maps.fleetengine.v1.VehicleMatch.VehicleMatchType getVehicleMa * * *
      -   * The order requested for sorting vehicle matches.
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -849,7 +850,8 @@ public int getRequestedOrderedByValue() { * * *
      -   * The order requested for sorting vehicle matches.
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -874,10 +876,8 @@ public int getRequestedOrderedByValue() { * * *
      -   * The actual order that was used for this vehicle. Normally this
      -   * will match the 'order_by' field from the request; however, in certain
      -   * circumstances such as an internal server error, a different method
      -   * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `requested_ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -892,10 +892,8 @@ public int getOrderedByValue() { * * *
      -   * The actual order that was used for this vehicle. Normally this
      -   * will match the 'order_by' field from the request; however, in certain
      -   * circumstances such as an internal server error, a different method
      -   * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `requested_ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -3622,7 +3620,8 @@ public Builder clearVehicleMatchType() { * * *
      -     * The order requested for sorting vehicle matches.
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -3638,7 +3637,8 @@ public int getRequestedOrderedByValue() { * * *
      -     * The order requested for sorting vehicle matches.
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -3657,7 +3657,8 @@ public Builder setRequestedOrderedByValue(int value) { * * *
      -     * The order requested for sorting vehicle matches.
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -3679,7 +3680,8 @@ public Builder setRequestedOrderedByValue(int value) { * * *
      -     * The order requested for sorting vehicle matches.
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -3702,7 +3704,8 @@ public Builder setRequestedOrderedBy( * * *
      -     * The order requested for sorting vehicle matches.
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -3722,10 +3725,8 @@ public Builder clearRequestedOrderedBy() { * * *
      -     * The actual order that was used for this vehicle. Normally this
      -     * will match the 'order_by' field from the request; however, in certain
      -     * circumstances such as an internal server error, a different method
      -     * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `requested_ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -3740,10 +3741,8 @@ public int getOrderedByValue() { * * *
      -     * The actual order that was used for this vehicle. Normally this
      -     * will match the 'order_by' field from the request; however, in certain
      -     * circumstances such as an internal server error, a different method
      -     * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `requested_ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -3761,10 +3760,8 @@ public Builder setOrderedByValue(int value) { * * *
      -     * The actual order that was used for this vehicle. Normally this
      -     * will match the 'order_by' field from the request; however, in certain
      -     * circumstances such as an internal server error, a different method
      -     * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `requested_ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -3784,10 +3781,8 @@ public com.google.maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ge * * *
      -     * The actual order that was used for this vehicle. Normally this
      -     * will match the 'order_by' field from the request; however, in certain
      -     * circumstances such as an internal server error, a different method
      -     * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `requested_ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -3809,10 +3804,8 @@ public Builder setOrderedBy( * * *
      -     * The actual order that was used for this vehicle. Normally this
      -     * will match the 'order_by' field from the request; however, in certain
      -     * circumstances such as an internal server error, a different method
      -     * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +     * The order requested for sorting vehicle matches. Equivalent to
      +     * `requested_ordered_by`.
            * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatchOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatchOrBuilder.java index 7274f14f28ef..4fc5525aeafe 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatchOrBuilder.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleMatchOrBuilder.java @@ -439,7 +439,8 @@ public interface VehicleMatchOrBuilder * * *
      -   * The order requested for sorting vehicle matches.
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -452,7 +453,8 @@ public interface VehicleMatchOrBuilder * * *
      -   * The order requested for sorting vehicle matches.
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; @@ -466,10 +468,8 @@ public interface VehicleMatchOrBuilder * * *
      -   * The actual order that was used for this vehicle. Normally this
      -   * will match the 'order_by' field from the request; however, in certain
      -   * circumstances such as an internal server error, a different method
      -   * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `requested_ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; @@ -481,10 +481,8 @@ public interface VehicleMatchOrBuilder * * *
      -   * The actual order that was used for this vehicle. Normally this
      -   * will match the 'order_by' field from the request; however, in certain
      -   * circumstances such as an internal server error, a different method
      -   * may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`).
      +   * The order requested for sorting vehicle matches. Equivalent to
      +   * `requested_ordered_by`.
          * 
      * * .maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/vehicle_api.proto b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/vehicle_api.proto index 9f07c14bfba4..c749e9628ce0 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/vehicle_api.proto +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/vehicle_api.proto @@ -771,13 +771,12 @@ message VehicleMatch { // Type of the vehicle match. VehicleMatchType vehicle_match_type = 8; - // The order requested for sorting vehicle matches. + // The order requested for sorting vehicle matches. Equivalent to + // `ordered_by`. SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - // The actual order that was used for this vehicle. Normally this - // will match the 'order_by' field from the request; however, in certain - // circumstances such as an internal server error, a different method - // may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). + // The order requested for sorting vehicle matches. Equivalent to + // `requested_ordered_by`. SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; } diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 6a9825bcfb5d..bd27a068f468 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-mapsplatformdatasets - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.42.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.42.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.43.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 907ff0397f10..cd52b36fdbbd 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-places - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.24.0' +implementation 'com.google.maps:google-maps-places:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.24.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.25.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.25.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 66a765673c58..964b925ae66a 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routeoptimization - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.11.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.11.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.12.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 1536f64f6571..5058c3bea308 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routing - 1.38.0 + 1.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.38.0' +implementation 'com.google.maps:google-maps-routing:1.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.38.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.39.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json b/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json index e116a3c0dc9d..78ba0710a433 100644 --- a/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json +++ b/java-maps-routing/google-maps-routing/src/main/resources/META-INF/native-image/com.google.maps.routing.v2/reflect-config.json @@ -665,6 +665,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.routing.v2.PolylineDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$FlyoverInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$FlyoverInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$NarrowRoadInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$NarrowRoadInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$PolylinePointIndex", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$PolylinePointIndex$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.routing.v2.PolylineDetails$RoadFeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.routing.v2.PolylineEncoding", "queryAllDeclaredConstructors": true, diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java index d6c0b76644f4..eed7eb60336a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java @@ -97,13 +97,35 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Fuel efficient route. Routes labeled with this value are determined to be
      -     * optimized for parameters such as fuel consumption.
      +     * Fuel efficient route.
            * 
      * * FUEL_EFFICIENT = 1; */ FUEL_EFFICIENT(1), + /** + * + * + *
      +     * Route with shorter travel distance. This is an experimental feature.
      +     *
      +     * For `DRIVE` requests, this feature prioritizes shorter distance over
      +     * driving comfort. For example, it may prefer local roads instead of
      +     * highways, take dirt roads, cut through parking lots, etc. This feature
      +     * does not return any maneuvers that Google Maps knows to be illegal.
      +     *
      +     * For `BICYCLE` and `TWO_WHEELER` requests, this feature returns routes
      +     * similar to those returned when you don't specify
      +     * `requested_reference_routes`.
      +     *
      +     * This feature is not compatible with any other travel modes, via
      +     * intermediate waypoints, or `optimize_waypoint_order`; such requests will
      +     * fail. However, you can use it with any `routing_preference`.
      +     * 
      + * + * SHORTER_DISTANCE = 2; + */ + SHORTER_DISTANCE(2), UNRECOGNIZED(-1), ; @@ -121,13 +143,35 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Fuel efficient route. Routes labeled with this value are determined to be
      -     * optimized for parameters such as fuel consumption.
      +     * Fuel efficient route.
            * 
      * * FUEL_EFFICIENT = 1; */ public static final int FUEL_EFFICIENT_VALUE = 1; + /** + * + * + *
      +     * Route with shorter travel distance. This is an experimental feature.
      +     *
      +     * For `DRIVE` requests, this feature prioritizes shorter distance over
      +     * driving comfort. For example, it may prefer local roads instead of
      +     * highways, take dirt roads, cut through parking lots, etc. This feature
      +     * does not return any maneuvers that Google Maps knows to be illegal.
      +     *
      +     * For `BICYCLE` and `TWO_WHEELER` requests, this feature returns routes
      +     * similar to those returned when you don't specify
      +     * `requested_reference_routes`.
      +     *
      +     * This feature is not compatible with any other travel modes, via
      +     * intermediate waypoints, or `optimize_waypoint_order`; such requests will
      +     * fail. However, you can use it with any `routing_preference`.
      +     * 
      + * + * SHORTER_DISTANCE = 2; + */ + public static final int SHORTER_DISTANCE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -157,6 +201,8 @@ public static ReferenceRoute forNumber(int value) { return REFERENCE_ROUTE_UNSPECIFIED; case 1: return FUEL_EFFICIENT; + case 2: + return SHORTER_DISTANCE; default: return null; } @@ -273,6 +319,34 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum * HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; */ HTML_FORMATTED_NAVIGATION_INSTRUCTIONS(4), + /** + * + * + *
      +     * Flyover information for the route(s). The
      +     * `routes.polyline_details.flyover_info` fieldmask must be specified to
      +     * return this information. This data will only currently be populated for
      +     * certain metros in India. This feature is experimental, and the
      +     * SKU/charge is subject to change.
      +     * 
      + * + * FLYOVER_INFO_ON_POLYLINE = 7; + */ + FLYOVER_INFO_ON_POLYLINE(7), + /** + * + * + *
      +     * Narrow road information for the route(s). The
      +     * `routes.polyline_details.narrow_road_info` fieldmask must be specified
      +     * to return this information. This data will only currently be populated
      +     * for certain metros in India. This feature is experimental, and the
      +     * SKU/charge is subject to change.
      +     * 
      + * + * NARROW_ROAD_INFO_ON_POLYLINE = 8; + */ + NARROW_ROAD_INFO_ON_POLYLINE(8), UNRECOGNIZED(-1), ; @@ -329,6 +403,34 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum * HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; */ public static final int HTML_FORMATTED_NAVIGATION_INSTRUCTIONS_VALUE = 4; + /** + * + * + *
      +     * Flyover information for the route(s). The
      +     * `routes.polyline_details.flyover_info` fieldmask must be specified to
      +     * return this information. This data will only currently be populated for
      +     * certain metros in India. This feature is experimental, and the
      +     * SKU/charge is subject to change.
      +     * 
      + * + * FLYOVER_INFO_ON_POLYLINE = 7; + */ + public static final int FLYOVER_INFO_ON_POLYLINE_VALUE = 7; + /** + * + * + *
      +     * Narrow road information for the route(s). The
      +     * `routes.polyline_details.narrow_road_info` fieldmask must be specified
      +     * to return this information. This data will only currently be populated
      +     * for certain metros in India. This feature is experimental, and the
      +     * SKU/charge is subject to change.
      +     * 
      + * + * NARROW_ROAD_INFO_ON_POLYLINE = 8; + */ + public static final int NARROW_ROAD_INFO_ON_POLYLINE_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -364,6 +466,10 @@ public static ExtraComputation forNumber(int value) { return TRAFFIC_ON_POLYLINE; case 4: return HTML_FORMATTED_NAVIGATION_INSTRUCTIONS; + case 7: + return FLYOVER_INFO_ON_POLYLINE; + case 8: + return NARROW_ROAD_INFO_ON_POLYLINE; default: return null; } @@ -1209,7 +1315,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -1233,7 +1342,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -1254,7 +1366,10 @@ public int getRequestedReferenceRoutesCount() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -1277,7 +1392,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -1298,7 +1416,10 @@ public java.util.List getRequestedReferenceRoutesValueList() * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5004,7 +5125,10 @@ private void ensureRequestedReferenceRoutesIsMutable() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5027,7 +5151,10 @@ private void ensureRequestedReferenceRoutesIsMutable() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5047,7 +5174,10 @@ public int getRequestedReferenceRoutesCount() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5069,7 +5199,10 @@ public int getRequestedReferenceRoutesCount() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5098,7 +5231,10 @@ public Builder setRequestedReferenceRoutes( * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5126,7 +5262,10 @@ public Builder addRequestedReferenceRoutes( * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5154,7 +5293,10 @@ public Builder addAllRequestedReferenceRoutes( * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5177,7 +5319,10 @@ public Builder clearRequestedReferenceRoutes() { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5197,7 +5342,10 @@ public java.util.List getRequestedReferenceRoutesValueList() * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5218,7 +5366,10 @@ public int getRequestedReferenceRoutesValue(int index) { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5243,7 +5394,10 @@ public Builder setRequestedReferenceRoutesValue(int index, int value) { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -5267,7 +5421,10 @@ public Builder addRequestedReferenceRoutesValue(int value) { * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java index 012118347642..6704ee96c0c6 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java @@ -597,7 +597,10 @@ public interface ComputeRoutesRequestOrBuilder * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -616,7 +619,10 @@ public interface ComputeRoutesRequestOrBuilder * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. *
      * * @@ -634,7 +640,10 @@ public interface ComputeRoutesRequestOrBuilder * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. * * * @@ -654,7 +663,10 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. * * * @@ -672,7 +684,10 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer * request in addition to the default route. A reference route is a route with * a different route calculation objective than the default route. For example * a `FUEL_EFFICIENT` reference route calculation takes into account various - * parameters that would generate an optimal fuel efficient route. + * parameters that would generate an optimal fuel efficient route. When using + * this feature, look for + * [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + * resulting routes. * * * diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java index 42b7b3cf18b6..9f3d28dee031 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java @@ -51,12 +51,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020LATENCY_EXCEEDED\020\002*v\n\023FallbackRoutingMo" + "de\022%\n!FALLBACK_ROUTING_MODE_UNSPECIFIED\020" + "\000\022\034\n\030FALLBACK_TRAFFIC_UNAWARE\020\001\022\032\n\026FALLB" - + "ACK_TRAFFIC_AWARE\020\002B\306\001\n\032com.google.maps." + + "ACK_TRAFFIC_AWARE\020\002B\303\001\n\032com.google.maps." + "routing.v2B\021FallbackInfoProtoP\001Z:cloud.g" + "oogle.com/go/maps/routing/apiv2/routingp" - + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" - + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" - + "e::Maps::Routing::V2b\006proto3" + + "b;routingpb\242\002\005GMRV2\252\002\026Google.Maps.Routin" + + "g.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::" + + "Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java index 30d46e3fe0dd..ca860346dc35 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java @@ -57,13 +57,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rpc.Status\0220\n#intermediate_waypoint_requ" + "est_index\030\002 \001(\005H\000\210\001\001\022\014\n\004type\030\003 \003(\t\022\025\n\rpa" + "rtial_match\030\004 \001(\010\022\020\n\010place_id\030\005 \001(\tB&\n$_" - + "intermediate_waypoint_request_indexB\312\001\n\032" + + "intermediate_waypoint_request_indexB\307\001\n\032" + "com.google.maps.routing.v2B\025GeocodingRes" + "ultsProtoP\001Z:cloud.google.com/go/maps/ro" - + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" - + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" - + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" - + "b\006proto3" + + "uting/apiv2/routingpb;routingpb\242\002\005GMRV2\252" + + "\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\R" + + "outing\\V2\352\002\031Google::Maps::Routing::V2b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java index 265c15e21362..ab8e1305bab7 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java @@ -45,12 +45,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\026google.maps.routing.v2\032 google/ty" + "pe/localized_text.proto\"L\n\rLocalizedTime" + "\022(\n\004time\030\001 \001(\0132\032.google.type.LocalizedTe" - + "xt\022\021\n\ttime_zone\030\002 \001(\tB\307\001\n\032com.google.map" + + "xt\022\021\n\ttime_zone\030\002 \001(\tB\304\001\n\032com.google.map" + "s.routing.v2B\022LocalizedTimeProtoP\001Z:clou" + "d.google.com/go/maps/routing/apiv2/routi" - + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." - + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" - + "ogle::Maps::Routing::V2b\006proto3" + + "ngpb;routingpb\242\002\005GMRV2\252\002\026Google.Maps.Rou" + + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + + "e::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java index b1a208298a0e..bd8f41eb309a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java @@ -46,12 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/wrappers.proto\032\030google/type/latlng.prot" + "o\"^\n\010Location\022$\n\007lat_lng\030\001 \001(\0132\023.google." + "type.LatLng\022,\n\007heading\030\002 \001(\0132\033.google.pr" - + "otobuf.Int32ValueB\302\001\n\032com.google.maps.ro" + + "otobuf.Int32ValueB\277\001\n\032com.google.maps.ro" + "uting.v2B\rLocationProtoP\001Z:cloud.google." + "com/go/maps/routing/apiv2/routingpb;rout" - + "ingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V" - + "2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Map" - + "s::Routing::V2b\006proto3" + + "ingpb\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002" + + "\026Google\\Maps\\Routing\\V2\352\002\031Google::Maps::" + + "Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java index c7672ebec1ab..5e8189948c0b 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java @@ -47,12 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "EFT\020\r\022\016\n\nFORK_RIGHT\020\016\022\t\n\005FERRY\020\017\022\017\n\013FERR" + "Y_TRAIN\020\020\022\023\n\017ROUNDABOUT_LEFT\020\021\022\024\n\020ROUNDA" + "BOUT_RIGHT\020\022\022\n\n\006DEPART\020\023\022\017\n\013NAME_CHANGE\020" - + "\024B\302\001\n\032com.google.maps.routing.v2B\rManeuv" + + "\024B\277\001\n\032com.google.maps.routing.v2B\rManeuv" + "erProtoP\001Z:cloud.google.com/go/maps/rout" - + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" - + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" - + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" - + "proto3" + + "ing/apiv2/routingpb;routingpb\242\002\005GMRV2\252\002\026" + + "Google.Maps.Routing.V2\312\002\026Google\\Maps\\Rou" + + "ting\\V2\352\002\031Google::Maps::Routing::V2b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java index 1c7b59a9ba53..b33c736cc8e7 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java @@ -46,12 +46,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/maps/routing/v2/maneuver.proto\"a\n\025" + "NavigationInstruction\0222\n\010maneuver\030\001 \001(\0162" + " .google.maps.routing.v2.Maneuver\022\024\n\014ins" - + "tructions\030\002 \001(\tB\317\001\n\032com.google.maps.rout" + + "tructions\030\002 \001(\tB\314\001\n\032com.google.maps.rout" + "ing.v2B\032NavigationInstructionProtoP\001Z:cl" + "oud.google.com/go/maps/routing/apiv2/rou" - + "tingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Map" - + "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" - + "Google::Maps::Routing::V2b\006proto3" + + "tingpb;routingpb\242\002\005GMRV2\252\002\026Google.Maps.R" + + "outing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goo" + + "gle::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetails.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetails.java new file mode 100644 index 000000000000..7ad93b08fbba --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetails.java @@ -0,0 +1,4383 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/maps/routing/v2/polyline_details.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.routing.v2; + +/** + * + * + *
      + * Details corresponding to a given index or contiguous segment of a polyline.
      + * Given a polyline with points P_0, P_1, ... , P_N (zero-based index), the
      + * `PolylineDetails` defines an interval and associated metadata.
      + * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails} + */ +public final class PolylineDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.PolylineDetails) + PolylineDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolylineDetails.newBuilder() to construct. + private PolylineDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PolylineDetails() { + flyoverInfo_ = java.util.Collections.emptyList(); + narrowRoadInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PolylineDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.class, + com.google.maps.routing.v2.PolylineDetails.Builder.class); + } + + /** + * + * + *
      +   * Encapsulates the states of road features along a stretch of polyline.
      +   * 
      + * + * Protobuf enum {@code google.maps.routing.v2.PolylineDetails.RoadFeatureState} + */ + public enum RoadFeatureState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * The road feature's state was not computed (default value).
      +     * 
      + * + * ROAD_FEATURE_STATE_UNSPECIFIED = 0; + */ + ROAD_FEATURE_STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * The road feature exists.
      +     * 
      + * + * EXISTS = 1; + */ + EXISTS(1), + /** + * + * + *
      +     * The road feature does not exist.
      +     * 
      + * + * DOES_NOT_EXIST = 2; + */ + DOES_NOT_EXIST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * The road feature's state was not computed (default value).
      +     * 
      + * + * ROAD_FEATURE_STATE_UNSPECIFIED = 0; + */ + public static final int ROAD_FEATURE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +     * The road feature exists.
      +     * 
      + * + * EXISTS = 1; + */ + public static final int EXISTS_VALUE = 1; + /** + * + * + *
      +     * The road feature does not exist.
      +     * 
      + * + * DOES_NOT_EXIST = 2; + */ + public static final int DOES_NOT_EXIST_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 RoadFeatureState 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 RoadFeatureState forNumber(int value) { + switch (value) { + case 0: + return ROAD_FEATURE_STATE_UNSPECIFIED; + case 1: + return EXISTS; + case 2: + return DOES_NOT_EXIST; + 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 RoadFeatureState findValueByNumber(int number) { + return RoadFeatureState.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.maps.routing.v2.PolylineDetails.getDescriptor().getEnumTypes().get(0); + } + + private static final RoadFeatureState[] VALUES = values(); + + public static RoadFeatureState 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 RoadFeatureState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.PolylineDetails.RoadFeatureState) + } + + public interface PolylinePointIndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.PolylineDetails.PolylinePointIndex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The start index of this detail in the polyline.
      +     * 
      + * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + boolean hasStartIndex(); + /** + * + * + *
      +     * The start index of this detail in the polyline.
      +     * 
      + * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
      +     * The end index of this detail in the polyline.
      +     * 
      + * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + boolean hasEndIndex(); + /** + * + * + *
      +     * The end index of this detail in the polyline.
      +     * 
      + * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + } + /** + * + * + *
      +   * Encapsulates the start and end indexes for a polyline detail.
      +   * For instances where the data corresponds to a single point, `start_index`
      +   * and `end_index` will be equal.
      +   * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.PolylinePointIndex} + */ + public static final class PolylinePointIndex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.PolylineDetails.PolylinePointIndex) + PolylinePointIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolylinePointIndex.newBuilder() to construct. + private PolylinePointIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PolylinePointIndex() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PolylinePointIndex(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.class, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder.class); + } + + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + /** + * + * + *
      +     * The start index of this detail in the polyline.
      +     * 
      + * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * The start index of this detail in the polyline.
      +     * 
      + * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + /** + * + * + *
      +     * The end index of this detail in the polyline.
      +     * 
      + * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +     * The end index of this detail in the polyline.
      +     * 
      + * + * optional int32 end_index = 2; + * + * @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, endIndex_); + } + 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.computeInt32Size(1, startIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, 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.maps.routing.v2.PolylineDetails.PolylinePointIndex)) { + return super.equals(obj); + } + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex other = + (com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex) obj; + + if (hasStartIndex() != other.hasStartIndex()) return false; + if (hasStartIndex()) { + if (getStartIndex() != other.getStartIndex()) return false; + } + if (hasEndIndex() != other.hasEndIndex()) return false; + if (hasEndIndex()) { + 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(); + if (hasStartIndex()) { + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex 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.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex 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.maps.routing.v2.PolylineDetails.PolylinePointIndex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex 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.maps.routing.v2.PolylineDetails.PolylinePointIndex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex 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.maps.routing.v2.PolylineDetails.PolylinePointIndex 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; + } + /** + * + * + *
      +     * Encapsulates the start and end indexes for a polyline detail.
      +     * For instances where the data corresponds to a single point, `start_index`
      +     * and `end_index` will be equal.
      +     * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.PolylinePointIndex} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.PolylineDetails.PolylinePointIndex) + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.class, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder.class); + } + + // Construct using com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex + getDefaultInstanceForType() { + return com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex build() { + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex buildPartial() { + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex result = + new com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + 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.maps.routing.v2.PolylineDetails.PolylinePointIndex) { + return mergeFrom((com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex other) { + if (other + == com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance()) + return this; + if (other.hasStartIndex()) { + setStartIndex(other.getStartIndex()); + } + if (other.hasEndIndex()) { + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + 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 startIndex_; + /** + * + * + *
      +       * The start index of this detail in the polyline.
      +       * 
      + * + * optional int32 start_index = 1; + * + * @return Whether the startIndex field is set. + */ + @java.lang.Override + public boolean hasStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +       * The start index of this detail in the polyline.
      +       * 
      + * + * optional int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * + * + *
      +       * The start index of this detail in the polyline.
      +       * 
      + * + * optional int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * The start index of this detail in the polyline.
      +       * 
      + * + * optional int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + /** + * + * + *
      +       * The end index of this detail in the polyline.
      +       * 
      + * + * optional int32 end_index = 2; + * + * @return Whether the endIndex field is set. + */ + @java.lang.Override + public boolean hasEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * The end index of this detail in the polyline.
      +       * 
      + * + * optional int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + * + * + *
      +       * The end index of this detail in the polyline.
      +       * 
      + * + * optional int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The end index of this detail in the polyline.
      +       * 
      + * + * optional int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + 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.maps.routing.v2.PolylineDetails.PolylinePointIndex) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.PolylineDetails.PolylinePointIndex) + private static final com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex(); + } + + public static com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolylinePointIndex 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.maps.routing.v2.PolylineDetails.PolylinePointIndex + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FlyoverInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.PolylineDetails.FlyoverInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Output only. Denotes whether a flyover exists for a given stretch of the
      +     * polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flyoverPresence. + */ + int getFlyoverPresenceValue(); + /** + * + * + *
      +     * Output only. Denotes whether a flyover exists for a given stretch of the
      +     * polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flyoverPresence. + */ + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getFlyoverPresence(); + + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + boolean hasPolylinePointIndex(); + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex(); + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder(); + } + /** + * + * + *
      +   * Encapsulates information about flyovers along the polyline.
      +   * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.FlyoverInfo} + */ + public static final class FlyoverInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.PolylineDetails.FlyoverInfo) + FlyoverInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlyoverInfo.newBuilder() to construct. + private FlyoverInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FlyoverInfo() { + flyoverPresence_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FlyoverInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.class, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder.class); + } + + private int bitField0_; + public static final int FLYOVER_PRESENCE_FIELD_NUMBER = 1; + private int flyoverPresence_ = 0; + /** + * + * + *
      +     * Output only. Denotes whether a flyover exists for a given stretch of the
      +     * polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flyoverPresence. + */ + @java.lang.Override + public int getFlyoverPresenceValue() { + return flyoverPresence_; + } + /** + * + * + *
      +     * Output only. Denotes whether a flyover exists for a given stretch of the
      +     * polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flyoverPresence. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getFlyoverPresence() { + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState result = + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.forNumber(flyoverPresence_); + return result == null + ? com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.UNRECOGNIZED + : result; + } + + public static final int POLYLINE_POINT_INDEX_FIELD_NUMBER = 2; + private com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex polylinePointIndex_; + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + @java.lang.Override + public boolean hasPolylinePointIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex() { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + /** + * + * + *
      +     * The location of flyover related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder() { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + + 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 (flyoverPresence_ + != com.google.maps.routing.v2.PolylineDetails.RoadFeatureState + .ROAD_FEATURE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, flyoverPresence_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPolylinePointIndex()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (flyoverPresence_ + != com.google.maps.routing.v2.PolylineDetails.RoadFeatureState + .ROAD_FEATURE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, flyoverPresence_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolylinePointIndex()); + } + 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.maps.routing.v2.PolylineDetails.FlyoverInfo)) { + return super.equals(obj); + } + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo other = + (com.google.maps.routing.v2.PolylineDetails.FlyoverInfo) obj; + + if (flyoverPresence_ != other.flyoverPresence_) return false; + if (hasPolylinePointIndex() != other.hasPolylinePointIndex()) return false; + if (hasPolylinePointIndex()) { + if (!getPolylinePointIndex().equals(other.getPolylinePointIndex())) 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) + FLYOVER_PRESENCE_FIELD_NUMBER; + hash = (53 * hash) + flyoverPresence_; + if (hasPolylinePointIndex()) { + hash = (37 * hash) + POLYLINE_POINT_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getPolylinePointIndex().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo 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.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo 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.maps.routing.v2.PolylineDetails.FlyoverInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo 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.maps.routing.v2.PolylineDetails.FlyoverInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo 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.maps.routing.v2.PolylineDetails.FlyoverInfo 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; + } + /** + * + * + *
      +     * Encapsulates information about flyovers along the polyline.
      +     * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.FlyoverInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.PolylineDetails.FlyoverInfo) + com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.class, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder.class); + } + + // Construct using com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolylinePointIndexFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + flyoverPresence_ = 0; + polylinePointIndex_ = null; + if (polylinePointIndexBuilder_ != null) { + polylinePointIndexBuilder_.dispose(); + polylinePointIndexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo getDefaultInstanceForType() { + return com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo build() { + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo buildPartial() { + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo result = + new com.google.maps.routing.v2.PolylineDetails.FlyoverInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.PolylineDetails.FlyoverInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flyoverPresence_ = flyoverPresence_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.polylinePointIndex_ = + polylinePointIndexBuilder_ == null + ? polylinePointIndex_ + : polylinePointIndexBuilder_.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.maps.routing.v2.PolylineDetails.FlyoverInfo) { + return mergeFrom((com.google.maps.routing.v2.PolylineDetails.FlyoverInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.PolylineDetails.FlyoverInfo other) { + if (other == com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.getDefaultInstance()) + return this; + if (other.flyoverPresence_ != 0) { + setFlyoverPresenceValue(other.getFlyoverPresenceValue()); + } + if (other.hasPolylinePointIndex()) { + mergePolylinePointIndex(other.getPolylinePointIndex()); + } + 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: + { + flyoverPresence_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getPolylinePointIndexFieldBuilder().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 flyoverPresence_ = 0; + /** + * + * + *
      +       * Output only. Denotes whether a flyover exists for a given stretch of the
      +       * polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for flyoverPresence. + */ + @java.lang.Override + public int getFlyoverPresenceValue() { + return flyoverPresence_; + } + /** + * + * + *
      +       * Output only. Denotes whether a flyover exists for a given stretch of the
      +       * polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for flyoverPresence to set. + * @return This builder for chaining. + */ + public Builder setFlyoverPresenceValue(int value) { + flyoverPresence_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. Denotes whether a flyover exists for a given stretch of the
      +       * polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The flyoverPresence. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getFlyoverPresence() { + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState result = + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.forNumber(flyoverPresence_); + return result == null + ? com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.UNRECOGNIZED + : result; + } + /** + * + * + *
      +       * Output only. Denotes whether a flyover exists for a given stretch of the
      +       * polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The flyoverPresence to set. + * @return This builder for chaining. + */ + public Builder setFlyoverPresence( + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + flyoverPresence_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. Denotes whether a flyover exists for a given stretch of the
      +       * polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState flyover_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFlyoverPresence() { + bitField0_ = (bitField0_ & ~0x00000001); + flyoverPresence_ = 0; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex polylinePointIndex_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder> + polylinePointIndexBuilder_; + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + public boolean hasPolylinePointIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex() { + if (polylinePointIndexBuilder_ == null) { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } else { + return polylinePointIndexBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder setPolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex value) { + if (polylinePointIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polylinePointIndex_ = value; + } else { + polylinePointIndexBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder setPolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder builderForValue) { + if (polylinePointIndexBuilder_ == null) { + polylinePointIndex_ = builderForValue.build(); + } else { + polylinePointIndexBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder mergePolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex value) { + if (polylinePointIndexBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && polylinePointIndex_ != null + && polylinePointIndex_ + != com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex + .getDefaultInstance()) { + getPolylinePointIndexBuilder().mergeFrom(value); + } else { + polylinePointIndex_ = value; + } + } else { + polylinePointIndexBuilder_.mergeFrom(value); + } + if (polylinePointIndex_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder clearPolylinePointIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + polylinePointIndex_ = null; + if (polylinePointIndexBuilder_ != null) { + polylinePointIndexBuilder_.dispose(); + polylinePointIndexBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder + getPolylinePointIndexBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPolylinePointIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder() { + if (polylinePointIndexBuilder_ != null) { + return polylinePointIndexBuilder_.getMessageOrBuilder(); + } else { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + } + /** + * + * + *
      +       * The location of flyover related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder> + getPolylinePointIndexFieldBuilder() { + if (polylinePointIndexBuilder_ == null) { + polylinePointIndexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder>( + getPolylinePointIndex(), getParentForChildren(), isClean()); + polylinePointIndex_ = null; + } + return polylinePointIndexBuilder_; + } + + @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.maps.routing.v2.PolylineDetails.FlyoverInfo) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.PolylineDetails.FlyoverInfo) + private static final com.google.maps.routing.v2.PolylineDetails.FlyoverInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.PolylineDetails.FlyoverInfo(); + } + + public static com.google.maps.routing.v2.PolylineDetails.FlyoverInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlyoverInfo 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.maps.routing.v2.PolylineDetails.FlyoverInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NarrowRoadInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Output only. Denotes whether a narrow road exists for a given stretch of
      +     * the polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for narrowRoadPresence. + */ + int getNarrowRoadPresenceValue(); + /** + * + * + *
      +     * Output only. Denotes whether a narrow road exists for a given stretch of
      +     * the polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The narrowRoadPresence. + */ + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getNarrowRoadPresence(); + + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + boolean hasPolylinePointIndex(); + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex(); + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder(); + } + /** + * + * + *
      +   * Encapsulates information about narrow roads along the polyline.
      +   * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.NarrowRoadInfo} + */ + public static final class NarrowRoadInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) + NarrowRoadInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use NarrowRoadInfo.newBuilder() to construct. + private NarrowRoadInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NarrowRoadInfo() { + narrowRoadPresence_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NarrowRoadInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.class, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder.class); + } + + private int bitField0_; + public static final int NARROW_ROAD_PRESENCE_FIELD_NUMBER = 1; + private int narrowRoadPresence_ = 0; + /** + * + * + *
      +     * Output only. Denotes whether a narrow road exists for a given stretch of
      +     * the polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for narrowRoadPresence. + */ + @java.lang.Override + public int getNarrowRoadPresenceValue() { + return narrowRoadPresence_; + } + /** + * + * + *
      +     * Output only. Denotes whether a narrow road exists for a given stretch of
      +     * the polyline.
      +     * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The narrowRoadPresence. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getNarrowRoadPresence() { + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState result = + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.forNumber( + narrowRoadPresence_); + return result == null + ? com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.UNRECOGNIZED + : result; + } + + public static final int POLYLINE_POINT_INDEX_FIELD_NUMBER = 2; + private com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex polylinePointIndex_; + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + @java.lang.Override + public boolean hasPolylinePointIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex() { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + /** + * + * + *
      +     * The location of narrow road related information along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder() { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + + 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 (narrowRoadPresence_ + != com.google.maps.routing.v2.PolylineDetails.RoadFeatureState + .ROAD_FEATURE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, narrowRoadPresence_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPolylinePointIndex()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (narrowRoadPresence_ + != com.google.maps.routing.v2.PolylineDetails.RoadFeatureState + .ROAD_FEATURE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, narrowRoadPresence_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolylinePointIndex()); + } + 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo)) { + return super.equals(obj); + } + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo other = + (com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) obj; + + if (narrowRoadPresence_ != other.narrowRoadPresence_) return false; + if (hasPolylinePointIndex() != other.hasPolylinePointIndex()) return false; + if (hasPolylinePointIndex()) { + if (!getPolylinePointIndex().equals(other.getPolylinePointIndex())) 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) + NARROW_ROAD_PRESENCE_FIELD_NUMBER; + hash = (53 * hash) + narrowRoadPresence_; + if (hasPolylinePointIndex()) { + hash = (37 * hash) + POLYLINE_POINT_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getPolylinePointIndex().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo 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; + } + /** + * + * + *
      +     * Encapsulates information about narrow roads along the polyline.
      +     * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails.NarrowRoadInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.class, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder.class); + } + + // Construct using com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolylinePointIndexFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + narrowRoadPresence_ = 0; + polylinePointIndex_ = null; + if (polylinePointIndexBuilder_ != null) { + polylinePointIndexBuilder_.dispose(); + polylinePointIndexBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo getDefaultInstanceForType() { + return com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo build() { + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo buildPartial() { + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo result = + new com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.narrowRoadPresence_ = narrowRoadPresence_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.polylinePointIndex_ = + polylinePointIndexBuilder_ == null + ? polylinePointIndex_ + : polylinePointIndexBuilder_.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.maps.routing.v2.PolylineDetails.NarrowRoadInfo) { + return mergeFrom((com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo other) { + if (other == com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.getDefaultInstance()) + return this; + if (other.narrowRoadPresence_ != 0) { + setNarrowRoadPresenceValue(other.getNarrowRoadPresenceValue()); + } + if (other.hasPolylinePointIndex()) { + mergePolylinePointIndex(other.getPolylinePointIndex()); + } + 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: + { + narrowRoadPresence_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getPolylinePointIndexFieldBuilder().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 narrowRoadPresence_ = 0; + /** + * + * + *
      +       * Output only. Denotes whether a narrow road exists for a given stretch of
      +       * the polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for narrowRoadPresence. + */ + @java.lang.Override + public int getNarrowRoadPresenceValue() { + return narrowRoadPresence_; + } + /** + * + * + *
      +       * Output only. Denotes whether a narrow road exists for a given stretch of
      +       * the polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for narrowRoadPresence to set. + * @return This builder for chaining. + */ + public Builder setNarrowRoadPresenceValue(int value) { + narrowRoadPresence_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. Denotes whether a narrow road exists for a given stretch of
      +       * the polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The narrowRoadPresence. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.RoadFeatureState getNarrowRoadPresence() { + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState result = + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.forNumber( + narrowRoadPresence_); + return result == null + ? com.google.maps.routing.v2.PolylineDetails.RoadFeatureState.UNRECOGNIZED + : result; + } + /** + * + * + *
      +       * Output only. Denotes whether a narrow road exists for a given stretch of
      +       * the polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The narrowRoadPresence to set. + * @return This builder for chaining. + */ + public Builder setNarrowRoadPresence( + com.google.maps.routing.v2.PolylineDetails.RoadFeatureState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + narrowRoadPresence_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +       * Output only. Denotes whether a narrow road exists for a given stretch of
      +       * the polyline.
      +       * 
      + * + * + * .google.maps.routing.v2.PolylineDetails.RoadFeatureState narrow_road_presence = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNarrowRoadPresence() { + bitField0_ = (bitField0_ & ~0x00000001); + narrowRoadPresence_ = 0; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex polylinePointIndex_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder> + polylinePointIndexBuilder_; + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return Whether the polylinePointIndex field is set. + */ + public boolean hasPolylinePointIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + * + * @return The polylinePointIndex. + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex getPolylinePointIndex() { + if (polylinePointIndexBuilder_ == null) { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } else { + return polylinePointIndexBuilder_.getMessage(); + } + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder setPolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex value) { + if (polylinePointIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polylinePointIndex_ = value; + } else { + polylinePointIndexBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder setPolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder builderForValue) { + if (polylinePointIndexBuilder_ == null) { + polylinePointIndex_ = builderForValue.build(); + } else { + polylinePointIndexBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder mergePolylinePointIndex( + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex value) { + if (polylinePointIndexBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && polylinePointIndex_ != null + && polylinePointIndex_ + != com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex + .getDefaultInstance()) { + getPolylinePointIndexBuilder().mergeFrom(value); + } else { + polylinePointIndex_ = value; + } + } else { + polylinePointIndexBuilder_.mergeFrom(value); + } + if (polylinePointIndex_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public Builder clearPolylinePointIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + polylinePointIndex_ = null; + if (polylinePointIndexBuilder_ != null) { + polylinePointIndexBuilder_.dispose(); + polylinePointIndexBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder + getPolylinePointIndexBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPolylinePointIndexFieldBuilder().getBuilder(); + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + public com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder + getPolylinePointIndexOrBuilder() { + if (polylinePointIndexBuilder_ != null) { + return polylinePointIndexBuilder_.getMessageOrBuilder(); + } else { + return polylinePointIndex_ == null + ? com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.getDefaultInstance() + : polylinePointIndex_; + } + } + /** + * + * + *
      +       * The location of narrow road related information along the polyline.
      +       * 
      + * + * .google.maps.routing.v2.PolylineDetails.PolylinePointIndex polyline_point_index = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder> + getPolylinePointIndexFieldBuilder() { + if (polylinePointIndexBuilder_ == null) { + polylinePointIndexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder, + com.google.maps.routing.v2.PolylineDetails.PolylinePointIndexOrBuilder>( + getPolylinePointIndex(), getParentForChildren(), isClean()); + polylinePointIndex_ = null; + } + return polylinePointIndexBuilder_; + } + + @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.maps.routing.v2.PolylineDetails.NarrowRoadInfo) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.PolylineDetails.NarrowRoadInfo) + private static final com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo(); + } + + public static com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NarrowRoadInfo 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.maps.routing.v2.PolylineDetails.NarrowRoadInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FLYOVER_INFO_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List flyoverInfo_; + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + @java.lang.Override + public java.util.List + getFlyoverInfoList() { + return flyoverInfo_; + } + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + @java.lang.Override + public java.util.List + getFlyoverInfoOrBuilderList() { + return flyoverInfo_; + } + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + @java.lang.Override + public int getFlyoverInfoCount() { + return flyoverInfo_.size(); + } + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo getFlyoverInfo(int index) { + return flyoverInfo_.get(index); + } + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder getFlyoverInfoOrBuilder( + int index) { + return flyoverInfo_.get(index); + } + + public static final int NARROW_ROAD_INFO_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List narrowRoadInfo_; + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + @java.lang.Override + public java.util.List + getNarrowRoadInfoList() { + return narrowRoadInfo_; + } + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder> + getNarrowRoadInfoOrBuilderList() { + return narrowRoadInfo_; + } + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + @java.lang.Override + public int getNarrowRoadInfoCount() { + return narrowRoadInfo_.size(); + } + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo getNarrowRoadInfo(int index) { + return narrowRoadInfo_.get(index); + } + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder + getNarrowRoadInfoOrBuilder(int index) { + return narrowRoadInfo_.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 < flyoverInfo_.size(); i++) { + output.writeMessage(12, flyoverInfo_.get(i)); + } + for (int i = 0; i < narrowRoadInfo_.size(); i++) { + output.writeMessage(13, narrowRoadInfo_.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 < flyoverInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, flyoverInfo_.get(i)); + } + for (int i = 0; i < narrowRoadInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, narrowRoadInfo_.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.maps.routing.v2.PolylineDetails)) { + return super.equals(obj); + } + com.google.maps.routing.v2.PolylineDetails other = + (com.google.maps.routing.v2.PolylineDetails) obj; + + if (!getFlyoverInfoList().equals(other.getFlyoverInfoList())) return false; + if (!getNarrowRoadInfoList().equals(other.getNarrowRoadInfoList())) 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 (getFlyoverInfoCount() > 0) { + hash = (37 * hash) + FLYOVER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getFlyoverInfoList().hashCode(); + } + if (getNarrowRoadInfoCount() > 0) { + hash = (37 * hash) + NARROW_ROAD_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNarrowRoadInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.PolylineDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails 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.maps.routing.v2.PolylineDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.routing.v2.PolylineDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.routing.v2.PolylineDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails 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.maps.routing.v2.PolylineDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails 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.maps.routing.v2.PolylineDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.PolylineDetails 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.maps.routing.v2.PolylineDetails 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; + } + /** + * + * + *
      +   * Details corresponding to a given index or contiguous segment of a polyline.
      +   * Given a polyline with points P_0, P_1, ... , P_N (zero-based index), the
      +   * `PolylineDetails` defines an interval and associated metadata.
      +   * 
      + * + * Protobuf type {@code google.maps.routing.v2.PolylineDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.PolylineDetails) + com.google.maps.routing.v2.PolylineDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.PolylineDetails.class, + com.google.maps.routing.v2.PolylineDetails.Builder.class); + } + + // Construct using com.google.maps.routing.v2.PolylineDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (flyoverInfoBuilder_ == null) { + flyoverInfo_ = java.util.Collections.emptyList(); + } else { + flyoverInfo_ = null; + flyoverInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (narrowRoadInfoBuilder_ == null) { + narrowRoadInfo_ = java.util.Collections.emptyList(); + } else { + narrowRoadInfo_ = null; + narrowRoadInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.PolylineDetailsProto + .internal_static_google_maps_routing_v2_PolylineDetails_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails getDefaultInstanceForType() { + return com.google.maps.routing.v2.PolylineDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails build() { + com.google.maps.routing.v2.PolylineDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails buildPartial() { + com.google.maps.routing.v2.PolylineDetails result = + new com.google.maps.routing.v2.PolylineDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.PolylineDetails result) { + if (flyoverInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + flyoverInfo_ = java.util.Collections.unmodifiableList(flyoverInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.flyoverInfo_ = flyoverInfo_; + } else { + result.flyoverInfo_ = flyoverInfoBuilder_.build(); + } + if (narrowRoadInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + narrowRoadInfo_ = java.util.Collections.unmodifiableList(narrowRoadInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.narrowRoadInfo_ = narrowRoadInfo_; + } else { + result.narrowRoadInfo_ = narrowRoadInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.routing.v2.PolylineDetails 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.maps.routing.v2.PolylineDetails) { + return mergeFrom((com.google.maps.routing.v2.PolylineDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.PolylineDetails other) { + if (other == com.google.maps.routing.v2.PolylineDetails.getDefaultInstance()) return this; + if (flyoverInfoBuilder_ == null) { + if (!other.flyoverInfo_.isEmpty()) { + if (flyoverInfo_.isEmpty()) { + flyoverInfo_ = other.flyoverInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.addAll(other.flyoverInfo_); + } + onChanged(); + } + } else { + if (!other.flyoverInfo_.isEmpty()) { + if (flyoverInfoBuilder_.isEmpty()) { + flyoverInfoBuilder_.dispose(); + flyoverInfoBuilder_ = null; + flyoverInfo_ = other.flyoverInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + flyoverInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFlyoverInfoFieldBuilder() + : null; + } else { + flyoverInfoBuilder_.addAllMessages(other.flyoverInfo_); + } + } + } + if (narrowRoadInfoBuilder_ == null) { + if (!other.narrowRoadInfo_.isEmpty()) { + if (narrowRoadInfo_.isEmpty()) { + narrowRoadInfo_ = other.narrowRoadInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.addAll(other.narrowRoadInfo_); + } + onChanged(); + } + } else { + if (!other.narrowRoadInfo_.isEmpty()) { + if (narrowRoadInfoBuilder_.isEmpty()) { + narrowRoadInfoBuilder_.dispose(); + narrowRoadInfoBuilder_ = null; + narrowRoadInfo_ = other.narrowRoadInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + narrowRoadInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNarrowRoadInfoFieldBuilder() + : null; + } else { + narrowRoadInfoBuilder_.addAllMessages(other.narrowRoadInfo_); + } + } + } + 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 98: + { + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo m = + input.readMessage( + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.parser(), + extensionRegistry); + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.add(m); + } else { + flyoverInfoBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo m = + input.readMessage( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.parser(), + extensionRegistry); + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.add(m); + } else { + narrowRoadInfoBuilder_.addMessage(m); + } + 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 java.util.List flyoverInfo_ = + java.util.Collections.emptyList(); + + private void ensureFlyoverInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + flyoverInfo_ = + new java.util.ArrayList( + flyoverInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder> + flyoverInfoBuilder_; + + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public java.util.List + getFlyoverInfoList() { + if (flyoverInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(flyoverInfo_); + } else { + return flyoverInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public int getFlyoverInfoCount() { + if (flyoverInfoBuilder_ == null) { + return flyoverInfo_.size(); + } else { + return flyoverInfoBuilder_.getCount(); + } + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo getFlyoverInfo(int index) { + if (flyoverInfoBuilder_ == null) { + return flyoverInfo_.get(index); + } else { + return flyoverInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder setFlyoverInfo( + int index, com.google.maps.routing.v2.PolylineDetails.FlyoverInfo value) { + if (flyoverInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlyoverInfoIsMutable(); + flyoverInfo_.set(index, value); + onChanged(); + } else { + flyoverInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder setFlyoverInfo( + int index, com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder builderForValue) { + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + flyoverInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder addFlyoverInfo(com.google.maps.routing.v2.PolylineDetails.FlyoverInfo value) { + if (flyoverInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlyoverInfoIsMutable(); + flyoverInfo_.add(value); + onChanged(); + } else { + flyoverInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder addFlyoverInfo( + int index, com.google.maps.routing.v2.PolylineDetails.FlyoverInfo value) { + if (flyoverInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlyoverInfoIsMutable(); + flyoverInfo_.add(index, value); + onChanged(); + } else { + flyoverInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder addFlyoverInfo( + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder builderForValue) { + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.add(builderForValue.build()); + onChanged(); + } else { + flyoverInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder addFlyoverInfo( + int index, com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder builderForValue) { + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + flyoverInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder addAllFlyoverInfo( + java.lang.Iterable + values) { + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flyoverInfo_); + onChanged(); + } else { + flyoverInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder clearFlyoverInfo() { + if (flyoverInfoBuilder_ == null) { + flyoverInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + flyoverInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public Builder removeFlyoverInfo(int index) { + if (flyoverInfoBuilder_ == null) { + ensureFlyoverInfoIsMutable(); + flyoverInfo_.remove(index); + onChanged(); + } else { + flyoverInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder getFlyoverInfoBuilder( + int index) { + return getFlyoverInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder getFlyoverInfoOrBuilder( + int index) { + if (flyoverInfoBuilder_ == null) { + return flyoverInfo_.get(index); + } else { + return flyoverInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public java.util.List + getFlyoverInfoOrBuilderList() { + if (flyoverInfoBuilder_ != null) { + return flyoverInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(flyoverInfo_); + } + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder addFlyoverInfoBuilder() { + return getFlyoverInfoFieldBuilder() + .addBuilder(com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.getDefaultInstance()); + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder addFlyoverInfoBuilder( + int index) { + return getFlyoverInfoFieldBuilder() + .addBuilder( + index, com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.getDefaultInstance()); + } + /** + * + * + *
      +     * Flyover details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + public java.util.List + getFlyoverInfoBuilderList() { + return getFlyoverInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder> + getFlyoverInfoFieldBuilder() { + if (flyoverInfoBuilder_ == null) { + flyoverInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder>( + flyoverInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + flyoverInfo_ = null; + } + return flyoverInfoBuilder_; + } + + private java.util.List + narrowRoadInfo_ = java.util.Collections.emptyList(); + + private void ensureNarrowRoadInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + narrowRoadInfo_ = + new java.util.ArrayList( + narrowRoadInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder> + narrowRoadInfoBuilder_; + + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public java.util.List + getNarrowRoadInfoList() { + if (narrowRoadInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(narrowRoadInfo_); + } else { + return narrowRoadInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public int getNarrowRoadInfoCount() { + if (narrowRoadInfoBuilder_ == null) { + return narrowRoadInfo_.size(); + } else { + return narrowRoadInfoBuilder_.getCount(); + } + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo getNarrowRoadInfo(int index) { + if (narrowRoadInfoBuilder_ == null) { + return narrowRoadInfo_.get(index); + } else { + return narrowRoadInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder setNarrowRoadInfo( + int index, com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo value) { + if (narrowRoadInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.set(index, value); + onChanged(); + } else { + narrowRoadInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder setNarrowRoadInfo( + int index, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder builderForValue) { + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + narrowRoadInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder addNarrowRoadInfo( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo value) { + if (narrowRoadInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.add(value); + onChanged(); + } else { + narrowRoadInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder addNarrowRoadInfo( + int index, com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo value) { + if (narrowRoadInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.add(index, value); + onChanged(); + } else { + narrowRoadInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder addNarrowRoadInfo( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder builderForValue) { + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.add(builderForValue.build()); + onChanged(); + } else { + narrowRoadInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder addNarrowRoadInfo( + int index, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder builderForValue) { + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + narrowRoadInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder addAllNarrowRoadInfo( + java.lang.Iterable + values) { + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, narrowRoadInfo_); + onChanged(); + } else { + narrowRoadInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder clearNarrowRoadInfo() { + if (narrowRoadInfoBuilder_ == null) { + narrowRoadInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + narrowRoadInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public Builder removeNarrowRoadInfo(int index) { + if (narrowRoadInfoBuilder_ == null) { + ensureNarrowRoadInfoIsMutable(); + narrowRoadInfo_.remove(index); + onChanged(); + } else { + narrowRoadInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder + getNarrowRoadInfoBuilder(int index) { + return getNarrowRoadInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder + getNarrowRoadInfoOrBuilder(int index) { + if (narrowRoadInfoBuilder_ == null) { + return narrowRoadInfo_.get(index); + } else { + return narrowRoadInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public java.util.List< + ? extends com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder> + getNarrowRoadInfoOrBuilderList() { + if (narrowRoadInfoBuilder_ != null) { + return narrowRoadInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(narrowRoadInfo_); + } + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder + addNarrowRoadInfoBuilder() { + return getNarrowRoadInfoFieldBuilder() + .addBuilder( + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.getDefaultInstance()); + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder + addNarrowRoadInfoBuilder(int index) { + return getNarrowRoadInfoFieldBuilder() + .addBuilder( + index, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.getDefaultInstance()); + } + /** + * + * + *
      +     * Narrow road details along the polyline.
      +     * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + public java.util.List + getNarrowRoadInfoBuilderList() { + return getNarrowRoadInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder> + getNarrowRoadInfoFieldBuilder() { + if (narrowRoadInfoBuilder_ == null) { + narrowRoadInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.Builder, + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder>( + narrowRoadInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + narrowRoadInfo_ = null; + } + return narrowRoadInfoBuilder_; + } + + @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.maps.routing.v2.PolylineDetails) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.PolylineDetails) + private static final com.google.maps.routing.v2.PolylineDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.PolylineDetails(); + } + + public static com.google.maps.routing.v2.PolylineDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolylineDetails 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.maps.routing.v2.PolylineDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsOrBuilder.java new file mode 100644 index 000000000000..b4746aa23305 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/maps/routing/v2/polyline_details.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.routing.v2; + +public interface PolylineDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.PolylineDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + java.util.List getFlyoverInfoList(); + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + com.google.maps.routing.v2.PolylineDetails.FlyoverInfo getFlyoverInfo(int index); + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + int getFlyoverInfoCount(); + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + java.util.List + getFlyoverInfoOrBuilderList(); + /** + * + * + *
      +   * Flyover details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.FlyoverInfo flyover_info = 12; + */ + com.google.maps.routing.v2.PolylineDetails.FlyoverInfoOrBuilder getFlyoverInfoOrBuilder( + int index); + + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + java.util.List getNarrowRoadInfoList(); + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfo getNarrowRoadInfo(int index); + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + int getNarrowRoadInfoCount(); + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + java.util.List + getNarrowRoadInfoOrBuilderList(); + /** + * + * + *
      +   * Narrow road details along the polyline.
      +   * 
      + * + * repeated .google.maps.routing.v2.PolylineDetails.NarrowRoadInfo narrow_road_info = 13; + * + */ + com.google.maps.routing.v2.PolylineDetails.NarrowRoadInfoOrBuilder getNarrowRoadInfoOrBuilder( + int index); +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsProto.java new file mode 100644 index 000000000000..3d7e6a05ffd3 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineDetailsProto.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/polyline_details.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.routing.v2; + +public final class PolylineDetailsProto { + private PolylineDetailsProto() {} + + 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_maps_routing_v2_PolylineDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_PolylineDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_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/maps/routing/v2/polyline_detail" + + "s.proto\022\026google.maps.routing.v2\032\037google/" + + "api/field_behavior.proto\"\371\005\n\017PolylineDet" + + "ails\022I\n\014flyover_info\030\014 \003(\01323.google.maps" + + ".routing.v2.PolylineDetails.FlyoverInfo\022" + + "P\n\020narrow_road_info\030\r \003(\01326.google.maps." + + "routing.v2.PolylineDetails.NarrowRoadInf" + + "o\032d\n\022PolylinePointIndex\022\030\n\013start_index\030\001" + + " \001(\005H\000\210\001\001\022\026\n\tend_index\030\002 \001(\005H\001\210\001\001B\016\n\014_st" + + "art_indexB\014\n\n_end_index\032\300\001\n\013FlyoverInfo\022" + + "W\n\020flyover_presence\030\001 \001(\01628.google.maps." + + "routing.v2.PolylineDetails.RoadFeatureSt" + + "ateB\003\340A\003\022X\n\024polyline_point_index\030\002 \001(\0132:" + + ".google.maps.routing.v2.PolylineDetails." + + "PolylinePointIndex\032\307\001\n\016NarrowRoadInfo\022[\n" + + "\024narrow_road_presence\030\001 \001(\01628.google.map" + + "s.routing.v2.PolylineDetails.RoadFeature" + + "StateB\003\340A\003\022X\n\024polyline_point_index\030\002 \001(\013" + + "2:.google.maps.routing.v2.PolylineDetail" + + "s.PolylinePointIndex\"V\n\020RoadFeatureState" + + "\022\"\n\036ROAD_FEATURE_STATE_UNSPECIFIED\020\000\022\n\n\006" + + "EXISTS\020\001\022\022\n\016DOES_NOT_EXIST\020\002B\306\001\n\032com.goo" + + "gle.maps.routing.v2B\024PolylineDetailsProt" + + "oP\001Z:cloud.google.com/go/maps/routing/ap" + + "iv2/routingpb;routingpb\242\002\005GMRV2\252\002\026Google" + + ".Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V" + + "2\352\002\031Google::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_PolylineDetails_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_PolylineDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_PolylineDetails_descriptor, + new java.lang.String[] { + "FlyoverInfo", "NarrowRoadInfo", + }); + internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor = + internal_static_google_maps_routing_v2_PolylineDetails_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_PolylineDetails_PolylinePointIndex_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", + }); + internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor = + internal_static_google_maps_routing_v2_PolylineDetails_descriptor.getNestedTypes().get(1); + internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_PolylineDetails_FlyoverInfo_descriptor, + new java.lang.String[] { + "FlyoverPresence", "PolylinePointIndex", + }); + internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor = + internal_static_google_maps_routing_v2_PolylineDetails_descriptor.getNestedTypes().get(2); + internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_PolylineDetails_NarrowRoadInfo_descriptor, + new java.lang.String[] { + "NarrowRoadPresence", "PolylinePointIndex", + }); + 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-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java index ce25526f333a..f45b9db3eaa2 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java @@ -50,12 +50,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ALITY_UNSPECIFIED\020\000\022\020\n\014HIGH_QUALITY\020\001\022\014\n" + "\010OVERVIEW\020\002*d\n\020PolylineEncoding\022!\n\035POLYL" + "INE_ENCODING_UNSPECIFIED\020\000\022\024\n\020ENCODED_PO" - + "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\302\001\n\032co" + + "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\277\001\n\032co" + "m.google.maps.routing.v2B\rPolylineProtoP" + "\001Z:cloud.google.com/go/maps/routing/apiv" - + "2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Googl" - + "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\" - + "V2\352\002\031Google::Maps::Routing::V2b\006proto3" + + "2/routingpb;routingpb\242\002\005GMRV2\252\002\026Google.M" + + "aps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352" + + "\002\031Google::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java index 5243c99fde85..a3bdf3a29ca9 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java @@ -112,9 +112,10 @@ public interface RouteLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -126,9 +127,10 @@ public interface RouteLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -140,9 +142,10 @@ public interface RouteLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -317,9 +320,10 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -334,9 +338,10 @@ public boolean hasDuration() { * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -351,9 +356,10 @@ public com.google.type.LocalizedText getDuration() { * * *
      -     * Duration taking traffic conditions into consideration, represented in
      -     * text form. Note: If you did not request traffic information, this value
      -     * will be the same value as `static_duration`.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * `static_duration`.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -1125,9 +1131,10 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1141,9 +1148,10 @@ public boolean hasDuration() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1161,9 +1169,10 @@ public com.google.type.LocalizedText getDuration() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1185,9 +1194,10 @@ public Builder setDuration(com.google.type.LocalizedText value) { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1206,9 +1216,10 @@ public Builder setDuration(com.google.type.LocalizedText.Builder builderForValue * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1235,9 +1246,10 @@ public Builder mergeDuration(com.google.type.LocalizedText value) { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1256,9 +1268,10 @@ public Builder clearDuration() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1272,9 +1285,10 @@ public com.google.type.LocalizedText.Builder getDurationBuilder() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1290,9 +1304,10 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { * * *
      -       * Duration taking traffic conditions into consideration, represented in
      -       * text form. Note: If you did not request traffic information, this value
      -       * will be the same value as `static_duration`.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * `static_duration`.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -2485,11 +2500,13 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues( * * *
      -   * A web-safe, base64-encoded route token that can be passed to the Navigation
      -   * SDK, that allows the Navigation SDK to reconstruct the route during
      -   * navigation, and, in the event of rerouting, honor the original intention
      -   * when you created the route by calling ComputeRoutes. Customers should treat
      -   * this token as an opaque blob. It is not meant for reading or mutating.
      +   * An opaque token that can be passed to [Navigation
      +   * SDK](https://developers.google.com/maps/documentation/navigation) to
      +   * reconstruct the route during navigation, and, in the event of rerouting,
      +   * honor the original intention when the route was created. Treat this token
      +   * as an opaque blob.  Don't compare its value across requests as its value
      +   * may change even if the service returns the exact same route.
      +   *
          * NOTE: `Route.route_token` is only available for requests that have set
          * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
          * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -2516,11 +2533,13 @@ public java.lang.String getRouteToken() {
          *
          *
          * 
      -   * A web-safe, base64-encoded route token that can be passed to the Navigation
      -   * SDK, that allows the Navigation SDK to reconstruct the route during
      -   * navigation, and, in the event of rerouting, honor the original intention
      -   * when you created the route by calling ComputeRoutes. Customers should treat
      -   * this token as an opaque blob. It is not meant for reading or mutating.
      +   * An opaque token that can be passed to [Navigation
      +   * SDK](https://developers.google.com/maps/documentation/navigation) to
      +   * reconstruct the route during navigation, and, in the event of rerouting,
      +   * honor the original intention when the route was created. Treat this token
      +   * as an opaque blob.  Don't compare its value across requests as its value
      +   * may change even if the service returns the exact same route.
      +   *
          * NOTE: `Route.route_token` is only available for requests that have set
          * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
          * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -2544,6 +2563,56 @@ public com.google.protobuf.ByteString getRouteTokenBytes() {
           }
         }
       
      +  public static final int POLYLINE_DETAILS_FIELD_NUMBER = 14;
      +  private com.google.maps.routing.v2.PolylineDetails polylineDetails_;
      +  /**
      +   *
      +   *
      +   * 
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return Whether the polylineDetails field is set. + */ + @java.lang.Override + public boolean hasPolylineDetails() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return The polylineDetails. + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetails getPolylineDetails() { + return polylineDetails_ == null + ? com.google.maps.routing.v2.PolylineDetails.getDefaultInstance() + : polylineDetails_; + } + /** + * + * + *
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineDetailsOrBuilder getPolylineDetailsOrBuilder() { + return polylineDetails_ == null + ? com.google.maps.routing.v2.PolylineDetails.getDefaultInstance() + : polylineDetails_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2606,6 +2675,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < routeLabels_.size(); i++) { output.writeEnumNoTag(routeLabels_.get(i)); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(14, getPolylineDetails()); + } getUnknownFields().writeTo(output); } @@ -2679,6 +2751,9 @@ public int getSerializedSize() { } routeLabelsMemoizedSerializedSize = dataSize; } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPolylineDetails()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2726,6 +2801,10 @@ public boolean equals(final java.lang.Object obj) { if (!getLocalizedValues().equals(other.getLocalizedValues())) return false; } if (!getRouteToken().equals(other.getRouteToken())) return false; + if (hasPolylineDetails() != other.hasPolylineDetails()) return false; + if (hasPolylineDetails()) { + if (!getPolylineDetails().equals(other.getPolylineDetails())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2783,6 +2862,10 @@ public int hashCode() { } hash = (37 * hash) + ROUTE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getRouteToken().hashCode(); + if (hasPolylineDetails()) { + hash = (37 * hash) + POLYLINE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPolylineDetails().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2930,6 +3013,7 @@ private void maybeForceBuilderInitialization() { getViewportFieldBuilder(); getTravelAdvisoryFieldBuilder(); getLocalizedValuesFieldBuilder(); + getPolylineDetailsFieldBuilder(); } } @@ -2981,6 +3065,11 @@ public Builder clear() { localizedValuesBuilder_ = null; } routeToken_ = ""; + polylineDetails_ = null; + if (polylineDetailsBuilder_ != null) { + polylineDetailsBuilder_.dispose(); + polylineDetailsBuilder_ = null; + } return this; } @@ -3079,6 +3168,11 @@ private void buildPartial0(com.google.maps.routing.v2.Route result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.routeToken_ = routeToken_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.polylineDetails_ = + polylineDetailsBuilder_ == null ? polylineDetails_ : polylineDetailsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -3216,6 +3310,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.Route other) { bitField0_ |= 0x00001000; onChanged(); } + if (other.hasPolylineDetails()) { + mergePolylineDetails(other.getPolylineDetails()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3353,6 +3450,12 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 106 + case 114: + { + input.readMessage(getPolylineDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5749,11 +5852,13 @@ public Builder clearLocalizedValues() { * * *
      -     * A web-safe, base64-encoded route token that can be passed to the Navigation
      -     * SDK, that allows the Navigation SDK to reconstruct the route during
      -     * navigation, and, in the event of rerouting, honor the original intention
      -     * when you created the route by calling ComputeRoutes. Customers should treat
      -     * this token as an opaque blob. It is not meant for reading or mutating.
      +     * An opaque token that can be passed to [Navigation
      +     * SDK](https://developers.google.com/maps/documentation/navigation) to
      +     * reconstruct the route during navigation, and, in the event of rerouting,
      +     * honor the original intention when the route was created. Treat this token
      +     * as an opaque blob.  Don't compare its value across requests as its value
      +     * may change even if the service returns the exact same route.
      +     *
            * NOTE: `Route.route_token` is only available for requests that have set
            * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
            * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -5779,11 +5884,13 @@ public java.lang.String getRouteToken() {
            *
            *
            * 
      -     * A web-safe, base64-encoded route token that can be passed to the Navigation
      -     * SDK, that allows the Navigation SDK to reconstruct the route during
      -     * navigation, and, in the event of rerouting, honor the original intention
      -     * when you created the route by calling ComputeRoutes. Customers should treat
      -     * this token as an opaque blob. It is not meant for reading or mutating.
      +     * An opaque token that can be passed to [Navigation
      +     * SDK](https://developers.google.com/maps/documentation/navigation) to
      +     * reconstruct the route during navigation, and, in the event of rerouting,
      +     * honor the original intention when the route was created. Treat this token
      +     * as an opaque blob.  Don't compare its value across requests as its value
      +     * may change even if the service returns the exact same route.
      +     *
            * NOTE: `Route.route_token` is only available for requests that have set
            * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
            * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -5809,11 +5916,13 @@ public com.google.protobuf.ByteString getRouteTokenBytes() {
            *
            *
            * 
      -     * A web-safe, base64-encoded route token that can be passed to the Navigation
      -     * SDK, that allows the Navigation SDK to reconstruct the route during
      -     * navigation, and, in the event of rerouting, honor the original intention
      -     * when you created the route by calling ComputeRoutes. Customers should treat
      -     * this token as an opaque blob. It is not meant for reading or mutating.
      +     * An opaque token that can be passed to [Navigation
      +     * SDK](https://developers.google.com/maps/documentation/navigation) to
      +     * reconstruct the route during navigation, and, in the event of rerouting,
      +     * honor the original intention when the route was created. Treat this token
      +     * as an opaque blob.  Don't compare its value across requests as its value
      +     * may change even if the service returns the exact same route.
      +     *
            * NOTE: `Route.route_token` is only available for requests that have set
            * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
            * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -5838,11 +5947,13 @@ public Builder setRouteToken(java.lang.String value) {
            *
            *
            * 
      -     * A web-safe, base64-encoded route token that can be passed to the Navigation
      -     * SDK, that allows the Navigation SDK to reconstruct the route during
      -     * navigation, and, in the event of rerouting, honor the original intention
      -     * when you created the route by calling ComputeRoutes. Customers should treat
      -     * this token as an opaque blob. It is not meant for reading or mutating.
      +     * An opaque token that can be passed to [Navigation
      +     * SDK](https://developers.google.com/maps/documentation/navigation) to
      +     * reconstruct the route during navigation, and, in the event of rerouting,
      +     * honor the original intention when the route was created. Treat this token
      +     * as an opaque blob.  Don't compare its value across requests as its value
      +     * may change even if the service returns the exact same route.
      +     *
            * NOTE: `Route.route_token` is only available for requests that have set
            * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
            * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -5863,11 +5974,13 @@ public Builder clearRouteToken() {
            *
            *
            * 
      -     * A web-safe, base64-encoded route token that can be passed to the Navigation
      -     * SDK, that allows the Navigation SDK to reconstruct the route during
      -     * navigation, and, in the event of rerouting, honor the original intention
      -     * when you created the route by calling ComputeRoutes. Customers should treat
      -     * this token as an opaque blob. It is not meant for reading or mutating.
      +     * An opaque token that can be passed to [Navigation
      +     * SDK](https://developers.google.com/maps/documentation/navigation) to
      +     * reconstruct the route during navigation, and, in the event of rerouting,
      +     * honor the original intention when the route was created. Treat this token
      +     * as an opaque blob.  Don't compare its value across requests as its value
      +     * may change even if the service returns the exact same route.
      +     *
            * NOTE: `Route.route_token` is only available for requests that have set
            * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
            * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -5890,6 +6003,193 @@ public Builder setRouteTokenBytes(com.google.protobuf.ByteString value) {
             return this;
           }
       
      +    private com.google.maps.routing.v2.PolylineDetails polylineDetails_;
      +    private com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.maps.routing.v2.PolylineDetails,
      +            com.google.maps.routing.v2.PolylineDetails.Builder,
      +            com.google.maps.routing.v2.PolylineDetailsOrBuilder>
      +        polylineDetailsBuilder_;
      +    /**
      +     *
      +     *
      +     * 
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return Whether the polylineDetails field is set. + */ + public boolean hasPolylineDetails() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return The polylineDetails. + */ + public com.google.maps.routing.v2.PolylineDetails getPolylineDetails() { + if (polylineDetailsBuilder_ == null) { + return polylineDetails_ == null + ? com.google.maps.routing.v2.PolylineDetails.getDefaultInstance() + : polylineDetails_; + } else { + return polylineDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public Builder setPolylineDetails(com.google.maps.routing.v2.PolylineDetails value) { + if (polylineDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polylineDetails_ = value; + } else { + polylineDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public Builder setPolylineDetails( + com.google.maps.routing.v2.PolylineDetails.Builder builderForValue) { + if (polylineDetailsBuilder_ == null) { + polylineDetails_ = builderForValue.build(); + } else { + polylineDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public Builder mergePolylineDetails(com.google.maps.routing.v2.PolylineDetails value) { + if (polylineDetailsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && polylineDetails_ != null + && polylineDetails_ + != com.google.maps.routing.v2.PolylineDetails.getDefaultInstance()) { + getPolylineDetailsBuilder().mergeFrom(value); + } else { + polylineDetails_ = value; + } + } else { + polylineDetailsBuilder_.mergeFrom(value); + } + if (polylineDetails_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public Builder clearPolylineDetails() { + bitField0_ = (bitField0_ & ~0x00002000); + polylineDetails_ = null; + if (polylineDetailsBuilder_ != null) { + polylineDetailsBuilder_.dispose(); + polylineDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public com.google.maps.routing.v2.PolylineDetails.Builder getPolylineDetailsBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getPolylineDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + public com.google.maps.routing.v2.PolylineDetailsOrBuilder getPolylineDetailsOrBuilder() { + if (polylineDetailsBuilder_ != null) { + return polylineDetailsBuilder_.getMessageOrBuilder(); + } else { + return polylineDetails_ == null + ? com.google.maps.routing.v2.PolylineDetails.getDefaultInstance() + : polylineDetails_; + } + } + /** + * + * + *
      +     * Contains information about details along the polyline.
      +     * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails, + com.google.maps.routing.v2.PolylineDetails.Builder, + com.google.maps.routing.v2.PolylineDetailsOrBuilder> + getPolylineDetailsFieldBuilder() { + if (polylineDetailsBuilder_ == null) { + polylineDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.PolylineDetails, + com.google.maps.routing.v2.PolylineDetails.Builder, + com.google.maps.routing.v2.PolylineDetailsOrBuilder>( + getPolylineDetails(), getParentForChildren(), isClean()); + polylineDetails_ = null; + } + return polylineDetailsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java index b5bd52daffca..2b5c545bd1e7 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java @@ -74,6 +74,16 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { * FUEL_EFFICIENT = 3; */ FUEL_EFFICIENT(3), + /** + * + * + *
      +   * Shorter travel distance route. This is an experimental feature.
      +   * 
      + * + * SHORTER_DISTANCE = 4; + */ + SHORTER_DISTANCE(4), UNRECOGNIZED(-1), ; @@ -121,6 +131,16 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { * FUEL_EFFICIENT = 3; */ public static final int FUEL_EFFICIENT_VALUE = 3; + /** + * + * + *
      +   * Shorter travel distance route. This is an experimental feature.
      +   * 
      + * + * SHORTER_DISTANCE = 4; + */ + public static final int SHORTER_DISTANCE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -154,6 +174,8 @@ public static RouteLabel forNumber(int value) { return DEFAULT_ROUTE_ALTERNATE; case 3: return FUEL_EFFICIENT; + case 4: + return SHORTER_DISTANCE; default: return null; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java index afdb1337eb5a..bb9ad478b275 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java @@ -37,15 +37,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n(google/maps/routing/v2/route_label.pro" - + "to\022\026google.maps.routing.v2*m\n\nRouteLabel" - + "\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAULT" - + "_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022\n" - + "\016FUEL_EFFICIENT\020\003B\304\001\n\032com.google.maps.ro" - + "uting.v2B\017RouteLabelProtoP\001Z:cloud.googl" - + "e.com/go/maps/routing/apiv2/routingpb;ro" - + "utingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing" - + ".V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::M" - + "aps::Routing::V2b\006proto3" + + "to\022\026google.maps.routing.v2*\203\001\n\nRouteLabe" + + "l\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAUL" + + "T_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022" + + "\n\016FUEL_EFFICIENT\020\003\022\024\n\020SHORTER_DISTANCE\020\004" + + "B\301\001\n\032com.google.maps.routing.v2B\017RouteLa" + + "belProtoP\001Z:cloud.google.com/go/maps/rou" + + "ting/apiv2/routingpb;routingpb\242\002\005GMRV2\252\002" + + "\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\Ro" + + "uting\\V2\352\002\031Google::Maps::Routing::V2b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java index 49adf3619ec1..37299bf00fd9 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java @@ -107,9 +107,10 @@ public interface RouteLegLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -121,9 +122,10 @@ public interface RouteLegLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -135,9 +137,10 @@ public interface RouteLegLocalizedValuesOrBuilder * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -277,9 +280,10 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -294,9 +298,10 @@ public boolean hasDuration() { * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -311,9 +316,10 @@ public com.google.type.LocalizedText getDuration() { * * *
      -     * Duration taking traffic conditions into consideration represented in text
      -     * form. Note: If you did not request traffic information, this value will
      -     * be the same value as static_duration.
      +     * Duration, represented in text form and localized to the region of the
      +     * query. Takes traffic conditions into consideration. Note: If you did not
      +     * request traffic information, this value is the same value as
      +     * static_duration.
            * 
      * * .google.type.LocalizedText duration = 2; @@ -1004,9 +1010,10 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1020,9 +1027,10 @@ public boolean hasDuration() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1040,9 +1048,10 @@ public com.google.type.LocalizedText getDuration() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1064,9 +1073,10 @@ public Builder setDuration(com.google.type.LocalizedText value) { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1085,9 +1095,10 @@ public Builder setDuration(com.google.type.LocalizedText.Builder builderForValue * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1114,9 +1125,10 @@ public Builder mergeDuration(com.google.type.LocalizedText value) { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1135,9 +1147,10 @@ public Builder clearDuration() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1151,9 +1164,10 @@ public com.google.type.LocalizedText.Builder getDurationBuilder() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; @@ -1169,9 +1183,10 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { * * *
      -       * Duration taking traffic conditions into consideration represented in text
      -       * form. Note: If you did not request traffic information, this value will
      -       * be the same value as static_duration.
      +       * Duration, represented in text form and localized to the region of the
      +       * query. Takes traffic conditions into consideration. Note: If you did not
      +       * request traffic information, this value is the same value as
      +       * static_duration.
              * 
      * * .google.type.LocalizedText duration = 2; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java index 71a5aa2ad93f..f94418df3f62 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java @@ -3142,7 +3142,7 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() * The number of stops from the departure to the arrival stop. This count * includes the arrival stop, but excludes the departure stop. For example, if * your route leaves from Stop A, passes through stops B and C, and arrives at - * stop D, stop_count will return 3. + * stop D, <code>stop_count</code> returns 3. *
      * * int32 stop_count = 6; @@ -4681,7 +4681,7 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() * The number of stops from the departure to the arrival stop. This count * includes the arrival stop, but excludes the departure stop. For example, if * your route leaves from Stop A, passes through stops B and C, and arrives at - * stop D, stop_count will return 3. + * stop D, <code>stop_count</code> returns 3. *
      * * int32 stop_count = 6; @@ -4699,7 +4699,7 @@ public int getStopCount() { * The number of stops from the departure to the arrival stop. This count * includes the arrival stop, but excludes the departure stop. For example, if * your route leaves from Stop A, passes through stops B and C, and arrives at - * stop D, stop_count will return 3. + * stop D, <code>stop_count</code> returns 3. *
      * * int32 stop_count = 6; @@ -4721,7 +4721,7 @@ public Builder setStopCount(int value) { * The number of stops from the departure to the arrival stop. This count * includes the arrival stop, but excludes the departure stop. For example, if * your route leaves from Stop A, passes through stops B and C, and arrives at - * stop D, stop_count will return 3. + * stop D, <code>stop_count</code> returns 3. *
      * * int32 stop_count = 6; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java index 4b9a309ca6a0..63403a86dba1 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java @@ -218,7 +218,7 @@ public interface RouteLegStepTransitDetailsOrBuilder * The number of stops from the departure to the arrival stop. This count * includes the arrival stop, but excludes the departure stop. For example, if * your route leaves from Stop A, passes through stops B and C, and arrives at - * stop D, stop_count will return 3. + * stop D, <code>stop_count</code> returns 3. *
      * * int32 stop_count = 6; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java index 2579059da588..256ff7f79377 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java @@ -50,12 +50,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\010\022\024\n\014avoid_indoor\030\004 \001(\010\0229\n\014vehicle_info" + "\030\005 \001(\0132#.google.maps.routing.v2.VehicleI" + "nfo\0225\n\013toll_passes\030\006 \003(\0162 .google.maps.r" - + "outing.v2.TollPassB\310\001\n\032com.google.maps.r" + + "outing.v2.TollPassB\305\001\n\032com.google.maps.r" + "outing.v2B\023RouteModifiersProtoP\001Z:cloud." + "google.com/go/maps/routing/apiv2/routing" - + "pb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Ro" - + "uting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goog" - + "le::Maps::Routing::V2b\006proto3" + + "pb;routingpb\242\002\005GMRV2\252\002\026Google.Maps.Routi" + + "ng.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google:" + + ":Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java index c09b08e98481..09a78d7a1cbf 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java @@ -556,11 +556,13 @@ public interface RouteOrBuilder * * *
      -   * A web-safe, base64-encoded route token that can be passed to the Navigation
      -   * SDK, that allows the Navigation SDK to reconstruct the route during
      -   * navigation, and, in the event of rerouting, honor the original intention
      -   * when you created the route by calling ComputeRoutes. Customers should treat
      -   * this token as an opaque blob. It is not meant for reading or mutating.
      +   * An opaque token that can be passed to [Navigation
      +   * SDK](https://developers.google.com/maps/documentation/navigation) to
      +   * reconstruct the route during navigation, and, in the event of rerouting,
      +   * honor the original intention when the route was created. Treat this token
      +   * as an opaque blob.  Don't compare its value across requests as its value
      +   * may change even if the service returns the exact same route.
      +   *
          * NOTE: `Route.route_token` is only available for requests that have set
          * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
          * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -576,11 +578,13 @@ public interface RouteOrBuilder
          *
          *
          * 
      -   * A web-safe, base64-encoded route token that can be passed to the Navigation
      -   * SDK, that allows the Navigation SDK to reconstruct the route during
      -   * navigation, and, in the event of rerouting, honor the original intention
      -   * when you created the route by calling ComputeRoutes. Customers should treat
      -   * this token as an opaque blob. It is not meant for reading or mutating.
      +   * An opaque token that can be passed to [Navigation
      +   * SDK](https://developers.google.com/maps/documentation/navigation) to
      +   * reconstruct the route during navigation, and, in the event of rerouting,
      +   * honor the original intention when the route was created. Treat this token
      +   * as an opaque blob.  Don't compare its value across requests as its value
      +   * may change even if the service returns the exact same route.
      +   *
          * NOTE: `Route.route_token` is only available for requests that have set
          * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
          * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
      @@ -592,4 +596,39 @@ public interface RouteOrBuilder
          * @return The bytes for routeToken.
          */
         com.google.protobuf.ByteString getRouteTokenBytes();
      +
      +  /**
      +   *
      +   *
      +   * 
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return Whether the polylineDetails field is set. + */ + boolean hasPolylineDetails(); + /** + * + * + *
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + * + * @return The polylineDetails. + */ + com.google.maps.routing.v2.PolylineDetails getPolylineDetails(); + /** + * + * + *
      +   * Contains information about details along the polyline.
      +   * 
      + * + * .google.maps.routing.v2.PolylineDetails polyline_details = 14; + */ + com.google.maps.routing.v2.PolylineDetailsOrBuilder getPolylineDetailsOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java index c77cfb055bd1..d9eebed9de89 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java @@ -99,123 +99,125 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alized_time.proto\032%google/maps/routing/v" + "2/location.proto\0323google/maps/routing/v2" + "/navigation_instruction.proto\032%google/ma" - + "ps/routing/v2/polyline.proto\032(google/map" - + "s/routing/v2/route_label.proto\032.google/m" - + "aps/routing/v2/route_travel_mode.proto\0323" - + "google/maps/routing/v2/speed_reading_int" - + "erval.proto\032&google/maps/routing/v2/toll" - + "_info.proto\032$google/maps/routing/v2/tran" - + "sit.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\032 goog" - + "le/type/localized_text.proto\032\027google/typ" - + "e/money.proto\"\247\006\n\005Route\0228\n\014route_labels\030" - + "\r \003(\0162\".google.maps.routing.v2.RouteLabe" - + "l\022.\n\004legs\030\001 \003(\0132 .google.maps.routing.v2" - + ".RouteLeg\022\027\n\017distance_meters\030\002 \001(\005\022+\n\010du" - + "ration\030\003 \001(\0132\031.google.protobuf.Duration\022" - + "2\n\017static_duration\030\004 \001(\0132\031.google.protob" - + "uf.Duration\0222\n\010polyline\030\005 \001(\0132 .google.m" - + "aps.routing.v2.Polyline\022\023\n\013description\030\006" - + " \001(\t\022\020\n\010warnings\030\007 \003(\t\022+\n\010viewport\030\010 \001(\013" - + "2\031.google.geo.type.Viewport\022D\n\017travel_ad" - + "visory\030\t \001(\0132+.google.maps.routing.v2.Ro" - + "uteTravelAdvisory\022-\n%optimized_intermedi" - + "ate_waypoint_index\030\n \003(\005\022L\n\020localized_va" - + "lues\030\013 \001(\01322.google.maps.routing.v2.Rout" - + "e.RouteLocalizedValues\022\023\n\013route_token\030\014 " - + "\001(\t\032\331\001\n\024RouteLocalizedValues\022,\n\010distance" - + "\030\001 \001(\0132\032.google.type.LocalizedText\022,\n\010du" - + "ration\030\002 \001(\0132\032.google.type.LocalizedText" - + "\0223\n\017static_duration\030\003 \001(\0132\032.google.type." - + "LocalizedText\0220\n\014transit_fare\030\004 \001(\0132\032.go" - + "ogle.type.LocalizedText\"\227\002\n\023RouteTravelA" - + "dvisory\0223\n\ttoll_info\030\002 \001(\0132 .google.maps" - + ".routing.v2.TollInfo\022M\n\027speed_reading_in" - + "tervals\030\003 \003(\0132,.google.maps.routing.v2.S" - + "peedReadingInterval\022$\n\034fuel_consumption_" - + "microliters\030\005 \001(\003\022,\n$route_restrictions_" - + "partially_ignored\030\006 \001(\010\022(\n\014transit_fare\030" - + "\007 \001(\0132\022.google.type.Money\"\234\001\n\026RouteLegTr" - + "avelAdvisory\0223\n\ttoll_info\030\001 \001(\0132 .google" - + ".maps.routing.v2.TollInfo\022M\n\027speed_readi" - + "ng_intervals\030\002 \003(\0132,.google.maps.routing" - + ".v2.SpeedReadingInterval\"k\n\032RouteLegStep" - + "TravelAdvisory\022M\n\027speed_reading_interval" - + "s\030\001 \003(\0132,.google.maps.routing.v2.SpeedRe" - + "adingInterval\"\352\010\n\010RouteLeg\022\027\n\017distance_m" - + "eters\030\001 \001(\005\022+\n\010duration\030\002 \001(\0132\031.google.p" - + "rotobuf.Duration\0222\n\017static_duration\030\003 \001(" - + "\0132\031.google.protobuf.Duration\0222\n\010polyline" - + "\030\004 \001(\0132 .google.maps.routing.v2.Polyline" - + "\0228\n\016start_location\030\005 \001(\0132 .google.maps.r" - + "outing.v2.Location\0226\n\014end_location\030\006 \001(\013" - + "2 .google.maps.routing.v2.Location\0223\n\005st" - + "eps\030\007 \003(\0132$.google.maps.routing.v2.Route" - + "LegStep\022G\n\017travel_advisory\030\010 \001(\0132..googl" - + "e.maps.routing.v2.RouteLegTravelAdvisory" - + "\022R\n\020localized_values\030\t \001(\01328.google.maps" - + ".routing.v2.RouteLeg.RouteLegLocalizedVa" - + "lues\022F\n\016steps_overview\030\n \001(\0132..google.ma" - + "ps.routing.v2.RouteLeg.StepsOverview\032\252\001\n" - + "\027RouteLegLocalizedValues\022,\n\010distance\030\001 \001" - + "(\0132\032.google.type.LocalizedText\022,\n\010durati" - + "on\030\002 \001(\0132\032.google.type.LocalizedText\0223\n\017" - + "static_duration\030\003 \001(\0132\032.google.type.Loca" - + "lizedText\032\366\002\n\rStepsOverview\022^\n\024multi_mod" - + "al_segments\030\001 \003(\0132@.google.maps.routing." - + "v2.RouteLeg.StepsOverview.MultiModalSegm" - + "ent\032\204\002\n\021MultiModalSegment\022\035\n\020step_start_" - + "index\030\001 \001(\005H\000\210\001\001\022\033\n\016step_end_index\030\002 \001(\005" - + "H\001\210\001\001\022M\n\026navigation_instruction\030\003 \001(\0132-." - + "google.maps.routing.v2.NavigationInstruc" - + "tion\022<\n\013travel_mode\030\004 \001(\0162\'.google.maps." - + "routing.v2.RouteTravelModeB\023\n\021_step_star" - + "t_indexB\021\n\017_step_end_index\"\207\006\n\014RouteLegS" - + "tep\022\027\n\017distance_meters\030\001 \001(\005\0222\n\017static_d" - + "uration\030\002 \001(\0132\031.google.protobuf.Duration" - + "\0222\n\010polyline\030\003 \001(\0132 .google.maps.routing" - + ".v2.Polyline\0228\n\016start_location\030\004 \001(\0132 .g" - + "oogle.maps.routing.v2.Location\0226\n\014end_lo" - + "cation\030\005 \001(\0132 .google.maps.routing.v2.Lo" - + "cation\022M\n\026navigation_instruction\030\006 \001(\0132-" - + ".google.maps.routing.v2.NavigationInstru" - + "ction\022K\n\017travel_advisory\030\007 \001(\01322.google." - + "maps.routing.v2.RouteLegStepTravelAdviso" - + "ry\022Z\n\020localized_values\030\010 \001(\0132@.google.ma" - + "ps.routing.v2.RouteLegStep.RouteLegStepL" - + "ocalizedValues\022K\n\017transit_details\030\t \001(\0132" - + "2.google.maps.routing.v2.RouteLegStepTra" - + "nsitDetails\022<\n\013travel_mode\030\n \001(\0162\'.googl" - + "e.maps.routing.v2.RouteTravelMode\032\200\001\n\033Ro" - + "uteLegStepLocalizedValues\022,\n\010distance\030\001 " - + "\001(\0132\032.google.type.LocalizedText\0223\n\017stati" - + "c_duration\030\003 \001(\0132\032.google.type.Localized" - + "Text\"\236\006\n\032RouteLegStepTransitDetails\022[\n\014s" - + "top_details\030\001 \001(\0132E.google.maps.routing." - + "v2.RouteLegStepTransitDetails.TransitSto" - + "pDetails\022j\n\020localized_values\030\002 \001(\0132P.goo" - + "gle.maps.routing.v2.RouteLegStepTransitD" - + "etails.TransitDetailsLocalizedValues\022\020\n\010" - + "headsign\030\003 \001(\t\022*\n\007headway\030\004 \001(\0132\031.google" - + ".protobuf.Duration\0229\n\014transit_line\030\005 \001(\013" - + "2#.google.maps.routing.v2.TransitLine\022\022\n" - + "\nstop_count\030\006 \001(\005\022\027\n\017trip_short_text\030\007 \001" - + "(\t\032\362\001\n\022TransitStopDetails\0229\n\014arrival_sto" - + "p\030\001 \001(\0132#.google.maps.routing.v2.Transit" - + "Stop\0220\n\014arrival_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022;\n\016departure_stop\030\003 \001(\0132#" - + ".google.maps.routing.v2.TransitStop\0222\n\016d" - + "eparture_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\032\233\001\n\035TransitDetailsLocalizedValue" - + "s\022;\n\014arrival_time\030\001 \001(\0132%.google.maps.ro" - + "uting.v2.LocalizedTime\022=\n\016departure_time" - + "\030\002 \001(\0132%.google.maps.routing.v2.Localize" - + "dTimeB\277\001\n\032com.google.maps.routing.v2B\nRo" - + "uteProtoP\001Z:cloud.google.com/go/maps/rou" - + "ting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV" - + "2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps" - + "\\Routing\\V2\352\002\031Google::Maps::Routing::V2b" - + "\006proto3" + + "ps/routing/v2/polyline.proto\032-google/map" + + "s/routing/v2/polyline_details.proto\032(goo" + + "gle/maps/routing/v2/route_label.proto\032.g" + + "oogle/maps/routing/v2/route_travel_mode." + + "proto\0323google/maps/routing/v2/speed_read" + + "ing_interval.proto\032&google/maps/routing/" + + "v2/toll_info.proto\032$google/maps/routing/" + + "v2/transit.proto\032\036google/protobuf/durati" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\032 google/type/localized_text.proto\032\027goo" + + "gle/type/money.proto\"\352\006\n\005Route\0228\n\014route_" + + "labels\030\r \003(\0162\".google.maps.routing.v2.Ro" + + "uteLabel\022.\n\004legs\030\001 \003(\0132 .google.maps.rou" + + "ting.v2.RouteLeg\022\027\n\017distance_meters\030\002 \001(" + + "\005\022+\n\010duration\030\003 \001(\0132\031.google.protobuf.Du" + + "ration\0222\n\017static_duration\030\004 \001(\0132\031.google" + + ".protobuf.Duration\0222\n\010polyline\030\005 \001(\0132 .g" + + "oogle.maps.routing.v2.Polyline\022\023\n\013descri" + + "ption\030\006 \001(\t\022\020\n\010warnings\030\007 \003(\t\022+\n\010viewpor" + + "t\030\010 \001(\0132\031.google.geo.type.Viewport\022D\n\017tr" + + "avel_advisory\030\t \001(\0132+.google.maps.routin" + + "g.v2.RouteTravelAdvisory\022-\n%optimized_in" + + "termediate_waypoint_index\030\n \003(\005\022L\n\020local" + + "ized_values\030\013 \001(\01322.google.maps.routing." + + "v2.Route.RouteLocalizedValues\022\023\n\013route_t" + + "oken\030\014 \001(\t\022A\n\020polyline_details\030\016 \001(\0132\'.g" + + "oogle.maps.routing.v2.PolylineDetails\032\331\001" + + "\n\024RouteLocalizedValues\022,\n\010distance\030\001 \001(\013" + + "2\032.google.type.LocalizedText\022,\n\010duration" + + "\030\002 \001(\0132\032.google.type.LocalizedText\0223\n\017st" + + "atic_duration\030\003 \001(\0132\032.google.type.Locali" + + "zedText\0220\n\014transit_fare\030\004 \001(\0132\032.google.t" + + "ype.LocalizedText\"\227\002\n\023RouteTravelAdvisor" + + "y\0223\n\ttoll_info\030\002 \001(\0132 .google.maps.routi" + + "ng.v2.TollInfo\022M\n\027speed_reading_interval" + + "s\030\003 \003(\0132,.google.maps.routing.v2.SpeedRe" + + "adingInterval\022$\n\034fuel_consumption_microl" + + "iters\030\005 \001(\003\022,\n$route_restrictions_partia" + + "lly_ignored\030\006 \001(\010\022(\n\014transit_fare\030\007 \001(\0132" + + "\022.google.type.Money\"\234\001\n\026RouteLegTravelAd" + + "visory\0223\n\ttoll_info\030\001 \001(\0132 .google.maps." + + "routing.v2.TollInfo\022M\n\027speed_reading_int" + + "ervals\030\002 \003(\0132,.google.maps.routing.v2.Sp" + + "eedReadingInterval\"k\n\032RouteLegStepTravel" + + "Advisory\022M\n\027speed_reading_intervals\030\001 \003(" + + "\0132,.google.maps.routing.v2.SpeedReadingI" + + "nterval\"\352\010\n\010RouteLeg\022\027\n\017distance_meters\030" + + "\001 \001(\005\022+\n\010duration\030\002 \001(\0132\031.google.protobu" + + "f.Duration\0222\n\017static_duration\030\003 \001(\0132\031.go" + + "ogle.protobuf.Duration\0222\n\010polyline\030\004 \001(\013" + + "2 .google.maps.routing.v2.Polyline\0228\n\016st" + + "art_location\030\005 \001(\0132 .google.maps.routing" + + ".v2.Location\0226\n\014end_location\030\006 \001(\0132 .goo" + + "gle.maps.routing.v2.Location\0223\n\005steps\030\007 " + + "\003(\0132$.google.maps.routing.v2.RouteLegSte" + + "p\022G\n\017travel_advisory\030\010 \001(\0132..google.maps" + + ".routing.v2.RouteLegTravelAdvisory\022R\n\020lo" + + "calized_values\030\t \001(\01328.google.maps.routi" + + "ng.v2.RouteLeg.RouteLegLocalizedValues\022F" + + "\n\016steps_overview\030\n \001(\0132..google.maps.rou" + + "ting.v2.RouteLeg.StepsOverview\032\252\001\n\027Route" + + "LegLocalizedValues\022,\n\010distance\030\001 \001(\0132\032.g" + + "oogle.type.LocalizedText\022,\n\010duration\030\002 \001" + + "(\0132\032.google.type.LocalizedText\0223\n\017static" + + "_duration\030\003 \001(\0132\032.google.type.LocalizedT" + + "ext\032\366\002\n\rStepsOverview\022^\n\024multi_modal_seg" + + "ments\030\001 \003(\0132@.google.maps.routing.v2.Rou" + + "teLeg.StepsOverview.MultiModalSegment\032\204\002" + + "\n\021MultiModalSegment\022\035\n\020step_start_index\030" + + "\001 \001(\005H\000\210\001\001\022\033\n\016step_end_index\030\002 \001(\005H\001\210\001\001\022" + + "M\n\026navigation_instruction\030\003 \001(\0132-.google" + + ".maps.routing.v2.NavigationInstruction\022<" + + "\n\013travel_mode\030\004 \001(\0162\'.google.maps.routin" + + "g.v2.RouteTravelModeB\023\n\021_step_start_inde" + + "xB\021\n\017_step_end_index\"\207\006\n\014RouteLegStep\022\027\n" + + "\017distance_meters\030\001 \001(\005\0222\n\017static_duratio" + + "n\030\002 \001(\0132\031.google.protobuf.Duration\0222\n\010po" + + "lyline\030\003 \001(\0132 .google.maps.routing.v2.Po" + + "lyline\0228\n\016start_location\030\004 \001(\0132 .google." + + "maps.routing.v2.Location\0226\n\014end_location" + + "\030\005 \001(\0132 .google.maps.routing.v2.Location" + + "\022M\n\026navigation_instruction\030\006 \001(\0132-.googl" + + "e.maps.routing.v2.NavigationInstruction\022" + + "K\n\017travel_advisory\030\007 \001(\01322.google.maps.r" + + "outing.v2.RouteLegStepTravelAdvisory\022Z\n\020" + + "localized_values\030\010 \001(\0132@.google.maps.rou" + + "ting.v2.RouteLegStep.RouteLegStepLocaliz" + + "edValues\022K\n\017transit_details\030\t \001(\01322.goog" + + "le.maps.routing.v2.RouteLegStepTransitDe" + + "tails\022<\n\013travel_mode\030\n \001(\0162\'.google.maps" + + ".routing.v2.RouteTravelMode\032\200\001\n\033RouteLeg" + + "StepLocalizedValues\022,\n\010distance\030\001 \001(\0132\032." + + "google.type.LocalizedText\0223\n\017static_dura" + + "tion\030\003 \001(\0132\032.google.type.LocalizedText\"\236" + + "\006\n\032RouteLegStepTransitDetails\022[\n\014stop_de" + + "tails\030\001 \001(\0132E.google.maps.routing.v2.Rou" + + "teLegStepTransitDetails.TransitStopDetai" + + "ls\022j\n\020localized_values\030\002 \001(\0132P.google.ma" + + "ps.routing.v2.RouteLegStepTransitDetails" + + ".TransitDetailsLocalizedValues\022\020\n\010headsi" + + "gn\030\003 \001(\t\022*\n\007headway\030\004 \001(\0132\031.google.proto" + + "buf.Duration\0229\n\014transit_line\030\005 \001(\0132#.goo" + + "gle.maps.routing.v2.TransitLine\022\022\n\nstop_" + + "count\030\006 \001(\005\022\027\n\017trip_short_text\030\007 \001(\t\032\362\001\n" + + "\022TransitStopDetails\0229\n\014arrival_stop\030\001 \001(" + + "\0132#.google.maps.routing.v2.TransitStop\0220" + + "\n\014arrival_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestamp\022;\n\016departure_stop\030\003 \001(\0132#.googl" + + "e.maps.routing.v2.TransitStop\0222\n\016departu" + + "re_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\032\233\001\n\035TransitDetailsLocalizedValues\022;\n\014a" + + "rrival_time\030\001 \001(\0132%.google.maps.routing." + + "v2.LocalizedTime\022=\n\016departure_time\030\002 \001(\013" + + "2%.google.maps.routing.v2.LocalizedTimeB" + + "\274\001\n\032com.google.maps.routing.v2B\nRoutePro" + + "toP\001Z:cloud.google.com/go/maps/routing/a" + + "piv2/routingpb;routingpb\242\002\005GMRV2\252\002\026Googl" + + "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\" + + "V2\352\002\031Google::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -226,6 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.maps.routing.v2.LocationProto.getDescriptor(), com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(), com.google.maps.routing.v2.PolylineProto.getDescriptor(), + com.google.maps.routing.v2.PolylineDetailsProto.getDescriptor(), com.google.maps.routing.v2.RouteLabelProto.getDescriptor(), com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(), @@ -255,6 +258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptimizedIntermediateWaypointIndex", "LocalizedValues", "RouteToken", + "PolylineDetails", }); internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor = internal_static_google_maps_routing_v2_Route_descriptor.getNestedTypes().get(0); @@ -399,6 +403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.maps.routing.v2.LocationProto.getDescriptor(); com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(); com.google.maps.routing.v2.PolylineProto.getDescriptor(); + com.google.maps.routing.v2.PolylineDetailsProto.getDescriptor(); com.google.maps.routing.v2.RouteLabelProto.getDescriptor(); com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java index 1798228eecb8..cc215dbd69a3 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java @@ -40,12 +40,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "de.proto\022\026google.maps.routing.v2*n\n\017Rout" + "eTravelMode\022\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000" + "\022\t\n\005DRIVE\020\001\022\013\n\007BICYCLE\020\002\022\010\n\004WALK\020\003\022\017\n\013TW" - + "O_WHEELER\020\004\022\013\n\007TRANSIT\020\007B\311\001\n\032com.google." + + "O_WHEELER\020\004\022\013\n\007TRANSIT\020\007B\306\001\n\032com.google." + "maps.routing.v2B\024RouteTravelModeProtoP\001Z" + ":cloud.google.com/go/maps/routing/apiv2/" - + "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." - + "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" - + "\352\002\031Google::Maps::Routing::V2b\006proto3" + + "routingpb;routingpb\242\002\005GMRV2\252\002\026Google.Map" + + "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" + + "Google::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java index 2c17bf8522cf..85ba8f55c0ed 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java @@ -84,7 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/protobuf/duration.proto\032\037google/pro" + "tobuf/timestamp.proto\032\027google/rpc/status" + ".proto\032 google/type/localized_text.proto" - + "\"\221\013\n\024ComputeRoutesRequest\0225\n\006origin\030\001 \001(" + + "\"\347\013\n\024ComputeRoutesRequest\0225\n\006origin\030\001 \001(" + "\0132 .google.maps.routing.v2.WaypointB\003\340A\002" + "\022:\n\013destination\030\002 \001(\0132 .google.maps.rout" + "ing.v2.WaypointB\003\340A\002\022<\n\rintermediates\030\003 " @@ -114,81 +114,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.maps.routing.v2.TrafficModelB\003\340A" + "\001\022L\n\023transit_preferences\030\024 \001(\0132*.google." + "maps.routing.v2.TransitPreferencesB\003\340A\001\"" - + "E\n\016ReferenceRoute\022\037\n\033REFERENCE_ROUTE_UNS" - + "PECIFIED\020\000\022\022\n\016FUEL_EFFICIENT\020\001\"\233\001\n\020Extra" - + "Computation\022!\n\035EXTRA_COMPUTATION_UNSPECI" - + "FIED\020\000\022\t\n\005TOLLS\020\001\022\024\n\020FUEL_CONSUMPTION\020\002\022" - + "\027\n\023TRAFFIC_ON_POLYLINE\020\003\022*\n&HTML_FORMATT" - + "ED_NAVIGATION_INSTRUCTIONS\020\004\"\310\001\n\025Compute" - + "RoutesResponse\022-\n\006routes\030\001 \003(\0132\035.google." - + "maps.routing.v2.Route\022;\n\rfallback_info\030\002" - + " \001(\0132$.google.maps.routing.v2.FallbackIn" - + "fo\022C\n\021geocoding_results\030\003 \001(\0132(.google.m" - + "aps.routing.v2.GeocodingResults\"\306\006\n\031Comp" - + "uteRouteMatrixRequest\022?\n\007origins\030\001 \003(\0132)" - + ".google.maps.routing.v2.RouteMatrixOrigi" - + "nB\003\340A\002\022I\n\014destinations\030\002 \003(\0132..google.ma" - + "ps.routing.v2.RouteMatrixDestinationB\003\340A" - + "\002\022A\n\013travel_mode\030\003 \001(\0162\'.google.maps.rou" - + "ting.v2.RouteTravelModeB\003\340A\001\022J\n\022routing_" - + "preference\030\004 \001(\0162).google.maps.routing.v" - + "2.RoutingPreferenceB\003\340A\001\0227\n\016departure_ti" - + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\001\0225\n\014arrival_time\030\013 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\001\022\032\n\rlanguage_code\030\006 \001(\tB" - + "\003\340A\001\022\030\n\013region_code\030\t \001(\tB\003\340A\001\0221\n\005units\030" - + "\007 \001(\0162\035.google.maps.routing.v2.UnitsB\003\340A" - + "\001\022c\n\022extra_computations\030\010 \003(\0162B.google.m" - + "aps.routing.v2.ComputeRouteMatrixRequest" - + ".ExtraComputationB\003\340A\001\022@\n\rtraffic_model\030" - + "\n \001(\0162$.google.maps.routing.v2.TrafficMo" - + "delB\003\340A\001\022L\n\023transit_preferences\030\014 \001(\0132*." - + "google.maps.routing.v2.TransitPreference" - + "sB\003\340A\001\"@\n\020ExtraComputation\022!\n\035EXTRA_COMP" - + "UTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\"\222\001\n\021Rou" - + "teMatrixOrigin\0227\n\010waypoint\030\001 \001(\0132 .googl" - + "e.maps.routing.v2.WaypointB\003\340A\002\022D\n\017route" - + "_modifiers\030\002 \001(\0132&.google.maps.routing.v" - + "2.RouteModifiersB\003\340A\001\"Q\n\026RouteMatrixDest" - + "ination\0227\n\010waypoint\030\001 \001(\0132 .google.maps." - + "routing.v2.WaypointB\003\340A\002\"\214\006\n\022RouteMatrix" - + "Element\022\031\n\014origin_index\030\001 \001(\005H\000\210\001\001\022\036\n\021de" - + "stination_index\030\002 \001(\005H\001\210\001\001\022\"\n\006status\030\003 \001" - + "(\0132\022.google.rpc.Status\022F\n\tcondition\030\t \001(" - + "\01623.google.maps.routing.v2.RouteMatrixEl" - + "ementCondition\022\027\n\017distance_meters\030\004 \001(\005\022" - + "+\n\010duration\030\005 \001(\0132\031.google.protobuf.Dura" - + "tion\0222\n\017static_duration\030\006 \001(\0132\031.google.p" - + "rotobuf.Duration\022D\n\017travel_advisory\030\007 \001(" - + "\0132+.google.maps.routing.v2.RouteTravelAd" - + "visory\022;\n\rfallback_info\030\010 \001(\0132$.google.m" - + "aps.routing.v2.FallbackInfo\022T\n\020localized" - + "_values\030\n \001(\0132:.google.maps.routing.v2.R" - + "outeMatrixElement.LocalizedValues\032\324\001\n\017Lo" - + "calizedValues\022,\n\010distance\030\001 \001(\0132\032.google" - + ".type.LocalizedText\022,\n\010duration\030\002 \001(\0132\032." - + "google.type.LocalizedText\0223\n\017static_dura" - + "tion\030\003 \001(\0132\032.google.type.LocalizedText\0220" - + "\n\014transit_fare\030\004 \001(\0132\032.google.type.Local" - + "izedTextB\017\n\r_origin_indexB\024\n\022_destinatio" - + "n_index*t\n\033RouteMatrixElementCondition\022." - + "\n*ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECI" - + "FIED\020\000\022\020\n\014ROUTE_EXISTS\020\001\022\023\n\017ROUTE_NOT_FO" - + "UND\020\0022\344\002\n\006Routes\022\225\001\n\rComputeRoutes\022,.goo" - + "gle.maps.routing.v2.ComputeRoutesRequest" - + "\032-.google.maps.routing.v2.ComputeRoutesR" - + "esponse\"\'\202\323\344\223\002!\"\034/directions/v2:computeR" - + "outes:\001*\022\247\001\n\022ComputeRouteMatrix\0221.google" - + ".maps.routing.v2.ComputeRouteMatrixReque" - + "st\032*.google.maps.routing.v2.RouteMatrixE" - + "lement\"0\202\323\344\223\002*\"%/distanceMatrix/v2:compu" - + "teRouteMatrix:\001*0\001\032\030\312A\025routes.googleapis" - + ".comB\307\001\n\032com.google.maps.routing.v2B\022Rou" - + "tesServiceProtoP\001Z:cloud.google.com/go/m" - + "aps/routing/apiv2/routingpb;routingpb\370\001\001" - + "\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Goog" - + "le\\Maps\\Routing\\V2\352\002\031Google::Maps::Routi" - + "ng::V2b\006proto3" + + "[\n\016ReferenceRoute\022\037\n\033REFERENCE_ROUTE_UNS" + + "PECIFIED\020\000\022\022\n\016FUEL_EFFICIENT\020\001\022\024\n\020SHORTE" + + "R_DISTANCE\020\002\"\333\001\n\020ExtraComputation\022!\n\035EXT" + + "RA_COMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\022" + + "\024\n\020FUEL_CONSUMPTION\020\002\022\027\n\023TRAFFIC_ON_POLY" + + "LINE\020\003\022*\n&HTML_FORMATTED_NAVIGATION_INST" + + "RUCTIONS\020\004\022\034\n\030FLYOVER_INFO_ON_POLYLINE\020\007" + + "\022 \n\034NARROW_ROAD_INFO_ON_POLYLINE\020\010\"\310\001\n\025C" + + "omputeRoutesResponse\022-\n\006routes\030\001 \003(\0132\035.g" + + "oogle.maps.routing.v2.Route\022;\n\rfallback_" + + "info\030\002 \001(\0132$.google.maps.routing.v2.Fall" + + "backInfo\022C\n\021geocoding_results\030\003 \001(\0132(.go" + + "ogle.maps.routing.v2.GeocodingResults\"\306\006" + + "\n\031ComputeRouteMatrixRequest\022?\n\007origins\030\001" + + " \003(\0132).google.maps.routing.v2.RouteMatri" + + "xOriginB\003\340A\002\022I\n\014destinations\030\002 \003(\0132..goo" + + "gle.maps.routing.v2.RouteMatrixDestinati" + + "onB\003\340A\002\022A\n\013travel_mode\030\003 \001(\0162\'.google.ma" + + "ps.routing.v2.RouteTravelModeB\003\340A\001\022J\n\022ro" + + "uting_preference\030\004 \001(\0162).google.maps.rou" + + "ting.v2.RoutingPreferenceB\003\340A\001\0227\n\016depart" + + "ure_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\001\0225\n\014arrival_time\030\013 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001\022\032\n\rlanguage_code\030" + + "\006 \001(\tB\003\340A\001\022\030\n\013region_code\030\t \001(\tB\003\340A\001\0221\n\005" + + "units\030\007 \001(\0162\035.google.maps.routing.v2.Uni" + + "tsB\003\340A\001\022c\n\022extra_computations\030\010 \003(\0162B.go" + + "ogle.maps.routing.v2.ComputeRouteMatrixR" + + "equest.ExtraComputationB\003\340A\001\022@\n\rtraffic_" + + "model\030\n \001(\0162$.google.maps.routing.v2.Tra" + + "fficModelB\003\340A\001\022L\n\023transit_preferences\030\014 " + + "\001(\0132*.google.maps.routing.v2.TransitPref" + + "erencesB\003\340A\001\"@\n\020ExtraComputation\022!\n\035EXTR" + + "A_COMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\"\222" + + "\001\n\021RouteMatrixOrigin\0227\n\010waypoint\030\001 \001(\0132 " + + ".google.maps.routing.v2.WaypointB\003\340A\002\022D\n" + + "\017route_modifiers\030\002 \001(\0132&.google.maps.rou" + + "ting.v2.RouteModifiersB\003\340A\001\"Q\n\026RouteMatr" + + "ixDestination\0227\n\010waypoint\030\001 \001(\0132 .google" + + ".maps.routing.v2.WaypointB\003\340A\002\"\214\006\n\022Route" + + "MatrixElement\022\031\n\014origin_index\030\001 \001(\005H\000\210\001\001" + + "\022\036\n\021destination_index\030\002 \001(\005H\001\210\001\001\022\"\n\006stat" + + "us\030\003 \001(\0132\022.google.rpc.Status\022F\n\tconditio" + + "n\030\t \001(\01623.google.maps.routing.v2.RouteMa" + + "trixElementCondition\022\027\n\017distance_meters\030" + + "\004 \001(\005\022+\n\010duration\030\005 \001(\0132\031.google.protobu" + + "f.Duration\0222\n\017static_duration\030\006 \001(\0132\031.go" + + "ogle.protobuf.Duration\022D\n\017travel_advisor" + + "y\030\007 \001(\0132+.google.maps.routing.v2.RouteTr" + + "avelAdvisory\022;\n\rfallback_info\030\010 \001(\0132$.go" + + "ogle.maps.routing.v2.FallbackInfo\022T\n\020loc" + + "alized_values\030\n \001(\0132:.google.maps.routin" + + "g.v2.RouteMatrixElement.LocalizedValues\032" + + "\324\001\n\017LocalizedValues\022,\n\010distance\030\001 \001(\0132\032." + + "google.type.LocalizedText\022,\n\010duration\030\002 " + + "\001(\0132\032.google.type.LocalizedText\0223\n\017stati" + + "c_duration\030\003 \001(\0132\032.google.type.Localized" + + "Text\0220\n\014transit_fare\030\004 \001(\0132\032.google.type" + + ".LocalizedTextB\017\n\r_origin_indexB\024\n\022_dest" + + "ination_index*t\n\033RouteMatrixElementCondi" + + "tion\022.\n*ROUTE_MATRIX_ELEMENT_CONDITION_U" + + "NSPECIFIED\020\000\022\020\n\014ROUTE_EXISTS\020\001\022\023\n\017ROUTE_" + + "NOT_FOUND\020\0022\344\002\n\006Routes\022\225\001\n\rComputeRoutes" + + "\022,.google.maps.routing.v2.ComputeRoutesR" + + "equest\032-.google.maps.routing.v2.ComputeR" + + "outesResponse\"\'\202\323\344\223\002!\"\034/directions/v2:co" + + "mputeRoutes:\001*\022\247\001\n\022ComputeRouteMatrix\0221." + + "google.maps.routing.v2.ComputeRouteMatri" + + "xRequest\032*.google.maps.routing.v2.RouteM" + + "atrixElement\"0\202\323\344\223\002*\"%/distanceMatrix/v2" + + ":computeRouteMatrix:\001*0\001\032\030\312A\025routes.goog" + + "leapis.comB\304\001\n\032com.google.maps.routing.v" + + "2B\022RoutesServiceProtoP\001Z:cloud.google.co" + + "m/go/maps/routing/apiv2/routingpb;routin" + + "gpb\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026G" + + "oogle\\Maps\\Routing\\V2\352\002\031Google::Maps::Ro" + + "uting::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java index c875f2afdbca..5e8c7a3d3476 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java @@ -40,13 +40,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nce.proto\022\026google.maps.routing.v2*z\n\021Rou" + "tingPreference\022\"\n\036ROUTING_PREFERENCE_UNS" + "PECIFIED\020\000\022\023\n\017TRAFFIC_UNAWARE\020\001\022\021\n\rTRAFF" - + "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\313\001" + + "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\310\001" + "\n\032com.google.maps.routing.v2B\026RoutingPre" + "ferenceProtoP\001Z:cloud.google.com/go/maps" - + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" - + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" - + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" - + ":V2b\006proto3" + + "/routing/apiv2/routingpb;routingpb\242\002\005GMR" + + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java index 7f28081a12ab..94ccbbb40126 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java @@ -50,13 +50,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "val.SpeedH\000\"E\n\005Speed\022\025\n\021SPEED_UNSPECIFIE" + "D\020\000\022\n\n\006NORMAL\020\001\022\010\n\004SLOW\020\002\022\017\n\013TRAFFIC_JAM" + "\020\003B\014\n\nspeed_typeB\035\n\033_start_polyline_poin" - + "t_indexB\033\n\031_end_polyline_point_indexB\316\001\n" + + "t_indexB\033\n\031_end_polyline_point_indexB\313\001\n" + "\032com.google.maps.routing.v2B\031SpeedReadin" + "gIntervalProtoP\001Z:cloud.google.com/go/ma" - + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" - + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" - + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" - + "g::V2b\006proto3" + + "ps/routing/apiv2/routingpb;routingpb\242\002\005G" + + "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" + + "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" + + "V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java index aa86eaf2a294..db6e99f660ca 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java @@ -95,12 +95,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020US_WA_GOOD_TO_GO\020\001\022\022\n\016US_WV_EZPASSWV\020>\022" + "!\n\035US_WV_MEMORIAL_BRIDGE_TICKETS\020?\022\022\n\016US" + "_WV_MOV_PASS\020d\022#\n\037US_WV_NEWELL_TOLL_BRID" - + "GE_TICKET\020@B\304\001\n\032com.google.maps.routing." + + "GE_TICKET\020@B\301\001\n\032com.google.maps.routing." + "v2B\017TollPassesProtoP\001Z:cloud.google.com/" + "go/maps/routing/apiv2/routingpb;routingp" - + "b\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026" - + "Google\\Maps\\Routing\\V2\352\002\031Google::Maps::R" - + "outing::V2b\006proto3" + + "b\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Goo" + + "gle\\Maps\\Routing\\V2\352\002\031Google::Maps::Rout" + + "ing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java index be5c81d67a88..501f3d9f34c0 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java @@ -40,12 +40,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\022\026google.maps.routing.v2*^\n\014TrafficM" + "odel\022\035\n\031TRAFFIC_MODEL_UNSPECIFIED\020\000\022\016\n\nB" + "EST_GUESS\020\001\022\017\n\013PESSIMISTIC\020\002\022\016\n\nOPTIMIST" - + "IC\020\003B\306\001\n\032com.google.maps.routing.v2B\021Tra" + + "IC\020\003B\303\001\n\032com.google.maps.routing.v2B\021Tra" + "fficModelProtoP\001Z:cloud.google.com/go/ma" - + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" - + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" - + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" - + "g::V2b\006proto3" + + "ps/routing/apiv2/routingpb;routingpb\242\002\005G" + + "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" + + "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" + + "V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java index ccc06dc2a5df..0ed4fa499632 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java @@ -53,13 +53,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "WAY\020\002\022\t\n\005TRAIN\020\003\022\016\n\nLIGHT_RAIL\020\004\022\010\n\004RAIL" + "\020\005\"m\n\030TransitRoutingPreference\022*\n&TRANSI" + "T_ROUTING_PREFERENCE_UNSPECIFIED\020\000\022\020\n\014LE" - + "SS_WALKING\020\001\022\023\n\017FEWER_TRANSFERS\020\002B\314\001\n\032co" + + "SS_WALKING\020\001\022\023\n\017FEWER_TRANSFERS\020\002B\311\001\n\032co" + "m.google.maps.routing.v2B\027TransitPrefere" + "ncesProtoP\001Z:cloud.google.com/go/maps/ro" - + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" - + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" - + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" - + "b\006proto3" + + "uting/apiv2/routingpb;routingpb\242\002\005GMRV2\252" + + "\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\R" + + "outing\\V2\352\002\031Google::Maps::Routing::V2b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java index a4e169e1cf20..828e7457f93e 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java @@ -78,12 +78,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "NTERCITY_BUS\020\t\022\027\n\023LONG_DISTANCE_TRAIN\020\n\022" + "\016\n\nMETRO_RAIL\020\013\022\014\n\010MONORAIL\020\014\022\t\n\005OTHER\020\r" + "\022\010\n\004RAIL\020\016\022\016\n\nSHARE_TAXI\020\017\022\n\n\006SUBWAY\020\020\022\010" - + "\n\004TRAM\020\021\022\016\n\nTROLLEYBUS\020\022B\301\001\n\032com.google." + + "\n\004TRAM\020\021\022\016\n\nTROLLEYBUS\020\022B\276\001\n\032com.google." + "maps.routing.v2B\014TransitProtoP\001Z:cloud.g" + "oogle.com/go/maps/routing/apiv2/routingp" - + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" - + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" - + "e::Maps::Routing::V2b\006proto3" + + "b;routingpb\242\002\005GMRV2\252\002\026Google.Maps.Routin" + + "g.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::" + + "Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java index 4097f7c95d50..25043f578827 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java @@ -38,12 +38,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\"google/maps/routing/v2/units.proto\022\026go" + "ogle.maps.routing.v2*8\n\005Units\022\025\n\021UNITS_U" - + "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\277" + + "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\274" + "\001\n\032com.google.maps.routing.v2B\nUnitsProt" + "oP\001Z:cloud.google.com/go/maps/routing/ap" - + "iv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goo" - + "gle.Maps.Routing.V2\312\002\026Google\\Maps\\Routin" - + "g\\V2\352\002\031Google::Maps::Routing::V2b\006proto3" + + "iv2/routingpb;routingpb\242\002\005GMRV2\252\002\026Google" + + ".Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V" + + "2\352\002\031Google::Maps::Routing::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java index 7755c3d232d6..cfcbee20b6e9 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java @@ -40,13 +40,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n_type.proto\022\026google.maps.routing.v2*p\n\023" + "VehicleEmissionType\022%\n!VEHICLE_EMISSION_" + "TYPE_UNSPECIFIED\020\000\022\014\n\010GASOLINE\020\001\022\014\n\010ELEC" - + "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\315\001\n\032com.g" + + "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\312\001\n\032com.g" + "oogle.maps.routing.v2B\030VehicleEmissionTy" + "peProtoP\001Z:cloud.google.com/go/maps/rout" - + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" - + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" - + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" - + "proto3" + + "ing/apiv2/routingpb;routingpb\242\002\005GMRV2\252\002\026" + + "Google.Maps.Routing.V2\312\002\026Google\\Maps\\Rou" + + "ting\\V2\352\002\031Google::Maps::Routing::V2b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java index 3bd6a587556d..f08f585a9ff4 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java @@ -48,12 +48,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ocationH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\021\n\007address" + "\030\007 \001(\tH\000\022\013\n\003via\030\003 \001(\010\022\030\n\020vehicle_stopove" + "r\030\004 \001(\010\022\024\n\014side_of_road\030\005 \001(\010B\017\n\rlocatio" - + "n_typeB\302\001\n\032com.google.maps.routing.v2B\rW" + + "n_typeB\277\001\n\032com.google.maps.routing.v2B\rW" + "aypointProtoP\001Z:cloud.google.com/go/maps" - + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" - + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" - + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" - + ":V2b\006proto3" + + "/routing/apiv2/routingpb;routingpb\242\002\005GMR" + + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto index 8ab23ae61fc7..b97f8ed46b11 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto index f2ea9b3bf41c..e5d0e7339496 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto @@ -18,7 +18,6 @@ package google.maps.routing.v2; import "google/rpc/status.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto index a5a2e292f1c6..9a233e4c1104 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto @@ -18,7 +18,6 @@ package google.maps.routing.v2; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto index 00ea07a953ea..f4b61f293b1b 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto @@ -19,7 +19,6 @@ package google.maps.routing.v2; import "google/protobuf/wrappers.proto"; import "google/type/latlng.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto index 246757496dae..b7b5c616d92f 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto index 1952c9b4e197..581b5156564b 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto @@ -18,7 +18,6 @@ package google.maps.routing.v2; import "google/maps/routing/v2/maneuver.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto index c718ba2fa7ab..27d0d29d7748 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto @@ -18,7 +18,6 @@ package google.maps.routing.v2; import "google/protobuf/struct.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline_details.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline_details.proto new file mode 100644 index 000000000000..7c3ec343a44e --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline_details.proto @@ -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 +// +// 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.maps.routing.v2; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "PolylineDetailsProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// Details corresponding to a given index or contiguous segment of a polyline. +// Given a polyline with points P_0, P_1, ... , P_N (zero-based index), the +// `PolylineDetails` defines an interval and associated metadata. +message PolylineDetails { + // Encapsulates the start and end indexes for a polyline detail. + // For instances where the data corresponds to a single point, `start_index` + // and `end_index` will be equal. + message PolylinePointIndex { + // The start index of this detail in the polyline. + optional int32 start_index = 1; + + // The end index of this detail in the polyline. + optional int32 end_index = 2; + } + + // Encapsulates the states of road features along a stretch of polyline. + enum RoadFeatureState { + // The road feature's state was not computed (default value). + ROAD_FEATURE_STATE_UNSPECIFIED = 0; + + // The road feature exists. + EXISTS = 1; + + // The road feature does not exist. + DOES_NOT_EXIST = 2; + } + + // Encapsulates information about flyovers along the polyline. + message FlyoverInfo { + // Output only. Denotes whether a flyover exists for a given stretch of the + // polyline. + RoadFeatureState flyover_presence = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The location of flyover related information along the polyline. + PolylinePointIndex polyline_point_index = 2; + } + + // Encapsulates information about narrow roads along the polyline. + message NarrowRoadInfo { + // Output only. Denotes whether a narrow road exists for a given stretch of + // the polyline. + RoadFeatureState narrow_road_presence = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The location of narrow road related information along the polyline. + PolylinePointIndex polyline_point_index = 2; + } + + // Flyover details along the polyline. + repeated FlyoverInfo flyover_info = 12; + + // Narrow road details along the polyline. + repeated NarrowRoadInfo narrow_road_info = 13; +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto index 1d05ad1cb241..4daa1748d32d 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto @@ -21,6 +21,7 @@ import "google/maps/routing/v2/localized_time.proto"; import "google/maps/routing/v2/location.proto"; import "google/maps/routing/v2/navigation_instruction.proto"; import "google/maps/routing/v2/polyline.proto"; +import "google/maps/routing/v2/polyline_details.proto"; import "google/maps/routing/v2/route_label.proto"; import "google/maps/routing/v2/route_travel_mode.proto"; import "google/maps/routing/v2/speed_reading_interval.proto"; @@ -31,7 +32,6 @@ import "google/protobuf/timestamp.proto"; import "google/type/localized_text.proto"; import "google/type/money.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; @@ -49,9 +49,10 @@ message Route { // Travel distance represented in text form. google.type.LocalizedText distance = 1; - // Duration taking traffic conditions into consideration, represented in - // text form. Note: If you did not request traffic information, this value - // will be the same value as `static_duration`. + // Duration, represented in text form and localized to the region of the + // query. Takes traffic conditions into consideration. Note: If you did not + // request traffic information, this value is the same value as + // `static_duration`. google.type.LocalizedText duration = 2; // Duration without taking traffic conditions into consideration, @@ -119,16 +120,21 @@ message Route { // Text representations of properties of the `Route`. RouteLocalizedValues localized_values = 11; - // A web-safe, base64-encoded route token that can be passed to the Navigation - // SDK, that allows the Navigation SDK to reconstruct the route during - // navigation, and, in the event of rerouting, honor the original intention - // when you created the route by calling ComputeRoutes. Customers should treat - // this token as an opaque blob. It is not meant for reading or mutating. + // An opaque token that can be passed to [Navigation + // SDK](https://developers.google.com/maps/documentation/navigation) to + // reconstruct the route during navigation, and, in the event of rerouting, + // honor the original intention when the route was created. Treat this token + // as an opaque blob. Don't compare its value across requests as its value + // may change even if the service returns the exact same route. + // // NOTE: `Route.route_token` is only available for requests that have set // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests // that have Via waypoints. string route_token = 12; + + // Contains information about details along the polyline. + PolylineDetails polyline_details = 14; } // Contains the additional information that the user should be informed @@ -204,9 +210,10 @@ message RouteLeg { // Travel distance represented in text form. google.type.LocalizedText distance = 1; - // Duration taking traffic conditions into consideration represented in text - // form. Note: If you did not request traffic information, this value will - // be the same value as static_duration. + // Duration, represented in text form and localized to the region of the + // query. Takes traffic conditions into consideration. Note: If you did not + // request traffic information, this value is the same value as + // static_duration. google.type.LocalizedText duration = 2; // Duration without taking traffic conditions into @@ -384,7 +391,7 @@ message RouteLegStepTransitDetails { // The number of stops from the departure to the arrival stop. This count // includes the arrival stop, but excludes the departure stop. For example, if // your route leaves from Stop A, passes through stops B and C, and arrives at - // stop D, stop_count will return 3. + // stop D, stop_count returns 3. int32 stop_count = 6; // The text that appears in schedules and sign boards to identify a transit diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto index 862cc19e255e..2583bc920620 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; @@ -44,4 +43,7 @@ enum RouteLabel { // Fuel efficient route. Routes labeled with this value are determined to be // optimized for Eco parameters such as fuel consumption. FUEL_EFFICIENT = 3; + + // Shorter travel distance route. This is an experimental feature. + SHORTER_DISTANCE = 4; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto index e4382acf04a3..4f55337e59ed 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto @@ -19,7 +19,6 @@ package google.maps.routing.v2; import "google/maps/routing/v2/toll_passes.proto"; import "google/maps/routing/v2/vehicle_info.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto index 1e4a9995b28f..3ca186864dc2 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto index d2a84d30ad43..a194cd13a216 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto @@ -35,7 +35,6 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; @@ -142,9 +141,24 @@ message ComputeRoutesRequest { // Not used. Requests containing this value fail. REFERENCE_ROUTE_UNSPECIFIED = 0; - // Fuel efficient route. Routes labeled with this value are determined to be - // optimized for parameters such as fuel consumption. + // Fuel efficient route. FUEL_EFFICIENT = 1; + + // Route with shorter travel distance. This is an experimental feature. + // + // For `DRIVE` requests, this feature prioritizes shorter distance over + // driving comfort. For example, it may prefer local roads instead of + // highways, take dirt roads, cut through parking lots, etc. This feature + // does not return any maneuvers that Google Maps knows to be illegal. + // + // For `BICYCLE` and `TWO_WHEELER` requests, this feature returns routes + // similar to those returned when you don't specify + // `requested_reference_routes`. + // + // This feature is not compatible with any other travel modes, via + // intermediate waypoints, or `optimize_waypoint_order`; such requests will + // fail. However, you can use it with any `routing_preference`. + SHORTER_DISTANCE = 2; } // Extra computations to perform while completing the request. @@ -166,6 +180,20 @@ message ComputeRoutesRequest { // is meant to be read as-is. This content is for display only. // Do not programmatically parse it. HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; + + // Flyover information for the route(s). The + // `routes.polyline_details.flyover_info` fieldmask must be specified to + // return this information. This data will only currently be populated for + // certain metros in India. This feature is experimental, and the + // SKU/charge is subject to change. + FLYOVER_INFO_ON_POLYLINE = 7; + + // Narrow road information for the route(s). The + // `routes.polyline_details.narrow_road_info` fieldmask must be specified + // to return this information. This data will only currently be populated + // for certain metros in India. This feature is experimental, and the + // SKU/charge is subject to change. + NARROW_ROAD_INFO_ON_POLYLINE = 8; } // Required. Origin waypoint. @@ -262,7 +290,10 @@ message ComputeRoutesRequest { // request in addition to the default route. A reference route is a route with // a different route calculation objective than the default route. For example // a `FUEL_EFFICIENT` reference route calculation takes into account various - // parameters that would generate an optimal fuel efficient route. + // parameters that would generate an optimal fuel efficient route. When using + // this feature, look for + // [`route_labels`][google.maps.routing.v2.Route.route_labels] on the + // resulting routes. repeated ReferenceRoute requested_reference_routes = 14 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto index 2f296145a4af..1b174f2a80bf 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto index 107b78221d3e..9ba4a6fdb1f8 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto index fea0078bc9f9..9d9cd6409aea 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto index 9ad957f77c18..e46d566f0e12 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto index 696569675099..86726fa54925 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto @@ -19,7 +19,6 @@ package google.maps.routing.v2; import "google/maps/routing/v2/location.proto"; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto index d20d78483cb5..bc6cdd4f5946 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto index 821dd023b76c..0efc0d0ef76a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto index 4b9284f8be03..2c6d04a54b73 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.routing.v2; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto index 30b7580be06e..240d096cb2f5 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto @@ -18,7 +18,6 @@ package google.maps.routing.v2; import "google/maps/routing/v2/location.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; option java_multiple_files = true; diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 6c5283710ff8..3a2cb25c7d46 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-solar - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.12.0' +implementation 'com.google.maps:google-maps-solar:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.12.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.13.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index 6120db202d67..f1888695fc79 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.ads-marketingplatform admin - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.2.0' +implementation 'com.google.ads-marketingplatform:admin:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.2.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.3.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 516dde0c0e6d..98248b12a1e2 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.59.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.60.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/README.md b/java-meet/README.md index 5839a86f1ad6..1596a106dbb3 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.20.0' +implementation 'com.google.cloud:google-cloud-meet:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.21.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/README.md b/java-memcache/README.md index a36ccf3fe921..f94825d113a6 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.53.0' +implementation 'com.google.cloud:google-cloud-memcache:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 6a07f030cc40..68221b533e41 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.35.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.35.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.36.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 29a7b6524065..8ff722b69bc0 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.55.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 44233f72cf23..4014223f6253 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.47.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.48.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 83b94577227a..b979981a9c6c 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.54.0 + 3.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.54.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index dee74d83b07f..36477e8a35d0 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -1520,7 +1520,7 @@ public final NotificationChannel createNotificationChannel( * } * }
      * - * @param updateMask The fields to update. + * @param updateMask Optional. The fields to update. * @param notificationChannel Required. A description of the changes to be applied to the * specified notification channel. The description must provide a definition for fields to be * updated; the names of these fields should also be included in the `update_mask`. @@ -1636,9 +1636,8 @@ public final NotificationChannel updateNotificationChannel( * @param name Required. The channel for which to execute the request. The format is: *

      projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] * @param force If true, the notification channel will be deleted regardless of its use in alert - * policies (the policies will be updated to remove the channel). If false, channels that are - * still referenced by an existing alerting policy will fail to be deleted in a delete - * operation. + * policies (the policies will be updated to remove the channel). If false, this operation + * will fail if the notification channel is referenced by existing alerting policies. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteNotificationChannel(NotificationChannelName name, boolean force) { @@ -1680,9 +1679,8 @@ public final void deleteNotificationChannel(NotificationChannelName name, boolea * @param name Required. The channel for which to execute the request. The format is: *

      projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] * @param force If true, the notification channel will be deleted regardless of its use in alert - * policies (the policies will be updated to remove the channel). If false, channels that are - * still referenced by an existing alerting policy will fail to be deleted in a delete - * operation. + * policies (the policies will be updated to remove the channel). If false, this operation + * will fail if the notification channel is referenced by existing alerting policies. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteNotificationChannel(String name, boolean force) { diff --git a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json index b0fa105d507b..98ff7730006c 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json +++ b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json @@ -782,6 +782,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.v3.AlertPolicy$AlertStrategy$NotificationPrompt", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.AlertPolicy$AlertStrategy$NotificationRateLimit", "queryAllDeclaredConstructors": true, diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index f27d99fa0a63..e265b47749d8 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -25,7 +25,7 @@ *

        * A description of the conditions under which some aspect of your system is
        * considered to be "unhealthy" and the ways to notify people or services about
      - * this state. For an overview of alert policies, see
      + * this state. For an overview of alerting policies, see
        * [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/).
        * 
      * @@ -281,7 +281,7 @@ private ConditionCombinerType(int value) { * * *
      -   * An enumeration of possible severity level for an Alert Policy.
      +   * An enumeration of possible severity level for an alerting policy.
          * 
      * * Protobuf enum {@code google.monitoring.v3.AlertPolicy.Severity} @@ -477,7 +477,7 @@ public interface DocumentationOrBuilder * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). *
      * * string content = 1; @@ -493,7 +493,7 @@ public interface DocumentationOrBuilder * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). *
      * * string content = 1; @@ -545,7 +545,7 @@ public interface DocumentationOrBuilder * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. *
      @@ -569,7 +569,7 @@ public interface DocumentationOrBuilder * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -1601,7 +1601,7 @@ public com.google.monitoring.v3.AlertPolicy.Documentation.Link getDefaultInstanc * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -1628,7 +1628,7 @@ public java.lang.String getContent() { * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -1721,7 +1721,7 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -1756,7 +1756,7 @@ public java.lang.String getSubject() { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -2343,7 +2343,7 @@ public Builder mergeFrom( * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -2369,7 +2369,7 @@ public java.lang.String getContent() { * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -2395,7 +2395,7 @@ public com.google.protobuf.ByteString getContentBytes() { * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -2420,7 +2420,7 @@ public Builder setContent(java.lang.String value) { * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -2441,7 +2441,7 @@ public Builder clearContent() { * The content may not exceed 8,192 Unicode characters and may not exceed * more than 10,240 bytes when encoded in UTF-8 format, whichever is * smaller. This text can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * * * string content = 1; @@ -2591,7 +2591,7 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -2625,7 +2625,7 @@ public java.lang.String getSubject() { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -2659,7 +2659,7 @@ public com.google.protobuf.ByteString getSubjectBytes() { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -2692,7 +2692,7 @@ public Builder setSubject(java.lang.String value) { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -2721,7 +2721,7 @@ public Builder clearSubject() { * it is common to define textual fields in databases as VARCHAR(255). * * The contents of the subject line can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * If this field is missing or empty, a default subject line will be * generated. * @@ -13754,7 +13754,7 @@ public interface MonitoringQueryLanguageConditionOrBuilder * * *
      -     * A condition type that allows alert policies to be defined using
      +     * A condition type that allows alerting policies to be defined using
            * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
            * 
      * @@ -14257,7 +14257,7 @@ protected Builder newBuilderForType( * * *
      -       * A condition type that allows alert policies to be defined using
      +       * A condition type that allows alerting policies to be defined using
              * [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
              * 
      * @@ -15460,7 +15460,7 @@ public interface PrometheusQueryLanguageConditionOrBuilder * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -15477,7 +15477,7 @@ public interface PrometheusQueryLanguageConditionOrBuilder * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -15497,7 +15497,7 @@ public interface PrometheusQueryLanguageConditionOrBuilder * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -15514,7 +15514,7 @@ public interface PrometheusQueryLanguageConditionOrBuilder * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -15535,7 +15535,7 @@ java.lang.String getLabelsOrDefault( * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -15645,7 +15645,7 @@ java.lang.String getLabelsOrDefault( * * *
      -     * A condition type that allows alert policies to be defined using
      +     * A condition type that allows alerting policies to be defined using
            * [Prometheus Query Language
            * (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
            *
      @@ -15959,7 +15959,7 @@ public int getLabelsCount() {
              * Label names [must be
              * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
              * Label values can be [templatized by using
      -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
      +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
              * The only available variable names are the names of the labels in the
              * PromQL result, including "__name__" and "value". "labels" may be empty.
              * 
      @@ -15988,7 +15988,7 @@ public java.util.Map getLabels() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -16008,7 +16008,7 @@ public java.util.Map getLabelsMap() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -16035,7 +16035,7 @@ public java.util.Map getLabelsMap() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -16443,7 +16443,7 @@ protected Builder newBuilderForType( * * *
      -       * A condition type that allows alert policies to be defined using
      +       * A condition type that allows alerting policies to be defined using
              * [Prometheus Query Language
              * (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
              *
      @@ -17435,7 +17435,7 @@ public int getLabelsCount() {
                * Label names [must be
                * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
                * Label values can be [templatized by using
      -         * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
      +         * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars).
                * The only available variable names are the names of the labels in the
                * PromQL result, including "__name__" and "value". "labels" may be empty.
                * 
      @@ -17464,7 +17464,7 @@ public java.util.Map getLabels() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -17484,7 +17484,7 @@ public java.util.Map getLabelsMap() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -17511,7 +17511,7 @@ public java.util.Map getLabelsMap() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -17544,7 +17544,7 @@ public Builder clearLabels() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -17573,7 +17573,7 @@ public java.util.Map getMutableLabels() { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -17600,7 +17600,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * Label names [must be * valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). * Label values can be [templatized by using - * variables](https://cloud.google.com/monitoring/alerts/doc-variables). + * variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). * The only available variable names are the names of the labels in the * PromQL result, including "__name__" and "value". "labels" may be empty. * @@ -20733,9 +20733,11 @@ public interface AlertStrategyOrBuilder * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -20749,9 +20751,11 @@ public interface AlertStrategyOrBuilder * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -20766,9 +20770,11 @@ public interface AlertStrategyOrBuilder * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -20782,7 +20788,92 @@ public interface AlertStrategyOrBuilder * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the notificationPrompts. + */ + java.util.List + getNotificationPromptsList(); + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return The count of notificationPrompts. + */ + int getNotificationPromptsCount(); + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the element to return. + * @return The notificationPrompts at the given index. + */ + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt getNotificationPrompts( + int index); + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the enum numeric values on the wire for notificationPrompts. + */ + java.util.List getNotificationPromptsValueList(); + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of notificationPrompts at the given index. + */ + int getNotificationPromptsValue(int index); + + /** + * + * + *
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -20795,7 +20886,7 @@ public interface AlertStrategyOrBuilder * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -20808,7 +20899,7 @@ public interface AlertStrategyOrBuilder * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -20905,6 +20996,7 @@ private AlertStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) } private AlertStrategy() { + notificationPrompts_ = java.util.Collections.emptyList(); notificationChannelStrategy_ = java.util.Collections.emptyList(); } @@ -20929,6 +21021,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder.class); } + /** + * + * + *
      +     * Control when notifications will be sent out.
      +     * 
      + * + * Protobuf enum {@code google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt} + */ + public enum NotificationPrompt implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * No strategy specified. Treated as error.
      +       * 
      + * + * NOTIFICATION_PROMPT_UNSPECIFIED = 0; + */ + NOTIFICATION_PROMPT_UNSPECIFIED(0), + /** + * + * + *
      +       * Notify when an incident is opened.
      +       * 
      + * + * OPENED = 1; + */ + OPENED(1), + /** + * + * + *
      +       * Notify when an incident is closed.
      +       * 
      + * + * CLOSED = 3; + */ + CLOSED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +       * No strategy specified. Treated as error.
      +       * 
      + * + * NOTIFICATION_PROMPT_UNSPECIFIED = 0; + */ + public static final int NOTIFICATION_PROMPT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +       * Notify when an incident is opened.
      +       * 
      + * + * OPENED = 1; + */ + public static final int OPENED_VALUE = 1; + /** + * + * + *
      +       * Notify when an incident is closed.
      +       * 
      + * + * CLOSED = 3; + */ + public static final int CLOSED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationPrompt 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 NotificationPrompt forNumber(int value) { + switch (value) { + case 0: + return NOTIFICATION_PROMPT_UNSPECIFIED; + case 1: + return OPENED; + case 3: + return CLOSED; + 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 NotificationPrompt findValueByNumber(int number) { + return NotificationPrompt.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.monitoring.v3.AlertPolicy.AlertStrategy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final NotificationPrompt[] VALUES = values(); + + public static NotificationPrompt 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 NotificationPrompt(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt) + } + public interface NotificationRateLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit) @@ -20973,7 +21227,7 @@ public interface NotificationRateLimitOrBuilder * * *
      -     * Control over the rate of notifications sent to this alert policy's
      +     * Control over the rate of notifications sent to this alerting policy's
            * notification channels.
            * 
      * @@ -21239,7 +21493,7 @@ protected Builder newBuilderForType( * * *
      -       * Control over the rate of notifications sent to this alert policy's
      +       * Control over the rate of notifications sent to this alerting policy's
              * notification channels.
              * 
      * @@ -22946,9 +23200,11 @@ public com.google.protobuf.Parser getParserForType( * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -22965,9 +23221,11 @@ public boolean hasNotificationRateLimit() { * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -22988,9 +23246,11 @@ public boolean hasNotificationRateLimit() { * * *
      -     * Required for alert policies with a `LogMatch` condition.
      +     * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +     * condition.
            *
      -     * This limit is not implemented for alert policies that are not log-based.
      +     * This limit is not implemented for alerting policies that do not have
      +     * a LogMatch condition.
            * 
      * * @@ -23006,13 +23266,140 @@ public boolean hasNotificationRateLimit() { : notificationRateLimit_; } + public static final int NOTIFICATION_PROMPTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List notificationPrompts_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt> + notificationPrompts_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt>() { + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt convert( + java.lang.Integer from) { + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt result = + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt.forNumber( + from); + return result == null + ? com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt + .UNRECOGNIZED + : result; + } + }; + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the notificationPrompts. + */ + @java.lang.Override + public java.util.List + getNotificationPromptsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt>( + notificationPrompts_, notificationPrompts_converter_); + } + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return The count of notificationPrompts. + */ + @java.lang.Override + public int getNotificationPromptsCount() { + return notificationPrompts_.size(); + } + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the element to return. + * @return The notificationPrompts at the given index. + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt + getNotificationPrompts(int index) { + return notificationPrompts_converter_.convert(notificationPrompts_.get(index)); + } + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the enum numeric values on the wire for notificationPrompts. + */ + @java.lang.Override + public java.util.List getNotificationPromptsValueList() { + return notificationPrompts_; + } + /** + * + * + *
      +     * For log-based alert policies, the notification prompts is always
      +     * [OPENED]. For non log-based alert policies, the notification prompts can
      +     * be [OPENED] or [OPENED, CLOSED].
      +     * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of notificationPrompts at the given index. + */ + @java.lang.Override + public int getNotificationPromptsValue(int index) { + return notificationPrompts_.get(index); + } + + private int notificationPromptsMemoizedSerializedSize; + public static final int AUTO_CLOSE_FIELD_NUMBER = 3; private com.google.protobuf.Duration autoClose_; /** * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -23028,7 +23415,7 @@ public boolean hasAutoClose() { * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -23044,7 +23431,7 @@ public com.google.protobuf.Duration getAutoClose() { * * *
      -     * If an alert policy that was active has no data for this long, any open
      +     * If an alerting policy that was active has no data for this long, any open
            * incidents will close
            * 
      * @@ -23159,9 +23546,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNotificationRateLimit()); } + if (getNotificationPromptsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(notificationPromptsMemoizedSerializedSize); + } + for (int i = 0; i < notificationPrompts_.size(); i++) { + output.writeEnumNoTag(notificationPrompts_.get(i)); + } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getAutoClose()); } @@ -23181,6 +23576,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationRateLimit()); } + { + int dataSize = 0; + for (int i = 0; i < notificationPrompts_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + notificationPrompts_.get(i)); + } + size += dataSize; + if (!getNotificationPromptsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + notificationPromptsMemoizedSerializedSize = dataSize; + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutoClose()); } @@ -23209,6 +23618,7 @@ public boolean equals(final java.lang.Object obj) { if (hasNotificationRateLimit()) { if (!getNotificationRateLimit().equals(other.getNotificationRateLimit())) return false; } + if (!notificationPrompts_.equals(other.notificationPrompts_)) return false; if (hasAutoClose() != other.hasAutoClose()) return false; if (hasAutoClose()) { if (!getAutoClose().equals(other.getAutoClose())) return false; @@ -23230,6 +23640,10 @@ public int hashCode() { hash = (37 * hash) + NOTIFICATION_RATE_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getNotificationRateLimit().hashCode(); } + if (getNotificationPromptsCount() > 0) { + hash = (37 * hash) + NOTIFICATION_PROMPTS_FIELD_NUMBER; + hash = (53 * hash) + notificationPrompts_.hashCode(); + } if (hasAutoClose()) { hash = (37 * hash) + AUTO_CLOSE_FIELD_NUMBER; hash = (53 * hash) + getAutoClose().hashCode(); @@ -23396,6 +23810,8 @@ public Builder clear() { notificationRateLimitBuilder_.dispose(); notificationRateLimitBuilder_ = null; } + notificationPrompts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); autoClose_ = null; if (autoCloseBuilder_ != null) { autoCloseBuilder_.dispose(); @@ -23407,7 +23823,7 @@ public Builder clear() { notificationChannelStrategy_ = null; notificationChannelStrategyBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -23445,11 +23861,16 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy buildPartial() { private void buildPartialRepeatedFields( com.google.monitoring.v3.AlertPolicy.AlertStrategy result) { + if (((bitField0_ & 0x00000002) != 0)) { + notificationPrompts_ = java.util.Collections.unmodifiableList(notificationPrompts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notificationPrompts_ = notificationPrompts_; if (notificationChannelStrategyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { notificationChannelStrategy_ = java.util.Collections.unmodifiableList(notificationChannelStrategy_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.notificationChannelStrategy_ = notificationChannelStrategy_; } else { @@ -23467,7 +23888,7 @@ private void buildPartial0(com.google.monitoring.v3.AlertPolicy.AlertStrategy re : notificationRateLimitBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.autoClose_ = autoCloseBuilder_ == null ? autoClose_ : autoCloseBuilder_.build(); to_bitField0_ |= 0x00000002; } @@ -23525,6 +23946,16 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy othe if (other.hasNotificationRateLimit()) { mergeNotificationRateLimit(other.getNotificationRateLimit()); } + if (!other.notificationPrompts_.isEmpty()) { + if (notificationPrompts_.isEmpty()) { + notificationPrompts_ = other.notificationPrompts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotificationPromptsIsMutable(); + notificationPrompts_.addAll(other.notificationPrompts_); + } + onChanged(); + } if (other.hasAutoClose()) { mergeAutoClose(other.getAutoClose()); } @@ -23532,7 +23963,7 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy othe if (!other.notificationChannelStrategy_.isEmpty()) { if (notificationChannelStrategy_.isEmpty()) { notificationChannelStrategy_ = other.notificationChannelStrategy_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureNotificationChannelStrategyIsMutable(); notificationChannelStrategy_.addAll(other.notificationChannelStrategy_); @@ -23545,7 +23976,7 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.AlertStrategy othe notificationChannelStrategyBuilder_.dispose(); notificationChannelStrategyBuilder_ = null; notificationChannelStrategy_ = other.notificationChannelStrategy_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); notificationChannelStrategyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNotificationChannelStrategyFieldBuilder() @@ -23589,10 +24020,29 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureNotificationPromptsIsMutable(); + notificationPrompts_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureNotificationPromptsIsMutable(); + notificationPrompts_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 case 26: { input.readMessage(getAutoCloseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -23640,9 +24090,11 @@ public Builder mergeFrom( * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23658,9 +24110,11 @@ public boolean hasNotificationRateLimit() { * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23684,9 +24138,11 @@ public boolean hasNotificationRateLimit() { * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23711,9 +24167,11 @@ public Builder setNotificationRateLimit( * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23736,9 +24194,11 @@ public Builder setNotificationRateLimit( * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23770,9 +24230,11 @@ public Builder mergeNotificationRateLimit( * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23793,9 +24255,11 @@ public Builder clearNotificationRateLimit() { * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23812,9 +24276,11 @@ public Builder clearNotificationRateLimit() { * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23836,9 +24302,11 @@ public Builder clearNotificationRateLimit() { * * *
      -       * Required for alert policies with a `LogMatch` condition.
      +       * Required for log-based alerting policies, i.e. policies with a `LogMatch`
      +       * condition.
              *
      -       * This limit is not implemented for alert policies that are not log-based.
      +       * This limit is not implemented for alerting policies that do not have
      +       * a LogMatch condition.
              * 
      * * @@ -23863,6 +24331,283 @@ public Builder clearNotificationRateLimit() { return notificationRateLimitBuilder_; } + private java.util.List notificationPrompts_ = + java.util.Collections.emptyList(); + + private void ensureNotificationPromptsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notificationPrompts_ = new java.util.ArrayList(notificationPrompts_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the notificationPrompts. + */ + public java.util.List + getNotificationPromptsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt>( + notificationPrompts_, notificationPrompts_converter_); + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return The count of notificationPrompts. + */ + public int getNotificationPromptsCount() { + return notificationPrompts_.size(); + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the element to return. + * @return The notificationPrompts at the given index. + */ + public com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt + getNotificationPrompts(int index) { + return notificationPrompts_converter_.convert(notificationPrompts_.get(index)); + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index to set the value at. + * @param value The notificationPrompts to set. + * @return This builder for chaining. + */ + public Builder setNotificationPrompts( + int index, com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationPromptsIsMutable(); + notificationPrompts_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param value The notificationPrompts to add. + * @return This builder for chaining. + */ + public Builder addNotificationPrompts( + com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationPromptsIsMutable(); + notificationPrompts_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param values The notificationPrompts to add. + * @return This builder for chaining. + */ + public Builder addAllNotificationPrompts( + java.lang.Iterable< + ? extends com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt> + values) { + ensureNotificationPromptsIsMutable(); + for (com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt value : values) { + notificationPrompts_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearNotificationPrompts() { + notificationPrompts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @return A list containing the enum numeric values on the wire for notificationPrompts. + */ + public java.util.List getNotificationPromptsValueList() { + return java.util.Collections.unmodifiableList(notificationPrompts_); + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of notificationPrompts at the given index. + */ + public int getNotificationPromptsValue(int index) { + return notificationPrompts_.get(index); + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for notificationPrompts to set. + * @return This builder for chaining. + */ + public Builder setNotificationPromptsValue(int index, int value) { + ensureNotificationPromptsIsMutable(); + notificationPrompts_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param value The enum numeric value on the wire for notificationPrompts to add. + * @return This builder for chaining. + */ + public Builder addNotificationPromptsValue(int value) { + ensureNotificationPromptsIsMutable(); + notificationPrompts_.add(value); + onChanged(); + return this; + } + /** + * + * + *
      +       * For log-based alert policies, the notification prompts is always
      +       * [OPENED]. For non log-based alert policies, the notification prompts can
      +       * be [OPENED] or [OPENED, CLOSED].
      +       * 
      + * + * + * repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2; + * + * + * @param values The enum numeric values on the wire for notificationPrompts to add. + * @return This builder for chaining. + */ + public Builder addAllNotificationPromptsValue(java.lang.Iterable values) { + ensureNotificationPromptsIsMutable(); + for (int value : values) { + notificationPrompts_.add(value); + } + onChanged(); + return this; + } + private com.google.protobuf.Duration autoClose_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -23873,7 +24618,7 @@ public Builder clearNotificationRateLimit() { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -23882,13 +24627,13 @@ public Builder clearNotificationRateLimit() { * @return Whether the autoClose field is set. */ public boolean hasAutoClose() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -23909,7 +24654,7 @@ public com.google.protobuf.Duration getAutoClose() { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -23924,7 +24669,7 @@ public Builder setAutoClose(com.google.protobuf.Duration value) { } else { autoCloseBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -23932,7 +24677,7 @@ public Builder setAutoClose(com.google.protobuf.Duration value) { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -23944,7 +24689,7 @@ public Builder setAutoClose(com.google.protobuf.Duration.Builder builderForValue } else { autoCloseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -23952,7 +24697,7 @@ public Builder setAutoClose(com.google.protobuf.Duration.Builder builderForValue * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -23960,7 +24705,7 @@ public Builder setAutoClose(com.google.protobuf.Duration.Builder builderForValue */ public Builder mergeAutoClose(com.google.protobuf.Duration value) { if (autoCloseBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && autoClose_ != null && autoClose_ != com.google.protobuf.Duration.getDefaultInstance()) { getAutoCloseBuilder().mergeFrom(value); @@ -23971,7 +24716,7 @@ public Builder mergeAutoClose(com.google.protobuf.Duration value) { autoCloseBuilder_.mergeFrom(value); } if (autoClose_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -23980,14 +24725,14 @@ public Builder mergeAutoClose(com.google.protobuf.Duration value) { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * * .google.protobuf.Duration auto_close = 3; */ public Builder clearAutoClose() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); autoClose_ = null; if (autoCloseBuilder_ != null) { autoCloseBuilder_.dispose(); @@ -24000,14 +24745,14 @@ public Builder clearAutoClose() { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * * .google.protobuf.Duration auto_close = 3; */ public com.google.protobuf.Duration.Builder getAutoCloseBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getAutoCloseFieldBuilder().getBuilder(); } @@ -24015,7 +24760,7 @@ public com.google.protobuf.Duration.Builder getAutoCloseBuilder() { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -24034,7 +24779,7 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() { * * *
      -       * If an alert policy that was active has no data for this long, any open
      +       * If an alerting policy that was active has no data for this long, any open
              * incidents will close
              * 
      * @@ -24062,12 +24807,12 @@ public com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder() { notificationChannelStrategy_ = java.util.Collections.emptyList(); private void ensureNotificationChannelStrategyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { notificationChannelStrategy_ = new java.util.ArrayList< com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy>( notificationChannelStrategy_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -24325,7 +25070,7 @@ public Builder addAllNotificationChannelStrategy( public Builder clearNotificationChannelStrategy() { if (notificationChannelStrategyBuilder_ == null) { notificationChannelStrategy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { notificationChannelStrategyBuilder_.clear(); @@ -24480,7 +25225,7 @@ public Builder removeNotificationChannelStrategy(int index) { com.google.monitoring.v3.AlertPolicy.AlertStrategy .NotificationChannelStrategyOrBuilder>( notificationChannelStrategy_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); notificationChannelStrategy_ = null; @@ -24561,8 +25306,8 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForT * * *
      -   * Required if the policy exists. The resource name for this policy. The
      -   * format is:
      +   * Identifier. Required if the policy exists. The resource name for this
      +   * policy. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
          *
      @@ -24573,7 +25318,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getDefaultInstanceForT
          * part of the request.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -24593,8 +25338,8 @@ public java.lang.String getName() { * * *
      -   * Required if the policy exists. The resource name for this policy. The
      -   * format is:
      +   * Identifier. Required if the policy exists. The resource name for this
      +   * policy. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
          *
      @@ -24605,7 +25350,7 @@ public java.lang.String getName() {
          * part of the request.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -25120,9 +25865,9 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() { * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -25137,9 +25882,9 @@ public boolean hasValidity() { * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -25154,9 +25899,9 @@ public com.google.rpc.Status getValidity() { * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -25378,7 +26123,7 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -25393,7 +26138,7 @@ public boolean hasAlertStrategy() { * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -25410,7 +26155,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -25428,9 +26173,9 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat * * *
      -   * Optional. The severity of an alert policy indicates how important incidents
      -   * generated by that policy are. The severity level will be displayed on the
      -   * Incident detail page and in notifications.
      +   * Optional. The severity of an alerting policy indicates how important
      +   * incidents generated by that policy are. The severity level will be
      +   * displayed on the Incident detail page and in notifications.
          * 
      * * @@ -25447,9 +26192,9 @@ public int getSeverityValue() { * * *
      -   * Optional. The severity of an alert policy indicates how important incidents
      -   * generated by that policy are. The severity level will be displayed on the
      -   * Incident detail page and in notifications.
      +   * Optional. The severity of an alerting policy indicates how important
      +   * incidents generated by that policy are. The severity level will be
      +   * displayed on the Incident detail page and in notifications.
          * 
      * * @@ -25790,7 +26535,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
          * A description of the conditions under which some aspect of your system is
          * considered to be "unhealthy" and the ways to notify people or services about
      -   * this state. For an overview of alert policies, see
      +   * this state. For an overview of alerting policies, see
          * [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/).
          * 
      * @@ -26266,8 +27011,8 @@ public Builder mergeFrom( * * *
      -     * Required if the policy exists. The resource name for this policy. The
      -     * format is:
      +     * Identifier. Required if the policy exists. The resource name for this
      +     * policy. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
            *
      @@ -26278,7 +27023,7 @@ public Builder mergeFrom(
            * part of the request.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -26297,8 +27042,8 @@ public java.lang.String getName() { * * *
      -     * Required if the policy exists. The resource name for this policy. The
      -     * format is:
      +     * Identifier. Required if the policy exists. The resource name for this
      +     * policy. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
            *
      @@ -26309,7 +27054,7 @@ public java.lang.String getName() {
            * part of the request.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -26328,8 +27073,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required if the policy exists. The resource name for this policy. The
      -     * format is:
      +     * Identifier. Required if the policy exists. The resource name for this
      +     * policy. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
            *
      @@ -26340,7 +27085,7 @@ public com.google.protobuf.ByteString getNameBytes() {
            * part of the request.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -26358,8 +27103,8 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required if the policy exists. The resource name for this policy. The
      -     * format is:
      +     * Identifier. Required if the policy exists. The resource name for this
      +     * policy. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
            *
      @@ -26370,7 +27115,7 @@ public Builder setName(java.lang.String value) {
            * part of the request.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -26384,8 +27129,8 @@ public Builder clearName() { * * *
      -     * Required if the policy exists. The resource name for this policy. The
      -     * format is:
      +     * Identifier. Required if the policy exists. The resource name for this
      +     * policy. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
            *
      @@ -26396,7 +27141,7 @@ public Builder clearName() {
            * part of the request.
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -27853,9 +28598,9 @@ public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27869,9 +28614,9 @@ public boolean hasValidity() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27889,9 +28634,9 @@ public com.google.rpc.Status getValidity() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27913,9 +28658,9 @@ public Builder setValidity(com.google.rpc.Status value) { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27934,9 +28679,9 @@ public Builder setValidity(com.google.rpc.Status.Builder builderForValue) { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27963,9 +28708,9 @@ public Builder mergeValidity(com.google.rpc.Status value) { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -27984,9 +28729,9 @@ public Builder clearValidity() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -28000,9 +28745,9 @@ public com.google.rpc.Status.Builder getValidityBuilder() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -28018,9 +28763,9 @@ public com.google.rpc.StatusOrBuilder getValidityOrBuilder() { * * *
      -     * Read-only description of how the alert policy is invalid. This field is
      -     * only set when the alert policy is invalid. An invalid alert policy will not
      -     * generate incidents.
      +     * Read-only description of how the alerting policy is invalid. This field is
      +     * only set when the alerting policy is invalid. An invalid alerting policy
      +     * will not generate incidents.
            * 
      * * .google.rpc.Status validity = 18; @@ -28694,7 +29439,7 @@ public com.google.monitoring.v3.MutationRecordOrBuilder getMutationRecordOrBuild * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28708,7 +29453,7 @@ public boolean hasAlertStrategy() { * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28728,7 +29473,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy getAlertStrategy() { * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28750,7 +29495,7 @@ public Builder setAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStrate * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28770,7 +29515,7 @@ public Builder setAlertStrategy( * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28798,7 +29543,7 @@ public Builder mergeAlertStrategy(com.google.monitoring.v3.AlertPolicy.AlertStra * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28817,7 +29562,7 @@ public Builder clearAlertStrategy() { * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28831,7 +29576,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategy.Builder getAlertStrate * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28849,7 +29594,7 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat * * *
      -     * Control over how this alert policy's notification channels are notified.
      +     * Control over how this alerting policy's notification channels are notified.
            * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -28876,9 +29621,9 @@ public com.google.monitoring.v3.AlertPolicy.AlertStrategyOrBuilder getAlertStrat * * *
      -     * Optional. The severity of an alert policy indicates how important incidents
      -     * generated by that policy are. The severity level will be displayed on the
      -     * Incident detail page and in notifications.
      +     * Optional. The severity of an alerting policy indicates how important
      +     * incidents generated by that policy are. The severity level will be
      +     * displayed on the Incident detail page and in notifications.
            * 
      * * @@ -28895,9 +29640,9 @@ public int getSeverityValue() { * * *
      -     * Optional. The severity of an alert policy indicates how important incidents
      -     * generated by that policy are. The severity level will be displayed on the
      -     * Incident detail page and in notifications.
      +     * Optional. The severity of an alerting policy indicates how important
      +     * incidents generated by that policy are. The severity level will be
      +     * displayed on the Incident detail page and in notifications.
            * 
      * * @@ -28917,9 +29662,9 @@ public Builder setSeverityValue(int value) { * * *
      -     * Optional. The severity of an alert policy indicates how important incidents
      -     * generated by that policy are. The severity level will be displayed on the
      -     * Incident detail page and in notifications.
      +     * Optional. The severity of an alerting policy indicates how important
      +     * incidents generated by that policy are. The severity level will be
      +     * displayed on the Incident detail page and in notifications.
            * 
      * * @@ -28938,9 +29683,9 @@ public com.google.monitoring.v3.AlertPolicy.Severity getSeverity() { * * *
      -     * Optional. The severity of an alert policy indicates how important incidents
      -     * generated by that policy are. The severity level will be displayed on the
      -     * Incident detail page and in notifications.
      +     * Optional. The severity of an alerting policy indicates how important
      +     * incidents generated by that policy are. The severity level will be
      +     * displayed on the Incident detail page and in notifications.
            * 
      * * @@ -28963,9 +29708,9 @@ public Builder setSeverity(com.google.monitoring.v3.AlertPolicy.Severity value) * * *
      -     * Optional. The severity of an alert policy indicates how important incidents
      -     * generated by that policy are. The severity level will be displayed on the
      -     * Incident detail page and in notifications.
      +     * Optional. The severity of an alerting policy indicates how important
      +     * incidents generated by that policy are. The severity level will be
      +     * displayed on the Incident detail page and in notifications.
            * 
      * * diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java index 29ca208fe0f1..3a227901069c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java @@ -28,8 +28,8 @@ public interface AlertPolicyOrBuilder * * *
      -   * Required if the policy exists. The resource name for this policy. The
      -   * format is:
      +   * Identifier. Required if the policy exists. The resource name for this
      +   * policy. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
          *
      @@ -40,7 +40,7 @@ public interface AlertPolicyOrBuilder
          * part of the request.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -49,8 +49,8 @@ public interface AlertPolicyOrBuilder * * *
      -   * Required if the policy exists. The resource name for this policy. The
      -   * format is:
      +   * Identifier. Required if the policy exists. The resource name for this
      +   * policy. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
          *
      @@ -61,7 +61,7 @@ public interface AlertPolicyOrBuilder
          * part of the request.
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -449,9 +449,9 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -463,9 +463,9 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -477,9 +477,9 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Read-only description of how the alert policy is invalid. This field is
      -   * only set when the alert policy is invalid. An invalid alert policy will not
      -   * generate incidents.
      +   * Read-only description of how the alerting policy is invalid. This field is
      +   * only set when the alerting policy is invalid. An invalid alerting policy
      +   * will not generate incidents.
          * 
      * * .google.rpc.Status validity = 18; @@ -653,7 +653,7 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -665,7 +665,7 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -677,7 +677,7 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Control over how this alert policy's notification channels are notified.
      +   * Control over how this alerting policy's notification channels are notified.
          * 
      * * .google.monitoring.v3.AlertPolicy.AlertStrategy alert_strategy = 21; @@ -688,9 +688,9 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Optional. The severity of an alert policy indicates how important incidents
      -   * generated by that policy are. The severity level will be displayed on the
      -   * Incident detail page and in notifications.
      +   * Optional. The severity of an alerting policy indicates how important
      +   * incidents generated by that policy are. The severity level will be
      +   * displayed on the Incident detail page and in notifications.
          * 
      * * @@ -704,9 +704,9 @@ java.lang.String getUserLabelsOrDefault( * * *
      -   * Optional. The severity of an alert policy indicates how important incidents
      -   * generated by that policy are. The severity level will be displayed on the
      -   * Incident detail page and in notifications.
      +   * Optional. The severity of an alerting policy indicates how important
      +   * incidents generated by that policy are. The severity level will be
      +   * displayed on the Incident detail page and in notifications.
          * 
      * * diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java index fa8b54186e2b..26df48fdeefd 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java @@ -112,127 +112,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "monitoring/v3/mutation_record.proto\032\036goo" + "gle/protobuf/duration.proto\032\036google/prot" + "obuf/wrappers.proto\032\027google/rpc/status.p" - + "roto\"\214$\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" - + "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" - + "/.google.monitoring.v3.AlertPolicy.Docum" - + "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" - + "onitoring.v3.AlertPolicy.UserLabelsEntry" - + "\022?\n\nconditions\030\014 \003(\0132+.google.monitoring" - + ".v3.AlertPolicy.Condition\022I\n\010combiner\030\006 " - + "\001(\01627.google.monitoring.v3.AlertPolicy.C" - + "onditionCombinerType\022+\n\007enabled\030\021 \001(\0132\032." - + "google.protobuf.BoolValue\022$\n\010validity\030\022 " - + "\001(\0132\022.google.rpc.Status\022\035\n\025notification_" - + "channels\030\016 \003(\t\022=\n\017creation_record\030\n \001(\0132" - + "$.google.monitoring.v3.MutationRecord\022=\n" - + "\017mutation_record\030\013 \001(\0132$.google.monitori" - + "ng.v3.MutationRecord\022G\n\016alert_strategy\030\025" + + "roto\"\306%\n\013AlertPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\024\n\014display_name\030\002 \001(\t\022F\n\rdocumentation\030\r" + " \001(\0132/.google.monitoring.v3.AlertPolicy." - + "AlertStrategy\022A\n\010severity\030\026 \001(\0162*.google" - + ".monitoring.v3.AlertPolicy.SeverityB\003\340A\001" - + "\032\276\001\n\rDocumentation\022\017\n\007content\030\001 \001(\t\022\021\n\tm" - + "ime_type\030\002 \001(\t\022\024\n\007subject\030\003 \001(\tB\003\340A\001\022H\n\005" - + "links\030\004 \003(\01324.google.monitoring.v3.Alert" - + "Policy.Documentation.LinkB\003\340A\001\032)\n\004Link\022\024" - + "\n\014display_name\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\032\367\025\n\tCo" - + "ndition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 " - + "\001(\t\022Z\n\023condition_threshold\030\001 \001(\0132;.googl" - + "e.monitoring.v3.AlertPolicy.Condition.Me" - + "tricThresholdH\000\022U\n\020condition_absent\030\002 \001(" - + "\01329.google.monitoring.v3.AlertPolicy.Con" - + "dition.MetricAbsenceH\000\022U\n\025condition_matc" - + "hed_log\030\024 \001(\01324.google.monitoring.v3.Ale" - + "rtPolicy.Condition.LogMatchH\000\022{\n#conditi" - + "on_monitoring_query_language\030\023 \001(\0132L.goo" - + "gle.monitoring.v3.AlertPolicy.Condition." - + "MonitoringQueryLanguageConditionH\000\022{\n#co" - + "ndition_prometheus_query_language\030\025 \001(\0132" + + "Documentation\022F\n\013user_labels\030\020 \003(\01321.goo" + + "gle.monitoring.v3.AlertPolicy.UserLabels" + + "Entry\022?\n\nconditions\030\014 \003(\0132+.google.monit" + + "oring.v3.AlertPolicy.Condition\022I\n\010combin" + + "er\030\006 \001(\01627.google.monitoring.v3.AlertPol" + + "icy.ConditionCombinerType\022+\n\007enabled\030\021 \001" + + "(\0132\032.google.protobuf.BoolValue\022$\n\010validi" + + "ty\030\022 \001(\0132\022.google.rpc.Status\022\035\n\025notifica" + + "tion_channels\030\016 \003(\t\022=\n\017creation_record\030\n" + + " \001(\0132$.google.monitoring.v3.MutationReco" + + "rd\022=\n\017mutation_record\030\013 \001(\0132$.google.mon" + + "itoring.v3.MutationRecord\022G\n\016alert_strat" + + "egy\030\025 \001(\0132/.google.monitoring.v3.AlertPo" + + "licy.AlertStrategy\022A\n\010severity\030\026 \001(\0162*.g" + + "oogle.monitoring.v3.AlertPolicy.Severity" + + "B\003\340A\001\032\276\001\n\rDocumentation\022\017\n\007content\030\001 \001(\t" + + "\022\021\n\tmime_type\030\002 \001(\t\022\024\n\007subject\030\003 \001(\tB\003\340A" + + "\001\022H\n\005links\030\004 \003(\01324.google.monitoring.v3." + + "AlertPolicy.Documentation.LinkB\003\340A\001\032)\n\004L" + + "ink\022\024\n\014display_name\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\032\367" + + "\025\n\tCondition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_na" + + "me\030\006 \001(\t\022Z\n\023condition_threshold\030\001 \001(\0132;." + + "google.monitoring.v3.AlertPolicy.Conditi" + + "on.MetricThresholdH\000\022U\n\020condition_absent" + + "\030\002 \001(\01329.google.monitoring.v3.AlertPolic" + + "y.Condition.MetricAbsenceH\000\022U\n\025condition" + + "_matched_log\030\024 \001(\01324.google.monitoring.v" + + "3.AlertPolicy.Condition.LogMatchH\000\022{\n#co" + + "ndition_monitoring_query_language\030\023 \001(\0132" + "L.google.monitoring.v3.AlertPolicy.Condi" - + "tion.PrometheusQueryLanguageConditionH\000\032" - + "5\n\007Trigger\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002" - + " \001(\001H\000B\006\n\004type\032\236\005\n\017MetricThreshold\022\023\n\006fi" - + "lter\030\002 \001(\tB\003\340A\002\0227\n\014aggregations\030\010 \003(\0132!." - + "google.monitoring.v3.Aggregation\022\032\n\022deno" - + "minator_filter\030\t \001(\t\022C\n\030denominator_aggr" - + "egations\030\n \003(\0132!.google.monitoring.v3.Ag" - + "gregation\022e\n\020forecast_options\030\014 \001(\0132K.go" - + "ogle.monitoring.v3.AlertPolicy.Condition" - + ".MetricThreshold.ForecastOptions\0228\n\ncomp" - + "arison\030\004 \001(\0162$.google.monitoring.v3.Comp" - + "arisonType\022\027\n\017threshold_value\030\005 \001(\001\022+\n\010d" - + "uration\030\006 \001(\0132\031.google.protobuf.Duration" - + "\022D\n\007trigger\030\007 \001(\01323.google.monitoring.v3" - + ".AlertPolicy.Condition.Trigger\022b\n\027evalua" - + "tion_missing_data\030\013 \001(\0162A.google.monitor" - + "ing.v3.AlertPolicy.Condition.EvaluationM" - + "issingData\032K\n\017ForecastOptions\0228\n\020forecas" - + "t_horizon\030\001 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\002\032\320\001\n\rMetricAbsence\022\023\n\006filter\030\001 \001(" - + "\tB\003\340A\002\0227\n\014aggregations\030\005 \003(\0132!.google.mo" - + "nitoring.v3.Aggregation\022+\n\010duration\030\002 \001(" - + "\0132\031.google.protobuf.Duration\022D\n\007trigger\030" - + "\003 \001(\01323.google.monitoring.v3.AlertPolicy" - + ".Condition.Trigger\032\274\001\n\010LogMatch\022\023\n\006filte" - + "r\030\001 \001(\tB\003\340A\002\022c\n\020label_extractors\030\002 \003(\0132I" - + ".google.monitoring.v3.AlertPolicy.Condit" - + "ion.LogMatch.LabelExtractorsEntry\0326\n\024Lab" - + "elExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\032\210\002\n MonitoringQueryLanguageCon" - + "dition\022\r\n\005query\030\001 \001(\t\022+\n\010duration\030\002 \001(\0132" - + "\031.google.protobuf.Duration\022D\n\007trigger\030\003 " - + "\001(\01323.google.monitoring.v3.AlertPolicy.C" - + "ondition.Trigger\022b\n\027evaluation_missing_d" - + "ata\030\004 \001(\0162A.google.monitoring.v3.AlertPo" - + "licy.Condition.EvaluationMissingData\032\365\002\n" - + " PrometheusQueryLanguageCondition\022\022\n\005que" - + "ry\030\001 \001(\tB\003\340A\002\0220\n\010duration\030\002 \001(\0132\031.google" - + ".protobuf.DurationB\003\340A\001\022;\n\023evaluation_in" - + "terval\030\003 \001(\0132\031.google.protobuf.DurationB" - + "\003\340A\001\022m\n\006labels\030\004 \003(\0132X.google.monitoring" - + ".v3.AlertPolicy.Condition.PrometheusQuer" - + "yLanguageCondition.LabelsEntryB\003\340A\001\022\027\n\nr" - + "ule_group\030\005 \001(\tB\003\340A\001\022\027\n\nalert_rule\030\006 \001(\t" - + "B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\255\001\n\025EvaluationMissingData\022\'" - + "\n#EVALUATION_MISSING_DATA_UNSPECIFIED\020\000\022" - + "$\n EVALUATION_MISSING_DATA_INACTIVE\020\001\022\"\n" - + "\036EVALUATION_MISSING_DATA_ACTIVE\020\002\022!\n\035EVA" - + "LUATION_MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002\n.mon" - + "itoring.googleapis.com/AlertPolicyCondit" - + "ion\022Fprojects/{project}/alertPolicies/{a" - + "lert_policy}/conditions/{condition}\022Porg" - + "anizations/{organization}/alertPolicies/" - + "{alert_policy}/conditions/{condition}\022Df" - + "olders/{folder}/alertPolicies/{alert_pol" - + "icy}/conditions/{condition}\022\001*B\013\n\tcondit" - + "ion\032\327\003\n\rAlertStrategy\022f\n\027notification_ra" - + "te_limit\030\001 \001(\0132E.google.monitoring.v3.Al" - + "ertPolicy.AlertStrategy.NotificationRate" - + "Limit\022-\n\nauto_close\030\003 \001(\0132\031.google.proto" - + "buf.Duration\022r\n\035notification_channel_str" - + "ategy\030\004 \003(\0132K.google.monitoring.v3.Alert" - + "Policy.AlertStrategy.NotificationChannel" - + "Strategy\032B\n\025NotificationRateLimit\022)\n\006per" - + "iod\030\001 \001(\0132\031.google.protobuf.Duration\032w\n\033" - + "NotificationChannelStrategy\022\"\n\032notificat" - + "ion_channel_names\030\001 \003(\t\0224\n\021renotify_inte" - + "rval\030\002 \001(\0132\031.google.protobuf.Duration\0321\n" - + "\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"a\n\025ConditionCombinerType\022\027\n\023COM" - + "BINE_UNSPECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032A" - + "ND_WITH_MATCHING_RESOURCE\020\003\"J\n\010Severity\022" - + "\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022" - + "\t\n\005ERROR\020\002\022\013\n\007WARNING\020\003:\311\001\352A\305\001\n%monitori" - + "ng.googleapis.com/AlertPolicy\022/projects/" - + "{project}/alertPolicies/{alert_policy}\0229" - + "organizations/{organization}/alertPolici" - + "es/{alert_policy}\022-folders/{folder}/aler" - + "tPolicies/{alert_policy}\022\001*B\305\001\n\030com.goog" - + "le.monitoring.v3B\nAlertProtoP\001ZAcloud.go" - + "ogle.com/go/monitoring/apiv3/v2/monitori" - + "ngpb;monitoringpb\252\002\032Google.Cloud.Monitor" - + "ing.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Go" - + "ogle::Cloud::Monitoring::V3b\006proto3" + + "tion.MonitoringQueryLanguageConditionH\000\022" + + "{\n#condition_prometheus_query_language\030\025" + + " \001(\0132L.google.monitoring.v3.AlertPolicy." + + "Condition.PrometheusQueryLanguageConditi" + + "onH\000\0325\n\007Trigger\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007perc" + + "ent\030\002 \001(\001H\000B\006\n\004type\032\236\005\n\017MetricThreshold\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\002\0227\n\014aggregations\030\010 \003" + + "(\0132!.google.monitoring.v3.Aggregation\022\032\n" + + "\022denominator_filter\030\t \001(\t\022C\n\030denominator" + + "_aggregations\030\n \003(\0132!.google.monitoring." + + "v3.Aggregation\022e\n\020forecast_options\030\014 \001(\013" + + "2K.google.monitoring.v3.AlertPolicy.Cond" + + "ition.MetricThreshold.ForecastOptions\0228\n" + + "\ncomparison\030\004 \001(\0162$.google.monitoring.v3" + + ".ComparisonType\022\027\n\017threshold_value\030\005 \001(\001" + + "\022+\n\010duration\030\006 \001(\0132\031.google.protobuf.Dur" + + "ation\022D\n\007trigger\030\007 \001(\01323.google.monitori" + + "ng.v3.AlertPolicy.Condition.Trigger\022b\n\027e" + + "valuation_missing_data\030\013 \001(\0162A.google.mo" + + "nitoring.v3.AlertPolicy.Condition.Evalua" + + "tionMissingData\032K\n\017ForecastOptions\0228\n\020fo" + + "recast_horizon\030\001 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\002\032\320\001\n\rMetricAbsence\022\023\n\006filter" + + "\030\001 \001(\tB\003\340A\002\0227\n\014aggregations\030\005 \003(\0132!.goog" + + "le.monitoring.v3.Aggregation\022+\n\010duration" + + "\030\002 \001(\0132\031.google.protobuf.Duration\022D\n\007tri" + + "gger\030\003 \001(\01323.google.monitoring.v3.AlertP" + + "olicy.Condition.Trigger\032\274\001\n\010LogMatch\022\023\n\006" + + "filter\030\001 \001(\tB\003\340A\002\022c\n\020label_extractors\030\002 " + + "\003(\0132I.google.monitoring.v3.AlertPolicy.C" + + "ondition.LogMatch.LabelExtractorsEntry\0326" + + "\n\024LabelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032\210\002\n MonitoringQueryLangua" + + "geCondition\022\r\n\005query\030\001 \001(\t\022+\n\010duration\030\002" + + " \001(\0132\031.google.protobuf.Duration\022D\n\007trigg" + + "er\030\003 \001(\01323.google.monitoring.v3.AlertPol" + + "icy.Condition.Trigger\022b\n\027evaluation_miss" + + "ing_data\030\004 \001(\0162A.google.monitoring.v3.Al" + + "ertPolicy.Condition.EvaluationMissingDat" + + "a\032\365\002\n PrometheusQueryLanguageCondition\022\022" + + "\n\005query\030\001 \001(\tB\003\340A\002\0220\n\010duration\030\002 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\022;\n\023evaluati" + + "on_interval\030\003 \001(\0132\031.google.protobuf.Dura" + + "tionB\003\340A\001\022m\n\006labels\030\004 \003(\0132X.google.monit" + + "oring.v3.AlertPolicy.Condition.Prometheu" + + "sQueryLanguageCondition.LabelsEntryB\003\340A\001" + + "\022\027\n\nrule_group\030\005 \001(\tB\003\340A\001\022\027\n\nalert_rule\030" + + "\006 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\255\001\n\025EvaluationMissingD" + + "ata\022\'\n#EVALUATION_MISSING_DATA_UNSPECIFI" + + "ED\020\000\022$\n EVALUATION_MISSING_DATA_INACTIVE" + + "\020\001\022\"\n\036EVALUATION_MISSING_DATA_ACTIVE\020\002\022!" + + "\n\035EVALUATION_MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002" + + "\n.monitoring.googleapis.com/AlertPolicyC" + + "ondition\022Fprojects/{project}/alertPolici" + + "es/{alert_policy}/conditions/{condition}" + + "\022Porganizations/{organization}/alertPoli" + + "cies/{alert_policy}/conditions/{conditio" + + "n}\022Dfolders/{folder}/alertPolicies/{aler" + + "t_policy}/conditions/{condition}\022\001*B\013\n\tc" + + "ondition\032\214\005\n\rAlertStrategy\022f\n\027notificati" + + "on_rate_limit\030\001 \001(\0132E.google.monitoring." + + "v3.AlertPolicy.AlertStrategy.Notificatio" + + "nRateLimit\022`\n\024notification_prompts\030\002 \003(\016" + + "2B.google.monitoring.v3.AlertPolicy.Aler" + + "tStrategy.NotificationPrompt\022-\n\nauto_clo" + + "se\030\003 \001(\0132\031.google.protobuf.Duration\022r\n\035n" + + "otification_channel_strategy\030\004 \003(\0132K.goo" + + "gle.monitoring.v3.AlertPolicy.AlertStrat" + + "egy.NotificationChannelStrategy\032B\n\025Notif" + + "icationRateLimit\022)\n\006period\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\032w\n\033NotificationChann" + + "elStrategy\022\"\n\032notification_channel_names" + + "\030\001 \003(\t\0224\n\021renotify_interval\030\002 \001(\0132\031.goog" + + "le.protobuf.Duration\"Q\n\022NotificationProm" + + "pt\022#\n\037NOTIFICATION_PROMPT_UNSPECIFIED\020\000\022" + + "\n\n\006OPENED\020\001\022\n\n\006CLOSED\020\003\0321\n\017UserLabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\025Co" + + "nditionCombinerType\022\027\n\023COMBINE_UNSPECIFI" + + "ED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032AND_WITH_MATCHI" + + "NG_RESOURCE\020\003\"J\n\010Severity\022\030\n\024SEVERITY_UN" + + "SPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\t\n\005ERROR\020\002\022\013\n\007" + + "WARNING\020\003:\311\001\352A\305\001\n%monitoring.googleapis." + + "com/AlertPolicy\022/projects/{project}/aler" + + "tPolicies/{alert_policy}\0229organizations/" + + "{organization}/alertPolicies/{alert_poli" + + "cy}\022-folders/{folder}/alertPolicies/{ale" + + "rt_policy}\022\001*B\305\001\n\030com.google.monitoring." + + "v3B\nAlertProtoP\001ZAcloud.google.com/go/mo" + + "nitoring/apiv3/v2/monitoringpb;monitorin" + + "gpb\252\002\032Google.Cloud.Monitoring.V3\312\002\032Googl" + + "e\\Cloud\\Monitoring\\V3\352\002\035Google::Cloud::M" + + "onitoring::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -404,7 +409,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor, new java.lang.String[] { - "NotificationRateLimit", "AutoClose", "NotificationChannelStrategy", + "NotificationRateLimit", + "NotificationPrompts", + "AutoClose", + "NotificationChannelStrategy", }); internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_NotificationRateLimit_descriptor = internal_static_google_monitoring_v3_AlertPolicy_AlertStrategy_descriptor diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java index e71ef2cb8393..ceec9e6bd244 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertServiceProto.java @@ -73,52 +73,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Policy\022<\n\014alert_policy\030\002 \001(\0132!.google.mo" + "nitoring.v3.AlertPolicyB\003\340A\002\"T\n\025GetAlert" + "PolicyRequest\022;\n\004name\030\003 \001(\tB-\340A\002\372A\'\n%mon" - + "itoring.googleapis.com/AlertPolicy\"\240\001\n\030L" + + "itoring.googleapis.com/AlertPolicy\"\264\001\n\030L" + "istAlertPoliciesRequest\022;\n\004name\030\004 \001(\tB-\340" + "A\002\372A\'\022%monitoring.googleapis.com/AlertPo" - + "licy\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001" - + "\n\031ListAlertPoliciesResponse\0229\n\016alert_pol" - + "icies\030\003 \003(\0132!.google.monitoring.v3.Alert" - + "Policy\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal" - + "_size\030\004 \001(\005\"\211\001\n\030UpdateAlertPolicyRequest" - + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMask\022<\n\014alert_policy\030\003 \001(\0132!.google" - + ".monitoring.v3.AlertPolicyB\003\340A\002\"W\n\030Delet" - + "eAlertPolicyRequest\022;\n\004name\030\003 \001(\tB-\340A\002\372A" - + "\'\n%monitoring.googleapis.com/AlertPolicy" - + "2\236\010\n\022AlertPolicyService\022\250\001\n\021ListAlertPol" - + "icies\022..google.monitoring.v3.ListAlertPo" - + "liciesRequest\032/.google.monitoring.v3.Lis" - + "tAlertPoliciesResponse\"2\332A\004name\202\323\344\223\002%\022#/" - + "v3/{name=projects/*}/alertPolicies\022\226\001\n\016G" - + "etAlertPolicy\022+.google.monitoring.v3.Get" - + "AlertPolicyRequest\032!.google.monitoring.v" - + "3.AlertPolicy\"4\332A\004name\202\323\344\223\002\'\022%/v3/{name=" - + "projects/*/alertPolicies/*}\022\265\001\n\021CreateAl" - + "ertPolicy\022..google.monitoring.v3.CreateA" - + "lertPolicyRequest\032!.google.monitoring.v3" - + ".AlertPolicy\"M\332A\021name,alert_policy\202\323\344\223\0023" - + "\"#/v3/{name=projects/*}/alertPolicies:\014a" - + "lert_policy\022\221\001\n\021DeleteAlertPolicy\022..goog" - + "le.monitoring.v3.DeleteAlertPolicyReques" - + "t\032\026.google.protobuf.Empty\"4\332A\004name\202\323\344\223\002\'" - + "*%/v3/{name=projects/*/alertPolicies/*}\022" - + "\313\001\n\021UpdateAlertPolicy\022..google.monitorin" - + "g.v3.UpdateAlertPolicyRequest\032!.google.m" - + "onitoring.v3.AlertPolicy\"c\332A\030update_mask" - + ",alert_policy\202\323\344\223\002B22/v3/{alert_policy.n" - + "ame=projects/*/alertPolicies/*}:\014alert_p" - + "olicy\032\251\001\312A\031monitoring.googleapis.com\322A\211\001" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/m" - + "onitoring,https://www.googleapis.com/aut" - + "h/monitoring.readB\314\001\n\030com.google.monitor" - + "ing.v3B\021AlertServiceProtoP\001ZAcloud.googl" - + "e.com/go/monitoring/apiv3/v2/monitoringp" - + "b;monitoringpb\252\002\032Google.Cloud.Monitoring" - + ".V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Googl" - + "e::Cloud::Monitoring::V3b\006proto3" + + "licy\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\025\n\010order_by\030\006 " + + "\001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\031ListAlertPoliciesR" + + "esponse\0229\n\016alert_policies\030\003 \003(\0132!.google" + + ".monitoring.v3.AlertPolicy\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\216\001\n\030Upda" + + "teAlertPolicyRequest\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\022<\n\014al" + + "ert_policy\030\003 \001(\0132!.google.monitoring.v3." + + "AlertPolicyB\003\340A\002\"W\n\030DeleteAlertPolicyReq" + + "uest\022;\n\004name\030\003 \001(\tB-\340A\002\372A\'\n%monitoring.g" + + "oogleapis.com/AlertPolicy2\236\010\n\022AlertPolic" + + "yService\022\250\001\n\021ListAlertPolicies\022..google." + + "monitoring.v3.ListAlertPoliciesRequest\032/" + + ".google.monitoring.v3.ListAlertPoliciesR" + + "esponse\"2\332A\004name\202\323\344\223\002%\022#/v3/{name=projec" + + "ts/*}/alertPolicies\022\226\001\n\016GetAlertPolicy\022+" + + ".google.monitoring.v3.GetAlertPolicyRequ" + + "est\032!.google.monitoring.v3.AlertPolicy\"4" + + "\332A\004name\202\323\344\223\002\'\022%/v3/{name=projects/*/aler" + + "tPolicies/*}\022\265\001\n\021CreateAlertPolicy\022..goo" + + "gle.monitoring.v3.CreateAlertPolicyReque" + + "st\032!.google.monitoring.v3.AlertPolicy\"M\332" + + "A\021name,alert_policy\202\323\344\223\0023\"#/v3/{name=pro" + + "jects/*}/alertPolicies:\014alert_policy\022\221\001\n" + + "\021DeleteAlertPolicy\022..google.monitoring.v" + + "3.DeleteAlertPolicyRequest\032\026.google.prot" + + "obuf.Empty\"4\332A\004name\202\323\344\223\002\'*%/v3/{name=pro" + + "jects/*/alertPolicies/*}\022\313\001\n\021UpdateAlert" + + "Policy\022..google.monitoring.v3.UpdateAler" + + "tPolicyRequest\032!.google.monitoring.v3.Al" + + "ertPolicy\"c\332A\030update_mask,alert_policy\202\323" + + "\344\223\002B22/v3/{alert_policy.name=projects/*/" + + "alertPolicies/*}:\014alert_policy\032\251\001\312A\031moni" + + "toring.googleapis.com\322A\211\001https://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/monitoring,https" + + "://www.googleapis.com/auth/monitoring.re" + + "adB\314\001\n\030com.google.monitoring.v3B\021AlertSe" + + "rviceProtoP\001ZAcloud.google.com/go/monito" + + "ring/apiv3/v2/monitoringpb;monitoringpb\252" + + "\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cl" + + "oud\\Monitoring\\V3\352\002\035Google::Cloud::Monit" + + "oring::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java index cd40dc43ff89..e294a02307b9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java @@ -131,8 +131,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
          * If true, the notification channel will be deleted regardless of its
          * use in alert policies (the policies will be updated to remove the
      -   * channel). If false, channels that are still referenced by an existing
      -   * alerting policy will fail to be deleted in a delete operation.
      +   * channel). If false, this operation will fail if the notification channel
      +   * is referenced by existing alerting policies.
          * 
      * * bool force = 5; @@ -642,8 +642,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
            * If true, the notification channel will be deleted regardless of its
            * use in alert policies (the policies will be updated to remove the
      -     * channel). If false, channels that are still referenced by an existing
      -     * alerting policy will fail to be deleted in a delete operation.
      +     * channel). If false, this operation will fail if the notification channel
      +     * is referenced by existing alerting policies.
            * 
      * * bool force = 5; @@ -660,8 +660,8 @@ public boolean getForce() { *
            * If true, the notification channel will be deleted regardless of its
            * use in alert policies (the policies will be updated to remove the
      -     * channel). If false, channels that are still referenced by an existing
      -     * alerting policy will fail to be deleted in a delete operation.
      +     * channel). If false, this operation will fail if the notification channel
      +     * is referenced by existing alerting policies.
            * 
      * * bool force = 5; @@ -682,8 +682,8 @@ public Builder setForce(boolean value) { *
            * If true, the notification channel will be deleted regardless of its
            * use in alert policies (the policies will be updated to remove the
      -     * channel). If false, channels that are still referenced by an existing
      -     * alerting policy will fail to be deleted in a delete operation.
      +     * channel). If false, this operation will fail if the notification channel
      +     * is referenced by existing alerting policies.
            * 
      * * bool force = 5; diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java index accffc34367e..68b770c046b7 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteNotificationChannelRequestOrBuilder *
          * If true, the notification channel will be deleted regardless of its
          * use in alert policies (the policies will be updated to remove the
      -   * channel). If false, channels that are still referenced by an existing
      -   * alerting policy will fail to be deleted in a delete operation.
      +   * channel). If false, this operation will fail if the notification channel
      +   * is referenced by existing alerting policies.
          * 
      * * bool force = 5; diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java index 2cf3c676d561..7987f3cb4fd3 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java @@ -149,14 +149,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * alert policies to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by alert policies to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -176,14 +176,14 @@ public java.lang.String getFilter() { * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * alert policies to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by alert policies to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -208,15 +208,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of field references as the `filter` field. Entries can be
      -   * prefixed with a minus sign to sort by the field in descending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of field references as the `filter` field. Entries
      +   * can be prefixed with a minus sign to sort by the field in descending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -236,15 +236,15 @@ public java.lang.String getOrderBy() { * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of field references as the `filter` field. Entries can be
      -   * prefixed with a minus sign to sort by the field in descending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of field references as the `filter` field. Entries
      +   * can be prefixed with a minus sign to sort by the field in descending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -267,10 +267,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -   * The maximum number of results to return in a single response.
      +   * Optional. The maximum number of results to return in a single response.
          * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -287,12 +287,13 @@ public int getPageSize() { * * *
      -   * If this field is not empty then it must contain the `nextPageToken` value
      -   * returned by a previous call to this method.  Using this field causes the
      -   * method to return more results from the previous method call.
      +   * Optional. If this field is not empty then it must contain the
      +   * `nextPageToken` value returned by a previous call to this method.  Using
      +   * this field causes the method to return more results from the previous
      +   * method call.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -312,12 +313,13 @@ public java.lang.String getPageToken() { * * *
      -   * If this field is not empty then it must contain the `nextPageToken` value
      -   * returned by a previous call to this method.  Using this field causes the
      -   * method to return more results from the previous method call.
      +   * Optional. If this field is not empty then it must contain the
      +   * `nextPageToken` value returned by a previous call to this method.  Using
      +   * this field causes the method to return more results from the previous
      +   * method call.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -941,14 +943,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * alert policies to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by alert policies to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -967,14 +969,14 @@ public java.lang.String getFilter() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * alert policies to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by alert policies to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -993,14 +995,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * alert policies to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by alert policies to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1018,14 +1020,14 @@ public Builder setFilter(java.lang.String value) { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * alert policies to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by alert policies to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1039,14 +1041,14 @@ public Builder clearFilter() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * alert policies to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by alert policies to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1067,15 +1069,15 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of field references as the `filter` field. Entries can be
      -     * prefixed with a minus sign to sort by the field in descending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of field references as the `filter` field. Entries
      +     * can be prefixed with a minus sign to sort by the field in descending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1094,15 +1096,15 @@ public java.lang.String getOrderBy() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of field references as the `filter` field. Entries can be
      -     * prefixed with a minus sign to sort by the field in descending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of field references as the `filter` field. Entries
      +     * can be prefixed with a minus sign to sort by the field in descending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1121,15 +1123,15 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of field references as the `filter` field. Entries can be
      -     * prefixed with a minus sign to sort by the field in descending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of field references as the `filter` field. Entries
      +     * can be prefixed with a minus sign to sort by the field in descending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1147,15 +1149,15 @@ public Builder setOrderBy(java.lang.String value) { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of field references as the `filter` field. Entries can be
      -     * prefixed with a minus sign to sort by the field in descending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of field references as the `filter` field. Entries
      +     * can be prefixed with a minus sign to sort by the field in descending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1169,15 +1171,15 @@ public Builder clearOrderBy() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of field references as the `filter` field. Entries can be
      -     * prefixed with a minus sign to sort by the field in descending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of field references as the `filter` field. Entries
      +     * can be prefixed with a minus sign to sort by the field in descending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. @@ -1198,10 +1200,10 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
      -     * The maximum number of results to return in a single response.
      +     * Optional. The maximum number of results to return in a single response.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -1213,10 +1215,10 @@ public int getPageSize() { * * *
      -     * The maximum number of results to return in a single response.
      +     * Optional. The maximum number of results to return in a single response.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -1232,10 +1234,10 @@ public Builder setPageSize(int value) { * * *
      -     * The maximum number of results to return in a single response.
      +     * Optional. The maximum number of results to return in a single response.
            * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1251,12 +1253,13 @@ public Builder clearPageSize() { * * *
      -     * If this field is not empty then it must contain the `nextPageToken` value
      -     * returned by a previous call to this method.  Using this field causes the
      -     * method to return more results from the previous method call.
      +     * Optional. If this field is not empty then it must contain the
      +     * `nextPageToken` value returned by a previous call to this method.  Using
      +     * this field causes the method to return more results from the previous
      +     * method call.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1275,12 +1278,13 @@ public java.lang.String getPageToken() { * * *
      -     * If this field is not empty then it must contain the `nextPageToken` value
      -     * returned by a previous call to this method.  Using this field causes the
      -     * method to return more results from the previous method call.
      +     * Optional. If this field is not empty then it must contain the
      +     * `nextPageToken` value returned by a previous call to this method.  Using
      +     * this field causes the method to return more results from the previous
      +     * method call.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1299,12 +1303,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
      -     * If this field is not empty then it must contain the `nextPageToken` value
      -     * returned by a previous call to this method.  Using this field causes the
      -     * method to return more results from the previous method call.
      +     * Optional. If this field is not empty then it must contain the
      +     * `nextPageToken` value returned by a previous call to this method.  Using
      +     * this field causes the method to return more results from the previous
      +     * method call.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1322,12 +1327,13 @@ public Builder setPageToken(java.lang.String value) { * * *
      -     * If this field is not empty then it must contain the `nextPageToken` value
      -     * returned by a previous call to this method.  Using this field causes the
      -     * method to return more results from the previous method call.
      +     * Optional. If this field is not empty then it must contain the
      +     * `nextPageToken` value returned by a previous call to this method.  Using
      +     * this field causes the method to return more results from the previous
      +     * method call.
            * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1341,12 +1347,13 @@ public Builder clearPageToken() { * * *
      -     * If this field is not empty then it must contain the `nextPageToken` value
      -     * returned by a previous call to this method.  Using this field causes the
      -     * method to return more results from the previous method call.
      +     * Optional. If this field is not empty then it must contain the
      +     * `nextPageToken` value returned by a previous call to this method.  Using
      +     * this field causes the method to return more results from the previous
      +     * method call.
            * 
      * - * 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. diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java index d2d6a1bbaca2..ed38fe723de9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequestOrBuilder.java @@ -77,14 +77,14 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * alert policies to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by alert policies to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -93,14 +93,14 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * alert policies to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by alert policies to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -110,15 +110,15 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of field references as the `filter` field. Entries can be
      -   * prefixed with a minus sign to sort by the field in descending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of field references as the `filter` field. Entries
      +   * can be prefixed with a minus sign to sort by the field in descending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -127,15 +127,15 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of field references as the `filter` field. Entries can be
      -   * prefixed with a minus sign to sort by the field in descending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of field references as the `filter` field. Entries
      +   * can be prefixed with a minus sign to sort by the field in descending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 6; + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -145,10 +145,10 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * The maximum number of results to return in a single response.
      +   * Optional. The maximum number of results to return in a single response.
          * 
      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,12 +158,13 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * If this field is not empty then it must contain the `nextPageToken` value
      -   * returned by a previous call to this method.  Using this field causes the
      -   * method to return more results from the previous method call.
      +   * Optional. If this field is not empty then it must contain the
      +   * `nextPageToken` value returned by a previous call to this method.  Using
      +   * this field causes the method to return more results from the previous
      +   * method call.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -172,12 +173,13 @@ public interface ListAlertPoliciesRequestOrBuilder * * *
      -   * If this field is not empty then it must contain the `nextPageToken` value
      -   * returned by a previous call to this method.  Using this field causes the
      -   * method to return more results from the previous method call.
      +   * Optional. If this field is not empty then it must contain the
      +   * `nextPageToken` value returned by a previous call to this method.  Using
      +   * this field causes the method to return more results from the previous
      +   * method call.
          * 
      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java index fd2ed47aa246..ec38b8106bce 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java @@ -152,14 +152,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * notification channels to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by notification channels to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -179,14 +179,14 @@ public java.lang.String getFilter() { * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * notification channels to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by notification channels to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -211,15 +211,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of fields as in `filter`. Entries can be prefixed with
      -   * a minus sign to sort in descending rather than ascending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of fields as in `filter`. Entries can be prefixed
      +   * with a minus sign to sort in descending rather than ascending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -239,15 +239,15 @@ public java.lang.String getOrderBy() { * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of fields as in `filter`. Entries can be prefixed with
      -   * a minus sign to sort in descending rather than ascending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of fields as in `filter`. Entries can be prefixed
      +   * with a minus sign to sort in descending rather than ascending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -270,12 +270,12 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -   * The maximum number of results to return in a single response. If
      +   * Optional. The maximum number of results to return in a single response. If
          * not set to a positive number, a reasonable value will be chosen by the
          * service.
          * 
      * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -292,12 +292,12 @@ public int getPageSize() { * * *
      -   * If non-empty, `page_token` must contain a value returned as the
      +   * Optional. If non-empty, `page_token` must contain a value returned as the
          * `next_page_token` in a previous response to request the next set
          * of results.
          * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -317,12 +317,12 @@ public java.lang.String getPageToken() { * * *
      -   * If non-empty, `page_token` must contain a value returned as the
      +   * Optional. If non-empty, `page_token` must contain a value returned as the
          * `next_page_token` in a previous response to request the next set
          * of results.
          * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -952,14 +952,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * notification channels to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by notification channels to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -978,14 +978,14 @@ public java.lang.String getFilter() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * notification channels to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by notification channels to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1004,14 +1004,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * notification channels to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by notification channels to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1029,14 +1029,14 @@ public Builder setFilter(java.lang.String value) { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * notification channels to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by notification channels to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1050,14 +1050,14 @@ public Builder clearFilter() { * * *
      -     * If provided, this field specifies the criteria that must be met by
      -     * notification channels to be included in the response.
      +     * Optional. If provided, this field specifies the criteria that must be met
      +     * by notification channels to be included in the response.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1078,15 +1078,15 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of fields as in `filter`. Entries can be prefixed with
      -     * a minus sign to sort in descending rather than ascending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of fields as in `filter`. Entries can be prefixed
      +     * with a minus sign to sort in descending rather than ascending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1105,15 +1105,15 @@ public java.lang.String getOrderBy() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of fields as in `filter`. Entries can be prefixed with
      -     * a minus sign to sort in descending rather than ascending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of fields as in `filter`. Entries can be prefixed
      +     * with a minus sign to sort in descending rather than ascending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1132,15 +1132,15 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of fields as in `filter`. Entries can be prefixed with
      -     * a minus sign to sort in descending rather than ascending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of fields as in `filter`. Entries can be prefixed
      +     * with a minus sign to sort in descending rather than ascending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1158,15 +1158,15 @@ public Builder setOrderBy(java.lang.String value) { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of fields as in `filter`. Entries can be prefixed with
      -     * a minus sign to sort in descending rather than ascending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of fields as in `filter`. Entries can be prefixed
      +     * with a minus sign to sort in descending rather than ascending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1180,15 +1180,15 @@ public Builder clearOrderBy() { * * *
      -     * A comma-separated list of fields by which to sort the result. Supports
      -     * the same set of fields as in `filter`. Entries can be prefixed with
      -     * a minus sign to sort in descending rather than ascending order.
      +     * Optional. A comma-separated list of fields by which to sort the result.
      +     * Supports the same set of fields as in `filter`. Entries can be prefixed
      +     * with a minus sign to sort in descending rather than ascending order.
            *
            * For more details, see [sorting and
            * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
            * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. @@ -1209,12 +1209,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
      -     * The maximum number of results to return in a single response. If
      +     * Optional. The maximum number of results to return in a single response. If
            * not set to a positive number, a reasonable value will be chosen by the
            * service.
            * 
      * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -1226,12 +1226,12 @@ public int getPageSize() { * * *
      -     * The maximum number of results to return in a single response. If
      +     * Optional. The maximum number of results to return in a single response. If
            * not set to a positive number, a reasonable value will be chosen by the
            * service.
            * 
      * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -1247,12 +1247,12 @@ public Builder setPageSize(int value) { * * *
      -     * The maximum number of results to return in a single response. If
      +     * Optional. The maximum number of results to return in a single response. If
            * not set to a positive number, a reasonable value will be chosen by the
            * service.
            * 
      * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1268,12 +1268,12 @@ public Builder clearPageSize() { * * *
      -     * If non-empty, `page_token` must contain a value returned as the
      +     * Optional. If non-empty, `page_token` must contain a value returned as the
            * `next_page_token` in a previous response to request the next set
            * of results.
            * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1292,12 +1292,12 @@ public java.lang.String getPageToken() { * * *
      -     * If non-empty, `page_token` must contain a value returned as the
      +     * Optional. If non-empty, `page_token` must contain a value returned as the
            * `next_page_token` in a previous response to request the next set
            * of results.
            * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1316,12 +1316,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
      -     * If non-empty, `page_token` must contain a value returned as the
      +     * Optional. If non-empty, `page_token` must contain a value returned as the
            * `next_page_token` in a previous response to request the next set
            * of results.
            * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1339,12 +1339,12 @@ public Builder setPageToken(java.lang.String value) { * * *
      -     * If non-empty, `page_token` must contain a value returned as the
      +     * Optional. If non-empty, `page_token` must contain a value returned as the
            * `next_page_token` in a previous response to request the next set
            * of results.
            * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1358,12 +1358,12 @@ public Builder clearPageToken() { * * *
      -     * If non-empty, `page_token` must contain a value returned as the
      +     * Optional. If non-empty, `page_token` must contain a value returned as the
            * `next_page_token` in a previous response to request the next set
            * of results.
            * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java index 5f3eefd124a1..97301dc4b442 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequestOrBuilder.java @@ -79,14 +79,14 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * notification channels to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by notification channels to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -95,14 +95,14 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * If provided, this field specifies the criteria that must be met by
      -   * notification channels to be included in the response.
      +   * Optional. If provided, this field specifies the criteria that must be met
      +   * by notification channels to be included in the response.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string filter = 6; + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -112,15 +112,15 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of fields as in `filter`. Entries can be prefixed with
      -   * a minus sign to sort in descending rather than ascending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of fields as in `filter`. Entries can be prefixed
      +   * with a minus sign to sort in descending rather than ascending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -129,15 +129,15 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * A comma-separated list of fields by which to sort the result. Supports
      -   * the same set of fields as in `filter`. Entries can be prefixed with
      -   * a minus sign to sort in descending rather than ascending order.
      +   * Optional. A comma-separated list of fields by which to sort the result.
      +   * Supports the same set of fields as in `filter`. Entries can be prefixed
      +   * with a minus sign to sort in descending rather than ascending order.
          *
          * For more details, see [sorting and
          * filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
          * 
      * - * string order_by = 7; + * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -147,12 +147,12 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * The maximum number of results to return in a single response. If
      +   * Optional. The maximum number of results to return in a single response. If
          * not set to a positive number, a reasonable value will be chosen by the
          * service.
          * 
      * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -162,12 +162,12 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * If non-empty, `page_token` must contain a value returned as the
      +   * Optional. If non-empty, `page_token` must contain a value returned as the
          * `next_page_token` in a previous response to request the next set
          * of results.
          * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -176,12 +176,12 @@ public interface ListNotificationChannelsRequestOrBuilder * * *
      -   * If non-empty, `page_token` must contain a value returned as the
      +   * Optional. If non-empty, `page_token` must contain a value returned as the
          * `next_page_token` in a previous response to request the next set
          * of results.
          * 
      * - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java index 3c3ca2fbcf16..861dae617dab 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java @@ -331,14 +331,14 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
      -   * The full REST resource name for this channel. The format is:
      +   * Identifier. The full REST resource name for this channel. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
          *
          * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
          * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -358,14 +358,14 @@ public java.lang.String getName() { * * *
      -   * The full REST resource name for this channel. The format is:
      +   * Identifier. The full REST resource name for this channel. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
          *
          * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
          * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1818,14 +1818,14 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * * *
      -     * The full REST resource name for this channel. The format is:
      +     * Identifier. The full REST resource name for this channel. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
            *
            * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
            * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1844,14 +1844,14 @@ public java.lang.String getName() { * * *
      -     * The full REST resource name for this channel. The format is:
      +     * Identifier. The full REST resource name for this channel. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
            *
            * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
            * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1870,14 +1870,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * The full REST resource name for this channel. The format is:
      +     * Identifier. The full REST resource name for this channel. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
            *
            * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
            * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1895,14 +1895,14 @@ public Builder setName(java.lang.String value) { * * *
      -     * The full REST resource name for this channel. The format is:
      +     * Identifier. The full REST resource name for this channel. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
            *
            * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
            * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1916,14 +1916,14 @@ public Builder clearName() { * * *
      -     * The full REST resource name for this channel. The format is:
      +     * Identifier. The full REST resource name for this channel. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
            *
            * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
            * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java index 0355e5c20249..e4c676ec7b68 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java @@ -406,7 +406,7 @@ public com.google.monitoring.v3.ServiceTier convert(java.lang.Integer from) { *
      * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the supportedTiers. */ @java.lang.Override @@ -428,7 +428,7 @@ public java.util.List getSupportedTiersLis *
      * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return The count of supportedTiers. */ @java.lang.Override @@ -448,7 +448,7 @@ public int getSupportedTiersCount() { *
      * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -469,7 +469,7 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { *
      * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Override @@ -489,7 +489,7 @@ public java.util.List getSupportedTiersValueList() { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @@ -1988,7 +1988,7 @@ private void ensureSupportedTiersIsMutable() { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the supportedTiers. */ @java.lang.Deprecated @@ -2009,7 +2009,7 @@ public java.util.List getSupportedTiersLis * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return The count of supportedTiers. */ @java.lang.Deprecated @@ -2028,7 +2028,7 @@ public int getSupportedTiersCount() { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -2048,7 +2048,7 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index to set the value at. * @param value The supportedTiers to set. * @return This builder for chaining. @@ -2075,7 +2075,7 @@ public Builder setSupportedTiers(int index, com.google.monitoring.v3.ServiceTier * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param value The supportedTiers to add. * @return This builder for chaining. */ @@ -2101,7 +2101,7 @@ public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param values The supportedTiers to add. * @return This builder for chaining. */ @@ -2127,7 +2127,7 @@ public Builder addAllSupportedTiers( * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2149,7 +2149,7 @@ public Builder clearSupportedTiers() { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Deprecated @@ -2168,7 +2168,7 @@ public java.util.List getSupportedTiersValueList() { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @@ -2188,7 +2188,7 @@ public int getSupportedTiersValue(int index) { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index to set the value at. * @param value The enum numeric value on the wire for supportedTiers to set. * @return This builder for chaining. @@ -2212,7 +2212,7 @@ public Builder setSupportedTiersValue(int index, int value) { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param value The enum numeric value on the wire for supportedTiers to add. * @return This builder for chaining. */ @@ -2235,7 +2235,7 @@ public Builder addSupportedTiersValue(int value) { * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param values The enum numeric values on the wire for supportedTiers to add. * @return This builder for chaining. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java index 88651a9bd7cf..c99f214ed82d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java @@ -219,7 +219,7 @@ public interface NotificationChannelDescriptorOrBuilder * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the supportedTiers. */ @java.lang.Deprecated @@ -236,7 +236,7 @@ public interface NotificationChannelDescriptorOrBuilder * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return The count of supportedTiers. */ @java.lang.Deprecated @@ -253,7 +253,7 @@ public interface NotificationChannelDescriptorOrBuilder * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -271,7 +271,7 @@ public interface NotificationChannelDescriptorOrBuilder * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface NotificationChannelDescriptorOrBuilder * * * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. - * See google/monitoring/v3/notification.proto;l=75 + * See google/monitoring/v3/notification.proto;l=76 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java index e1d5df4c71e5..7d1dbd0cba07 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java @@ -59,14 +59,14 @@ public interface NotificationChannelOrBuilder * * *
      -   * The full REST resource name for this channel. The format is:
      +   * Identifier. The full REST resource name for this channel. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
          *
          * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
          * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -75,14 +75,14 @@ public interface NotificationChannelOrBuilder * * *
      -   * The full REST resource name for this channel. The format is:
      +   * Identifier. The full REST resource name for this channel. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
          *
          * The `[CHANNEL_ID]` is automatically assigned by the server on creation.
          * 
      * - * string name = 6; + * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java index ffad9e5b5036..4dd15cb06321 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java @@ -54,60 +54,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/monitoring/v3/notification.prot" - + "o\022\024google.monitoring.v3\032\026google/api/labe" - + "l.proto\032\035google/api/launch_stage.proto\032\031" - + "google/api/resource.proto\032!google/monito" - + "ring/v3/common.proto\032*google/monitoring/" - + "v3/mutation_record.proto\032\036google/protobu" - + "f/wrappers.proto\"\245\004\n\035NotificationChannel" - + "Descriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type\030\001 \001(\t\022\024" - + "\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001(" - + "\t\022+\n\006labels\030\004 \003(\0132\033.google.api.LabelDesc" - + "riptor\022>\n\017supported_tiers\030\005 \003(\0162!.google" - + ".monitoring.v3.ServiceTierB\002\030\001\022-\n\014launch" - + "_stage\030\007 \001(\0162\027.google.api.LaunchStage:\240\002" - + "\352A\234\002\n7monitoring.googleapis.com/Notifica" - + "tionChannelDescriptor\022Fprojects/{project" - + "}/notificationChannelDescriptors/{channe" - + "l_descriptor}\022Porganizations/{organizati" - + "on}/notificationChannelDescriptors/{chan" - + "nel_descriptor}\022Dfolders/{folder}/notifi" - + "cationChannelDescriptors/{channel_descri" - + "ptor}\022\001*\"\266\007\n\023NotificationChannel\022\014\n\004type" - + "\030\001 \001(\t\022\014\n\004name\030\006 \001(\t\022\024\n\014display_name\030\003 \001" - + "(\t\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\0132" - + "5.google.monitoring.v3.NotificationChann" - + "el.LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.go" - + "ogle.monitoring.v3.NotificationChannel.U" - + "serLabelsEntry\022Y\n\023verification_status\030\t " - + "\001(\0162<.google.monitoring.v3.NotificationC" - + "hannel.VerificationStatus\022+\n\007enabled\030\013 \001" - + "(\0132\032.google.protobuf.BoolValue\022=\n\017creati" - + "on_record\030\014 \001(\0132$.google.monitoring.v3.M" - + "utationRecord\022>\n\020mutation_records\030\r \003(\0132" - + "$.google.monitoring.v3.MutationRecord\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n" - + "\037VERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUN" - + "VERIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitor" - + "ing.googleapis.com/NotificationChannel\022>" - + "projects/{project}/notificationChannels/" - + "{notification_channel}\022Horganizations/{o" - + "rganization}/notificationChannels/{notif" - + "ication_channel}\022\n\017supported_tiers\030\005 \003(\0162!.google.monito" + + "ring.v3.ServiceTierB\002\030\001\022-\n\014launch_stage\030" + + "\007 \001(\0162\027.google.api.LaunchStage:\240\002\352A\234\002\n7m" + + "onitoring.googleapis.com/NotificationCha" + + "nnelDescriptor\022Fprojects/{project}/notif" + + "icationChannelDescriptors/{channel_descr" + + "iptor}\022Porganizations/{organization}/not" + + "ificationChannelDescriptors/{channel_des" + + "criptor}\022Dfolders/{folder}/notificationC" + + "hannelDescriptors/{channel_descriptor}\022\001" + + "*\"\273\007\n\023NotificationChannel\022\014\n\004type\030\001 \001(\t\022" + + "\021\n\004name\030\006 \001(\tB\003\340A\010\022\024\n\014display_name\030\003 \001(\t" + + "\022\023\n\013description\030\004 \001(\t\022E\n\006labels\030\005 \003(\01325." + + "google.monitoring.v3.NotificationChannel" + + ".LabelsEntry\022N\n\013user_labels\030\010 \003(\01329.goog" + + "le.monitoring.v3.NotificationChannel.Use" + + "rLabelsEntry\022Y\n\023verification_status\030\t \001(" + + "\0162<.google.monitoring.v3.NotificationCha" + + "nnel.VerificationStatus\022+\n\007enabled\030\013 \001(\013" + + "2\032.google.protobuf.BoolValue\022=\n\017creation" + + "_record\030\014 \001(\0132$.google.monitoring.v3.Mut" + + "ationRecord\022>\n\020mutation_records\030\r \003(\0132$." + + "google.monitoring.v3.MutationRecord\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"W\n\022VerificationStatus\022#\n\037V" + + "ERIFICATION_STATUS_UNSPECIFIED\020\000\022\016\n\nUNVE" + + "RIFIED\020\001\022\014\n\010VERIFIED\020\002:\376\001\352A\372\001\n-monitorin" + + "g.googleapis.com/NotificationChannel\022>pr" + + "ojects/{project}/notificationChannels/{n" + + "otification_channel}\022Horganizations/{org" + + "anization}/notificationChannels/{notific" + + "ation_channel}\022 - * Required. The name of the `Snooze`. The format is: + * Required. Identifier. The name of the `Snooze`. The format is: * * projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] * * The ID of the `Snooze` will be generated by the system. * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -969,14 +969,14 @@ public java.lang.String getName() { * * *
      -   * Required. The name of the `Snooze`. The format is:
      +   * Required. Identifier. The name of the `Snooze`. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
          *
          * The ID of the `Snooze` will be generated by the system.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1618,14 +1618,14 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the `Snooze`. The format is:
      +     * Required. Identifier. The name of the `Snooze`. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
            *
            * The ID of the `Snooze` will be generated by the system.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1644,14 +1644,14 @@ public java.lang.String getName() { * * *
      -     * Required. The name of the `Snooze`. The format is:
      +     * Required. Identifier. The name of the `Snooze`. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
            *
            * The ID of the `Snooze` will be generated by the system.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1670,14 +1670,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. The name of the `Snooze`. The format is:
      +     * Required. Identifier. The name of the `Snooze`. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
            *
            * The ID of the `Snooze` will be generated by the system.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1695,14 +1695,14 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. The name of the `Snooze`. The format is:
      +     * Required. Identifier. The name of the `Snooze`. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
            *
            * The ID of the `Snooze` will be generated by the system.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1716,14 +1716,14 @@ public Builder clearName() { * * *
      -     * Required. The name of the `Snooze`. The format is:
      +     * Required. Identifier. The name of the `Snooze`. The format is:
            *
            *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
            *
            * The ID of the `Snooze` will be generated by the system.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java index 6dab79accc7d..d115d9060020 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeOrBuilder.java @@ -28,14 +28,14 @@ public interface SnoozeOrBuilder * * *
      -   * Required. The name of the `Snooze`. The format is:
      +   * Required. Identifier. The name of the `Snooze`. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
          *
          * The ID of the `Snooze` will be generated by the system.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,14 +44,14 @@ public interface SnoozeOrBuilder * * *
      -   * Required. The name of the `Snooze`. The format is:
      +   * Required. Identifier. The name of the `Snooze`. The format is:
          *
          *     projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
          *
          * The ID of the `Snooze` will be generated by the system.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java index 6c2902ba356e..4a989a0d3059 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.monitoring.v3\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032!g" + "oogle/monitoring/v3/common.proto\"\305\002\n\006Sno" - + "oze\022\021\n\004name\030\001 \001(\tB\003\340A\002\022<\n\010criteria\030\003 \001(\013" + + "oze\022\021\n\004name\030\001 \001(\tB\003\340A\010\022<\n\010criteria\030\003 \001(\013" + "2%.google.monitoring.v3.Snooze.CriteriaB" + "\003\340A\002\0229\n\010interval\030\004 \001(\0132\".google.monitori" + "ng.v3.TimeIntervalB\003\340A\002\022\031\n\014display_name\030" diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java index a8102ca900f5..139e97502424 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java @@ -91,7 +91,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -126,7 +127,8 @@ public boolean hasUpdateMask() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -161,7 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -661,7 +664,8 @@ public Builder mergeFrom( * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -695,7 +699,8 @@ public boolean hasUpdateMask() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -735,7 +740,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -777,7 +783,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -816,7 +823,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -863,7 +871,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -902,7 +911,8 @@ public Builder clearUpdateMask() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -936,7 +946,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -974,7 +985,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java index 19ce87cdd8a2..52aff085d9f4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequestOrBuilder.java @@ -51,7 +51,8 @@ public interface UpdateAlertPolicyRequestOrBuilder * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -83,7 +84,8 @@ public interface UpdateAlertPolicyRequestOrBuilder * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -115,7 +117,8 @@ public interface UpdateAlertPolicyRequestOrBuilder * then a new `[CONDITION_ID]` is created. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java index f127f2b10e9c..4a0b13f47dc4 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java @@ -69,10 +69,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -84,10 +85,11 @@ public boolean hasUpdateMask() { * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -99,10 +101,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -583,10 +586,11 @@ public Builder mergeFrom( * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -597,10 +601,11 @@ public boolean hasUpdateMask() { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -617,10 +622,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -639,10 +645,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -658,10 +665,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -685,10 +693,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -704,10 +713,11 @@ public Builder clearUpdateMask() { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -718,10 +728,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -736,10 +747,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
      -     * The fields to update.
      +     * Optional. The fields to update.
            * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java index c8a6bbb036ee..09d7260b3457 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequestOrBuilder.java @@ -28,10 +28,11 @@ public interface UpdateNotificationChannelRequestOrBuilder * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -40,10 +41,11 @@ public interface UpdateNotificationChannelRequestOrBuilder * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -52,10 +54,11 @@ public interface UpdateNotificationChannelRequestOrBuilder * * *
      -   * The fields to update.
      +   * Optional. The fields to update.
          * 
      * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto index ba38d5bd3eaf..c5c80544f35e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto @@ -34,7 +34,7 @@ option ruby_package = "Google::Cloud::Monitoring::V3"; // A description of the conditions under which some aspect of your system is // considered to be "unhealthy" and the ways to notify people or services about -// this state. For an overview of alert policies, see +// this state. For an overview of alerting policies, see // [Introduction to Alerting](https://cloud.google.com/monitoring/alerts/). // message AlertPolicy { @@ -67,7 +67,7 @@ message AlertPolicy { // The content may not exceed 8,192 Unicode characters and may not exceed // more than 10,240 bytes when encoded in UTF-8 format, whichever is // smaller. This text can be [templatized by using - // variables](https://cloud.google.com/monitoring/alerts/doc-variables). + // variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). string content = 1; // The format of the `content` field. Presently, only the value @@ -85,7 +85,7 @@ message AlertPolicy { // it is common to define textual fields in databases as VARCHAR(255). // // The contents of the subject line can be [templatized by using - // variables](https://cloud.google.com/monitoring/alerts/doc-variables). + // variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). // If this field is missing or empty, a default subject line will be // generated. string subject = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -323,7 +323,7 @@ message AlertPolicy { map label_extractors = 2; } - // A condition type that allows alert policies to be defined using + // A condition type that allows alerting policies to be defined using // [Monitoring Query Language](https://cloud.google.com/monitoring/mql). message MonitoringQueryLanguageCondition { // [Monitoring Query Language](https://cloud.google.com/monitoring/mql) @@ -355,7 +355,7 @@ message AlertPolicy { EvaluationMissingData evaluation_missing_data = 4; } - // A condition type that allows alert policies to be defined using + // A condition type that allows alerting policies to be defined using // [Prometheus Query Language // (PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/). // @@ -414,7 +414,7 @@ message AlertPolicy { // Label names [must be // valid](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). // Label values can be [templatized by using - // variables](https://cloud.google.com/monitoring/alerts/doc-variables). + // variables](https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars). // The only available variable names are the names of the labels in the // PromQL result, including "__name__" and "value". "labels" may be empty. map labels = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -527,13 +527,25 @@ message AlertPolicy { // Control over how the notification channels in `notification_channels` // are notified when this alert fires. message AlertStrategy { - // Control over the rate of notifications sent to this alert policy's + // Control over the rate of notifications sent to this alerting policy's // notification channels. message NotificationRateLimit { // Not more than one notification per `period`. google.protobuf.Duration period = 1; } + // Control when notifications will be sent out. + enum NotificationPrompt { + // No strategy specified. Treated as error. + NOTIFICATION_PROMPT_UNSPECIFIED = 0; + + // Notify when an incident is opened. + OPENED = 1; + + // Notify when an incident is closed. + CLOSED = 3; + } + // Control over how the notification channels in `notification_channels` // are notified when this alert fires, on a per-channel basis. message NotificationChannelStrategy { @@ -551,12 +563,19 @@ message AlertPolicy { google.protobuf.Duration renotify_interval = 2; } - // Required for alert policies with a `LogMatch` condition. + // Required for log-based alerting policies, i.e. policies with a `LogMatch` + // condition. // - // This limit is not implemented for alert policies that are not log-based. + // This limit is not implemented for alerting policies that do not have + // a LogMatch condition. NotificationRateLimit notification_rate_limit = 1; - // If an alert policy that was active has no data for this long, any open + // For log-based alert policies, the notification prompts is always + // [OPENED]. For non log-based alert policies, the notification prompts can + // be [OPENED] or [OPENED, CLOSED]. + repeated NotificationPrompt notification_prompts = 2; + + // If an alerting policy that was active has no data for this long, any open // incidents will close google.protobuf.Duration auto_close = 3; @@ -564,7 +583,7 @@ message AlertPolicy { repeated NotificationChannelStrategy notification_channel_strategy = 4; } - // An enumeration of possible severity level for an Alert Policy. + // An enumeration of possible severity level for an alerting policy. enum Severity { // No severity is specified. This is the default value. SEVERITY_UNSPECIFIED = 0; @@ -583,8 +602,8 @@ message AlertPolicy { WARNING = 3; } - // Required if the policy exists. The resource name for this policy. The - // format is: + // Identifier. Required if the policy exists. The resource name for this + // policy. The format is: // // projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] // @@ -593,7 +612,7 @@ message AlertPolicy { // [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy] // method, do not include the `name` field in the alerting policy passed as // part of the request. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // A short name or phrase used to identify the policy in dashboards, // notifications, and incidents. To avoid confusion, don't use the same @@ -653,9 +672,9 @@ message AlertPolicy { // a field projection has been specified that strips it out. google.protobuf.BoolValue enabled = 17; - // Read-only description of how the alert policy is invalid. This field is - // only set when the alert policy is invalid. An invalid alert policy will not - // generate incidents. + // Read-only description of how the alerting policy is invalid. This field is + // only set when the alerting policy is invalid. An invalid alerting policy + // will not generate incidents. google.rpc.Status validity = 18; // Identifies the notification channels to which notifications should be sent @@ -678,11 +697,11 @@ message AlertPolicy { // provided in a call to create or update, this field will be ignored. MutationRecord mutation_record = 11; - // Control over how this alert policy's notification channels are notified. + // Control over how this alerting policy's notification channels are notified. AlertStrategy alert_strategy = 21; - // Optional. The severity of an alert policy indicates how important incidents - // generated by that policy are. The severity level will be displayed on the - // Incident detail page and in notifications. + // Optional. The severity of an alerting policy indicates how important + // incidents generated by that policy are. The severity level will be + // displayed on the Incident detail page and in notifications. Severity severity = 22 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto index 5351e1282026..21dcd7dd0e1e 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto @@ -169,28 +169,29 @@ message ListAlertPoliciesRequest { } ]; - // If provided, this field specifies the criteria that must be met by - // alert policies to be included in the response. + // Optional. If provided, this field specifies the criteria that must be met + // by alert policies to be included in the response. // // For more details, see [sorting and // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). - string filter = 5; + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; - // A comma-separated list of fields by which to sort the result. Supports - // the same set of field references as the `filter` field. Entries can be - // prefixed with a minus sign to sort by the field in descending order. + // Optional. A comma-separated list of fields by which to sort the result. + // Supports the same set of field references as the `filter` field. Entries + // can be prefixed with a minus sign to sort by the field in descending order. // // For more details, see [sorting and // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). - string order_by = 6; + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; - // The maximum number of results to return in a single response. - int32 page_size = 2; + // Optional. The maximum number of results to return in a single response. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // If this field is not empty then it must contain the `nextPageToken` value - // returned by a previous call to this method. Using this field causes the - // method to return more results from the previous method call. - string page_token = 3; + // Optional. If this field is not empty then it must contain the + // `nextPageToken` value returned by a previous call to this method. Using + // this field causes the method to return more results from the previous + // method call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // The protocol for the `ListAlertPolicies` response. @@ -231,7 +232,8 @@ message UpdateAlertPolicyRequest { // the supplied condition includes the `name` field with that // `[CONDITION_ID]`. If the supplied condition omits the `name` field, // then a new `[CONDITION_ID]` is created. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. The updated alerting policy or the updated values for the // fields listed in `update_mask`. diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto index 7321afee6099..c5187a8aa956 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.monitoring.v3; +import "google/api/field_behavior.proto"; import "google/api/label.proto"; import "google/api/launch_stage.proto"; import "google/api/resource.proto"; @@ -123,12 +124,12 @@ message NotificationChannel { // field. string type = 1; - // The full REST resource name for this channel. The format is: + // Identifier. The full REST resource name for this channel. The format is: // // projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] // // The `[CHANNEL_ID]` is automatically assigned by the server on creation. - string name = 6; + string name = 6 [(google.api.field_behavior) = IDENTIFIER]; // An optional human-readable name for this notification channel. It is // recommended that you specify a non-empty and unique name in order to diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto index 5da8dc6394e9..bb69da40b7de 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto @@ -291,30 +291,30 @@ message ListNotificationChannelsRequest { } ]; - // If provided, this field specifies the criteria that must be met by - // notification channels to be included in the response. + // Optional. If provided, this field specifies the criteria that must be met + // by notification channels to be included in the response. // // For more details, see [sorting and // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). - string filter = 6; + string filter = 6 [(google.api.field_behavior) = OPTIONAL]; - // A comma-separated list of fields by which to sort the result. Supports - // the same set of fields as in `filter`. Entries can be prefixed with - // a minus sign to sort in descending rather than ascending order. + // Optional. A comma-separated list of fields by which to sort the result. + // Supports the same set of fields as in `filter`. Entries can be prefixed + // with a minus sign to sort in descending rather than ascending order. // // For more details, see [sorting and // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering). - string order_by = 7; + string order_by = 7 [(google.api.field_behavior) = OPTIONAL]; - // The maximum number of results to return in a single response. If + // Optional. The maximum number of results to return in a single response. If // not set to a positive number, a reasonable value will be chosen by the // service. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - // If non-empty, `page_token` must contain a value returned as the + // Optional. If non-empty, `page_token` must contain a value returned as the // `next_page_token` in a previous response to request the next set // of results. - string page_token = 4; + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // The `ListNotificationChannels` response. @@ -348,8 +348,9 @@ message GetNotificationChannelRequest { // The `UpdateNotificationChannel` request. message UpdateNotificationChannelRequest { - // The fields to update. - google.protobuf.FieldMask update_mask = 2; + // Optional. The fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. A description of the changes to be applied to the specified // notification channel. The description must provide a definition for @@ -373,8 +374,8 @@ message DeleteNotificationChannelRequest { // If true, the notification channel will be deleted regardless of its // use in alert policies (the policies will be updated to remove the - // channel). If false, channels that are still referenced by an existing - // alerting policy will fail to be deleted in a delete operation. + // channel). If false, this operation will fail if the notification channel + // is referenced by existing alerting policies. bool force = 5; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto index ece181720fb1..efad31b23bc3 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/snooze.proto @@ -54,12 +54,12 @@ message Snooze { }]; } - // Required. The name of the `Snooze`. The format is: + // Required. Identifier. The name of the `Snooze`. The format is: // // projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] // // The ID of the `Snooze` will be generated by the system. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. This defines the criteria for applying the `Snooze`. See // `Criteria` for more information. diff --git a/java-netapp/README.md b/java-netapp/README.md index 10155b523483..6592d7f6d1ce 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.32.0 + 0.33.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.32.0' +implementation 'com.google.cloud:google-cloud-netapp:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.33.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index 13c10f7798dc..2b7b4ba987fa 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -765,6 +765,36 @@ * * * + *

      EstablishPeering + *

      Establish replication peering. + * + *

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

      + *
        + *
      • establishPeeringAsync(EstablishPeeringRequest request) + *

      + *

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

      + *
        + *
      • establishPeeringOperationCallable() + *

      • establishPeeringCallable() + *

      + * + * + * + *

      SyncReplication + *

      Syncs the replication. This will invoke one time volume data transfer from source to destination. + * + *

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

      + *
        + *
      • syncReplicationAsync(SyncReplicationRequest request) + *

      + *

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

      + *
        + *
      • syncReplicationOperationCallable() + *

      • syncReplicationCallable() + *

      + * + * + * *

      CreateBackupVault *

      Creates new backup vault * @@ -1407,9 +1437,8 @@ public final ListStoragePoolsPagedResponse listStoragePools(ListStoragePoolsRequ * @param parent Required. Value for parent. * @param storagePool Required. The required parameters to create a new storage pool. * @param storagePoolId Required. Id of the requesting storage pool. Must be unique within the - * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * parent resource. Must contain only letters, numbers and hyphen, with the first character a + * letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStoragePoolAsync( @@ -1447,9 +1476,8 @@ public final OperationFuture createStoragePoolAs * @param parent Required. Value for parent. * @param storagePool Required. The required parameters to create a new storage pool. * @param storagePoolId Required. Id of the requesting storage pool. Must be unique within the - * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * parent resource. Must contain only letters, numbers and hyphen, with the first character a + * letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStoragePoolAsync( @@ -2312,9 +2340,8 @@ public final UnaryCallable getVolumeCallable() { * @param parent Required. Value for parent. * @param volume Required. The volume being created. * @param volumeId Required. Id of the requesting volume. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVolumeAsync( @@ -2351,9 +2378,8 @@ public final OperationFuture createVolumeAsync( * @param parent Required. Value for parent. * @param volume Required. The volume being created. * @param volumeId Required. Id of the requesting volume. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVolumeAsync( @@ -3116,9 +3142,8 @@ public final UnaryCallable getSnapshotCallable() { * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param snapshot Required. A snapshot resource * @param snapshotId Required. ID of the snapshot to create. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( @@ -3156,9 +3181,8 @@ public final OperationFuture createSnapshotAsync( * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param snapshot Required. A snapshot resource * @param snapshotId Required. ID of the snapshot to create. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( @@ -3840,9 +3864,8 @@ public final ActiveDirectory getActiveDirectory(GetActiveDirectoryRequest reques * @param parent Required. Value for parent. * @param activeDirectory Required. Fields of the to be created active directory. * @param activeDirectoryId Required. ID of the active directory to create. Must be unique within - * the parent resource. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * the parent resource. Must contain only letters, numbers and hyphen, with the first + * character a letter , the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createActiveDirectoryAsync( @@ -3880,9 +3903,8 @@ public final OperationFuture createActiveDir * @param parent Required. Value for parent. * @param activeDirectory Required. Fields of the to be created active directory. * @param activeDirectoryId Required. ID of the active directory to create. Must be unique within - * the parent resource. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * the parent resource. Must contain only letters, numbers and hyphen, with the first + * character a letter , the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createActiveDirectoryAsync( @@ -4459,9 +4481,8 @@ public final ListKmsConfigsPagedResponse listKmsConfigs(ListKmsConfigsRequest re * @param parent Required. Value for parent. * @param kmsConfig Required. The required parameters to create a new KmsConfig. * @param kmsConfigId Required. Id of the requesting KmsConfig. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKmsConfigAsync( @@ -4498,9 +4519,8 @@ public final OperationFuture createKmsConfigAsync( * @param parent Required. Value for parent. * @param kmsConfig Required. The required parameters to create a new KmsConfig. * @param kmsConfigId Required. Id of the requesting KmsConfig. Must be unique within the parent - * resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * resource. Must contain only letters, numbers and hyphen, with the first character a letter, + * the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKmsConfigAsync( @@ -5433,9 +5453,8 @@ public final UnaryCallable getReplicationCal * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param replication Required. A replication resource * @param replicationId Required. ID of the replication to create. Must be unique within the - * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * parent resource. Must contain only letters, numbers and hyphen, with the first character a + * letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReplicationAsync( @@ -5474,9 +5493,8 @@ public final OperationFuture createReplicationAs * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * @param replication Required. A replication resource * @param replicationId Required. ID of the replication to create. Must be unique within the - * parent resource. Must contain only letters, numbers, underscore and hyphen, with the first - * character a letter or underscore, the last a letter or underscore or a number, and a 63 - * character maximum. + * parent resource. Must contain only letters, numbers and hyphen, with the first character a + * letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReplicationAsync( @@ -6132,6 +6150,203 @@ public final OperationFuture reverseReplicationD return stub.reverseReplicationDirectionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish replication peering. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   EstablishPeeringRequest request =
      +   *       EstablishPeeringRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .setPeerClusterName("peerClusterName313022691")
      +   *           .setPeerSvmName("peerSvmName1014209619")
      +   *           .addAllPeerIpAddresses(new ArrayList())
      +   *           .setPeerVolumeName("peerVolumeName1542206407")
      +   *           .build();
      +   *   Replication response = netAppClient.establishPeeringAsync(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 establishPeeringAsync( + EstablishPeeringRequest request) { + return establishPeeringOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish replication peering. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   EstablishPeeringRequest request =
      +   *       EstablishPeeringRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .setPeerClusterName("peerClusterName313022691")
      +   *           .setPeerSvmName("peerSvmName1014209619")
      +   *           .addAllPeerIpAddresses(new ArrayList())
      +   *           .setPeerVolumeName("peerVolumeName1542206407")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       netAppClient.establishPeeringOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Replication response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + establishPeeringOperationCallable() { + return stub.establishPeeringOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish replication peering. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   EstablishPeeringRequest request =
      +   *       EstablishPeeringRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .setPeerClusterName("peerClusterName313022691")
      +   *           .setPeerSvmName("peerSvmName1014209619")
      +   *           .addAllPeerIpAddresses(new ArrayList())
      +   *           .setPeerVolumeName("peerVolumeName1542206407")
      +   *           .build();
      +   *   ApiFuture future = netAppClient.establishPeeringCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable establishPeeringCallable() { + return stub.establishPeeringCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Syncs the replication. This will invoke one time volume data transfer from source to + * destination. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   SyncReplicationRequest request =
      +   *       SyncReplicationRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   Replication response = netAppClient.syncReplicationAsync(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 syncReplicationAsync( + SyncReplicationRequest request) { + return syncReplicationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Syncs the replication. This will invoke one time volume data transfer from source to + * destination. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   SyncReplicationRequest request =
      +   *       SyncReplicationRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       netAppClient.syncReplicationOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Replication response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + syncReplicationOperationCallable() { + return stub.syncReplicationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Syncs the replication. This will invoke one time volume data transfer from source to + * destination. + * + *

      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 (NetAppClient netAppClient = NetAppClient.create()) {
      +   *   SyncReplicationRequest request =
      +   *       SyncReplicationRequest.newBuilder()
      +   *           .setName(
      +   *               ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future = netAppClient.syncReplicationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable syncReplicationCallable() { + return stub.syncReplicationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new backup vault @@ -6157,9 +6372,8 @@ public final OperationFuture reverseReplicationD * `projects/{project_id}/locations/{location}` * @param backupVault Required. A backupVault resource * @param backupVaultId Required. The ID to use for the backupVault. The ID must be unique within - * the specified location. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * the specified location. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( @@ -6198,9 +6412,8 @@ public final OperationFuture createBackupVaultAs * `projects/{project_id}/locations/{location}` * @param backupVault Required. A backupVault resource * @param backupVaultId Required. The ID to use for the backupVault. The ID must be unique within - * the specified location. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * the specified location. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( @@ -6880,9 +7093,8 @@ public final UnaryCallable deleteBackupVaul * `projects/*/locations/*/backupVaults/{backup_vault_id}` * @param backup Required. A backup resource * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * specified backupVault. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( @@ -6922,9 +7134,8 @@ public final OperationFuture createBackupAsync( * `projects/*/locations/*/backupVaults/{backup_vault_id}` * @param backup Required. A backup resource * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the - * first character a letter or underscore, the last a letter or underscore or a number, and a - * 63 character maximum. + * specified backupVault. Must contain only letters, numbers and hyphen, with the first + * character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( @@ -7615,9 +7826,8 @@ public final UnaryCallable updateBackupCallable( * `projects/{project_id}/locations/{location}` * @param backupPolicy Required. A backupPolicy resource * @param backupPolicyId Required. The ID to use for the backup policy. The ID must be unique - * within the specified location. Must contain only letters, numbers, underscore and hyphen, - * with the first character a letter or underscore, the last a letter or underscore or a - * number, and a 63 character maximum. + * within the specified location. Must contain only letters, numbers and hyphen, with the + * first character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPolicyAsync( @@ -7656,9 +7866,8 @@ public final OperationFuture createBackupPolicy * `projects/{project_id}/locations/{location}` * @param backupPolicy Required. A backupPolicy resource * @param backupPolicyId Required. The ID to use for the backup policy. The ID must be unique - * within the specified location. Must contain only letters, numbers, underscore and hyphen, - * with the first character a letter or underscore, the last a letter or underscore or a - * number, and a 63 character maximum. + * within the specified location. Must contain only letters, numbers and hyphen, with the + * first character a letter, the last a letter or a number, and a 63 character maximum. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPolicyAsync( diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java index 94d53cdd207a..27dc856022ef 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java @@ -476,6 +476,28 @@ public UnaryCallSettings resumeReplicationS return ((NetAppStubSettings) getStubSettings()).reverseReplicationDirectionOperationSettings(); } + /** Returns the object with the settings used for calls to establishPeering. */ + public UnaryCallSettings establishPeeringSettings() { + return ((NetAppStubSettings) getStubSettings()).establishPeeringSettings(); + } + + /** Returns the object with the settings used for calls to establishPeering. */ + public OperationCallSettings + establishPeeringOperationSettings() { + return ((NetAppStubSettings) getStubSettings()).establishPeeringOperationSettings(); + } + + /** Returns the object with the settings used for calls to syncReplication. */ + public UnaryCallSettings syncReplicationSettings() { + return ((NetAppStubSettings) getStubSettings()).syncReplicationSettings(); + } + + /** Returns the object with the settings used for calls to syncReplication. */ + public OperationCallSettings + syncReplicationOperationSettings() { + return ((NetAppStubSettings) getStubSettings()).syncReplicationOperationSettings(); + } + /** Returns the object with the settings used for calls to createBackupVault. */ public UnaryCallSettings createBackupVaultSettings() { return ((NetAppStubSettings) getStubSettings()).createBackupVaultSettings(); @@ -1093,6 +1115,29 @@ public UnaryCallSettings.Builder stopReplicat return getStubSettingsBuilder().reverseReplicationDirectionOperationSettings(); } + /** Returns the builder for the settings used for calls to establishPeering. */ + public UnaryCallSettings.Builder + establishPeeringSettings() { + return getStubSettingsBuilder().establishPeeringSettings(); + } + + /** Returns the builder for the settings used for calls to establishPeering. */ + public OperationCallSettings.Builder + establishPeeringOperationSettings() { + return getStubSettingsBuilder().establishPeeringOperationSettings(); + } + + /** Returns the builder for the settings used for calls to syncReplication. */ + public UnaryCallSettings.Builder syncReplicationSettings() { + return getStubSettingsBuilder().syncReplicationSettings(); + } + + /** Returns the builder for the settings used for calls to syncReplication. */ + public OperationCallSettings.Builder + syncReplicationOperationSettings() { + return getStubSettingsBuilder().syncReplicationOperationSettings(); + } + /** Returns the builder for the settings used for calls to createBackupVault. */ public UnaryCallSettings.Builder createBackupVaultSettings() { diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json index eb22af51372e..25c17c6e53f7 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json @@ -67,6 +67,9 @@ "EncryptVolumes": { "methods": ["encryptVolumesAsync", "encryptVolumesOperationCallable", "encryptVolumesCallable"] }, + "EstablishPeering": { + "methods": ["establishPeeringAsync", "establishPeeringOperationCallable", "establishPeeringCallable"] + }, "GetActiveDirectory": { "methods": ["getActiveDirectory", "getActiveDirectory", "getActiveDirectory", "getActiveDirectoryCallable"] }, @@ -142,6 +145,9 @@ "SwitchActiveReplicaZone": { "methods": ["switchActiveReplicaZoneAsync", "switchActiveReplicaZoneOperationCallable", "switchActiveReplicaZoneCallable"] }, + "SyncReplication": { + "methods": ["syncReplicationAsync", "syncReplicationOperationCallable", "syncReplicationCallable"] + }, "UpdateActiveDirectory": { "methods": ["updateActiveDirectoryAsync", "updateActiveDirectoryAsync", "updateActiveDirectoryOperationCallable", "updateActiveDirectoryCallable"] }, diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java index 92c5f45414ad..a2b972848d48 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java @@ -62,6 +62,7 @@ import com.google.cloud.netapp.v1.DeleteStoragePoolRequest; import com.google.cloud.netapp.v1.DeleteVolumeRequest; import com.google.cloud.netapp.v1.EncryptVolumesRequest; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; import com.google.cloud.netapp.v1.GetActiveDirectoryRequest; import com.google.cloud.netapp.v1.GetBackupPolicyRequest; import com.google.cloud.netapp.v1.GetBackupRequest; @@ -99,6 +100,7 @@ import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; +import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; @@ -495,6 +497,26 @@ public class GrpcNetAppStub extends NetAppStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + establishPeeringMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/EstablishPeering") + .setRequestMarshaller( + ProtoUtils.marshaller(EstablishPeeringRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + syncReplicationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.netapp.v1.NetApp/SyncReplication") + .setRequestMarshaller( + ProtoUtils.marshaller(SyncReplicationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createBackupVaultMethodDescriptor = MethodDescriptor.newBuilder() @@ -769,6 +791,12 @@ public class GrpcNetAppStub extends NetAppStub { private final OperationCallable< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationCallable; + private final UnaryCallable establishPeeringCallable; + private final OperationCallable + establishPeeringOperationCallable; + private final UnaryCallable syncReplicationCallable; + private final OperationCallable + syncReplicationOperationCallable; private final UnaryCallable createBackupVaultCallable; private final OperationCallable createBackupVaultOperationCallable; @@ -1240,6 +1268,26 @@ protected GrpcNetAppStub( return builder.build(); }) .build(); + GrpcCallSettings establishPeeringTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(establishPeeringMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings syncReplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(syncReplicationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createBackupVaultTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBackupVaultMethodDescriptor) @@ -1718,6 +1766,24 @@ protected GrpcNetAppStub( settings.reverseReplicationDirectionOperationSettings(), clientContext, operationsStub); + this.establishPeeringCallable = + callableFactory.createUnaryCallable( + establishPeeringTransportSettings, settings.establishPeeringSettings(), clientContext); + this.establishPeeringOperationCallable = + callableFactory.createOperationCallable( + establishPeeringTransportSettings, + settings.establishPeeringOperationSettings(), + clientContext, + operationsStub); + this.syncReplicationCallable = + callableFactory.createUnaryCallable( + syncReplicationTransportSettings, settings.syncReplicationSettings(), clientContext); + this.syncReplicationOperationCallable = + callableFactory.createOperationCallable( + syncReplicationTransportSettings, + settings.syncReplicationOperationSettings(), + clientContext, + operationsStub); this.createBackupVaultCallable = callableFactory.createUnaryCallable( createBackupVaultTransportSettings, @@ -2229,6 +2295,28 @@ public UnaryCallable resumeReplicationCalla return reverseReplicationDirectionOperationCallable; } + @Override + public UnaryCallable establishPeeringCallable() { + return establishPeeringCallable; + } + + @Override + public OperationCallable + establishPeeringOperationCallable() { + return establishPeeringOperationCallable; + } + + @Override + public UnaryCallable syncReplicationCallable() { + return syncReplicationCallable; + } + + @Override + public OperationCallable + syncReplicationOperationCallable() { + return syncReplicationOperationCallable; + } + @Override public UnaryCallable createBackupVaultCallable() { return createBackupVaultCallable; diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java index 3dcc2c3470d9..a758551bd6c5 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java @@ -70,6 +70,7 @@ import com.google.cloud.netapp.v1.DeleteStoragePoolRequest; import com.google.cloud.netapp.v1.DeleteVolumeRequest; import com.google.cloud.netapp.v1.EncryptVolumesRequest; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; import com.google.cloud.netapp.v1.GetActiveDirectoryRequest; import com.google.cloud.netapp.v1.GetBackupPolicyRequest; import com.google.cloud.netapp.v1.GetBackupRequest; @@ -107,6 +108,7 @@ import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; +import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; @@ -1591,6 +1593,86 @@ public class HttpJsonNetAppStub extends NetAppStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + establishPeeringMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/EstablishPeering") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (EstablishPeeringRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + syncReplicationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.netapp.v1.NetApp/SyncReplication") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SyncReplicationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor createBackupVaultMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2344,6 +2426,12 @@ public class HttpJsonNetAppStub extends NetAppStub { private final OperationCallable< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationCallable; + private final UnaryCallable establishPeeringCallable; + private final OperationCallable + establishPeeringOperationCallable; + private final UnaryCallable syncReplicationCallable; + private final OperationCallable + syncReplicationOperationCallable; private final UnaryCallable createBackupVaultCallable; private final OperationCallable createBackupVaultOperationCallable; @@ -2881,6 +2969,28 @@ protected HttpJsonNetAppStub( return builder.build(); }) .build(); + HttpJsonCallSettings establishPeeringTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(establishPeeringMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings syncReplicationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(syncReplicationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createBackupVaultTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createBackupVaultMethodDescriptor) @@ -3377,6 +3487,24 @@ protected HttpJsonNetAppStub( settings.reverseReplicationDirectionOperationSettings(), clientContext, httpJsonOperationsStub); + this.establishPeeringCallable = + callableFactory.createUnaryCallable( + establishPeeringTransportSettings, settings.establishPeeringSettings(), clientContext); + this.establishPeeringOperationCallable = + callableFactory.createOperationCallable( + establishPeeringTransportSettings, + settings.establishPeeringOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.syncReplicationCallable = + callableFactory.createUnaryCallable( + syncReplicationTransportSettings, settings.syncReplicationSettings(), clientContext); + this.syncReplicationOperationCallable = + callableFactory.createOperationCallable( + syncReplicationTransportSettings, + settings.syncReplicationOperationSettings(), + clientContext, + httpJsonOperationsStub); this.createBackupVaultCallable = callableFactory.createUnaryCallable( createBackupVaultTransportSettings, @@ -3555,6 +3683,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(stopReplicationMethodDescriptor); methodDescriptors.add(resumeReplicationMethodDescriptor); methodDescriptors.add(reverseReplicationDirectionMethodDescriptor); + methodDescriptors.add(establishPeeringMethodDescriptor); + methodDescriptors.add(syncReplicationMethodDescriptor); methodDescriptors.add(createBackupVaultMethodDescriptor); methodDescriptors.add(getBackupVaultMethodDescriptor); methodDescriptors.add(listBackupVaultsMethodDescriptor); @@ -3948,6 +4078,28 @@ public UnaryCallable resumeReplicationCalla return reverseReplicationDirectionOperationCallable; } + @Override + public UnaryCallable establishPeeringCallable() { + return establishPeeringCallable; + } + + @Override + public OperationCallable + establishPeeringOperationCallable() { + return establishPeeringOperationCallable; + } + + @Override + public UnaryCallable syncReplicationCallable() { + return syncReplicationCallable; + } + + @Override + public OperationCallable + syncReplicationOperationCallable() { + return syncReplicationOperationCallable; + } + @Override public UnaryCallable createBackupVaultCallable() { return createBackupVaultCallable; diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java index f6b4af656dce..36644f20a4bb 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java @@ -57,6 +57,7 @@ import com.google.cloud.netapp.v1.DeleteStoragePoolRequest; import com.google.cloud.netapp.v1.DeleteVolumeRequest; import com.google.cloud.netapp.v1.EncryptVolumesRequest; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; import com.google.cloud.netapp.v1.GetActiveDirectoryRequest; import com.google.cloud.netapp.v1.GetBackupPolicyRequest; import com.google.cloud.netapp.v1.GetBackupRequest; @@ -94,6 +95,7 @@ import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; +import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; @@ -444,6 +446,24 @@ public UnaryCallable resumeReplicationCalla "Not implemented: reverseReplicationDirectionCallable()"); } + public OperationCallable + establishPeeringOperationCallable() { + throw new UnsupportedOperationException("Not implemented: establishPeeringOperationCallable()"); + } + + public UnaryCallable establishPeeringCallable() { + throw new UnsupportedOperationException("Not implemented: establishPeeringCallable()"); + } + + public OperationCallable + syncReplicationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: syncReplicationOperationCallable()"); + } + + public UnaryCallable syncReplicationCallable() { + throw new UnsupportedOperationException("Not implemented: syncReplicationCallable()"); + } + public OperationCallable createBackupVaultOperationCallable() { throw new UnsupportedOperationException( diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java index b084ff7211e3..f52d45cda1e9 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java @@ -84,6 +84,7 @@ import com.google.cloud.netapp.v1.DeleteStoragePoolRequest; import com.google.cloud.netapp.v1.DeleteVolumeRequest; import com.google.cloud.netapp.v1.EncryptVolumesRequest; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; import com.google.cloud.netapp.v1.GetActiveDirectoryRequest; import com.google.cloud.netapp.v1.GetBackupPolicyRequest; import com.google.cloud.netapp.v1.GetBackupRequest; @@ -121,6 +122,7 @@ import com.google.cloud.netapp.v1.StopReplicationRequest; import com.google.cloud.netapp.v1.StoragePool; import com.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest; +import com.google.cloud.netapp.v1.SyncReplicationRequest; import com.google.cloud.netapp.v1.UpdateActiveDirectoryRequest; import com.google.cloud.netapp.v1.UpdateBackupPolicyRequest; import com.google.cloud.netapp.v1.UpdateBackupRequest; @@ -333,6 +335,12 @@ public class NetAppStubSettings extends StubSettings { private final OperationCallSettings< ReverseReplicationDirectionRequest, Replication, OperationMetadata> reverseReplicationDirectionOperationSettings; + private final UnaryCallSettings establishPeeringSettings; + private final OperationCallSettings + establishPeeringOperationSettings; + private final UnaryCallSettings syncReplicationSettings; + private final OperationCallSettings + syncReplicationOperationSettings; private final UnaryCallSettings createBackupVaultSettings; private final OperationCallSettings createBackupVaultOperationSettings; @@ -1273,6 +1281,28 @@ public UnaryCallSettings resumeReplicationS return reverseReplicationDirectionOperationSettings; } + /** Returns the object with the settings used for calls to establishPeering. */ + public UnaryCallSettings establishPeeringSettings() { + return establishPeeringSettings; + } + + /** Returns the object with the settings used for calls to establishPeering. */ + public OperationCallSettings + establishPeeringOperationSettings() { + return establishPeeringOperationSettings; + } + + /** Returns the object with the settings used for calls to syncReplication. */ + public UnaryCallSettings syncReplicationSettings() { + return syncReplicationSettings; + } + + /** Returns the object with the settings used for calls to syncReplication. */ + public OperationCallSettings + syncReplicationOperationSettings() { + return syncReplicationOperationSettings; + } + /** Returns the object with the settings used for calls to createBackupVault. */ public UnaryCallSettings createBackupVaultSettings() { return createBackupVaultSettings; @@ -1601,6 +1631,10 @@ protected NetAppStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.reverseReplicationDirectionSettings().build(); reverseReplicationDirectionOperationSettings = settingsBuilder.reverseReplicationDirectionOperationSettings().build(); + establishPeeringSettings = settingsBuilder.establishPeeringSettings().build(); + establishPeeringOperationSettings = settingsBuilder.establishPeeringOperationSettings().build(); + syncReplicationSettings = settingsBuilder.syncReplicationSettings().build(); + syncReplicationOperationSettings = settingsBuilder.syncReplicationOperationSettings().build(); createBackupVaultSettings = settingsBuilder.createBackupVaultSettings().build(); createBackupVaultOperationSettings = settingsBuilder.createBackupVaultOperationSettings().build(); @@ -1774,6 +1808,16 @@ public static class Builder extends StubSettings.Builder reverseReplicationDirectionOperationSettings; + private final UnaryCallSettings.Builder + establishPeeringSettings; + private final OperationCallSettings.Builder< + EstablishPeeringRequest, Replication, OperationMetadata> + establishPeeringOperationSettings; + private final UnaryCallSettings.Builder + syncReplicationSettings; + private final OperationCallSettings.Builder< + SyncReplicationRequest, Replication, OperationMetadata> + syncReplicationOperationSettings; private final UnaryCallSettings.Builder createBackupVaultSettings; private final OperationCallSettings.Builder< @@ -1942,6 +1986,10 @@ protected Builder(ClientContext clientContext) { resumeReplicationOperationSettings = OperationCallSettings.newBuilder(); reverseReplicationDirectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); reverseReplicationDirectionOperationSettings = OperationCallSettings.newBuilder(); + establishPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + establishPeeringOperationSettings = OperationCallSettings.newBuilder(); + syncReplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + syncReplicationOperationSettings = OperationCallSettings.newBuilder(); createBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupVaultOperationSettings = OperationCallSettings.newBuilder(); getBackupVaultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2008,6 +2056,8 @@ protected Builder(ClientContext clientContext) { stopReplicationSettings, resumeReplicationSettings, reverseReplicationDirectionSettings, + establishPeeringSettings, + syncReplicationSettings, createBackupVaultSettings, getBackupVaultSettings, listBackupVaultsSettings, @@ -2098,6 +2148,10 @@ protected Builder(NetAppStubSettings settings) { settings.reverseReplicationDirectionSettings.toBuilder(); reverseReplicationDirectionOperationSettings = settings.reverseReplicationDirectionOperationSettings.toBuilder(); + establishPeeringSettings = settings.establishPeeringSettings.toBuilder(); + establishPeeringOperationSettings = settings.establishPeeringOperationSettings.toBuilder(); + syncReplicationSettings = settings.syncReplicationSettings.toBuilder(); + syncReplicationOperationSettings = settings.syncReplicationOperationSettings.toBuilder(); createBackupVaultSettings = settings.createBackupVaultSettings.toBuilder(); createBackupVaultOperationSettings = settings.createBackupVaultOperationSettings.toBuilder(); getBackupVaultSettings = settings.getBackupVaultSettings.toBuilder(); @@ -2167,6 +2221,8 @@ protected Builder(NetAppStubSettings settings) { stopReplicationSettings, resumeReplicationSettings, reverseReplicationDirectionSettings, + establishPeeringSettings, + syncReplicationSettings, createBackupVaultSettings, getBackupVaultSettings, listBackupVaultsSettings, @@ -2396,6 +2452,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .establishPeeringSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .syncReplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createBackupVaultSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -3058,6 +3124,54 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .establishPeeringOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .syncReplicationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Replication.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .createBackupVaultOperationSettings() .setInitialCallSettings( @@ -3653,6 +3767,29 @@ public UnaryCallSettings.Builder stopReplicat return reverseReplicationDirectionOperationSettings; } + /** Returns the builder for the settings used for calls to establishPeering. */ + public UnaryCallSettings.Builder + establishPeeringSettings() { + return establishPeeringSettings; + } + + /** Returns the builder for the settings used for calls to establishPeering. */ + public OperationCallSettings.Builder + establishPeeringOperationSettings() { + return establishPeeringOperationSettings; + } + + /** Returns the builder for the settings used for calls to syncReplication. */ + public UnaryCallSettings.Builder syncReplicationSettings() { + return syncReplicationSettings; + } + + /** Returns the builder for the settings used for calls to syncReplication. */ + public OperationCallSettings.Builder + syncReplicationOperationSettings() { + return syncReplicationOperationSettings; + } + /** Returns the builder for the settings used for calls to createBackupVault. */ public UnaryCallSettings.Builder createBackupVaultSettings() { diff --git a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json index 12b0b5a807fc..de7cbcbbf36f 100644 --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -413,6 +440,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -1016,6 +1061,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.EstablishPeeringRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.EstablishPeeringRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.ExportPolicy", "queryAllDeclaredConstructors": true, @@ -1214,6 +1277,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.HybridPeeringDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.HybridPeeringDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.HybridReplicationParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.HybridReplicationParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.KmsConfig", "queryAllDeclaredConstructors": true, @@ -1664,6 +1763,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.Replication$HybridReplicationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.Replication$MirrorState", "queryAllDeclaredConstructors": true, @@ -1934,6 +2042,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.SyncReplicationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.SyncReplicationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.TieringPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java index 0bf2c759d410..335ab9f170f1 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java @@ -835,6 +835,48 @@ public void reverseReplicationDirection( } } + @Override + public void establishPeering( + EstablishPeeringRequest 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 EstablishPeering, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void syncReplication( + SyncReplicationRequest 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 SyncReplication, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createBackupVault( CreateBackupVaultRequest request, StreamObserver responseObserver) { diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java index 59d94f50786d..90687cf6ab83 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java @@ -888,6 +888,7 @@ public void getVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -969,6 +970,7 @@ public void getVolumeTest2() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1050,6 +1052,7 @@ public void createVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1140,6 +1143,7 @@ public void createVolumeTest2() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1230,6 +1234,7 @@ public void updateVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1279,6 +1284,7 @@ public void updateVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1349,6 +1355,7 @@ public void updateVolumeExceptionTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateVolumeAsync(volume, updateMask).get(); @@ -1489,6 +1496,7 @@ public void revertVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3348,6 +3356,8 @@ public void getReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); mockService.addResponse(expectedResponse); @@ -3405,6 +3415,8 @@ public void getReplicationTest2() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); mockService.addResponse(expectedResponse); @@ -3462,6 +3474,8 @@ public void createReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3527,6 +3541,8 @@ public void createReplicationTest2() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3686,6 +3702,8 @@ public void updateReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3709,6 +3727,8 @@ public void updateReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3752,6 +3772,8 @@ public void updateReplicationExceptionTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateReplicationAsync(replication, updateMask).get(); @@ -3776,6 +3798,8 @@ public void stopReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3848,6 +3872,8 @@ public void resumeReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3918,6 +3944,8 @@ public void reverseReplicationDirectionTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3972,6 +4000,158 @@ public void reverseReplicationDirectionExceptionTest() throws Exception { } } + @Test + public void establishPeeringTest() throws Exception { + Replication expectedResponse = + Replication.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setStateDetails("stateDetails1730982001") + .setHealthy(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setDestinationVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setTransferStats(TransferStats.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) + .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("establishPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + + Replication actualResponse = client.establishPeeringAsync(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 establishPeeringExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + client.establishPeeringAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void syncReplicationTest() throws Exception { + Replication expectedResponse = + Replication.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setStateDetails("stateDetails1730982001") + .setHealthy(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setDestinationVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setTransferStats(TransferStats.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) + .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncReplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + + Replication actualResponse = client.syncReplicationAsync(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 syncReplicationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + client.syncReplicationAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void createBackupVaultTest() throws Exception { BackupVault expectedResponse = diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java index 3ef1c4db8c17..3350e978cf88 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java @@ -803,6 +803,7 @@ public void getVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -878,6 +879,7 @@ public void getVolumeTest2() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -953,6 +955,7 @@ public void createVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1042,6 +1045,7 @@ public void createVolumeTest2() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1131,6 +1135,7 @@ public void updateVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1301,6 +1306,7 @@ public void revertVolumeTest() throws Exception { .setReplicaZone("replicaZone-1063236476") .setZone("zone3744684") .setColdTierSizeGib(212809252) + .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2947,6 +2953,8 @@ public void getReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); mockNetApp.addResponse(expectedResponse); @@ -2998,6 +3006,8 @@ public void getReplicationTest2() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); mockNetApp.addResponse(expectedResponse); @@ -3047,6 +3057,8 @@ public void createReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3111,6 +3123,8 @@ public void createReplicationTest2() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3261,6 +3275,8 @@ public void updateReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3321,6 +3337,8 @@ public void stopReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3391,6 +3409,8 @@ public void resumeReplicationTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3458,6 +3478,8 @@ public void reverseReplicationDirectionTest() throws Exception { .setDescription("description-1724546052") .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") .build(); Operation resultOperation = Operation.newBuilder() @@ -3510,6 +3532,156 @@ public void reverseReplicationDirectionExceptionTest() throws Exception { } } + @Test + public void establishPeeringTest() throws Exception { + Replication expectedResponse = + Replication.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setStateDetails("stateDetails1730982001") + .setHealthy(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setDestinationVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setTransferStats(TransferStats.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) + .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("establishPeeringTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + + Replication actualResponse = client.establishPeeringAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EstablishPeeringRequest actualRequest = ((EstablishPeeringRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getPeerClusterName(), actualRequest.getPeerClusterName()); + Assert.assertEquals(request.getPeerSvmName(), actualRequest.getPeerSvmName()); + Assert.assertEquals(request.getPeerIpAddressesList(), actualRequest.getPeerIpAddressesList()); + Assert.assertEquals(request.getPeerVolumeName(), actualRequest.getPeerVolumeName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void establishPeeringExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + client.establishPeeringAsync(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 syncReplicationTest() throws Exception { + Replication expectedResponse = + Replication.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setStateDetails("stateDetails1730982001") + .setHealthy(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setDestinationVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setTransferStats(TransferStats.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setDestinationVolumeParameters(DestinationVolumeParameters.newBuilder().build()) + .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) + .setClusterLocation("clusterLocation-732398641") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("syncReplicationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetApp.addResponse(resultOperation); + + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + + Replication actualResponse = client.syncReplicationAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetApp.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SyncReplicationRequest actualRequest = ((SyncReplicationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void syncReplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetApp.addException(exception); + + try { + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + client.syncReplicationAsync(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 createBackupVaultTest() throws Exception { BackupVault expectedResponse = diff --git a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java index 04c4457cf8ff..03f5c0c996b3 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java +++ b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java @@ -1636,6 +1636,90 @@ private NetAppGrpc() {} return getReverseReplicationDirectionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.EstablishPeeringRequest, com.google.longrunning.Operation> + getEstablishPeeringMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EstablishPeering", + requestType = com.google.cloud.netapp.v1.EstablishPeeringRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.EstablishPeeringRequest, com.google.longrunning.Operation> + getEstablishPeeringMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.EstablishPeeringRequest, com.google.longrunning.Operation> + getEstablishPeeringMethod; + if ((getEstablishPeeringMethod = NetAppGrpc.getEstablishPeeringMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getEstablishPeeringMethod = NetAppGrpc.getEstablishPeeringMethod) == null) { + NetAppGrpc.getEstablishPeeringMethod = + getEstablishPeeringMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstablishPeering")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.EstablishPeeringRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("EstablishPeering")) + .build(); + } + } + } + return getEstablishPeeringMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.SyncReplicationRequest, com.google.longrunning.Operation> + getSyncReplicationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SyncReplication", + requestType = com.google.cloud.netapp.v1.SyncReplicationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.SyncReplicationRequest, com.google.longrunning.Operation> + getSyncReplicationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.netapp.v1.SyncReplicationRequest, com.google.longrunning.Operation> + getSyncReplicationMethod; + if ((getSyncReplicationMethod = NetAppGrpc.getSyncReplicationMethod) == null) { + synchronized (NetAppGrpc.class) { + if ((getSyncReplicationMethod = NetAppGrpc.getSyncReplicationMethod) == null) { + NetAppGrpc.getSyncReplicationMethod = + getSyncReplicationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SyncReplication")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.netapp.v1.SyncReplicationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("SyncReplication")) + .build(); + } + } + } + return getSyncReplicationMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.netapp.v1.CreateBackupVaultRequest, com.google.longrunning.Operation> getCreateBackupVaultMethod; @@ -2855,6 +2939,35 @@ default void reverseReplicationDirection( getReverseReplicationDirectionMethod(), responseObserver); } + /** + * + * + *
      +     * Establish replication peering.
      +     * 
      + */ + default void establishPeering( + com.google.cloud.netapp.v1.EstablishPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEstablishPeeringMethod(), responseObserver); + } + + /** + * + * + *
      +     * Syncs the replication. This will invoke one time volume data transfer from
      +     * source to destination.
      +     * 
      + */ + default void syncReplication( + com.google.cloud.netapp.v1.SyncReplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSyncReplicationMethod(), responseObserver); + } + /** * * @@ -3706,6 +3819,39 @@ public void reverseReplicationDirection( responseObserver); } + /** + * + * + *
      +     * Establish replication peering.
      +     * 
      + */ + public void establishPeering( + com.google.cloud.netapp.v1.EstablishPeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEstablishPeeringMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Syncs the replication. This will invoke one time volume data transfer from
      +     * source to destination.
      +     * 
      + */ + public void syncReplication( + com.google.cloud.netapp.v1.SyncReplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSyncReplicationMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4456,6 +4602,33 @@ public com.google.longrunning.Operation reverseReplicationDirection( getChannel(), getReverseReplicationDirectionMethod(), getCallOptions(), request); } + /** + * + * + *
      +     * Establish replication peering.
      +     * 
      + */ + public com.google.longrunning.Operation establishPeering( + com.google.cloud.netapp.v1.EstablishPeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEstablishPeeringMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Syncs the replication. This will invoke one time volume data transfer from
      +     * source to destination.
      +     * 
      + */ + public com.google.longrunning.Operation syncReplication( + com.google.cloud.netapp.v1.SyncReplicationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSyncReplicationMethod(), getCallOptions(), request); + } + /** * * @@ -5171,6 +5344,33 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getReverseReplicationDirectionMethod(), getCallOptions()), request); } + /** + * + * + *
      +     * Establish replication peering.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + establishPeering(com.google.cloud.netapp.v1.EstablishPeeringRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEstablishPeeringMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Syncs the replication. This will invoke one time volume data transfer from
      +     * source to destination.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + syncReplication(com.google.cloud.netapp.v1.SyncReplicationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSyncReplicationMethod(), getCallOptions()), request); + } + /** * * @@ -5412,21 +5612,23 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_STOP_REPLICATION = 34; private static final int METHODID_RESUME_REPLICATION = 35; private static final int METHODID_REVERSE_REPLICATION_DIRECTION = 36; - private static final int METHODID_CREATE_BACKUP_VAULT = 37; - private static final int METHODID_GET_BACKUP_VAULT = 38; - private static final int METHODID_LIST_BACKUP_VAULTS = 39; - private static final int METHODID_UPDATE_BACKUP_VAULT = 40; - private static final int METHODID_DELETE_BACKUP_VAULT = 41; - private static final int METHODID_CREATE_BACKUP = 42; - private static final int METHODID_GET_BACKUP = 43; - private static final int METHODID_LIST_BACKUPS = 44; - private static final int METHODID_DELETE_BACKUP = 45; - private static final int METHODID_UPDATE_BACKUP = 46; - private static final int METHODID_CREATE_BACKUP_POLICY = 47; - private static final int METHODID_GET_BACKUP_POLICY = 48; - private static final int METHODID_LIST_BACKUP_POLICIES = 49; - private static final int METHODID_UPDATE_BACKUP_POLICY = 50; - private static final int METHODID_DELETE_BACKUP_POLICY = 51; + private static final int METHODID_ESTABLISH_PEERING = 37; + private static final int METHODID_SYNC_REPLICATION = 38; + private static final int METHODID_CREATE_BACKUP_VAULT = 39; + private static final int METHODID_GET_BACKUP_VAULT = 40; + private static final int METHODID_LIST_BACKUP_VAULTS = 41; + private static final int METHODID_UPDATE_BACKUP_VAULT = 42; + private static final int METHODID_DELETE_BACKUP_VAULT = 43; + private static final int METHODID_CREATE_BACKUP = 44; + private static final int METHODID_GET_BACKUP = 45; + private static final int METHODID_LIST_BACKUPS = 46; + private static final int METHODID_DELETE_BACKUP = 47; + private static final int METHODID_UPDATE_BACKUP = 48; + private static final int METHODID_CREATE_BACKUP_POLICY = 49; + private static final int METHODID_GET_BACKUP_POLICY = 50; + private static final int METHODID_LIST_BACKUP_POLICIES = 51; + private static final int METHODID_UPDATE_BACKUP_POLICY = 52; + private static final int METHODID_DELETE_BACKUP_POLICY = 53; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5641,6 +5843,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ESTABLISH_PEERING: + serviceImpl.establishPeering( + (com.google.cloud.netapp.v1.EstablishPeeringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SYNC_REPLICATION: + serviceImpl.syncReplication( + (com.google.cloud.netapp.v1.SyncReplicationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_BACKUP_VAULT: serviceImpl.createBackupVault( (com.google.cloud.netapp.v1.CreateBackupVaultRequest) request, @@ -5971,6 +6183,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.netapp.v1.ReverseReplicationDirectionRequest, com.google.longrunning.Operation>( service, METHODID_REVERSE_REPLICATION_DIRECTION))) + .addMethod( + getEstablishPeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.EstablishPeeringRequest, + com.google.longrunning.Operation>(service, METHODID_ESTABLISH_PEERING))) + .addMethod( + getSyncReplicationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.SyncReplicationRequest, + com.google.longrunning.Operation>(service, METHODID_SYNC_REPLICATION))) .addMethod( getCreateBackupVaultMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6150,6 +6374,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getStopReplicationMethod()) .addMethod(getResumeReplicationMethod()) .addMethod(getReverseReplicationDirectionMethod()) + .addMethod(getEstablishPeeringMethod()) + .addMethod(getSyncReplicationMethod()) .addMethod(getCreateBackupVaultMethod()) .addMethod(getGetBackupVaultMethod()) .addMethod(getListBackupVaultsMethod()) 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 497cdb960ddb..2d479e892cf9 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 @@ -170,6 +170,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 6; */ ERROR(6), + /** + * + * + *
      +     * Active Directory State is Diagnosing.
      +     * 
      + * + * DIAGNOSING = 7; + */ + DIAGNOSING(7), UNRECOGNIZED(-1), ; @@ -243,6 +253,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 6; */ public static final int ERROR_VALUE = 6; + /** + * + * + *
      +     * Active Directory State is Diagnosing.
      +     * 
      + * + * DIAGNOSING = 7; + */ + public static final int DIAGNOSING_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -282,6 +302,8 @@ public static State forNumber(int value) { return DELETING; case 6: return ERROR; + case 7: + return DIAGNOSING; default: return null; } 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 1791f06c89c9..6832110e2bf4 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\"\332\007\n\017ActiveDirectory" + + ".com/ActiveDirectory\"\352\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" @@ -113,19 +113,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\024 \003(\01323.google.cloud.netapp.v1.A" + "ctiveDirectory.LabelsEntry\022\032\n\rstate_deta" + "ils\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_" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\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}/loca" - + "tions/{location}/activeDirectories/{acti" - + "ve_directory}*\021activeDirectories2\017active" - + "DirectoryB\266\001\n\032com.google.cloud.netapp.v1" - + "B\024ActiveDirectoryProtoP\001Z2cloud.google.c" - + "om/go/netapp/apiv1/netapppb;netapppb\252\002\026G" - + "oogle.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Net" - + "App\\V1\352\002\031Google::Cloud::NetApp::V1b\006prot" - + "o3" + + "\n\005ERROR\020\006\022\016\n\nDIAGNOSING\020\007:\235\001\352A\231\001\n%netapp" + + ".googleapis.com/ActiveDirectory\022Lproject" + + "s/{project}/locations/{location}/activeD" + + "irectories/{active_directory}*\021activeDir" + + "ectories2\017activeDirectoryB\266\001\n\032com.google" + + ".cloud.netapp.v1B\024ActiveDirectoryProtoP\001" + + "Z2cloud.google.com/go/netapp/apiv1/netap" + + "ppb;netapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026" + + "Google\\Cloud\\NetApp\\V1\352\002\031Google::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/CloudNetappServiceProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java index ef7a7c1b31cd..47c8929facd9 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java @@ -63,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf.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_message" + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " - + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\272V\n\006N" + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\354Y\n\006N" + "etApp\022\270\001\n\020ListStoragePools\022/.google.clou" + "d.netapp.v1.ListStoragePoolsRequest\0320.go" + "ogle.cloud.netapp.v1.ListStoragePoolsRes" @@ -259,95 +259,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion\"y\312A \n\013Replication\022\021OperationMetadat" + "a\202\323\344\223\002P\"K/v1/{name=projects/*/locations/" + "*/volumes/*/replications/*}:reverseDirec" - + "tion:\001*\022\366\001\n\021CreateBackupVault\0220.google.c" - + "loud.netapp.v1.CreateBackupVaultRequest\032" - + "\035.google.longrunning.Operation\"\217\001\312A \n\013Ba" - + "ckupVault\022\021OperationMetadata\332A#parent,ba" - + "ckup_vault,backup_vault_id\202\323\344\223\002@\"0/v1/{p" - + "arent=projects/*/locations/*}/backupVaul" - + "ts:\014backup_vault\022\245\001\n\016GetBackupVault\022-.go" - + "ogle.cloud.netapp.v1.GetBackupVaultReque" - + "st\032#.google.cloud.netapp.v1.BackupVault\"" - + "?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/loc" - + "ations/*/backupVaults/*}\022\270\001\n\020ListBackupV" - + "aults\022/.google.cloud.netapp.v1.ListBacku" - + "pVaultsRequest\0320.google.cloud.netapp.v1." - + "ListBackupVaultsResponse\"A\332A\006parent\202\323\344\223\002" - + "2\0220/v1/{parent=projects/*/locations/*}/b" - + "ackupVaults\022\370\001\n\021UpdateBackupVault\0220.goog" - + "le.cloud.netapp.v1.UpdateBackupVaultRequ" - + "est\032\035.google.longrunning.Operation\"\221\001\312A " - + "\n\013BackupVault\022\021OperationMetadata\332A\030backu" - + "p_vault,update_mask\202\323\344\223\002M2=/v1/{backup_v" - + "ault.name=projects/*/locations/*/backupV" - + "aults/*}:\014backup_vault\022\322\001\n\021DeleteBackupV" - + "ault\0220.google.cloud.netapp.v1.DeleteBack" - + "upVaultRequest\032\035.google.longrunning.Oper" - + "ation\"l\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\0022*0/v1/{name=pro" - + "jects/*/locations/*/backupVaults/*}\022\337\001\n\014" - + "CreateBackup\022+.google.cloud.netapp.v1.Cr" - + "eateBackupRequest\032\035.google.longrunning.O" - + "peration\"\202\001\312A\033\n\006Backup\022\021OperationMetadat" - + "a\332A\027parent,backup,backup_id\202\323\344\223\002D\":/v1/{" - + "parent=projects/*/locations/*/backupVaul" - + "ts/*}/backups:\006backup\022\240\001\n\tGetBackup\022(.go" - + "ogle.cloud.netapp.v1.GetBackupRequest\032\036." - + "google.cloud.netapp.v1.Backup\"I\332A\004name\202\323" - + "\344\223\002<\022:/v1/{name=projects/*/locations/*/b" - + "ackupVaults/*/backups/*}\022\263\001\n\013ListBackups" - + "\022*.google.cloud.netapp.v1.ListBackupsReq" - + "uest\032+.google.cloud.netapp.v1.ListBackup" - + "sResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=" - + "projects/*/locations/*/backupVaults/*}/b" - + "ackups\022\322\001\n\014DeleteBackup\022+.google.cloud.n" - + "etapp.v1.DeleteBackupRequest\032\035.google.lo" - + "ngrunning.Operation\"v\312A*\n\025google.protobu" - + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002<*" - + ":/v1/{name=projects/*/locations/*/backup" - + "Vaults/*/backups/*}\022\341\001\n\014UpdateBackup\022+.g" - + "oogle.cloud.netapp.v1.UpdateBackupReques" - + "t\032\035.google.longrunning.Operation\"\204\001\312A\033\n\006" - + "Backup\022\021OperationMetadata\332A\022backup,updat" - + "e_mask\202\323\344\223\002K2A/v1/{backup.name=projects/" - + "*/locations/*/backupVaults/*/backups/*}:" - + "\006backup\022\376\001\n\022CreateBackupPolicy\0221.google." - + "cloud.netapp.v1.CreateBackupPolicyReques" - + "t\032\035.google.longrunning.Operation\"\225\001\312A!\n\014" - + "BackupPolicy\022\021OperationMetadata\332A%parent" - + ",backup_policy,backup_policy_id\202\323\344\223\002C\"2/" - + "v1/{parent=projects/*/locations/*}/backu" - + "pPolicies:\rbackup_policy\022\252\001\n\017GetBackupPo" - + "licy\022..google.cloud.netapp.v1.GetBackupP" - + "olicyRequest\032$.google.cloud.netapp.v1.Ba" - + "ckupPolicy\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=pro" - + "jects/*/locations/*/backupPolicies/*}\022\300\001" - + "\n\022ListBackupPolicies\0221.google.cloud.neta" - + "pp.v1.ListBackupPoliciesRequest\0322.google" - + ".cloud.netapp.v1.ListBackupPoliciesRespo" - + "nse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{parent=projec" - + "ts/*/locations/*}/backupPolicies\022\200\002\n\022Upd" - + "ateBackupPolicy\0221.google.cloud.netapp.v1" - + ".UpdateBackupPolicyRequest\032\035.google.long" - + "running.Operation\"\227\001\312A!\n\014BackupPolicy\022\021O" - + "perationMetadata\332A\031backup_policy,update_" - + "mask\202\323\344\223\002Q2@/v1/{backup_policy.name=proj" - + "ects/*/locations/*/backupPolicies/*}:\rba" - + "ckup_policy\022\326\001\n\022DeleteBackupPolicy\0221.goo" - + "gle.cloud.netapp.v1.DeleteBackupPolicyRe" - + "quest\032\035.google.longrunning.Operation\"n\312A" - + "*\n\025google.protobuf.Empty\022\021OperationMetad" - + "ata\332A\004name\202\323\344\223\0024*2/v1/{name=projects/*/l" - + "ocations/*/backupPolicies/*}\032I\312A\025netapp." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\212\002\n\032com.google.c" - + "loud.netapp.v1B\027CloudNetappServiceProtoP" - + "\001Z2cloud.google.com/go/netapp/apiv1/neta" - + "pppb;netapppb\252\002\026Google.Cloud.NetApp.V1\312\002" - + "\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cloud:" - + ":NetApp::V1\352AN\n\036compute.googleapis.com/N" - + "etwork\022,projects/{project}/global/networ" - + "ks/{network}b\006proto3" + + "tion:\001*\022\335\001\n\020EstablishPeering\022/.google.cl" + + "oud.netapp.v1.EstablishPeeringRequest\032\035." + + "google.longrunning.Operation\"y\312A \n\013Repli" + + "cation\022\021OperationMetadata\202\323\344\223\002P\"K/v1/{na" + + "me=projects/*/locations/*/volumes/*/repl" + + "ications/*}:establishPeering:\001*\022\317\001\n\017Sync" + + "Replication\022..google.cloud.netapp.v1.Syn" + + "cReplicationRequest\032\035.google.longrunning" + + ".Operation\"m\312A \n\013Replication\022\021OperationM" + + "etadata\202\323\344\223\002D\"?/v1/{name=projects/*/loca" + + "tions/*/volumes/*/replications/*}:sync:\001" + + "*\022\366\001\n\021CreateBackupVault\0220.google.cloud.n" + + "etapp.v1.CreateBackupVaultRequest\032\035.goog" + + "le.longrunning.Operation\"\217\001\312A \n\013BackupVa" + + "ult\022\021OperationMetadata\332A#parent,backup_v" + + "ault,backup_vault_id\202\323\344\223\002@\"0/v1/{parent=" + + "projects/*/locations/*}/backupVaults:\014ba" + + "ckup_vault\022\245\001\n\016GetBackupVault\022-.google.c" + + "loud.netapp.v1.GetBackupVaultRequest\032#.g" + + "oogle.cloud.netapp.v1.BackupVault\"?\332A\004na" + + "me\202\323\344\223\0022\0220/v1/{name=projects/*/locations" + + "/*/backupVaults/*}\022\270\001\n\020ListBackupVaults\022" + + "/.google.cloud.netapp.v1.ListBackupVault" + + "sRequest\0320.google.cloud.netapp.v1.ListBa" + + "ckupVaultsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1" + + "/{parent=projects/*/locations/*}/backupV" + + "aults\022\370\001\n\021UpdateBackupVault\0220.google.clo" + + "ud.netapp.v1.UpdateBackupVaultRequest\032\035." + + "google.longrunning.Operation\"\221\001\312A \n\013Back" + + "upVault\022\021OperationMetadata\332A\030backup_vaul" + + "t,update_mask\202\323\344\223\002M2=/v1/{backup_vault.n" + + "ame=projects/*/locations/*/backupVaults/" + + "*}:\014backup_vault\022\322\001\n\021DeleteBackupVault\0220" + + ".google.cloud.netapp.v1.DeleteBackupVaul" + + "tRequest\032\035.google.longrunning.Operation\"" + + "l\312A*\n\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0022*0/v1/{name=projects/" + + "*/locations/*/backupVaults/*}\022\337\001\n\014Create" + + "Backup\022+.google.cloud.netapp.v1.CreateBa" + + "ckupRequest\032\035.google.longrunning.Operati" + + "on\"\202\001\312A\033\n\006Backup\022\021OperationMetadata\332A\027pa" + + "rent,backup,backup_id\202\323\344\223\002D\":/v1/{parent" + + "=projects/*/locations/*/backupVaults/*}/" + + "backups:\006backup\022\240\001\n\tGetBackup\022(.google.c" + + "loud.netapp.v1.GetBackupRequest\032\036.google" + + ".cloud.netapp.v1.Backup\"I\332A\004name\202\323\344\223\002<\022:" + + "/v1/{name=projects/*/locations/*/backupV" + + "aults/*/backups/*}\022\263\001\n\013ListBackups\022*.goo" + + "gle.cloud.netapp.v1.ListBackupsRequest\032+" + + ".google.cloud.netapp.v1.ListBackupsRespo" + + "nse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=projec" + + "ts/*/locations/*/backupVaults/*}/backups" + + "\022\322\001\n\014DeleteBackup\022+.google.cloud.netapp." + + "v1.DeleteBackupRequest\032\035.google.longrunn" + + "ing.Operation\"v\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002<*:/v1/{" + + "name=projects/*/locations/*/backupVaults" + + "/*/backups/*}\022\341\001\n\014UpdateBackup\022+.google." + + "cloud.netapp.v1.UpdateBackupRequest\032\035.go" + + "ogle.longrunning.Operation\"\204\001\312A\033\n\006Backup" + + "\022\021OperationMetadata\332A\022backup,update_mask" + + "\202\323\344\223\002K2A/v1/{backup.name=projects/*/loca" + + "tions/*/backupVaults/*/backups/*}:\006backu" + + "p\022\376\001\n\022CreateBackupPolicy\0221.google.cloud." + + "netapp.v1.CreateBackupPolicyRequest\032\035.go" + + "ogle.longrunning.Operation\"\225\001\312A!\n\014Backup" + + "Policy\022\021OperationMetadata\332A%parent,backu" + + "p_policy,backup_policy_id\202\323\344\223\002C\"2/v1/{pa" + + "rent=projects/*/locations/*}/backupPolic" + + "ies:\rbackup_policy\022\252\001\n\017GetBackupPolicy\022." + + ".google.cloud.netapp.v1.GetBackupPolicyR" + + "equest\032$.google.cloud.netapp.v1.BackupPo" + + "licy\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=projects/" + + "*/locations/*/backupPolicies/*}\022\300\001\n\022List" + + "BackupPolicies\0221.google.cloud.netapp.v1." + + "ListBackupPoliciesRequest\0322.google.cloud" + + ".netapp.v1.ListBackupPoliciesResponse\"C\332" + + "A\006parent\202\323\344\223\0024\0222/v1/{parent=projects/*/l" + + "ocations/*}/backupPolicies\022\200\002\n\022UpdateBac" + + "kupPolicy\0221.google.cloud.netapp.v1.Updat" + + "eBackupPolicyRequest\032\035.google.longrunnin" + + "g.Operation\"\227\001\312A!\n\014BackupPolicy\022\021Operati" + + "onMetadata\332A\031backup_policy,update_mask\202\323" + + "\344\223\002Q2@/v1/{backup_policy.name=projects/*" + + "/locations/*/backupPolicies/*}:\rbackup_p" + + "olicy\022\326\001\n\022DeleteBackupPolicy\0221.google.cl" + + "oud.netapp.v1.DeleteBackupPolicyRequest\032" + + "\035.google.longrunning.Operation\"n\312A*\n\025goo" + + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\0024*2/v1/{name=projects/*/locatio" + + "ns/*/backupPolicies/*}\032I\312A\025netapp.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\212\002\n\032com.google.cloud.n" + + "etapp.v1B\027CloudNetappServiceProtoP\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::V1\352AN\n\036compute.googleapis.com/Network" + + "\022,projects/{project}/global/networks/{ne" + + "twork}b\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/CreateActiveDirectoryRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java index 7a4647464f7b..1415fde7f6eb 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequest.java @@ -185,9 +185,9 @@ public com.google.cloud.netapp.v1.ActiveDirectoryOrBuilder getActiveDirectoryOrB * *
          * Required. ID of the active directory to create. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter , the last a letter or a number, and a 63
      +   * character maximum.
          * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -211,9 +211,9 @@ public java.lang.String getActiveDirectoryId() { * *
          * Required. ID of the active directory to create. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter , the last a letter or a number, and a 63
      +   * character maximum.
          * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -971,9 +971,9 @@ public com.google.cloud.netapp.v1.ActiveDirectoryOrBuilder getActiveDirectoryOrB * *
            * Required. ID of the active directory to create. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter , the last a letter or a number, and a 63
      +     * character maximum.
            * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -996,9 +996,9 @@ public java.lang.String getActiveDirectoryId() { * *
            * Required. ID of the active directory to create. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter , the last a letter or a number, and a 63
      +     * character maximum.
            * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1021,9 +1021,9 @@ public com.google.protobuf.ByteString getActiveDirectoryIdBytes() { * *
            * Required. ID of the active directory to create. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter , the last a letter or a number, and a 63
      +     * character maximum.
            * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1045,9 +1045,9 @@ public Builder setActiveDirectoryId(java.lang.String value) { * *
            * Required. ID of the active directory to create. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter , the last a letter or a number, and a 63
      +     * character maximum.
            * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1065,9 +1065,9 @@ public Builder clearActiveDirectoryId() { * *
            * Required. ID of the active directory to create. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter , the last a letter or a number, and a 63
      +     * character maximum.
            * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java index 6f860a13fdd7..c7947df32c3e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateActiveDirectoryRequestOrBuilder.java @@ -99,9 +99,9 @@ public interface CreateActiveDirectoryRequestOrBuilder * *
          * Required. ID of the active directory to create. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter , the last a letter or a number, and a 63
      +   * character maximum.
          * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -114,9 +114,9 @@ public interface CreateActiveDirectoryRequestOrBuilder * *
          * Required. ID of the active directory to create. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter , the last a letter or a number, and a 63
      +   * character maximum.
          * 
      * * string active_directory_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java index f6eea8ed1f8a..748e02e8dba0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequest.java @@ -188,8 +188,8 @@ public com.google.cloud.netapp.v1.BackupPolicyOrBuilder getBackupPolicyOrBuilder *
          * Required. The ID to use for the backup policy.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -215,8 +215,8 @@ public java.lang.String getBackupPolicyId() { *
          * Required. The ID to use for the backup policy.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -979,8 +979,8 @@ public com.google.cloud.netapp.v1.BackupPolicyOrBuilder getBackupPolicyOrBuilder *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -1005,8 +1005,8 @@ public java.lang.String getBackupPolicyId() { *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -1031,8 +1031,8 @@ public com.google.protobuf.ByteString getBackupPolicyIdBytes() { *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -1056,8 +1056,8 @@ public Builder setBackupPolicyId(java.lang.String value) { *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -1077,8 +1077,8 @@ public Builder clearBackupPolicyId() { *
            * Required. The ID to use for the backup policy.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java index fca3e9ae10b9..0a11a0054641 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupPolicyRequestOrBuilder.java @@ -102,8 +102,8 @@ public interface CreateBackupPolicyRequestOrBuilder *
          * Required. The ID to use for the backup policy.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -118,8 +118,8 @@ public interface CreateBackupPolicyRequestOrBuilder *
          * Required. The ID to use for the backup policy.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java index de089d29ea4b..f9d9514d9164 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequest.java @@ -132,8 +132,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
          * Required. The ID to use for the backup.
          * The ID must be unique within the specified backupVault.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -159,8 +159,8 @@ public java.lang.String getBackupId() { *
          * Required. The ID to use for the backup.
          * The ID must be unique within the specified backupVault.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -766,8 +766,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -792,8 +792,8 @@ public java.lang.String getBackupId() { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -818,8 +818,8 @@ public com.google.protobuf.ByteString getBackupIdBytes() { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -843,8 +843,8 @@ public Builder setBackupId(java.lang.String value) { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -864,8 +864,8 @@ public Builder clearBackupId() { *
            * Required. The ID to use for the backup.
            * The ID must be unique within the specified backupVault.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java index 11fec8ecb0f0..4e8238e5bcb3 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupRequestOrBuilder.java @@ -61,8 +61,8 @@ public interface CreateBackupRequestOrBuilder *
          * Required. The ID to use for the backup.
          * The ID must be unique within the specified backupVault.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -77,8 +77,8 @@ public interface CreateBackupRequestOrBuilder *
          * Required. The ID to use for the backup.
          * The ID must be unique within the specified backupVault.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java index 69485b75d207..a1c6c581cdcd 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequest.java @@ -132,8 +132,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
          * Required. The ID to use for the backupVault.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -159,8 +159,8 @@ public java.lang.String getBackupVaultId() { *
          * Required. The ID to use for the backupVault.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -775,8 +775,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -801,8 +801,8 @@ public java.lang.String getBackupVaultId() { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -827,8 +827,8 @@ public com.google.protobuf.ByteString getBackupVaultIdBytes() { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -852,8 +852,8 @@ public Builder setBackupVaultId(java.lang.String value) { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * @@ -873,8 +873,8 @@ public Builder clearBackupVaultId() { *
            * Required. The ID to use for the backupVault.
            * The ID must be unique within the specified location.
      -     * Must contain only letters, numbers, underscore and hyphen, with the first
      -     * character a letter or underscore, the last a letter or underscore or a
      +     * Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
            * number, and a 63 character maximum.
            * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java index 374ff43cebbc..d1fac6a71194 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateBackupVaultRequestOrBuilder.java @@ -61,8 +61,8 @@ public interface CreateBackupVaultRequestOrBuilder *
          * Required. The ID to use for the backupVault.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * @@ -77,8 +77,8 @@ public interface CreateBackupVaultRequestOrBuilder *
          * Required. The ID to use for the backupVault.
          * The ID must be unique within the specified location.
      -   * Must contain only letters, numbers, underscore and hyphen, with the first
      -   * character a letter or underscore, the last a letter or underscore or a
      +   * Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
          * number, and a 63 character maximum.
          * 
      * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java index 3bd3155f4ebd..5985c7382327 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
          * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -155,9 +155,9 @@ public java.lang.String getKmsConfigId() { * *
          * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -764,9 +764,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
            * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -789,9 +789,9 @@ public java.lang.String getKmsConfigId() { * *
            * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -814,9 +814,9 @@ public com.google.protobuf.ByteString getKmsConfigIdBytes() { * *
            * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -838,9 +838,9 @@ public Builder setKmsConfigId(java.lang.String value) { * *
            * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -858,9 +858,9 @@ public Builder clearKmsConfigId() { * *
            * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java index 302f513a4b91..ba64c762a553 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateKmsConfigRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface CreateKmsConfigRequestOrBuilder * *
          * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -73,9 +73,9 @@ public interface CreateKmsConfigRequestOrBuilder * *
          * Required. Id of the requesting KmsConfig. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java index 21b5f19b73aa..77a3bf9ca5fa 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequest.java @@ -187,9 +187,9 @@ public com.google.cloud.netapp.v1.ReplicationOrBuilder getReplicationOrBuilder() * *
          * Required. ID of the replication to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -213,9 +213,9 @@ public java.lang.String getReplicationId() { * *
          * Required. ID of the replication to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -975,9 +975,9 @@ public com.google.cloud.netapp.v1.ReplicationOrBuilder getReplicationOrBuilder() * *
            * Required. ID of the replication to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1000,9 +1000,9 @@ public java.lang.String getReplicationId() { * *
            * Required. ID of the replication to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1025,9 +1025,9 @@ public com.google.protobuf.ByteString getReplicationIdBytes() { * *
            * Required. ID of the replication to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1049,9 +1049,9 @@ public Builder setReplicationId(java.lang.String value) { * *
            * Required. ID of the replication to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1069,9 +1069,9 @@ public Builder clearReplicationId() { * *
            * Required. ID of the replication to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java index ae3eda6d0ca2..ff64ecfc99dc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateReplicationRequestOrBuilder.java @@ -101,9 +101,9 @@ public interface CreateReplicationRequestOrBuilder * *
          * Required. ID of the replication to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -116,9 +116,9 @@ public interface CreateReplicationRequestOrBuilder * *
          * Required. ID of the replication to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string replication_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java index f35ae6c52345..3a5c3af194c4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequest.java @@ -180,9 +180,9 @@ public com.google.cloud.netapp.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * *
          * Required. ID of the snapshot to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -206,9 +206,9 @@ public java.lang.String getSnapshotId() { * *
          * Required. ID of the snapshot to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -967,9 +967,9 @@ public com.google.cloud.netapp.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * *
            * Required. ID of the snapshot to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -992,9 +992,9 @@ public java.lang.String getSnapshotId() { * *
            * Required. ID of the snapshot to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1017,9 +1017,9 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() { * *
            * Required. ID of the snapshot to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1041,9 +1041,9 @@ public Builder setSnapshotId(java.lang.String value) { * *
            * Required. ID of the snapshot to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1061,9 +1061,9 @@ public Builder clearSnapshotId() { * *
            * Required. ID of the snapshot to create. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a
      +     * number, and a 63 character maximum.
            * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java index 14c84ad0e69b..332c5d37fcd1 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateSnapshotRequestOrBuilder.java @@ -98,9 +98,9 @@ public interface CreateSnapshotRequestOrBuilder * *
          * Required. ID of the snapshot to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -113,9 +113,9 @@ public interface CreateSnapshotRequestOrBuilder * *
          * Required. ID of the snapshot to create. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a
      +   * number, and a 63 character maximum.
          * 
      * * string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java index 9ca7560b3416..63cd71d7789b 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
          * Required. Id of the requesting storage pool. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter, the last a letter or a number, and a 63 character
      +   * maximum.
          * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -155,9 +155,9 @@ public java.lang.String getStoragePoolId() { * *
          * Required. Id of the requesting storage pool. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter, the last a letter or a number, and a 63 character
      +   * maximum.
          * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -765,9 +765,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
            * Required. Id of the requesting storage pool. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter, the last a letter or a number, and a 63 character
      +     * maximum.
            * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -790,9 +790,9 @@ public java.lang.String getStoragePoolId() { * *
            * Required. Id of the requesting storage pool. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter, the last a letter or a number, and a 63 character
      +     * maximum.
            * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -815,9 +815,9 @@ public com.google.protobuf.ByteString getStoragePoolIdBytes() { * *
            * Required. Id of the requesting storage pool. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter, the last a letter or a number, and a 63 character
      +     * maximum.
            * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -839,9 +839,9 @@ public Builder setStoragePoolId(java.lang.String value) { * *
            * Required. Id of the requesting storage pool. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter, the last a letter or a number, and a 63 character
      +     * maximum.
            * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -859,9 +859,9 @@ public Builder clearStoragePoolId() { * *
            * Required. Id of the requesting storage pool. Must be unique within the
      -     * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -     * with the first character a letter or underscore, the last a letter or
      -     * underscore or a number, and a 63 character maximum.
      +     * parent resource. Must contain only letters, numbers and hyphen, with the
      +     * first character a letter, the last a letter or a number, and a 63 character
      +     * maximum.
            * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java index 956044f81157..e1736a6ad1b6 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateStoragePoolRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface CreateStoragePoolRequestOrBuilder * *
          * Required. Id of the requesting storage pool. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter, the last a letter or a number, and a 63 character
      +   * maximum.
          * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -73,9 +73,9 @@ public interface CreateStoragePoolRequestOrBuilder * *
          * Required. Id of the requesting storage pool. Must be unique within the
      -   * parent resource. Must contain only letters, numbers, underscore and hyphen,
      -   * with the first character a letter or underscore, the last a letter or
      -   * underscore or a number, and a 63 character maximum.
      +   * parent resource. Must contain only letters, numbers and hyphen, with the
      +   * first character a letter, the last a letter or a number, and a 63 character
      +   * maximum.
          * 
      * * string storage_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java index 431b8424cf96..f0416d7a7658 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
          * Required. Id of the requesting volume. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a number,
      +   * and a 63 character maximum.
          * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -155,9 +155,9 @@ public java.lang.String getVolumeId() { * *
          * Required. Id of the requesting volume. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a number,
      +   * and a 63 character maximum.
          * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -756,9 +756,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
            * Required. Id of the requesting volume. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a number,
      +     * and a 63 character maximum.
            * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -781,9 +781,9 @@ public java.lang.String getVolumeId() { * *
            * Required. Id of the requesting volume. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a number,
      +     * and a 63 character maximum.
            * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -806,9 +806,9 @@ public com.google.protobuf.ByteString getVolumeIdBytes() { * *
            * Required. Id of the requesting volume. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a number,
      +     * and a 63 character maximum.
            * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -830,9 +830,9 @@ public Builder setVolumeId(java.lang.String value) { * *
            * Required. Id of the requesting volume. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a number,
      +     * and a 63 character maximum.
            * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -850,9 +850,9 @@ public Builder clearVolumeId() { * *
            * Required. Id of the requesting volume. Must be unique within the parent
      -     * resource. Must contain only letters, numbers, underscore and hyphen, with
      -     * the first character a letter or underscore, the last a letter or underscore
      -     * or a number, and a 63 character maximum.
      +     * resource. Must contain only letters, numbers and hyphen, with the first
      +     * character a letter, the last a letter or a number,
      +     * and a 63 character maximum.
            * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java index 3201c76c484e..ea8909de8c8d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CreateVolumeRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface CreateVolumeRequestOrBuilder * *
          * Required. Id of the requesting volume. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a number,
      +   * and a 63 character maximum.
          * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -73,9 +73,9 @@ public interface CreateVolumeRequestOrBuilder * *
          * Required. Id of the requesting volume. Must be unique within the parent
      -   * resource. Must contain only letters, numbers, underscore and hyphen, with
      -   * the first character a letter or underscore, the last a letter or underscore
      -   * or a number, and a 63 character maximum.
      +   * resource. Must contain only letters, numbers and hyphen, with the first
      +   * character a letter, the last a letter or a number,
      +   * and a 63 character maximum.
          * 
      * * string volume_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParameters.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParameters.java index c625b360f7da..b6191948ab7a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParameters.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParameters.java @@ -299,6 +299,62 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int TIERING_POLICY_FIELD_NUMBER = 5; + private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tieringPolicy field is set. + */ + @java.lang.Override + public boolean hasTieringPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tieringPolicy. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.TieringPolicy getTieringPolicy() { + return tieringPolicy_ == null + ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() + : tieringPolicy_; + } + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder() { + return tieringPolicy_ == null + ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() + : tieringPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -325,6 +381,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getTieringPolicy()); + } getUnknownFields().writeTo(output); } @@ -346,6 +405,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTieringPolicy()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -369,6 +431,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDescription()) { if (!getDescription().equals(other.getDescription())) return false; } + if (hasTieringPolicy() != other.hasTieringPolicy()) return false; + if (hasTieringPolicy()) { + if (!getTieringPolicy().equals(other.getTieringPolicy())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,6 +456,10 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } + if (hasTieringPolicy()) { + hash = (37 * hash) + TIERING_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getTieringPolicy().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -521,10 +591,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.netapp.v1.DestinationVolumeParameters.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) { + getTieringPolicyFieldBuilder(); + } } @java.lang.Override @@ -535,6 +614,11 @@ public Builder clear() { volumeId_ = ""; shareName_ = ""; description_ = ""; + tieringPolicy_ = null; + if (tieringPolicyBuilder_ != null) { + tieringPolicyBuilder_.dispose(); + tieringPolicyBuilder_ = null; + } return this; } @@ -585,6 +669,11 @@ private void buildPartial0(com.google.cloud.netapp.v1.DestinationVolumeParameter result.description_ = description_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tieringPolicy_ = + tieringPolicyBuilder_ == null ? tieringPolicy_ : tieringPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -654,6 +743,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.DestinationVolumeParameters bitField0_ |= 0x00000008; onChanged(); } + if (other.hasTieringPolicy()) { + mergeTieringPolicy(other.getTieringPolicy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -704,6 +796,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getTieringPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1191,6 +1289,210 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.netapp.v1.TieringPolicy tieringPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.TieringPolicy, + com.google.cloud.netapp.v1.TieringPolicy.Builder, + com.google.cloud.netapp.v1.TieringPolicyOrBuilder> + tieringPolicyBuilder_; + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tieringPolicy field is set. + */ + public boolean hasTieringPolicy() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tieringPolicy. + */ + public com.google.cloud.netapp.v1.TieringPolicy getTieringPolicy() { + if (tieringPolicyBuilder_ == null) { + return tieringPolicy_ == null + ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() + : tieringPolicy_; + } else { + return tieringPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTieringPolicy(com.google.cloud.netapp.v1.TieringPolicy value) { + if (tieringPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tieringPolicy_ = value; + } else { + tieringPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTieringPolicy( + com.google.cloud.netapp.v1.TieringPolicy.Builder builderForValue) { + if (tieringPolicyBuilder_ == null) { + tieringPolicy_ = builderForValue.build(); + } else { + tieringPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTieringPolicy(com.google.cloud.netapp.v1.TieringPolicy value) { + if (tieringPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && tieringPolicy_ != null + && tieringPolicy_ != com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance()) { + getTieringPolicyBuilder().mergeFrom(value); + } else { + tieringPolicy_ = value; + } + } else { + tieringPolicyBuilder_.mergeFrom(value); + } + if (tieringPolicy_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTieringPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + tieringPolicy_ = null; + if (tieringPolicyBuilder_ != null) { + tieringPolicyBuilder_.dispose(); + tieringPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.TieringPolicy.Builder getTieringPolicyBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTieringPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder() { + if (tieringPolicyBuilder_ != null) { + return tieringPolicyBuilder_.getMessageOrBuilder(); + } else { + return tieringPolicy_ == null + ? com.google.cloud.netapp.v1.TieringPolicy.getDefaultInstance() + : tieringPolicy_; + } + } + /** + * + * + *
      +     * Optional. Tiering policy for the volume.
      +     * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.TieringPolicy, + com.google.cloud.netapp.v1.TieringPolicy.Builder, + com.google.cloud.netapp.v1.TieringPolicyOrBuilder> + getTieringPolicyFieldBuilder() { + if (tieringPolicyBuilder_ == null) { + tieringPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.TieringPolicy, + com.google.cloud.netapp.v1.TieringPolicy.Builder, + com.google.cloud.netapp.v1.TieringPolicyOrBuilder>( + getTieringPolicy(), getParentForChildren(), isClean()); + tieringPolicy_ = null; + } + return tieringPolicyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParametersOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParametersOrBuilder.java index 2aac21b8f7ca..010863af49e7 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParametersOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/DestinationVolumeParametersOrBuilder.java @@ -147,4 +147,45 @@ public interface DestinationVolumeParametersOrBuilder * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tieringPolicy field is set. + */ + boolean hasTieringPolicy(); + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tieringPolicy. + */ + com.google.cloud.netapp.v1.TieringPolicy getTieringPolicy(); + /** + * + * + *
      +   * Optional. Tiering policy for the volume.
      +   * 
      + * + * + * optional .google.cloud.netapp.v1.TieringPolicy tiering_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.netapp.v1.TieringPolicyOrBuilder getTieringPolicyOrBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequest.java new file mode 100644 index 000000000000..903ea17b34bd --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequest.java @@ -0,0 +1,1492 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +/** + * + * + *
      + * EstablishPeeringRequest establishes cluster and svm peerings between the
      + * source and the destination replications.
      + * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.EstablishPeeringRequest} + */ +public final class EstablishPeeringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.EstablishPeeringRequest) + EstablishPeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use EstablishPeeringRequest.newBuilder() to construct. + private EstablishPeeringRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstablishPeeringRequest() { + name_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + peerVolumeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstablishPeeringRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.EstablishPeeringRequest.class, + com.google.cloud.netapp.v1.EstablishPeeringRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. The resource name of the replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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; + } + } + + public static final int PEER_CLUSTER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerClusterName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + @java.lang.Override + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + 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(); + peerClusterName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_SVM_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerSvmName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + @java.lang.Override + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + 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(); + peerSvmName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_IP_ADDRESSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + return peerIpAddresses_; + } + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + + public static final int PEER_VOLUME_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerVolumeName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + @java.lang.Override + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + 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(); + peerVolumeName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerClusterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerSvmName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerSvmName_); + } + for (int i = 0; i < peerIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, peerIpAddresses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerVolumeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, peerVolumeName_); + } + 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(peerClusterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerSvmName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, peerSvmName_); + } + { + int dataSize = 0; + for (int i = 0; i < peerIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(peerIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerIpAddressesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerVolumeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, peerVolumeName_); + } + 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.netapp.v1.EstablishPeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.EstablishPeeringRequest other = + (com.google.cloud.netapp.v1.EstablishPeeringRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPeerClusterName().equals(other.getPeerClusterName())) return false; + if (!getPeerSvmName().equals(other.getPeerSvmName())) return false; + if (!getPeerIpAddressesList().equals(other.getPeerIpAddressesList())) return false; + if (!getPeerVolumeName().equals(other.getPeerVolumeName())) 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) + PEER_CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerClusterName().hashCode(); + hash = (37 * hash) + PEER_SVM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerSvmName().hashCode(); + if (getPeerIpAddressesCount() > 0) { + hash = (37 * hash) + PEER_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getPeerIpAddressesList().hashCode(); + } + hash = (37 * hash) + PEER_VOLUME_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerVolumeName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest 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; + } + /** + * + * + *
      +   * EstablishPeeringRequest establishes cluster and svm peerings between the
      +   * source and the destination replications.
      +   * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.EstablishPeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.EstablishPeeringRequest) + com.google.cloud.netapp.v1.EstablishPeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.EstablishPeeringRequest.class, + com.google.cloud.netapp.v1.EstablishPeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.EstablishPeeringRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + peerVolumeName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishPeeringRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.EstablishPeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishPeeringRequest build() { + com.google.cloud.netapp.v1.EstablishPeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishPeeringRequest buildPartial() { + com.google.cloud.netapp.v1.EstablishPeeringRequest result = + new com.google.cloud.netapp.v1.EstablishPeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.EstablishPeeringRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.peerClusterName_ = peerClusterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.peerSvmName_ = peerSvmName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + peerIpAddresses_.makeImmutable(); + result.peerIpAddresses_ = peerIpAddresses_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.peerVolumeName_ = peerVolumeName_; + } + } + + @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.netapp.v1.EstablishPeeringRequest) { + return mergeFrom((com.google.cloud.netapp.v1.EstablishPeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.EstablishPeeringRequest other) { + if (other == com.google.cloud.netapp.v1.EstablishPeeringRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPeerClusterName().isEmpty()) { + peerClusterName_ = other.peerClusterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPeerSvmName().isEmpty()) { + peerSvmName_ = other.peerSvmName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.peerIpAddresses_.isEmpty()) { + if (peerIpAddresses_.isEmpty()) { + peerIpAddresses_ = other.peerIpAddresses_; + bitField0_ |= 0x00000008; + } else { + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.addAll(other.peerIpAddresses_); + } + onChanged(); + } + if (!other.getPeerVolumeName().isEmpty()) { + peerVolumeName_ = other.peerVolumeName_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + peerClusterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + peerSvmName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(s); + break; + } // case 34 + case 42: + { + peerVolumeName_ = 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 name_ = ""; + /** + * + * + *
      +     * Required. The resource name of the replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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; + } + + private java.lang.Object peerClusterName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerClusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerClusterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerClusterName() { + peerClusterName_ = getDefaultInstance().getPeerClusterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerClusterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object peerSvmName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerSvmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerSvmName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerSvmName() { + peerSvmName_ = getDefaultInstance().getPeerSvmName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerSvmName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerIpAddressesIsMutable() { + if (!peerIpAddresses_.isModifiable()) { + peerIpAddresses_ = new com.google.protobuf.LazyStringArrayList(peerIpAddresses_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + peerIpAddresses_.makeImmutable(); + return peerIpAddresses_; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The peerIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setPeerIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllPeerIpAddresses(java.lang.Iterable values) { + ensurePeerIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerIpAddresses_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPeerIpAddresses() { + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. List of IPv4 ip addresses to be used for peering.
      +     * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object peerVolumeName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerVolumeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerVolumeName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerVolumeName() { + peerVolumeName_ = getDefaultInstance().getPeerVolumeName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerVolumeName_ = 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.cloud.netapp.v1.EstablishPeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.EstablishPeeringRequest) + private static final com.google.cloud.netapp.v1.EstablishPeeringRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.EstablishPeeringRequest(); + } + + public static com.google.cloud.netapp.v1.EstablishPeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstablishPeeringRequest 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.netapp.v1.EstablishPeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequestOrBuilder.java new file mode 100644 index 000000000000..9b5fa92f1b0b --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishPeeringRequestOrBuilder.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/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +public interface EstablishPeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.EstablishPeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + java.lang.String getPeerClusterName(); + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + com.google.protobuf.ByteString getPeerClusterNameBytes(); + + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + java.lang.String getPeerSvmName(); + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + com.google.protobuf.ByteString getPeerSvmNameBytes(); + + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + java.util.List getPeerIpAddressesList(); + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + int getPeerIpAddressesCount(); + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + java.lang.String getPeerIpAddresses(int index); + /** + * + * + *
      +   * Optional. List of IPv4 ip addresses to be used for peering.
      +   * 
      + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + com.google.protobuf.ByteString getPeerIpAddressesBytes(int index); + + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + java.lang.String getPeerVolumeName(); + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + com.google.protobuf.ByteString getPeerVolumeNameBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java new file mode 100644 index 000000000000..580218bae0b6 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java @@ -0,0 +1,1315 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +/** + * + * + *
      + * HybridPeeringDetails contains details about the hybrid peering.
      + * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.HybridPeeringDetails} + */ +public final class HybridPeeringDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.HybridPeeringDetails) + HybridPeeringDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridPeeringDetails.newBuilder() to construct. + private HybridPeeringDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridPeeringDetails() { + subnetIp_ = ""; + command_ = ""; + passphrase_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridPeeringDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_HybridPeeringDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.HybridPeeringDetails.class, + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder.class); + } + + private int bitField0_; + public static final int SUBNET_IP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnetIp_ = ""; + /** + * + * + *
      +   * Optional. IP address of the subnet.
      +   * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetIp. + */ + @java.lang.Override + public java.lang.String getSubnetIp() { + java.lang.Object ref = subnetIp_; + 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(); + subnetIp_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. IP address of the subnet.
      +   * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetIpBytes() { + java.lang.Object ref = subnetIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object command_ = ""; + /** + * + * + *
      +   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +   * peering requests.
      +   * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + @java.lang.Override + public java.lang.String getCommand() { + java.lang.Object ref = command_; + 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(); + command_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +   * peering requests.
      +   * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_EXPIRY_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp commandExpiryTime_; + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the commandExpiryTime field is set. + */ + @java.lang.Override + public boolean hasCommandExpiryTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The commandExpiryTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCommandExpiryTime() { + return commandExpiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commandExpiryTime_; + } + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { + return commandExpiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commandExpiryTime_; + } + + public static final int PASSPHRASE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object passphrase_ = ""; + /** + * + * + *
      +   * Optional. Temporary passphrase generated to accept cluster peering command.
      +   * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + @java.lang.Override + public java.lang.String getPassphrase() { + java.lang.Object ref = passphrase_; + 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(); + passphrase_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. Temporary passphrase generated to accept cluster peering command.
      +   * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPassphraseBytes() { + java.lang.Object ref = passphrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passphrase_ = 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(subnetIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(command_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCommandExpiryTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passphrase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, passphrase_); + } + 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(subnetIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(command_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, command_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCommandExpiryTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passphrase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, passphrase_); + } + 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.netapp.v1.HybridPeeringDetails)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.HybridPeeringDetails other = + (com.google.cloud.netapp.v1.HybridPeeringDetails) obj; + + if (!getSubnetIp().equals(other.getSubnetIp())) return false; + if (!getCommand().equals(other.getCommand())) return false; + if (hasCommandExpiryTime() != other.hasCommandExpiryTime()) return false; + if (hasCommandExpiryTime()) { + if (!getCommandExpiryTime().equals(other.getCommandExpiryTime())) return false; + } + if (!getPassphrase().equals(other.getPassphrase())) 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) + SUBNET_IP_FIELD_NUMBER; + hash = (53 * hash) + getSubnetIp().hashCode(); + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommand().hashCode(); + if (hasCommandExpiryTime()) { + hash = (37 * hash) + COMMAND_EXPIRY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCommandExpiryTime().hashCode(); + } + hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPassphrase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails 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; + } + /** + * + * + *
      +   * HybridPeeringDetails contains details about the hybrid peering.
      +   * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.HybridPeeringDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.HybridPeeringDetails) + com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_HybridPeeringDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.HybridPeeringDetails.class, + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.HybridPeeringDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommandExpiryTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnetIp_ = ""; + command_ = ""; + commandExpiryTime_ = null; + if (commandExpiryTimeBuilder_ != null) { + commandExpiryTimeBuilder_.dispose(); + commandExpiryTimeBuilder_ = null; + } + passphrase_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridPeeringDetails getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridPeeringDetails build() { + com.google.cloud.netapp.v1.HybridPeeringDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridPeeringDetails buildPartial() { + com.google.cloud.netapp.v1.HybridPeeringDetails result = + new com.google.cloud.netapp.v1.HybridPeeringDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.HybridPeeringDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnetIp_ = subnetIp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.command_ = command_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.commandExpiryTime_ = + commandExpiryTimeBuilder_ == null + ? commandExpiryTime_ + : commandExpiryTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.passphrase_ = passphrase_; + } + 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.netapp.v1.HybridPeeringDetails) { + return mergeFrom((com.google.cloud.netapp.v1.HybridPeeringDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.HybridPeeringDetails other) { + if (other == com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance()) + return this; + if (!other.getSubnetIp().isEmpty()) { + subnetIp_ = other.subnetIp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommand().isEmpty()) { + command_ = other.command_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCommandExpiryTime()) { + mergeCommandExpiryTime(other.getCommandExpiryTime()); + } + if (!other.getPassphrase().isEmpty()) { + passphrase_ = other.passphrase_; + 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: + { + subnetIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + command_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCommandExpiryTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + passphrase_ = 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 subnetIp_ = ""; + /** + * + * + *
      +     * Optional. IP address of the subnet.
      +     * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetIp. + */ + public java.lang.String getSubnetIp() { + java.lang.Object ref = subnetIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. IP address of the subnet.
      +     * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetIp. + */ + public com.google.protobuf.ByteString getSubnetIpBytes() { + java.lang.Object ref = subnetIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. IP address of the subnet.
      +     * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnetIp to set. + * @return This builder for chaining. + */ + public Builder setSubnetIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnetIp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. IP address of the subnet.
      +     * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnetIp() { + subnetIp_ = getDefaultInstance().getSubnetIp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. IP address of the subnet.
      +     * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnetIp to set. + * @return This builder for chaining. + */ + public Builder setSubnetIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetIp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object command_ = ""; + /** + * + * + *
      +     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +     * peering requests.
      +     * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +     * peering requests.
      +     * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +     * peering requests.
      +     * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The command to set. + * @return This builder for chaining. + */ + public Builder setCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + command_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +     * peering requests.
      +     * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommand() { + command_ = getDefaultInstance().getCommand(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +     * peering requests.
      +     * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for command to set. + * @return This builder for chaining. + */ + public Builder setCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + command_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp commandExpiryTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commandExpiryTimeBuilder_; + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the commandExpiryTime field is set. + */ + public boolean hasCommandExpiryTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The commandExpiryTime. + */ + public com.google.protobuf.Timestamp getCommandExpiryTime() { + if (commandExpiryTimeBuilder_ == null) { + return commandExpiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commandExpiryTime_; + } else { + return commandExpiryTimeBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCommandExpiryTime(com.google.protobuf.Timestamp value) { + if (commandExpiryTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commandExpiryTime_ = value; + } else { + commandExpiryTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCommandExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (commandExpiryTimeBuilder_ == null) { + commandExpiryTime_ = builderForValue.build(); + } else { + commandExpiryTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCommandExpiryTime(com.google.protobuf.Timestamp value) { + if (commandExpiryTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && commandExpiryTime_ != null + && commandExpiryTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCommandExpiryTimeBuilder().mergeFrom(value); + } else { + commandExpiryTime_ = value; + } + } else { + commandExpiryTimeBuilder_.mergeFrom(value); + } + if (commandExpiryTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCommandExpiryTime() { + bitField0_ = (bitField0_ & ~0x00000004); + commandExpiryTime_ = null; + if (commandExpiryTimeBuilder_ != null) { + commandExpiryTimeBuilder_.dispose(); + commandExpiryTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCommandExpiryTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCommandExpiryTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { + if (commandExpiryTimeBuilder_ != null) { + return commandExpiryTimeBuilder_.getMessageOrBuilder(); + } else { + return commandExpiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commandExpiryTime_; + } + } + /** + * + * + *
      +     * Optional. Expiration time for the peering command to be executed on user's
      +     * ONTAP.
      +     * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCommandExpiryTimeFieldBuilder() { + if (commandExpiryTimeBuilder_ == null) { + commandExpiryTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommandExpiryTime(), getParentForChildren(), isClean()); + commandExpiryTime_ = null; + } + return commandExpiryTimeBuilder_; + } + + private java.lang.Object passphrase_ = ""; + /** + * + * + *
      +     * Optional. Temporary passphrase generated to accept cluster peering command.
      +     * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + public java.lang.String getPassphrase() { + java.lang.Object ref = passphrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passphrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. Temporary passphrase generated to accept cluster peering command.
      +     * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + public com.google.protobuf.ByteString getPassphraseBytes() { + java.lang.Object ref = passphrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passphrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. Temporary passphrase generated to accept cluster peering command.
      +     * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The passphrase to set. + * @return This builder for chaining. + */ + public Builder setPassphrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + passphrase_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Temporary passphrase generated to accept cluster peering command.
      +     * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPassphrase() { + passphrase_ = getDefaultInstance().getPassphrase(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Temporary passphrase generated to accept cluster peering command.
      +     * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for passphrase to set. + * @return This builder for chaining. + */ + public Builder setPassphraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + passphrase_ = 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.netapp.v1.HybridPeeringDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.HybridPeeringDetails) + private static final com.google.cloud.netapp.v1.HybridPeeringDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.HybridPeeringDetails(); + } + + public static com.google.cloud.netapp.v1.HybridPeeringDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridPeeringDetails 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.netapp.v1.HybridPeeringDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java new file mode 100644 index 000000000000..508f32d762d2 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.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/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +public interface HybridPeeringDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.HybridPeeringDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. IP address of the subnet.
      +   * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetIp. + */ + java.lang.String getSubnetIp(); + /** + * + * + *
      +   * Optional. IP address of the subnet.
      +   * 
      + * + * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetIp. + */ + com.google.protobuf.ByteString getSubnetIpBytes(); + + /** + * + * + *
      +   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +   * peering requests.
      +   * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The command. + */ + java.lang.String getCommand(); + /** + * + * + *
      +   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
      +   * peering requests.
      +   * 
      + * + * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for command. + */ + com.google.protobuf.ByteString getCommandBytes(); + + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the commandExpiryTime field is set. + */ + boolean hasCommandExpiryTime(); + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The commandExpiryTime. + */ + com.google.protobuf.Timestamp getCommandExpiryTime(); + /** + * + * + *
      +   * Optional. Expiration time for the peering command to be executed on user's
      +   * ONTAP.
      +   * 
      + * + * + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder(); + + /** + * + * + *
      +   * Optional. Temporary passphrase generated to accept cluster peering command.
      +   * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + java.lang.String getPassphrase(); + /** + * + * + *
      +   * Optional. Temporary passphrase generated to accept cluster peering command.
      +   * 
      + * + * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + com.google.protobuf.ByteString getPassphraseBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java new file mode 100644 index 000000000000..b00bf7bba756 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java @@ -0,0 +1,2204 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/netapp/v1/volume.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +/** + * + * + *
      + * The Hybrid Replication parameters for the volume.
      + * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.HybridReplicationParameters} + */ +public final class HybridReplicationParameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.HybridReplicationParameters) + HybridReplicationParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridReplicationParameters.newBuilder() to construct. + private HybridReplicationParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridReplicationParameters() { + replication_ = ""; + peerVolumeName_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clusterLocation_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridReplicationParameters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.HybridReplicationParameters.class, + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder.class); + } + + public static final int REPLICATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object replication_ = ""; + /** + * + * + *
      +   * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +   * Format:
      +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +   * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The replication. + */ + @java.lang.Override + public java.lang.String getReplication() { + java.lang.Object ref = replication_; + 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(); + replication_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +   * Format:
      +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +   * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for replication. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReplicationBytes() { + java.lang.Object ref = replication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_VOLUME_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerVolumeName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + @java.lang.Override + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + 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(); + peerVolumeName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_CLUSTER_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerClusterName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + @java.lang.Override + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + 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(); + peerClusterName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_SVM_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerSvmName_ = ""; + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + @java.lang.Override + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + 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(); + peerSvmName_ = s; + return s; + } + } + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_IP_ADDRESSES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + return peerIpAddresses_; + } + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + + public static final int CLUSTER_LOCATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterLocation_ = ""; + /** + * + * + *
      +   * Optional. Name of source cluster location associated with the Hybrid
      +   * replication. This is a free-form field for the display purpose only.
      +   * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ + @java.lang.Override + public java.lang.String getClusterLocation() { + java.lang.Object ref = clusterLocation_; + 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(); + clusterLocation_ = s; + return s; + } + } + /** + * + * + *
      +   * Optional. Name of source cluster location associated with the Hybrid
      +   * replication. This is a free-form field for the display purpose only.
      +   * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterLocationBytes() { + java.lang.Object ref = clusterLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
      +   * Optional. Description of the replication.
      +   * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
      +   * Optional. Description of the replication.
      +   * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().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(replication_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerVolumeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peerVolumeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerClusterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerSvmName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, peerSvmName_); + } + for (int i = 0; i < peerIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, peerIpAddresses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + 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(replication_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replication_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerVolumeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerVolumeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerClusterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerSvmName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, peerSvmName_); + } + { + int dataSize = 0; + for (int i = 0; i < peerIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(peerIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerIpAddressesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterLocation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + } + 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.netapp.v1.HybridReplicationParameters)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.HybridReplicationParameters other = + (com.google.cloud.netapp.v1.HybridReplicationParameters) obj; + + if (!getReplication().equals(other.getReplication())) return false; + if (!getPeerVolumeName().equals(other.getPeerVolumeName())) return false; + if (!getPeerClusterName().equals(other.getPeerClusterName())) return false; + if (!getPeerSvmName().equals(other.getPeerSvmName())) return false; + if (!getPeerIpAddressesList().equals(other.getPeerIpAddressesList())) return false; + if (!getClusterLocation().equals(other.getClusterLocation())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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) + REPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getReplication().hashCode(); + hash = (37 * hash) + PEER_VOLUME_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerVolumeName().hashCode(); + hash = (37 * hash) + PEER_CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerClusterName().hashCode(); + hash = (37 * hash) + PEER_SVM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerSvmName().hashCode(); + if (getPeerIpAddressesCount() > 0) { + hash = (37 * hash) + PEER_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getPeerIpAddressesList().hashCode(); + } + hash = (37 * hash) + CLUSTER_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getClusterLocation().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters 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 Hybrid Replication parameters for the volume.
      +   * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.HybridReplicationParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.HybridReplicationParameters) + com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.HybridReplicationParameters.class, + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.HybridReplicationParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + replication_ = ""; + peerVolumeName_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clusterLocation_ = ""; + description_ = ""; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters build() { + com.google.cloud.netapp.v1.HybridReplicationParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters buildPartial() { + com.google.cloud.netapp.v1.HybridReplicationParameters result = + new com.google.cloud.netapp.v1.HybridReplicationParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.HybridReplicationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replication_ = replication_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.peerVolumeName_ = peerVolumeName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.peerClusterName_ = peerClusterName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.peerSvmName_ = peerSvmName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + peerIpAddresses_.makeImmutable(); + result.peerIpAddresses_ = peerIpAddresses_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clusterLocation_ = clusterLocation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + + @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.netapp.v1.HybridReplicationParameters) { + return mergeFrom((com.google.cloud.netapp.v1.HybridReplicationParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.HybridReplicationParameters other) { + if (other == com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance()) + return this; + if (!other.getReplication().isEmpty()) { + replication_ = other.replication_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPeerVolumeName().isEmpty()) { + peerVolumeName_ = other.peerVolumeName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPeerClusterName().isEmpty()) { + peerClusterName_ = other.peerClusterName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPeerSvmName().isEmpty()) { + peerSvmName_ = other.peerSvmName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.peerIpAddresses_.isEmpty()) { + if (peerIpAddresses_.isEmpty()) { + peerIpAddresses_ = other.peerIpAddresses_; + bitField0_ |= 0x00000010; + } else { + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.addAll(other.peerIpAddresses_); + } + onChanged(); + } + if (!other.getClusterLocation().isEmpty()) { + clusterLocation_ = other.clusterLocation_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + 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: + { + replication_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + peerVolumeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + peerClusterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + peerSvmName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(s); + break; + } // case 42 + case 50: + { + clusterLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + 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 replication_ = ""; + /** + * + * + *
      +     * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +     * Format:
      +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +     * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The replication. + */ + public java.lang.String getReplication() { + java.lang.Object ref = replication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +     * Format:
      +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +     * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for replication. + */ + public com.google.protobuf.ByteString getReplicationBytes() { + java.lang.Object ref = replication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +     * Format:
      +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +     * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The replication to set. + * @return This builder for chaining. + */ + public Builder setReplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + replication_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +     * Format:
      +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +     * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearReplication() { + replication_ = getDefaultInstance().getReplication(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +     * Format:
      +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +     * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for replication to set. + * @return This builder for chaining. + */ + public Builder setReplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replication_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object peerVolumeName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerVolumeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerVolumeName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerVolumeName() { + peerVolumeName_ = getDefaultInstance().getPeerVolumeName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source volume to be peered with the
      +     * destination volume.
      +     * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerVolumeName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object peerClusterName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerClusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerClusterName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerClusterName() { + peerClusterName_ = getDefaultInstance().getPeerClusterName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source cluster to be peered with the
      +     * destination cluster.
      +     * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerClusterName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object peerSvmName_ = ""; + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerSvmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerSvmName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerSvmName() { + peerSvmName_ = getDefaultInstance().getPeerSvmName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. Name of the user's local source vserver svm to be peered with the
      +     * destination vserver svm.
      +     * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerSvmName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerIpAddressesIsMutable() { + if (!peerIpAddresses_.isModifiable()) { + peerIpAddresses_ = new com.google.protobuf.LazyStringArrayList(peerIpAddresses_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + peerIpAddresses_.makeImmutable(); + return peerIpAddresses_; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The peerIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setPeerIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllPeerIpAddresses(java.lang.Iterable values) { + ensurePeerIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerIpAddresses_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerIpAddresses() { + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
      +     * Required. List of node ip addresses to be peered with.
      +     * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object clusterLocation_ = ""; + /** + * + * + *
      +     * Optional. Name of source cluster location associated with the Hybrid
      +     * replication. This is a free-form field for the display purpose only.
      +     * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ + public java.lang.String getClusterLocation() { + java.lang.Object ref = clusterLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. Name of source cluster location associated with the Hybrid
      +     * replication. This is a free-form field for the display purpose only.
      +     * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + public com.google.protobuf.ByteString getClusterLocationBytes() { + java.lang.Object ref = clusterLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. Name of source cluster location associated with the Hybrid
      +     * replication. This is a free-form field for the display purpose only.
      +     * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterLocation to set. + * @return This builder for chaining. + */ + public Builder setClusterLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterLocation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Name of source cluster location associated with the Hybrid
      +     * replication. This is a free-form field for the display purpose only.
      +     * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterLocation() { + clusterLocation_ = getDefaultInstance().getClusterLocation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Name of source cluster location associated with the Hybrid
      +     * replication. This is a free-form field for the display purpose only.
      +     * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterLocation to set. + * @return This builder for chaining. + */ + public Builder setClusterLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterLocation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
      +     * Optional. Description of the replication.
      +     * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
      +     * Optional. Description of the replication.
      +     * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
      +     * Optional. Description of the replication.
      +     * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Description of the replication.
      +     * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Description of the replication.
      +     * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + /** + * + * + *
      +     * Optional. Labels to be added to the replication as the key value pairs.
      +     * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + 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.netapp.v1.HybridReplicationParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.HybridReplicationParameters) + private static final com.google.cloud.netapp.v1.HybridReplicationParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.HybridReplicationParameters(); + } + + public static com.google.cloud.netapp.v1.HybridReplicationParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridReplicationParameters 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.netapp.v1.HybridReplicationParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java new file mode 100644 index 000000000000..6e6cc12b374d --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java @@ -0,0 +1,301 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/netapp/v1/volume.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +public interface HybridReplicationParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.HybridReplicationParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +   * Format:
      +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +   * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The replication. + */ + java.lang.String getReplication(); + /** + * + * + *
      +   * Required. Desired Identifier (name) of the replication which will be created for this volume.
      +   * Format:
      +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
      +   * 
      + * + * + * string replication = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for replication. + */ + com.google.protobuf.ByteString getReplicationBytes(); + + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + java.lang.String getPeerVolumeName(); + /** + * + * + *
      +   * Required. Name of the user's local source volume to be peered with the
      +   * destination volume.
      +   * 
      + * + * string peer_volume_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + com.google.protobuf.ByteString getPeerVolumeNameBytes(); + + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + java.lang.String getPeerClusterName(); + /** + * + * + *
      +   * Required. Name of the user's local source cluster to be peered with the
      +   * destination cluster.
      +   * 
      + * + * string peer_cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + com.google.protobuf.ByteString getPeerClusterNameBytes(); + + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + java.lang.String getPeerSvmName(); + /** + * + * + *
      +   * Required. Name of the user's local source vserver svm to be peered with the
      +   * destination vserver svm.
      +   * 
      + * + * string peer_svm_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + com.google.protobuf.ByteString getPeerSvmNameBytes(); + + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the peerIpAddresses. + */ + java.util.List getPeerIpAddressesList(); + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of peerIpAddresses. + */ + int getPeerIpAddressesCount(); + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + java.lang.String getPeerIpAddresses(int index); + /** + * + * + *
      +   * Required. List of node ip addresses to be peered with.
      +   * 
      + * + * repeated string peer_ip_addresses = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + com.google.protobuf.ByteString getPeerIpAddressesBytes(int index); + + /** + * + * + *
      +   * Optional. Name of source cluster location associated with the Hybrid
      +   * replication. This is a free-form field for the display purpose only.
      +   * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ + java.lang.String getClusterLocation(); + /** + * + * + *
      +   * Optional. Name of source cluster location associated with the Hybrid
      +   * replication. This is a free-form field for the display purpose only.
      +   * 
      + * + * string cluster_location = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + com.google.protobuf.ByteString getClusterLocationBytes(); + + /** + * + * + *
      +   * Optional. Description of the replication.
      +   * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
      +   * Optional. Description of the replication.
      +   * 
      + * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
      +   * Optional. Labels to be added to the replication as the key value pairs.
      +   * 
      + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java index 03d6d46fc943..535b998bb7b3 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java @@ -50,6 +50,8 @@ private Replication() { destinationVolume_ = ""; description_ = ""; sourceVolume_ = ""; + clusterLocation_ = ""; + hybridReplicationType_ = 0; } @java.lang.Override @@ -156,6 +158,26 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 6; */ ERROR(6), + /** + * + * + *
      +     * Replication is waiting for cluster peering to be established.
      +     * 
      + * + * PENDING_CLUSTER_PEERING = 8; + */ + PENDING_CLUSTER_PEERING(8), + /** + * + * + *
      +     * Replication is waiting for SVM peering to be established.
      +     * 
      + * + * PENDING_SVM_PEERING = 9; + */ + PENDING_SVM_PEERING(9), UNRECOGNIZED(-1), ; @@ -219,6 +241,26 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 6; */ public static final int ERROR_VALUE = 6; + /** + * + * + *
      +     * Replication is waiting for cluster peering to be established.
      +     * 
      + * + * PENDING_CLUSTER_PEERING = 8; + */ + public static final int PENDING_CLUSTER_PEERING_VALUE = 8; + /** + * + * + *
      +     * Replication is waiting for SVM peering to be established.
      +     * 
      + * + * PENDING_SVM_PEERING = 9; + */ + public static final int PENDING_SVM_PEERING_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -256,6 +298,10 @@ public static State forNumber(int value) { return DELETING; case 6: return ERROR; + case 8: + return PENDING_CLUSTER_PEERING; + case 9: + return PENDING_SVM_PEERING; default: return null; } @@ -715,6 +761,26 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { * TRANSFERRING = 4; */ TRANSFERRING(4), + /** + * + * + *
      +     * Baseline replication is in progress.
      +     * 
      + * + * BASELINE_TRANSFERRING = 5; + */ + BASELINE_TRANSFERRING(5), + /** + * + * + *
      +     * Replication is aborted.
      +     * 
      + * + * ABORTED = 6; + */ + ABORTED(6), UNRECOGNIZED(-1), ; @@ -769,6 +835,26 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { * TRANSFERRING = 4; */ public static final int TRANSFERRING_VALUE = 4; + /** + * + * + *
      +     * Baseline replication is in progress.
      +     * 
      + * + * BASELINE_TRANSFERRING = 5; + */ + public static final int BASELINE_TRANSFERRING_VALUE = 5; + /** + * + * + *
      +     * Replication is aborted.
      +     * 
      + * + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -804,6 +890,10 @@ public static MirrorState forNumber(int value) { return STOPPED; case 4: return TRANSFERRING; + case 5: + return BASELINE_TRANSFERRING; + case 6: + return ABORTED; default: return null; } @@ -857,6 +947,166 @@ private MirrorState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.MirrorState) } + /** + * + * + *
      +   * Hybrid replication type.
      +   * 
      + * + * Protobuf enum {@code google.cloud.netapp.v1.Replication.HybridReplicationType} + */ + public enum HybridReplicationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified hybrid replication type.
      +     * 
      + * + * HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + */ + HYBRID_REPLICATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * Hybrid replication type for migration.
      +     * 
      + * + * MIGRATION = 1; + */ + MIGRATION(1), + /** + * + * + *
      +     * Hybrid replication type for continuous replication.
      +     * 
      + * + * CONTINUOUS_REPLICATION = 2; + */ + CONTINUOUS_REPLICATION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified hybrid replication type.
      +     * 
      + * + * HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + */ + public static final int HYBRID_REPLICATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
      +     * Hybrid replication type for migration.
      +     * 
      + * + * MIGRATION = 1; + */ + public static final int MIGRATION_VALUE = 1; + /** + * + * + *
      +     * Hybrid replication type for continuous replication.
      +     * 
      + * + * CONTINUOUS_REPLICATION = 2; + */ + public static final int CONTINUOUS_REPLICATION_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 HybridReplicationType 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 HybridReplicationType forNumber(int value) { + switch (value) { + case 0: + return HYBRID_REPLICATION_TYPE_UNSPECIFIED; + case 1: + return MIGRATION; + case 2: + return CONTINUOUS_REPLICATION; + 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 HybridReplicationType findValueByNumber(int number) { + return HybridReplicationType.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.netapp.v1.Replication.getDescriptor().getEnumTypes().get(4); + } + + private static final HybridReplicationType[] VALUES = values(); + + public static HybridReplicationType 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 HybridReplicationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.HybridReplicationType) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -1611,36 +1861,186 @@ public com.google.protobuf.ByteString getSourceVolumeBytes() { } } - private byte memoizedIsInitialized = -1; - + public static final int HYBRID_PEERING_DETAILS_FIELD_NUMBER = 16; + private com.google.cloud.netapp.v1.HybridPeeringDetails hybridPeeringDetails_; + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridPeeringDetails field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasHybridPeeringDetails() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridPeeringDetails. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridPeeringDetails getHybridPeeringDetails() { + return hybridPeeringDetails_ == null + ? com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance() + : hybridPeeringDetails_; + } + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder + getHybridPeeringDetailsOrBuilder() { + return hybridPeeringDetails_ == null + ? com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance() + : hybridPeeringDetails_; } + public static final int CLUSTER_LOCATION_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterLocation_ = ""; + /** + * + * + *
      +   * Optional. Location of the user cluster.
      +   * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ @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 (state_ != com.google.cloud.netapp.v1.Replication.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateDetails_); - } - if (role_ - != com.google.cloud.netapp.v1.Replication.ReplicationRole.REPLICATION_ROLE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, role_); + public java.lang.String getClusterLocation() { + java.lang.Object ref = clusterLocation_; + 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(); + clusterLocation_ = s; + return s; } - if (replicationSchedule_ - != com.google.cloud.netapp.v1.Replication.ReplicationSchedule + } + /** + * + * + *
      +   * Optional. Location of the user cluster.
      +   * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterLocationBytes() { + java.lang.Object ref = clusterLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYBRID_REPLICATION_TYPE_FIELD_NUMBER = 19; + private int hybridReplicationType_ = 0; + /** + * + * + *
      +   * Output only. Type of the hybrid replication.
      +   * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + @java.lang.Override + public int getHybridReplicationTypeValue() { + return hybridReplicationType_; + } + /** + * + * + *
      +   * Output only. Type of the hybrid replication.
      +   * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Replication.HybridReplicationType getHybridReplicationType() { + com.google.cloud.netapp.v1.Replication.HybridReplicationType result = + com.google.cloud.netapp.v1.Replication.HybridReplicationType.forNumber( + hybridReplicationType_); + return result == null + ? com.google.cloud.netapp.v1.Replication.HybridReplicationType.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 (state_ != com.google.cloud.netapp.v1.Replication.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateDetails_); + } + if (role_ + != com.google.cloud.netapp.v1.Replication.ReplicationRole.REPLICATION_ROLE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, role_); + } + if (replicationSchedule_ + != com.google.cloud.netapp.v1.Replication.ReplicationSchedule .REPLICATION_SCHEDULE_UNSPECIFIED .getNumber()) { output.writeEnum(5, replicationSchedule_); @@ -1673,6 +2073,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVolume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, sourceVolume_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(16, getHybridPeeringDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, clusterLocation_); + } + if (hybridReplicationType_ + != com.google.cloud.netapp.v1.Replication.HybridReplicationType + .HYBRID_REPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(19, hybridReplicationType_); + } getUnknownFields().writeTo(output); } @@ -1740,6 +2152,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, sourceVolume_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, getHybridPeeringDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, clusterLocation_); + } + if (hybridReplicationType_ + != com.google.cloud.netapp.v1.Replication.HybridReplicationType + .HYBRID_REPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, hybridReplicationType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1785,6 +2210,12 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getSourceVolume().equals(other.getSourceVolume())) return false; + if (hasHybridPeeringDetails() != other.hasHybridPeeringDetails()) return false; + if (hasHybridPeeringDetails()) { + if (!getHybridPeeringDetails().equals(other.getHybridPeeringDetails())) return false; + } + if (!getClusterLocation().equals(other.getClusterLocation())) return false; + if (hybridReplicationType_ != other.hybridReplicationType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1836,6 +2267,14 @@ public int hashCode() { } hash = (37 * hash) + SOURCE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getSourceVolume().hashCode(); + if (hasHybridPeeringDetails()) { + hash = (37 * hash) + HYBRID_PEERING_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getHybridPeeringDetails().hashCode(); + } + hash = (37 * hash) + CLUSTER_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getClusterLocation().hashCode(); + hash = (37 * hash) + HYBRID_REPLICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + hybridReplicationType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2003,6 +2442,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getTransferStatsFieldBuilder(); getDestinationVolumeParametersFieldBuilder(); + getHybridPeeringDetailsFieldBuilder(); } } @@ -2036,6 +2476,13 @@ public Builder clear() { destinationVolumeParametersBuilder_ = null; } sourceVolume_ = ""; + hybridPeeringDetails_ = null; + if (hybridPeeringDetailsBuilder_ != null) { + hybridPeeringDetailsBuilder_.dispose(); + hybridPeeringDetailsBuilder_ = null; + } + clusterLocation_ = ""; + hybridReplicationType_ = 0; return this; } @@ -2125,6 +2572,19 @@ private void buildPartial0(com.google.cloud.netapp.v1.Replication result) { if (((from_bitField0_ & 0x00002000) != 0)) { result.sourceVolume_ = sourceVolume_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.hybridPeeringDetails_ = + hybridPeeringDetailsBuilder_ == null + ? hybridPeeringDetails_ + : hybridPeeringDetailsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.clusterLocation_ = clusterLocation_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.hybridReplicationType_ = hybridReplicationType_; + } result.bitField0_ |= to_bitField0_; } @@ -2224,6 +2684,17 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Replication other) { bitField0_ |= 0x00002000; onChanged(); } + if (other.hasHybridPeeringDetails()) { + mergeHybridPeeringDetails(other.getHybridPeeringDetails()); + } + if (!other.getClusterLocation().isEmpty()) { + clusterLocation_ = other.clusterLocation_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hybridReplicationType_ != 0) { + setHybridReplicationTypeValue(other.getHybridReplicationTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2341,6 +2812,25 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 122 + case 130: + { + input.readMessage( + getHybridPeeringDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 130 + case 146: + { + clusterLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 146 + case 152: + { + hybridReplicationType_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4215,6 +4705,424 @@ public Builder setSourceVolumeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.netapp.v1.HybridPeeringDetails hybridPeeringDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridPeeringDetails, + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder, + com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder> + hybridPeeringDetailsBuilder_; + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridPeeringDetails field is set. + */ + public boolean hasHybridPeeringDetails() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridPeeringDetails. + */ + public com.google.cloud.netapp.v1.HybridPeeringDetails getHybridPeeringDetails() { + if (hybridPeeringDetailsBuilder_ == null) { + return hybridPeeringDetails_ == null + ? com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance() + : hybridPeeringDetails_; + } else { + return hybridPeeringDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHybridPeeringDetails(com.google.cloud.netapp.v1.HybridPeeringDetails value) { + if (hybridPeeringDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridPeeringDetails_ = value; + } else { + hybridPeeringDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHybridPeeringDetails( + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder builderForValue) { + if (hybridPeeringDetailsBuilder_ == null) { + hybridPeeringDetails_ = builderForValue.build(); + } else { + hybridPeeringDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHybridPeeringDetails( + com.google.cloud.netapp.v1.HybridPeeringDetails value) { + if (hybridPeeringDetailsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && hybridPeeringDetails_ != null + && hybridPeeringDetails_ + != com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance()) { + getHybridPeeringDetailsBuilder().mergeFrom(value); + } else { + hybridPeeringDetails_ = value; + } + } else { + hybridPeeringDetailsBuilder_.mergeFrom(value); + } + if (hybridPeeringDetails_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHybridPeeringDetails() { + bitField0_ = (bitField0_ & ~0x00004000); + hybridPeeringDetails_ = null; + if (hybridPeeringDetailsBuilder_ != null) { + hybridPeeringDetailsBuilder_.dispose(); + hybridPeeringDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.HybridPeeringDetails.Builder + getHybridPeeringDetailsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getHybridPeeringDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder + getHybridPeeringDetailsOrBuilder() { + if (hybridPeeringDetailsBuilder_ != null) { + return hybridPeeringDetailsBuilder_.getMessageOrBuilder(); + } else { + return hybridPeeringDetails_ == null + ? com.google.cloud.netapp.v1.HybridPeeringDetails.getDefaultInstance() + : hybridPeeringDetails_; + } + } + /** + * + * + *
      +     * Output only. Hybrid peering details.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridPeeringDetails, + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder, + com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder> + getHybridPeeringDetailsFieldBuilder() { + if (hybridPeeringDetailsBuilder_ == null) { + hybridPeeringDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridPeeringDetails, + com.google.cloud.netapp.v1.HybridPeeringDetails.Builder, + com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder>( + getHybridPeeringDetails(), getParentForChildren(), isClean()); + hybridPeeringDetails_ = null; + } + return hybridPeeringDetailsBuilder_; + } + + private java.lang.Object clusterLocation_ = ""; + /** + * + * + *
      +     * Optional. Location of the user cluster.
      +     * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ + public java.lang.String getClusterLocation() { + java.lang.Object ref = clusterLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
      +     * Optional. Location of the user cluster.
      +     * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + public com.google.protobuf.ByteString getClusterLocationBytes() { + java.lang.Object ref = clusterLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
      +     * Optional. Location of the user cluster.
      +     * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterLocation to set. + * @return This builder for chaining. + */ + public Builder setClusterLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterLocation_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Location of the user cluster.
      +     * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterLocation() { + clusterLocation_ = getDefaultInstance().getClusterLocation(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. Location of the user cluster.
      +     * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterLocation to set. + * @return This builder for chaining. + */ + public Builder setClusterLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterLocation_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private int hybridReplicationType_ = 0; + /** + * + * + *
      +     * Output only. Type of the hybrid replication.
      +     * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + @java.lang.Override + public int getHybridReplicationTypeValue() { + return hybridReplicationType_; + } + /** + * + * + *
      +     * Output only. Type of the hybrid replication.
      +     * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for hybridReplicationType to set. + * @return This builder for chaining. + */ + public Builder setHybridReplicationTypeValue(int value) { + hybridReplicationType_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Type of the hybrid replication.
      +     * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Replication.HybridReplicationType getHybridReplicationType() { + com.google.cloud.netapp.v1.Replication.HybridReplicationType result = + com.google.cloud.netapp.v1.Replication.HybridReplicationType.forNumber( + hybridReplicationType_); + return result == null + ? com.google.cloud.netapp.v1.Replication.HybridReplicationType.UNRECOGNIZED + : result; + } + /** + * + * + *
      +     * Output only. Type of the hybrid replication.
      +     * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The hybridReplicationType to set. + * @return This builder for chaining. + */ + public Builder setHybridReplicationType( + com.google.cloud.netapp.v1.Replication.HybridReplicationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + hybridReplicationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
      +     * Output only. Type of the hybrid replication.
      +     * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearHybridReplicationType() { + bitField0_ = (bitField0_ & ~0x00010000); + hybridReplicationType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java index 36ac41661e0b..9b8ea373f084 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java @@ -504,4 +504,99 @@ java.lang.String getLabelsOrDefault( * @return The bytes for sourceVolume. */ com.google.protobuf.ByteString getSourceVolumeBytes(); + + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridPeeringDetails field is set. + */ + boolean hasHybridPeeringDetails(); + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridPeeringDetails. + */ + com.google.cloud.netapp.v1.HybridPeeringDetails getHybridPeeringDetails(); + /** + * + * + *
      +   * Output only. Hybrid peering details.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder getHybridPeeringDetailsOrBuilder(); + + /** + * + * + *
      +   * Optional. Location of the user cluster.
      +   * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterLocation. + */ + java.lang.String getClusterLocation(); + /** + * + * + *
      +   * Optional. Location of the user cluster.
      +   * 
      + * + * string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterLocation. + */ + com.google.protobuf.ByteString getClusterLocationBytes(); + + /** + * + * + *
      +   * Output only. Type of the hybrid replication.
      +   * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + int getHybridReplicationTypeValue(); + /** + * + * + *
      +   * Output only. Type of the hybrid replication.
      +   * 
      + * + * + * .google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationType. + */ + com.google.cloud.netapp.v1.Replication.HybridReplicationType getHybridReplicationType(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java index 2c4963777d11..e2648b4aa8b2 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_Replication_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_netapp_v1_Replication_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_HybridPeeringDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_ListReplicationsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,6 +84,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_ReverseReplicationDirectionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_netapp_v1_ReverseReplicationDirectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_SyncReplicationRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -92,96 +104,121 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/netapp/v1/replication.pro" + "to\022\026google.cloud.netapp.v1\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032\036google/protobuf/duration.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\"\324\004\n\rTransferSt" - + "ats\022\033\n\016transfer_bytes\030\001 \001(\003H\000\210\001\001\022?\n\027tota" - + "l_transfer_duration\030\002 \001(\0132\031.google.proto" - + "buf.DurationH\001\210\001\001\022 \n\023last_transfer_bytes" - + "\030\003 \001(\003H\002\210\001\001\022>\n\026last_transfer_duration\030\004 " - + "\001(\0132\031.google.protobuf.DurationH\003\210\001\001\0224\n\014l" - + "ag_duration\030\005 \001(\0132\031.google.protobuf.Dura" - + "tionH\004\210\001\001\0224\n\013update_time\030\006 \001(\0132\032.google." - + "protobuf.TimestampH\005\210\001\001\022?\n\026last_transfer" - + "_end_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampH\006\210\001\001\022 \n\023last_transfer_error\030\010 \001(\tH\007\210" - + "\001\001B\021\n\017_transfer_bytesB\032\n\030_total_transfer" - + "_durationB\026\n\024_last_transfer_bytesB\031\n\027_la" - + "st_transfer_durationB\017\n\r_lag_durationB\016\n" - + "\014_update_timeB\031\n\027_last_transfer_end_time" - + "B\026\n\024_last_transfer_error\"\250\013\n\013Replication" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\022=\n\005state\030\002 \001(\0162).goo" - + "gle.cloud.netapp.v1.Replication.StateB\003\340" - + "A\003\022\032\n\rstate_details\030\003 \001(\tB\003\340A\003\022F\n\004role\030\004" - + " \001(\01623.google.cloud.netapp.v1.Replicatio" - + "n.ReplicationRoleB\003\340A\003\022Z\n\024replication_sc" - + "hedule\030\005 \001(\01627.google.cloud.netapp.v1.Re" - + "plication.ReplicationScheduleB\003\340A\002\022J\n\014mi" - + "rror_state\030\006 \001(\0162/.google.cloud.netapp.v" - + "1.Replication.MirrorStateB\003\340A\003\022\031\n\007health" - + "y\030\010 \001(\010B\003\340A\003H\000\210\001\001\0224\n\013create_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022@\n\022desti" - + "nation_volume\030\n \001(\tB$\340A\003\372A\036\n\034netapp.goog" - + "leapis.com/Volume\022B\n\016transfer_stats\030\013 \001(" - + "\0132%.google.cloud.netapp.v1.TransferStats" - + "B\003\340A\003\022?\n\006labels\030\014 \003(\0132/.google.cloud.net" - + "app.v1.Replication.LabelsEntry\022\030\n\013descri" - + "ption\030\r \001(\tH\001\210\001\001\022b\n\035destination_volume_p" - + "arameters\030\016 \001(\01323.google.cloud.netapp.v1" - + ".DestinationVolumeParametersB\006\340A\004\340A\002\022;\n\r" - + "source_volume\030\017 \001(\tB$\340A\003\372A\036\n\034netapp.goog" - + "leapis.com/Volume\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\021STA" - + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020" - + "\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\005\022\t\n\005ERROR\020\006" - + "\"P\n\017ReplicationRole\022 \n\034REPLICATION_ROLE_" - + "UNSPECIFIED\020\000\022\n\n\006SOURCE\020\001\022\017\n\013DESTINATION" - + "\020\002\"h\n\023ReplicationSchedule\022$\n REPLICATION" - + "_SCHEDULE_UNSPECIFIED\020\000\022\024\n\020EVERY_10_MINU" - + "TES\020\001\022\n\n\006HOURLY\020\002\022\t\n\005DAILY\020\003\"g\n\013MirrorSt" - + "ate\022\034\n\030MIRROR_STATE_UNSPECIFIED\020\000\022\r\n\tPRE" - + "PARING\020\001\022\014\n\010MIRRORED\020\002\022\013\n\007STOPPED\020\003\022\020\n\014T" - + "RANSFERRING\020\004:\227\001\352A\223\001\n!netapp.googleapis." - + "com/Replication\022Sprojects/{project}/loca" - + "tions/{location}/volumes/{volume}/replic" - + "ations/{replication}*\014replications2\013repl" - + "icationB\n\n\010_healthyB\016\n\014_description\"\235\001\n\027" - + "ListReplicationsRequest\0229\n\006parent\030\001 \001(\tB" - + ")\340A\002\372A#\022!netapp.googleapis.com/Replicati" - + "on\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\"\203\001\n\030" - + "ListReplicationsResponse\0229\n\014replications" - + "\030\001 \003(\0132#.google.cloud.netapp.v1.Replicat" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" - + "ble\030\003 \003(\t\"P\n\025GetReplicationRequest\0227\n\004na" - + "me\030\001 \001(\tB)\340A\002\372A#\n!netapp.googleapis.com/" - + "Replication\"\257\001\n\033DestinationVolumeParamet" - + "ers\022?\n\014storage_pool\030\001 \001(\tB)\340A\002\372A#\n!netap" - + "p.googleapis.com/StoragePool\022\021\n\tvolume_i" - + "d\030\002 \001(\t\022\022\n\nshare_name\030\003 \001(\t\022\030\n\013descripti" - + "on\030\004 \001(\tH\000\210\001\001B\016\n\014_description\"\261\001\n\030Create" - + "ReplicationRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\022!netapp.googleapis.com/Replication\022=\n" - + "\013replication\030\002 \001(\0132#.google.cloud.netapp" - + ".v1.ReplicationB\003\340A\002\022\033\n\016replication_id\030\003" - + " \001(\tB\003\340A\002\"S\n\030DeleteReplicationRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp.googleapis.c" - + "om/Replication\"\217\001\n\030UpdateReplicationRequ" - + "est\0224\n\013update_mask\030\001 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\022=\n\013replication\030\002 \001(\0132#" - + ".google.cloud.netapp.v1.ReplicationB\003\340A\002" - + "\"`\n\026StopReplicationRequest\0227\n\004name\030\001 \001(\t" - + "B)\340A\002\372A#\n!netapp.googleapis.com/Replicat" - + "ion\022\r\n\005force\030\002 \001(\010\"S\n\030ResumeReplicationR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp.goo" - + "gleapis.com/Replication\"]\n\"ReverseReplic" - + "ationDirectionRequest\0227\n\004name\030\001 \001(\tB)\340A\002" - + "\372A#\n!netapp.googleapis.com/ReplicationB\262" - + "\001\n\032com.google.cloud.netapp.v1B\020Replicati" - + "onProtoP\001Z2cloud.google.com/go/netapp/ap" - + "iv1/netapppb;netapppb\252\002\026Google.Cloud.Net" - + "App.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google" - + "::Cloud::NetApp::V1b\006proto3" + + ".proto\032#google/cloud/netapp/v1/volume.pr" + + "oto\032\036google/protobuf/duration.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\324\004\n\rTransferStats" + + "\022\033\n\016transfer_bytes\030\001 \001(\003H\000\210\001\001\022?\n\027total_t" + + "ransfer_duration\030\002 \001(\0132\031.google.protobuf" + + ".DurationH\001\210\001\001\022 \n\023last_transfer_bytes\030\003 " + + "\001(\003H\002\210\001\001\022>\n\026last_transfer_duration\030\004 \001(\013" + + "2\031.google.protobuf.DurationH\003\210\001\001\0224\n\014lag_" + + "duration\030\005 \001(\0132\031.google.protobuf.Duratio" + + "nH\004\210\001\001\0224\n\013update_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampH\005\210\001\001\022?\n\026last_transfer_en" + + "d_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "H\006\210\001\001\022 \n\023last_transfer_error\030\010 \001(\tH\007\210\001\001B" + + "\021\n\017_transfer_bytesB\032\n\030_total_transfer_du" + + "rationB\026\n\024_last_transfer_bytesB\031\n\027_last_" + + "transfer_durationB\017\n\r_lag_durationB\016\n\014_u" + + "pdate_timeB\031\n\027_last_transfer_end_timeB\026\n" + + "\024_last_transfer_error\"\310\016\n\013Replication\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022=\n\005state\030\002 \001(\0162).google" + + ".cloud.netapp.v1.Replication.StateB\003\340A\003\022" + + "\032\n\rstate_details\030\003 \001(\tB\003\340A\003\022F\n\004role\030\004 \001(" + + "\01623.google.cloud.netapp.v1.Replication.R" + + "eplicationRoleB\003\340A\003\022Z\n\024replication_sched" + + "ule\030\005 \001(\01627.google.cloud.netapp.v1.Repli" + + "cation.ReplicationScheduleB\003\340A\002\022J\n\014mirro" + + "r_state\030\006 \001(\0162/.google.cloud.netapp.v1.R" + + "eplication.MirrorStateB\003\340A\003\022\031\n\007healthy\030\010" + + " \001(\010B\003\340A\003H\000\210\001\001\0224\n\013create_time\030\t \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022@\n\022destinat" + + "ion_volume\030\n \001(\tB$\340A\003\372A\036\n\034netapp.googlea" + + "pis.com/Volume\022B\n\016transfer_stats\030\013 \001(\0132%" + + ".google.cloud.netapp.v1.TransferStatsB\003\340" + + "A\003\022?\n\006labels\030\014 \003(\0132/.google.cloud.netapp" + + ".v1.Replication.LabelsEntry\022\030\n\013descripti" + + "on\030\r \001(\tH\001\210\001\001\022b\n\035destination_volume_para" + + "meters\030\016 \001(\01323.google.cloud.netapp.v1.De" + + "stinationVolumeParametersB\006\340A\004\340A\002\022;\n\rsou" + + "rce_volume\030\017 \001(\tB$\340A\003\372A\036\n\034netapp.googlea" + + "pis.com/Volume\022Q\n\026hybrid_peering_details" + + "\030\020 \001(\0132,.google.cloud.netapp.v1.HybridPe" + + "eringDetailsB\003\340A\003\022\035\n\020cluster_location\030\022 " + + "\001(\tB\003\340A\001\022_\n\027hybrid_replication_type\030\023 \001(" + + "\01629.google.cloud.netapp.v1.Replication.H" + + "ybridReplicationTypeB\003\340A\003\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\224\001\n\005Sta" + + "te\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\014\n\010DELETING\020\005\022\t" + + "\n\005ERROR\020\006\022\033\n\027PENDING_CLUSTER_PEERING\020\010\022\027" + + "\n\023PENDING_SVM_PEERING\020\t\"P\n\017ReplicationRo" + + "le\022 \n\034REPLICATION_ROLE_UNSPECIFIED\020\000\022\n\n\006" + + "SOURCE\020\001\022\017\n\013DESTINATION\020\002\"h\n\023Replication" + + "Schedule\022$\n REPLICATION_SCHEDULE_UNSPECI" + + "FIED\020\000\022\024\n\020EVERY_10_MINUTES\020\001\022\n\n\006HOURLY\020\002" + + "\022\t\n\005DAILY\020\003\"\217\001\n\013MirrorState\022\034\n\030MIRROR_ST" + + "ATE_UNSPECIFIED\020\000\022\r\n\tPREPARING\020\001\022\014\n\010MIRR" + + "ORED\020\002\022\013\n\007STOPPED\020\003\022\020\n\014TRANSFERRING\020\004\022\031\n" + + "\025BASELINE_TRANSFERRING\020\005\022\013\n\007ABORTED\020\006\"k\n" + + "\025HybridReplicationType\022\'\n#HYBRID_REPLICA" + + "TION_TYPE_UNSPECIFIED\020\000\022\r\n\tMIGRATION\020\001\022\032" + + "\n\026CONTINUOUS_REPLICATION\020\002:\227\001\352A\223\001\n!netap" + + "p.googleapis.com/Replication\022Sprojects/{" + + "project}/locations/{location}/volumes/{v" + + "olume}/replications/{replication}*\014repli" + + "cations2\013replicationB\n\n\010_healthyB\016\n\014_des" + + "cription\"\233\001\n\024HybridPeeringDetails\022\026\n\tsub" + + "net_ip\030\001 \001(\tB\003\340A\001\022\024\n\007command\030\002 \001(\tB\003\340A\001\022" + + "<\n\023command_expiry_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001\022\027\n\npassphrase\030\004 \001(" + + "\tB\003\340A\001\"\235\001\n\027ListReplicationsRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\022!netapp.googleapis.co" + + "m/Replication\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\"\203\001\n\030ListReplicationsResponse\0229\n\014r" + + "eplications\030\001 \003(\0132#.google.cloud.netapp." + + "v1.Replication\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"P\n\025GetReplicationRe" + + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp.goog" + + "leapis.com/Replication\"\213\002\n\033DestinationVo" + + "lumeParameters\022?\n\014storage_pool\030\001 \001(\tB)\340A" + + "\002\372A#\n!netapp.googleapis.com/StoragePool\022" + + "\021\n\tvolume_id\030\002 \001(\t\022\022\n\nshare_name\030\003 \001(\t\022\030" + + "\n\013description\030\004 \001(\tH\000\210\001\001\022G\n\016tiering_poli" + + "cy\030\005 \001(\0132%.google.cloud.netapp.v1.Tierin" + + "gPolicyB\003\340A\001H\001\210\001\001B\016\n\014_descriptionB\021\n\017_ti" + + "ering_policy\"\261\001\n\030CreateReplicationReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!netapp.google" + + "apis.com/Replication\022=\n\013replication\030\002 \001(" + + "\0132#.google.cloud.netapp.v1.ReplicationB\003" + + "\340A\002\022\033\n\016replication_id\030\003 \001(\tB\003\340A\002\"S\n\030Dele" + + "teReplicationRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" + + "A#\n!netapp.googleapis.com/Replication\"\217\001" + + "\n\030UpdateReplicationRequest\0224\n\013update_mas" + + "k\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\022=\n\013replication\030\002 \001(\0132#.google.cloud.net" + + "app.v1.ReplicationB\003\340A\002\"`\n\026StopReplicati" + + "onRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp." + + "googleapis.com/Replication\022\r\n\005force\030\002 \001(" + + "\010\"S\n\030ResumeReplicationRequest\0227\n\004name\030\001 " + + "\001(\tB)\340A\002\372A#\n!netapp.googleapis.com/Repli" + + "cation\"]\n\"ReverseReplicationDirectionReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp.googl" + + "eapis.com/Replication\"\315\001\n\027EstablishPeeri" + + "ngRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp." + + "googleapis.com/Replication\022\036\n\021peer_clust" + + "er_name\030\002 \001(\tB\003\340A\002\022\032\n\rpeer_svm_name\030\003 \001(" + + "\tB\003\340A\002\022\036\n\021peer_ip_addresses\030\004 \003(\tB\003\340A\001\022\035" + + "\n\020peer_volume_name\030\005 \001(\tB\003\340A\002\"Q\n\026SyncRep" + + "licationRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!n" + + "etapp.googleapis.com/ReplicationB\262\001\n\032com" + + ".google.cloud.netapp.v1B\020ReplicationProt" + + "oP\001Z2cloud.google.com/go/netapp/apiv1/ne" + + "tapppb;netapppb\252\002\026Google.Cloud.NetApp.V1" + + "\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Clou" + + "d::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -189,6 +226,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.netapp.v1.VolumeProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -228,6 +266,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "DestinationVolumeParameters", "SourceVolume", + "HybridPeeringDetails", + "ClusterLocation", + "HybridReplicationType", }); internal_static_google_cloud_netapp_v1_Replication_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Replication_descriptor.getNestedTypes().get(0); @@ -237,8 +278,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_netapp_v1_ListReplicationsRequest_descriptor = + internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_netapp_v1_HybridPeeringDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_HybridPeeringDetails_descriptor, + new java.lang.String[] { + "SubnetIp", "Command", "CommandExpiryTime", "Passphrase", + }); + internal_static_google_cloud_netapp_v1_ListReplicationsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_netapp_v1_ListReplicationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ListReplicationsRequest_descriptor, @@ -246,7 +295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_netapp_v1_ListReplicationsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_netapp_v1_ListReplicationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ListReplicationsResponse_descriptor, @@ -254,7 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Replications", "NextPageToken", "Unreachable", }); internal_static_google_cloud_netapp_v1_GetReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_netapp_v1_GetReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_GetReplicationRequest_descriptor, @@ -262,15 +311,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_netapp_v1_DestinationVolumeParameters_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_netapp_v1_DestinationVolumeParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_DestinationVolumeParameters_descriptor, new java.lang.String[] { - "StoragePool", "VolumeId", "ShareName", "Description", + "StoragePool", "VolumeId", "ShareName", "Description", "TieringPolicy", }); internal_static_google_cloud_netapp_v1_CreateReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_netapp_v1_CreateReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CreateReplicationRequest_descriptor, @@ -278,7 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Replication", "ReplicationId", }); internal_static_google_cloud_netapp_v1_DeleteReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_netapp_v1_DeleteReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_DeleteReplicationRequest_descriptor, @@ -286,7 +335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_netapp_v1_UpdateReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_netapp_v1_UpdateReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_UpdateReplicationRequest_descriptor, @@ -294,7 +343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Replication", }); internal_static_google_cloud_netapp_v1_StopReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_netapp_v1_StopReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_StopReplicationRequest_descriptor, @@ -302,7 +351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_netapp_v1_ResumeReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_netapp_v1_ResumeReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ResumeReplicationRequest_descriptor, @@ -310,13 +359,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_netapp_v1_ReverseReplicationDirectionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_netapp_v1_ReverseReplicationDirectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ReverseReplicationDirectionRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_EstablishPeeringRequest_descriptor, + new java.lang.String[] { + "Name", "PeerClusterName", "PeerSvmName", "PeerIpAddresses", "PeerVolumeName", + }); + internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_netapp_v1_SyncReplicationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -326,6 +391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.netapp.v1.VolumeProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequest.java new file mode 100644 index 000000000000..f8afb7333233 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequest.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/cloud/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +/** + * + * + *
      + * SyncReplicationRequest syncs the replication from source to destination.
      + * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.SyncReplicationRequest} + */ +public final class SyncReplicationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.SyncReplicationRequest) + SyncReplicationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SyncReplicationRequest.newBuilder() to construct. + private SyncReplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SyncReplicationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SyncReplicationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_SyncReplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.SyncReplicationRequest.class, + com.google.cloud.netapp.v1.SyncReplicationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
      +   * Required. The resource name of the replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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.netapp.v1.SyncReplicationRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.SyncReplicationRequest other = + (com.google.cloud.netapp.v1.SyncReplicationRequest) 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.netapp.v1.SyncReplicationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest 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; + } + /** + * + * + *
      +   * SyncReplicationRequest syncs the replication from source to destination.
      +   * 
      + * + * Protobuf type {@code google.cloud.netapp.v1.SyncReplicationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.SyncReplicationRequest) + com.google.cloud.netapp.v1.SyncReplicationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_SyncReplicationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.SyncReplicationRequest.class, + com.google.cloud.netapp.v1.SyncReplicationRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.SyncReplicationRequest.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.netapp.v1.ReplicationProto + .internal_static_google_cloud_netapp_v1_SyncReplicationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SyncReplicationRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.SyncReplicationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SyncReplicationRequest build() { + com.google.cloud.netapp.v1.SyncReplicationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.SyncReplicationRequest buildPartial() { + com.google.cloud.netapp.v1.SyncReplicationRequest result = + new com.google.cloud.netapp.v1.SyncReplicationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest) { + return mergeFrom((com.google.cloud.netapp.v1.SyncReplicationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.SyncReplicationRequest other) { + if (other == com.google.cloud.netapp.v1.SyncReplicationRequest.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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +     * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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.netapp.v1.SyncReplicationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.SyncReplicationRequest) + private static final com.google.cloud.netapp.v1.SyncReplicationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.SyncReplicationRequest(); + } + + public static com.google.cloud.netapp.v1.SyncReplicationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncReplicationRequest 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.netapp.v1.SyncReplicationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequestOrBuilder.java new file mode 100644 index 000000000000..0282d2acbf56 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SyncReplicationRequestOrBuilder.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/netapp/v1/replication.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.netapp.v1; + +public interface SyncReplicationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.SyncReplicationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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 replication, in the format of
      +   * projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_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-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 2e231ef939ed..b3c08ea2254a 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 @@ -184,6 +184,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 7; */ ERROR(7), + /** + * + * + *
      +     * Volume State is Preparing. Note that this is different from CREATING
      +     * where CREATING means the volume is being created, while PREPARING means
      +     * the volume is created and now being prepared for the replication.
      +     * 
      + * + * PREPARING = 8; + */ + PREPARING(8), + /** + * + * + *
      +     * Volume State is Read Only
      +     * 
      + * + * READ_ONLY = 9; + */ + READ_ONLY(9), UNRECOGNIZED(-1), ; @@ -267,6 +289,28 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 7; */ public static final int ERROR_VALUE = 7; + /** + * + * + *
      +     * Volume State is Preparing. Note that this is different from CREATING
      +     * where CREATING means the volume is being created, while PREPARING means
      +     * the volume is created and now being prepared for the replication.
      +     * 
      + * + * PREPARING = 8; + */ + public static final int PREPARING_VALUE = 8; + /** + * + * + *
      +     * Volume State is Read Only
      +     * 
      + * + * READ_ONLY = 9; + */ + public static final int READ_ONLY_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -308,6 +352,10 @@ public static State forNumber(int value) { return DISABLED; case 7: return ERROR; + case 8: + return PREPARING; + case 9: + return READ_ONLY; default: return null; } @@ -2166,6 +2214,63 @@ public long getColdTierSizeGib() { return coldTierSizeGib_; } + public static final int HYBRID_REPLICATION_PARAMETERS_FIELD_NUMBER = 40; + private com.google.cloud.netapp.v1.HybridReplicationParameters hybridReplicationParameters_; + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridReplicationParameters field is set. + */ + @java.lang.Override + public boolean hasHybridReplicationParameters() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationParameters. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters getHybridReplicationParameters() { + return hybridReplicationParameters_ == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance() + : hybridReplicationParameters_; + } + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder + getHybridReplicationParametersOrBuilder() { + return hybridReplicationParameters_ == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance() + : hybridReplicationParameters_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2306,6 +2411,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coldTierSizeGib_ != 0L) { output.writeInt64(39, coldTierSizeGib_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(40, getHybridReplicationParameters()); + } getUnknownFields().writeTo(output); } @@ -2464,6 +2572,11 @@ public int getSerializedSize() { if (coldTierSizeGib_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(39, coldTierSizeGib_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 40, getHybridReplicationParameters()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2535,6 +2648,11 @@ public boolean equals(final java.lang.Object obj) { if (!getReplicaZone().equals(other.getReplicaZone())) return false; if (!getZone().equals(other.getZone())) return false; if (getColdTierSizeGib() != other.getColdTierSizeGib()) return false; + if (hasHybridReplicationParameters() != other.hasHybridReplicationParameters()) return false; + if (hasHybridReplicationParameters()) { + if (!getHybridReplicationParameters().equals(other.getHybridReplicationParameters())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2645,6 +2763,10 @@ public int hashCode() { hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + COLD_TIER_SIZE_GIB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColdTierSizeGib()); + if (hasHybridReplicationParameters()) { + hash = (37 * hash) + HYBRID_REPLICATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getHybridReplicationParameters().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2813,6 +2935,7 @@ private void maybeForceBuilderInitialization() { getRestoreParametersFieldBuilder(); getBackupConfigFieldBuilder(); getTieringPolicyFieldBuilder(); + getHybridReplicationParametersFieldBuilder(); } } @@ -2891,6 +3014,11 @@ public Builder clear() { replicaZone_ = ""; zone_ = ""; coldTierSizeGib_ = 0L; + hybridReplicationParameters_ = null; + if (hybridReplicationParametersBuilder_ != null) { + hybridReplicationParametersBuilder_.dispose(); + hybridReplicationParametersBuilder_ = null; + } return this; } @@ -3077,6 +3205,13 @@ private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { if (((from_bitField1_ & 0x00000010) != 0)) { result.coldTierSizeGib_ = coldTierSizeGib_; } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.hybridReplicationParameters_ = + hybridReplicationParametersBuilder_ == null + ? hybridReplicationParameters_ + : hybridReplicationParametersBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -3304,6 +3439,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { if (other.getColdTierSizeGib() != 0L) { setColdTierSizeGib(other.getColdTierSizeGib()); } + if (other.hasHybridReplicationParameters()) { + mergeHybridReplicationParameters(other.getHybridReplicationParameters()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3605,6 +3743,13 @@ public Builder mergeFrom( bitField1_ |= 0x00000010; break; } // case 312 + case 322: + { + input.readMessage( + getHybridReplicationParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 322 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8383,6 +8528,215 @@ public Builder clearColdTierSizeGib() { return this; } + private com.google.cloud.netapp.v1.HybridReplicationParameters hybridReplicationParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridReplicationParameters, + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder, + com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder> + hybridReplicationParametersBuilder_; + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridReplicationParameters field is set. + */ + public boolean hasHybridReplicationParameters() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationParameters. + */ + public com.google.cloud.netapp.v1.HybridReplicationParameters getHybridReplicationParameters() { + if (hybridReplicationParametersBuilder_ == null) { + return hybridReplicationParameters_ == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance() + : hybridReplicationParameters_; + } else { + return hybridReplicationParametersBuilder_.getMessage(); + } + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHybridReplicationParameters( + com.google.cloud.netapp.v1.HybridReplicationParameters value) { + if (hybridReplicationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridReplicationParameters_ = value; + } else { + hybridReplicationParametersBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHybridReplicationParameters( + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder builderForValue) { + if (hybridReplicationParametersBuilder_ == null) { + hybridReplicationParameters_ = builderForValue.build(); + } else { + hybridReplicationParametersBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHybridReplicationParameters( + com.google.cloud.netapp.v1.HybridReplicationParameters value) { + if (hybridReplicationParametersBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) + && hybridReplicationParameters_ != null + && hybridReplicationParameters_ + != com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance()) { + getHybridReplicationParametersBuilder().mergeFrom(value); + } else { + hybridReplicationParameters_ = value; + } + } else { + hybridReplicationParametersBuilder_.mergeFrom(value); + } + if (hybridReplicationParameters_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHybridReplicationParameters() { + bitField1_ = (bitField1_ & ~0x00000020); + hybridReplicationParameters_ = null; + if (hybridReplicationParametersBuilder_ != null) { + hybridReplicationParametersBuilder_.dispose(); + hybridReplicationParametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.HybridReplicationParameters.Builder + getHybridReplicationParametersBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return getHybridReplicationParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder + getHybridReplicationParametersOrBuilder() { + if (hybridReplicationParametersBuilder_ != null) { + return hybridReplicationParametersBuilder_.getMessageOrBuilder(); + } else { + return hybridReplicationParameters_ == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.getDefaultInstance() + : hybridReplicationParameters_; + } + } + /** + * + * + *
      +     * Optional. The Hybrid Replication parameters for the volume.
      +     * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridReplicationParameters, + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder, + com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder> + getHybridReplicationParametersFieldBuilder() { + if (hybridReplicationParametersBuilder_ == null) { + hybridReplicationParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.HybridReplicationParameters, + com.google.cloud.netapp.v1.HybridReplicationParameters.Builder, + com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder>( + getHybridReplicationParameters(), getParentForChildren(), isClean()); + hybridReplicationParameters_ = null; + } + return hybridReplicationParametersBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 fb38026d7e12..ba3bb02a41af 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 @@ -1170,4 +1170,46 @@ java.lang.String getLabelsOrDefault( * @return The coldTierSizeGib. */ long getColdTierSizeGib(); + + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hybridReplicationParameters field is set. + */ + boolean hasHybridReplicationParameters(); + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationParameters. + */ + com.google.cloud.netapp.v1.HybridReplicationParameters getHybridReplicationParameters(); + /** + * + * + *
      +   * Optional. The Hybrid Replication parameters for the volume.
      +   * 
      + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters hybrid_replication_parameters = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder + getHybridReplicationParametersOrBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index cca482440c8a..78040f7cf55e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -108,6 +108,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_netapp_v1_TieringPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -119,168 +127,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n#google/cloud/netapp/v1/volume.proto\022\026g" + "oogle.cloud.netapp.v1\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\032#google/cloud/netapp/v1/common.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\"\223\001\n\022ListVolume" - + "sRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034netapp" - + ".googleapis.com/Volume\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\"t\n\023ListVolumesResponse\022/" - + "\n\007volumes\030\001 \003(\0132\036.google.cloud.netapp.v1" - + ".Volume\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"F\n\020GetVolumeRequest\0222\n\004nam" - + "e\030\001 \001(\tB$\340A\002\372A\036\n\034netapp.googleapis.com/V" - + "olume\"\230\001\n\023CreateVolumeRequest\0224\n\006parent\030" - + "\001 \001(\tB$\340A\002\372A\036\022\034netapp.googleapis.com/Vol" - + "ume\022\026\n\tvolume_id\030\002 \001(\tB\003\340A\002\0223\n\006volume\030\003 " + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\032#google/c" + + "loud/netapp/v1/common.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\"\223\001\n\022ListVolumesRequest\0224\n" + + "\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034netapp.googleapis" + + ".com/Volume\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005" + + " \001(\t\"t\n\023ListVolumesResponse\022/\n\007volumes\030\001" + + " \003(\0132\036.google.cloud.netapp.v1.Volume\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"F\n\020GetVolumeRequest\0222\n\004name\030\001 \001(\tB$\340A" + + "\002\372A\036\n\034netapp.googleapis.com/Volume\"\230\001\n\023C" + + "reateVolumeRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372" + + "A\036\022\034netapp.googleapis.com/Volume\022\026\n\tvolu" + + "me_id\030\002 \001(\tB\003\340A\002\0223\n\006volume\030\003 \001(\0132\036.googl" + + "e.cloud.netapp.v1.VolumeB\003\340A\002\"\200\001\n\023Update" + + "VolumeRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\002\0223\n\006volume\030\002 " + "\001(\0132\036.google.cloud.netapp.v1.VolumeB\003\340A\002" - + "\"\200\001\n\023UpdateVolumeRequest\0224\n\013update_mask\030" - + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0223" - + "\n\006volume\030\002 \001(\0132\036.google.cloud.netapp.v1." - + "VolumeB\003\340A\002\"X\n\023DeleteVolumeRequest\0222\n\004na" - + "me\030\001 \001(\tB$\340A\002\372A\036\n\034netapp.googleapis.com/" - + "Volume\022\r\n\005force\030\002 \001(\010\"c\n\023RevertVolumeReq" - + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034netapp.googl" - + "eapis.com/Volume\022\030\n\013snapshot_id\030\002 \001(\tB\003\340" - + "A\002\"\221\020\n\006Volume\022\021\n\004name\030\001 \001(\tB\003\340A\010\0228\n\005stat" - + "e\030\002 \001(\0162$.google.cloud.netapp.v1.Volume." - + "StateB\003\340A\003\022\032\n\rstate_details\030\003 \001(\tB\003\340A\003\0224" - + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\027\n\nshare_name\030\005 \001(\tB\003\340A\002\022\026\n" - + "\tpsa_range\030\006 \001(\tB\003\340A\003\022?\n\014storage_pool\030\007 " - + "\001(\tB)\340A\002\372A#\n!netapp.googleapis.com/Stora" - + "gePool\0227\n\007network\030\010 \001(\tB&\340A\003\372A \n\036compute" - + ".googleapis.com/Network\022@\n\rservice_level" - + "\030\t \001(\0162$.google.cloud.netapp.v1.ServiceL" - + "evelB\003\340A\003\022\031\n\014capacity_gib\030\n \001(\003B\003\340A\002\022@\n\r" - + "export_policy\030\013 \001(\0132$.google.cloud.netap" - + "p.v1.ExportPolicyB\003\340A\001\0229\n\tprotocols\030\014 \003(" - + "\0162!.google.cloud.netapp.v1.ProtocolsB\003\340A" - + "\002\022>\n\014smb_settings\030\r \003(\0162#.google.cloud.n" - + "etapp.v1.SMBSettingsB\003\340A\001\022?\n\rmount_optio" - + "ns\030\016 \003(\0132#.google.cloud.netapp.v1.MountO" - + "ptionB\003\340A\003\022\035\n\020unix_permissions\030\017 \001(\tB\003\340A" - + "\001\022?\n\006labels\030\020 \003(\0132*.google.cloud.netapp." - + "v1.Volume.LabelsEntryB\003\340A\001\022\030\n\013descriptio" - + "n\030\021 \001(\tB\003\340A\001\022D\n\017snapshot_policy\030\022 \001(\0132&." - + "google.cloud.netapp.v1.SnapshotPolicyB\003\340" - + "A\001\022\031\n\014snap_reserve\030\023 \001(\001B\003\340A\001\022\037\n\022snapsho" - + "t_directory\030\024 \001(\010B\003\340A\001\022\025\n\010used_gib\030\025 \001(\003" - + "B\003\340A\003\022B\n\016security_style\030\026 \001(\0162%.google.c" - + "loud.netapp.v1.SecurityStyleB\003\340A\001\022\035\n\020ker" - + "beros_enabled\030\027 \001(\010B\003\340A\001\022\031\n\014ldap_enabled" - + "\030\030 \001(\010B\003\340A\003\022G\n\020active_directory\030\031 \001(\tB-\340" - + "A\003\372A\'\n%netapp.googleapis.com/ActiveDirec" - + "tory\022J\n\022restore_parameters\030\032 \001(\0132).googl" - + "e.cloud.netapp.v1.RestoreParametersB\003\340A\001" - + "\022;\n\nkms_config\030\033 \001(\tB\'\340A\003\372A!\n\037netapp.goo" - + "gleapis.com/KmsConfig\022D\n\017encryption_type" - + "\030\034 \001(\0162&.google.cloud.netapp.v1.Encrypti" - + "onTypeB\003\340A\003\022\034\n\017has_replication\030\035 \001(\010B\003\340A" - + "\003\022@\n\rbackup_config\030\036 \001(\0132$.google.cloud." - + "netapp.v1.BackupConfigH\000\210\001\001\022I\n\022restricte" - + "d_actions\030\037 \003(\0162(.google.cloud.netapp.v1" - + ".RestrictedActionB\003\340A\001\022\033\n\016large_capacity" - + "\030 \001(\010B\003\340A\001\022\037\n\022multiple_endpoints\030! \001(\010B" - + "\003\340A\001\022B\n\016tiering_policy\030\" \001(\0132%.google.cl" - + "oud.netapp.v1.TieringPolicyH\001\210\001\001\022\031\n\014repl" - + "ica_zone\030$ \001(\tB\003\340A\003\022\021\n\004zone\030% \001(\tB\003\340A\003\022\037" - + "\n\022cold_tier_size_gib\030\' \001(\003B\003\340A\003\032-\n\013Label" - + "sEntry\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\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATIN" - + "G\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020\006\022\t\n\005ERRO" - + "R\020\007:l\352Ai\n\034netapp.googleapis.com/Volume\0228" - + "projects/{project}/locations/{location}/" - + "volumes/{volume}*\007volumes2\006volumeB\020\n\016_ba" - + "ckup_configB\021\n\017_tiering_policy\"R\n\014Export" - + "Policy\022B\n\005rules\030\001 \003(\0132..google.cloud.net" - + "app.v1.SimpleExportPolicyRuleB\003\340A\002\"\374\004\n\026S" - + "impleExportPolicyRule\022\034\n\017allowed_clients" - + "\030\001 \001(\tH\000\210\001\001\022\034\n\017has_root_access\030\002 \001(\tH\001\210\001" - + "\001\022<\n\013access_type\030\003 \001(\0162\".google.cloud.ne" - + "tapp.v1.AccessTypeH\002\210\001\001\022\022\n\005nfsv3\030\004 \001(\010H\003" - + "\210\001\001\022\022\n\005nfsv4\030\005 \001(\010H\004\210\001\001\022!\n\024kerberos_5_re" - + "ad_only\030\006 \001(\010H\005\210\001\001\022\"\n\025kerberos_5_read_wr" - + "ite\030\007 \001(\010H\006\210\001\001\022\"\n\025kerberos_5i_read_only\030" - + "\010 \001(\010H\007\210\001\001\022#\n\026kerberos_5i_read_write\030\t \001" - + "(\010H\010\210\001\001\022\"\n\025kerberos_5p_read_only\030\n \001(\010H\t" - + "\210\001\001\022#\n\026kerberos_5p_read_write\030\013 \001(\010H\n\210\001\001" - + "B\022\n\020_allowed_clientsB\022\n\020_has_root_access" - + "B\016\n\014_access_typeB\010\n\006_nfsv3B\010\n\006_nfsv4B\027\n\025" - + "_kerberos_5_read_onlyB\030\n\026_kerberos_5_rea" - + "d_writeB\030\n\026_kerberos_5i_read_onlyB\031\n\027_ke" - + "rberos_5i_read_writeB\030\n\026_kerberos_5p_rea" - + "d_onlyB\031\n\027_kerberos_5p_read_write\"\232\003\n\016Sn" - + "apshotPolicy\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001\022D\n\017ho" - + "urly_schedule\030\002 \001(\0132&.google.cloud.netap" - + "p.v1.HourlyScheduleH\001\210\001\001\022B\n\016daily_schedu" - + "le\030\003 \001(\0132%.google.cloud.netapp.v1.DailyS" - + "cheduleH\002\210\001\001\022D\n\017weekly_schedule\030\004 \001(\0132&." - + "google.cloud.netapp.v1.WeeklyScheduleH\003\210" - + "\001\001\022F\n\020monthly_schedule\030\005 \001(\0132\'.google.cl" - + "oud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n\010_e" - + "nabledB\022\n\020_hourly_scheduleB\021\n\017_daily_sch" - + "eduleB\022\n\020_weekly_scheduleB\023\n\021_monthly_sc" - + "hedule\"f\n\016HourlySchedule\022\036\n\021snapshots_to" - + "_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001B\024\n" - + "\022_snapshots_to_keepB\t\n\007_minute\"\201\001\n\rDaily" - + "Schedule\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001" - + "\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001" - + "B\024\n\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_ho" - + "ur\"\234\001\n\016WeeklySchedule\022\036\n\021snapshots_to_ke" - + "ep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004ho" - + "ur\030\003 \001(\001H\002\210\001\001\022\020\n\003day\030\004 \001(\tH\003\210\001\001B\024\n\022_snap" - + "shots_to_keepB\t\n\007_minuteB\007\n\005_hourB\006\n\004_da" - + "y\"\261\001\n\017MonthlySchedule\022\036\n\021snapshots_to_ke" - + "ep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004ho" - + "ur\030\003 \001(\001H\002\210\001\001\022\032\n\rdays_of_month\030\004 \001(\tH\003\210\001" - + "\001B\024\n\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_h" - + "ourB\020\n\016_days_of_month\"}\n\013MountOption\022\016\n\006" - + "export\030\001 \001(\t\022\023\n\013export_full\030\002 \001(\t\0223\n\010pro" - + "tocol\030\003 \001(\0162!.google.cloud.netapp.v1.Pro" - + "tocols\022\024\n\014instructions\030\004 \001(\t\"Q\n\021RestoreP" - + "arameters\022\031\n\017source_snapshot\030\001 \001(\tH\000\022\027\n\r" - + "source_backup\030\002 \001(\tH\000B\010\n\006source\"\232\002\n\014Back" - + "upConfig\022C\n\017backup_policies\030\001 \003(\tB*\340A\001\372A" - + "$\n\"netapp.googleapis.com/BackupPolicy\022?\n" - + "\014backup_vault\030\002 \001(\tB)\340A\001\372A#\n!netapp.goog" - + "leapis.com/BackupVault\022*\n\030scheduled_back" - + "up_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022$\n\022backup_cha" - + "in_bytes\030\004 \001(\003B\003\340A\003H\001\210\001\001B\033\n\031_scheduled_b" - + "ackup_enabledB\025\n\023_backup_chain_bytes\"\371\001\n" - + "\rTieringPolicy\022O\n\013tier_action\030\001 \001(\01620.go" - + "ogle.cloud.netapp.v1.TieringPolicy.TierA" - + "ctionB\003\340A\001H\000\210\001\001\022(\n\026cooling_threshold_day" - + "s\030\002 \001(\005B\003\340A\001H\001\210\001\001\"B\n\nTierAction\022\033\n\027TIER_" - + "ACTION_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAU" - + "SED\020\002B\016\n\014_tier_actionB\031\n\027_cooling_thresh" - + "old_days*E\n\tProtocols\022\031\n\025PROTOCOLS_UNSPE" - + "CIFIED\020\000\022\t\n\005NFSV3\020\001\022\t\n\005NFSV4\020\002\022\007\n\003SMB\020\003*" - + "W\n\nAccessType\022\033\n\027ACCESS_TYPE_UNSPECIFIED" - + "\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\022\r\n\tREA" - + "D_NONE\020\003*\350\001\n\013SMBSettings\022\034\n\030SMB_SETTINGS" - + "_UNSPECIFIED\020\000\022\020\n\014ENCRYPT_DATA\020\001\022\r\n\tBROW" - + "SABLE\020\002\022\021\n\rCHANGE_NOTIFY\020\003\022\021\n\rNON_BROWSA" - + "BLE\020\004\022\013\n\007OPLOCKS\020\005\022\021\n\rSHOW_SNAPSHOT\020\006\022\032\n" - + "\026SHOW_PREVIOUS_VERSIONS\020\007\022\034\n\030ACCESS_BASE" - + "D_ENUMERATION\020\010\022\032\n\026CONTINUOUSLY_AVAILABL" - + "E\020\t*C\n\rSecurityStyle\022\036\n\032SECURITY_STYLE_U" - + "NSPECIFIED\020\000\022\010\n\004NTFS\020\001\022\010\n\004UNIX\020\002*A\n\020Rest" - + "rictedAction\022!\n\035RESTRICTED_ACTION_UNSPEC" - + "IFIED\020\000\022\n\n\006DELETE\020\001B\255\001\n\032com.google.cloud" - + ".netapp.v1B\013VolumeProtoP\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" + + "\"X\n\023DeleteVolumeRequest\0222\n\004name\030\001 \001(\tB$\340" + + "A\002\372A\036\n\034netapp.googleapis.com/Volume\022\r\n\005f" + + "orce\030\002 \001(\010\"c\n\023RevertVolumeRequest\0222\n\004nam" + + "e\030\001 \001(\tB$\340A\002\372A\036\n\034netapp.googleapis.com/V" + + "olume\022\030\n\013snapshot_id\030\002 \001(\tB\003\340A\002\"\221\021\n\006Volu" + + "me\022\021\n\004name\030\001 \001(\tB\003\340A\010\0228\n\005state\030\002 \001(\0162$.g" + + "oogle.cloud.netapp.v1.Volume.StateB\003\340A\003\022" + + "\032\n\rstate_details\030\003 \001(\tB\003\340A\003\0224\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022\027\n\nshare_name\030\005 \001(\tB\003\340A\002\022\026\n\tpsa_range\030" + + "\006 \001(\tB\003\340A\003\022?\n\014storage_pool\030\007 \001(\tB)\340A\002\372A#" + + "\n!netapp.googleapis.com/StoragePool\0227\n\007n" + + "etwork\030\010 \001(\tB&\340A\003\372A \n\036compute.googleapis" + + ".com/Network\022@\n\rservice_level\030\t \001(\0162$.go" + + "ogle.cloud.netapp.v1.ServiceLevelB\003\340A\003\022\031" + + "\n\014capacity_gib\030\n \001(\003B\003\340A\002\022@\n\rexport_poli" + + "cy\030\013 \001(\0132$.google.cloud.netapp.v1.Export" + + "PolicyB\003\340A\001\0229\n\tprotocols\030\014 \003(\0162!.google." + + "cloud.netapp.v1.ProtocolsB\003\340A\002\022>\n\014smb_se" + + "ttings\030\r \003(\0162#.google.cloud.netapp.v1.SM" + + "BSettingsB\003\340A\001\022?\n\rmount_options\030\016 \003(\0132#." + + "google.cloud.netapp.v1.MountOptionB\003\340A\003\022" + + "\035\n\020unix_permissions\030\017 \001(\tB\003\340A\001\022?\n\006labels" + + "\030\020 \003(\0132*.google.cloud.netapp.v1.Volume.L" + + "abelsEntryB\003\340A\001\022\030\n\013description\030\021 \001(\tB\003\340A" + + "\001\022D\n\017snapshot_policy\030\022 \001(\0132&.google.clou" + + "d.netapp.v1.SnapshotPolicyB\003\340A\001\022\031\n\014snap_" + + "reserve\030\023 \001(\001B\003\340A\001\022\037\n\022snapshot_directory" + + "\030\024 \001(\010B\003\340A\001\022\025\n\010used_gib\030\025 \001(\003B\003\340A\003\022B\n\016se" + + "curity_style\030\026 \001(\0162%.google.cloud.netapp" + + ".v1.SecurityStyleB\003\340A\001\022\035\n\020kerberos_enabl" + + "ed\030\027 \001(\010B\003\340A\001\022\031\n\014ldap_enabled\030\030 \001(\010B\003\340A\003" + + "\022G\n\020active_directory\030\031 \001(\tB-\340A\003\372A\'\n%neta" + + "pp.googleapis.com/ActiveDirectory\022J\n\022res" + + "tore_parameters\030\032 \001(\0132).google.cloud.net" + + "app.v1.RestoreParametersB\003\340A\001\022;\n\nkms_con" + + "fig\030\033 \001(\tB\'\340A\003\372A!\n\037netapp.googleapis.com" + + "/KmsConfig\022D\n\017encryption_type\030\034 \001(\0162&.go" + + "ogle.cloud.netapp.v1.EncryptionTypeB\003\340A\003" + + "\022\034\n\017has_replication\030\035 \001(\010B\003\340A\003\022@\n\rbackup" + + "_config\030\036 \001(\0132$.google.cloud.netapp.v1.B" + + "ackupConfigH\000\210\001\001\022I\n\022restricted_actions\030\037" + + " \003(\0162(.google.cloud.netapp.v1.Restricted" + + "ActionB\003\340A\001\022\033\n\016large_capacity\030 \001(\010B\003\340A\001" + + "\022\037\n\022multiple_endpoints\030! \001(\010B\003\340A\001\022B\n\016tie" + + "ring_policy\030\" \001(\0132%.google.cloud.netapp." + + "v1.TieringPolicyH\001\210\001\001\022\031\n\014replica_zone\030$ " + + "\001(\tB\003\340A\003\022\021\n\004zone\030% \001(\tB\003\340A\003\022\037\n\022cold_tier" + + "_size_gib\030\' \001(\003B\003\340A\003\022_\n\035hybrid_replicati" + + "on_parameters\030( \001(\01323.google.cloud.netap" + + "p.v1.HybridReplicationParametersB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010" + + "UPDATING\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020\006\022" + + "\t\n\005ERROR\020\007\022\r\n\tPREPARING\020\010\022\r\n\tREAD_ONLY\020\t" + + ":l\352Ai\n\034netapp.googleapis.com/Volume\0228pro" + + "jects/{project}/locations/{location}/vol" + + "umes/{volume}*\007volumes2\006volumeB\020\n\016_backu" + + "p_configB\021\n\017_tiering_policy\"R\n\014ExportPol" + + "icy\022B\n\005rules\030\001 \003(\0132..google.cloud.netapp" + + ".v1.SimpleExportPolicyRuleB\003\340A\002\"\374\004\n\026Simp" + + "leExportPolicyRule\022\034\n\017allowed_clients\030\001 " + + "\001(\tH\000\210\001\001\022\034\n\017has_root_access\030\002 \001(\tH\001\210\001\001\022<" + + "\n\013access_type\030\003 \001(\0162\".google.cloud.netap" + + "p.v1.AccessTypeH\002\210\001\001\022\022\n\005nfsv3\030\004 \001(\010H\003\210\001\001" + + "\022\022\n\005nfsv4\030\005 \001(\010H\004\210\001\001\022!\n\024kerberos_5_read_" + + "only\030\006 \001(\010H\005\210\001\001\022\"\n\025kerberos_5_read_write" + + "\030\007 \001(\010H\006\210\001\001\022\"\n\025kerberos_5i_read_only\030\010 \001" + + "(\010H\007\210\001\001\022#\n\026kerberos_5i_read_write\030\t \001(\010H" + + "\010\210\001\001\022\"\n\025kerberos_5p_read_only\030\n \001(\010H\t\210\001\001" + + "\022#\n\026kerberos_5p_read_write\030\013 \001(\010H\n\210\001\001B\022\n" + + "\020_allowed_clientsB\022\n\020_has_root_accessB\016\n" + + "\014_access_typeB\010\n\006_nfsv3B\010\n\006_nfsv4B\027\n\025_ke" + + "rberos_5_read_onlyB\030\n\026_kerberos_5_read_w" + + "riteB\030\n\026_kerberos_5i_read_onlyB\031\n\027_kerbe" + + "ros_5i_read_writeB\030\n\026_kerberos_5p_read_o" + + "nlyB\031\n\027_kerberos_5p_read_write\"\232\003\n\016Snaps" + + "hotPolicy\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001\022D\n\017hourl" + + "y_schedule\030\002 \001(\0132&.google.cloud.netapp.v" + + "1.HourlyScheduleH\001\210\001\001\022B\n\016daily_schedule\030" + + "\003 \001(\0132%.google.cloud.netapp.v1.DailySche" + + "duleH\002\210\001\001\022D\n\017weekly_schedule\030\004 \001(\0132&.goo" + + "gle.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022" + + "F\n\020monthly_schedule\030\005 \001(\0132\'.google.cloud" + + ".netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n\010_enab" + + "ledB\022\n\020_hourly_scheduleB\021\n\017_daily_schedu" + + "leB\022\n\020_weekly_scheduleB\023\n\021_monthly_sched" + + "ule\"f\n\016HourlySchedule\022\036\n\021snapshots_to_ke" + + "ep\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001B\024\n\022_s" + + "napshots_to_keepB\t\n\007_minute\"\201\001\n\rDailySch" + + "edule\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n" + + "\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001B\024\n" + + "\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_hour\"" + + "\234\001\n\016WeeklySchedule\022\036\n\021snapshots_to_keep\030" + + "\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030" + + "\003 \001(\001H\002\210\001\001\022\020\n\003day\030\004 \001(\tH\003\210\001\001B\024\n\022_snapsho" + + "ts_to_keepB\t\n\007_minuteB\007\n\005_hourB\006\n\004_day\"\261" + + "\001\n\017MonthlySchedule\022\036\n\021snapshots_to_keep\030" + + "\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030" + + "\003 \001(\001H\002\210\001\001\022\032\n\rdays_of_month\030\004 \001(\tH\003\210\001\001B\024" + + "\n\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_hour" + + "B\020\n\016_days_of_month\"}\n\013MountOption\022\016\n\006exp" + + "ort\030\001 \001(\t\022\023\n\013export_full\030\002 \001(\t\0223\n\010protoc" + + "ol\030\003 \001(\0162!.google.cloud.netapp.v1.Protoc" + + "ols\022\024\n\014instructions\030\004 \001(\t\"Q\n\021RestorePara" + + "meters\022\031\n\017source_snapshot\030\001 \001(\tH\000\022\027\n\rsou" + + "rce_backup\030\002 \001(\tH\000B\010\n\006source\"\232\002\n\014BackupC" + + "onfig\022C\n\017backup_policies\030\001 \003(\tB*\340A\001\372A$\n\"" + + "netapp.googleapis.com/BackupPolicy\022?\n\014ba" + + "ckup_vault\030\002 \001(\tB)\340A\001\372A#\n!netapp.googlea" + + "pis.com/BackupVault\022*\n\030scheduled_backup_" + + "enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022$\n\022backup_chain_" + + "bytes\030\004 \001(\003B\003\340A\003H\001\210\001\001B\033\n\031_scheduled_back" + + "up_enabledB\025\n\023_backup_chain_bytes\"\371\001\n\rTi" + + "eringPolicy\022O\n\013tier_action\030\001 \001(\01620.googl" + + "e.cloud.netapp.v1.TieringPolicy.TierActi" + + "onB\003\340A\001H\000\210\001\001\022(\n\026cooling_threshold_days\030\002" + + " \001(\005B\003\340A\001H\001\210\001\001\"B\n\nTierAction\022\033\n\027TIER_ACT" + + "ION_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAUSED" + + "\020\002B\016\n\014_tier_actionB\031\n\027_cooling_threshold" + + "_days\"\226\003\n\033HybridReplicationParameters\022>\n" + + "\013replication\030\001 \001(\tB)\340A\002\372A#\n!netapp.googl" + + "eapis.com/Replication\022\035\n\020peer_volume_nam" + + "e\030\002 \001(\tB\003\340A\002\022\036\n\021peer_cluster_name\030\003 \001(\tB" + + "\003\340A\002\022\032\n\rpeer_svm_name\030\004 \001(\tB\003\340A\002\022\036\n\021peer" + + "_ip_addresses\030\005 \003(\tB\003\340A\002\022\035\n\020cluster_loca" + + "tion\030\006 \001(\tB\003\340A\001\022\030\n\013description\030\007 \001(\tB\003\340A" + + "\001\022T\n\006labels\030\010 \003(\0132?.google.cloud.netapp." + + "v1.HybridReplicationParameters.LabelsEnt" + + "ryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001*E\n\tProtocols\022\031\n\025PROTOCOLS" + + "_UNSPECIFIED\020\000\022\t\n\005NFSV3\020\001\022\t\n\005NFSV4\020\002\022\007\n\003" + + "SMB\020\003*W\n\nAccessType\022\033\n\027ACCESS_TYPE_UNSPE" + + "CIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\022" + + "\r\n\tREAD_NONE\020\003*\350\001\n\013SMBSettings\022\034\n\030SMB_SE" + + "TTINGS_UNSPECIFIED\020\000\022\020\n\014ENCRYPT_DATA\020\001\022\r" + + "\n\tBROWSABLE\020\002\022\021\n\rCHANGE_NOTIFY\020\003\022\021\n\rNON_" + + "BROWSABLE\020\004\022\013\n\007OPLOCKS\020\005\022\021\n\rSHOW_SNAPSHO" + + "T\020\006\022\032\n\026SHOW_PREVIOUS_VERSIONS\020\007\022\034\n\030ACCES" + + "S_BASED_ENUMERATION\020\010\022\032\n\026CONTINUOUSLY_AV" + + "AILABLE\020\t*C\n\rSecurityStyle\022\036\n\032SECURITY_S" + + "TYLE_UNSPECIFIED\020\000\022\010\n\004NTFS\020\001\022\010\n\004UNIX\020\002*A" + + "\n\020RestrictedAction\022!\n\035RESTRICTED_ACTION_" + + "UNSPECIFIED\020\000\022\n\n\006DELETE\020\001B\255\001\n\032com.google" + + ".cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.g" + + "oogle.com/go/netapp/apiv1/netapppb;netap" + + "ppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\Cl" + + "oud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.netapp.v1.CommonProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -385,6 +408,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReplicaZone", "Zone", "ColdTierSizeGib", + "HybridReplicationParameters", }); internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedTypes().get(0); @@ -492,6 +516,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TierAction", "CoolingThresholdDays", }); + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor, + new java.lang.String[] { + "Replication", + "PeerVolumeName", + "PeerClusterName", + "PeerSvmName", + "PeerIpAddresses", + "ClusterLocation", + "Description", + "Labels", + }); + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_descriptor = + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -500,6 +549,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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.netapp.v1.CommonProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); 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 9f3d30273345..812d6176da3e 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 @@ -90,9 +90,9 @@ message CreateActiveDirectoryRequest { ActiveDirectory active_directory = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ID of the active directory to create. Must be unique within the - // parent resource. Must contain only letters, numbers, underscore and hyphen, - // with the first character a letter or underscore, the last a letter or - // underscore or a number, and a 63 character maximum. + // parent resource. Must contain only letters, numbers and hyphen, with the + // first character a letter , the last a letter or a number, and a 63 + // character maximum. string active_directory_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -152,6 +152,9 @@ message ActiveDirectory { // Active Directory State is Error ERROR = 6; + + // Active Directory State is Diagnosing. + DIAGNOSING = 7; } // Identifier. The resource name of the active directory. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto index 4ee25fbb3fcf..abbcbd5a6f12 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto @@ -199,8 +199,8 @@ message CreateBackupRequest { // Required. The ID to use for the backup. // The ID must be unique within the specified backupVault. - // Must contain only letters, numbers, underscore and hyphen, with the first - // character a letter or underscore, the last a letter or underscore or a + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto index 3bba8049a7b2..21987eb4b291 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_policy.proto @@ -114,8 +114,8 @@ message CreateBackupPolicyRequest { // Required. The ID to use for the backup policy. // The ID must be unique within the specified location. - // Must contain only letters, numbers, underscore and hyphen, with the first - // character a letter or underscore, the last a letter or underscore or a + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_policy_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto index b59464908c06..ae3be5662647 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto @@ -142,8 +142,8 @@ message CreateBackupVaultRequest { // Required. The ID to use for the backupVault. // The ID must be unique within the specified location. - // Must contain only letters, numbers, underscore and hyphen, with the first - // character a letter or underscore, the last a letter or underscore or a + // Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a // number, and a 63 character maximum. string backup_vault_id = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto index c542669a805d..d4096a9107d4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto @@ -487,6 +487,33 @@ service NetApp { }; } + // Establish replication peering. + rpc EstablishPeering(EstablishPeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Replication" + metadata_type: "OperationMetadata" + }; + } + + // Syncs the replication. This will invoke one time volume data transfer from + // source to destination. + rpc SyncReplication(SyncReplicationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Replication" + metadata_type: "OperationMetadata" + }; + } + // Creates new backup vault rpc CreateBackupVault(CreateBackupVaultRequest) returns (google.longrunning.Operation) { diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto index dc993d8910dc..6896e00ec230 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto @@ -87,9 +87,9 @@ message CreateKmsConfigRequest { ]; // Required. Id of the requesting KmsConfig. Must be unique within the parent - // resource. Must contain only letters, numbers, underscore and hyphen, with - // the first character a letter or underscore, the last a letter or underscore - // or a number, and a 63 character maximum. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string kms_config_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new KmsConfig. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto index ea5be5f731b7..7743f88ef0da 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto @@ -18,6 +18,7 @@ package google.cloud.netapp.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/netapp/v1/volume.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -90,6 +91,12 @@ message Replication { // Replication is in error state. ERROR = 6; + + // Replication is waiting for cluster peering to be established. + PENDING_CLUSTER_PEERING = 8; + + // Replication is waiting for SVM peering to be established. + PENDING_SVM_PEERING = 9; } // New enum values may be added in future to support different replication @@ -140,6 +147,24 @@ message Replication { // Incremental replication is in progress. TRANSFERRING = 4; + + // Baseline replication is in progress. + BASELINE_TRANSFERRING = 5; + + // Replication is aborted. + ABORTED = 6; + } + + // Hybrid replication type. + enum HybridReplicationType { + // Unspecified hybrid replication type. + HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + + // Hybrid replication type for migration. + MIGRATION = 1; + + // Hybrid replication type for continuous replication. + CONTINUOUS_REPLICATION = 2; } // Identifier. The resource name of the Replication. @@ -202,6 +227,35 @@ message Replication { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } ]; + + // Output only. Hybrid peering details. + HybridPeeringDetails hybrid_peering_details = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Location of the user cluster. + string cluster_location = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Type of the hybrid replication. + HybridReplicationType hybrid_replication_type = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// HybridPeeringDetails contains details about the hybrid peering. +message HybridPeeringDetails { + // Optional. IP address of the subnet. + string subnet_ip = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Copy-paste-able commands to be used on user's ONTAP to accept + // peering requests. + string command = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expiration time for the peering command to be executed on user's + // ONTAP. + google.protobuf.Timestamp command_expiry_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Temporary passphrase generated to accept cluster peering command. + string passphrase = 4 [(google.api.field_behavior) = OPTIONAL]; } // ListReplications lists replications. @@ -278,6 +332,10 @@ message DestinationVolumeParameters { // Description for the destination volume. optional string description = 4; + + // Optional. Tiering policy for the volume. + optional TieringPolicy tiering_policy = 5 + [(google.api.field_behavior) = OPTIONAL]; } // CreateReplicationRequest creates a replication. @@ -295,9 +353,9 @@ message CreateReplicationRequest { Replication replication = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ID of the replication to create. Must be unique within the parent - // resource. Must contain only letters, numbers, underscore and hyphen, with - // the first character a letter or underscore, the last a letter or underscore - // or a number, and a 63 character maximum. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string replication_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -368,3 +426,44 @@ message ReverseReplicationDirectionRequest { } ]; } + +// EstablishPeeringRequest establishes cluster and svm peerings between the +// source and the destination replications. +message EstablishPeeringRequest { + // Required. The resource name of the replication, in the format of + // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; + + // Required. Name of the user's local source cluster to be peered with the + // destination cluster. + string peer_cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source vserver svm to be peered with the + // destination vserver svm. + string peer_svm_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of IPv4 ip addresses to be used for peering. + repeated string peer_ip_addresses = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Name of the user's local source volume to be peered with the + // destination volume. + string peer_volume_name = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// SyncReplicationRequest syncs the replication from source to destination. +message SyncReplicationRequest { + // Required. The resource name of the replication, in the format of + // projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto index 9cdfa5a09ee5..4e316294b050 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto @@ -93,9 +93,9 @@ message CreateSnapshotRequest { Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ID of the snapshot to create. Must be unique within the parent - // resource. Must contain only letters, numbers, underscore and hyphen, with - // the first character a letter or underscore, the last a letter or underscore - // or a number, and a 63 character maximum. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a + // number, and a 63 character maximum. string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; } 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 7dfcf9577466..90d745615982 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 @@ -89,9 +89,9 @@ message CreateStoragePoolRequest { ]; // Required. Id of the requesting storage pool. Must be unique within the - // parent resource. Must contain only letters, numbers, underscore and hyphen, - // with the first character a letter or underscore, the last a letter or - // underscore or a number, and a 63 character maximum. + // parent resource. Must contain only letters, numbers and hyphen, with the + // first character a letter, the last a letter or a number, and a 63 character + // maximum. string storage_pool_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The required parameters to create a new storage pool. 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 bbea7802703a..a93c479ba8fe 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 @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.netapp.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/netapp/v1/common.proto"; import "google/protobuf/field_mask.proto"; @@ -171,9 +172,9 @@ message CreateVolumeRequest { ]; // Required. Id of the requesting volume. Must be unique within the parent - // resource. Must contain only letters, numbers, underscore and hyphen, with - // the first character a letter or underscore, the last a letter or underscore - // or a number, and a 63 character maximum. + // resource. Must contain only letters, numbers and hyphen, with the first + // character a letter, the last a letter or a number, + // and a 63 character maximum. string volume_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The volume being created. @@ -257,6 +258,14 @@ message Volume { // Volume State is Error ERROR = 7; + + // Volume State is Preparing. Note that this is different from CREATING + // where CREATING means the volume is being created, while PREPARING means + // the volume is created and now being prepared for the replication. + PREPARING = 8; + + // Volume State is Read Only + READ_ONLY = 9; } // Identifier. Name of the volume @@ -405,6 +414,10 @@ message Volume { // Output only. Size of the volume cold tier data in GiB. int64 cold_tier_size_gib = 39 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The Hybrid Replication parameters for the volume. + HybridReplicationParameters hybrid_replication_parameters = 40 + [(google.api.field_behavior) = OPTIONAL]; } // Defines the export policy for the volume. @@ -629,3 +642,42 @@ message TieringPolicy { optional int32 cooling_threshold_days = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// The Hybrid Replication parameters for the volume. +message HybridReplicationParameters { + // Required. Desired Identifier (name) of the replication which will be created for this volume. + // Format: + // `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}` + string replication = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Replication" + } + ]; + + // Required. Name of the user's local source volume to be peered with the + // destination volume. + string peer_volume_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source cluster to be peered with the + // destination cluster. + string peer_cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source vserver svm to be peered with the + // destination vserver svm. + string peer_svm_name = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of node ip addresses to be peered with. + repeated string peer_ip_addresses = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of source cluster location associated with the Hybrid + // replication. This is a free-form field for the display purpose only. + string cluster_location = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the replication. + string description = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels to be added to the replication as the key value pairs. + map labels = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeering.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeering.java new file mode 100644 index 000000000000..1511c45fb7a2 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeering.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishPeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.ReplicationName; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncEstablishPeering { + + public static void main(String[] args) throws Exception { + asyncEstablishPeering(); + } + + public static void asyncEstablishPeering() 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 (NetAppClient netAppClient = NetAppClient.create()) { + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + ApiFuture future = netAppClient.establishPeeringCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishPeering_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeeringLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeeringLRO.java new file mode 100644 index 000000000000..4960baaaf40f --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/AsyncEstablishPeeringLRO.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishPeering_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.EstablishPeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.Replication; +import com.google.cloud.netapp.v1.ReplicationName; +import java.util.ArrayList; + +public class AsyncEstablishPeeringLRO { + + public static void main(String[] args) throws Exception { + asyncEstablishPeeringLRO(); + } + + public static void asyncEstablishPeeringLRO() 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 (NetAppClient netAppClient = NetAppClient.create()) { + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + OperationFuture future = + netAppClient.establishPeeringOperationCallable().futureCall(request); + // Do something. + Replication response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishPeering_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/SyncEstablishPeering.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/SyncEstablishPeering.java new file mode 100644 index 000000000000..01fe7dba43bb --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishpeering/SyncEstablishPeering.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishPeering_sync] +import com.google.cloud.netapp.v1.EstablishPeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.Replication; +import com.google.cloud.netapp.v1.ReplicationName; +import java.util.ArrayList; + +public class SyncEstablishPeering { + + public static void main(String[] args) throws Exception { + syncEstablishPeering(); + } + + public static void syncEstablishPeering() 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 (NetAppClient netAppClient = NetAppClient.create()) { + EstablishPeeringRequest request = + EstablishPeeringRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + Replication response = netAppClient.establishPeeringAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishPeering_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplication.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplication.java new file mode 100644 index 000000000000..6deb8f23eb32 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplication.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_SyncReplication_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.ReplicationName; +import com.google.cloud.netapp.v1.SyncReplicationRequest; +import com.google.longrunning.Operation; + +public class AsyncSyncReplication { + + public static void main(String[] args) throws Exception { + asyncSyncReplication(); + } + + public static void asyncSyncReplication() 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 (NetAppClient netAppClient = NetAppClient.create()) { + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + ApiFuture future = netAppClient.syncReplicationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_SyncReplication_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplicationLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplicationLRO.java new file mode 100644 index 000000000000..a4ee3720e9c9 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/AsyncSyncReplicationLRO.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_SyncReplication_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.Replication; +import com.google.cloud.netapp.v1.ReplicationName; +import com.google.cloud.netapp.v1.SyncReplicationRequest; + +public class AsyncSyncReplicationLRO { + + public static void main(String[] args) throws Exception { + asyncSyncReplicationLRO(); + } + + public static void asyncSyncReplicationLRO() 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 (NetAppClient netAppClient = NetAppClient.create()) { + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + OperationFuture future = + netAppClient.syncReplicationOperationCallable().futureCall(request); + // Do something. + Replication response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_SyncReplication_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/SyncSyncReplication.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/SyncSyncReplication.java new file mode 100644 index 000000000000..445fd7d991b9 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/syncreplication/SyncSyncReplication.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.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_SyncReplication_sync] +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.Replication; +import com.google.cloud.netapp.v1.ReplicationName; +import com.google.cloud.netapp.v1.SyncReplicationRequest; + +public class SyncSyncReplication { + + public static void main(String[] args) throws Exception { + syncSyncReplication(); + } + + public static void syncSyncReplication() 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 (NetAppClient netAppClient = NetAppClient.create()) { + SyncReplicationRequest request = + SyncReplicationRequest.newBuilder() + .setName( + ReplicationName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]") + .toString()) + .build(); + Replication response = netAppClient.syncReplicationAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_SyncReplication_sync] diff --git a/java-network-management/README.md b/java-network-management/README.md index b3fa1b9ba349..dc761c6d3d92 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.54.0' +implementation 'com.google.cloud:google-cloud-network-management:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/README.md b/java-network-security/README.md index f94470e2e702..ffa9f9e77c52 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.56.0' +implementation 'com.google.cloud:google-cloud-network-security:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.57.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index fbcab76fa179..1b0982c9dff5 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.52.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java index 246b4140a5fe..0ea3a75c8c35 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java @@ -197,6 +197,26 @@ * * * + *

      QueryHubStatus + *

      Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

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

      + *
        + *
      • queryHubStatus(QueryHubStatusRequest request) + *

      + *

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

      + *
        + *
      • queryHubStatus(HubName name) + *

      • queryHubStatus(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.

      + *
        + *
      • queryHubStatusPagedCallable() + *

      • queryHubStatusCallable() + *

      + * + * + * *

      ListSpokes *

      Lists the Network Connectivity Center spokes in a specified project and location. * @@ -378,7 +398,7 @@ * * *

      ListRoutes - *

      Lists routes in a given project. + *

      Lists routes in a given route table. * *

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

      *
        @@ -398,7 +418,7 @@ * * *

        ListRouteTables - *

        Lists route tables in a given project. + *

        Lists route tables in a given hub. * *

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

        *
          @@ -456,6 +476,25 @@ * * * + *

          UpdateGroup + *

          Updates the parameters of a Network Connectivity Center group. + * + *

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

          + *
            + *
          • updateGroupAsync(UpdateGroupRequest request) + *

          + *

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

          + *
            + *
          • updateGroupAsync(Group group, 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.

          + *
            + *
          • updateGroupOperationCallable() + *

          • updateGroupCallable() + *

          + * + * + * *

          ListLocations *

          Lists information about the supported locations for this service. * @@ -1498,6 +1537,176 @@ public final UnaryCallable listHubS return stub.listHubSpokesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   HubName name = HubName.of("[PROJECT]", "[HUB]");
          +   *   for (HubStatusEntry element : hubServiceClient.queryHubStatus(name).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param name Required. The name of the hub. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryHubStatusPagedResponse queryHubStatus(HubName name) { + QueryHubStatusRequest request = + QueryHubStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return queryHubStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   String name = HubName.of("[PROJECT]", "[HUB]").toString();
          +   *   for (HubStatusEntry element : hubServiceClient.queryHubStatus(name).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param name Required. The name of the hub. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryHubStatusPagedResponse queryHubStatus(String name) { + QueryHubStatusRequest request = QueryHubStatusRequest.newBuilder().setName(name).build(); + return queryHubStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   QueryHubStatusRequest request =
          +   *       QueryHubStatusRequest.newBuilder()
          +   *           .setName(HubName.of("[PROJECT]", "[HUB]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setGroupBy("groupBy293428022")
          +   *           .build();
          +   *   for (HubStatusEntry element : hubServiceClient.queryHubStatus(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 QueryHubStatusPagedResponse queryHubStatus(QueryHubStatusRequest request) { + return queryHubStatusPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   QueryHubStatusRequest request =
          +   *       QueryHubStatusRequest.newBuilder()
          +   *           .setName(HubName.of("[PROJECT]", "[HUB]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setGroupBy("groupBy293428022")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       hubServiceClient.queryHubStatusPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (HubStatusEntry element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + queryHubStatusPagedCallable() { + return stub.queryHubStatusPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Query the Private Service Connect propagation status of a Network Connectivity Center hub. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   QueryHubStatusRequest request =
          +   *       QueryHubStatusRequest.newBuilder()
          +   *           .setName(HubName.of("[PROJECT]", "[HUB]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setGroupBy("groupBy293428022")
          +   *           .build();
          +   *   while (true) {
          +   *     QueryHubStatusResponse response = hubServiceClient.queryHubStatusCallable().call(request);
          +   *     for (HubStatusEntry element : response.getHubStatusEntriesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + queryHubStatusCallable() { + return stub.queryHubStatusCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the Network Connectivity Center spokes in a specified project and location. @@ -2876,7 +3085,7 @@ public final UnaryCallable getRouteCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists routes in a given project. + * Lists routes in a given route table. * *

          Sample code: * @@ -2905,7 +3114,7 @@ public final ListRoutesPagedResponse listRoutes(RouteTableName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists routes in a given project. + * Lists routes in a given route table. * *

          Sample code: * @@ -2933,7 +3142,7 @@ public final ListRoutesPagedResponse listRoutes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists routes in a given project. + * Lists routes in a given route table. * *

          Sample code: * @@ -2967,7 +3176,7 @@ public final ListRoutesPagedResponse listRoutes(ListRoutesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists routes in a given project. + * Lists routes in a given route table. * *

          Sample code: * @@ -3000,7 +3209,7 @@ public final UnaryCallable listRoute // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists routes in a given project. + * Lists routes in a given route table. * *

          Sample code: * @@ -3040,7 +3249,7 @@ public final UnaryCallable listRoutesCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * *

          Sample code: * @@ -3071,7 +3280,7 @@ public final ListRouteTablesPagedResponse listRouteTables(HubName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * *

          Sample code: * @@ -3099,7 +3308,7 @@ public final ListRouteTablesPagedResponse listRouteTables(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * *

          Sample code: * @@ -3133,7 +3342,7 @@ public final ListRouteTablesPagedResponse listRouteTables(ListRouteTablesRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * *

          Sample code: * @@ -3168,7 +3377,7 @@ public final ListRouteTablesPagedResponse listRouteTables(ListRouteTablesRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists route tables in a given project. + * Lists route tables in a given hub. * *

          Sample code: * @@ -3479,6 +3688,130 @@ public final UnaryCallable listGroupsCall return stub.listGroupsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a Network Connectivity Center group. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   Group group = Group.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Group response = hubServiceClient.updateGroupAsync(group, updateMask).get();
          +   * }
          +   * }
          + * + * @param group Required. The state that the group should be in after the update. + * @param updateMask Optional. In the case of an update to an existing group, field mask is used + * to specify the fields to be overwritten. The fields specified in the update_mask are + * relative to the resource, not the full request. A field is overwritten if it is in the + * mask. If the user does not provide a mask, then all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateGroupAsync( + Group group, FieldMask updateMask) { + UpdateGroupRequest request = + UpdateGroupRequest.newBuilder().setGroup(group).setUpdateMask(updateMask).build(); + return updateGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a Network Connectivity Center group. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   UpdateGroupRequest request =
          +   *       UpdateGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setGroup(Group.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Group response = hubServiceClient.updateGroupAsync(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 updateGroupAsync( + UpdateGroupRequest request) { + return updateGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a Network Connectivity Center group. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   UpdateGroupRequest request =
          +   *       UpdateGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setGroup(Group.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       hubServiceClient.updateGroupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Group response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateGroupOperationCallable() { + return stub.updateGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a Network Connectivity Center group. + * + *

          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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
          +   *   UpdateGroupRequest request =
          +   *       UpdateGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setGroup(Group.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future = hubServiceClient.updateGroupCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateGroupCallable() { + return stub.updateGroupCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -3993,6 +4326,82 @@ protected ListHubSpokesFixedSizeCollection createCollection( } } + public static class QueryHubStatusPagedResponse + extends AbstractPagedListResponse< + QueryHubStatusRequest, + QueryHubStatusResponse, + HubStatusEntry, + QueryHubStatusPage, + QueryHubStatusFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryHubStatusPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryHubStatusPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryHubStatusPagedResponse(QueryHubStatusPage page) { + super(page, QueryHubStatusFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryHubStatusPage + extends AbstractPage< + QueryHubStatusRequest, QueryHubStatusResponse, HubStatusEntry, QueryHubStatusPage> { + + private QueryHubStatusPage( + PageContext context, + QueryHubStatusResponse response) { + super(context, response); + } + + private static QueryHubStatusPage createEmptyPage() { + return new QueryHubStatusPage(null, null); + } + + @Override + protected QueryHubStatusPage createPage( + PageContext context, + QueryHubStatusResponse response) { + return new QueryHubStatusPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryHubStatusFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryHubStatusRequest, + QueryHubStatusResponse, + HubStatusEntry, + QueryHubStatusPage, + QueryHubStatusFixedSizeCollection> { + + private QueryHubStatusFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryHubStatusFixedSizeCollection createEmptyCollection() { + return new QueryHubStatusFixedSizeCollection(null, 0); + } + + @Override + protected QueryHubStatusFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryHubStatusFixedSizeCollection(pages, collectionSize); + } + } + public static class ListSpokesPagedResponse extends AbstractPagedListResponse< ListSpokesRequest, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 46358a814bc3..d1571bc5bead 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -23,6 +23,7 @@ import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRouteTablesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListSpokesPagedResponse; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.QueryHubStatusPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -179,6 +180,13 @@ public UnaryCallSettings deleteHubSettings() { return ((HubServiceStubSettings) getStubSettings()).listHubSpokesSettings(); } + /** Returns the object with the settings used for calls to queryHubStatus. */ + public PagedCallSettings< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings() { + return ((HubServiceStubSettings) getStubSettings()).queryHubStatusSettings(); + } + /** Returns the object with the settings used for calls to listSpokes. */ public PagedCallSettings listSpokesSettings() { @@ -279,6 +287,17 @@ public UnaryCallSettings getGroupSettings() { return ((HubServiceStubSettings) getStubSettings()).listGroupsSettings(); } + /** Returns the object with the settings used for calls to updateGroup. */ + public UnaryCallSettings updateGroupSettings() { + return ((HubServiceStubSettings) getStubSettings()).updateGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateGroup. */ + public OperationCallSettings + updateGroupOperationSettings() { + return ((HubServiceStubSettings) getStubSettings()).updateGroupOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -452,6 +471,13 @@ public UnaryCallSettings.Builder deleteHubSettings( return getStubSettingsBuilder().listHubSpokesSettings(); } + /** Returns the builder for the settings used for calls to queryHubStatus. */ + public PagedCallSettings.Builder< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings() { + return getStubSettingsBuilder().queryHubStatusSettings(); + } + /** Returns the builder for the settings used for calls to listSpokes. */ public PagedCallSettings.Builder listSpokesSettings() { @@ -554,6 +580,17 @@ public UnaryCallSettings.Builder getGroupSettings() { return getStubSettingsBuilder().listGroupsSettings(); } + /** Returns the builder for the settings used for calls to updateGroup. */ + public UnaryCallSettings.Builder updateGroupSettings() { + return getStubSettingsBuilder().updateGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateGroup. */ + public OperationCallSettings.Builder + updateGroupOperationSettings() { + return getStubSettingsBuilder().updateGroupOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index 612b27c15606..4850d5eed44c 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -67,6 +67,9 @@ "ListSpokes": { "methods": ["listSpokes", "listSpokes", "listSpokes", "listSpokesPagedCallable", "listSpokesCallable"] }, + "QueryHubStatus": { + "methods": ["queryHubStatus", "queryHubStatus", "queryHubStatus", "queryHubStatusPagedCallable", "queryHubStatusCallable"] + }, "RejectHubSpoke": { "methods": ["rejectHubSpokeAsync", "rejectHubSpokeAsync", "rejectHubSpokeAsync", "rejectHubSpokeAsync", "rejectHubSpokeAsync", "rejectHubSpokeOperationCallable", "rejectHubSpokeCallable"] }, @@ -76,6 +79,9 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, + "UpdateGroup": { + "methods": ["updateGroupAsync", "updateGroupAsync", "updateGroupOperationCallable", "updateGroupCallable"] + }, "UpdateHub": { "methods": ["updateHubAsync", "updateHubAsync", "updateHubOperationCallable", "updateHubCallable"] }, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index a5cecdc8a8c7..9e337e93c6f3 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -23,6 +23,7 @@ import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRouteTablesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListSpokesPagedResponse; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.QueryHubStatusPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -62,11 +63,14 @@ import com.google.cloud.networkconnectivity.v1.ListSpokesRequest; import com.google.cloud.networkconnectivity.v1.ListSpokesResponse; import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; import com.google.iam.v1.GetIamPolicyRequest; @@ -143,6 +147,17 @@ public class GrpcHubServiceStub extends HubServiceStub { ProtoUtils.marshaller(ListHubSpokesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + queryHubStatusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkconnectivity.v1.HubService/QueryHubStatus") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryHubStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryHubStatusResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSpokesMethodDescriptor = MethodDescriptor.newBuilder() @@ -259,6 +274,14 @@ public class GrpcHubServiceStub extends HubServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ListGroupsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor updateGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkconnectivity.v1.HubService/UpdateGroup") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -320,6 +343,9 @@ public class GrpcHubServiceStub extends HubServiceStub { private final UnaryCallable listHubSpokesCallable; private final UnaryCallable listHubSpokesPagedCallable; + private final UnaryCallable queryHubStatusCallable; + private final UnaryCallable + queryHubStatusPagedCallable; private final UnaryCallable listSpokesCallable; private final UnaryCallable listSpokesPagedCallable; private final UnaryCallable getSpokeCallable; @@ -349,6 +375,9 @@ public class GrpcHubServiceStub extends HubServiceStub { private final UnaryCallable getGroupCallable; private final UnaryCallable listGroupsCallable; private final UnaryCallable listGroupsPagedCallable; + private final UnaryCallable updateGroupCallable; + private final OperationCallable + updateGroupOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -460,6 +489,17 @@ protected GrpcHubServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + queryHubStatusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryHubStatusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listSpokesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSpokesMethodDescriptor) @@ -591,6 +631,16 @@ protected GrpcHubServiceStub( return builder.build(); }) .build(); + GrpcCallSettings updateGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("group.name", String.valueOf(request.getGroup().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -685,6 +735,12 @@ protected GrpcHubServiceStub( this.listHubSpokesPagedCallable = callableFactory.createPagedCallable( listHubSpokesTransportSettings, settings.listHubSpokesSettings(), clientContext); + this.queryHubStatusCallable = + callableFactory.createUnaryCallable( + queryHubStatusTransportSettings, settings.queryHubStatusSettings(), clientContext); + this.queryHubStatusPagedCallable = + callableFactory.createPagedCallable( + queryHubStatusTransportSettings, settings.queryHubStatusSettings(), clientContext); this.listSpokesCallable = callableFactory.createUnaryCallable( listSpokesTransportSettings, settings.listSpokesSettings(), clientContext); @@ -766,6 +822,15 @@ protected GrpcHubServiceStub( this.listGroupsPagedCallable = callableFactory.createPagedCallable( listGroupsTransportSettings, settings.listGroupsSettings(), clientContext); + this.updateGroupCallable = + callableFactory.createUnaryCallable( + updateGroupTransportSettings, settings.updateGroupSettings(), clientContext); + this.updateGroupOperationCallable = + callableFactory.createOperationCallable( + updateGroupTransportSettings, + settings.updateGroupOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -852,6 +917,17 @@ public UnaryCallable listHubSpokesC return listHubSpokesPagedCallable; } + @Override + public UnaryCallable queryHubStatusCallable() { + return queryHubStatusCallable; + } + + @Override + public UnaryCallable + queryHubStatusPagedCallable() { + return queryHubStatusPagedCallable; + } + @Override public UnaryCallable listSpokesCallable() { return listSpokesCallable; @@ -968,6 +1044,17 @@ public UnaryCallable listGroupsPaged return listGroupsPagedCallable; } + @Override + public UnaryCallable updateGroupCallable() { + return updateGroupCallable; + } + + @Override + public OperationCallable + updateGroupOperationCallable() { + return updateGroupOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java index b146c814c41a..400b33739c2b 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java @@ -23,6 +23,7 @@ import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRouteTablesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListSpokesPagedResponse; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.QueryHubStatusPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -57,11 +58,14 @@ import com.google.cloud.networkconnectivity.v1.ListSpokesRequest; import com.google.cloud.networkconnectivity.v1.ListSpokesResponse; import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; import com.google.iam.v1.GetIamPolicyRequest; @@ -133,6 +137,15 @@ public UnaryCallable listHubSpokesC throw new UnsupportedOperationException("Not implemented: listHubSpokesCallable()"); } + public UnaryCallable + queryHubStatusPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryHubStatusPagedCallable()"); + } + + public UnaryCallable queryHubStatusCallable() { + throw new UnsupportedOperationException("Not implemented: queryHubStatusCallable()"); + } + public UnaryCallable listSpokesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSpokesPagedCallable()"); } @@ -227,6 +240,15 @@ public UnaryCallable listGroupsCallable() throw new UnsupportedOperationException("Not implemented: listGroupsCallable()"); } + public OperationCallable + updateGroupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateGroupOperationCallable()"); + } + + public UnaryCallable updateGroupCallable() { + throw new UnsupportedOperationException("Not implemented: updateGroupCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java index 366f14f093b8..388f7418852b 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java @@ -23,6 +23,7 @@ import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRouteTablesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListSpokesPagedResponse; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.QueryHubStatusPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -67,6 +68,7 @@ import com.google.cloud.networkconnectivity.v1.GetSpokeRequest; import com.google.cloud.networkconnectivity.v1.Group; import com.google.cloud.networkconnectivity.v1.Hub; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; import com.google.cloud.networkconnectivity.v1.ListGroupsRequest; import com.google.cloud.networkconnectivity.v1.ListGroupsResponse; import com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest; @@ -80,11 +82,14 @@ import com.google.cloud.networkconnectivity.v1.ListSpokesRequest; import com.google.cloud.networkconnectivity.v1.ListSpokesResponse; import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest; import com.google.cloud.networkconnectivity.v1.RejectHubSpokeResponse; import com.google.cloud.networkconnectivity.v1.Route; import com.google.cloud.networkconnectivity.v1.RouteTable; import com.google.cloud.networkconnectivity.v1.Spoke; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; import com.google.cloud.networkconnectivity.v1.UpdateHubRequest; import com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest; import com.google.common.collect.ImmutableList; @@ -199,6 +204,9 @@ public class HubServiceStubSettings extends StubSettings private final PagedCallSettings< ListHubSpokesRequest, ListHubSpokesResponse, ListHubSpokesPagedResponse> listHubSpokesSettings; + private final PagedCallSettings< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings; private final PagedCallSettings listSpokesSettings; private final UnaryCallSettings getSpokeSettings; @@ -229,6 +237,9 @@ public class HubServiceStubSettings extends StubSettings private final UnaryCallSettings getGroupSettings; private final PagedCallSettings listGroupsSettings; + private final UnaryCallSettings updateGroupSettings; + private final OperationCallSettings + updateGroupOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -306,6 +317,42 @@ public Iterable extractResources(ListHubSpokesResponse payload) { } }; + private static final PagedListDescriptor< + QueryHubStatusRequest, QueryHubStatusResponse, HubStatusEntry> + QUERY_HUB_STATUS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryHubStatusRequest injectToken(QueryHubStatusRequest payload, String token) { + return QueryHubStatusRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryHubStatusRequest injectPageSize( + QueryHubStatusRequest payload, int pageSize) { + return QueryHubStatusRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryHubStatusRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryHubStatusResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryHubStatusResponse payload) { + return payload.getHubStatusEntriesList(); + } + }; + private static final PagedListDescriptor LIST_SPOKES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -512,6 +559,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + QUERY_HUB_STATUS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryHubStatusRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, QUERY_HUB_STATUS_PAGE_STR_DESC, request, context); + return QueryHubStatusPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListSpokesRequest, ListSpokesResponse, ListSpokesPagedResponse> LIST_SPOKES_PAGE_STR_FACT = @@ -647,6 +713,13 @@ public UnaryCallSettings deleteHubSettings() { return listHubSpokesSettings; } + /** Returns the object with the settings used for calls to queryHubStatus. */ + public PagedCallSettings< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings() { + return queryHubStatusSettings; + } + /** Returns the object with the settings used for calls to listSpokes. */ public PagedCallSettings listSpokesSettings() { @@ -747,6 +820,17 @@ public UnaryCallSettings getGroupSettings() { return listGroupsSettings; } + /** Returns the object with the settings used for calls to updateGroup. */ + public UnaryCallSettings updateGroupSettings() { + return updateGroupSettings; + } + + /** Returns the object with the settings used for calls to updateGroup. */ + public OperationCallSettings + updateGroupOperationSettings() { + return updateGroupOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -864,6 +948,7 @@ protected HubServiceStubSettings(Builder settingsBuilder) throws IOException { deleteHubSettings = settingsBuilder.deleteHubSettings().build(); deleteHubOperationSettings = settingsBuilder.deleteHubOperationSettings().build(); listHubSpokesSettings = settingsBuilder.listHubSpokesSettings().build(); + queryHubStatusSettings = settingsBuilder.queryHubStatusSettings().build(); listSpokesSettings = settingsBuilder.listSpokesSettings().build(); getSpokeSettings = settingsBuilder.getSpokeSettings().build(); createSpokeSettings = settingsBuilder.createSpokeSettings().build(); @@ -882,6 +967,8 @@ protected HubServiceStubSettings(Builder settingsBuilder) throws IOException { listRouteTablesSettings = settingsBuilder.listRouteTablesSettings().build(); getGroupSettings = settingsBuilder.getGroupSettings().build(); listGroupsSettings = settingsBuilder.listGroupsSettings().build(); + updateGroupSettings = settingsBuilder.updateGroupSettings().build(); + updateGroupOperationSettings = settingsBuilder.updateGroupOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -908,6 +995,9 @@ public static class Builder extends StubSettings.Builder listHubSpokesSettings; + private final PagedCallSettings.Builder< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings; private final PagedCallSettings.Builder< ListSpokesRequest, ListSpokesResponse, ListSpokesPagedResponse> listSpokesSettings; @@ -943,6 +1033,9 @@ public static class Builder extends StubSettings.Builder listGroupsSettings; + private final UnaryCallSettings.Builder updateGroupSettings; + private final OperationCallSettings.Builder + updateGroupOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1008,6 +1101,7 @@ protected Builder(ClientContext clientContext) { deleteHubSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteHubOperationSettings = OperationCallSettings.newBuilder(); listHubSpokesSettings = PagedCallSettings.newBuilder(LIST_HUB_SPOKES_PAGE_STR_FACT); + queryHubStatusSettings = PagedCallSettings.newBuilder(QUERY_HUB_STATUS_PAGE_STR_FACT); listSpokesSettings = PagedCallSettings.newBuilder(LIST_SPOKES_PAGE_STR_FACT); getSpokeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSpokeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1026,6 +1120,8 @@ protected Builder(ClientContext clientContext) { listRouteTablesSettings = PagedCallSettings.newBuilder(LIST_ROUTE_TABLES_PAGE_STR_FACT); getGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listGroupsSettings = PagedCallSettings.newBuilder(LIST_GROUPS_PAGE_STR_FACT); + updateGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGroupOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1040,6 +1136,7 @@ protected Builder(ClientContext clientContext) { updateHubSettings, deleteHubSettings, listHubSpokesSettings, + queryHubStatusSettings, listSpokesSettings, getSpokeSettings, createSpokeSettings, @@ -1053,6 +1150,7 @@ protected Builder(ClientContext clientContext) { listRouteTablesSettings, getGroupSettings, listGroupsSettings, + updateGroupSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1073,6 +1171,7 @@ protected Builder(HubServiceStubSettings settings) { deleteHubSettings = settings.deleteHubSettings.toBuilder(); deleteHubOperationSettings = settings.deleteHubOperationSettings.toBuilder(); listHubSpokesSettings = settings.listHubSpokesSettings.toBuilder(); + queryHubStatusSettings = settings.queryHubStatusSettings.toBuilder(); listSpokesSettings = settings.listSpokesSettings.toBuilder(); getSpokeSettings = settings.getSpokeSettings.toBuilder(); createSpokeSettings = settings.createSpokeSettings.toBuilder(); @@ -1091,6 +1190,8 @@ protected Builder(HubServiceStubSettings settings) { listRouteTablesSettings = settings.listRouteTablesSettings.toBuilder(); getGroupSettings = settings.getGroupSettings.toBuilder(); listGroupsSettings = settings.listGroupsSettings.toBuilder(); + updateGroupSettings = settings.updateGroupSettings.toBuilder(); + updateGroupOperationSettings = settings.updateGroupOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1105,6 +1206,7 @@ protected Builder(HubServiceStubSettings settings) { updateHubSettings, deleteHubSettings, listHubSpokesSettings, + queryHubStatusSettings, listSpokesSettings, getSpokeSettings, createSpokeSettings, @@ -1118,6 +1220,7 @@ protected Builder(HubServiceStubSettings settings) { listRouteTablesSettings, getGroupSettings, listGroupsSettings, + updateGroupSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1168,6 +1271,11 @@ 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 + .queryHubStatusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listSpokesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1233,6 +1341,11 @@ 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 + .updateGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1442,6 +1555,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateGroupOperationSettings() + .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(Group.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1511,6 +1647,13 @@ public UnaryCallSettings.Builder deleteHubSettings( return listHubSpokesSettings; } + /** Returns the builder for the settings used for calls to queryHubStatus. */ + public PagedCallSettings.Builder< + QueryHubStatusRequest, QueryHubStatusResponse, QueryHubStatusPagedResponse> + queryHubStatusSettings() { + return queryHubStatusSettings; + } + /** Returns the builder for the settings used for calls to listSpokes. */ public PagedCallSettings.Builder listSpokesSettings() { @@ -1613,6 +1756,17 @@ public UnaryCallSettings.Builder getGroupSettings() { return listGroupsSettings; } + /** Returns the builder for the settings used for calls to updateGroup. */ + public UnaryCallSettings.Builder updateGroupSettings() { + return updateGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateGroup. */ + public OperationCallSettings.Builder + updateGroupOperationSettings() { + return updateGroupOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json index 45f3047ed68c..3e423f1bc3fb 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -413,6 +440,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -521,6 +566,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.AutoAccept", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.AutoAccept$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.CreateHubRequest", "queryAllDeclaredConstructors": true, @@ -773,6 +836,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.HubStatusEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.HubStatusEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments", "queryAllDeclaredConstructors": true, @@ -791,6 +872,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances", "queryAllDeclaredConstructors": true, @@ -1133,6 +1232,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.NextHopVpcNetwork", "queryAllDeclaredConstructors": true, @@ -1286,6 +1439,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.PolicyMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.PresetTopology", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.PscPropagationStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.PscPropagationStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.PscPropagationStatus$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.RejectHubSpokeRequest", "queryAllDeclaredConstructors": true, @@ -1538,6 +1772,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.UpdateHubRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java index 9e278fc0db84..b6304c15779e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java @@ -23,6 +23,7 @@ import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRouteTablesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListRoutesPagedResponse; import static com.google.cloud.networkconnectivity.v1.HubServiceClient.ListSpokesPagedResponse; +import static com.google.cloud.networkconnectivity.v1.HubServiceClient.QueryHubStatusPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -213,6 +214,9 @@ public void getHubTest() throws Exception { .addAllRoutingVpcs(new ArrayList()) .addAllRouteTables(new ArrayList()) .setSpokeSummary(SpokeSummary.newBuilder().build()) + .setPolicyMode(PolicyMode.forNumber(0)) + .setPresetTopology(PresetTopology.forNumber(0)) + .setExportPsc(true) .build(); mockHubService.addResponse(expectedResponse); @@ -260,6 +264,9 @@ public void getHubTest2() throws Exception { .addAllRoutingVpcs(new ArrayList()) .addAllRouteTables(new ArrayList()) .setSpokeSummary(SpokeSummary.newBuilder().build()) + .setPolicyMode(PolicyMode.forNumber(0)) + .setPresetTopology(PresetTopology.forNumber(0)) + .setExportPsc(true) .build(); mockHubService.addResponse(expectedResponse); @@ -307,6 +314,9 @@ public void createHubTest() throws Exception { .addAllRoutingVpcs(new ArrayList()) .addAllRouteTables(new ArrayList()) .setSpokeSummary(SpokeSummary.newBuilder().build()) + .setPolicyMode(PolicyMode.forNumber(0)) + .setPresetTopology(PresetTopology.forNumber(0)) + .setExportPsc(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -368,6 +378,9 @@ public void createHubTest2() throws Exception { .addAllRoutingVpcs(new ArrayList()) .addAllRouteTables(new ArrayList()) .setSpokeSummary(SpokeSummary.newBuilder().build()) + .setPolicyMode(PolicyMode.forNumber(0)) + .setPresetTopology(PresetTopology.forNumber(0)) + .setExportPsc(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -429,6 +442,9 @@ public void updateHubTest() throws Exception { .addAllRoutingVpcs(new ArrayList()) .addAllRouteTables(new ArrayList()) .setSpokeSummary(SpokeSummary.newBuilder().build()) + .setPolicyMode(PolicyMode.forNumber(0)) + .setPresetTopology(PresetTopology.forNumber(0)) + .setExportPsc(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -645,6 +661,94 @@ public void listHubSpokesExceptionTest2() throws Exception { } } + @Test + public void queryHubStatusTest() throws Exception { + HubStatusEntry responsesElement = HubStatusEntry.newBuilder().build(); + QueryHubStatusResponse expectedResponse = + QueryHubStatusResponse.newBuilder() + .setNextPageToken("") + .addAllHubStatusEntries(Arrays.asList(responsesElement)) + .build(); + mockHubService.addResponse(expectedResponse); + + HubName name = HubName.of("[PROJECT]", "[HUB]"); + + QueryHubStatusPagedResponse pagedListResponse = client.queryHubStatus(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHubStatusEntriesList().get(0), resources.get(0)); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryHubStatusRequest actualRequest = ((QueryHubStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryHubStatusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + HubName name = HubName.of("[PROJECT]", "[HUB]"); + client.queryHubStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryHubStatusTest2() throws Exception { + HubStatusEntry responsesElement = HubStatusEntry.newBuilder().build(); + QueryHubStatusResponse expectedResponse = + QueryHubStatusResponse.newBuilder() + .setNextPageToken("") + .addAllHubStatusEntries(Arrays.asList(responsesElement)) + .build(); + mockHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryHubStatusPagedResponse pagedListResponse = client.queryHubStatus(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHubStatusEntriesList().get(0), resources.get(0)); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryHubStatusRequest actualRequest = ((QueryHubStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryHubStatusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + String name = "name3373707"; + client.queryHubStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listSpokesTest() throws Exception { Spoke responsesElement = Spoke.newBuilder().build(); @@ -748,6 +852,7 @@ public void getSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) .addAllReasons(new ArrayList()) @@ -800,6 +905,7 @@ public void getSpokeTest2() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) .addAllReasons(new ArrayList()) @@ -852,6 +958,7 @@ public void createSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) .addAllReasons(new ArrayList()) @@ -918,6 +1025,7 @@ public void createSpokeTest2() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) .addAllReasons(new ArrayList()) @@ -984,6 +1092,7 @@ public void updateSpokeTest() throws Exception { .setLinkedInterconnectAttachments(LinkedInterconnectAttachments.newBuilder().build()) .setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.newBuilder().build()) .setLinkedVpcNetwork(LinkedVpcNetwork.newBuilder().build()) + .setLinkedProducerVpcNetwork(LinkedProducerVpcNetwork.newBuilder().build()) .setUniqueId("uniqueId-294460212") .setState(State.forNumber(0)) .addAllReasons(new ArrayList()) @@ -1596,6 +1705,10 @@ public void getRouteTest() throws Exception { .setState(State.forNumber(0)) .setSpoke(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) .setLocation("location1901043637") + .setPriority(-1165461084) + .setNextHopVpnTunnel(NextHopVPNTunnel.newBuilder().build()) + .setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.newBuilder().build()) + .setNextHopInterconnectAttachment(NextHopInterconnectAttachment.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -1645,6 +1758,10 @@ public void getRouteTest2() throws Exception { .setState(State.forNumber(0)) .setSpoke(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString()) .setLocation("location1901043637") + .setPriority(-1165461084) + .setNextHopVpnTunnel(NextHopVPNTunnel.newBuilder().build()) + .setNextHopRouterApplianceInstance(NextHopRouterApplianceInstance.newBuilder().build()) + .setNextHopInterconnectAttachment(NextHopInterconnectAttachment.newBuilder().build()) .build(); mockHubService.addResponse(expectedResponse); @@ -1865,6 +1982,8 @@ public void getGroupTest() throws Exception { .setDescription("description-1724546052") .setUid("uid115792") .setState(State.forNumber(0)) + .setAutoAccept(AutoAccept.newBuilder().build()) + .setRouteTable("routeTable902012677") .build(); mockHubService.addResponse(expectedResponse); @@ -1909,6 +2028,8 @@ public void getGroupTest2() throws Exception { .setDescription("description-1724546052") .setUid("uid115792") .setState(State.forNumber(0)) + .setAutoAccept(AutoAccept.newBuilder().build()) + .setRouteTable("routeTable902012677") .build(); mockHubService.addResponse(expectedResponse); @@ -2030,6 +2151,63 @@ public void listGroupsExceptionTest2() throws Exception { } } + @Test + public void updateGroupTest() throws Exception { + Group expectedResponse = + Group.newBuilder() + .setName(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setUid("uid115792") + .setState(State.forNumber(0)) + .setAutoAccept(AutoAccept.newBuilder().build()) + .setRouteTable("routeTable902012677") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockHubService.addResponse(resultOperation); + + Group group = Group.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Group actualResponse = client.updateGroupAsync(group, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGroupRequest actualRequest = ((UpdateGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(group, actualRequest.getGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockHubService.addException(exception); + + try { + Group group = Group.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGroupAsync(group, updateMask).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-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java index 4ff62f0c4998..ff01ec8281f8 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java @@ -180,6 +180,27 @@ public void listHubSpokes( } } + @Override + public void queryHubStatus( + QueryHubStatusRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryHubStatusResponse) { + requests.add(request); + responseObserver.onNext(((QueryHubStatusResponse) 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 QueryHubStatus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryHubStatusResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listSpokes( ListSpokesRequest request, StreamObserver responseObserver) { @@ -446,4 +467,24 @@ public void listGroups( Exception.class.getName()))); } } + + @Override + public void updateGroup(UpdateGroupRequest 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 UpdateGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java index a20f9357dd04..31d75cc20893 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -310,6 +310,52 @@ private HubServiceGrpc() {} return getListHubSpokesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse> + getQueryHubStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryHubStatus", + requestType = com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse> + getQueryHubStatusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse> + getQueryHubStatusMethod; + if ((getQueryHubStatusMethod = HubServiceGrpc.getQueryHubStatusMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getQueryHubStatusMethod = HubServiceGrpc.getQueryHubStatusMethod) == null) { + HubServiceGrpc.getQueryHubStatusMethod = + getQueryHubStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryHubStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("QueryHubStatus")) + .build(); + } + } + } + return getQueryHubStatusMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.networkconnectivity.v1.ListSpokesRequest, com.google.cloud.networkconnectivity.v1.ListSpokesResponse> @@ -901,6 +947,51 @@ private HubServiceGrpc() {} return getListGroupsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest, + com.google.longrunning.Operation> + getUpdateGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGroup", + requestType = com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest, + com.google.longrunning.Operation> + getUpdateGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest, + com.google.longrunning.Operation> + getUpdateGroupMethod; + if ((getUpdateGroupMethod = HubServiceGrpc.getUpdateGroupMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateGroupMethod = HubServiceGrpc.getUpdateGroupMethod) == null) { + HubServiceGrpc.getUpdateGroupMethod = + getUpdateGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateGroup")) + .build(); + } + } + } + return getUpdateGroupMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static HubServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1036,6 +1127,22 @@ default void listHubSpokes( getListHubSpokesMethod(), responseObserver); } + /** + * + * + *
          +     * Query the Private Service Connect propagation status of a Network
          +     * Connectivity Center hub.
          +     * 
          + */ + default void queryHubStatus( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryHubStatusMethod(), responseObserver); + } + /** * * @@ -1172,7 +1279,7 @@ default void getRoute( * * *
          -     * Lists routes in a given project.
          +     * Lists routes in a given route table.
                * 
          */ default void listRoutes( @@ -1186,7 +1293,7 @@ default void listRoutes( * * *
          -     * Lists route tables in a given project.
          +     * Lists route tables in a given hub.
                * 
          */ default void listRouteTables( @@ -1224,6 +1331,20 @@ default void listGroups( responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGroupsMethod(), responseObserver); } + + /** + * + * + *
          +     * Updates the parameters of a Network Connectivity Center group.
          +     * 
          + */ + default void updateGroup( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGroupMethod(), responseObserver); + } } /** @@ -1353,6 +1474,24 @@ public void listHubSpokes( responseObserver); } + /** + * + * + *
          +     * Query the Private Service Connect propagation status of a Network
          +     * Connectivity Center hub.
          +     * 
          + */ + public void queryHubStatus( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryHubStatusMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1504,7 +1643,7 @@ public void getRoute( * * *
          -     * Lists routes in a given project.
          +     * Lists routes in a given route table.
                * 
          */ public void listRoutes( @@ -1519,7 +1658,7 @@ public void listRoutes( * * *
          -     * Lists route tables in a given project.
          +     * Lists route tables in a given hub.
                * 
          */ public void listRouteTables( @@ -1561,6 +1700,22 @@ public void listGroups( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
          +     * Updates the parameters of a Network Connectivity Center group.
          +     * 
          + */ + public void updateGroup( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1665,6 +1820,20 @@ public com.google.cloud.networkconnectivity.v1.ListHubSpokesResponse listHubSpok getChannel(), getListHubSpokesMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Query the Private Service Connect propagation status of a Network
          +     * Connectivity Center hub.
          +     * 
          + */ + public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse queryHubStatus( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryHubStatusMethod(), getCallOptions(), request); + } + /** * * @@ -1791,7 +1960,7 @@ public com.google.cloud.networkconnectivity.v1.Route getRoute( * * *
          -     * Lists routes in a given project.
          +     * Lists routes in a given route table.
                * 
          */ public com.google.cloud.networkconnectivity.v1.ListRoutesResponse listRoutes( @@ -1804,7 +1973,7 @@ public com.google.cloud.networkconnectivity.v1.ListRoutesResponse listRoutes( * * *
          -     * Lists route tables in a given project.
          +     * Lists route tables in a given hub.
                * 
          */ public com.google.cloud.networkconnectivity.v1.ListRouteTablesResponse listRouteTables( @@ -1838,6 +2007,19 @@ public com.google.cloud.networkconnectivity.v1.ListGroupsResponse listGroups( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGroupsMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * Updates the parameters of a Network Connectivity Center group.
          +     * 
          + */ + public com.google.longrunning.Operation updateGroup( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGroupMethod(), getCallOptions(), request); + } } /** @@ -1944,6 +2126,21 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getListHubSpokesMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Query the Private Service Connect propagation status of a Network
          +     * Connectivity Center hub.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse> + queryHubStatus(com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryHubStatusMethod(), getCallOptions()), request); + } + /** * * @@ -2074,7 +2271,7 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
          -     * Lists routes in a given project.
          +     * Lists routes in a given route table.
                * 
          */ public com.google.common.util.concurrent.ListenableFuture< @@ -2088,7 +2285,7 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
          -     * Lists route tables in a given project.
          +     * Lists route tables in a given hub.
                * 
          */ public com.google.common.util.concurrent.ListenableFuture< @@ -2125,6 +2322,19 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGroupsMethod(), getCallOptions()), request); } + + /** + * + * + *
          +     * Updates the parameters of a Network Connectivity Center group.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateGroup(com.google.cloud.networkconnectivity.v1.UpdateGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGroupMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_HUBS = 0; @@ -2133,19 +2343,21 @@ protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_UPDATE_HUB = 3; private static final int METHODID_DELETE_HUB = 4; private static final int METHODID_LIST_HUB_SPOKES = 5; - private static final int METHODID_LIST_SPOKES = 6; - private static final int METHODID_GET_SPOKE = 7; - private static final int METHODID_CREATE_SPOKE = 8; - private static final int METHODID_UPDATE_SPOKE = 9; - private static final int METHODID_REJECT_HUB_SPOKE = 10; - private static final int METHODID_ACCEPT_HUB_SPOKE = 11; - private static final int METHODID_DELETE_SPOKE = 12; - private static final int METHODID_GET_ROUTE_TABLE = 13; - private static final int METHODID_GET_ROUTE = 14; - private static final int METHODID_LIST_ROUTES = 15; - private static final int METHODID_LIST_ROUTE_TABLES = 16; - private static final int METHODID_GET_GROUP = 17; - private static final int METHODID_LIST_GROUPS = 18; + private static final int METHODID_QUERY_HUB_STATUS = 6; + private static final int METHODID_LIST_SPOKES = 7; + private static final int METHODID_GET_SPOKE = 8; + private static final int METHODID_CREATE_SPOKE = 9; + private static final int METHODID_UPDATE_SPOKE = 10; + private static final int METHODID_REJECT_HUB_SPOKE = 11; + private static final int METHODID_ACCEPT_HUB_SPOKE = 12; + private static final int METHODID_DELETE_SPOKE = 13; + private static final int METHODID_GET_ROUTE_TABLE = 14; + private static final int METHODID_GET_ROUTE = 15; + private static final int METHODID_LIST_ROUTES = 16; + private static final int METHODID_LIST_ROUTE_TABLES = 17; + private static final int METHODID_GET_GROUP = 18; + private static final int METHODID_LIST_GROUPS = 19; + private static final int METHODID_UPDATE_GROUP = 20; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2199,6 +2411,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.networkconnectivity.v1.ListHubSpokesResponse>) responseObserver); break; + case METHODID_QUERY_HUB_STATUS: + serviceImpl.queryHubStatus( + (com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse>) + responseObserver); + break; case METHODID_LIST_SPOKES: serviceImpl.listSpokes( (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, @@ -2276,6 +2495,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.networkconnectivity.v1.ListGroupsResponse>) responseObserver); break; + case METHODID_UPDATE_GROUP: + serviceImpl.updateGroup( + (com.google.cloud.networkconnectivity.v1.UpdateGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2332,6 +2556,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkconnectivity.v1.ListHubSpokesRequest, com.google.cloud.networkconnectivity.v1.ListHubSpokesResponse>( service, METHODID_LIST_HUB_SPOKES))) + .addMethod( + getQueryHubStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse>( + service, METHODID_QUERY_HUB_STATUS))) .addMethod( getListSpokesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2415,6 +2646,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkconnectivity.v1.ListGroupsRequest, com.google.cloud.networkconnectivity.v1.ListGroupsResponse>( service, METHODID_LIST_GROUPS))) + .addMethod( + getUpdateGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_GROUP))) .build(); } @@ -2472,6 +2709,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateHubMethod()) .addMethod(getDeleteHubMethod()) .addMethod(getListHubSpokesMethod()) + .addMethod(getQueryHubStatusMethod()) .addMethod(getListSpokesMethod()) .addMethod(getGetSpokeMethod()) .addMethod(getCreateSpokeMethod()) @@ -2485,6 +2723,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListRouteTablesMethod()) .addMethod(getGetGroupMethod()) .addMethod(getListGroupsMethod()) + .addMethod(getUpdateGroupMethod()) .build(); } } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAccept.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAccept.java new file mode 100644 index 000000000000..4929bf7b59f6 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAccept.java @@ -0,0 +1,758 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * The auto-accept setting for a group controls whether
          + * proposed spokes are automatically attached to the hub. If auto-accept is
          + * enabled, the spoke immediately is attached to the hub and becomes part of the
          + * group. In this case, the new spoke is in the ACTIVE state.
          + * If auto-accept is disabled, the spoke goes to the INACTIVE
          + * state, and it must be reviewed and accepted by a hub
          + * administrator.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.AutoAccept} + */ +public final class AutoAccept extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.AutoAccept) + AutoAcceptOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoAccept.newBuilder() to construct. + private AutoAccept(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoAccept() { + autoAcceptProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoAccept(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_AutoAccept_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_AutoAccept_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.AutoAccept.class, + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder.class); + } + + public static final int AUTO_ACCEPT_PROJECTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList autoAcceptProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return A list containing the autoAcceptProjects. + */ + public com.google.protobuf.ProtocolStringList getAutoAcceptProjectsList() { + return autoAcceptProjects_; + } + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return The count of autoAcceptProjects. + */ + public int getAutoAcceptProjectsCount() { + return autoAcceptProjects_.size(); + } + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the element to return. + * @return The autoAcceptProjects at the given index. + */ + public java.lang.String getAutoAcceptProjects(int index) { + return autoAcceptProjects_.get(index); + } + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the value to return. + * @return The bytes of the autoAcceptProjects at the given index. + */ + public com.google.protobuf.ByteString getAutoAcceptProjectsBytes(int index) { + return autoAcceptProjects_.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 { + for (int i = 0; i < autoAcceptProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoAcceptProjects_.getRaw(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 < autoAcceptProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(autoAcceptProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoAcceptProjectsList().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.networkconnectivity.v1.AutoAccept)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.AutoAccept other = + (com.google.cloud.networkconnectivity.v1.AutoAccept) obj; + + if (!getAutoAcceptProjectsList().equals(other.getAutoAcceptProjectsList())) 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 (getAutoAcceptProjectsCount() > 0) { + hash = (37 * hash) + AUTO_ACCEPT_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAutoAcceptProjectsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept 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.networkconnectivity.v1.AutoAccept parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept 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.networkconnectivity.v1.AutoAccept parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept 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.networkconnectivity.v1.AutoAccept parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept 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.networkconnectivity.v1.AutoAccept parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept 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.networkconnectivity.v1.AutoAccept 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 auto-accept setting for a group controls whether
          +   * proposed spokes are automatically attached to the hub. If auto-accept is
          +   * enabled, the spoke immediately is attached to the hub and becomes part of the
          +   * group. In this case, the new spoke is in the ACTIVE state.
          +   * If auto-accept is disabled, the spoke goes to the INACTIVE
          +   * state, and it must be reviewed and accepted by a hub
          +   * administrator.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.AutoAccept} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.AutoAccept) + com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_AutoAccept_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_AutoAccept_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.AutoAccept.class, + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.AutoAccept.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoAcceptProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_AutoAccept_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.AutoAccept getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.AutoAccept build() { + com.google.cloud.networkconnectivity.v1.AutoAccept result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.AutoAccept buildPartial() { + com.google.cloud.networkconnectivity.v1.AutoAccept result = + new com.google.cloud.networkconnectivity.v1.AutoAccept(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.AutoAccept result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + autoAcceptProjects_.makeImmutable(); + result.autoAcceptProjects_ = autoAcceptProjects_; + } + } + + @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.networkconnectivity.v1.AutoAccept) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.AutoAccept) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.AutoAccept other) { + if (other == com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance()) + return this; + if (!other.autoAcceptProjects_.isEmpty()) { + if (autoAcceptProjects_.isEmpty()) { + autoAcceptProjects_ = other.autoAcceptProjects_; + bitField0_ |= 0x00000001; + } else { + ensureAutoAcceptProjectsIsMutable(); + autoAcceptProjects_.addAll(other.autoAcceptProjects_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAutoAcceptProjectsIsMutable(); + autoAcceptProjects_.add(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 bitField0_; + + private com.google.protobuf.LazyStringArrayList autoAcceptProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAutoAcceptProjectsIsMutable() { + if (!autoAcceptProjects_.isModifiable()) { + autoAcceptProjects_ = new com.google.protobuf.LazyStringArrayList(autoAcceptProjects_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return A list containing the autoAcceptProjects. + */ + public com.google.protobuf.ProtocolStringList getAutoAcceptProjectsList() { + autoAcceptProjects_.makeImmutable(); + return autoAcceptProjects_; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return The count of autoAcceptProjects. + */ + public int getAutoAcceptProjectsCount() { + return autoAcceptProjects_.size(); + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the element to return. + * @return The autoAcceptProjects at the given index. + */ + public java.lang.String getAutoAcceptProjects(int index) { + return autoAcceptProjects_.get(index); + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the value to return. + * @return The bytes of the autoAcceptProjects at the given index. + */ + public com.google.protobuf.ByteString getAutoAcceptProjectsBytes(int index) { + return autoAcceptProjects_.getByteString(index); + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index to set the value at. + * @param value The autoAcceptProjects to set. + * @return This builder for chaining. + */ + public Builder setAutoAcceptProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoAcceptProjectsIsMutable(); + autoAcceptProjects_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param value The autoAcceptProjects to add. + * @return This builder for chaining. + */ + public Builder addAutoAcceptProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoAcceptProjectsIsMutable(); + autoAcceptProjects_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param values The autoAcceptProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAutoAcceptProjects(java.lang.Iterable values) { + ensureAutoAcceptProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoAcceptProjects_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoAcceptProjects() { + autoAcceptProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * A list of project ids or project numbers for which you want
          +     * to enable auto-accept. The auto-accept setting is applied to
          +     * spokes being created or updated in these projects.
          +     * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param value The bytes of the autoAcceptProjects to add. + * @return This builder for chaining. + */ + public Builder addAutoAcceptProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAutoAcceptProjectsIsMutable(); + autoAcceptProjects_.add(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.networkconnectivity.v1.AutoAccept) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.AutoAccept) + private static final com.google.cloud.networkconnectivity.v1.AutoAccept DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.AutoAccept(); + } + + public static com.google.cloud.networkconnectivity.v1.AutoAccept getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoAccept 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.networkconnectivity.v1.AutoAccept getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAcceptOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAcceptOrBuilder.java new file mode 100644 index 000000000000..12ac4fe397dd --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/AutoAcceptOrBuilder.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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface AutoAcceptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.AutoAccept) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return A list containing the autoAcceptProjects. + */ + java.util.List getAutoAcceptProjectsList(); + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @return The count of autoAcceptProjects. + */ + int getAutoAcceptProjectsCount(); + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the element to return. + * @return The autoAcceptProjects at the given index. + */ + java.lang.String getAutoAcceptProjects(int index); + /** + * + * + *
          +   * A list of project ids or project numbers for which you want
          +   * to enable auto-accept. The auto-accept setting is applied to
          +   * spokes being created or updated in these projects.
          +   * 
          + * + * repeated string auto_accept_projects = 1; + * + * @param index The index of the value to return. + * @return The bytes of the autoAcceptProjects at the given index. + */ + com.google.protobuf.ByteString getAutoAcceptProjectsBytes(int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java index 45898e532c91..372222254153 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Group.java @@ -43,6 +43,7 @@ private Group() { description_ = ""; uid_ = ""; state_ = 0; + routeTable_ = ""; } @java.lang.Override @@ -489,6 +490,117 @@ public com.google.cloud.networkconnectivity.v1.State getState() { return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } + public static final int AUTO_ACCEPT_FIELD_NUMBER = 8; + private com.google.cloud.networkconnectivity.v1.AutoAccept autoAccept_; + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoAccept field is set. + */ + @java.lang.Override + public boolean hasAutoAccept() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoAccept. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.AutoAccept getAutoAccept() { + return autoAccept_ == null + ? com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance() + : autoAccept_; + } + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder getAutoAcceptOrBuilder() { + return autoAccept_ == null + ? com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance() + : autoAccept_; + } + + public static final int ROUTE_TABLE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object routeTable_ = ""; + /** + * + * + *
          +   * Output only. The name of the route table that corresponds to this group.
          +   * They use the following form:
          +   * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +   * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The routeTable. + */ + @java.lang.Override + public java.lang.String getRouteTable() { + java.lang.Object ref = routeTable_; + 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(); + routeTable_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The name of the route table that corresponds to this group.
          +   * They use the following form:
          +   * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +   * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for routeTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteTableBytes() { + java.lang.Object ref = routeTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -523,6 +635,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getAutoAccept()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, routeTable_); + } getUnknownFields().writeTo(output); } @@ -560,6 +678,12 @@ public int getSerializedSize() { if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAutoAccept()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeTable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, routeTable_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -589,6 +713,11 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!getUid().equals(other.getUid())) return false; if (state_ != other.state_) return false; + if (hasAutoAccept() != other.hasAutoAccept()) return false; + if (hasAutoAccept()) { + if (!getAutoAccept().equals(other.getAutoAccept())) return false; + } + if (!getRouteTable().equals(other.getRouteTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -620,6 +749,12 @@ public int hashCode() { hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (hasAutoAccept()) { + hash = (37 * hash) + AUTO_ACCEPT_FIELD_NUMBER; + hash = (53 * hash) + getAutoAccept().hashCode(); + } + hash = (37 * hash) + ROUTE_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getRouteTable().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -784,6 +919,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getAutoAcceptFieldBuilder(); } } @@ -806,6 +942,12 @@ public Builder clear() { description_ = ""; uid_ = ""; state_ = 0; + autoAccept_ = null; + if (autoAcceptBuilder_ != null) { + autoAcceptBuilder_.dispose(); + autoAcceptBuilder_ = null; + } + routeTable_ = ""; return this; } @@ -867,6 +1009,13 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Group result) if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.autoAccept_ = autoAcceptBuilder_ == null ? autoAccept_ : autoAcceptBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.routeTable_ = routeTable_; + } result.bitField0_ |= to_bitField0_; } @@ -941,6 +1090,14 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Group other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.hasAutoAccept()) { + mergeAutoAccept(other.getAutoAccept()); + } + if (!other.getRouteTable().isEmpty()) { + routeTable_ = other.routeTable_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1015,6 +1172,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 56 + case 66: + { + input.readMessage(getAutoAcceptFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + routeTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2060,6 +2229,327 @@ public Builder clearState() { return this; } + private com.google.cloud.networkconnectivity.v1.AutoAccept autoAccept_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.AutoAccept, + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder, + com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder> + autoAcceptBuilder_; + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoAccept field is set. + */ + public boolean hasAutoAccept() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoAccept. + */ + public com.google.cloud.networkconnectivity.v1.AutoAccept getAutoAccept() { + if (autoAcceptBuilder_ == null) { + return autoAccept_ == null + ? com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance() + : autoAccept_; + } else { + return autoAcceptBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoAccept(com.google.cloud.networkconnectivity.v1.AutoAccept value) { + if (autoAcceptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoAccept_ = value; + } else { + autoAcceptBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoAccept( + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder builderForValue) { + if (autoAcceptBuilder_ == null) { + autoAccept_ = builderForValue.build(); + } else { + autoAcceptBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoAccept(com.google.cloud.networkconnectivity.v1.AutoAccept value) { + if (autoAcceptBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && autoAccept_ != null + && autoAccept_ + != com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance()) { + getAutoAcceptBuilder().mergeFrom(value); + } else { + autoAccept_ = value; + } + } else { + autoAcceptBuilder_.mergeFrom(value); + } + if (autoAccept_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoAccept() { + bitField0_ = (bitField0_ & ~0x00000080); + autoAccept_ = null; + if (autoAcceptBuilder_ != null) { + autoAcceptBuilder_.dispose(); + autoAcceptBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.AutoAccept.Builder getAutoAcceptBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getAutoAcceptFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder getAutoAcceptOrBuilder() { + if (autoAcceptBuilder_ != null) { + return autoAcceptBuilder_.getMessageOrBuilder(); + } else { + return autoAccept_ == null + ? com.google.cloud.networkconnectivity.v1.AutoAccept.getDefaultInstance() + : autoAccept_; + } + } + /** + * + * + *
          +     * Optional. The auto-accept setting for this group.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.AutoAccept, + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder, + com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder> + getAutoAcceptFieldBuilder() { + if (autoAcceptBuilder_ == null) { + autoAcceptBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.AutoAccept, + com.google.cloud.networkconnectivity.v1.AutoAccept.Builder, + com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder>( + getAutoAccept(), getParentForChildren(), isClean()); + autoAccept_ = null; + } + return autoAcceptBuilder_; + } + + private java.lang.Object routeTable_ = ""; + /** + * + * + *
          +     * Output only. The name of the route table that corresponds to this group.
          +     * They use the following form:
          +     * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +     * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The routeTable. + */ + public java.lang.String getRouteTable() { + java.lang.Object ref = routeTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routeTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The name of the route table that corresponds to this group.
          +     * They use the following form:
          +     * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +     * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for routeTable. + */ + public com.google.protobuf.ByteString getRouteTableBytes() { + java.lang.Object ref = routeTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The name of the route table that corresponds to this group.
          +     * They use the following form:
          +     * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +     * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The routeTable to set. + * @return This builder for chaining. + */ + public Builder setRouteTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeTable_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The name of the route table that corresponds to this group.
          +     * They use the following form:
          +     * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +     * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRouteTable() { + routeTable_ = getDefaultInstance().getRouteTable(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The name of the route table that corresponds to this group.
          +     * They use the following form:
          +     * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +     * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for routeTable to set. + * @return This builder for chaining. + */ + public Builder setRouteTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routeTable_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java index 81a1b94cb805..9f6a82c2a9df 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupOrBuilder.java @@ -281,4 +281,74 @@ java.lang.String getLabelsOrDefault( * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); + + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoAccept field is set. + */ + boolean hasAutoAccept(); + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoAccept. + */ + com.google.cloud.networkconnectivity.v1.AutoAccept getAutoAccept(); + /** + * + * + *
          +   * Optional. The auto-accept setting for this group.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.AutoAcceptOrBuilder getAutoAcceptOrBuilder(); + + /** + * + * + *
          +   * Output only. The name of the route table that corresponds to this group.
          +   * They use the following form:
          +   * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +   * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The routeTable. + */ + java.lang.String getRouteTable(); + /** + * + * + *
          +   * Output only. The name of the route table that corresponds to this group.
          +   * They use the following form:
          +   * `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
          +   * 
          + * + * string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for routeTable. + */ + com.google.protobuf.ByteString getRouteTableBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index 8faaf6e0bd64..242d780fa21c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java @@ -50,6 +50,8 @@ private Hub() { state_ = 0; routingVpcs_ = java.util.Collections.emptyList(); routeTables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + policyMode_ = 0; + presetTopology_ = 0; } @java.lang.Override @@ -733,6 +735,139 @@ public com.google.cloud.networkconnectivity.v1.SpokeSummaryOrBuilder getSpokeSum : spokeSummary_; } + public static final int POLICY_MODE_FIELD_NUMBER = 13; + private int policyMode_ = 0; + /** + * + * + *
          +   * Optional. The policy mode of this hub. This field can be either
          +   * PRESET or CUSTOM. If unspecified, the
          +   * policy_mode defaults to PRESET.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policyMode. + */ + @java.lang.Override + public int getPolicyModeValue() { + return policyMode_; + } + /** + * + * + *
          +   * Optional. The policy mode of this hub. This field can be either
          +   * PRESET or CUSTOM. If unspecified, the
          +   * policy_mode defaults to PRESET.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policyMode. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyMode getPolicyMode() { + com.google.cloud.networkconnectivity.v1.PolicyMode result = + com.google.cloud.networkconnectivity.v1.PolicyMode.forNumber(policyMode_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyMode.UNRECOGNIZED + : result; + } + + public static final int PRESET_TOPOLOGY_FIELD_NUMBER = 14; + private int presetTopology_ = 0; + /** + * + * + *
          +   * Optional. The topology implemented in this hub. Currently, this field is
          +   * only used when policy_mode = PRESET. The available preset topologies are
          +   * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +   * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +   * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for presetTopology. + */ + @java.lang.Override + public int getPresetTopologyValue() { + return presetTopology_; + } + /** + * + * + *
          +   * Optional. The topology implemented in this hub. Currently, this field is
          +   * only used when policy_mode = PRESET. The available preset topologies are
          +   * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +   * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +   * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The presetTopology. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PresetTopology getPresetTopology() { + com.google.cloud.networkconnectivity.v1.PresetTopology result = + com.google.cloud.networkconnectivity.v1.PresetTopology.forNumber(presetTopology_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PresetTopology.UNRECOGNIZED + : result; + } + + public static final int EXPORT_PSC_FIELD_NUMBER = 15; + private boolean exportPsc_ = false; + /** + * + * + *
          +   * Optional. Whether Private Service Connect transitivity is enabled for the
          +   * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +   * the hub are made accessible to other VPC spokes attached to the hub.
          +   * The default value is false.
          +   * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the exportPsc field is set. + */ + @java.lang.Override + public boolean hasExportPsc() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Optional. Whether Private Service Connect transitivity is enabled for the
          +   * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +   * the hub are made accessible to other VPC spokes attached to the hub.
          +   * The default value is false.
          +   * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportPsc. + */ + @java.lang.Override + public boolean getExportPsc() { + return exportPsc_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -776,6 +911,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(12, getSpokeSummary()); } + if (policyMode_ + != com.google.cloud.networkconnectivity.v1.PolicyMode.POLICY_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, policyMode_); + } + if (presetTopology_ + != com.google.cloud.networkconnectivity.v1.PresetTopology.PRESET_TOPOLOGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, presetTopology_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(15, exportPsc_); + } getUnknownFields().writeTo(output); } @@ -827,6 +974,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSpokeSummary()); } + if (policyMode_ + != com.google.cloud.networkconnectivity.v1.PolicyMode.POLICY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, policyMode_); + } + if (presetTopology_ + != com.google.cloud.networkconnectivity.v1.PresetTopology.PRESET_TOPOLOGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, presetTopology_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, exportPsc_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -862,6 +1021,12 @@ public boolean equals(final java.lang.Object obj) { if (hasSpokeSummary()) { if (!getSpokeSummary().equals(other.getSpokeSummary())) return false; } + if (policyMode_ != other.policyMode_) return false; + if (presetTopology_ != other.presetTopology_) return false; + if (hasExportPsc() != other.hasExportPsc()) return false; + if (hasExportPsc()) { + if (getExportPsc() != other.getExportPsc()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -905,6 +1070,14 @@ public int hashCode() { hash = (37 * hash) + SPOKE_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSpokeSummary().hashCode(); } + hash = (37 * hash) + POLICY_MODE_FIELD_NUMBER; + hash = (53 * hash) + policyMode_; + hash = (37 * hash) + PRESET_TOPOLOGY_FIELD_NUMBER; + hash = (53 * hash) + presetTopology_; + if (hasExportPsc()) { + hash = (37 * hash) + EXPORT_PSC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExportPsc()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1111,6 +1284,9 @@ public Builder clear() { spokeSummaryBuilder_.dispose(); spokeSummaryBuilder_ = null; } + policyMode_ = 0; + presetTopology_ = 0; + exportPsc_ = false; return this; } @@ -1194,6 +1370,16 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { spokeSummaryBuilder_ == null ? spokeSummary_ : spokeSummaryBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.policyMode_ = policyMode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.presetTopology_ = presetTopology_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.exportPsc_ = exportPsc_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1308,6 +1494,15 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { if (other.hasSpokeSummary()) { mergeSpokeSummary(other.getSpokeSummary()); } + if (other.policyMode_ != 0) { + setPolicyModeValue(other.getPolicyModeValue()); + } + if (other.presetTopology_ != 0) { + setPresetTopologyValue(other.getPresetTopologyValue()); + } + if (other.hasExportPsc()) { + setExportPsc(other.getExportPsc()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1409,6 +1604,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 98 + case 104: + { + policyMode_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 104 + case 112: + { + presetTopology_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 120: + { + exportPsc_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3322,6 +3535,320 @@ public com.google.cloud.networkconnectivity.v1.SpokeSummary.Builder getSpokeSumm return spokeSummaryBuilder_; } + private int policyMode_ = 0; + /** + * + * + *
          +     * Optional. The policy mode of this hub. This field can be either
          +     * PRESET or CUSTOM. If unspecified, the
          +     * policy_mode defaults to PRESET.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policyMode. + */ + @java.lang.Override + public int getPolicyModeValue() { + return policyMode_; + } + /** + * + * + *
          +     * Optional. The policy mode of this hub. This field can be either
          +     * PRESET or CUSTOM. If unspecified, the
          +     * policy_mode defaults to PRESET.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for policyMode to set. + * @return This builder for chaining. + */ + public Builder setPolicyModeValue(int value) { + policyMode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The policy mode of this hub. This field can be either
          +     * PRESET or CUSTOM. If unspecified, the
          +     * policy_mode defaults to PRESET.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policyMode. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyMode getPolicyMode() { + com.google.cloud.networkconnectivity.v1.PolicyMode result = + com.google.cloud.networkconnectivity.v1.PolicyMode.forNumber(policyMode_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyMode.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Optional. The policy mode of this hub. This field can be either
          +     * PRESET or CUSTOM. If unspecified, the
          +     * policy_mode defaults to PRESET.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The policyMode to set. + * @return This builder for chaining. + */ + public Builder setPolicyMode(com.google.cloud.networkconnectivity.v1.PolicyMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + policyMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The policy mode of this hub. This field can be either
          +     * PRESET or CUSTOM. If unspecified, the
          +     * policy_mode defaults to PRESET.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyMode() { + bitField0_ = (bitField0_ & ~0x00000400); + policyMode_ = 0; + onChanged(); + return this; + } + + private int presetTopology_ = 0; + /** + * + * + *
          +     * Optional. The topology implemented in this hub. Currently, this field is
          +     * only used when policy_mode = PRESET. The available preset topologies are
          +     * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +     * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +     * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for presetTopology. + */ + @java.lang.Override + public int getPresetTopologyValue() { + return presetTopology_; + } + /** + * + * + *
          +     * Optional. The topology implemented in this hub. Currently, this field is
          +     * only used when policy_mode = PRESET. The available preset topologies are
          +     * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +     * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +     * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for presetTopology to set. + * @return This builder for chaining. + */ + public Builder setPresetTopologyValue(int value) { + presetTopology_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The topology implemented in this hub. Currently, this field is
          +     * only used when policy_mode = PRESET. The available preset topologies are
          +     * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +     * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +     * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The presetTopology. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PresetTopology getPresetTopology() { + com.google.cloud.networkconnectivity.v1.PresetTopology result = + com.google.cloud.networkconnectivity.v1.PresetTopology.forNumber(presetTopology_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PresetTopology.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Optional. The topology implemented in this hub. Currently, this field is
          +     * only used when policy_mode = PRESET. The available preset topologies are
          +     * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +     * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +     * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The presetTopology to set. + * @return This builder for chaining. + */ + public Builder setPresetTopology(com.google.cloud.networkconnectivity.v1.PresetTopology value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + presetTopology_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The topology implemented in this hub. Currently, this field is
          +     * only used when policy_mode = PRESET. The available preset topologies are
          +     * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +     * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +     * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPresetTopology() { + bitField0_ = (bitField0_ & ~0x00000800); + presetTopology_ = 0; + onChanged(); + return this; + } + + private boolean exportPsc_; + /** + * + * + *
          +     * Optional. Whether Private Service Connect transitivity is enabled for the
          +     * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +     * the hub are made accessible to other VPC spokes attached to the hub.
          +     * The default value is false.
          +     * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the exportPsc field is set. + */ + @java.lang.Override + public boolean hasExportPsc() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
          +     * Optional. Whether Private Service Connect transitivity is enabled for the
          +     * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +     * the hub are made accessible to other VPC spokes attached to the hub.
          +     * The default value is false.
          +     * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportPsc. + */ + @java.lang.Override + public boolean getExportPsc() { + return exportPsc_; + } + /** + * + * + *
          +     * Optional. Whether Private Service Connect transitivity is enabled for the
          +     * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +     * the hub are made accessible to other VPC spokes attached to the hub.
          +     * The default value is false.
          +     * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The exportPsc to set. + * @return This builder for chaining. + */ + public Builder setExportPsc(boolean value) { + + exportPsc_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Whether Private Service Connect transitivity is enabled for the
          +     * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +     * the hub are made accessible to other VPC spokes attached to the hub.
          +     * The default value is false.
          +     * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExportPsc() { + bitField0_ = (bitField0_ & ~0x00001000); + exportPsc_ = 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-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java index 1bf647016747..826b1f55454d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java @@ -470,4 +470,105 @@ java.lang.String getLabelsOrDefault( * */ com.google.cloud.networkconnectivity.v1.SpokeSummaryOrBuilder getSpokeSummaryOrBuilder(); + + /** + * + * + *
          +   * Optional. The policy mode of this hub. This field can be either
          +   * PRESET or CUSTOM. If unspecified, the
          +   * policy_mode defaults to PRESET.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for policyMode. + */ + int getPolicyModeValue(); + /** + * + * + *
          +   * Optional. The policy mode of this hub. This field can be either
          +   * PRESET or CUSTOM. If unspecified, the
          +   * policy_mode defaults to PRESET.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The policyMode. + */ + com.google.cloud.networkconnectivity.v1.PolicyMode getPolicyMode(); + + /** + * + * + *
          +   * Optional. The topology implemented in this hub. Currently, this field is
          +   * only used when policy_mode = PRESET. The available preset topologies are
          +   * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +   * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +   * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for presetTopology. + */ + int getPresetTopologyValue(); + /** + * + * + *
          +   * Optional. The topology implemented in this hub. Currently, this field is
          +   * only used when policy_mode = PRESET. The available preset topologies are
          +   * MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET,
          +   * the preset_topology defaults to MESH. When policy_mode = CUSTOM,
          +   * the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The presetTopology. + */ + com.google.cloud.networkconnectivity.v1.PresetTopology getPresetTopology(); + + /** + * + * + *
          +   * Optional. Whether Private Service Connect transitivity is enabled for the
          +   * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +   * the hub are made accessible to other VPC spokes attached to the hub.
          +   * The default value is false.
          +   * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the exportPsc field is set. + */ + boolean hasExportPsc(); + /** + * + * + *
          +   * Optional. Whether Private Service Connect transitivity is enabled for the
          +   * hub. If true, Private Service Connect endpoints in VPC spokes attached to
          +   * the hub are made accessible to other VPC spokes attached to the hub.
          +   * The default value is false.
          +   * 
          + * + * optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportPsc. + */ + boolean getExportPsc(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java index 0bf42e68f6da..20a4590c348b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_Group_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_Group_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_AutoAccept_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_AutoAccept_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,6 +112,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_ListHubSpokesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_ListHubSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -196,6 +216,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_LinkedVpcNetwork_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_LinkedVpcNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -208,6 +232,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_NextHopVpcNetwork_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_NextHopVpcNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkconnectivity_v1_SpokeSummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -228,6 +264,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkconnectivity_v1_GetGroupRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkconnectivity_v1_GetGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -241,368 +281,460 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "b.proto\022#google.cloud.networkconnectivit" + "y.v1\032\034google/api/annotations.proto\032\027goog" + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "0google/cloud/networkconnectivity/v1/com" - + "mon.proto\032#google/longrunning/operations" - + ".proto\032\033google/protobuf/empty.proto\032 goo" - + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\364\004\n\003Hub\022\021\n\004name\030\001" - + " \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n" - + "\006labels\030\004 \003(\01324.google.cloud.networkconn" - + "ectivity.v1.Hub.LabelsEntry\022\023\n\013descripti" - + "on\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005stat" - + "e\030\t \001(\0162*.google.cloud.networkconnectivi" - + "ty.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132/" - + ".google.cloud.networkconnectivity.v1.Rou" - + "tingVPC\022\031\n\014route_tables\030\013 \003(\tB\003\340A\003\022M\n\rsp" - + "oke_summary\030\014 \001(\01321.google.cloud.network" - + "connectivity.v1.SpokeSummaryB\003\340A\003\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":[\352AX\n&networkconnectivity.googleapis.co" - + "m/Hub\022.projects/{project}/locations/glob" - + "al/hubs/{hub}\"\177\n\nRoutingVPC\0220\n\003uri\030\001 \001(\t" - + "B#\372A \n\036compute.googleapis.com/Network\022?\n" - + "2required_for_new_site_to_site_data_tran" - + "sfer_spokes\030\002 \001(\010B\003\340A\003\"\310\n\n\005Spoke\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "F\n\006labels\030\004 \003(\01326.google.cloud.networkco" - + "nnectivity.v1.Spoke.LabelsEntry\022\023\n\013descr" - + "iption\030\005 \001(\t\022;\n\003hub\030\006 \001(\tB.\340A\005\372A(\n&netwo" - + "rkconnectivity.googleapis.com/Hub\022?\n\005gro" - + "up\030\027 \001(\tB0\340A\001\372A*\n(networkconnectivity.go" - + "ogleapis.com/Group\022Q\n\022linked_vpn_tunnels" - + "\030\021 \001(\01325.google.cloud.networkconnectivit" - + "y.v1.LinkedVpnTunnels\022k\n\037linked_intercon" - + "nect_attachments\030\022 \001(\0132B.google.cloud.ne" - + "tworkconnectivity.v1.LinkedInterconnectA" - + "ttachments\022n\n!linked_router_appliance_in" - + "stances\030\023 \001(\0132C.google.cloud.networkconn" - + "ectivity.v1.LinkedRouterApplianceInstanc" - + "es\022V\n\022linked_vpc_network\030\024 \001(\01325.google." - + "cloud.networkconnectivity.v1.LinkedVpcNe" - + "tworkB\003\340A\001\022\026\n\tunique_id\030\013 \001(\tB\003\340A\003\022>\n\005st" - + "ate\030\017 \001(\0162*.google.cloud.networkconnecti" - + "vity.v1.StateB\003\340A\003\022L\n\007reasons\030\025 \003(\01326.go" - + "ogle.cloud.networkconnectivity.v1.Spoke." - + "StateReasonB\003\340A\003\022G\n\nspoke_type\030\026 \001(\0162..g" - + "oogle.cloud.networkconnectivity.v1.Spoke" - + "TypeB\003\340A\003\032\327\001\n\013StateReason\022I\n\004code\030\001 \001(\0162" - + ";.google.cloud.networkconnectivity.v1.Sp" - + "oke.StateReason.Code\022\017\n\007message\030\002 \001(\t\022\024\n" - + "\014user_details\030\003 \001(\t\"V\n\004Code\022\024\n\020CODE_UNSP" - + "ECIFIED\020\000\022\022\n\016PENDING_REVIEW\020\001\022\014\n\010REJECTE" - + "D\020\002\022\n\n\006PAUSED\020\003\022\n\n\006FAILED\020\004\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:e\352Ab\n" - + "(networkconnectivity.googleapis.com/Spok" - + "e\0226projects/{project}/locations/{locatio" - + "n}/spokes/{spoke}\"\354\003\n\nRouteTable\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "K\n\006labels\030\004 \003(\0132;.google.cloud.networkco" - + "nnectivity.v1.RouteTable.LabelsEntry\022\023\n\013" - + "description\030\005 \001(\t\022\020\n\003uid\030\006 \001(\tB\003\340A\003\022>\n\005s" - + "tate\030\007 \001(\0162*.google.cloud.networkconnect" - + "ivity.v1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:|\352Ay\n-network" - + "connectivity.googleapis.com/RouteTable\022H" - + "projects/{project}/locations/global/hubs" - + "/{hub}/routeTables/{route_table}\"\376\005\n\005Rou" - + "te\022\021\n\004name\030\003 \001(\tB\003\340A\005\0224\n\013create_time\030\004 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\025\n\rip_cidr_range\030\001 \001(\t\022A\n\004type" - + "\030\n \001(\0162..google.cloud.networkconnectivit" - + "y.v1.RouteTypeB\003\340A\003\022Y\n\024next_hop_vpc_netw" - + "ork\030\002 \001(\01326.google.cloud.networkconnecti" - + "vity.v1.NextHopVpcNetworkB\003\340A\005\022F\n\006labels" - + "\030\006 \003(\01326.google.cloud.networkconnectivit" - + "y.v1.Route.LabelsEntry\022\023\n\013description\030\007 " - + "\001(\t\022\020\n\003uid\030\010 \001(\tB\003\340A\003\022>\n\005state\030\t \001(\0162*.g" + + "havior.proto\032\033google/api/field_info.prot" + + "o\032\031google/api/resource.proto\0320google/clo" + + "ud/networkconnectivity/v1/common.proto\032#" + + "google/longrunning/operations.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\"\277\006\n\003Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224" + + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003" + + "(\01324.google.cloud.networkconnectivity.v1" + + ".Hub.LabelsEntry\022\023\n\013description\030\005 \001(\t\022\026\n" + + "\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005state\030\t \001(\0162*.g" + + "oogle.cloud.networkconnectivity.v1.State" + + "B\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132/.google.clo" + + "ud.networkconnectivity.v1.RoutingVPC\022\031\n\014" + + "route_tables\030\013 \003(\tB\003\340A\003\022M\n\rspoke_summary" + + "\030\014 \001(\01321.google.cloud.networkconnectivit" + + "y.v1.SpokeSummaryB\003\340A\003\022I\n\013policy_mode\030\r " + + "\001(\0162/.google.cloud.networkconnectivity.v" + + "1.PolicyModeB\003\340A\001\022Q\n\017preset_topology\030\016 \001" + + "(\01623.google.cloud.networkconnectivity.v1" + + ".PresetTopologyB\003\340A\001\022\034\n\nexport_psc\030\017 \001(\010" + + "B\003\340A\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:[\352AX\n&networkconnectiv" + + "ity.googleapis.com/Hub\022.projects/{projec" + + "t}/locations/global/hubs/{hub}B\r\n\013_expor" + + "t_psc\"\177\n\nRoutingVPC\0220\n\003uri\030\001 \001(\tB#\372A \n\036c" + + "ompute.googleapis.com/Network\022?\n2require" + + "d_for_new_site_to_site_data_transfer_spo" + + "kes\030\002 \001(\010B\003\340A\003\"\261\013\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022F\n\006label" + + "s\030\004 \003(\01326.google.cloud.networkconnectivi" + + "ty.v1.Spoke.LabelsEntry\022\023\n\013description\030\005" + + " \001(\t\022;\n\003hub\030\006 \001(\tB.\340A\005\372A(\n&networkconnec" + + "tivity.googleapis.com/Hub\022?\n\005group\030\027 \001(\t" + + "B0\340A\001\372A*\n(networkconnectivity.googleapis" + + ".com/Group\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325" + + ".google.cloud.networkconnectivity.v1.Lin" + + "kedVpnTunnels\022k\n\037linked_interconnect_att" + + "achments\030\022 \001(\0132B.google.cloud.networkcon" + + "nectivity.v1.LinkedInterconnectAttachmen" + + "ts\022n\n!linked_router_appliance_instances\030" + + "\023 \001(\0132C.google.cloud.networkconnectivity" + + ".v1.LinkedRouterApplianceInstances\022V\n\022li" + + "nked_vpc_network\030\024 \001(\01325.google.cloud.ne" + + "tworkconnectivity.v1.LinkedVpcNetworkB\003\340" + + "A\001\022g\n\033linked_producer_vpc_network\030\032 \001(\0132" + + "=.google.cloud.networkconnectivity.v1.Li" + + "nkedProducerVpcNetworkB\003\340A\001\022\026\n\tunique_id" + + "\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google.clou" + + "d.networkconnectivity.v1.StateB\003\340A\003\022L\n\007r" + + "easons\030\025 \003(\01326.google.cloud.networkconne" + + "ctivity.v1.Spoke.StateReasonB\003\340A\003\022G\n\nspo" + + "ke_type\030\026 \001(\0162..google.cloud.networkconn" + + "ectivity.v1.SpokeTypeB\003\340A\003\032\327\001\n\013StateReas" + + "on\022I\n\004code\030\001 \001(\0162;.google.cloud.networkc" + + "onnectivity.v1.Spoke.StateReason.Code\022\017\n" + + "\007message\030\002 \001(\t\022\024\n\014user_details\030\003 \001(\t\"V\n\004" + + "Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016PENDING_RE" + + "VIEW\020\001\022\014\n\010REJECTED\020\002\022\n\n\006PAUSED\020\003\022\n\n\006FAIL" + + "ED\020\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity.go" + + "ogleapis.com/Spoke\0226projects/{project}/l" + + "ocations/{location}/spokes/{spoke}\"\354\003\n\nR" + + "outeTable\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_t" + + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022K\n\006labels\030\004 \003(\0132;.googl" + + "e.cloud.networkconnectivity.v1.RouteTabl" + + "e.LabelsEntry\022\023\n\013description\030\005 \001(\t\022\020\n\003ui" + + "d\030\006 \001(\tB\003\340A\003\022>\n\005state\030\007 \001(\0162*.google.clo" + + "ud.networkconnectivity.v1.StateB\003\340A\003\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:|\352Ay\n-networkconnectivity.googleapis" + + ".com/RouteTable\022Hprojects/{project}/loca" + + "tions/global/hubs/{hub}/routeTables/{rou" + + "te_table}\"\327\010\n\005Route\022\021\n\004name\030\003 \001(\tB\003\340A\005\0224" + + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\025\n\rip_cidr_ra" + + "nge\030\001 \001(\t\022A\n\004type\030\n \001(\0162..google.cloud.n" + + "etworkconnectivity.v1.RouteTypeB\003\340A\003\022Y\n\024" + + "next_hop_vpc_network\030\002 \001(\01326.google.clou" + + "d.networkconnectivity.v1.NextHopVpcNetwo" + + "rkB\003\340A\005\022F\n\006labels\030\006 \003(\01326.google.cloud.n" + + "etworkconnectivity.v1.Route.LabelsEntry\022" + + "\023\n\013description\030\007 \001(\t\022\020\n\003uid\030\010 \001(\tB\003\340A\003\022>" + + "\n\005state\030\t \001(\0162*.google.cloud.networkconn" + + "ectivity.v1.StateB\003\340A\003\022?\n\005spoke\030\013 \001(\tB0\340" + + "A\005\372A*\n(networkconnectivity.googleapis.co" + + "m/Spoke\022\025\n\010location\030\014 \001(\tB\003\340A\003\022\025\n\010priori" + + "ty\030\r \001(\003B\003\340A\003\022W\n\023next_hop_vpn_tunnel\030\016 \001" + + "(\01325.google.cloud.networkconnectivity.v1" + + ".NextHopVPNTunnelB\003\340A\005\022t\n\"next_hop_route" + + "r_appliance_instance\030\017 \001(\0132C.google.clou" + + "d.networkconnectivity.v1.NextHopRouterAp" + + "plianceInstanceB\003\340A\005\022q\n next_hop_interco" + + "nnect_attachment\030\020 \001(\0132B.google.cloud.ne" + + "tworkconnectivity.v1.NextHopInterconnect" + + "AttachmentB\003\340A\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n+networkco" + + "nnectivity.googleapis.com/HubRoute\022Wproj" + + "ects/{project}/locations/global/hubs/{hu" + + "b}/routeTables/{route_table}/routes/{rou" + + "te}\"\301\004\n\005Group\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022K\n\006labels\030\004 \003(\01326.g" + + "oogle.cloud.networkconnectivity.v1.Group" + + ".LabelsEntryB\003\340A\001\022\030\n\013description\030\005 \001(\tB\003" + + "\340A\001\022\020\n\003uid\030\006 \001(\tB\003\340A\003\022>\n\005state\030\007 \001(\0162*.g" + "oogle.cloud.networkconnectivity.v1.State" - + "B\003\340A\003\022?\n\005spoke\030\013 \001(\tB0\340A\005\372A*\n(networkcon" - + "nectivity.googleapis.com/Spoke\022\025\n\010locati" - + "on\030\014 \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:\212\001\352A\206\001\n+networkconn" - + "ectivity.googleapis.com/HubRoute\022Wprojec" - + "ts/{project}/locations/global/hubs/{hub}" - + "/routeTables/{route_table}/routes/{route" - + "}\"\334\003\n\005Group\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022K\n\006labels\030\004 \003(\01326.goo" - + "gle.cloud.networkconnectivity.v1.Group.L" - + "abelsEntryB\003\340A\001\022\030\n\013description\030\005 \001(\tB\003\340A" - + "\001\022\020\n\003uid\030\006 \001(\tB\003\340A\003\022>\n\005state\030\007 \001(\0162*.goo" - + "gle.cloud.networkconnectivity.v1.StateB\003" - + "\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001:l\352Ai\n(networkconnectivity.goo" - + "gleapis.com/Group\022=projects/{project}/lo" - + "cations/global/hubs/{hub}/groups/{group}" - + "\"\225\001\n\017ListHubsRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\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\"x\n\020List" - + "HubsResponse\0226\n\004hubs\030\001 \003(\0132(.google.clou" - + "d.networkconnectivity.v1.Hub\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGe" - + "tHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&netwo" - + "rkconnectivity.googleapis.com/Hub\"\267\001\n\020Cr" - + "eateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" - + "locations.googleapis.com/Location\022\023\n\006hub" - + "_id\030\002 \001(\tB\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.clo" - + "ud.networkconnectivity.v1.HubB\003\340A\002\022\027\n\nre" - + "quest_id\030\004 \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest" - + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.clo" - + "ud.networkconnectivity.v1.HubB\003\340A\002\022\027\n\nre" - + "quest_id\030\003 \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022" - + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnectivi" - + "ty.googleapis.com/Hub\022\027\n\nrequest_id\030\002 \001(" - + "\tB\003\340A\001\"\313\002\n\024ListHubSpokesRequest\022<\n\004name\030" - + "\001 \001(\tB.\340A\002\372A(\n&networkconnectivity.googl" - + "eapis.com/Hub\022\027\n\017spoke_locations\030\002 \003(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\016\n" - + "\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\022Q\n\004view\030" - + "\007 \001(\0162C.google.cloud.networkconnectivity" - + ".v1.ListHubSpokesRequest.SpokeView\"@\n\tSp" - + "okeView\022\032\n\026SPOKE_VIEW_UNSPECIFIED\020\000\022\t\n\005B" - + "ASIC\020\001\022\014\n\010DETAILED\020\002\"\201\001\n\025ListHubSpokesRe" - + "sponse\022:\n\006spokes\030\001 \003(\0132*.google.cloud.ne" - + "tworkconnectivity.v1.Spoke\022\027\n\017next_page_" - + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\227\001\n\021Lis" - + "tSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" - + "locations.googleapis.com/Location\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" - + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSpokes" - + "Response\022:\n\006spokes\030\001 \003(\0132*.google.cloud." - + "networkconnectivity.v1.Spoke\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017Ge" - + "tSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(net" - + "workconnectivity.googleapis.com/Spoke\"\277\001" - + "\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(\0132*." - + "google.cloud.networkconnectivity.v1.Spok" - + "eB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022Upda" - + "teSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\001\022>\n\005spoke\030\002 " - + "\001(\0132*.google.cloud.networkconnectivity.v" - + "1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"m\n" - + "\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A" - + "*\n(networkconnectivity.googleapis.com/Sp" - + "oke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\263\001\n\025AcceptH" - + "ubSpokeRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&ne" - + "tworkconnectivity.googleapis.com/Hub\022C\n\t" - + "spoke_uri\030\002 \001(\tB0\340A\002\372A*\n(networkconnecti" - + "vity.googleapis.com/Spoke\022\027\n\nrequest_id\030" - + "\003 \001(\tB\003\340A\001\"S\n\026AcceptHubSpokeResponse\0229\n\005" - + "spoke\030\001 \001(\0132*.google.cloud.networkconnec" - + "tivity.v1.Spoke\"\311\001\n\025RejectHubSpokeReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" - + "vity.googleapis.com/Hub\022C\n\tspoke_uri\030\002 \001" - + "(\tB0\340A\002\372A*\n(networkconnectivity.googleap" - + "is.com/Spoke\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\024\n" - + "\007details\030\004 \001(\tB\003\340A\001\"S\n\026RejectHubSpokeRes" - + "ponse\0229\n\005spoke\030\001 \001(\0132*.google.cloud.netw" - + "orkconnectivity.v1.Spoke\"[\n\024GetRouteTabl" - + "eRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-networkc" - + "onnectivity.googleapis.com/RouteTable\"T\n" - + "\017GetRouteRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+" - + "networkconnectivity.googleapis.com/HubRo" - + "ute\"\243\001\n\021ListRoutesRequest\022E\n\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\n-networkconnectivity.googleapi" - + "s.com/RouteTable\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" - + "_by\030\005 \001(\t\"~\n\022ListRoutesResponse\022:\n\006route" - + "s\030\001 \003(\0132*.google.cloud.networkconnectivi" - + "ty.v1.Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\241\001\n\026ListRouteTablesReq" + + "B\003\340A\003\022I\n\013auto_accept\030\010 \001(\0132/.google.clou" + + "d.networkconnectivity.v1.AutoAcceptB\003\340A\001" + + "\022\030\n\013route_table\030\t \001(\tB\003\340A\003\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:l\352Ai\n(" + + "networkconnectivity.googleapis.com/Group" + + "\022=projects/{project}/locations/global/hu" + + "bs/{hub}/groups/{group}\"*\n\nAutoAccept\022\034\n" + + "\024auto_accept_projects\030\001 \003(\t\"\225\001\n\017ListHubs" + + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" + + "ns.googleapis.com/Location\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\"x\n\020ListHubsResponse\022" + + "6\n\004hubs\030\001 \003(\0132(.google.cloud.networkconn" + + "ectivity.v1.Hub\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubRequest\022<" + + "\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnectivit" + + "y.googleapis.com/Hub\"\267\001\n\020CreateHubReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB\003\340A" + + "\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.networkcon" + + "nectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + + "\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update_ma" + + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.networkcon" + + "nectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" + + "\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 \001(\t" + + "B.\340A\002\372A(\n&networkconnectivity.googleapis" + + ".com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\313\002\n\024Li" + + "stHubSpokesRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" + + "\n&networkconnectivity.googleapis.com/Hub" + + "\022\027\n\017spoke_locations\030\002 \003(\t\022\021\n\tpage_size\030\003" + + " \001(\005\022\022\n\npage_token\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t" + + "\022\020\n\010order_by\030\006 \001(\t\022Q\n\004view\030\007 \001(\0162C.googl" + + "e.cloud.networkconnectivity.v1.ListHubSp" + + "okesRequest.SpokeView\"@\n\tSpokeView\022\032\n\026SP" + + "OKE_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\014\n\010DET" + + "AILED\020\002\"\201\001\n\025ListHubSpokesResponse\022:\n\006spo" + + "kes\030\001 \003(\0132*.google.cloud.networkconnecti" + + "vity.v1.Spoke\022\027\n\017next_page_token\030\002 \001(\t\022\023" + + "\n\013unreachable\030\003 \003(\t\"\311\001\n\025QueryHubStatusRe" + + "quest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconn" + + "ectivity.googleapis.com/Hub\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" + + "\022\025\n\010group_by\030\006 \001(\tB\003\340A\001\"\202\001\n\026QueryHubStat" + + "usResponse\022O\n\022hub_status_entries\030\001 \003(\01323" + + ".google.cloud.networkconnectivity.v1.Hub" + + "StatusEntry\022\027\n\017next_page_token\030\002 \001(\t\"\214\001\n" + + "\016HubStatusEntry\022\r\n\005count\030\001 \001(\005\022\020\n\010group_" + + "by\030\002 \001(\t\022Y\n\026psc_propagation_status\030\003 \001(\013" + + "29.google.cloud.networkconnectivity.v1.P" + + "scPropagationStatus\"\322\003\n\024PscPropagationSt" + + "atus\022\024\n\014source_spoke\030\001 \001(\t\022\024\n\014source_gro" + + "up\030\002 \001(\t\022\036\n\026source_forwarding_rule\030\003 \001(\t" + + "\022\024\n\014target_spoke\030\004 \001(\t\022\024\n\014target_group\030\005" + + " \001(\t\022L\n\004code\030\006 \001(\0162>.google.cloud.networ" + + "kconnectivity.v1.PscPropagationStatus.Co" + + "de\022\017\n\007message\030\007 \001(\t\"\342\001\n\004Code\022\024\n\020CODE_UNS" + + "PECIFIED\020\000\022\t\n\005READY\020\001\022\017\n\013PROPAGATING\020\002\0227" + + "\n3ERROR_PRODUCER_PROPAGATED_CONNECTION_L" + + "IMIT_EXCEEDED\020\003\022)\n%ERROR_PRODUCER_NAT_IP" + + "_SPACE_EXHAUSTED\020\004\022!\n\035ERROR_PRODUCER_QUO" + + "TA_EXCEEDED\020\005\022!\n\035ERROR_CONSUMER_QUOTA_EX" + + "CEEDED\020\006\"\227\001\n\021ListSpokesRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001" + + "(\t\"~\n\022ListSpokesResponse\022:\n\006spokes\030\001 \003(\013" + + "2*.google.cloud.networkconnectivity.v1.S" + + "poke\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"Q\n\017GetSpokeRequest\022>\n\004name\030\001 " + + "\001(\tB0\340A\002\372A*\n(networkconnectivity.googlea" + + "pis.com/Spoke\"\277\001\n\022CreateSpokeRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>" + + "\n\005spoke\030\003 \001(\0132*.google.cloud.networkconn" + + "ectivity.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001" + + "(\tB\003\340A\001\"\243\001\n\022UpdateSpokeRequest\0224\n\013update" + + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\022>\n\005spoke\030\002 \001(\0132*.google.cloud.netwo" + + "rkconnectivity.v1.SpokeB\003\340A\002\022\027\n\nrequest_" + + "id\030\003 \001(\tB\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004n" + + "ame\030\001 \001(\tB0\340A\002\372A*\n(networkconnectivity.g" + + "oogleapis.com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB" + + "\003\340A\001\"\263\001\n\025AcceptHubSpokeRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&networkconnectivity.google" + + "apis.com/Hub\022C\n\tspoke_uri\030\002 \001(\tB0\340A\002\372A*\n" + + "(networkconnectivity.googleapis.com/Spok" + + "e\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"S\n\026AcceptHubS" + + "pokeResponse\0229\n\005spoke\030\001 \001(\0132*.google.clo" + + "ud.networkconnectivity.v1.Spoke\"\311\001\n\025Reje" + + "ctHubSpokeRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&networkconnectivity.googleapis.com/Hub\022" + + "C\n\tspoke_uri\030\002 \001(\tB0\340A\002\372A*\n(networkconne" + + "ctivity.googleapis.com/Spoke\022\027\n\nrequest_" + + "id\030\003 \001(\tB\003\340A\001\022\024\n\007details\030\004 \001(\tB\003\340A\001\"S\n\026R" + + "ejectHubSpokeResponse\0229\n\005spoke\030\001 \001(\0132*.g" + + "oogle.cloud.networkconnectivity.v1.Spoke" + + "\"[\n\024GetRouteTableRequest\022C\n\004name\030\001 \001(\tB5" + + "\340A\002\372A/\n-networkconnectivity.googleapis.c" + + "om/RouteTable\"T\n\017GetRouteRequest\022A\n\004name" + + "\030\001 \001(\tB3\340A\002\372A-\n+networkconnectivity.goog" + + "leapis.com/HubRoute\"\243\001\n\021ListRoutesReques" + + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-networkconnec" + + "tivity.googleapis.com/RouteTable\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListRoutesR" + + "esponse\022:\n\006routes\030\001 \003(\0132*.google.cloud.n" + + "etworkconnectivity.v1.Route\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\241\001\n\026Li" + + "stRouteTablesRequest\022>\n\006parent\030\001 \001(\tB.\340A" + + "\002\372A(\n&networkconnectivity.googleapis.com" + + "/Hub\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\"\216\001" + + "\n\027ListRouteTablesResponse\022E\n\014route_table" + + "s\030\001 \003(\0132/.google.cloud.networkconnectivi" + + "ty.v1.RouteTable\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"\234\001\n\021ListGroupsReq" + "uest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&networkcon" + "nectivity.googleapis.com/Hub\022\021\n\tpage_siz" + "e\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\"\216\001\n\027ListRouteTable" - + "sResponse\022E\n\014route_tables\030\001 \003(\0132/.google" - + ".cloud.networkconnectivity.v1.RouteTable" - + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" - + "\030\003 \003(\t\"\234\001\n\021ListGroupsRequest\022>\n\006parent\030\001" - + " \001(\tB.\340A\002\372A(\n&networkconnectivity.google" - + "apis.com/Hub\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\022ListGroupsResponse\022:\n\006groups\030\001 " - + "\003(\0132*.google.cloud.networkconnectivity.v" - + "1.Group\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"\250\001\n\020LinkedVpnTunnels\0223\n\004ur" - + "is\030\001 \003(\tB%\372A\"\n compute.googleapis.com/Vp" - + "nTunnel\022\"\n\032site_to_site_data_transfer\030\002 " - + "\001(\010\022;\n\013vpc_network\030\003 \001(\tB&\340A\003\372A \n\036comput" - + "e.googleapis.com/Network\"\302\001\n\035LinkedInter" - + "connectAttachments\022@\n\004uris\030\001 \003(\tB2\372A/\n-c" - + "ompute.googleapis.com/InterconnectAttach" - + "ment\022\"\n\032site_to_site_data_transfer\030\002 \001(\010" - + "\022;\n\013vpc_network\030\003 \001(\tB&\340A\003\372A \n\036compute.g" - + "oogleapis.com/Network\"\322\001\n\036LinkedRouterAp" - + "plianceInstances\022O\n\tinstances\030\001 \003(\0132<.go" - + "ogle.cloud.networkconnectivity.v1.Router" - + "ApplianceInstance\022\"\n\032site_to_site_data_t" - + "ransfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\tB&\340A\003\372" - + "A \n\036compute.googleapis.com/Network\"k\n\020Li" - + "nkedVpcNetwork\0223\n\003uri\030\001 \001(\tB&\340A\002\372A \n\036com" - + "pute.googleapis.com/Network\022\"\n\025exclude_e" - + "xport_ranges\030\002 \003(\tB\003\340A\001\"l\n\027RouterApplian" - + "ceInstance\022=\n\017virtual_machine\030\001 \001(\tB$\372A!" - + "\n\037compute.googleapis.com/Instance\022\022\n\nip_" - + "address\030\003 \001(\t\"c\n\020LocationMetadata\022O\n\021loc" - + "ation_features\030\001 \003(\01624.google.cloud.netw" - + "orkconnectivity.v1.LocationFeature\"E\n\021Ne" - + "xtHopVpcNetwork\0220\n\003uri\030\001 \001(\tB#\372A \n\036compu" - + "te.googleapis.com/Network\"\246\005\n\014SpokeSumma" - + "ry\022`\n\021spoke_type_counts\030\001 \003(\0132@.google.c" - + "loud.networkconnectivity.v1.SpokeSummary" - + ".SpokeTypeCountB\003\340A\003\022b\n\022spoke_state_coun" - + "ts\030\002 \003(\0132A.google.cloud.networkconnectiv" - + "ity.v1.SpokeSummary.SpokeStateCountB\003\340A\003" - + "\022o\n\031spoke_state_reason_counts\030\003 \003(\0132G.go" - + "ogle.cloud.networkconnectivity.v1.SpokeS" - + "ummary.SpokeStateReasonCountB\003\340A\003\032m\n\016Spo" - + "keTypeCount\022G\n\nspoke_type\030\001 \001(\0162..google" - + ".cloud.networkconnectivity.v1.SpokeTypeB" - + "\003\340A\003\022\022\n\005count\030\002 \001(\003B\003\340A\003\032e\n\017SpokeStateCo" - + "unt\022>\n\005state\030\001 \001(\0162*.google.cloud.networ" - + "kconnectivity.v1.StateB\003\340A\003\022\022\n\005count\030\002 \001" - + "(\003B\003\340A\003\032\210\001\n\025SpokeStateReasonCount\022[\n\021sta" - + "te_reason_code\030\001 \001(\0162;.google.cloud.netw" - + "orkconnectivity.v1.Spoke.StateReason.Cod" - + "eB\003\340A\003\022\022\n\005count\030\002 \001(\003B\003\340A\003\"Q\n\017GetGroupRe" - + "quest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkconn" - + "ectivity.googleapis.com/Group*f\n\017Locatio" - + "nFeature\022 \n\034LOCATION_FEATURE_UNSPECIFIED" - + "\020\000\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_" - + "SITE_SPOKES\020\002*Y\n\tRouteType\022\032\n\026ROUTE_TYPE" - + "_UNSPECIFIED\020\000\022\026\n\022VPC_PRIMARY_SUBNET\020\001\022\030" - + "\n\024VPC_SECONDARY_SUBNET\020\002*\216\001\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIV" - + "E\020\002\022\014\n\010DELETING\020\003\022\r\n\tACCEPTING\020\010\022\r\n\tREJE" - + "CTING\020\t\022\014\n\010UPDATING\020\006\022\014\n\010INACTIVE\020\007\022\014\n\010O" - + "BSOLETE\020\n*{\n\tSpokeType\022\032\n\026SPOKE_TYPE_UNS" - + "PECIFIED\020\000\022\016\n\nVPN_TUNNEL\020\001\022\033\n\027INTERCONNE" - + "CT_ATTACHMENT\020\002\022\024\n\020ROUTER_APPLIANCE\020\003\022\017\n" - + "\013VPC_NETWORK\020\0042\230\037\n\nHubService\022\267\001\n\010ListHu" - + "bs\0224.google.cloud.networkconnectivity.v1" - + ".ListHubsRequest\0325.google.cloud.networkc" - + "onnectivity.v1.ListHubsResponse\">\332A\006pare" - + "nt\202\323\344\223\002/\022-/v1/{parent=projects/*/locatio" - + "ns/global}/hubs\022\244\001\n\006GetHub\0222.google.clou" - + "d.networkconnectivity.v1.GetHubRequest\032(" - + ".google.cloud.networkconnectivity.v1.Hub" - + "\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/lo" - + "cations/global/hubs/*}\022\314\001\n\tCreateHub\0225.g" - + "oogle.cloud.networkconnectivity.v1.Creat" - + "eHubRequest\032\035.google.longrunning.Operati" - + "on\"i\312A\030\n\003Hub\022\021OperationMetadata\332A\021parent" - + ",hub,hub_id\202\323\344\223\0024\"-/v1/{parent=projects/" - + "*/locations/global}/hubs:\003hub\022\316\001\n\tUpdate" - + "Hub\0225.google.cloud.networkconnectivity.v" - + "1.UpdateHubRequest\032\035.google.longrunning." - + "Operation\"k\312A\030\n\003Hub\022\021OperationMetadata\332A" - + "\017hub,update_mask\202\323\344\223\002821/v1/{hub.name=pr" - + "ojects/*/locations/global/hubs/*}:\003hub\022\314" - + "\001\n\tDeleteHub\0225.google.cloud.networkconne" - + "ctivity.v1.DeleteHubRequest\032\035.google.lon" - + "grunning.Operation\"i\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-" - + "/v1/{name=projects/*/locations/global/hu" - + "bs/*}\022\317\001\n\rListHubSpokes\0229.google.cloud.n" - + "etworkconnectivity.v1.ListHubSpokesReque" - + "st\032:.google.cloud.networkconnectivity.v1" - + ".ListHubSpokesResponse\"G\332A\004name\202\323\344\223\002:\0228/" - + "v1/{name=projects/*/locations/global/hub" - + "s/*}:listSpokes\022\272\001\n\nListSpokes\0226.google." + + "\001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListGroupsRespo" + + "nse\022:\n\006groups\030\001 \003(\0132*.google.cloud.netwo" + + "rkconnectivity.v1.Group\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\314\001\n\020Linked" + + "VpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n compute.g" + + "oogleapis.com/VpnTunnel\022\"\n\032site_to_site_" + + "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" + + "B&\340A\003\372A \n\036compute.googleapis.com/Network" + + "\022\"\n\025include_import_ranges\030\005 \003(\tB\003\340A\001\"\346\001\n" + + "\035LinkedInterconnectAttachments\022@\n\004uris\030\001" + + " \003(\tB2\372A/\n-compute.googleapis.com/Interc" + + "onnectAttachment\022\"\n\032site_to_site_data_tr" + + "ansfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\tB&\340A\003\372A" + + " \n\036compute.googleapis.com/Network\022\"\n\025inc" + + "lude_import_ranges\030\005 \003(\tB\003\340A\001\"\366\001\n\036Linked" + + "RouterApplianceInstances\022O\n\tinstances\030\001 " + + "\003(\0132<.google.cloud.networkconnectivity.v" + + "1.RouterApplianceInstance\022\"\n\032site_to_sit" + + "e_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001" + + "(\tB&\340A\003\372A \n\036compute.googleapis.com/Netwo" + + "rk\022\"\n\025include_import_ranges\030\005 \003(\tB\003\340A\001\"\336" + + "\001\n\020LinkedVpcNetwork\0223\n\003uri\030\001 \001(\tB&\340A\002\372A " + + "\n\036compute.googleapis.com/Network\022\"\n\025excl" + + "ude_export_ranges\030\002 \003(\tB\003\340A\001\022\"\n\025include_" + + "export_ranges\030\003 \003(\tB\003\340A\001\022M\n\023producer_vpc" + + "_spokes\030\004 \003(\tB0\340A\003\372A*\n(networkconnectivi" + + "ty.googleapis.com/Spoke\"\311\002\n\030LinkedProduc" + + "erVpcNetwork\0227\n\007network\030\001 \001(\tB&\340A\005\372A \n\036c" + + "ompute.googleapis.com/Network\022T\n\032service" + + "_consumer_vpc_spoke\030\006 \001(\tB0\340A\003\372A*\n(netwo" + + "rkconnectivity.googleapis.com/Spoke\022\024\n\007p" + + "eering\030\002 \001(\tB\003\340A\005\022@\n\020producer_network\030\005 " + + "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" + + "ork\022\"\n\025exclude_export_ranges\030\003 \003(\tB\003\340A\001\022" + + "\"\n\025include_export_ranges\030\004 \003(\tB\003\340A\001\"l\n\027R" + + "outerApplianceInstance\022=\n\017virtual_machin" + + "e\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/Ins" + + "tance\022\022\n\nip_address\030\003 \001(\t\"c\n\020LocationMet" + + "adata\022O\n\021location_features\030\001 \003(\01624.googl" + + "e.cloud.networkconnectivity.v1.LocationF" + + "eature\"E\n\021NextHopVpcNetwork\0220\n\003uri\030\001 \001(\t" + + "B#\372A \n\036compute.googleapis.com/Network\"\244\001" + + "\n\020NextHopVPNTunnel\0222\n\003uri\030\001 \001(\tB%\372A\"\n co" + + "mpute.googleapis.com/VpnTunnel\0228\n\013vpc_ne" + + "twork\030\002 \001(\tB#\372A \n\036compute.googleapis.com" + + "/Network\022\"\n\032site_to_site_data_transfer\030\003" + + " \001(\010\"\261\001\n\036NextHopRouterApplianceInstance\022" + + "1\n\003uri\030\001 \001(\tB$\372A!\n\037compute.googleapis.co" + + "m/Instance\0228\n\013vpc_network\030\002 \001(\tB#\372A \n\036co" + + "mpute.googleapis.com/Network\022\"\n\032site_to_" + + "site_data_transfer\030\003 \001(\010\"\276\001\n\035NextHopInte" + + "rconnectAttachment\022?\n\003uri\030\001 \001(\tB2\372A/\n-co" + + "mpute.googleapis.com/InterconnectAttachm" + + "ent\0228\n\013vpc_network\030\002 \001(\tB#\372A \n\036compute.g" + + "oogleapis.com/Network\022\"\n\032site_to_site_da" + + "ta_transfer\030\003 \001(\010\"\246\005\n\014SpokeSummary\022`\n\021sp" + + "oke_type_counts\030\001 \003(\0132@.google.cloud.net" + + "workconnectivity.v1.SpokeSummary.SpokeTy" + + "peCountB\003\340A\003\022b\n\022spoke_state_counts\030\002 \003(\013" + + "2A.google.cloud.networkconnectivity.v1.S" + + "pokeSummary.SpokeStateCountB\003\340A\003\022o\n\031spok" + + "e_state_reason_counts\030\003 \003(\0132G.google.clo" + + "ud.networkconnectivity.v1.SpokeSummary.S" + + "pokeStateReasonCountB\003\340A\003\032m\n\016SpokeTypeCo" + + "unt\022G\n\nspoke_type\030\001 \001(\0162..google.cloud.n" + + "etworkconnectivity.v1.SpokeTypeB\003\340A\003\022\022\n\005" + + "count\030\002 \001(\003B\003\340A\003\032e\n\017SpokeStateCount\022>\n\005s" + + "tate\030\001 \001(\0162*.google.cloud.networkconnect" + + "ivity.v1.StateB\003\340A\003\022\022\n\005count\030\002 \001(\003B\003\340A\003\032" + + "\210\001\n\025SpokeStateReasonCount\022[\n\021state_reaso" + + "n_code\030\001 \001(\0162;.google.cloud.networkconne" + + "ctivity.v1.Spoke.StateReason.CodeB\003\340A\003\022\022" + + "\n\005count\030\002 \001(\003B\003\340A\003\"Q\n\017GetGroupRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(networkconnectivity" + + ".googleapis.com/Group\"\243\001\n\022UpdateGroupReq" + + "uest\0224\n\013update_mask\030\001 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\001\022>\n\005group\030\002 \001(\0132*.goog" + + "le.cloud.networkconnectivity.v1.GroupB\003\340" + + "A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001*f\n\017LocationF" + + "eature\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000" + + "\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SI" + + "TE_SPOKES\020\002*l\n\tRouteType\022\032\n\026ROUTE_TYPE_U" + + "NSPECIFIED\020\000\022\026\n\022VPC_PRIMARY_SUBNET\020\001\022\030\n\024" + + "VPC_SECONDARY_SUBNET\020\002\022\021\n\rDYNAMIC_ROUTE\020" + + "\003*\216\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\r\n\tAC" + + "CEPTING\020\010\022\r\n\tREJECTING\020\t\022\014\n\010UPDATING\020\006\022\014" + + "\n\010INACTIVE\020\007\022\014\n\010OBSOLETE\020\n*\225\001\n\tSpokeType" + + "\022\032\n\026SPOKE_TYPE_UNSPECIFIED\020\000\022\016\n\nVPN_TUNN" + + "EL\020\001\022\033\n\027INTERCONNECT_ATTACHMENT\020\002\022\024\n\020ROU" + + "TER_APPLIANCE\020\003\022\017\n\013VPC_NETWORK\020\004\022\030\n\024PROD" + + "UCER_VPC_NETWORK\020\007*5\n\nPolicyMode\022\033\n\027POLI" + + "CY_MODE_UNSPECIFIED\020\000\022\n\n\006PRESET\020\001*E\n\016Pre" + + "setTopology\022\037\n\033PRESET_TOPOLOGY_UNSPECIFI" + + "ED\020\000\022\010\n\004MESH\020\002\022\010\n\004STAR\020\0032\324\"\n\nHubService\022" + + "\267\001\n\010ListHubs\0224.google.cloud.networkconne" + + "ctivity.v1.ListHubsRequest\0325.google.clou" + + "d.networkconnectivity.v1.ListHubsRespons" + + "e\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects" + + "/*/locations/global}/hubs\022\244\001\n\006GetHub\0222.g" + + "oogle.cloud.networkconnectivity.v1.GetHu" + + "bRequest\032(.google.cloud.networkconnectiv" + + "ity.v1.Hub\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=pro" + + "jects/*/locations/global/hubs/*}\022\314\001\n\tCre" + + "ateHub\0225.google.cloud.networkconnectivit" + + "y.v1.CreateHubRequest\032\035.google.longrunni" + + "ng.Operation\"i\312A\030\n\003Hub\022\021OperationMetadat" + + "a\332A\021parent,hub,hub_id\202\323\344\223\0024\"-/v1/{parent" + + "=projects/*/locations/global}/hubs:\003hub\022" + + "\316\001\n\tUpdateHub\0225.google.cloud.networkconn" + + "ectivity.v1.UpdateHubRequest\032\035.google.lo" + + "ngrunning.Operation\"k\312A\030\n\003Hub\022\021Operation" + + "Metadata\332A\017hub,update_mask\202\323\344\223\002821/v1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\022\314\001\n\tDeleteHub\0225.google.cloud.ne" + + "tworkconnectivity.v1.DeleteHubRequest\032\035." + + "google.longrunning.Operation\"i\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002/*-/v1/{name=projects/*/locations" + + "/global/hubs/*}\022\317\001\n\rListHubSpokes\0229.goog" + + "le.cloud.networkconnectivity.v1.ListHubS" + + "pokesRequest\032:.google.cloud.networkconne" + + "ctivity.v1.ListHubSpokesResponse\"G\332A\004nam" + + "e\202\323\344\223\002:\0228/v1/{name=projects/*/locations/" + + "global/hubs/*}:listSpokes\022\323\001\n\016QueryHubSt" + + "atus\022:.google.cloud.networkconnectivity." + + "v1.QueryHubStatusRequest\032;.google.cloud." + + "networkconnectivity.v1.QueryHubStatusRes" + + "ponse\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" + + "/*/locations/global/hubs/*}:queryStatus\022" + + "\272\001\n\nListSpokes\0226.google.cloud.networkcon" + + "nectivity.v1.ListSpokesRequest\0327.google." + "cloud.networkconnectivity.v1.ListSpokesR" - + "equest\0327.google.cloud.networkconnectivit" - + "y.v1.ListSpokesResponse\";\332A\006parent\202\323\344\223\002," - + "\022*/v1/{parent=projects/*/locations/*}/sp" - + "okes\022\247\001\n\010GetSpoke\0224.google.cloud.network" - + "connectivity.v1.GetSpokeRequest\032*.google" - + ".cloud.networkconnectivity.v1.Spoke\"9\332A\004" - + "name\202\323\344\223\002,\022*/v1/{name=projects/*/locatio" - + "ns/*/spokes/*}\022\325\001\n\013CreateSpoke\0227.google." - + "cloud.networkconnectivity.v1.CreateSpoke" - + "Request\032\035.google.longrunning.Operation\"n" - + "\312A\032\n\005Spoke\022\021OperationMetadata\332A\025parent,s" - + "poke,spoke_id\202\323\344\223\0023\"*/v1/{parent=project" - + "s/*/locations/*}/spokes:\005spoke\022\327\001\n\013Updat" - + "eSpoke\0227.google.cloud.networkconnectivit" - + "y.v1.UpdateSpokeRequest\032\035.google.longrun" - + "ning.Operation\"p\312A\032\n\005Spoke\022\021OperationMet" - + "adata\332A\021spoke,update_mask\202\323\344\223\002920/v1/{sp" - + "oke.name=projects/*/locations/*/spokes/*" - + "}:\005spoke\022\361\001\n\016RejectHubSpoke\022:.google.clo" - + "ud.networkconnectivity.v1.RejectHubSpoke" - + "Request\032\035.google.longrunning.Operation\"\203" - + "\001\312A+\n\026RejectHubSpokeResponse\022\021OperationM" - + "etadata\332A\016name,spoke_uri\202\323\344\223\002>\"9/v1/{nam" - + "e=projects/*/locations/global/hubs/*}:re" - + "jectSpoke:\001*\022\361\001\n\016AcceptHubSpoke\022:.google" - + ".cloud.networkconnectivity.v1.AcceptHubS" - + "pokeRequest\032\035.google.longrunning.Operati" - + "on\"\203\001\312A+\n\026AcceptHubSpokeResponse\022\021Operat" - + "ionMetadata\332A\016name,spoke_uri\202\323\344\223\002>\"9/v1/" - + "{name=projects/*/locations/global/hubs/*" - + "}:acceptSpoke:\001*\022\315\001\n\013DeleteSpoke\0227.googl" - + "e.cloud.networkconnectivity.v1.DeleteSpo" - + "keRequest\032\035.google.longrunning.Operation" - + "\"f\312A*\n\025google.protobuf.Empty\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\002,**/v1/{name=projects" - + "/*/locations/*/spokes/*}\022\307\001\n\rGetRouteTab" - + "le\0229.google.cloud.networkconnectivity.v1" - + ".GetRouteTableRequest\032/.google.cloud.net" - + "workconnectivity.v1.RouteTable\"J\332A\004name\202" - + "\323\344\223\002=\022;/v1/{name=projects/*/locations/gl" - + "obal/hubs/*/routeTables/*}\022\301\001\n\010GetRoute\022" - + "4.google.cloud.networkconnectivity.v1.Ge" - + "tRouteRequest\032*.google.cloud.networkconn" - + "ectivity.v1.Route\"S\332A\004name\202\323\344\223\002F\022D/v1/{n" - + "ame=projects/*/locations/global/hubs/*/r" - + "outeTables/*/routes/*}\022\324\001\n\nListRoutes\0226." + + "esponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=pr" + + "ojects/*/locations/*}/spokes\022\247\001\n\010GetSpok" + + "e\0224.google.cloud.networkconnectivity.v1." + + "GetSpokeRequest\032*.google.cloud.networkco" + + "nnectivity.v1.Spoke\"9\332A\004name\202\323\344\223\002,\022*/v1/" + + "{name=projects/*/locations/*/spokes/*}\022\325" + + "\001\n\013CreateSpoke\0227.google.cloud.networkcon" + + "nectivity.v1.CreateSpokeRequest\032\035.google" + + ".longrunning.Operation\"n\312A\032\n\005Spoke\022\021Oper" + + "ationMetadata\332A\025parent,spoke,spoke_id\202\323\344" + + "\223\0023\"*/v1/{parent=projects/*/locations/*}" + + "/spokes:\005spoke\022\327\001\n\013UpdateSpoke\0227.google." + + "cloud.networkconnectivity.v1.UpdateSpoke" + + "Request\032\035.google.longrunning.Operation\"p" + + "\312A\032\n\005Spoke\022\021OperationMetadata\332A\021spoke,up" + + "date_mask\202\323\344\223\002920/v1/{spoke.name=project" + + "s/*/locations/*/spokes/*}:\005spoke\022\361\001\n\016Rej" + + "ectHubSpoke\022:.google.cloud.networkconnec" + + "tivity.v1.RejectHubSpokeRequest\032\035.google" + + ".longrunning.Operation\"\203\001\312A+\n\026RejectHubS" + + "pokeResponse\022\021OperationMetadata\332A\016name,s" + + "poke_uri\202\323\344\223\002>\"9/v1/{name=projects/*/loc" + + "ations/global/hubs/*}:rejectSpoke:\001*\022\361\001\n" + + "\016AcceptHubSpoke\022:.google.cloud.networkco" + + "nnectivity.v1.AcceptHubSpokeRequest\032\035.go" + + "ogle.longrunning.Operation\"\203\001\312A+\n\026Accept" + + "HubSpokeResponse\022\021OperationMetadata\332A\016na", + "me,spoke_uri\202\323\344\223\002>\"9/v1/{name=projects/*" + + "/locations/global/hubs/*}:acceptSpoke:\001*" + + "\022\315\001\n\013DeleteSpoke\0227.google.cloud.networkc" + + "onnectivity.v1.DeleteSpokeRequest\032\035.goog" + + "le.longrunning.Operation\"f\312A*\n\025google.pr" + + "otobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\002,**/v1/{name=projects/*/locations/*/s" + + "pokes/*}\022\307\001\n\rGetRouteTable\0229.google.clou" + + "d.networkconnectivity.v1.GetRouteTableRe" + + "quest\032/.google.cloud.networkconnectivity" + + ".v1.RouteTable\"J\332A\004name\202\323\344\223\002=\022;/v1/{name" + + "=projects/*/locations/global/hubs/*/rout" + + "eTables/*}\022\301\001\n\010GetRoute\0224.google.cloud.n" + + "etworkconnectivity.v1.GetRouteRequest\032*." + + "google.cloud.networkconnectivity.v1.Rout" + + "e\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=projects/*/l" + + "ocations/global/hubs/*/routeTables/*/rou" + + "tes/*}\022\324\001\n\nListRoutes\0226.google.cloud.net" + + "workconnectivity.v1.ListRoutesRequest\0327." + "google.cloud.networkconnectivity.v1.List" - + "RoutesRequest\0327.google.cloud.networkconn" - + "ectivity.v1.ListRoutesResponse\"U\332A\006paren" - + "t\202\323\344\223\002F\022D/v1/{parent=projects/*/location" - + "s/global/hubs/*/routeTables/*}/routes\022\332\001" - + "\n\017ListRouteTables\022;.google.cloud.network" - + "connectivity.v1.ListRouteTablesRequest\032<" - + ".google.cloud.networkconnectivity.v1.Lis" - + "tRouteTablesResponse\"L\332A\006parent\202\323\344\223\002=\022;/" - + "v1/{parent=projects/*/locations/global/h" - + "ubs/*}/routeTables\022\263\001\n\010GetGroup\0224.google" - + ".cloud.networkconnectivity.v1.GetGroupRe" - + "quest\032*.google.cloud.networkconnectivity" - + ".v1.Group\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=proj" - + "ects/*/locations/global/hubs/*/groups/*}" - + "\022\306\001\n\nListGroups\0226.google.cloud.networkco" - + "nnectivity.v1.ListGroupsRequest\0327.google" - + ".cloud.networkconnectivity.v1.ListGroups" - + "Response\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=p" - + "rojects/*/locations/global/hubs/*}/group" - + "s\032V\312A\"networkconnectivity.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\302\003\n\'com.google.cloud.networkco" - + "nnectivity.v1B\010HubProtoP\001ZYcloud.google." - + "com/go/networkconnectivity/apiv1/network" - + "connectivitypb;networkconnectivitypb\252\002#G" - + "oogle.Cloud.NetworkConnectivity.V1\312\002#Goo" - + "gle\\Cloud\\NetworkConnectivity\\V1\352\002&Googl" - + "e::Cloud::NetworkConnectivity::V1\352A`\n co" - + "mpute.googleapis.com/VpnTunnel\022 + * A hub status entry represents the status of a set of propagated Private + * Service Connect connections grouped by certain fields. + * + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.HubStatusEntry} + */ +public final class HubStatusEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.HubStatusEntry) + HubStatusEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HubStatusEntry.newBuilder() to construct. + private HubStatusEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HubStatusEntry() { + groupBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HubStatusEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.HubStatusEntry.class, + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder.class); + } + + private int bitField0_; + public static final int COUNT_FIELD_NUMBER = 1; + private int count_ = 0; + /** + * + * + *
          +   * The number of propagated Private Service Connect connections with this
          +   * status. If the `group_by` field was not set in the request message, the
          +   * value of this field is 1.
          +   * 
          + * + * int32 count = 1; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int GROUP_BY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupBy_ = ""; + /** + * + * + *
          +   * The fields that this entry is grouped by. This has the same value as the
          +   * `group_by` field in the request message.
          +   * 
          + * + * string group_by = 2; + * + * @return The groupBy. + */ + @java.lang.Override + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + 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(); + groupBy_ = s; + return s; + } + } + /** + * + * + *
          +   * The fields that this entry is grouped by. This has the same value as the
          +   * `group_by` field in the request message.
          +   * 
          + * + * string group_by = 2; + * + * @return The bytes for groupBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_PROPAGATION_STATUS_FIELD_NUMBER = 3; + private com.google.cloud.networkconnectivity.v1.PscPropagationStatus pscPropagationStatus_; + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return Whether the pscPropagationStatus field is set. + */ + @java.lang.Override + public boolean hasPscPropagationStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return The pscPropagationStatus. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus getPscPropagationStatus() { + return pscPropagationStatus_ == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance() + : pscPropagationStatus_; + } + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder + getPscPropagationStatusOrBuilder() { + return pscPropagationStatus_ == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance() + : pscPropagationStatus_; + } + + 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 (count_ != 0) { + output.writeInt32(1, count_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getPscPropagationStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, count_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPscPropagationStatus()); + } + 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.networkconnectivity.v1.HubStatusEntry)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.HubStatusEntry other = + (com.google.cloud.networkconnectivity.v1.HubStatusEntry) obj; + + if (getCount() != other.getCount()) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; + if (hasPscPropagationStatus() != other.hasPscPropagationStatus()) return false; + if (hasPscPropagationStatus()) { + if (!getPscPropagationStatus().equals(other.getPscPropagationStatus())) 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) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (37 * hash) + GROUP_BY_FIELD_NUMBER; + hash = (53 * hash) + getGroupBy().hashCode(); + if (hasPscPropagationStatus()) { + hash = (37 * hash) + PSC_PROPAGATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPscPropagationStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry 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 hub status entry represents the status of a set of propagated Private
          +   * Service Connect connections grouped by certain fields.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.HubStatusEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.HubStatusEntry) + com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.HubStatusEntry.class, + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.HubStatusEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPscPropagationStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + count_ = 0; + groupBy_ = ""; + pscPropagationStatus_ = null; + if (pscPropagationStatusBuilder_ != null) { + pscPropagationStatusBuilder_.dispose(); + pscPropagationStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_HubStatusEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.HubStatusEntry getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.HubStatusEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.HubStatusEntry build() { + com.google.cloud.networkconnectivity.v1.HubStatusEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.HubStatusEntry buildPartial() { + com.google.cloud.networkconnectivity.v1.HubStatusEntry result = + new com.google.cloud.networkconnectivity.v1.HubStatusEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.HubStatusEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.count_ = count_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupBy_ = groupBy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pscPropagationStatus_ = + pscPropagationStatusBuilder_ == null + ? pscPropagationStatus_ + : pscPropagationStatusBuilder_.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.networkconnectivity.v1.HubStatusEntry) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.HubStatusEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.HubStatusEntry other) { + if (other == com.google.cloud.networkconnectivity.v1.HubStatusEntry.getDefaultInstance()) + return this; + if (other.getCount() != 0) { + setCount(other.getCount()); + } + if (!other.getGroupBy().isEmpty()) { + groupBy_ = other.groupBy_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPscPropagationStatus()) { + mergePscPropagationStatus(other.getPscPropagationStatus()); + } + 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: + { + count_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + groupBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPscPropagationStatusFieldBuilder().getBuilder(), extensionRegistry); + 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 int count_; + /** + * + * + *
          +     * The number of propagated Private Service Connect connections with this
          +     * status. If the `group_by` field was not set in the request message, the
          +     * value of this field is 1.
          +     * 
          + * + * int32 count = 1; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * + * + *
          +     * The number of propagated Private Service Connect connections with this
          +     * status. If the `group_by` field was not set in the request message, the
          +     * value of this field is 1.
          +     * 
          + * + * int32 count = 1; + * + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The number of propagated Private Service Connect connections with this
          +     * status. If the `group_by` field was not set in the request message, the
          +     * value of this field is 1.
          +     * 
          + * + * int32 count = 1; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000001); + count_ = 0; + onChanged(); + return this; + } + + private java.lang.Object groupBy_ = ""; + /** + * + * + *
          +     * The fields that this entry is grouped by. This has the same value as the
          +     * `group_by` field in the request message.
          +     * 
          + * + * string group_by = 2; + * + * @return The groupBy. + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The fields that this entry is grouped by. This has the same value as the
          +     * `group_by` field in the request message.
          +     * 
          + * + * string group_by = 2; + * + * @return The bytes for groupBy. + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The fields that this entry is grouped by. This has the same value as the
          +     * `group_by` field in the request message.
          +     * 
          + * + * string group_by = 2; + * + * @param value The groupBy to set. + * @return This builder for chaining. + */ + public Builder setGroupBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupBy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The fields that this entry is grouped by. This has the same value as the
          +     * `group_by` field in the request message.
          +     * 
          + * + * string group_by = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroupBy() { + groupBy_ = getDefaultInstance().getGroupBy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The fields that this entry is grouped by. This has the same value as the
          +     * `group_by` field in the request message.
          +     * 
          + * + * string group_by = 2; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. + */ + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.PscPropagationStatus pscPropagationStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PscPropagationStatus, + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder, + com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder> + pscPropagationStatusBuilder_; + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return Whether the pscPropagationStatus field is set. + */ + public boolean hasPscPropagationStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return The pscPropagationStatus. + */ + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus getPscPropagationStatus() { + if (pscPropagationStatusBuilder_ == null) { + return pscPropagationStatus_ == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance() + : pscPropagationStatus_; + } else { + return pscPropagationStatusBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public Builder setPscPropagationStatus( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus value) { + if (pscPropagationStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscPropagationStatus_ = value; + } else { + pscPropagationStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public Builder setPscPropagationStatus( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder builderForValue) { + if (pscPropagationStatusBuilder_ == null) { + pscPropagationStatus_ = builderForValue.build(); + } else { + pscPropagationStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public Builder mergePscPropagationStatus( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus value) { + if (pscPropagationStatusBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pscPropagationStatus_ != null + && pscPropagationStatus_ + != com.google.cloud.networkconnectivity.v1.PscPropagationStatus + .getDefaultInstance()) { + getPscPropagationStatusBuilder().mergeFrom(value); + } else { + pscPropagationStatus_ = value; + } + } else { + pscPropagationStatusBuilder_.mergeFrom(value); + } + if (pscPropagationStatus_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public Builder clearPscPropagationStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + pscPropagationStatus_ = null; + if (pscPropagationStatusBuilder_ != null) { + pscPropagationStatusBuilder_.dispose(); + pscPropagationStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder + getPscPropagationStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPscPropagationStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + public com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder + getPscPropagationStatusOrBuilder() { + if (pscPropagationStatusBuilder_ != null) { + return pscPropagationStatusBuilder_.getMessageOrBuilder(); + } else { + return pscPropagationStatus_ == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance() + : pscPropagationStatus_; + } + } + /** + * + * + *
          +     * The Private Service Connect propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PscPropagationStatus, + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder, + com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder> + getPscPropagationStatusFieldBuilder() { + if (pscPropagationStatusBuilder_ == null) { + pscPropagationStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PscPropagationStatus, + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder, + com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder>( + getPscPropagationStatus(), getParentForChildren(), isClean()); + pscPropagationStatus_ = null; + } + return pscPropagationStatusBuilder_; + } + + @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.networkconnectivity.v1.HubStatusEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.HubStatusEntry) + private static final com.google.cloud.networkconnectivity.v1.HubStatusEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.HubStatusEntry(); + } + + public static com.google.cloud.networkconnectivity.v1.HubStatusEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HubStatusEntry 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.networkconnectivity.v1.HubStatusEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubStatusEntryOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubStatusEntryOrBuilder.java new file mode 100644 index 000000000000..067d3c08d80b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubStatusEntryOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface HubStatusEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.HubStatusEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The number of propagated Private Service Connect connections with this
          +   * status. If the `group_by` field was not set in the request message, the
          +   * value of this field is 1.
          +   * 
          + * + * int32 count = 1; + * + * @return The count. + */ + int getCount(); + + /** + * + * + *
          +   * The fields that this entry is grouped by. This has the same value as the
          +   * `group_by` field in the request message.
          +   * 
          + * + * string group_by = 2; + * + * @return The groupBy. + */ + java.lang.String getGroupBy(); + /** + * + * + *
          +   * The fields that this entry is grouped by. This has the same value as the
          +   * `group_by` field in the request message.
          +   * 
          + * + * string group_by = 2; + * + * @return The bytes for groupBy. + */ + com.google.protobuf.ByteString getGroupByBytes(); + + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return Whether the pscPropagationStatus field is set. + */ + boolean hasPscPropagationStatus(); + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + * + * @return The pscPropagationStatus. + */ + com.google.cloud.networkconnectivity.v1.PscPropagationStatus getPscPropagationStatus(); + /** + * + * + *
          +   * The Private Service Connect propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus psc_propagation_status = 3; + * + */ + com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder + getPscPropagationStatusOrBuilder(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java index 1f1877b4a53b..c3d244ff96de 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java @@ -44,6 +44,7 @@ private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Bui private LinkedInterconnectAttachments() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -206,6 +207,82 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } + public static final int INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + return includeImportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, includeImportRanges_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -252,6 +332,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -271,6 +359,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUrisList().equals(other.getUrisList())) return false; if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,6 +379,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -438,6 +531,7 @@ public Builder clear() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); siteToSiteDataTransfer_ = false; vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -487,6 +581,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.vpcNetwork_ = vpcNetwork_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } } @java.lang.Override @@ -556,6 +654,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -601,6 +709,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -969,6 +1084,207 @@ public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index cd197b7f660c..cd294881fe6d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -118,4 +118,67 @@ public interface LinkedInterconnectAttachmentsOrBuilder * @return The bytes for vpcNetwork. */ com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + java.util.List getIncludeImportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + int getIncludeImportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + java.lang.String getIncludeImportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java new file mode 100644 index 000000000000..912c102e0e1c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetwork.java @@ -0,0 +1,1806 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} */ +public final class LinkedProducerVpcNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) + LinkedProducerVpcNetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinkedProducerVpcNetwork.newBuilder() to construct. + private LinkedProducerVpcNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinkedProducerVpcNetwork() { + network_ = ""; + serviceConsumerVpcSpoke_ = ""; + peering_ = ""; + producerNetwork_ = ""; + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinkedProducerVpcNetwork(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.class, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
          +   * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +   * peered with.
          +   * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
          +   * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +   * peered with.
          +   * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_CONSUMER_VPC_SPOKE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceConsumerVpcSpoke_ = ""; + /** + * + * + *
          +   * Output only. The Service Consumer Network spoke.
          +   * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceConsumerVpcSpoke. + */ + @java.lang.Override + public java.lang.String getServiceConsumerVpcSpoke() { + java.lang.Object ref = serviceConsumerVpcSpoke_; + 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(); + serviceConsumerVpcSpoke_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The Service Consumer Network spoke.
          +   * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceConsumerVpcSpoke. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceConsumerVpcSpokeBytes() { + java.lang.Object ref = serviceConsumerVpcSpoke_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConsumerVpcSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peering_ = ""; + /** + * + * + *
          +   * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +   * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +   * hub. This peering must be in ACTIVE state.
          +   * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The peering. + */ + @java.lang.Override + public java.lang.String getPeering() { + java.lang.Object ref = peering_; + 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(); + peering_ = s; + return s; + } + } + /** + * + * + *
          +   * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +   * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +   * hub. This peering must be in ACTIVE state.
          +   * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for peering. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringBytes() { + java.lang.Object ref = peering_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peering_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCER_NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object producerNetwork_ = ""; + /** + * + * + *
          +   * Output only. The URI of the Producer VPC.
          +   * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The producerNetwork. + */ + @java.lang.Override + public java.lang.String getProducerNetwork() { + java.lang.Object ref = producerNetwork_; + 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(); + producerNetwork_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The URI of the Producer VPC.
          +   * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for producerNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProducerNetworkBytes() { + java.lang.Object ref = producerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + producerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXCLUDE_EXPORT_RANGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + return excludeExportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); + } + + public static final int INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + return includeExportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.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(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peering_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, peering_); + } + for (int i = 0; i < excludeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludeExportRanges_.getRaw(i)); + } + for (int i = 0; i < includeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, includeExportRanges_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConsumerVpcSpoke_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceConsumerVpcSpoke_); + } + 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(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peering_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peering_); + } + { + int dataSize = 0; + for (int i = 0; i < excludeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < includeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeExportRangesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConsumerVpcSpoke_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceConsumerVpcSpoke_); + } + 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.networkconnectivity.v1.LinkedProducerVpcNetwork)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork other = + (com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getServiceConsumerVpcSpoke().equals(other.getServiceConsumerVpcSpoke())) return false; + if (!getPeering().equals(other.getPeering())) return false; + if (!getProducerNetwork().equals(other.getProducerNetwork())) return false; + if (!getExcludeExportRangesList().equals(other.getExcludeExportRangesList())) return false; + if (!getIncludeExportRangesList().equals(other.getIncludeExportRangesList())) 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SERVICE_CONSUMER_VPC_SPOKE_FIELD_NUMBER; + hash = (53 * hash) + getServiceConsumerVpcSpoke().hashCode(); + hash = (37 * hash) + PEERING_FIELD_NUMBER; + hash = (53 * hash) + getPeering().hashCode(); + hash = (37 * hash) + PRODUCER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getProducerNetwork().hashCode(); + if (getExcludeExportRangesCount() > 0) { + hash = (37 * hash) + EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeExportRangesList().hashCode(); + } + if (getIncludeExportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeExportRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork 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; + } + /** Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.class, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + serviceConsumerVpcSpoke_ = ""; + peering_ = ""; + producerNetwork_ = ""; + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LinkedProducerVpcNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork build() { + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork buildPartial() { + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork result = + new com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceConsumerVpcSpoke_ = serviceConsumerVpcSpoke_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.peering_ = peering_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.producerNetwork_ = producerNetwork_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + excludeExportRanges_.makeImmutable(); + result.excludeExportRanges_ = excludeExportRanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + includeExportRanges_.makeImmutable(); + result.includeExportRanges_ = includeExportRanges_; + } + } + + @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.networkconnectivity.v1.LinkedProducerVpcNetwork) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork other) { + if (other + == com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance()) + return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceConsumerVpcSpoke().isEmpty()) { + serviceConsumerVpcSpoke_ = other.serviceConsumerVpcSpoke_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPeering().isEmpty()) { + peering_ = other.peering_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProducerNetwork().isEmpty()) { + producerNetwork_ = other.producerNetwork_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.excludeExportRanges_.isEmpty()) { + if (excludeExportRanges_.isEmpty()) { + excludeExportRanges_ = other.excludeExportRanges_; + bitField0_ |= 0x00000010; + } else { + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.addAll(other.excludeExportRanges_); + } + onChanged(); + } + if (!other.includeExportRanges_.isEmpty()) { + if (includeExportRanges_.isEmpty()) { + includeExportRanges_ = other.includeExportRanges_; + bitField0_ |= 0x00000020; + } else { + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.addAll(other.includeExportRanges_); + } + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + peering_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(s); + break; + } // case 34 + case 42: + { + producerNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + serviceConsumerVpcSpoke_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 network_ = ""; + /** + * + * + *
          +     * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +     * peered with.
          +     * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +     * peered with.
          +     * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +     * peered with.
          +     * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +     * peered with.
          +     * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +     * peered with.
          +     * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serviceConsumerVpcSpoke_ = ""; + /** + * + * + *
          +     * Output only. The Service Consumer Network spoke.
          +     * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceConsumerVpcSpoke. + */ + public java.lang.String getServiceConsumerVpcSpoke() { + java.lang.Object ref = serviceConsumerVpcSpoke_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceConsumerVpcSpoke_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The Service Consumer Network spoke.
          +     * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceConsumerVpcSpoke. + */ + public com.google.protobuf.ByteString getServiceConsumerVpcSpokeBytes() { + java.lang.Object ref = serviceConsumerVpcSpoke_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConsumerVpcSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The Service Consumer Network spoke.
          +     * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceConsumerVpcSpoke to set. + * @return This builder for chaining. + */ + public Builder setServiceConsumerVpcSpoke(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceConsumerVpcSpoke_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The Service Consumer Network spoke.
          +     * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceConsumerVpcSpoke() { + serviceConsumerVpcSpoke_ = getDefaultInstance().getServiceConsumerVpcSpoke(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The Service Consumer Network spoke.
          +     * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceConsumerVpcSpoke to set. + * @return This builder for chaining. + */ + public Builder setServiceConsumerVpcSpokeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceConsumerVpcSpoke_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object peering_ = ""; + /** + * + * + *
          +     * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +     * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +     * hub. This peering must be in ACTIVE state.
          +     * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The peering. + */ + public java.lang.String getPeering() { + java.lang.Object ref = peering_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peering_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +     * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +     * hub. This peering must be in ACTIVE state.
          +     * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for peering. + */ + public com.google.protobuf.ByteString getPeeringBytes() { + java.lang.Object ref = peering_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peering_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +     * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +     * hub. This peering must be in ACTIVE state.
          +     * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The peering to set. + * @return This builder for chaining. + */ + public Builder setPeering(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peering_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +     * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +     * hub. This peering must be in ACTIVE state.
          +     * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearPeering() { + peering_ = getDefaultInstance().getPeering(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +     * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +     * hub. This peering must be in ACTIVE state.
          +     * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for peering to set. + * @return This builder for chaining. + */ + public Builder setPeeringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peering_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object producerNetwork_ = ""; + /** + * + * + *
          +     * Output only. The URI of the Producer VPC.
          +     * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The producerNetwork. + */ + public java.lang.String getProducerNetwork() { + java.lang.Object ref = producerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The URI of the Producer VPC.
          +     * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for producerNetwork. + */ + public com.google.protobuf.ByteString getProducerNetworkBytes() { + java.lang.Object ref = producerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + producerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The URI of the Producer VPC.
          +     * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The producerNetwork to set. + * @return This builder for chaining. + */ + public Builder setProducerNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + producerNetwork_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The URI of the Producer VPC.
          +     * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProducerNetwork() { + producerNetwork_ = getDefaultInstance().getProducerNetwork(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The URI of the Producer VPC.
          +     * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for producerNetwork to set. + * @return This builder for chaining. + */ + public Builder setProducerNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + producerNetwork_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeExportRangesIsMutable() { + if (!excludeExportRanges_.isModifiable()) { + excludeExportRanges_ = new com.google.protobuf.LazyStringArrayList(excludeExportRanges_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getExcludeExportRangesList() { + excludeExportRanges_.makeImmutable(); + return excludeExportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + public int getExcludeExportRangesCount() { + return excludeExportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + public java.lang.String getExcludeExportRanges(int index) { + return excludeExportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { + return excludeExportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeExportRanges to set. + * @return This builder for chaining. + */ + public Builder setExcludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeExportRanges(java.lang.Iterable values) { + ensureExcludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeExportRanges_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeExportRanges() { + excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +     * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addExcludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeExportRangesIsMutable(); + excludeExportRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeExportRangesIsMutable() { + if (!includeExportRanges_.isModifiable()) { + includeExportRanges_ = new com.google.protobuf.LazyStringArrayList(includeExportRanges_); + } + bitField0_ |= 0x00000020; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + includeExportRanges_.makeImmutable(); + return includeExportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeExportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeExportRanges(java.lang.Iterable values) { + ensureIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeExportRanges_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeExportRanges() { + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000020; + 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.networkconnectivity.v1.LinkedProducerVpcNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) + private static final com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork(); + } + + public static com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedProducerVpcNetwork 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.networkconnectivity.v1.LinkedProducerVpcNetwork + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java new file mode 100644 index 000000000000..6ccc8db88257 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedProducerVpcNetworkOrBuilder.java @@ -0,0 +1,254 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface LinkedProducerVpcNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +   * peered with.
          +   * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
          +   * Immutable. The URI of the Service Consumer VPC that the Producer VPC is
          +   * peered with.
          +   * 
          + * + * + * string network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
          +   * Output only. The Service Consumer Network spoke.
          +   * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceConsumerVpcSpoke. + */ + java.lang.String getServiceConsumerVpcSpoke(); + /** + * + * + *
          +   * Output only. The Service Consumer Network spoke.
          +   * 
          + * + * + * string service_consumer_vpc_spoke = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceConsumerVpcSpoke. + */ + com.google.protobuf.ByteString getServiceConsumerVpcSpokeBytes(); + + /** + * + * + *
          +   * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +   * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +   * hub. This peering must be in ACTIVE state.
          +   * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The peering. + */ + java.lang.String getPeering(); + /** + * + * + *
          +   * Immutable. The name of the VPC peering between the Service Consumer VPC and
          +   * the Producer VPC (defined in the Tenant project) which is added to the NCC
          +   * hub. This peering must be in ACTIVE state.
          +   * 
          + * + * string peering = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for peering. + */ + com.google.protobuf.ByteString getPeeringBytes(); + + /** + * + * + *
          +   * Output only. The URI of the Producer VPC.
          +   * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The producerNetwork. + */ + java.lang.String getProducerNetwork(); + /** + * + * + *
          +   * Output only. The URI of the Producer VPC.
          +   * 
          + * + * + * string producer_network = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for producerNetwork. + */ + com.google.protobuf.ByteString getProducerNetworkBytes(); + + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeExportRanges. + */ + java.util.List getExcludeExportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeExportRanges. + */ + int getExcludeExportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeExportRanges at the given index. + */ + java.lang.String getExcludeExportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges encompassing the subnets to be excluded from peering.
          +   * 
          + * + * repeated string exclude_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeExportRanges at the given index. + */ + com.google.protobuf.ByteString getExcludeExportRangesBytes(int index); + + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + java.util.List getIncludeExportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + int getIncludeExportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + java.lang.String getIncludeExportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeExportRangesBytes(int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index c6a95a0330a5..f2f2d8deef42 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java @@ -45,6 +45,7 @@ private LinkedRouterApplianceInstances( private LinkedRouterApplianceInstances() { instances_ = java.util.Collections.emptyList(); vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -225,6 +226,82 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } + public static final int INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + return includeImportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -248,6 +325,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, includeImportRanges_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -266,6 +346,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -285,6 +373,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInstancesList().equals(other.getInstancesList())) return false; if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,6 +393,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -458,6 +551,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); siteToSiteDataTransfer_ = false; vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -518,6 +612,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.vpcNetwork_ = vpcNetwork_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } } @java.lang.Override @@ -604,6 +702,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -656,6 +764,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1241,6 +1356,207 @@ public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index 45ba260297d0..3eb7a6dc7973 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -128,4 +128,67 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst * @return The bytes for vpcNetwork. */ com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + java.util.List getIncludeImportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + int getIncludeImportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + java.lang.String getIncludeImportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java index 210ee47f5af6..5879535653fa 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetwork.java @@ -41,6 +41,8 @@ private LinkedVpcNetwork(com.google.protobuf.GeneratedMessageV3.Builder build private LinkedVpcNetwork() { uri_ = ""; excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + producerVpcSpokes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -187,6 +189,154 @@ public com.google.protobuf.ByteString getExcludeExportRangesBytes(int index) { return excludeExportRanges_.getByteString(index); } + public static final int INCLUDE_EXPORT_RANGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + return includeExportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); + } + + public static final int PRODUCER_VPC_SPOKES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList producerVpcSpokes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the producerVpcSpokes. + */ + public com.google.protobuf.ProtocolStringList getProducerVpcSpokesList() { + return producerVpcSpokes_; + } + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of producerVpcSpokes. + */ + public int getProducerVpcSpokesCount() { + return producerVpcSpokes_.size(); + } + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The producerVpcSpokes at the given index. + */ + public java.lang.String getProducerVpcSpokes(int index) { + return producerVpcSpokes_.get(index); + } + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the producerVpcSpokes at the given index. + */ + public com.google.protobuf.ByteString getProducerVpcSpokesBytes(int index) { + return producerVpcSpokes_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -207,6 +357,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < excludeExportRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, excludeExportRanges_.getRaw(i)); } + for (int i = 0; i < includeExportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeExportRanges_.getRaw(i)); + } + for (int i = 0; i < producerVpcSpokes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, producerVpcSpokes_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -227,6 +383,22 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExcludeExportRangesList().size(); } + { + int dataSize = 0; + for (int i = 0; i < includeExportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeExportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeExportRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < producerVpcSpokes_.size(); i++) { + dataSize += computeStringSizeNoTag(producerVpcSpokes_.getRaw(i)); + } + size += dataSize; + size += 1 * getProducerVpcSpokesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -245,6 +417,8 @@ public boolean equals(final java.lang.Object obj) { if (!getUri().equals(other.getUri())) return false; if (!getExcludeExportRangesList().equals(other.getExcludeExportRangesList())) return false; + if (!getIncludeExportRangesList().equals(other.getIncludeExportRangesList())) return false; + if (!getProducerVpcSpokesList().equals(other.getProducerVpcSpokesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,6 +436,14 @@ public int hashCode() { hash = (37 * hash) + EXCLUDE_EXPORT_RANGES_FIELD_NUMBER; hash = (53 * hash) + getExcludeExportRangesList().hashCode(); } + if (getIncludeExportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_EXPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeExportRangesList().hashCode(); + } + if (getProducerVpcSpokesCount() > 0) { + hash = (37 * hash) + PRODUCER_VPC_SPOKES_FIELD_NUMBER; + hash = (53 * hash) + getProducerVpcSpokesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -404,6 +586,8 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; excludeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + producerVpcSpokes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -447,6 +631,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpcNetw excludeExportRanges_.makeImmutable(); result.excludeExportRanges_ = excludeExportRanges_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + includeExportRanges_.makeImmutable(); + result.includeExportRanges_ = includeExportRanges_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + producerVpcSpokes_.makeImmutable(); + result.producerVpcSpokes_ = producerVpcSpokes_; + } } @java.lang.Override @@ -510,6 +702,26 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpcNetwor } onChanged(); } + if (!other.includeExportRanges_.isEmpty()) { + if (includeExportRanges_.isEmpty()) { + includeExportRanges_ = other.includeExportRanges_; + bitField0_ |= 0x00000004; + } else { + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.addAll(other.includeExportRanges_); + } + onChanged(); + } + if (!other.producerVpcSpokes_.isEmpty()) { + if (producerVpcSpokes_.isEmpty()) { + producerVpcSpokes_ = other.producerVpcSpokes_; + bitField0_ |= 0x00000008; + } else { + ensureProducerVpcSpokesIsMutable(); + producerVpcSpokes_.addAll(other.producerVpcSpokes_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -549,6 +761,20 @@ public Builder mergeFrom( excludeExportRanges_.add(s); break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProducerVpcSpokesIsMutable(); + producerVpcSpokes_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -867,6 +1093,399 @@ public Builder addExcludeExportRangesBytes(com.google.protobuf.ByteString value) return this; } + private com.google.protobuf.LazyStringArrayList includeExportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeExportRangesIsMutable() { + if (!includeExportRanges_.isModifiable()) { + includeExportRanges_ = new com.google.protobuf.LazyStringArrayList(includeExportRanges_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeExportRangesList() { + includeExportRanges_.makeImmutable(); + return includeExportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + public int getIncludeExportRangesCount() { + return includeExportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + public java.lang.String getIncludeExportRanges(int index) { + return includeExportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeExportRangesBytes(int index) { + return includeExportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeExportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeExportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeExportRanges(java.lang.Iterable values) { + ensureIncludeExportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeExportRanges_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeExportRanges() { + includeExportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included from peering.
          +     * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeExportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeExportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeExportRangesIsMutable(); + includeExportRanges_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList producerVpcSpokes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProducerVpcSpokesIsMutable() { + if (!producerVpcSpokes_.isModifiable()) { + producerVpcSpokes_ = new com.google.protobuf.LazyStringArrayList(producerVpcSpokes_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the producerVpcSpokes. + */ + public com.google.protobuf.ProtocolStringList getProducerVpcSpokesList() { + producerVpcSpokes_.makeImmutable(); + return producerVpcSpokes_; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of producerVpcSpokes. + */ + public int getProducerVpcSpokesCount() { + return producerVpcSpokes_.size(); + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The producerVpcSpokes at the given index. + */ + public java.lang.String getProducerVpcSpokes(int index) { + return producerVpcSpokes_.get(index); + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the producerVpcSpokes at the given index. + */ + public com.google.protobuf.ByteString getProducerVpcSpokesBytes(int index) { + return producerVpcSpokes_.getByteString(index); + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The producerVpcSpokes to set. + * @return This builder for chaining. + */ + public Builder setProducerVpcSpokes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProducerVpcSpokesIsMutable(); + producerVpcSpokes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The producerVpcSpokes to add. + * @return This builder for chaining. + */ + public Builder addProducerVpcSpokes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProducerVpcSpokesIsMutable(); + producerVpcSpokes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The producerVpcSpokes to add. + * @return This builder for chaining. + */ + public Builder addAllProducerVpcSpokes(java.lang.Iterable values) { + ensureProducerVpcSpokesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, producerVpcSpokes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProducerVpcSpokes() { + producerVpcSpokes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +     * service consumer VPC spoke for. These producer VPCs are connected through
          +     * VPC peering to this spoke's backing VPC network.
          +     * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the producerVpcSpokes to add. + * @return This builder for chaining. + */ + public Builder addProducerVpcSpokesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProducerVpcSpokesIsMutable(); + producerVpcSpokes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java index d86e1956e9e3..12684f7ba811 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpcNetworkOrBuilder.java @@ -107,4 +107,126 @@ public interface LinkedVpcNetworkOrBuilder * @return The bytes of the excludeExportRanges at the given index. */ com.google.protobuf.ByteString getExcludeExportRangesBytes(int index); + + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeExportRanges. + */ + java.util.List getIncludeExportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeExportRanges. + */ + int getIncludeExportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeExportRanges at the given index. + */ + java.lang.String getIncludeExportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included from peering.
          +   * 
          + * + * repeated string include_export_ranges = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeExportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeExportRangesBytes(int index); + + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the producerVpcSpokes. + */ + java.util.List getProducerVpcSpokesList(); + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of producerVpcSpokes. + */ + int getProducerVpcSpokesCount(); + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The producerVpcSpokes at the given index. + */ + java.lang.String getProducerVpcSpokes(int index); + /** + * + * + *
          +   * Output only. The list of Producer VPC spokes that this VPC spoke is a
          +   * service consumer VPC spoke for. These producer VPCs are connected through
          +   * VPC peering to this spoke's backing VPC network.
          +   * 
          + * + * + * repeated string producer_vpc_spokes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the producerVpcSpokes at the given index. + */ + com.google.protobuf.ByteString getProducerVpcSpokesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index 7828e2b47bc0..a6f35d6f1229 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java @@ -44,6 +44,7 @@ private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder build private LinkedVpnTunnels() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -206,6 +207,82 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } + public static final int INCLUDE_IMPORT_RANGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + return includeImportRanges_; + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); } + for (int i = 0; i < includeImportRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, includeImportRanges_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -252,6 +332,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } + { + int dataSize = 0; + for (int i = 0; i < includeImportRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(includeImportRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeImportRangesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -271,6 +359,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUrisList().equals(other.getUrisList())) return false; if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getIncludeImportRangesList().equals(other.getIncludeImportRangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,6 +379,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); + if (getIncludeImportRangesCount() > 0) { + hash = (37 * hash) + INCLUDE_IMPORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeImportRangesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -436,6 +529,7 @@ public Builder clear() { uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); siteToSiteDataTransfer_ = false; vpcNetwork_ = ""; + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -482,6 +576,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn if (((from_bitField0_ & 0x00000004) != 0)) { result.vpcNetwork_ = vpcNetwork_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + includeImportRanges_.makeImmutable(); + result.includeImportRanges_ = includeImportRanges_; + } } @java.lang.Override @@ -548,6 +646,16 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnel bitField0_ |= 0x00000004; onChanged(); } + if (!other.includeImportRanges_.isEmpty()) { + if (includeImportRanges_.isEmpty()) { + includeImportRanges_ = other.includeImportRanges_; + bitField0_ |= 0x00000008; + } else { + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.addAll(other.includeImportRanges_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -593,6 +701,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(s); + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -961,6 +1076,207 @@ public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList includeImportRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeImportRangesIsMutable() { + if (!includeImportRanges_.isModifiable()) { + includeImportRanges_ = new com.google.protobuf.LazyStringArrayList(includeImportRanges_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + public com.google.protobuf.ProtocolStringList getIncludeImportRangesList() { + includeImportRanges_.makeImmutable(); + return includeImportRanges_; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + public int getIncludeImportRangesCount() { + return includeImportRanges_.size(); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + public java.lang.String getIncludeImportRanges(int index) { + return includeImportRanges_.get(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + public com.google.protobuf.ByteString getIncludeImportRangesBytes(int index) { + return includeImportRanges_.getByteString(index); + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeImportRanges to set. + * @return This builder for chaining. + */ + public Builder setIncludeImportRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeImportRanges(java.lang.Iterable values) { + ensureIncludeImportRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeImportRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeImportRanges() { + includeImportRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. IP ranges allowed to be included during import from hub (does not
          +     * control transit connectivity). The only allowed value for now is
          +     * "ALL_IPV4_RANGES".
          +     * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeImportRanges to add. + * @return This builder for chaining. + */ + public Builder addIncludeImportRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeImportRangesIsMutable(); + includeImportRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index af05e17853cb..dfd36ab98e06 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -118,4 +118,67 @@ public interface LinkedVpnTunnelsOrBuilder * @return The bytes for vpcNetwork. */ com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeImportRanges. + */ + java.util.List getIncludeImportRangesList(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeImportRanges. + */ + int getIncludeImportRangesCount(); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeImportRanges at the given index. + */ + java.lang.String getIncludeImportRanges(int index); + /** + * + * + *
          +   * Optional. IP ranges allowed to be included during import from hub (does not
          +   * control transit connectivity). The only allowed value for now is
          +   * "ALL_IPV4_RANGES".
          +   * 
          + * + * repeated string include_import_ranges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeImportRanges at the given index. + */ + com.google.protobuf.ByteString getIncludeImportRangesBytes(int index); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachment.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachment.java new file mode 100644 index 000000000000..6ab267892653 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachment.java @@ -0,0 +1,924 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * A route next hop that leads to an interconnect attachment resource.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} + */ +public final class NextHopInterconnectAttachment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) + NextHopInterconnectAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use NextHopInterconnectAttachment.newBuilder() to construct. + private NextHopInterconnectAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NextHopInterconnectAttachment() { + uri_ = ""; + vpcNetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NextHopInterconnectAttachment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.class, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
          +   * The URI of the interconnect attachment resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + } + /** + * + * + *
          +   * The URI of the interconnect attachment resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 VPC_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + * + * + *
          +   * The VPC network where this interconnect attachment is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + * + * + *
          +   * The VPC network where this interconnect attachment is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 3; + private boolean siteToSiteDataTransfer_ = false; + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this
          +   * interconnect attachment resource. Data transfer is available only in
          +   * [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + 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(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(3, siteToSiteDataTransfer_); + } + 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(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, siteToSiteDataTransfer_); + } + 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.networkconnectivity.v1.NextHopInterconnectAttachment)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment other = + (com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) 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) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment 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.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment 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.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment 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.networkconnectivity.v1.NextHopInterconnectAttachment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + 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.networkconnectivity.v1.NextHopInterconnectAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment 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.networkconnectivity.v1.NextHopInterconnectAttachment 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 route next hop that leads to an interconnect attachment resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.class, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + vpcNetwork_ = ""; + siteToSiteDataTransfer_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopInterconnectAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment build() { + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment buildPartial() { + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment result = + new com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + } + + @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.networkconnectivity.v1.NextHopInterconnectAttachment) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment other) { + if (other + == com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + 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: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + siteToSiteDataTransfer_ = 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 uri_ = ""; + /** + * + * + *
          +     * The URI of the interconnect attachment resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the interconnect attachment resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the interconnect attachment resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + /** + * + * + *
          +     * The URI of the interconnect attachment resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The URI of the interconnect attachment resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 vpcNetwork_ = ""; + /** + * + * + *
          +     * The VPC network where this interconnect attachment is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The VPC network where this interconnect attachment is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The VPC network where this interconnect attachment is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this interconnect attachment is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this interconnect attachment is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this
          +     * interconnect attachment resource. Data transfer is available only in
          +     * [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this
          +     * interconnect attachment resource. Data transfer is available only in
          +     * [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this
          +     * interconnect attachment resource. Data transfer is available only in
          +     * [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000004); + siteToSiteDataTransfer_ = 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.networkconnectivity.v1.NextHopInterconnectAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) + private static final com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment(); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NextHopInterconnectAttachment 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.networkconnectivity.v1.NextHopInterconnectAttachment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachmentOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachmentOrBuilder.java new file mode 100644 index 000000000000..f505427430a9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopInterconnectAttachmentOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface NextHopInterconnectAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The URI of the interconnect attachment resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
          +   * The URI of the interconnect attachment resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
          +   * The VPC network where this interconnect attachment is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + * + * + *
          +   * The VPC network where this interconnect attachment is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this
          +   * interconnect attachment resource. Data transfer is available only in
          +   * [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + boolean getSiteToSiteDataTransfer(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstance.java new file mode 100644 index 000000000000..d312ae620869 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstance.java @@ -0,0 +1,922 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * A route next hop that leads to a Router appliance instance.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} + */ +public final class NextHopRouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) + NextHopRouterApplianceInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use NextHopRouterApplianceInstance.newBuilder() to construct. + private NextHopRouterApplianceInstance( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NextHopRouterApplianceInstance() { + uri_ = ""; + vpcNetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NextHopRouterApplianceInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.class, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
          +   * The URI of the Router appliance instance.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + } + /** + * + * + *
          +   * The URI of the Router appliance instance.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 VPC_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + * + * + *
          +   * The VPC network where this VM is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + * + * + *
          +   * The VPC network where this VM is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 3; + private boolean siteToSiteDataTransfer_ = false; + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this Router
          +   * appliance instance resource. Data transfer is available only in [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + 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(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(3, siteToSiteDataTransfer_); + } + 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(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, siteToSiteDataTransfer_); + } + 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.networkconnectivity.v1.NextHopRouterApplianceInstance)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) 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) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance 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.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance 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.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance 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.networkconnectivity.v1.NextHopRouterApplianceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + 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.networkconnectivity.v1.NextHopRouterApplianceInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance 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.networkconnectivity.v1.NextHopRouterApplianceInstance 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 route next hop that leads to a Router appliance instance.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.class, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + vpcNetwork_ = ""; + siteToSiteDataTransfer_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopRouterApplianceInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance build() { + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance buildPartial() { + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance result = + new com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + } + + @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.networkconnectivity.v1.NextHopRouterApplianceInstance) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance other) { + if (other + == com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + 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: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + siteToSiteDataTransfer_ = 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 uri_ = ""; + /** + * + * + *
          +     * The URI of the Router appliance instance.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the Router appliance instance.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the Router appliance instance.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + /** + * + * + *
          +     * The URI of the Router appliance instance.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The URI of the Router appliance instance.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 vpcNetwork_ = ""; + /** + * + * + *
          +     * The VPC network where this VM is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The VPC network where this VM is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The VPC network where this VM is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this VM is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this VM is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this Router
          +     * appliance instance resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this Router
          +     * appliance instance resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this Router
          +     * appliance instance resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000004); + siteToSiteDataTransfer_ = 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.networkconnectivity.v1.NextHopRouterApplianceInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) + private static final com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance(); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NextHopRouterApplianceInstance 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.networkconnectivity.v1.NextHopRouterApplianceInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstanceOrBuilder.java new file mode 100644 index 000000000000..86a8d060b9c0 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopRouterApplianceInstanceOrBuilder.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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface NextHopRouterApplianceInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The URI of the Router appliance instance.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
          +   * The URI of the Router appliance instance.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
          +   * The VPC network where this VM is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + * + * + *
          +   * The VPC network where this VM is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this Router
          +   * appliance instance resource. Data transfer is available only in [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + boolean getSiteToSiteDataTransfer(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnel.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnel.java new file mode 100644 index 000000000000..087408493ed3 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnel.java @@ -0,0 +1,909 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * A route next hop that leads to a VPN tunnel resource.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopVPNTunnel} + */ +public final class NextHopVPNTunnel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.NextHopVPNTunnel) + NextHopVPNTunnelOrBuilder { + private static final long serialVersionUID = 0L; + // Use NextHopVPNTunnel.newBuilder() to construct. + private NextHopVPNTunnel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NextHopVPNTunnel() { + uri_ = ""; + vpcNetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NextHopVPNTunnel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.class, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
          +   * The URI of the VPN tunnel resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + } + /** + * + * + *
          +   * The URI of the VPN tunnel resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 VPC_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + * + * + *
          +   * The VPC network where this VPN tunnel is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + * + * + *
          +   * The VPC network where this VPN tunnel is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 3; + private boolean siteToSiteDataTransfer_ = false; + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this VPN tunnel
          +   * resource. Data transfer is available only in [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + + 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(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + output.writeBool(3, siteToSiteDataTransfer_); + } + 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(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcNetwork_); + } + if (siteToSiteDataTransfer_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, siteToSiteDataTransfer_); + } + 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.networkconnectivity.v1.NextHopVPNTunnel)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel other = + (com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) 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) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel 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 route next hop that leads to a VPN tunnel resource.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.NextHopVPNTunnel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.NextHopVPNTunnel) + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.class, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + vpcNetwork_ = ""; + siteToSiteDataTransfer_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_NextHopVPNTunnel_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel build() { + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel buildPartial() { + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel result = + new com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_; + } + } + + @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.networkconnectivity.v1.NextHopVPNTunnel) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel other) { + if (other == com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSiteToSiteDataTransfer() != false) { + setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer()); + } + 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: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + siteToSiteDataTransfer_ = 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 uri_ = ""; + /** + * + * + *
          +     * The URI of the VPN tunnel resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the VPN tunnel resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 URI of the VPN tunnel resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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; + } + /** + * + * + *
          +     * The URI of the VPN tunnel resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The URI of the VPN tunnel resource.
          +     * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @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 vpcNetwork_ = ""; + /** + * + * + *
          +     * The VPC network where this VPN tunnel is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The VPC network where this VPN tunnel is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The VPC network where this VPN tunnel is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this VPN tunnel is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The VPC network where this VPN tunnel is located.
          +     * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean siteToSiteDataTransfer_; + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this VPN tunnel
          +     * resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + @java.lang.Override + public boolean getSiteToSiteDataTransfer() { + return siteToSiteDataTransfer_; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this VPN tunnel
          +     * resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @param value The siteToSiteDataTransfer to set. + * @return This builder for chaining. + */ + public Builder setSiteToSiteDataTransfer(boolean value) { + + siteToSiteDataTransfer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Indicates whether site-to-site data transfer is allowed for this VPN tunnel
          +     * resource. Data transfer is available only in [supported
          +     * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +     * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return This builder for chaining. + */ + public Builder clearSiteToSiteDataTransfer() { + bitField0_ = (bitField0_ & ~0x00000004); + siteToSiteDataTransfer_ = 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.networkconnectivity.v1.NextHopVPNTunnel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.NextHopVPNTunnel) + private static final com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel(); + } + + public static com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NextHopVPNTunnel 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.networkconnectivity.v1.NextHopVPNTunnel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnelOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnelOrBuilder.java new file mode 100644 index 000000000000..0a72f209168c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/NextHopVPNTunnelOrBuilder.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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface NextHopVPNTunnelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.NextHopVPNTunnel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The URI of the VPN tunnel resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
          +   * The URI of the VPN tunnel resource.
          +   * 
          + * + * string uri = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
          +   * The VPC network where this VPN tunnel is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + * + * + *
          +   * The VPC network where this VPN tunnel is located.
          +   * 
          + * + * string vpc_network = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
          +   * Indicates whether site-to-site data transfer is allowed for this VPN tunnel
          +   * resource. Data transfer is available only in [supported
          +   * locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
          +   * 
          + * + * bool site_to_site_data_transfer = 3; + * + * @return The siteToSiteDataTransfer. + */ + boolean getSiteToSiteDataTransfer(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java new file mode 100644 index 000000000000..dd83c91c17b2 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyMode.java @@ -0,0 +1,157 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * This enum controls the policy mode used in a hub.
          + * 
          + * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyMode} + */ +public enum PolicyMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * Policy mode is unspecified. It defaults to PRESET
          +   * with preset_topology = MESH.
          +   * 
          + * + * POLICY_MODE_UNSPECIFIED = 0; + */ + POLICY_MODE_UNSPECIFIED(0), + /** + * + * + *
          +   * Hub uses one of the preset topologies.
          +   * 
          + * + * PRESET = 1; + */ + PRESET(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +   * Policy mode is unspecified. It defaults to PRESET
          +   * with preset_topology = MESH.
          +   * 
          + * + * POLICY_MODE_UNSPECIFIED = 0; + */ + public static final int POLICY_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +   * Hub uses one of the preset topologies.
          +   * 
          + * + * PRESET = 1; + */ + public static final int PRESET_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 PolicyMode 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 PolicyMode forNumber(int value) { + switch (value) { + case 0: + return POLICY_MODE_UNSPECIFIED; + case 1: + return PRESET; + 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 PolicyMode findValueByNumber(int number) { + return PolicyMode.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(4); + } + + private static final PolicyMode[] VALUES = values(); + + public static PolicyMode 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 PolicyMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyMode) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java new file mode 100644 index 000000000000..0d96a20b25b4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PresetTopology.java @@ -0,0 +1,185 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * The list of available preset topologies.
          + * 
          + * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.PresetTopology} + */ +public enum PresetTopology implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * Preset topology is unspecified. When policy_mode = PRESET,
          +   * it defaults to MESH.
          +   * 
          + * + * PRESET_TOPOLOGY_UNSPECIFIED = 0; + */ + PRESET_TOPOLOGY_UNSPECIFIED(0), + /** + * + * + *
          +   * Mesh topology is implemented. Group `default` is automatically created.
          +   * All spokes in the hub are added to group `default`.
          +   * 
          + * + * MESH = 2; + */ + MESH(2), + /** + * + * + *
          +   * Star topology is implemented. Two groups, `center` and `edge`, are
          +   * automatically created along with hub creation. Spokes have to join one of
          +   * the groups during creation.
          +   * 
          + * + * STAR = 3; + */ + STAR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +   * Preset topology is unspecified. When policy_mode = PRESET,
          +   * it defaults to MESH.
          +   * 
          + * + * PRESET_TOPOLOGY_UNSPECIFIED = 0; + */ + public static final int PRESET_TOPOLOGY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +   * Mesh topology is implemented. Group `default` is automatically created.
          +   * All spokes in the hub are added to group `default`.
          +   * 
          + * + * MESH = 2; + */ + public static final int MESH_VALUE = 2; + /** + * + * + *
          +   * Star topology is implemented. Two groups, `center` and `edge`, are
          +   * automatically created along with hub creation. Spokes have to join one of
          +   * the groups during creation.
          +   * 
          + * + * STAR = 3; + */ + public static final int STAR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PresetTopology 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 PresetTopology forNumber(int value) { + switch (value) { + case 0: + return PRESET_TOPOLOGY_UNSPECIFIED; + case 2: + return MESH; + case 3: + return STAR; + 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 PresetTopology findValueByNumber(int number) { + return PresetTopology.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(5); + } + + private static final PresetTopology[] VALUES = values(); + + public static PresetTopology 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 PresetTopology(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PresetTopology) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatus.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatus.java new file mode 100644 index 000000000000..cf29612f12a9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatus.java @@ -0,0 +1,1974 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * The status of one or more propagated Private Service Connect connections in a
          + * hub.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PscPropagationStatus} + */ +public final class PscPropagationStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PscPropagationStatus) + PscPropagationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscPropagationStatus.newBuilder() to construct. + private PscPropagationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscPropagationStatus() { + sourceSpoke_ = ""; + sourceGroup_ = ""; + sourceForwardingRule_ = ""; + targetSpoke_ = ""; + targetGroup_ = ""; + code_ = 0; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscPropagationStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.class, + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder.class); + } + + /** + * + * + *
          +   * The Code enum represents the state of the Private Service Connect
          +   * propagation.
          +   * 
          + * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.PscPropagationStatus.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * The code is unspecified.
          +     * 
          + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
          +     * The propagated Private Service Connect connection is ready.
          +     * 
          + * + * READY = 1; + */ + READY(1), + /** + * + * + *
          +     * The Private Service Connect connection is propagating. This is a
          +     * transient state.
          +     * 
          + * + * PROPAGATING = 2; + */ + PROPAGATING(2), + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the VPC
          +     * network or the project of the target spoke has exceeded the connection
          +     * limit set by the producer.
          +     * 
          + * + * ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 3; + */ + ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED(3), + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the NAT
          +     * IP subnet space has been exhausted. It is equivalent to the `Needs
          +     * attention` status of the Private Service Connect connection. See
          +     * https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses.
          +     * 
          + * + * ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 4; + */ + ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED(4), + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the
          +     * `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the
          +     * producer VPC network has been exceeded.
          +     * 
          + * + * ERROR_PRODUCER_QUOTA_EXCEEDED = 5; + */ + ERROR_PRODUCER_QUOTA_EXCEEDED(5), + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the
          +     * `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer
          +     * VPC network has been exceeded.
          +     * 
          + * + * ERROR_CONSUMER_QUOTA_EXCEEDED = 6; + */ + ERROR_CONSUMER_QUOTA_EXCEEDED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * The code is unspecified.
          +     * 
          + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * The propagated Private Service Connect connection is ready.
          +     * 
          + * + * READY = 1; + */ + public static final int READY_VALUE = 1; + /** + * + * + *
          +     * The Private Service Connect connection is propagating. This is a
          +     * transient state.
          +     * 
          + * + * PROPAGATING = 2; + */ + public static final int PROPAGATING_VALUE = 2; + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the VPC
          +     * network or the project of the target spoke has exceeded the connection
          +     * limit set by the producer.
          +     * 
          + * + * ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 3; + */ + public static final int ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED_VALUE = 3; + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the NAT
          +     * IP subnet space has been exhausted. It is equivalent to the `Needs
          +     * attention` status of the Private Service Connect connection. See
          +     * https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses.
          +     * 
          + * + * ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 4; + */ + public static final int ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED_VALUE = 4; + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the
          +     * `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the
          +     * producer VPC network has been exceeded.
          +     * 
          + * + * ERROR_PRODUCER_QUOTA_EXCEEDED = 5; + */ + public static final int ERROR_PRODUCER_QUOTA_EXCEEDED_VALUE = 5; + /** + * + * + *
          +     * The Private Service Connect connection propagation failed because the
          +     * `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer
          +     * VPC network has been exceeded.
          +     * 
          + * + * ERROR_CONSUMER_QUOTA_EXCEEDED = 6; + */ + public static final int ERROR_CONSUMER_QUOTA_EXCEEDED_VALUE = 6; + + 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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return READY; + case 2: + return PROPAGATING; + case 3: + return ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED; + case 4: + return ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED; + case 5: + return ERROR_PRODUCER_QUOTA_EXCEEDED; + case 6: + return ERROR_CONSUMER_QUOTA_EXCEEDED; + 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 Code findValueByNumber(int number) { + return Code.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.networkconnectivity.v1.PscPropagationStatus.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code 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 Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PscPropagationStatus.Code) + } + + public static final int SOURCE_SPOKE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSpoke_ = ""; + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule belongs to.
          +   * 
          + * + * string source_spoke = 1; + * + * @return The sourceSpoke. + */ + @java.lang.Override + public java.lang.String getSourceSpoke() { + java.lang.Object ref = sourceSpoke_; + 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(); + sourceSpoke_ = s; + return s; + } + } + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule belongs to.
          +   * 
          + * + * string source_spoke = 1; + * + * @return The bytes for sourceSpoke. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceSpokeBytes() { + java.lang.Object ref = sourceSpoke_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_GROUP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGroup_ = ""; + /** + * + * + *
          +   * The name of the group that the source spoke belongs to.
          +   * 
          + * + * string source_group = 2; + * + * @return The sourceGroup. + */ + @java.lang.Override + public java.lang.String getSourceGroup() { + java.lang.Object ref = sourceGroup_; + 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(); + sourceGroup_ = s; + return s; + } + } + /** + * + * + *
          +   * The name of the group that the source spoke belongs to.
          +   * 
          + * + * string source_group = 2; + * + * @return The bytes for sourceGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceGroupBytes() { + java.lang.Object ref = sourceGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FORWARDING_RULE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceForwardingRule_ = ""; + /** + * + * + *
          +   * The name of the forwarding rule exported to the hub.
          +   * 
          + * + * string source_forwarding_rule = 3; + * + * @return The sourceForwardingRule. + */ + @java.lang.Override + public java.lang.String getSourceForwardingRule() { + java.lang.Object ref = sourceForwardingRule_; + 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(); + sourceForwardingRule_ = s; + return s; + } + } + /** + * + * + *
          +   * The name of the forwarding rule exported to the hub.
          +   * 
          + * + * string source_forwarding_rule = 3; + * + * @return The bytes for sourceForwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceForwardingRuleBytes() { + java.lang.Object ref = sourceForwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceForwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_SPOKE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetSpoke_ = ""; + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule propagates to.
          +   * 
          + * + * string target_spoke = 4; + * + * @return The targetSpoke. + */ + @java.lang.Override + public java.lang.String getTargetSpoke() { + java.lang.Object ref = targetSpoke_; + 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(); + targetSpoke_ = s; + return s; + } + } + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule propagates to.
          +   * 
          + * + * string target_spoke = 4; + * + * @return The bytes for targetSpoke. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetSpokeBytes() { + java.lang.Object ref = targetSpoke_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetGroup_ = ""; + /** + * + * + *
          +   * The name of the group that the target spoke belongs to.
          +   * 
          + * + * string target_group = 5; + * + * @return The targetGroup. + */ + @java.lang.Override + public java.lang.String getTargetGroup() { + java.lang.Object ref = targetGroup_; + 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(); + targetGroup_ = s; + return s; + } + } + /** + * + * + *
          +   * The name of the group that the target spoke belongs to.
          +   * 
          + * + * string target_group = 5; + * + * @return The bytes for targetGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetGroupBytes() { + java.lang.Object ref = targetGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 6; + private int code_ = 0; + /** + * + * + *
          +   * The propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + /** + * + * + *
          +   * The propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code getCode() { + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code result = + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.forNumber(code_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.UNRECOGNIZED + : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + * + * + *
          +   * The human-readable summary of the Private Service Connect connection
          +   * propagation status.
          +   * 
          + * + * string message = 7; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
          +   * The human-readable summary of the Private Service Connect connection
          +   * propagation status.
          +   * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(sourceSpoke_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceSpoke_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceForwardingRule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceForwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSpoke_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetSpoke_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetGroup_); + } + if (code_ + != com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, message_); + } + 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(sourceSpoke_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceSpoke_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceForwardingRule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceForwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSpoke_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, targetSpoke_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetGroup_); + } + if (code_ + != com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, message_); + } + 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.networkconnectivity.v1.PscPropagationStatus)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PscPropagationStatus other = + (com.google.cloud.networkconnectivity.v1.PscPropagationStatus) obj; + + if (!getSourceSpoke().equals(other.getSourceSpoke())) return false; + if (!getSourceGroup().equals(other.getSourceGroup())) return false; + if (!getSourceForwardingRule().equals(other.getSourceForwardingRule())) return false; + if (!getTargetSpoke().equals(other.getTargetSpoke())) return false; + if (!getTargetGroup().equals(other.getTargetGroup())) return false; + if (code_ != other.code_) return false; + if (!getMessage().equals(other.getMessage())) 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) + SOURCE_SPOKE_FIELD_NUMBER; + hash = (53 * hash) + getSourceSpoke().hashCode(); + hash = (37 * hash) + SOURCE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceGroup().hashCode(); + hash = (37 * hash) + SOURCE_FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getSourceForwardingRule().hashCode(); + hash = (37 * hash) + TARGET_SPOKE_FIELD_NUMBER; + hash = (53 * hash) + getTargetSpoke().hashCode(); + hash = (37 * hash) + TARGET_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getTargetGroup().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus 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 status of one or more propagated Private Service Connect connections in a
          +   * hub.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PscPropagationStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PscPropagationStatus) + com.google.cloud.networkconnectivity.v1.PscPropagationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.class, + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PscPropagationStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceSpoke_ = ""; + sourceGroup_ = ""; + sourceForwardingRule_ = ""; + targetSpoke_ = ""; + targetGroup_ = ""; + code_ = 0; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_PscPropagationStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus build() { + com.google.cloud.networkconnectivity.v1.PscPropagationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus buildPartial() { + com.google.cloud.networkconnectivity.v1.PscPropagationStatus result = + new com.google.cloud.networkconnectivity.v1.PscPropagationStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceSpoke_ = sourceSpoke_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceGroup_ = sourceGroup_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceForwardingRule_ = sourceForwardingRule_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetSpoke_ = targetSpoke_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.targetGroup_ = targetGroup_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.message_ = message_; + } + } + + @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.networkconnectivity.v1.PscPropagationStatus) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PscPropagationStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PscPropagationStatus other) { + if (other + == com.google.cloud.networkconnectivity.v1.PscPropagationStatus.getDefaultInstance()) + return this; + if (!other.getSourceSpoke().isEmpty()) { + sourceSpoke_ = other.sourceSpoke_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceGroup().isEmpty()) { + sourceGroup_ = other.sourceGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceForwardingRule().isEmpty()) { + sourceForwardingRule_ = other.sourceForwardingRule_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTargetSpoke().isEmpty()) { + targetSpoke_ = other.targetSpoke_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTargetGroup().isEmpty()) { + targetGroup_ = other.targetGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000040; + 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: + { + sourceSpoke_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceForwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + targetSpoke_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + targetGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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 sourceSpoke_ = ""; + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule belongs to.
          +     * 
          + * + * string source_spoke = 1; + * + * @return The sourceSpoke. + */ + public java.lang.String getSourceSpoke() { + java.lang.Object ref = sourceSpoke_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSpoke_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule belongs to.
          +     * 
          + * + * string source_spoke = 1; + * + * @return The bytes for sourceSpoke. + */ + public com.google.protobuf.ByteString getSourceSpokeBytes() { + java.lang.Object ref = sourceSpoke_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule belongs to.
          +     * 
          + * + * string source_spoke = 1; + * + * @param value The sourceSpoke to set. + * @return This builder for chaining. + */ + public Builder setSourceSpoke(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceSpoke_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule belongs to.
          +     * 
          + * + * string source_spoke = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceSpoke() { + sourceSpoke_ = getDefaultInstance().getSourceSpoke(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule belongs to.
          +     * 
          + * + * string source_spoke = 1; + * + * @param value The bytes for sourceSpoke to set. + * @return This builder for chaining. + */ + public Builder setSourceSpokeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceSpoke_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceGroup_ = ""; + /** + * + * + *
          +     * The name of the group that the source spoke belongs to.
          +     * 
          + * + * string source_group = 2; + * + * @return The sourceGroup. + */ + public java.lang.String getSourceGroup() { + java.lang.Object ref = sourceGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The name of the group that the source spoke belongs to.
          +     * 
          + * + * string source_group = 2; + * + * @return The bytes for sourceGroup. + */ + public com.google.protobuf.ByteString getSourceGroupBytes() { + java.lang.Object ref = sourceGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The name of the group that the source spoke belongs to.
          +     * 
          + * + * string source_group = 2; + * + * @param value The sourceGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the group that the source spoke belongs to.
          +     * 
          + * + * string source_group = 2; + * + * @return This builder for chaining. + */ + public Builder clearSourceGroup() { + sourceGroup_ = getDefaultInstance().getSourceGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the group that the source spoke belongs to.
          +     * 
          + * + * string source_group = 2; + * + * @param value The bytes for sourceGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceForwardingRule_ = ""; + /** + * + * + *
          +     * The name of the forwarding rule exported to the hub.
          +     * 
          + * + * string source_forwarding_rule = 3; + * + * @return The sourceForwardingRule. + */ + public java.lang.String getSourceForwardingRule() { + java.lang.Object ref = sourceForwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceForwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The name of the forwarding rule exported to the hub.
          +     * 
          + * + * string source_forwarding_rule = 3; + * + * @return The bytes for sourceForwardingRule. + */ + public com.google.protobuf.ByteString getSourceForwardingRuleBytes() { + java.lang.Object ref = sourceForwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceForwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The name of the forwarding rule exported to the hub.
          +     * 
          + * + * string source_forwarding_rule = 3; + * + * @param value The sourceForwardingRule to set. + * @return This builder for chaining. + */ + public Builder setSourceForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceForwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the forwarding rule exported to the hub.
          +     * 
          + * + * string source_forwarding_rule = 3; + * + * @return This builder for chaining. + */ + public Builder clearSourceForwardingRule() { + sourceForwardingRule_ = getDefaultInstance().getSourceForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the forwarding rule exported to the hub.
          +     * 
          + * + * string source_forwarding_rule = 3; + * + * @param value The bytes for sourceForwardingRule to set. + * @return This builder for chaining. + */ + public Builder setSourceForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceForwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object targetSpoke_ = ""; + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule propagates to.
          +     * 
          + * + * string target_spoke = 4; + * + * @return The targetSpoke. + */ + public java.lang.String getTargetSpoke() { + java.lang.Object ref = targetSpoke_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetSpoke_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule propagates to.
          +     * 
          + * + * string target_spoke = 4; + * + * @return The bytes for targetSpoke. + */ + public com.google.protobuf.ByteString getTargetSpokeBytes() { + java.lang.Object ref = targetSpoke_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetSpoke_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule propagates to.
          +     * 
          + * + * string target_spoke = 4; + * + * @param value The targetSpoke to set. + * @return This builder for chaining. + */ + public Builder setTargetSpoke(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetSpoke_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule propagates to.
          +     * 
          + * + * string target_spoke = 4; + * + * @return This builder for chaining. + */ + public Builder clearTargetSpoke() { + targetSpoke_ = getDefaultInstance().getTargetSpoke(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the spoke that the source forwarding rule propagates to.
          +     * 
          + * + * string target_spoke = 4; + * + * @param value The bytes for targetSpoke to set. + * @return This builder for chaining. + */ + public Builder setTargetSpokeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetSpoke_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object targetGroup_ = ""; + /** + * + * + *
          +     * The name of the group that the target spoke belongs to.
          +     * 
          + * + * string target_group = 5; + * + * @return The targetGroup. + */ + public java.lang.String getTargetGroup() { + java.lang.Object ref = targetGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The name of the group that the target spoke belongs to.
          +     * 
          + * + * string target_group = 5; + * + * @return The bytes for targetGroup. + */ + public com.google.protobuf.ByteString getTargetGroupBytes() { + java.lang.Object ref = targetGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The name of the group that the target spoke belongs to.
          +     * 
          + * + * string target_group = 5; + * + * @param value The targetGroup to set. + * @return This builder for chaining. + */ + public Builder setTargetGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the group that the target spoke belongs to.
          +     * 
          + * + * string target_group = 5; + * + * @return This builder for chaining. + */ + public Builder clearTargetGroup() { + targetGroup_ = getDefaultInstance().getTargetGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * The name of the group that the target spoke belongs to.
          +     * 
          + * + * string target_group = 5; + * + * @param value The bytes for targetGroup to set. + * @return This builder for chaining. + */ + public Builder setTargetGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int code_ = 0; + /** + * + * + *
          +     * The propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + /** + * + * + *
          +     * The propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * The propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code getCode() { + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code result = + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.forNumber(code_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * The propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * The propagation status.
          +     * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000020); + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
          +     * The human-readable summary of the Private Service Connect connection
          +     * propagation status.
          +     * 
          + * + * string message = 7; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The human-readable summary of the Private Service Connect connection
          +     * propagation status.
          +     * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The human-readable summary of the Private Service Connect connection
          +     * propagation status.
          +     * 
          + * + * string message = 7; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * The human-readable summary of the Private Service Connect connection
          +     * propagation status.
          +     * 
          + * + * string message = 7; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * The human-readable summary of the Private Service Connect connection
          +     * propagation status.
          +     * 
          + * + * string message = 7; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000040; + 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.networkconnectivity.v1.PscPropagationStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PscPropagationStatus) + private static final com.google.cloud.networkconnectivity.v1.PscPropagationStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PscPropagationStatus(); + } + + public static com.google.cloud.networkconnectivity.v1.PscPropagationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscPropagationStatus 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.networkconnectivity.v1.PscPropagationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatusOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatusOrBuilder.java new file mode 100644 index 000000000000..63a22d1b0463 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PscPropagationStatusOrBuilder.java @@ -0,0 +1,203 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface PscPropagationStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PscPropagationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule belongs to.
          +   * 
          + * + * string source_spoke = 1; + * + * @return The sourceSpoke. + */ + java.lang.String getSourceSpoke(); + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule belongs to.
          +   * 
          + * + * string source_spoke = 1; + * + * @return The bytes for sourceSpoke. + */ + com.google.protobuf.ByteString getSourceSpokeBytes(); + + /** + * + * + *
          +   * The name of the group that the source spoke belongs to.
          +   * 
          + * + * string source_group = 2; + * + * @return The sourceGroup. + */ + java.lang.String getSourceGroup(); + /** + * + * + *
          +   * The name of the group that the source spoke belongs to.
          +   * 
          + * + * string source_group = 2; + * + * @return The bytes for sourceGroup. + */ + com.google.protobuf.ByteString getSourceGroupBytes(); + + /** + * + * + *
          +   * The name of the forwarding rule exported to the hub.
          +   * 
          + * + * string source_forwarding_rule = 3; + * + * @return The sourceForwardingRule. + */ + java.lang.String getSourceForwardingRule(); + /** + * + * + *
          +   * The name of the forwarding rule exported to the hub.
          +   * 
          + * + * string source_forwarding_rule = 3; + * + * @return The bytes for sourceForwardingRule. + */ + com.google.protobuf.ByteString getSourceForwardingRuleBytes(); + + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule propagates to.
          +   * 
          + * + * string target_spoke = 4; + * + * @return The targetSpoke. + */ + java.lang.String getTargetSpoke(); + /** + * + * + *
          +   * The name of the spoke that the source forwarding rule propagates to.
          +   * 
          + * + * string target_spoke = 4; + * + * @return The bytes for targetSpoke. + */ + com.google.protobuf.ByteString getTargetSpokeBytes(); + + /** + * + * + *
          +   * The name of the group that the target spoke belongs to.
          +   * 
          + * + * string target_group = 5; + * + * @return The targetGroup. + */ + java.lang.String getTargetGroup(); + /** + * + * + *
          +   * The name of the group that the target spoke belongs to.
          +   * 
          + * + * string target_group = 5; + * + * @return The bytes for targetGroup. + */ + com.google.protobuf.ByteString getTargetGroupBytes(); + + /** + * + * + *
          +   * The propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + * + * + *
          +   * The propagation status.
          +   * 
          + * + * .google.cloud.networkconnectivity.v1.PscPropagationStatus.Code code = 6; + * + * @return The code. + */ + com.google.cloud.networkconnectivity.v1.PscPropagationStatus.Code getCode(); + + /** + * + * + *
          +   * The human-readable summary of the Private Service Connect connection
          +   * propagation status.
          +   * 
          + * + * string message = 7; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
          +   * The human-readable summary of the Private Service Connect connection
          +   * propagation status.
          +   * 
          + * + * string message = 7; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequest.java new file mode 100644 index 000000000000..38406d8b7462 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequest.java @@ -0,0 +1,1635 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * The request for
          + * [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus].
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.QueryHubStatusRequest} + */ +public final class QueryHubStatusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.QueryHubStatusRequest) + QueryHubStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryHubStatusRequest.newBuilder() to construct. + private QueryHubStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryHubStatusRequest() { + name_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + groupBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryHubStatusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.class, + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the hub.
          +   * 
          + * + * + * 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 name of the hub.
          +   * 
          + * + * + * 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; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. The maximum number of results to return per page.
          +   * 
          + * + * 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. The page token.
          +   * 
          + * + * 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. The page token.
          +   * 
          + * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. An expression that filters the list of results.
          +   * The filter can be used to filter the results by the following fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   *   * `psc_propagation_status.message`
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +   * Optional. An expression that filters the list of results.
          +   * The filter can be used to filter the results by the following fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   *   * `psc_propagation_status.message`
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Sort the results in ascending order by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * If `group_by` is set, the value of the `order_by` field must be the
          +   * same as or a subset of the `group_by` field.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +   * Optional. Sort the results in ascending order by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * If `group_by` is set, the value of the `order_by` field must be the
          +   * same as or a subset of the `group_by` field.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 GROUP_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupBy_ = ""; + /** + * + * + *
          +   * Optional. Aggregate the results by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groupBy. + */ + @java.lang.Override + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + 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(); + groupBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Aggregate the results by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for groupBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = 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_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, groupBy_); + } + 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 (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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, groupBy_); + } + 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.networkconnectivity.v1.QueryHubStatusRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest other = + (com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getGroupBy().equals(other.getGroupBy())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + GROUP_BY_FIELD_NUMBER; + hash = (53 * hash) + getGroupBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest 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 request for
          +   * [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus].
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.QueryHubStatusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.QueryHubStatusRequest) + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.class, + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + groupBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest build() { + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest result = + new com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.groupBy_ = groupBy_; + } + } + + @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.networkconnectivity.v1.QueryHubStatusRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGroupBy().isEmpty()) { + groupBy_ = other.groupBy_; + bitField0_ |= 0x00000020; + 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 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + groupBy_ = input.readStringRequireUtf8(); + 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 name_ = ""; + /** + * + * + *
          +     * Required. The name of the hub.
          +     * 
          + * + * + * 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 name of the hub.
          +     * 
          + * + * + * 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 name of the hub.
          +     * 
          + * + * + * 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 name of the hub.
          +     * 
          + * + * + * 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 name of the hub.
          +     * 
          + * + * + * 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; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. The maximum number of results to return per page.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. The maximum number of results to return per page.
          +     * 
          + * + * 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. The maximum number of results to return per page.
          +     * 
          + * + * 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. The page token.
          +     * 
          + * + * 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. The page token.
          +     * 
          + * + * 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. The page token.
          +     * 
          + * + * 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. The page token.
          +     * 
          + * + * 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. The page token.
          +     * 
          + * + * 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; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. An expression that filters the list of results.
          +     * The filter can be used to filter the results by the following fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     *   * `psc_propagation_status.message`
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +     * Optional. An expression that filters the list of results.
          +     * The filter can be used to filter the results by the following fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     *   * `psc_propagation_status.message`
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +     * Optional. An expression that filters the list of results.
          +     * The filter can be used to filter the results by the following fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     *   * `psc_propagation_status.message`
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An expression that filters the list of results.
          +     * The filter can be used to filter the results by the following fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     *   * `psc_propagation_status.message`
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An expression that filters the list of results.
          +     * The filter can be used to filter the results by the following fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     *   * `psc_propagation_status.message`
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Sort the results in ascending order by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * If `group_by` is set, the value of the `order_by` field must be the
          +     * same as or a subset of the `group_by` field.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +     * Optional. Sort the results in ascending order by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * If `group_by` is set, the value of the `order_by` field must be the
          +     * same as or a subset of the `group_by` field.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
          +     * Optional. Sort the results in ascending order by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * If `group_by` is set, the value of the `order_by` field must be the
          +     * same as or a subset of the `group_by` field.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Sort the results in ascending order by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * If `group_by` is set, the value of the `order_by` field must be the
          +     * same as or a subset of the `group_by` field.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Sort the results in ascending order by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * If `group_by` is set, the value of the `order_by` field must be the
          +     * same as or a subset of the `group_by` field.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object groupBy_ = ""; + /** + * + * + *
          +     * Optional. Aggregate the results by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groupBy. + */ + public java.lang.String getGroupBy() { + java.lang.Object ref = groupBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Aggregate the results by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for groupBy. + */ + public com.google.protobuf.ByteString getGroupByBytes() { + java.lang.Object ref = groupBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Aggregate the results by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The groupBy to set. + * @return This builder for chaining. + */ + public Builder setGroupBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Aggregate the results by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGroupBy() { + groupBy_ = getDefaultInstance().getGroupBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Aggregate the results by the specified fields.
          +     * A comma-separated list of any of these fields:
          +     *   * `psc_propagation_status.source_spoke`
          +     *   * `psc_propagation_status.source_group`
          +     *   * `psc_propagation_status.source_forwarding_rule`
          +     *   * `psc_propagation_status.target_spoke`
          +     *   * `psc_propagation_status.target_group`
          +     *   * `psc_propagation_status.code`
          +     * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for groupBy to set. + * @return This builder for chaining. + */ + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; + bitField0_ |= 0x00000020; + 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.networkconnectivity.v1.QueryHubStatusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.QueryHubStatusRequest) + private static final com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryHubStatusRequest 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.networkconnectivity.v1.QueryHubStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequestOrBuilder.java new file mode 100644 index 000000000000..30f89b73397e --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusRequestOrBuilder.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/cloud/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface QueryHubStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.QueryHubStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the hub.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the hub.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. The maximum number of results to return per page.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. The page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. The page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. An expression that filters the list of results.
          +   * The filter can be used to filter the results by the following fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   *   * `psc_propagation_status.message`
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. An expression that filters the list of results.
          +   * The filter can be used to filter the results by the following fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   *   * `psc_propagation_status.message`
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Sort the results in ascending order by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * If `group_by` is set, the value of the `order_by` field must be the
          +   * same as or a subset of the `group_by` field.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Sort the results in ascending order by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * If `group_by` is set, the value of the `order_by` field must be the
          +   * same as or a subset of the `group_by` field.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. Aggregate the results by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groupBy. + */ + java.lang.String getGroupBy(); + /** + * + * + *
          +   * Optional. Aggregate the results by the specified fields.
          +   * A comma-separated list of any of these fields:
          +   *   * `psc_propagation_status.source_spoke`
          +   *   * `psc_propagation_status.source_group`
          +   *   * `psc_propagation_status.source_forwarding_rule`
          +   *   * `psc_propagation_status.target_spoke`
          +   *   * `psc_propagation_status.target_group`
          +   *   * `psc_propagation_status.code`
          +   * 
          + * + * string group_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for groupBy. + */ + com.google.protobuf.ByteString getGroupByBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponse.java new file mode 100644 index 000000000000..e7b2b9474b58 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponse.java @@ -0,0 +1,1183 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * The response for
          + * [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus].
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.QueryHubStatusResponse} + */ +public final class QueryHubStatusResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.QueryHubStatusResponse) + QueryHubStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryHubStatusResponse.newBuilder() to construct. + private QueryHubStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryHubStatusResponse() { + hubStatusEntries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryHubStatusResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.class, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.Builder.class); + } + + public static final int HUB_STATUS_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List hubStatusEntries_; + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getHubStatusEntriesList() { + return hubStatusEntries_; + } + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getHubStatusEntriesOrBuilderList() { + return hubStatusEntries_; + } + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + @java.lang.Override + public int getHubStatusEntriesCount() { + return hubStatusEntries_.size(); + } + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.HubStatusEntry getHubStatusEntries(int index) { + return hubStatusEntries_.get(index); + } + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder + getHubStatusEntriesOrBuilder(int index) { + return hubStatusEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * The token for the next page of the response. To see more results,
          +   * use this value as the page_token for your next request. If this value
          +   * is empty, there are no more results.
          +   * 
          + * + * 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 token for the next page of the response. To see more results,
          +   * use this value as the page_token for your next request. If this value
          +   * is empty, there are no more results.
          +   * 
          + * + * 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 < hubStatusEntries_.size(); i++) { + output.writeMessage(1, hubStatusEntries_.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 < hubStatusEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubStatusEntries_.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.networkconnectivity.v1.QueryHubStatusResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse other = + (com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse) obj; + + if (!getHubStatusEntriesList().equals(other.getHubStatusEntriesList())) 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 (getHubStatusEntriesCount() > 0) { + hash = (37 * hash) + HUB_STATUS_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getHubStatusEntriesList().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.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse 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 response for
          +   * [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus].
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.QueryHubStatusResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.QueryHubStatusResponse) + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.class, + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (hubStatusEntriesBuilder_ == null) { + hubStatusEntries_ = java.util.Collections.emptyList(); + } else { + hubStatusEntries_ = null; + hubStatusEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_QueryHubStatusResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse build() { + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse buildPartial() { + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse result = + new com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse result) { + if (hubStatusEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hubStatusEntries_ = java.util.Collections.unmodifiableList(hubStatusEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hubStatusEntries_ = hubStatusEntries_; + } else { + result.hubStatusEntries_ = hubStatusEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse.getDefaultInstance()) + return this; + if (hubStatusEntriesBuilder_ == null) { + if (!other.hubStatusEntries_.isEmpty()) { + if (hubStatusEntries_.isEmpty()) { + hubStatusEntries_ = other.hubStatusEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.addAll(other.hubStatusEntries_); + } + onChanged(); + } + } else { + if (!other.hubStatusEntries_.isEmpty()) { + if (hubStatusEntriesBuilder_.isEmpty()) { + hubStatusEntriesBuilder_.dispose(); + hubStatusEntriesBuilder_ = null; + hubStatusEntries_ = other.hubStatusEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + hubStatusEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHubStatusEntriesFieldBuilder() + : null; + } else { + hubStatusEntriesBuilder_.addAllMessages(other.hubStatusEntries_); + } + } + } + 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.networkconnectivity.v1.HubStatusEntry m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.HubStatusEntry.parser(), + extensionRegistry); + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.add(m); + } else { + hubStatusEntriesBuilder_.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 + hubStatusEntries_ = java.util.Collections.emptyList(); + + private void ensureHubStatusEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hubStatusEntries_ = + new java.util.ArrayList( + hubStatusEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.HubStatusEntry, + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder, + com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder> + hubStatusEntriesBuilder_; + + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public java.util.List + getHubStatusEntriesList() { + if (hubStatusEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(hubStatusEntries_); + } else { + return hubStatusEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public int getHubStatusEntriesCount() { + if (hubStatusEntriesBuilder_ == null) { + return hubStatusEntries_.size(); + } else { + return hubStatusEntriesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.HubStatusEntry getHubStatusEntries(int index) { + if (hubStatusEntriesBuilder_ == null) { + return hubStatusEntries_.get(index); + } else { + return hubStatusEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder setHubStatusEntries( + int index, com.google.cloud.networkconnectivity.v1.HubStatusEntry value) { + if (hubStatusEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.set(index, value); + onChanged(); + } else { + hubStatusEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder setHubStatusEntries( + int index, com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder builderForValue) { + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + hubStatusEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder addHubStatusEntries( + com.google.cloud.networkconnectivity.v1.HubStatusEntry value) { + if (hubStatusEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.add(value); + onChanged(); + } else { + hubStatusEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder addHubStatusEntries( + int index, com.google.cloud.networkconnectivity.v1.HubStatusEntry value) { + if (hubStatusEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.add(index, value); + onChanged(); + } else { + hubStatusEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder addHubStatusEntries( + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder builderForValue) { + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.add(builderForValue.build()); + onChanged(); + } else { + hubStatusEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder addHubStatusEntries( + int index, com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder builderForValue) { + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + hubStatusEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder addAllHubStatusEntries( + java.lang.Iterable + values) { + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubStatusEntries_); + onChanged(); + } else { + hubStatusEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder clearHubStatusEntries() { + if (hubStatusEntriesBuilder_ == null) { + hubStatusEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hubStatusEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public Builder removeHubStatusEntries(int index) { + if (hubStatusEntriesBuilder_ == null) { + ensureHubStatusEntriesIsMutable(); + hubStatusEntries_.remove(index); + onChanged(); + } else { + hubStatusEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder + getHubStatusEntriesBuilder(int index) { + return getHubStatusEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder + getHubStatusEntriesOrBuilder(int index) { + if (hubStatusEntriesBuilder_ == null) { + return hubStatusEntries_.get(index); + } else { + return hubStatusEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public java.util.List + getHubStatusEntriesOrBuilderList() { + if (hubStatusEntriesBuilder_ != null) { + return hubStatusEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hubStatusEntries_); + } + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder + addHubStatusEntriesBuilder() { + return getHubStatusEntriesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.HubStatusEntry.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder + addHubStatusEntriesBuilder(int index) { + return getHubStatusEntriesFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1.HubStatusEntry.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hub status.
          +     * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + public java.util.List + getHubStatusEntriesBuilderList() { + return getHubStatusEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.HubStatusEntry, + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder, + com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder> + getHubStatusEntriesFieldBuilder() { + if (hubStatusEntriesBuilder_ == null) { + hubStatusEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.HubStatusEntry, + com.google.cloud.networkconnectivity.v1.HubStatusEntry.Builder, + com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder>( + hubStatusEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + hubStatusEntries_ = null; + } + return hubStatusEntriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * The token for the next page of the response. To see more results,
          +     * use this value as the page_token for your next request. If this value
          +     * is empty, there are no more results.
          +     * 
          + * + * 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 token for the next page of the response. To see more results,
          +     * use this value as the page_token for your next request. If this value
          +     * is empty, there are no more results.
          +     * 
          + * + * 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 token for the next page of the response. To see more results,
          +     * use this value as the page_token for your next request. If this value
          +     * is empty, there are no more results.
          +     * 
          + * + * 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 token for the next page of the response. To see more results,
          +     * use this value as the page_token for your next request. If this value
          +     * is empty, there are no more results.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The token for the next page of the response. To see more results,
          +     * use this value as the page_token for your next request. If this value
          +     * is empty, there are no more results.
          +     * 
          + * + * 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.networkconnectivity.v1.QueryHubStatusResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.QueryHubStatusResponse) + private static final com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse(); + } + + public static com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryHubStatusResponse 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.networkconnectivity.v1.QueryHubStatusResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponseOrBuilder.java new file mode 100644 index 000000000000..9cd7faa85388 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/QueryHubStatusResponseOrBuilder.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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface QueryHubStatusResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.QueryHubStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + java.util.List getHubStatusEntriesList(); + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + com.google.cloud.networkconnectivity.v1.HubStatusEntry getHubStatusEntries(int index); + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + int getHubStatusEntriesCount(); + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + java.util.List + getHubStatusEntriesOrBuilderList(); + /** + * + * + *
          +   * The list of hub status.
          +   * 
          + * + * repeated .google.cloud.networkconnectivity.v1.HubStatusEntry hub_status_entries = 1; + * + */ + com.google.cloud.networkconnectivity.v1.HubStatusEntryOrBuilder getHubStatusEntriesOrBuilder( + int index); + + /** + * + * + *
          +   * The token for the next page of the response. To see more results,
          +   * use this value as the page_token for your next request. If this value
          +   * is empty, there are no more results.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * The token for the next page of the response. To see more results,
          +   * use this value as the page_token for your next request. If this value
          +   * is empty, there are no more results.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java index 398cb79a3d0e..b584f15e28ef 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Route.java @@ -708,7 +708,7 @@ public com.google.protobuf.ByteString getSpokeBytes() { * * *
          -   * Output only. The location of the route.
          +   * Output only. The origin location of the route.
              * Uses the following form: "projects/{project}/locations/{location}"
              * Example: projects/1234/locations/us-central1
              * 
          @@ -733,7 +733,7 @@ public java.lang.String getLocation() { * * *
          -   * Output only. The location of the route.
          +   * Output only. The origin location of the route.
              * Uses the following form: "projects/{project}/locations/{location}"
              * Example: projects/1234/locations/us-central1
              * 
          @@ -755,6 +755,206 @@ public com.google.protobuf.ByteString getLocationBytes() { } } + public static final int PRIORITY_FIELD_NUMBER = 13; + private long priority_ = 0L; + /** + * + * + *
          +   * Output only. The priority of this route. Priority is used to break ties in
          +   * cases where a destination matches more than one route. In these cases the
          +   * route with the lowest-numbered priority value wins.
          +   * 
          + * + * int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + + public static final int NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER = 14; + private com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel nextHopVpnTunnel_; + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopVpnTunnel field is set. + */ + @java.lang.Override + public boolean hasNextHopVpnTunnel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopVpnTunnel. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel getNextHopVpnTunnel() { + return nextHopVpnTunnel_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance() + : nextHopVpnTunnel_; + } + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder + getNextHopVpnTunnelOrBuilder() { + return nextHopVpnTunnel_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance() + : nextHopVpnTunnel_; + } + + public static final int NEXT_HOP_ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER = 15; + private com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + nextHopRouterApplianceInstance_; + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopRouterApplianceInstance field is set. + */ + @java.lang.Override + public boolean hasNextHopRouterApplianceInstance() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopRouterApplianceInstance. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + getNextHopRouterApplianceInstance() { + return nextHopRouterApplianceInstance_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance() + : nextHopRouterApplianceInstance_; + } + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder + getNextHopRouterApplianceInstanceOrBuilder() { + return nextHopRouterApplianceInstance_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance() + : nextHopRouterApplianceInstance_; + } + + public static final int NEXT_HOP_INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 16; + private com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + nextHopInterconnectAttachment_; + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopInterconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasNextHopInterconnectAttachment() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopInterconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + getNextHopInterconnectAttachment() { + return nextHopInterconnectAttachment_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.getDefaultInstance() + : nextHopInterconnectAttachment_; + } + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder + getNextHopInterconnectAttachmentOrBuilder() { + return nextHopInterconnectAttachment_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.getDefaultInstance() + : nextHopInterconnectAttachment_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -805,6 +1005,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, location_); } + if (priority_ != 0L) { + output.writeInt64(13, priority_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getNextHopVpnTunnel()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getNextHopRouterApplianceInstance()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(16, getNextHopInterconnectAttachment()); + } getUnknownFields().writeTo(output); } @@ -858,6 +1070,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, location_); } + if (priority_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, priority_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNextHopVpnTunnel()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getNextHopRouterApplianceInstance()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getNextHopInterconnectAttachment()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -895,6 +1123,23 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (!getSpoke().equals(other.getSpoke())) return false; if (!getLocation().equals(other.getLocation())) return false; + if (getPriority() != other.getPriority()) return false; + if (hasNextHopVpnTunnel() != other.hasNextHopVpnTunnel()) return false; + if (hasNextHopVpnTunnel()) { + if (!getNextHopVpnTunnel().equals(other.getNextHopVpnTunnel())) return false; + } + if (hasNextHopRouterApplianceInstance() != other.hasNextHopRouterApplianceInstance()) + return false; + if (hasNextHopRouterApplianceInstance()) { + if (!getNextHopRouterApplianceInstance().equals(other.getNextHopRouterApplianceInstance())) + return false; + } + if (hasNextHopInterconnectAttachment() != other.hasNextHopInterconnectAttachment()) + return false; + if (hasNextHopInterconnectAttachment()) { + if (!getNextHopInterconnectAttachment().equals(other.getNextHopInterconnectAttachment())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -938,6 +1183,20 @@ public int hashCode() { hash = (53 * hash) + getSpoke().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPriority()); + if (hasNextHopVpnTunnel()) { + hash = (37 * hash) + NEXT_HOP_VPN_TUNNEL_FIELD_NUMBER; + hash = (53 * hash) + getNextHopVpnTunnel().hashCode(); + } + if (hasNextHopRouterApplianceInstance()) { + hash = (37 * hash) + NEXT_HOP_ROUTER_APPLIANCE_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getNextHopRouterApplianceInstance().hashCode(); + } + if (hasNextHopInterconnectAttachment()) { + hash = (37 * hash) + NEXT_HOP_INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getNextHopInterconnectAttachment().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1104,6 +1363,9 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getNextHopVpcNetworkFieldBuilder(); + getNextHopVpnTunnelFieldBuilder(); + getNextHopRouterApplianceInstanceFieldBuilder(); + getNextHopInterconnectAttachmentFieldBuilder(); } } @@ -1135,6 +1397,22 @@ public Builder clear() { state_ = 0; spoke_ = ""; location_ = ""; + priority_ = 0L; + nextHopVpnTunnel_ = null; + if (nextHopVpnTunnelBuilder_ != null) { + nextHopVpnTunnelBuilder_.dispose(); + nextHopVpnTunnelBuilder_ = null; + } + nextHopRouterApplianceInstance_ = null; + if (nextHopRouterApplianceInstanceBuilder_ != null) { + nextHopRouterApplianceInstanceBuilder_.dispose(); + nextHopRouterApplianceInstanceBuilder_ = null; + } + nextHopInterconnectAttachment_ = null; + if (nextHopInterconnectAttachmentBuilder_ != null) { + nextHopInterconnectAttachmentBuilder_.dispose(); + nextHopInterconnectAttachmentBuilder_ = null; + } return this; } @@ -1215,6 +1493,28 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Route result) if (((from_bitField0_ & 0x00000800) != 0)) { result.location_ = location_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.nextHopVpnTunnel_ = + nextHopVpnTunnelBuilder_ == null ? nextHopVpnTunnel_ : nextHopVpnTunnelBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.nextHopRouterApplianceInstance_ = + nextHopRouterApplianceInstanceBuilder_ == null + ? nextHopRouterApplianceInstance_ + : nextHopRouterApplianceInstanceBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nextHopInterconnectAttachment_ = + nextHopInterconnectAttachmentBuilder_ == null + ? nextHopInterconnectAttachment_ + : nextHopInterconnectAttachmentBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -1310,6 +1610,18 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Route other) { bitField0_ |= 0x00000800; onChanged(); } + if (other.getPriority() != 0L) { + setPriority(other.getPriority()); + } + if (other.hasNextHopVpnTunnel()) { + mergeNextHopVpnTunnel(other.getNextHopVpnTunnel()); + } + if (other.hasNextHopRouterApplianceInstance()) { + mergeNextHopRouterApplianceInstance(other.getNextHopRouterApplianceInstance()); + } + if (other.hasNextHopInterconnectAttachment()) { + mergeNextHopInterconnectAttachment(other.getNextHopInterconnectAttachment()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1415,6 +1727,34 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 98 + case 104: + { + priority_ = input.readInt64(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage( + getNextHopVpnTunnelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + input.readMessage( + getNextHopRouterApplianceInstanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + input.readMessage( + getNextHopInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3008,7 +3348,7 @@ public Builder setSpokeBytes(com.google.protobuf.ByteString value) { * * *
          -     * Output only. The location of the route.
          +     * Output only. The origin location of the route.
                * Uses the following form: "projects/{project}/locations/{location}"
                * Example: projects/1234/locations/us-central1
                * 
          @@ -3032,7 +3372,7 @@ public java.lang.String getLocation() { * * *
          -     * Output only. The location of the route.
          +     * Output only. The origin location of the route.
                * Uses the following form: "projects/{project}/locations/{location}"
                * Example: projects/1234/locations/us-central1
                * 
          @@ -3056,7 +3396,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
          -     * Output only. The location of the route.
          +     * Output only. The origin location of the route.
                * Uses the following form: "projects/{project}/locations/{location}"
                * Example: projects/1234/locations/us-central1
                * 
          @@ -3079,7 +3419,7 @@ public Builder setLocation(java.lang.String value) { * * *
          -     * Output only. The location of the route.
          +     * Output only. The origin location of the route.
                * Uses the following form: "projects/{project}/locations/{location}"
                * Example: projects/1234/locations/us-central1
                * 
          @@ -3098,7 +3438,7 @@ public Builder clearLocation() { * * *
          -     * Output only. The location of the route.
          +     * Output only. The origin location of the route.
                * Uses the following form: "projects/{project}/locations/{location}"
                * Example: projects/1234/locations/us-central1
                * 
          @@ -3119,6 +3459,713 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { return this; } + private long priority_; + /** + * + * + *
          +     * Output only. The priority of this route. Priority is used to break ties in
          +     * cases where a destination matches more than one route. In these cases the
          +     * route with the lowest-numbered priority value wins.
          +     * 
          + * + * int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + /** + * + * + *
          +     * Output only. The priority of this route. Priority is used to break ties in
          +     * cases where a destination matches more than one route. In these cases the
          +     * route with the lowest-numbered priority value wins.
          +     * 
          + * + * int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(long value) { + + priority_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The priority of this route. Priority is used to break ties in
          +     * cases where a destination matches more than one route. In these cases the
          +     * route with the lowest-numbered priority value wins.
          +     * 
          + * + * int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00001000); + priority_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel nextHopVpnTunnel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder> + nextHopVpnTunnelBuilder_; + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopVpnTunnel field is set. + */ + public boolean hasNextHopVpnTunnel() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopVpnTunnel. + */ + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel getNextHopVpnTunnel() { + if (nextHopVpnTunnelBuilder_ == null) { + return nextHopVpnTunnel_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance() + : nextHopVpnTunnel_; + } else { + return nextHopVpnTunnelBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopVpnTunnel( + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel value) { + if (nextHopVpnTunnelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextHopVpnTunnel_ = value; + } else { + nextHopVpnTunnelBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopVpnTunnel( + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder builderForValue) { + if (nextHopVpnTunnelBuilder_ == null) { + nextHopVpnTunnel_ = builderForValue.build(); + } else { + nextHopVpnTunnelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeNextHopVpnTunnel( + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel value) { + if (nextHopVpnTunnelBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && nextHopVpnTunnel_ != null + && nextHopVpnTunnel_ + != com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance()) { + getNextHopVpnTunnelBuilder().mergeFrom(value); + } else { + nextHopVpnTunnel_ = value; + } + } else { + nextHopVpnTunnelBuilder_.mergeFrom(value); + } + if (nextHopVpnTunnel_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearNextHopVpnTunnel() { + bitField0_ = (bitField0_ & ~0x00002000); + nextHopVpnTunnel_ = null; + if (nextHopVpnTunnelBuilder_ != null) { + nextHopVpnTunnelBuilder_.dispose(); + nextHopVpnTunnelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder + getNextHopVpnTunnelBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getNextHopVpnTunnelFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder + getNextHopVpnTunnelOrBuilder() { + if (nextHopVpnTunnelBuilder_ != null) { + return nextHopVpnTunnelBuilder_.getMessageOrBuilder(); + } else { + return nextHopVpnTunnel_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.getDefaultInstance() + : nextHopVpnTunnel_; + } + } + /** + * + * + *
          +     * Immutable. The next-hop VPN tunnel for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder> + getNextHopVpnTunnelFieldBuilder() { + if (nextHopVpnTunnelBuilder_ == null) { + nextHopVpnTunnelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel.Builder, + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder>( + getNextHopVpnTunnel(), getParentForChildren(), isClean()); + nextHopVpnTunnel_ = null; + } + return nextHopVpnTunnelBuilder_; + } + + private com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + nextHopRouterApplianceInstance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder> + nextHopRouterApplianceInstanceBuilder_; + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopRouterApplianceInstance field is set. + */ + public boolean hasNextHopRouterApplianceInstance() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopRouterApplianceInstance. + */ + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + getNextHopRouterApplianceInstance() { + if (nextHopRouterApplianceInstanceBuilder_ == null) { + return nextHopRouterApplianceInstance_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance() + : nextHopRouterApplianceInstance_; + } else { + return nextHopRouterApplianceInstanceBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopRouterApplianceInstance( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance value) { + if (nextHopRouterApplianceInstanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextHopRouterApplianceInstance_ = value; + } else { + nextHopRouterApplianceInstanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopRouterApplianceInstance( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder + builderForValue) { + if (nextHopRouterApplianceInstanceBuilder_ == null) { + nextHopRouterApplianceInstance_ = builderForValue.build(); + } else { + nextHopRouterApplianceInstanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeNextHopRouterApplianceInstance( + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance value) { + if (nextHopRouterApplianceInstanceBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && nextHopRouterApplianceInstance_ != null + && nextHopRouterApplianceInstance_ + != com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance()) { + getNextHopRouterApplianceInstanceBuilder().mergeFrom(value); + } else { + nextHopRouterApplianceInstance_ = value; + } + } else { + nextHopRouterApplianceInstanceBuilder_.mergeFrom(value); + } + if (nextHopRouterApplianceInstance_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearNextHopRouterApplianceInstance() { + bitField0_ = (bitField0_ & ~0x00004000); + nextHopRouterApplianceInstance_ = null; + if (nextHopRouterApplianceInstanceBuilder_ != null) { + nextHopRouterApplianceInstanceBuilder_.dispose(); + nextHopRouterApplianceInstanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder + getNextHopRouterApplianceInstanceBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getNextHopRouterApplianceInstanceFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder + getNextHopRouterApplianceInstanceOrBuilder() { + if (nextHopRouterApplianceInstanceBuilder_ != null) { + return nextHopRouterApplianceInstanceBuilder_.getMessageOrBuilder(); + } else { + return nextHopRouterApplianceInstance_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + .getDefaultInstance() + : nextHopRouterApplianceInstance_; + } + } + /** + * + * + *
          +     * Immutable. The next-hop Router appliance instance for packets on this
          +     * route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder> + getNextHopRouterApplianceInstanceFieldBuilder() { + if (nextHopRouterApplianceInstanceBuilder_ == null) { + nextHopRouterApplianceInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder>( + getNextHopRouterApplianceInstance(), getParentForChildren(), isClean()); + nextHopRouterApplianceInstance_ = null; + } + return nextHopRouterApplianceInstanceBuilder_; + } + + private com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + nextHopInterconnectAttachment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder> + nextHopInterconnectAttachmentBuilder_; + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopInterconnectAttachment field is set. + */ + public boolean hasNextHopInterconnectAttachment() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopInterconnectAttachment. + */ + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + getNextHopInterconnectAttachment() { + if (nextHopInterconnectAttachmentBuilder_ == null) { + return nextHopInterconnectAttachment_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + .getDefaultInstance() + : nextHopInterconnectAttachment_; + } else { + return nextHopInterconnectAttachmentBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment value) { + if (nextHopInterconnectAttachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextHopInterconnectAttachment_ = value; + } else { + nextHopInterconnectAttachmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setNextHopInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder + builderForValue) { + if (nextHopInterconnectAttachmentBuilder_ == null) { + nextHopInterconnectAttachment_ = builderForValue.build(); + } else { + nextHopInterconnectAttachmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeNextHopInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment value) { + if (nextHopInterconnectAttachmentBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && nextHopInterconnectAttachment_ != null + && nextHopInterconnectAttachment_ + != com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + .getDefaultInstance()) { + getNextHopInterconnectAttachmentBuilder().mergeFrom(value); + } else { + nextHopInterconnectAttachment_ = value; + } + } else { + nextHopInterconnectAttachmentBuilder_.mergeFrom(value); + } + if (nextHopInterconnectAttachment_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearNextHopInterconnectAttachment() { + bitField0_ = (bitField0_ & ~0x00008000); + nextHopInterconnectAttachment_ = null; + if (nextHopInterconnectAttachmentBuilder_ != null) { + nextHopInterconnectAttachmentBuilder_.dispose(); + nextHopInterconnectAttachmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder + getNextHopInterconnectAttachmentBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getNextHopInterconnectAttachmentFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder + getNextHopInterconnectAttachmentOrBuilder() { + if (nextHopInterconnectAttachmentBuilder_ != null) { + return nextHopInterconnectAttachmentBuilder_.getMessageOrBuilder(); + } else { + return nextHopInterconnectAttachment_ == null + ? com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + .getDefaultInstance() + : nextHopInterconnectAttachment_; + } + } + /** + * + * + *
          +     * Immutable. The next-hop VLAN attachment for packets on this route.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder> + getNextHopInterconnectAttachmentFieldBuilder() { + if (nextHopInterconnectAttachmentBuilder_ == null) { + nextHopInterconnectAttachmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment.Builder, + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder>( + getNextHopInterconnectAttachment(), getParentForChildren(), isClean()); + nextHopInterconnectAttachment_ = null; + } + return nextHopInterconnectAttachmentBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java index 139483d6ac00..f6829e6f0d80 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteOrBuilder.java @@ -415,7 +415,7 @@ java.lang.String getLabelsOrDefault( * * *
          -   * Output only. The location of the route.
          +   * Output only. The origin location of the route.
              * Uses the following form: "projects/{project}/locations/{location}"
              * Example: projects/1234/locations/us-central1
              * 
          @@ -429,7 +429,7 @@ java.lang.String getLabelsOrDefault( * * *
          -   * Output only. The location of the route.
          +   * Output only. The origin location of the route.
              * Uses the following form: "projects/{project}/locations/{location}"
              * Example: projects/1234/locations/us-central1
              * 
          @@ -439,4 +439,149 @@ java.lang.String getLabelsOrDefault( * @return The bytes for location. */ com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
          +   * Output only. The priority of this route. Priority is used to break ties in
          +   * cases where a destination matches more than one route. In these cases the
          +   * route with the lowest-numbered priority value wins.
          +   * 
          + * + * int64 priority = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The priority. + */ + long getPriority(); + + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopVpnTunnel field is set. + */ + boolean hasNextHopVpnTunnel(); + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopVpnTunnel. + */ + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnel getNextHopVpnTunnel(); + /** + * + * + *
          +   * Immutable. The next-hop VPN tunnel for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopVPNTunnel next_hop_vpn_tunnel = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.networkconnectivity.v1.NextHopVPNTunnelOrBuilder getNextHopVpnTunnelOrBuilder(); + + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopRouterApplianceInstance field is set. + */ + boolean hasNextHopRouterApplianceInstance(); + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopRouterApplianceInstance. + */ + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance + getNextHopRouterApplianceInstance(); + /** + * + * + *
          +   * Immutable. The next-hop Router appliance instance for packets on this
          +   * route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.networkconnectivity.v1.NextHopRouterApplianceInstanceOrBuilder + getNextHopRouterApplianceInstanceOrBuilder(); + + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the nextHopInterconnectAttachment field is set. + */ + boolean hasNextHopInterconnectAttachment(); + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The nextHopInterconnectAttachment. + */ + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment + getNextHopInterconnectAttachment(); + /** + * + * + *
          +   * Immutable. The next-hop VLAN attachment for packets on this route.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachmentOrBuilder + getNextHopInterconnectAttachmentOrBuilder(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java index 27c28b3b0de8..37a582735683 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteType.java @@ -61,6 +61,18 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * VPC_SECONDARY_SUBNET = 2; */ VPC_SECONDARY_SUBNET(2), + /** + * + * + *
          +   * The route leads to a destination in a dynamic route. Dynamic routes are
          +   * derived from Border Gateway Protocol (BGP) advertisements received from an
          +   * NCC hybrid spoke.
          +   * 
          + * + * DYNAMIC_ROUTE = 3; + */ + DYNAMIC_ROUTE(3), UNRECOGNIZED(-1), ; @@ -96,6 +108,18 @@ public enum RouteType implements com.google.protobuf.ProtocolMessageEnum { * VPC_SECONDARY_SUBNET = 2; */ public static final int VPC_SECONDARY_SUBNET_VALUE = 2; + /** + * + * + *
          +   * The route leads to a destination in a dynamic route. Dynamic routes are
          +   * derived from Border Gateway Protocol (BGP) advertisements received from an
          +   * NCC hybrid spoke.
          +   * 
          + * + * DYNAMIC_ROUTE = 3; + */ + public static final int DYNAMIC_ROUTE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -127,6 +151,8 @@ public static RouteType forNumber(int value) { return VPC_PRIMARY_SUBNET; case 2: return VPC_SECONDARY_SUBNET; + case 3: + return DYNAMIC_ROUTE; default: return null; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index e7de154da66f..b3ba5d1022ce 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java @@ -1979,6 +1979,65 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpcNetwork getLinkedVpcNetw : linkedVpcNetwork_; } + public static final int LINKED_PRODUCER_VPC_NETWORK_FIELD_NUMBER = 26; + private com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + linkedProducerVpcNetwork_; + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the linkedProducerVpcNetwork field is set. + */ + @java.lang.Override + public boolean hasLinkedProducerVpcNetwork() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The linkedProducerVpcNetwork. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + getLinkedProducerVpcNetwork() { + return linkedProducerVpcNetwork_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance() + : linkedProducerVpcNetwork_; + } + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder + getLinkedProducerVpcNetworkOrBuilder() { + return linkedProducerVpcNetwork_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance() + : linkedProducerVpcNetwork_; + } + public static final int UNIQUE_ID_FIELD_NUMBER = 11; @SuppressWarnings("serial") @@ -2260,6 +2319,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, group_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(26, getLinkedProducerVpcNetwork()); + } getUnknownFields().writeTo(output); } @@ -2326,6 +2388,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, group_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getLinkedProducerVpcNetwork()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2375,6 +2442,10 @@ public boolean equals(final java.lang.Object obj) { if (hasLinkedVpcNetwork()) { if (!getLinkedVpcNetwork().equals(other.getLinkedVpcNetwork())) return false; } + if (hasLinkedProducerVpcNetwork() != other.hasLinkedProducerVpcNetwork()) return false; + if (hasLinkedProducerVpcNetwork()) { + if (!getLinkedProducerVpcNetwork().equals(other.getLinkedProducerVpcNetwork())) return false; + } if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getReasonsList().equals(other.getReasonsList())) return false; @@ -2426,6 +2497,10 @@ public int hashCode() { hash = (37 * hash) + LINKED_VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getLinkedVpcNetwork().hashCode(); } + if (hasLinkedProducerVpcNetwork()) { + hash = (37 * hash) + LINKED_PRODUCER_VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getLinkedProducerVpcNetwork().hashCode(); + } hash = (37 * hash) + UNIQUE_ID_FIELD_NUMBER; hash = (53 * hash) + getUniqueId().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -2613,6 +2688,7 @@ private void maybeForceBuilderInitialization() { getLinkedInterconnectAttachmentsFieldBuilder(); getLinkedRouterApplianceInstancesFieldBuilder(); getLinkedVpcNetworkFieldBuilder(); + getLinkedProducerVpcNetworkFieldBuilder(); getReasonsFieldBuilder(); } } @@ -2656,6 +2732,11 @@ public Builder clear() { linkedVpcNetworkBuilder_.dispose(); linkedVpcNetworkBuilder_ = null; } + linkedProducerVpcNetwork_ = null; + if (linkedProducerVpcNetworkBuilder_ != null) { + linkedProducerVpcNetworkBuilder_.dispose(); + linkedProducerVpcNetworkBuilder_ = null; + } uniqueId_ = ""; state_ = 0; if (reasonsBuilder_ == null) { @@ -2664,7 +2745,7 @@ public Builder clear() { reasons_ = null; reasonsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); spokeType_ = 0; return this; } @@ -2703,9 +2784,9 @@ public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.Spoke result) { if (reasonsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { reasons_ = java.util.Collections.unmodifiableList(reasons_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.reasons_ = reasons_; } else { @@ -2765,12 +2846,19 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result) to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.uniqueId_ = uniqueId_; + result.linkedProducerVpcNetwork_ = + linkedProducerVpcNetworkBuilder_ == null + ? linkedProducerVpcNetwork_ + : linkedProducerVpcNetworkBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.uniqueId_ = uniqueId_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.spokeType_ = spokeType_; } result.bitField0_ |= to_bitField0_; @@ -2861,9 +2949,12 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { if (other.hasLinkedVpcNetwork()) { mergeLinkedVpcNetwork(other.getLinkedVpcNetwork()); } + if (other.hasLinkedProducerVpcNetwork()) { + mergeLinkedProducerVpcNetwork(other.getLinkedProducerVpcNetwork()); + } if (!other.getUniqueId().isEmpty()) { uniqueId_ = other.uniqueId_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.state_ != 0) { @@ -2873,7 +2964,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { if (!other.reasons_.isEmpty()) { if (reasons_.isEmpty()) { reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureReasonsIsMutable(); reasons_.addAll(other.reasons_); @@ -2886,7 +2977,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) { reasonsBuilder_.dispose(); reasonsBuilder_ = null; reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); reasonsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReasonsFieldBuilder() @@ -2970,13 +3061,13 @@ public Builder mergeFrom( case 90: { uniqueId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 90 case 120: { state_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 120 case 138: @@ -3025,7 +3116,7 @@ public Builder mergeFrom( case 176: { spokeType_ = input.readEnum(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 176 case 186: @@ -3034,6 +3125,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 186 + case 210: + { + input.readMessage( + getLinkedProducerVpcNetworkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4920,6 +5018,218 @@ public Builder clearLinkedVpcNetwork() { return linkedVpcNetworkBuilder_; } + private com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + linkedProducerVpcNetwork_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder> + linkedProducerVpcNetworkBuilder_; + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the linkedProducerVpcNetwork field is set. + */ + public boolean hasLinkedProducerVpcNetwork() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The linkedProducerVpcNetwork. + */ + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + getLinkedProducerVpcNetwork() { + if (linkedProducerVpcNetworkBuilder_ == null) { + return linkedProducerVpcNetwork_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance() + : linkedProducerVpcNetwork_; + } else { + return linkedProducerVpcNetworkBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLinkedProducerVpcNetwork( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork value) { + if (linkedProducerVpcNetworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkedProducerVpcNetwork_ = value; + } else { + linkedProducerVpcNetworkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLinkedProducerVpcNetwork( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder builderForValue) { + if (linkedProducerVpcNetworkBuilder_ == null) { + linkedProducerVpcNetwork_ = builderForValue.build(); + } else { + linkedProducerVpcNetworkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLinkedProducerVpcNetwork( + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork value) { + if (linkedProducerVpcNetworkBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && linkedProducerVpcNetwork_ != null + && linkedProducerVpcNetwork_ + != com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork + .getDefaultInstance()) { + getLinkedProducerVpcNetworkBuilder().mergeFrom(value); + } else { + linkedProducerVpcNetwork_ = value; + } + } else { + linkedProducerVpcNetworkBuilder_.mergeFrom(value); + } + if (linkedProducerVpcNetwork_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLinkedProducerVpcNetwork() { + bitField0_ = (bitField0_ & ~0x00000800); + linkedProducerVpcNetwork_ = null; + if (linkedProducerVpcNetworkBuilder_ != null) { + linkedProducerVpcNetworkBuilder_.dispose(); + linkedProducerVpcNetworkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder + getLinkedProducerVpcNetworkBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getLinkedProducerVpcNetworkFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder + getLinkedProducerVpcNetworkOrBuilder() { + if (linkedProducerVpcNetworkBuilder_ != null) { + return linkedProducerVpcNetworkBuilder_.getMessageOrBuilder(); + } else { + return linkedProducerVpcNetwork_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.getDefaultInstance() + : linkedProducerVpcNetwork_; + } + } + /** + * + * + *
          +     * Optional. The linked producer VPC that is associated with the spoke.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder> + getLinkedProducerVpcNetworkFieldBuilder() { + if (linkedProducerVpcNetworkBuilder_ == null) { + linkedProducerVpcNetworkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork.Builder, + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder>( + getLinkedProducerVpcNetwork(), getParentForChildren(), isClean()); + linkedProducerVpcNetwork_ = null; + } + return linkedProducerVpcNetworkBuilder_; + } + private java.lang.Object uniqueId_ = ""; /** * @@ -4988,7 +5298,7 @@ public Builder setUniqueId(java.lang.String value) { throw new NullPointerException(); } uniqueId_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5007,7 +5317,7 @@ public Builder setUniqueId(java.lang.String value) { */ public Builder clearUniqueId() { uniqueId_ = getDefaultInstance().getUniqueId(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -5031,7 +5341,7 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uniqueId_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5070,7 +5380,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5111,7 +5421,7 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; state_ = value.getNumber(); onChanged(); return this; @@ -5130,7 +5440,7 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); state_ = 0; onChanged(); return this; @@ -5140,11 +5450,11 @@ public Builder clearState() { java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { reasons_ = new java.util.ArrayList( reasons_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -5399,7 +5709,7 @@ public Builder addAllReasons( public Builder clearReasons() { if (reasonsBuilder_ == null) { reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { reasonsBuilder_.clear(); @@ -5549,7 +5859,7 @@ public com.google.cloud.networkconnectivity.v1.Spoke.StateReason.Builder addReas com.google.cloud.networkconnectivity.v1.Spoke.StateReason, com.google.cloud.networkconnectivity.v1.Spoke.StateReason.Builder, com.google.cloud.networkconnectivity.v1.Spoke.StateReasonOrBuilder>( - reasons_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + reasons_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); reasons_ = null; } return reasonsBuilder_; @@ -5589,7 +5899,7 @@ public int getSpokeTypeValue() { */ public Builder setSpokeTypeValue(int value) { spokeType_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5632,7 +5942,7 @@ public Builder setSpokeType(com.google.cloud.networkconnectivity.v1.SpokeType va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; spokeType_ = value.getNumber(); onChanged(); return this; @@ -5651,7 +5961,7 @@ public Builder setSpokeType(com.google.cloud.networkconnectivity.v1.SpokeType va * @return This builder for chaining. */ public Builder clearSpokeType() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); spokeType_ = 0; onChanged(); return this; diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 06a7138f7847..6f508967fea3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java @@ -442,6 +442,48 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.networkconnectivity.v1.LinkedVpcNetworkOrBuilder getLinkedVpcNetworkOrBuilder(); + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the linkedProducerVpcNetwork field is set. + */ + boolean hasLinkedProducerVpcNetwork(); + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The linkedProducerVpcNetwork. + */ + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork getLinkedProducerVpcNetwork(); + /** + * + * + *
          +   * Optional. The linked producer VPC that is associated with the spoke.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.LinkedProducerVpcNetwork linked_producer_vpc_network = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.LinkedProducerVpcNetworkOrBuilder + getLinkedProducerVpcNetworkOrBuilder(); + /** * * diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java index 48d6ea7ca37b..c8dfea255be1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeType.java @@ -80,6 +80,16 @@ public enum SpokeType implements com.google.protobuf.ProtocolMessageEnum { * VPC_NETWORK = 4; */ VPC_NETWORK(4), + /** + * + * + *
          +   * Spokes that are backed by a producer VPC network.
          +   * 
          + * + * PRODUCER_VPC_NETWORK = 7; + */ + PRODUCER_VPC_NETWORK(7), UNRECOGNIZED(-1), ; @@ -133,6 +143,16 @@ public enum SpokeType implements com.google.protobuf.ProtocolMessageEnum { * VPC_NETWORK = 4; */ public static final int VPC_NETWORK_VALUE = 4; + /** + * + * + *
          +   * Spokes that are backed by a producer VPC network.
          +   * 
          + * + * PRODUCER_VPC_NETWORK = 7; + */ + public static final int PRODUCER_VPC_NETWORK_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -168,6 +188,8 @@ public static SpokeType forNumber(int value) { return ROUTER_APPLIANCE; case 4: return VPC_NETWORK; + case 7: + return PRODUCER_VPC_NETWORK; default: return null; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequest.java new file mode 100644 index 000000000000..af7e81572fd9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequest.java @@ -0,0 +1,1348 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
          + * Request for
          + * [HubService.UpdateGroup][google.cloud.networkconnectivity.v1.HubService.UpdateGroup]
          + * method.
          + * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateGroupRequest} + */ +public final class UpdateGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateGroupRequest) + UpdateGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGroupRequest.newBuilder() to construct. + private UpdateGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGroupRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networkconnectivity.v1.Group group_; + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the group field is set. + */ + @java.lang.Override + public boolean hasGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The group. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Group getGroup() { + return group_ == null + ? com.google.cloud.networkconnectivity.v1.Group.getDefaultInstance() + : group_; + } + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GroupOrBuilder getGroupOrBuilder() { + return group_ == null + ? com.google.cloud.networkconnectivity.v1.Group.getDefaultInstance() + : group_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. A request ID to identify requests. Specify a unique request ID so
          +   * that if you must retry your request, the server knows to ignore the request
          +   * if it has already been completed. The server guarantees that a request
          +   * doesn't result in creation of duplicate commitments for at least 60
          +   * minutes.
          +   *
          +   * For example, consider a situation where you make an initial request and
          +   * the request times out. If you make the request again with the same request
          +   * ID, the server can check to see whether the original operation
          +   * was received. If it was, the server ignores the second request. This
          +   * behavior prevents clients from mistakenly creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID, with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A request ID to identify requests. Specify a unique request ID so
          +   * that if you must retry your request, the server knows to ignore the request
          +   * if it has already been completed. The server guarantees that a request
          +   * doesn't result in creation of duplicate commitments for at least 60
          +   * minutes.
          +   *
          +   * For example, consider a situation where you make an initial request and
          +   * the request times out. If you make the request again with the same request
          +   * ID, the server can check to see whether the original operation
          +   * was received. If it was, the server ignores the second request. This
          +   * behavior prevents clients from mistakenly creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID, with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + 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.networkconnectivity.v1.UpdateGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasGroup() != other.hasGroup()) return false; + if (hasGroup()) { + if (!getGroup().equals(other.getGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasGroup()) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest 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
          +   * [HubService.UpdateGroup][google.cloud.networkconnectivity.v1.HubService.UpdateGroup]
          +   * method.
          +   * 
          + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateGroupRequest) + com.google.cloud.networkconnectivity.v1.UpdateGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + group_ = null; + if (groupBuilder_ != null) { + groupBuilder_.dispose(); + groupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGroupRequest getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGroupRequest build() { + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateGroupRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.UpdateGroupRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.group_ = groupBuilder_ == null ? group_ : groupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + 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.networkconnectivity.v1.UpdateGroupRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateGroupRequest other) { + if (other == com.google.cloud.networkconnectivity.v1.UpdateGroupRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasGroup()) { + mergeGroup(other.getGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Optional. In the case of an update to an existing group, field mask is used
          +     * to specify the fields to be overwritten. The fields specified in the
          +     * update_mask are relative to the resource, not the full request. A field is
          +     * overwritten if it is in the mask. If the user does not provide a mask, then
          +     * all fields are overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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_; + } + + private com.google.cloud.networkconnectivity.v1.Group group_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Group, + com.google.cloud.networkconnectivity.v1.Group.Builder, + com.google.cloud.networkconnectivity.v1.GroupOrBuilder> + groupBuilder_; + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the group field is set. + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The group. + */ + public com.google.cloud.networkconnectivity.v1.Group getGroup() { + if (groupBuilder_ == null) { + return group_ == null + ? com.google.cloud.networkconnectivity.v1.Group.getDefaultInstance() + : group_; + } else { + return groupBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGroup(com.google.cloud.networkconnectivity.v1.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + } else { + groupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGroup(com.google.cloud.networkconnectivity.v1.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + group_ = builderForValue.build(); + } else { + groupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGroup(com.google.cloud.networkconnectivity.v1.Group value) { + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && group_ != null + && group_ != com.google.cloud.networkconnectivity.v1.Group.getDefaultInstance()) { + getGroupBuilder().mergeFrom(value); + } else { + group_ = value; + } + } else { + groupBuilder_.mergeFrom(value); + } + if (group_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + group_ = null; + if (groupBuilder_ != null) { + groupBuilder_.dispose(); + groupBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Group.Builder getGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.GroupOrBuilder getGroupOrBuilder() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilder(); + } else { + return group_ == null + ? com.google.cloud.networkconnectivity.v1.Group.getDefaultInstance() + : group_; + } + } + /** + * + * + *
          +     * Required. The state that the group should be in after the update.
          +     * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Group, + com.google.cloud.networkconnectivity.v1.Group.Builder, + com.google.cloud.networkconnectivity.v1.GroupOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Group, + com.google.cloud.networkconnectivity.v1.Group.Builder, + com.google.cloud.networkconnectivity.v1.GroupOrBuilder>( + getGroup(), getParentForChildren(), isClean()); + group_ = null; + } + return groupBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. A request ID to identify requests. Specify a unique request ID so
          +     * that if you must retry your request, the server knows to ignore the request
          +     * if it has already been completed. The server guarantees that a request
          +     * doesn't result in creation of duplicate commitments for at least 60
          +     * minutes.
          +     *
          +     * For example, consider a situation where you make an initial request and
          +     * the request times out. If you make the request again with the same request
          +     * ID, the server can check to see whether the original operation
          +     * was received. If it was, the server ignores the second request. This
          +     * behavior prevents clients from mistakenly creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID, with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A request ID to identify requests. Specify a unique request ID so
          +     * that if you must retry your request, the server knows to ignore the request
          +     * if it has already been completed. The server guarantees that a request
          +     * doesn't result in creation of duplicate commitments for at least 60
          +     * minutes.
          +     *
          +     * For example, consider a situation where you make an initial request and
          +     * the request times out. If you make the request again with the same request
          +     * ID, the server can check to see whether the original operation
          +     * was received. If it was, the server ignores the second request. This
          +     * behavior prevents clients from mistakenly creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID, with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A request ID to identify requests. Specify a unique request ID so
          +     * that if you must retry your request, the server knows to ignore the request
          +     * if it has already been completed. The server guarantees that a request
          +     * doesn't result in creation of duplicate commitments for at least 60
          +     * minutes.
          +     *
          +     * For example, consider a situation where you make an initial request and
          +     * the request times out. If you make the request again with the same request
          +     * ID, the server can check to see whether the original operation
          +     * was received. If it was, the server ignores the second request. This
          +     * behavior prevents clients from mistakenly creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID, with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A request ID to identify requests. Specify a unique request ID so
          +     * that if you must retry your request, the server knows to ignore the request
          +     * if it has already been completed. The server guarantees that a request
          +     * doesn't result in creation of duplicate commitments for at least 60
          +     * minutes.
          +     *
          +     * For example, consider a situation where you make an initial request and
          +     * the request times out. If you make the request again with the same request
          +     * ID, the server can check to see whether the original operation
          +     * was received. If it was, the server ignores the second request. This
          +     * behavior prevents clients from mistakenly creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID, with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A request ID to identify requests. Specify a unique request ID so
          +     * that if you must retry your request, the server knows to ignore the request
          +     * if it has already been completed. The server guarantees that a request
          +     * doesn't result in creation of duplicate commitments for at least 60
          +     * minutes.
          +     *
          +     * For example, consider a situation where you make an initial request and
          +     * the request times out. If you make the request again with the same request
          +     * ID, the server can check to see whether the original operation
          +     * was received. If it was, the server ignores the second request. This
          +     * behavior prevents clients from mistakenly creating duplicate commitments.
          +     *
          +     * The request ID must be a valid UUID, with the exception that zero UUID is
          +     * not supported (00000000-0000-0000-0000-000000000000).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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.networkconnectivity.v1.UpdateGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateGroupRequest) + private static final com.google.cloud.networkconnectivity.v1.UpdateGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateGroupRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGroupRequest 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.networkconnectivity.v1.UpdateGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequestOrBuilder.java new file mode 100644 index 000000000000..6a0eadb118be --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateGroupRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/networkconnectivity/v1/hub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkconnectivity.v1; + +public interface UpdateGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Optional. In the case of an update to an existing group, field mask is used
          +   * to specify the fields to be overwritten. The fields specified in the
          +   * update_mask are relative to the resource, not the full request. A field is
          +   * overwritten if it is in the mask. If the user does not provide a mask, then
          +   * all fields are overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the group field is set. + */ + boolean hasGroup(); + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The group. + */ + com.google.cloud.networkconnectivity.v1.Group getGroup(); + /** + * + * + *
          +   * Required. The state that the group should be in after the update.
          +   * 
          + * + * + * .google.cloud.networkconnectivity.v1.Group group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.GroupOrBuilder getGroupOrBuilder(); + + /** + * + * + *
          +   * Optional. A request ID to identify requests. Specify a unique request ID so
          +   * that if you must retry your request, the server knows to ignore the request
          +   * if it has already been completed. The server guarantees that a request
          +   * doesn't result in creation of duplicate commitments for at least 60
          +   * minutes.
          +   *
          +   * For example, consider a situation where you make an initial request and
          +   * the request times out. If you make the request again with the same request
          +   * ID, the server can check to see whether the original operation
          +   * was received. If it was, the server ignores the second request. This
          +   * behavior prevents clients from mistakenly creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID, with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. A request ID to identify requests. Specify a unique request ID so
          +   * that if you must retry your request, the server knows to ignore the request
          +   * if it has already been completed. The server guarantees that a request
          +   * doesn't result in creation of duplicate commitments for at least 60
          +   * minutes.
          +   *
          +   * For example, consider a situation where you make an initial request and
          +   * the request times out. If you make the request again with the same request
          +   * ID, the server can check to see whether the original operation
          +   * was received. If it was, the server ignores the second request. This
          +   * behavior prevents clients from mistakenly creating duplicate commitments.
          +   *
          +   * The request ID must be a valid UUID, with the exception that zero UUID is
          +   * not supported (00000000-0000-0000-0000-000000000000).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto index 7f6284430d91..84ea3211bc3f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto @@ -19,6 +19,7 @@ package google.cloud.networkconnectivity.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/networkconnectivity/v1/common.proto"; import "google/longrunning/operations.proto"; @@ -115,6 +116,15 @@ service HubService { option (google.api.method_signature) = "name"; } + // Query the Private Service Connect propagation status of a Network + // Connectivity Center hub. + rpc QueryHubStatus(QueryHubStatusRequest) returns (QueryHubStatusResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/global/hubs/*}:queryStatus" + }; + option (google.api.method_signature) = "name"; + } + // Lists the Network Connectivity Center spokes in a specified project and // location. rpc ListSpokes(ListSpokesRequest) returns (ListSpokesResponse) { @@ -218,7 +228,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Lists routes in a given project. + // Lists routes in a given route table. rpc ListRoutes(ListRoutesRequest) returns (ListRoutesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/global/hubs/*/routeTables/*}/routes" @@ -226,7 +236,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Lists route tables in a given project. + // Lists route tables in a given hub. rpc ListRouteTables(ListRouteTablesRequest) returns (ListRouteTablesResponse) { option (google.api.http) = { @@ -250,6 +260,19 @@ service HubService { }; option (google.api.method_signature) = "parent"; } + + // Updates the parameters of a Network Connectivity Center group. + rpc UpdateGroup(UpdateGroupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{group.name=projects/*/locations/global/hubs/*/groups/*}" + body: "group" + }; + option (google.api.method_signature) = "group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Group" + metadata_type: "OperationMetadata" + }; + } } // Supported features for a location @@ -276,6 +299,11 @@ enum RouteType { // The route leads to a destination within the secondary address range of the // VPC network's subnet. VPC_SECONDARY_SUBNET = 2; + + // The route leads to a destination in a dynamic route. Dynamic routes are + // derived from Border Gateway Protocol (BGP) advertisements received from an + // NCC hybrid spoke. + DYNAMIC_ROUTE = 3; } // The State enum represents the lifecycle stage of a Network Connectivity @@ -327,6 +355,35 @@ enum SpokeType { // Spokes associated with VPC networks. VPC_NETWORK = 4; + + // Spokes that are backed by a producer VPC network. + PRODUCER_VPC_NETWORK = 7; +} + +// This enum controls the policy mode used in a hub. +enum PolicyMode { + // Policy mode is unspecified. It defaults to PRESET + // with preset_topology = MESH. + POLICY_MODE_UNSPECIFIED = 0; + + // Hub uses one of the preset topologies. + PRESET = 1; +} + +// The list of available preset topologies. +enum PresetTopology { + // Preset topology is unspecified. When policy_mode = PRESET, + // it defaults to MESH. + PRESET_TOPOLOGY_UNSPECIFIED = 0; + + // Mesh topology is implemented. Group `default` is automatically created. + // All spokes in the hub are added to group `default`. + MESH = 2; + + // Star topology is implemented. Two groups, `center` and `edge`, are + // automatically created along with hub creation. Spokes have to join one of + // the groups during creation. + STAR = 3; } // A Network Connectivity Center hub is a global management resource to which @@ -390,6 +447,24 @@ message Hub { // the summary also lists the reasons they are inactive, // including a count for each reason. SpokeSummary spoke_summary = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The policy mode of this hub. This field can be either + // PRESET or CUSTOM. If unspecified, the + // policy_mode defaults to PRESET. + PolicyMode policy_mode = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The topology implemented in this hub. Currently, this field is + // only used when policy_mode = PRESET. The available preset topologies are + // MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, + // the preset_topology defaults to MESH. When policy_mode = CUSTOM, + // the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED. + PresetTopology preset_topology = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether Private Service Connect transitivity is enabled for the + // hub. If true, Private Service Connect endpoints in VPC spokes attached to + // the hub are made accessible to other VPC spokes attached to the hub. + // The default value is false. + optional bool export_psc = 15 [(google.api.field_behavior) = OPTIONAL]; } // RoutingVPC contains information about the VPC networks associated @@ -506,6 +581,10 @@ message Spoke { LinkedVpcNetwork linked_vpc_network = 20 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The linked producer VPC that is associated with the spoke. + LinkedProducerVpcNetwork linked_producer_vpc_network = 26 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. The Google-generated UUID for the spoke. This value is unique // across all spoke resources. If a spoke is deleted and another with the same // name is created, the new spoke is assigned a different `unique_id`. @@ -617,10 +696,28 @@ message Route { } ]; - // Output only. The location of the route. + // Output only. The origin location of the route. // Uses the following form: "projects/{project}/locations/{location}" // Example: projects/1234/locations/us-central1 string location = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The priority of this route. Priority is used to break ties in + // cases where a destination matches more than one route. In these cases the + // route with the lowest-numbered priority value wins. + int64 priority = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The next-hop VPN tunnel for packets on this route. + NextHopVPNTunnel next_hop_vpn_tunnel = 14 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The next-hop Router appliance instance for packets on this + // route. + NextHopRouterApplianceInstance next_hop_router_appliance_instance = 15 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The next-hop VLAN attachment for packets on this route. + NextHopInterconnectAttachment next_hop_interconnect_attachment = 16 + [(google.api.field_behavior) = IMMUTABLE]; } // A group represents a subset of spokes attached to a hub. @@ -659,6 +756,28 @@ message Group { // Output only. The current lifecycle state of this group. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The auto-accept setting for this group. + AutoAccept auto_accept = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The name of the route table that corresponds to this group. + // They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` + string route_table = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The auto-accept setting for a group controls whether +// proposed spokes are automatically attached to the hub. If auto-accept is +// enabled, the spoke immediately is attached to the hub and becomes part of the +// group. In this case, the new spoke is in the ACTIVE state. +// If auto-accept is disabled, the spoke goes to the INACTIVE +// state, and it must be reviewed and accepted by a hub +// administrator. +message AutoAccept { + // A list of project ids or project numbers for which you want + // to enable auto-accept. The auto-accept setting is applied to + // spokes being created or updated in these projects. + repeated string auto_accept_projects = 1; } // Request for @@ -883,6 +1002,146 @@ message ListHubSpokesResponse { repeated string unreachable = 3; } +// The request for +// [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus]. +message QueryHubStatusRequest { + // Required. The name of the hub. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Hub" + } + ]; + + // Optional. The maximum number of results to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that filters the list of results. + // The filter can be used to filter the results by the following fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + // * `psc_propagation_status.message` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort the results in ascending order by the specified fields. + // A comma-separated list of any of these fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + // If `group_by` is set, the value of the `order_by` field must be the + // same as or a subset of the `group_by` field. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Aggregate the results by the specified fields. + // A comma-separated list of any of these fields: + // * `psc_propagation_status.source_spoke` + // * `psc_propagation_status.source_group` + // * `psc_propagation_status.source_forwarding_rule` + // * `psc_propagation_status.target_spoke` + // * `psc_propagation_status.target_group` + // * `psc_propagation_status.code` + string group_by = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response for +// [HubService.QueryHubStatus][google.cloud.networkconnectivity.v1.HubService.QueryHubStatus]. +message QueryHubStatusResponse { + // The list of hub status. + repeated HubStatusEntry hub_status_entries = 1; + + // The token for the next page of the response. To see more results, + // use this value as the page_token for your next request. If this value + // is empty, there are no more results. + string next_page_token = 2; +} + +// A hub status entry represents the status of a set of propagated Private +// Service Connect connections grouped by certain fields. +message HubStatusEntry { + // The number of propagated Private Service Connect connections with this + // status. If the `group_by` field was not set in the request message, the + // value of this field is 1. + int32 count = 1; + + // The fields that this entry is grouped by. This has the same value as the + // `group_by` field in the request message. + string group_by = 2; + + // The Private Service Connect propagation status. + PscPropagationStatus psc_propagation_status = 3; +} + +// The status of one or more propagated Private Service Connect connections in a +// hub. +message PscPropagationStatus { + // The Code enum represents the state of the Private Service Connect + // propagation. + enum Code { + // The code is unspecified. + CODE_UNSPECIFIED = 0; + + // The propagated Private Service Connect connection is ready. + READY = 1; + + // The Private Service Connect connection is propagating. This is a + // transient state. + PROPAGATING = 2; + + // The Private Service Connect connection propagation failed because the VPC + // network or the project of the target spoke has exceeded the connection + // limit set by the producer. + ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED = 3; + + // The Private Service Connect connection propagation failed because the NAT + // IP subnet space has been exhausted. It is equivalent to the `Needs + // attention` status of the Private Service Connect connection. See + // https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses. + ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED = 4; + + // The Private Service Connect connection propagation failed because the + // `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the + // producer VPC network has been exceeded. + ERROR_PRODUCER_QUOTA_EXCEEDED = 5; + + // The Private Service Connect connection propagation failed because the + // `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer + // VPC network has been exceeded. + ERROR_CONSUMER_QUOTA_EXCEEDED = 6; + } + + // The name of the spoke that the source forwarding rule belongs to. + string source_spoke = 1; + + // The name of the group that the source spoke belongs to. + string source_group = 2; + + // The name of the forwarding rule exported to the hub. + string source_forwarding_rule = 3; + + // The name of the spoke that the source forwarding rule propagates to. + string target_spoke = 4; + + // The name of the group that the target spoke belongs to. + string target_group = 5; + + // The propagation status. + Code code = 6; + + // The human-readable summary of the Private Service Connect connection + // propagation status. + string message = 7; +} + // The request for // [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesRequest { @@ -1284,6 +1543,12 @@ message LinkedVpnTunnels { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A collection of VLAN attachment resources. These resources should @@ -1306,6 +1571,12 @@ message LinkedInterconnectAttachments { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A collection of router appliance instances. If you configure multiple router @@ -1327,6 +1598,12 @@ message LinkedRouterApplianceInstances { (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; + + // Optional. IP ranges allowed to be included during import from hub (does not + // control transit connectivity). The only allowed value for now is + // "ALL_IPV4_RANGES". + repeated string include_import_ranges = 5 + [(google.api.field_behavior) = OPTIONAL]; } // An existing VPC network. @@ -1340,6 +1617,56 @@ message LinkedVpcNetwork { // Optional. IP ranges encompassing the subnets to be excluded from peering. repeated string exclude_export_ranges = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. IP ranges allowed to be included from peering. + repeated string include_export_ranges = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of Producer VPC spokes that this VPC spoke is a + // service consumer VPC spoke for. These producer VPCs are connected through + // VPC peering to this spoke's backing VPC network. + repeated string producer_vpc_spokes = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; +} + +message LinkedProducerVpcNetwork { + // Immutable. The URI of the Service Consumer VPC that the Producer VPC is + // peered with. + string network = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The Service Consumer Network spoke. + string service_consumer_vpc_spoke = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Immutable. The name of the VPC peering between the Service Consumer VPC and + // the Producer VPC (defined in the Tenant project) which is added to the NCC + // hub. This peering must be in ACTIVE state. + string peering = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The URI of the Producer VPC. + string producer_network = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Optional. IP ranges encompassing the subnets to be excluded from peering. + repeated string exclude_export_ranges = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. IP ranges allowed to be included from peering. + repeated string include_export_ranges = 4 + [(google.api.field_behavior) = OPTIONAL]; } // A router appliance instance is a Compute Engine virtual machine (VM) instance @@ -1369,6 +1696,61 @@ message NextHopVpcNetwork { ]; } +// A route next hop that leads to a VPN tunnel resource. +message NextHopVPNTunnel { + // The URI of the VPN tunnel resource. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/VpnTunnel" + }]; + + // The VPC network where this VPN tunnel is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this VPN tunnel + // resource. Data transfer is available only in [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + +// A route next hop that leads to a Router appliance instance. +message NextHopRouterApplianceInstance { + // The URI of the Router appliance instance. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Instance" + }]; + + // The VPC network where this VM is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this Router + // appliance instance resource. Data transfer is available only in [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + +// A route next hop that leads to an interconnect attachment resource. +message NextHopInterconnectAttachment { + // The URI of the interconnect attachment resource. + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/InterconnectAttachment" + }]; + + // The VPC network where this interconnect attachment is located. + string vpc_network = 2 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Indicates whether site-to-site data transfer is allowed for this + // interconnect attachment resource. Data transfer is available only in + // [supported + // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + bool site_to_site_data_transfer = 3; +} + // Summarizes information about the spokes associated with a hub. // The summary includes a count of spokes according to type // and according to state. If any spokes are inactive, @@ -1436,3 +1818,35 @@ message GetGroupRequest { } ]; } + +// Request for +// [HubService.UpdateGroup][google.cloud.networkconnectivity.v1.HubService.UpdateGroup] +// method. +message UpdateGroupRequest { + // Optional. In the case of an update to an existing group, field mask is used + // to specify the fields to be overwritten. The fields specified in the + // update_mask are relative to the resource, not the full request. A field is + // overwritten if it is in the mask. If the user does not provide a mask, then + // all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The state that the group should be in after the update. + Group group = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server knows to ignore the request + // if it has already been completed. The server guarantees that a request + // doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check to see whether the original operation + // was received. If it was, the server ignores the second request. This + // behavior prevents clients from mistakenly creating duplicate commitments. + // + // The request ID must be a valid UUID, with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatus.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatus.java new file mode 100644 index 000000000000..56ff8f5cbdd2 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatus.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_QueryHubStatus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.HubName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; + +public class AsyncQueryHubStatus { + + public static void main(String[] args) throws Exception { + asyncQueryHubStatus(); + } + + public static void asyncQueryHubStatus() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + QueryHubStatusRequest request = + QueryHubStatusRequest.newBuilder() + .setName(HubName.of("[PROJECT]", "[HUB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setGroupBy("groupBy293428022") + .build(); + ApiFuture future = + hubServiceClient.queryHubStatusPagedCallable().futureCall(request); + // Do something. + for (HubStatusEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_QueryHubStatus_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatusPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatusPaged.java new file mode 100644 index 000000000000..b1effe2e3b62 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/AsyncQueryHubStatusPaged.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_QueryHubStatus_Paged_async] +import com.google.cloud.networkconnectivity.v1.HubName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusResponse; +import com.google.common.base.Strings; + +public class AsyncQueryHubStatusPaged { + + public static void main(String[] args) throws Exception { + asyncQueryHubStatusPaged(); + } + + public static void asyncQueryHubStatusPaged() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + QueryHubStatusRequest request = + QueryHubStatusRequest.newBuilder() + .setName(HubName.of("[PROJECT]", "[HUB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setGroupBy("groupBy293428022") + .build(); + while (true) { + QueryHubStatusResponse response = hubServiceClient.queryHubStatusCallable().call(request); + for (HubStatusEntry element : response.getHubStatusEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_QueryHubStatus_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatus.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatus.java new file mode 100644 index 000000000000..50f1fc623dc6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatus.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_QueryHubStatus_sync] +import com.google.cloud.networkconnectivity.v1.HubName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; +import com.google.cloud.networkconnectivity.v1.QueryHubStatusRequest; + +public class SyncQueryHubStatus { + + public static void main(String[] args) throws Exception { + syncQueryHubStatus(); + } + + public static void syncQueryHubStatus() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + QueryHubStatusRequest request = + QueryHubStatusRequest.newBuilder() + .setName(HubName.of("[PROJECT]", "[HUB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setGroupBy("groupBy293428022") + .build(); + for (HubStatusEntry element : hubServiceClient.queryHubStatus(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_QueryHubStatus_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusHubname.java new file mode 100644 index 000000000000..ba189ba4dedb --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusHubname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_QueryHubStatus_Hubname_sync] +import com.google.cloud.networkconnectivity.v1.HubName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; + +public class SyncQueryHubStatusHubname { + + public static void main(String[] args) throws Exception { + syncQueryHubStatusHubname(); + } + + public static void syncQueryHubStatusHubname() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + HubName name = HubName.of("[PROJECT]", "[HUB]"); + for (HubStatusEntry element : hubServiceClient.queryHubStatus(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_QueryHubStatus_Hubname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusString.java new file mode 100644 index 000000000000..e2ebefe00bf0 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/queryhubstatus/SyncQueryHubStatusString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_QueryHubStatus_String_sync] +import com.google.cloud.networkconnectivity.v1.HubName; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.HubStatusEntry; + +public class SyncQueryHubStatusString { + + public static void main(String[] args) throws Exception { + syncQueryHubStatusString(); + } + + public static void syncQueryHubStatusString() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + String name = HubName.of("[PROJECT]", "[HUB]").toString(); + for (HubStatusEntry element : hubServiceClient.queryHubStatus(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_HubService_QueryHubStatus_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroup.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroup.java new file mode 100644 index 000000000000..f771f2ddc4f0 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroup.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.Group; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateGroup(); + } + + public static void asyncUpdateGroup() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGroupRequest request = + UpdateGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGroup(Group.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = hubServiceClient.updateGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGroup_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroupLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroupLRO.java new file mode 100644 index 000000000000..4631e6f8ecca --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/AsyncUpdateGroupLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.Group; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateGroupLRO(); + } + + public static void asyncUpdateGroupLRO() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGroupRequest request = + UpdateGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGroup(Group.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + hubServiceClient.updateGroupOperationCallable().futureCall(request); + // Do something. + Group response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGroup_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroup.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroup.java new file mode 100644 index 000000000000..ae1246faa7db --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroup.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGroup_sync] +import com.google.cloud.networkconnectivity.v1.Group; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.cloud.networkconnectivity.v1.UpdateGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGroup { + + public static void main(String[] args) throws Exception { + syncUpdateGroup(); + } + + public static void syncUpdateGroup() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + UpdateGroupRequest request = + UpdateGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGroup(Group.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Group response = hubServiceClient.updateGroupAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGroup_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroupGroupFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroupGroupFieldmask.java new file mode 100644 index 000000000000..42f55cd0c077 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updategroup/SyncUpdateGroupGroupFieldmask.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_HubService_UpdateGroup_GroupFieldmask_sync] +import com.google.cloud.networkconnectivity.v1.Group; +import com.google.cloud.networkconnectivity.v1.HubServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGroupGroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGroupGroupFieldmask(); + } + + public static void syncUpdateGroupGroupFieldmask() 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 (HubServiceClient hubServiceClient = HubServiceClient.create()) { + Group group = Group.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Group response = hubServiceClient.updateGroupAsync(group, updateMask).get(); + } + } +} +// [END networkconnectivity_v1_generated_HubService_UpdateGroup_GroupFieldmask_sync] diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 0c29a7ea6889..21239e1f93b5 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.9.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 0a0436286426..98f9f7db7880 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.51.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/README.md b/java-optimization/README.md index 84b698de4a68..04e65470f88d 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.51.0' +implementation 'com.google.cloud:google-cloud-optimization:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 331ef6e08768..2c60b61de4f7 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.2.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.3.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java index c0ce1ca4243b..93682ba7662c 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java @@ -681,10 +681,10 @@ public com.google.protobuf.ByteString getOciUrlBytes() { * * *
          -   * Optional. The number of enabled CPU cores.
          +   * Output only. The number of enabled CPU cores.
              * 
          * - * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The cpuCount. */ @@ -717,10 +717,10 @@ public int getMaxCpuCount() { * * *
          -   * Optional. The memory allocated in GBs.
          +   * Output only. The memory allocated in GBs.
              * 
          * - * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The memorySizeGb. */ @@ -753,10 +753,10 @@ public int getMaxMemoryGb() { * * *
          -   * Optional. The local node storage allocated in GBs.
          +   * Output only. The local node storage allocated in GBs.
              * 
          * - * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dbNodeStorageSizeGb. */ @@ -3263,10 +3263,10 @@ public Builder setOciUrlBytes(com.google.protobuf.ByteString value) { * * *
          -     * Optional. The number of enabled CPU cores.
          +     * Output only. The number of enabled CPU cores.
                * 
          * - * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The cpuCount. */ @@ -3278,10 +3278,10 @@ public int getCpuCount() { * * *
          -     * Optional. The number of enabled CPU cores.
          +     * Output only. The number of enabled CPU cores.
                * 
          * - * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The cpuCount to set. * @return This builder for chaining. @@ -3297,10 +3297,10 @@ public Builder setCpuCount(int value) { * * *
          -     * Optional. The number of enabled CPU cores.
          +     * Output only. The number of enabled CPU cores.
                * 
          * - * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3369,10 +3369,10 @@ public Builder clearMaxCpuCount() { * * *
          -     * Optional. The memory allocated in GBs.
          +     * Output only. The memory allocated in GBs.
                * 
          * - * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The memorySizeGb. */ @@ -3384,10 +3384,10 @@ public int getMemorySizeGb() { * * *
          -     * Optional. The memory allocated in GBs.
          +     * Output only. The memory allocated in GBs.
                * 
          * - * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The memorySizeGb to set. * @return This builder for chaining. @@ -3403,10 +3403,10 @@ public Builder setMemorySizeGb(int value) { * * *
          -     * Optional. The memory allocated in GBs.
          +     * Output only. The memory allocated in GBs.
                * 
          * - * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3475,10 +3475,10 @@ public Builder clearMaxMemoryGb() { * * *
          -     * Optional. The local node storage allocated in GBs.
          +     * Output only. The local node storage allocated in GBs.
                * 
          * - * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dbNodeStorageSizeGb. */ @@ -3490,10 +3490,10 @@ public int getDbNodeStorageSizeGb() { * * *
          -     * Optional. The local node storage allocated in GBs.
          +     * Output only. The local node storage allocated in GBs.
                * 
          * - * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The dbNodeStorageSizeGb to set. * @return This builder for chaining. @@ -3509,10 +3509,10 @@ public Builder setDbNodeStorageSizeGb(int value) { * * *
          -     * Optional. The local node storage allocated in GBs.
          +     * Output only. The local node storage allocated in GBs.
                * 
          * - * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java index 06453b76adbd..55e281611457 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java @@ -232,10 +232,10 @@ public interface CloudExadataInfrastructurePropertiesOrBuilder * * *
          -   * Optional. The number of enabled CPU cores.
          +   * Output only. The number of enabled CPU cores.
              * 
          * - * int32 cpu_count = 10 [(.google.api.field_behavior) = OPTIONAL]; + * int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The cpuCount. */ @@ -258,10 +258,10 @@ public interface CloudExadataInfrastructurePropertiesOrBuilder * * *
          -   * Optional. The memory allocated in GBs.
          +   * Output only. The memory allocated in GBs.
              * 
          * - * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The memorySizeGb. */ @@ -284,10 +284,10 @@ public interface CloudExadataInfrastructurePropertiesOrBuilder * * *
          -   * Optional. The local node storage allocated in GBs.
          +   * Output only. The local node storage allocated in GBs.
              * 
          * - * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OPTIONAL]; + * int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dbNodeStorageSizeGb. */ diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java index ff278daf475d..22c9369f9775 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java @@ -87,10 +87,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "base.v1.CloudExadataInfrastructureProper" + "ties.StateB\003\340A\003\022\022\n\005shape\030\010 \001(\tB\003\340A\002\022\024\n\007o" + "ci_url\030\t \001(\tB\003\340A\003\022\026\n\tcpu_count\030\n \001(\005B\003\340A" - + "\001\022\032\n\rmax_cpu_count\030\013 \001(\005B\003\340A\003\022\033\n\016memory_" - + "size_gb\030\014 \001(\005B\003\340A\001\022\032\n\rmax_memory_gb\030\r \001(" + + "\003\022\032\n\rmax_cpu_count\030\013 \001(\005B\003\340A\003\022\033\n\016memory_" + + "size_gb\030\014 \001(\005B\003\340A\003\022\032\n\rmax_memory_gb\030\r \001(" + "\005B\003\340A\003\022$\n\027db_node_storage_size_gb\030\016 \001(\005B" - + "\003\340A\001\022(\n\033max_db_node_storage_size_gb\030\017 \001(" + + "\003\340A\003\022(\n\033max_db_node_storage_size_gb\030\017 \001(" + "\005B\003\340A\003\022!\n\024data_storage_size_tb\030\020 \001(\001B\003\340A" + "\003\022 \n\023max_data_storage_tb\030\021 \001(\001B\003\340A\003\022$\n\027a" + "ctivated_storage_count\030\022 \001(\005B\003\340A\003\022%\n\030add" diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto index 7b10ebb469fc..690d9cf200ed 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto @@ -131,20 +131,21 @@ message CloudExadataInfrastructureProperties { // Output only. Deep link to the OCI console to view this resource. string oci_url = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The number of enabled CPU cores. - int32 cpu_count = 10 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The number of enabled CPU cores. + int32 cpu_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The total number of CPU cores available. int32 max_cpu_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The memory allocated in GBs. - int32 memory_size_gb = 12 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The memory allocated in GBs. + int32 memory_size_gb = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The total memory available in GBs. int32 max_memory_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The local node storage allocated in GBs. - int32 db_node_storage_size_gb = 14 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The local node storage allocated in GBs. + int32 db_node_storage_size_gb = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The total local node storage available in GBs. int32 max_db_node_storage_size_gb = 15 diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 4dc933197e63..83bd5c8a2fa7 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.53.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/Environment.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/Environment.java index 1c32f2365336..0a83bd8f16e2 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/Environment.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/Environment.java @@ -313,14 +313,14 @@ private State(int value) { * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -340,14 +340,14 @@ public java.lang.String getName() { * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -370,10 +370,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the config field is set. */ @@ -385,10 +387,12 @@ public boolean hasConfig() { * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The config. */ @@ -402,10 +406,12 @@ public com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig getCo * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfigOrBuilder @@ -637,7 +643,7 @@ public int getLabelsCount() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -666,7 +672,7 @@ public java.util.Map getLabels() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -686,7 +692,7 @@ public java.util.Map getLabelsMap() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -713,7 +719,7 @@ public java.util.Map getLabelsMap() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1466,14 +1472,14 @@ public Builder mergeFrom( * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1492,14 +1498,14 @@ public java.lang.String getName() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1518,14 +1524,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1543,14 +1549,14 @@ public Builder setName(java.lang.String value) { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1564,14 +1570,14 @@ public Builder clearName() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1597,10 +1603,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the config field is set. */ @@ -1611,10 +1619,12 @@ public boolean hasConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The config. */ @@ -1632,10 +1642,12 @@ public com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig getCo * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfig( com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig value) { @@ -1655,10 +1667,12 @@ public Builder setConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfig( com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.Builder @@ -1676,10 +1690,12 @@ public Builder setConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeConfig( com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig value) { @@ -1706,10 +1722,12 @@ public Builder mergeConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1725,10 +1743,12 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.Builder getConfigBuilder() { @@ -1740,10 +1760,12 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfigOrBuilder getConfigOrBuilder() { @@ -1760,10 +1782,12 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig, @@ -2395,7 +2419,7 @@ public int getLabelsCount() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -2424,7 +2448,7 @@ public java.util.Map getLabels() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -2444,7 +2468,7 @@ public java.util.Map getLabelsMap() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -2471,7 +2495,7 @@ public java.util.Map getLabelsMap() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -2504,7 +2528,7 @@ public Builder clearLabels() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -2533,7 +2557,7 @@ public java.util.Map getMutableLabels() { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2560,7 +2584,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfig.java index bb4b7641aa48..29e3110b1ddc 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfig.java @@ -529,10 +529,12 @@ public int getNodeCount() { * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the softwareConfig field is set. */ @@ -544,10 +546,12 @@ public boolean hasSoftwareConfig() { * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The softwareConfig. */ @@ -561,10 +565,12 @@ public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfig getSoftw * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfigOrBuilder @@ -580,10 +586,12 @@ public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfig getSoftw * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -595,10 +603,12 @@ public boolean hasNodeConfig() { * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -612,10 +622,12 @@ public com.google.cloud.orchestration.airflow.service.v1.NodeConfig getNodeConfi * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.orchestration.airflow.service.v1.NodeConfigOrBuilder @@ -632,11 +644,12 @@ public com.google.cloud.orchestration.airflow.service.v1.NodeConfig getNodeConfi * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -649,11 +662,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -670,11 +684,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -2773,10 +2788,11 @@ public Builder clearNodeCount() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the softwareConfig field is set. @@ -2788,10 +2804,11 @@ public boolean hasSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The softwareConfig. @@ -2809,10 +2826,11 @@ public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfig getSoftw * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSoftwareConfig( @@ -2833,10 +2851,11 @@ public Builder setSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSoftwareConfig( @@ -2854,10 +2873,11 @@ public Builder setSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSoftwareConfig( @@ -2885,10 +2905,11 @@ public Builder mergeSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSoftwareConfig() { @@ -2905,10 +2926,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.Builder @@ -2921,10 +2943,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1.SoftwareConfigOrBuilder @@ -2941,10 +2964,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -2974,10 +2998,12 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -2988,10 +3014,12 @@ public boolean hasNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -3008,10 +3036,12 @@ public com.google.cloud.orchestration.airflow.service.v1.NodeConfig getNodeConfi * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeConfig( com.google.cloud.orchestration.airflow.service.v1.NodeConfig value) { @@ -3031,10 +3061,12 @@ public Builder setNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeConfig( com.google.cloud.orchestration.airflow.service.v1.NodeConfig.Builder builderForValue) { @@ -3051,10 +3083,12 @@ public Builder setNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNodeConfig( com.google.cloud.orchestration.airflow.service.v1.NodeConfig value) { @@ -3081,10 +3115,12 @@ public Builder mergeNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodeConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3100,10 +3136,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1.NodeConfig.Builder getNodeConfigBuilder() { @@ -3115,10 +3153,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -3134,10 +3174,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.orchestration.airflow.service.v1.NodeConfig, @@ -3167,11 +3209,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -3183,11 +3226,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -3207,11 +3251,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateEnvironmentConfig( @@ -3232,11 +3277,12 @@ public Builder setPrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateEnvironmentConfig( @@ -3255,11 +3301,12 @@ public Builder setPrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergePrivateEnvironmentConfig( @@ -3287,11 +3334,12 @@ public Builder mergePrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearPrivateEnvironmentConfig() { @@ -3308,11 +3356,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.Builder @@ -3325,11 +3374,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfigOrBuilder @@ -3347,11 +3397,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfigOrBuilder.java index 319bf2494892..1154f2d2448e 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentConfigOrBuilder.java @@ -103,10 +103,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the softwareConfig field is set. */ @@ -115,10 +117,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The softwareConfig. */ @@ -127,10 +131,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.orchestration.airflow.service.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); @@ -139,10 +145,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -151,10 +159,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -163,10 +173,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.orchestration.airflow.service.v1.NodeConfigOrBuilder getNodeConfigOrBuilder(); @@ -174,11 +186,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -188,11 +201,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -203,11 +217,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfigOrBuilder diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentOrBuilder.java index 3b35175b3343..caf6ce118a1b 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentOrBuilder.java @@ -28,14 +28,14 @@ public interface EnvironmentOrBuilder * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,14 +44,14 @@ public interface EnvironmentOrBuilder * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -61,10 +61,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the config field is set. */ @@ -73,10 +75,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The config. */ @@ -85,10 +89,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.orchestration.airflow.service.v1.EnvironmentConfigOrBuilder getConfigOrBuilder(); @@ -228,7 +234,7 @@ public interface EnvironmentOrBuilder * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** @@ -245,7 +251,7 @@ public interface EnvironmentOrBuilder * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -265,7 +271,7 @@ public interface EnvironmentOrBuilder * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** @@ -282,7 +288,7 @@ public interface EnvironmentOrBuilder * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -303,7 +309,7 @@ java.lang.String getLabelsOrDefault( * size. * * - * map<string, string> labels = 7; + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsOuterClass.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsOuterClass.java index e911e30890bc..6e60217469ee 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsOuterClass.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsOuterClass.java @@ -506,405 +506,406 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nse\022\030\n\020primary_gce_zone\030\001 \001(\t\022\032\n\022seconda" + "ry_gce_zone\030\002 \001(\t\022%\n\035is_failover_replica" + "_available\030\003 \001(\010\"$\n\rStorageConfig\022\023\n\006buc" - + "ket\030\001 \001(\tB\003\340A\001\"\363\r\n\021EnvironmentConfig\022\023\n\013" + + "ket\030\001 \001(\tB\003\340A\001\"\202\016\n\021EnvironmentConfig\022\023\n\013" + "gke_cluster\030\001 \001(\t\022\026\n\016dag_gcs_prefix\030\002 \001(" - + "\t\022\022\n\nnode_count\030\003 \001(\005\022V\n\017software_config" + + "\t\022\022\n\nnode_count\030\003 \001(\005\022[\n\017software_config" + "\030\004 \001(\0132=.google.cloud.orchestration.airf" - + "low.service.v1.SoftwareConfig\022N\n\013node_co" - + "nfig\030\005 \001(\01329.google.cloud.orchestration." - + "airflow.service.v1.NodeConfig\022k\n\032private" - + "_environment_config\030\007 \001(\0132G.google.cloud" - + ".orchestration.airflow.service.v1.Privat" - + "eEnvironmentConfig\022|\n!web_server_network" - + "_access_control\030\010 \001(\0132L.google.cloud.orc" - + "hestration.airflow.service.v1.WebServerN" - + "etworkAccessControlB\003\340A\001\022[\n\017database_con" - + "fig\030\t \001(\0132=.google.cloud.orchestration.a" - + "irflow.service.v1.DatabaseConfigB\003\340A\001\022^\n" - + "\021web_server_config\030\n \001(\0132>.google.cloud." - + "orchestration.airflow.service.v1.WebServ" - + "erConfigB\003\340A\001\022_\n\021encryption_config\030\013 \001(\013" - + "2?.google.cloud.orchestration.airflow.se" - + "rvice.v1.EncryptionConfigB\003\340A\001\022a\n\022mainte" - + "nance_window\030\014 \001(\0132@.google.cloud.orches" - + "tration.airflow.service.v1.MaintenanceWi" - + "ndowB\003\340A\001\022]\n\020workloads_config\030\017 \001(\0132>.go" + + "low.service.v1.SoftwareConfigB\003\340A\001\022S\n\013no" + + "de_config\030\005 \001(\01329.google.cloud.orchestra" + + "tion.airflow.service.v1.NodeConfigB\003\340A\001\022" + + "p\n\032private_environment_config\030\007 \001(\0132G.go" + "ogle.cloud.orchestration.airflow.service" - + ".v1.WorkloadsConfigB\003\340A\001\022o\n\020environment_" - + "size\030\020 \001(\0162P.google.cloud.orchestration." - + "airflow.service.v1.EnvironmentConfig.Env" - + "ironmentSizeB\003\340A\001\022\023\n\013airflow_uri\030\006 \001(\t\022\036" - + "\n\021airflow_byoid_uri\030\024 \001(\tB\003\340A\003\022}\n!master" - + "_authorized_networks_config\030\021 \001(\0132M.goog" + + ".v1.PrivateEnvironmentConfigB\003\340A\001\022|\n!web" + + "_server_network_access_control\030\010 \001(\0132L.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1.WebServerNetworkAccessControlB\003\340A\001\022" + + "[\n\017database_config\030\t \001(\0132=.google.cloud." + + "orchestration.airflow.service.v1.Databas" + + "eConfigB\003\340A\001\022^\n\021web_server_config\030\n \001(\0132" + + ">.google.cloud.orchestration.airflow.ser" + + "vice.v1.WebServerConfigB\003\340A\001\022_\n\021encrypti" + + "on_config\030\013 \001(\0132?.google.cloud.orchestra" + + "tion.airflow.service.v1.EncryptionConfig" + + "B\003\340A\001\022a\n\022maintenance_window\030\014 \001(\0132@.goog" + "le.cloud.orchestration.airflow.service.v" - + "1.MasterAuthorizedNetworksConfigB\003\340A\001\022[\n" - + "\017recovery_config\030\022 \001(\0132=.google.cloud.or" - + "chestration.airflow.service.v1.RecoveryC" - + "onfigB\003\340A\001\022m\n\017resilience_mode\030\023 \001(\0162O.go" - + "ogle.cloud.orchestration.airflow.service" - + ".v1.EnvironmentConfig.ResilienceModeB\003\340A" - + "\001\022f\n\025data_retention_config\030\025 \001(\0132B.googl" + + "1.MaintenanceWindowB\003\340A\001\022]\n\020workloads_co" + + "nfig\030\017 \001(\0132>.google.cloud.orchestration." + + "airflow.service.v1.WorkloadsConfigB\003\340A\001\022" + + "o\n\020environment_size\030\020 \001(\0162P.google.cloud" + + ".orchestration.airflow.service.v1.Enviro" + + "nmentConfig.EnvironmentSizeB\003\340A\001\022\023\n\013airf" + + "low_uri\030\006 \001(\t\022\036\n\021airflow_byoid_uri\030\024 \001(\t" + + "B\003\340A\003\022}\n!master_authorized_networks_conf" + + "ig\030\021 \001(\0132M.google.cloud.orchestration.ai" + + "rflow.service.v1.MasterAuthorizedNetwork" + + "sConfigB\003\340A\001\022[\n\017recovery_config\030\022 \001(\0132=." + + "google.cloud.orchestration.airflow.servi" + + "ce.v1.RecoveryConfigB\003\340A\001\022m\n\017resilience_" + + "mode\030\023 \001(\0162O.google.cloud.orchestration." + + "airflow.service.v1.EnvironmentConfig.Res" + + "ilienceModeB\003\340A\001\022f\n\025data_retention_confi" + + "g\030\025 \001(\0132B.google.cloud.orchestration.air" + + "flow.service.v1.DataRetentionConfigB\003\340A\001" + + "\"\210\001\n\017EnvironmentSize\022 \n\034ENVIRONMENT_SIZE" + + "_UNSPECIFIED\020\000\022\032\n\026ENVIRONMENT_SIZE_SMALL" + + "\020\001\022\033\n\027ENVIRONMENT_SIZE_MEDIUM\020\002\022\032\n\026ENVIR" + + "ONMENT_SIZE_LARGE\020\003\"F\n\016ResilienceMode\022\037\n" + + "\033RESILIENCE_MODE_UNSPECIFIED\020\000\022\023\n\017HIGH_R" + + "ESILIENCE\020\001\"\322\001\n\035WebServerNetworkAccessCo" + + "ntrol\022v\n\021allowed_ip_ranges\030\001 \003(\0132[.googl" + "e.cloud.orchestration.airflow.service.v1" - + ".DataRetentionConfigB\003\340A\001\"\210\001\n\017Environmen" - + "tSize\022 \n\034ENVIRONMENT_SIZE_UNSPECIFIED\020\000\022" - + "\032\n\026ENVIRONMENT_SIZE_SMALL\020\001\022\033\n\027ENVIRONME" - + "NT_SIZE_MEDIUM\020\002\022\032\n\026ENVIRONMENT_SIZE_LAR" - + "GE\020\003\"F\n\016ResilienceMode\022\037\n\033RESILIENCE_MOD" - + "E_UNSPECIFIED\020\000\022\023\n\017HIGH_RESILIENCE\020\001\"\322\001\n" - + "\035WebServerNetworkAccessControl\022v\n\021allowe" - + "d_ip_ranges\030\001 \003(\0132[.google.cloud.orchest" - + "ration.airflow.service.v1.WebServerNetwo" - + "rkAccessControl.AllowedIpRange\0329\n\016Allowe" - + "dIpRange\022\r\n\005value\030\001 \001(\t\022\030\n\013description\030\002" - + " \001(\tB\003\340A\001\">\n\016DatabaseConfig\022\031\n\014machine_t" - + "ype\030\001 \001(\tB\003\340A\001\022\021\n\004zone\030\002 \001(\tB\003\340A\001\",\n\017Web" - + "ServerConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\"" - + "-\n\020EncryptionConfig\022\031\n\014kms_key_name\030\001 \001(" - + "\tB\003\340A\001\"\224\001\n\021MaintenanceWindow\0223\n\nstart_ti" - + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\002\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\002\022\027\n\nrecurrence\030\003 \001(\tB\003\340A\002\"\262\007" - + "\n\016SoftwareConfig\022\025\n\rimage_version\030\001 \001(\t\022" - + "{\n\030airflow_config_overrides\030\002 \003(\0132Y.goog" + + ".WebServerNetworkAccessControl.AllowedIp" + + "Range\0329\n\016AllowedIpRange\022\r\n\005value\030\001 \001(\t\022\030" + + "\n\013description\030\002 \001(\tB\003\340A\001\">\n\016DatabaseConf" + + "ig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\021\n\004zone\030\002 " + + "\001(\tB\003\340A\001\",\n\017WebServerConfig\022\031\n\014machine_t" + + "ype\030\001 \001(\tB\003\340A\001\"-\n\020EncryptionConfig\022\031\n\014km" + + "s_key_name\030\001 \001(\tB\003\340A\001\"\224\001\n\021MaintenanceWin" + + "dow\0223\n\nstart_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\002\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\002\022\027\n\nrecurrenc" + + "e\030\003 \001(\tB\003\340A\002\"\267\007\n\016SoftwareConfig\022\032\n\rimage" + + "_version\030\001 \001(\tB\003\340A\001\022{\n\030airflow_config_ov" + + "errides\030\002 \003(\0132Y.google.cloud.orchestrati" + + "on.airflow.service.v1.SoftwareConfig.Air" + + "flowConfigOverridesEntry\022f\n\rpypi_package" + + "s\030\003 \003(\0132O.google.cloud.orchestration.air" + + "flow.service.v1.SoftwareConfig.PypiPacka" + + "gesEntry\022f\n\renv_variables\030\004 \003(\0132O.google" + + ".cloud.orchestration.airflow.service.v1." + + "SoftwareConfig.EnvVariablesEntry\022\026\n\016pyth" + + "on_version\030\006 \001(\t\022\034\n\017scheduler_count\030\007 \001(" + + "\005B\003\340A\001\022w\n\036cloud_data_lineage_integration" + + "\030\010 \001(\0132J.google.cloud.orchestration.airf" + + "low.service.v1.CloudDataLineageIntegrati" + + "onB\003\340A\001\022x\n\027web_server_plugins_mode\030\n \001(\016" + + "2R.google.cloud.orchestration.airflow.se" + + "rvice.v1.SoftwareConfig.WebServerPlugins" + + "ModeB\003\340A\001\032=\n\033AirflowConfigOverridesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021Pypi" + + "PackagesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\0323\n\021EnvVariablesEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"j\n\024WebServerPluginsMo" + + "de\022\'\n#WEB_SERVER_PLUGINS_MODE_UNSPECIFIE" + + "D\020\000\022\024\n\020PLUGINS_DISABLED\020\001\022\023\n\017PLUGINS_ENA" + + "BLED\020\002\"\220\002\n\022IPAllocationPolicy\022\033\n\016use_ip_" + + "aliases\030\001 \001(\010B\003\340A\001\022+\n\034cluster_secondary_" + + "range_name\030\002 \001(\tB\003\340A\001H\000\022&\n\027cluster_ipv4_" + + "cidr_block\030\004 \001(\tB\003\340A\001H\000\022,\n\035services_seco" + + "ndary_range_name\030\003 \001(\tB\003\340A\001H\001\022\'\n\030service" + + "s_ipv4_cidr_block\030\005 \001(\tB\003\340A\001H\001B\027\n\025cluste" + + "r_ip_allocationB\030\n\026services_ip_allocatio" + + "n\"\236\003\n\nNodeConfig\022\020\n\010location\030\001 \001(\t\022\024\n\014ma" + + "chine_type\030\002 \001(\t\022\024\n\007network\030\003 \001(\tB\003\340A\001\022\027" + + "\n\nsubnetwork\030\004 \001(\tB\003\340A\001\022\024\n\014disk_size_gb\030" + + "\005 \001(\005\022\024\n\014oauth_scopes\030\006 \003(\t\022\034\n\017service_a" + + "ccount\030\007 \001(\tB\003\340A\001\022\014\n\004tags\030\010 \003(\t\022d\n\024ip_al" + + "location_policy\030\t \001(\0132A.google.cloud.orc" + + "hestration.airflow.service.v1.IPAllocati" + + "onPolicyB\003\340A\001\022!\n\024enable_ip_masq_agent\030\013 " + + "\001(\010B\003\340A\001\022(\n\033composer_network_attachment\030" + + "\014 \001(\tB\003\340A\001\022.\n!composer_internal_ipv4_cid" + + "r_block\030\r \001(\tB\003\340A\001\"\212\001\n\024PrivateClusterCon" + + "fig\022$\n\027enable_private_endpoint\030\001 \001(\010B\003\340A" + + "\001\022#\n\026master_ipv4_cidr_block\030\002 \001(\tB\003\340A\001\022\'" + + "\n\032master_ipv4_reserved_range\030\003 \001(\tB\003\340A\003\"" + + "\341\001\n\020NetworkingConfig\022l\n\017connection_type\030" + + "\001 \001(\0162N.google.cloud.orchestration.airfl" + + "ow.service.v1.NetworkingConfig.Connectio" + + "nTypeB\003\340A\001\"_\n\016ConnectionType\022\037\n\033CONNECTI" + + "ON_TYPE_UNSPECIFIED\020\000\022\017\n\013VPC_PEERING\020\001\022\033" + + "\n\027PRIVATE_SERVICE_CONNECT\020\002\"\205\005\n\030PrivateE" + + "nvironmentConfig\022\'\n\032enable_private_envir" + + "onment\030\001 \001(\010B\003\340A\001\022\'\n\032enable_private_buil" + + "ds_only\030\013 \001(\010B\003\340A\001\022h\n\026private_cluster_co" + + "nfig\030\002 \001(\0132C.google.cloud.orchestration." + + "airflow.service.v1.PrivateClusterConfigB" + + "\003\340A\001\022\'\n\032web_server_ipv4_cidr_block\030\003 \001(\t" + + "B\003\340A\001\022&\n\031cloud_sql_ipv4_cidr_block\030\004 \001(\t" + + "B\003\340A\001\022+\n\036web_server_ipv4_reserved_range\030" + + "\005 \001(\tB\003\340A\003\0223\n&cloud_composer_network_ipv" + + "4_cidr_block\030\007 \001(\tB\003\340A\001\0227\n*cloud_compose" + + "r_network_ipv4_reserved_range\030\010 \001(\tB\003\340A\003" + + "\022-\n enable_privately_used_public_ips\030\006 \001" + + "(\010B\003\340A\001\0221\n$cloud_composer_connection_sub" + + "network\030\t \001(\tB\003\340A\001\022_\n\021networking_config\030" + + "\n \001(\0132?.google.cloud.orchestration.airfl" + + "ow.service.v1.NetworkingConfigB\003\340A\001\"\261\010\n\017" + + "WorkloadsConfig\022h\n\tscheduler\030\001 \001(\0132P.goo" + + "gle.cloud.orchestration.airflow.service." + + "v1.WorkloadsConfig.SchedulerResourceB\003\340A" + + "\001\022i\n\nweb_server\030\002 \001(\0132P.google.cloud.orc" + + "hestration.airflow.service.v1.WorkloadsC" + + "onfig.WebServerResourceB\003\340A\001\022b\n\006worker\030\003" + + " \001(\0132M.google.cloud.orchestration.airflo" + + "w.service.v1.WorkloadsConfig.WorkerResou" + + "rceB\003\340A\001\022h\n\ttriggerer\030\004 \001(\0132P.google.clo" + + "ud.orchestration.airflow.service.v1.Work" + + "loadsConfig.TriggererResourceB\003\340A\001\022o\n\rda" + + "g_processor\030\005 \001(\0132S.google.cloud.orchest" + + "ration.airflow.service.v1.WorkloadsConfi" + + "g.DagProcessorResourceB\003\340A\001\032j\n\021Scheduler" + + "Resource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030" + + "\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\022\022\n\005c" + + "ount\030\004 \001(\005B\003\340A\001\032V\n\021WebServerResource\022\020\n\003" + + "cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027" + + "\n\nstorage_gb\030\003 \001(\002B\003\340A\001\032\203\001\n\016WorkerResour" + + "ce\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B" + + "\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\022\026\n\tmin_cou" + + "nt\030\004 \001(\005B\003\340A\001\022\026\n\tmax_count\030\005 \001(\005B\003\340A\001\032Q\n" + + "\021TriggererResource\022\022\n\005count\030\001 \001(\005B\003\340A\001\022\020" + + "\n\003cpu\030\002 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\003 \001(\002B\003\340A\001" + + "\032m\n\024DagProcessorResource\022\020\n\003cpu\030\001 \001(\002B\003\340" + + "A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb" + + "\030\003 \001(\002B\003\340A\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\"\202\001\n\016Reco" + + "veryConfig\022p\n\032scheduled_snapshots_config" + + "\030\001 \001(\0132G.google.cloud.orchestration.airf" + + "low.service.v1.ScheduledSnapshotsConfigB" + + "\003\340A\001\"\221\001\n\030ScheduledSnapshotsConfig\022\024\n\007ena" + + "bled\030\001 \001(\010B\003\340A\001\022\036\n\021snapshot_location\030\006 \001" + + "(\tB\003\340A\001\022\'\n\032snapshot_creation_schedule\030\003 " + + "\001(\tB\003\340A\001\022\026\n\ttime_zone\030\005 \001(\tB\003\340A\001\"\326\001\n\036Mas" + + "terAuthorizedNetworksConfig\022\017\n\007enabled\030\001" + + " \001(\010\022l\n\013cidr_blocks\030\002 \003(\0132W.google.cloud" + + ".orchestration.airflow.service.v1.Master" + + "AuthorizedNetworksConfig.CidrBlock\0325\n\tCi" + + "drBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_bl" + + "ock\030\002 \001(\t\"3\n\033CloudDataLineageIntegration" + + "\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\"\247\006\n\013Environment\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\010\022U\n\006config\030\002 \001(\0132@.goog" + "le.cloud.orchestration.airflow.service.v" - + "1.SoftwareConfig.AirflowConfigOverridesE" - + "ntry\022f\n\rpypi_packages\030\003 \003(\0132O.google.clo" - + "ud.orchestration.airflow.service.v1.Soft" - + "wareConfig.PypiPackagesEntry\022f\n\renv_vari" - + "ables\030\004 \003(\0132O.google.cloud.orchestration" - + ".airflow.service.v1.SoftwareConfig.EnvVa" - + "riablesEntry\022\026\n\016python_version\030\006 \001(\t\022\034\n\017" - + "scheduler_count\030\007 \001(\005B\003\340A\001\022w\n\036cloud_data" - + "_lineage_integration\030\010 \001(\0132J.google.clou" - + "d.orchestration.airflow.service.v1.Cloud" - + "DataLineageIntegrationB\003\340A\001\022x\n\027web_serve" - + "r_plugins_mode\030\n \001(\0162R.google.cloud.orch" - + "estration.airflow.service.v1.SoftwareCon" - + "fig.WebServerPluginsModeB\003\340A\001\032=\n\033Airflow" - + "ConfigOverridesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\0323\n\021PypiPackagesEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021EnvVariable" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j" - + "\n\024WebServerPluginsMode\022\'\n#WEB_SERVER_PLU" - + "GINS_MODE_UNSPECIFIED\020\000\022\024\n\020PLUGINS_DISAB" - + "LED\020\001\022\023\n\017PLUGINS_ENABLED\020\002\"\220\002\n\022IPAllocat" - + "ionPolicy\022\033\n\016use_ip_aliases\030\001 \001(\010B\003\340A\001\022+" - + "\n\034cluster_secondary_range_name\030\002 \001(\tB\003\340A" - + "\001H\000\022&\n\027cluster_ipv4_cidr_block\030\004 \001(\tB\003\340A" - + "\001H\000\022,\n\035services_secondary_range_name\030\003 \001" - + "(\tB\003\340A\001H\001\022\'\n\030services_ipv4_cidr_block\030\005 " - + "\001(\tB\003\340A\001H\001B\027\n\025cluster_ip_allocationB\030\n\026s" - + "ervices_ip_allocation\"\217\003\n\nNodeConfig\022\020\n\010" - + "location\030\001 \001(\t\022\024\n\014machine_type\030\002 \001(\t\022\017\n\007" - + "network\030\003 \001(\t\022\022\n\nsubnetwork\030\004 \001(\t\022\024\n\014dis" - + "k_size_gb\030\005 \001(\005\022\024\n\014oauth_scopes\030\006 \003(\t\022\027\n" - + "\017service_account\030\007 \001(\t\022\014\n\004tags\030\010 \003(\t\022d\n\024" - + "ip_allocation_policy\030\t \001(\0132A.google.clou" - + "d.orchestration.airflow.service.v1.IPAll" - + "ocationPolicyB\003\340A\001\022!\n\024enable_ip_masq_age" - + "nt\030\013 \001(\010B\003\340A\001\022(\n\033composer_network_attach" - + "ment\030\014 \001(\tB\003\340A\001\022.\n!composer_internal_ipv" - + "4_cidr_block\030\r \001(\tB\003\340A\001\"\212\001\n\024PrivateClust" - + "erConfig\022$\n\027enable_private_endpoint\030\001 \001(" - + "\010B\003\340A\001\022#\n\026master_ipv4_cidr_block\030\002 \001(\tB\003" - + "\340A\001\022\'\n\032master_ipv4_reserved_range\030\003 \001(\tB" - + "\003\340A\003\"\341\001\n\020NetworkingConfig\022l\n\017connection_" - + "type\030\001 \001(\0162N.google.cloud.orchestration." - + "airflow.service.v1.NetworkingConfig.Conn" - + "ectionTypeB\003\340A\001\"_\n\016ConnectionType\022\037\n\033CON" - + "NECTION_TYPE_UNSPECIFIED\020\000\022\017\n\013VPC_PEERIN" - + "G\020\001\022\033\n\027PRIVATE_SERVICE_CONNECT\020\002\"\205\005\n\030Pri" - + "vateEnvironmentConfig\022\'\n\032enable_private_" - + "environment\030\001 \001(\010B\003\340A\001\022\'\n\032enable_private" - + "_builds_only\030\013 \001(\010B\003\340A\001\022h\n\026private_clust" - + "er_config\030\002 \001(\0132C.google.cloud.orchestra" - + "tion.airflow.service.v1.PrivateClusterCo" - + "nfigB\003\340A\001\022\'\n\032web_server_ipv4_cidr_block\030" - + "\003 \001(\tB\003\340A\001\022&\n\031cloud_sql_ipv4_cidr_block\030" - + "\004 \001(\tB\003\340A\001\022+\n\036web_server_ipv4_reserved_r" - + "ange\030\005 \001(\tB\003\340A\003\0223\n&cloud_composer_networ" - + "k_ipv4_cidr_block\030\007 \001(\tB\003\340A\001\0227\n*cloud_co" - + "mposer_network_ipv4_reserved_range\030\010 \001(\t" - + "B\003\340A\003\022-\n enable_privately_used_public_ip" - + "s\030\006 \001(\010B\003\340A\001\0221\n$cloud_composer_connectio" - + "n_subnetwork\030\t \001(\tB\003\340A\001\022_\n\021networking_co" - + "nfig\030\n \001(\0132?.google.cloud.orchestration." - + "airflow.service.v1.NetworkingConfigB\003\340A\001" - + "\"\261\010\n\017WorkloadsConfig\022h\n\tscheduler\030\001 \001(\0132" - + "P.google.cloud.orchestration.airflow.ser" - + "vice.v1.WorkloadsConfig.SchedulerResourc" - + "eB\003\340A\001\022i\n\nweb_server\030\002 \001(\0132P.google.clou" - + "d.orchestration.airflow.service.v1.Workl" - + "oadsConfig.WebServerResourceB\003\340A\001\022b\n\006wor" - + "ker\030\003 \001(\0132M.google.cloud.orchestration.a" - + "irflow.service.v1.WorkloadsConfig.Worker" - + "ResourceB\003\340A\001\022h\n\ttriggerer\030\004 \001(\0132P.googl" - + "e.cloud.orchestration.airflow.service.v1" - + ".WorkloadsConfig.TriggererResourceB\003\340A\001\022" - + "o\n\rdag_processor\030\005 \001(\0132S.google.cloud.or" - + "chestration.airflow.service.v1.Workloads" - + "Config.DagProcessorResourceB\003\340A\001\032j\n\021Sche" - + "dulerResource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemor" - + "y_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001" - + "\022\022\n\005count\030\004 \001(\005B\003\340A\001\032V\n\021WebServerResourc" - + "e\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003" - + "\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\032\203\001\n\016WorkerR" - + "esource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002" - + " \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\022\026\n\tmi" - + "n_count\030\004 \001(\005B\003\340A\001\022\026\n\tmax_count\030\005 \001(\005B\003\340" - + "A\001\032Q\n\021TriggererResource\022\022\n\005count\030\001 \001(\005B\003" - + "\340A\001\022\020\n\003cpu\030\002 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\003 \001(\002" - + "B\003\340A\001\032m\n\024DagProcessorResource\022\020\n\003cpu\030\001 \001" - + "(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstora" - + "ge_gb\030\003 \001(\002B\003\340A\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\"\202\001\n" - + "\016RecoveryConfig\022p\n\032scheduled_snapshots_c" - + "onfig\030\001 \001(\0132G.google.cloud.orchestration" - + ".airflow.service.v1.ScheduledSnapshotsCo" - + "nfigB\003\340A\001\"\221\001\n\030ScheduledSnapshotsConfig\022\024" - + "\n\007enabled\030\001 \001(\010B\003\340A\001\022\036\n\021snapshot_locatio" - + "n\030\006 \001(\tB\003\340A\001\022\'\n\032snapshot_creation_schedu" - + "le\030\003 \001(\tB\003\340A\001\022\026\n\ttime_zone\030\005 \001(\tB\003\340A\001\"\326\001" - + "\n\036MasterAuthorizedNetworksConfig\022\017\n\007enab" - + "led\030\001 \001(\010\022l\n\013cidr_blocks\030\002 \003(\0132W.google." - + "cloud.orchestration.airflow.service.v1.M" - + "asterAuthorizedNetworksConfig.CidrBlock\032" - + "5\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\nci" - + "dr_block\030\002 \001(\t\"3\n\033CloudDataLineageIntegr" - + "ation\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\"\230\006\n\013Environm" - + "ent\022\014\n\004name\030\001 \001(\t\022P\n\006config\030\002 \001(\0132@.goog" + + "1.EnvironmentConfigB\003\340A\001\022\014\n\004uuid\030\003 \001(\t\022O" + + "\n\005state\030\004 \001(\0162@.google.cloud.orchestrati" + + "on.airflow.service.v1.Environment.State\022" + + "/\n\013create_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestamp\022/\n\013update_time\030\006 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022[\n\006labels\030\007 \003(\0132F.goog" + "le.cloud.orchestration.airflow.service.v" - + "1.EnvironmentConfig\022\014\n\004uuid\030\003 \001(\t\022O\n\005sta" - + "te\030\004 \001(\0162@.google.cloud.orchestration.ai" - + "rflow.service.v1.Environment.State\022/\n\013cr" - + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "amp\022/\n\013update_time\030\006 \001(\0132\032.google.protob" - + "uf.Timestamp\022V\n\006labels\030\007 \003(\0132F.google.cl" - + "oud.orchestration.airflow.service.v1.Env" - + "ironment.LabelsEntry\022\032\n\rsatisfies_pzs\030\010 " - + "\001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\n \001(\010B\003\340A\003\022Y\n\016" - + "storage_config\030\t \001(\0132<.google.cloud.orch" - + "estration.airflow.service.v1.StorageConf" - + "igB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\014\n\010UPD" - + "ATING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\005:l\352Ai\n#c" - + "omposer.googleapis.com/Environment\022Bproj" - + "ects/{project}/locations/{location}/envi" - + "ronments/{environment}\"K\n\023CheckUpgradeRe" - + "quest\022\030\n\013environment\030\001 \001(\tB\003\340A\002\022\032\n\rimage" - + "_version\030\002 \001(\tB\003\340A\001\"\371\003\n\024CheckUpgradeResp" - + "onse\022\032\n\rbuild_log_uri\030\001 \001(\tB\003\340A\003\022\177\n\036cont" - + "ains_pypi_modules_conflict\030\004 \001(\0162R.googl" - + "e.cloud.orchestration.airflow.service.v1" - + ".CheckUpgradeResponse.ConflictResultB\003\340A" - + "\003\022,\n\037pypi_conflict_build_log_extract\030\003 \001" - + "(\tB\003\340A\003\022\025\n\rimage_version\030\005 \001(\t\022t\n\021pypi_d" - + "ependencies\030\006 \003(\0132Y.google.cloud.orchest" - + "ration.airflow.service.v1.CheckUpgradeRe" - + "sponse.PypiDependenciesEntry\0327\n\025PypiDepe" - + "ndenciesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"P\n\016ConflictResult\022\037\n\033CONFLICT_RESU" - + "LT_UNSPECIFIED\020\000\022\014\n\010CONFLICT\020\001\022\017\n\013NO_CON" - + "FLICT\020\002\"\214\002\n\023DataRetentionConfig\022\203\001\n!airf" - + "low_metadata_retention_config\030\001 \001(\0132S.go" - + "ogle.cloud.orchestration.airflow.service" - + ".v1.AirflowMetadataRetentionPolicyConfig" - + "B\003\340A\001\022o\n\032task_logs_retention_config\030\002 \001(" - + "\0132F.google.cloud.orchestration.airflow.s" - + "ervice.v1.TaskLogsRetentionConfigB\003\340A\001\"\214" - + "\002\n\027TaskLogsRetentionConfig\022u\n\014storage_mo" - + "de\030\002 \001(\0162Z.google.cloud.orchestration.ai" - + "rflow.service.v1.TaskLogsRetentionConfig" - + ".TaskLogsStorageModeB\003\340A\001\"z\n\023TaskLogsSto" - + "rageMode\022&\n\"TASK_LOGS_STORAGE_MODE_UNSPE" - + "CIFIED\020\000\022#\n\037CLOUD_LOGGING_AND_CLOUD_STOR" - + "AGE\020\001\022\026\n\022CLOUD_LOGGING_ONLY\020\002\"\255\002\n$Airflo" - + "wMetadataRetentionPolicyConfig\022~\n\016retent" - + "ion_mode\030\001 \001(\0162a.google.cloud.orchestrat" - + "ion.airflow.service.v1.AirflowMetadataRe" - + "tentionPolicyConfig.RetentionModeB\003\340A\001\022\033" - + "\n\016retention_days\030\002 \001(\005B\003\340A\001\"h\n\rRetention" - + "Mode\022\036\n\032RETENTION_MODE_UNSPECIFIED\020\000\022\032\n\026" - + "RETENTION_MODE_ENABLED\020\001\022\033\n\027RETENTION_MO" - + "DE_DISABLED\020\0022\3106\n\014Environments\022\251\002\n\021Creat" - + "eEnvironment\022G.google.cloud.orchestratio" - + "n.airflow.service.v1.CreateEnvironmentRe" - + "quest\032\035.google.longrunning.Operation\"\253\001\312" - + "AN\n\013Environment\022?google.cloud.orchestrat" - + "ion.airflow.service.v1.OperationMetadata" - + "\332A\022parent,environment\202\323\344\223\002?\"0/v1/{parent" - + "=projects/*/locations/*}/environments:\013e" - + "nvironment\022\323\001\n\016GetEnvironment\022D.google.c" - + "loud.orchestration.airflow.service.v1.Ge" - + "tEnvironmentRequest\032:.google.cloud.orche" - + "stration.airflow.service.v1.Environment\"" - + "?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/loc" - + "ations/*/environments/*}\022\346\001\n\020ListEnviron" - + "ments\022F.google.cloud.orchestration.airfl" - + "ow.service.v1.ListEnvironmentsRequest\032G." - + "google.cloud.orchestration.airflow.servi" - + "ce.v1.ListEnvironmentsResponse\"A\332A\006paren" - + "t\202\323\344\223\0022\0220/v1/{parent=projects/*/location" - + "s/*}/environments\022\263\002\n\021UpdateEnvironment\022" + + "1.Environment.LabelsEntryB\003\340A\001\022\032\n\rsatisf" + + "ies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\n \001(" + + "\010B\003\340A\003\022Y\n\016storage_config\030\t \001(\0132<.google." + + "cloud.orchestration.airflow.service.v1.S" + + "torageConfigB\003\340A\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\021STA" + + "TE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNIN" + + "G\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR" + + "\020\005:l\352Ai\n#composer.googleapis.com/Environ" + + "ment\022Bprojects/{project}/locations/{loca" + + "tion}/environments/{environment}\"K\n\023Chec" + + "kUpgradeRequest\022\030\n\013environment\030\001 \001(\tB\003\340A" + + "\002\022\032\n\rimage_version\030\002 \001(\tB\003\340A\001\"\371\003\n\024CheckU" + + "pgradeResponse\022\032\n\rbuild_log_uri\030\001 \001(\tB\003\340" + + "A\003\022\177\n\036contains_pypi_modules_conflict\030\004 \001" + + "(\0162R.google.cloud.orchestration.airflow." + + "service.v1.CheckUpgradeResponse.Conflict" + + "ResultB\003\340A\003\022,\n\037pypi_conflict_build_log_e" + + "xtract\030\003 \001(\tB\003\340A\003\022\025\n\rimage_version\030\005 \001(\t" + + "\022t\n\021pypi_dependencies\030\006 \003(\0132Y.google.clo" + + "ud.orchestration.airflow.service.v1.Chec" + + "kUpgradeResponse.PypiDependenciesEntry\0327" + + "\n\025PypiDependenciesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"P\n\016ConflictResult\022\037\n\033CON" + + "FLICT_RESULT_UNSPECIFIED\020\000\022\014\n\010CONFLICT\020\001" + + "\022\017\n\013NO_CONFLICT\020\002\"\214\002\n\023DataRetentionConfi" + + "g\022\203\001\n!airflow_metadata_retention_config\030" + + "\001 \001(\0132S.google.cloud.orchestration.airfl" + + "ow.service.v1.AirflowMetadataRetentionPo" + + "licyConfigB\003\340A\001\022o\n\032task_logs_retention_c" + + "onfig\030\002 \001(\0132F.google.cloud.orchestration" + + ".airflow.service.v1.TaskLogsRetentionCon" + + "figB\003\340A\001\"\214\002\n\027TaskLogsRetentionConfig\022u\n\014" + + "storage_mode\030\002 \001(\0162Z.google.cloud.orches" + + "tration.airflow.service.v1.TaskLogsReten" + + "tionConfig.TaskLogsStorageModeB\003\340A\001\"z\n\023T" + + "askLogsStorageMode\022&\n\"TASK_LOGS_STORAGE_" + + "MODE_UNSPECIFIED\020\000\022#\n\037CLOUD_LOGGING_AND_" + + "CLOUD_STORAGE\020\001\022\026\n\022CLOUD_LOGGING_ONLY\020\002\"" + + "\255\002\n$AirflowMetadataRetentionPolicyConfig" + + "\022~\n\016retention_mode\030\001 \001(\0162a.google.cloud." + + "orchestration.airflow.service.v1.Airflow" + + "MetadataRetentionPolicyConfig.RetentionM" + + "odeB\003\340A\001\022\033\n\016retention_days\030\002 \001(\005B\003\340A\001\"h\n" + + "\rRetentionMode\022\036\n\032RETENTION_MODE_UNSPECI" + + "FIED\020\000\022\032\n\026RETENTION_MODE_ENABLED\020\001\022\033\n\027RE" + + "TENTION_MODE_DISABLED\020\0022\3106\n\014Environments" + + "\022\251\002\n\021CreateEnvironment\022G.google.cloud.or" + + "chestration.airflow.service.v1.CreateEnv" + + "ironmentRequest\032\035.google.longrunning.Ope" + + "ration\"\253\001\312AN\n\013Environment\022?google.cloud." + + "orchestration.airflow.service.v1.Operati" + + "onMetadata\332A\022parent,environment\202\323\344\223\002?\"0/" + + "v1/{parent=projects/*/locations/*}/envir" + + "onments:\013environment\022\323\001\n\016GetEnvironment\022" + + "D.google.cloud.orchestration.airflow.ser" + + "vice.v1.GetEnvironmentRequest\032:.google.c" + + "loud.orchestration.airflow.service.v1.En" + + "vironment\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=proj" + + "ects/*/locations/*/environments/*}\022\346\001\n\020L" + + "istEnvironments\022F.google.cloud.orchestra" + + "tion.airflow.service.v1.ListEnvironments" + + "Request\032G.google.cloud.orchestration.air" + + "flow.service.v1.ListEnvironmentsResponse" + + "\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/" + + "*/locations/*}/environments\022\263\002\n\021UpdateEn" + + "vironment\022G.google.cloud.orchestration.a" + + "irflow.service.v1.UpdateEnvironmentReque", + "st\032\035.google.longrunning.Operation\"\265\001\312AN\n" + + "\013Environment\022?google.cloud.orchestration" + + ".airflow.service.v1.OperationMetadata\332A\034" + + "name,environment,update_mask\202\323\344\223\002?20/v1/" + + "{name=projects/*/locations/*/environment" + + "s/*}:\013environment\022\230\002\n\021DeleteEnvironment\022" + "G.google.cloud.orchestration.airflow.ser" - + "vice.v1.UpdateEnvironmentRequest\032\035.googl" - + "e.longrunning.Operation\"\265\001\312AN\n\013Environme", - "nt\022?google.cloud.orchestration.airflow.s" - + "ervice.v1.OperationMetadata\332A\034name,envir" - + "onment,update_mask\202\323\344\223\002?20/v1/{name=proj" - + "ects/*/locations/*/environments/*}:\013envi" - + "ronment\022\230\002\n\021DeleteEnvironment\022G.google.c" - + "loud.orchestration.airflow.service.v1.De" - + "leteEnvironmentRequest\032\035.google.longrunn" - + "ing.Operation\"\232\001\312AX\n\025google.protobuf.Emp" - + "ty\022?google.cloud.orchestration.airflow.s" - + "ervice.v1.OperationMetadata\332A\004name\202\323\344\223\0022" - + "*0/v1/{name=projects/*/locations/*/envir" - + "onments/*}\022\214\002\n\025ExecuteAirflowCommand\022K.g" + + "vice.v1.DeleteEnvironmentRequest\032\035.googl" + + "e.longrunning.Operation\"\232\001\312AX\n\025google.pr" + + "otobuf.Empty\022?google.cloud.orchestration" + + ".airflow.service.v1.OperationMetadata\332A\004" + + "name\202\323\344\223\0022*0/v1/{name=projects/*/locatio" + + "ns/*/environments/*}\022\214\002\n\025ExecuteAirflowC" + + "ommand\022K.google.cloud.orchestration.airf" + + "low.service.v1.ExecuteAirflowCommandRequ" + + "est\032L.google.cloud.orchestration.airflow" + + ".service.v1.ExecuteAirflowCommandRespons" + + "e\"X\202\323\344\223\002R\"M/v1/{environment=projects/*/l" + + "ocations/*/environments/*}:executeAirflo" + + "wCommand:\001*\022\200\002\n\022StopAirflowCommand\022H.goo" + + "gle.cloud.orchestration.airflow.service." + + "v1.StopAirflowCommandRequest\032I.google.cl" + + "oud.orchestration.airflow.service.v1.Sto" + + "pAirflowCommandResponse\"U\202\323\344\223\002O\"J/v1/{en" + + "vironment=projects/*/locations/*/environ" + + "ments/*}:stopAirflowCommand:\001*\022\200\002\n\022PollA" + + "irflowCommand\022H.google.cloud.orchestrati" + + "on.airflow.service.v1.PollAirflowCommand" + + "Request\032I.google.cloud.orchestration.air" + + "flow.service.v1.PollAirflowCommandRespon" + + "se\"U\202\323\344\223\002O\"J/v1/{environment=projects/*/" + + "locations/*/environments/*}:pollAirflowC" + + "ommand:\001*\022\351\001\n\rListWorkloads\022C.google.clo" + + "ud.orchestration.airflow.service.v1.List" + + "WorkloadsRequest\032D.google.cloud.orchestr" + + "ation.airflow.service.v1.ListWorkloadsRe" + + "sponse\"M\332A\006parent\202\323\344\223\002>\022\022 * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -307,7 +307,7 @@ public java.lang.String getNetwork() { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -343,7 +343,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -374,7 +374,7 @@ public java.lang.String getSubnetwork() { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -510,7 +510,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -535,7 +535,7 @@ public java.lang.String getServiceAccount() { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -1938,7 +1938,7 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -1970,7 +1970,7 @@ public java.lang.String getNetwork() { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -2002,7 +2002,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The network to set. * @return This builder for chaining. @@ -2033,7 +2033,7 @@ public Builder setNetwork(java.lang.String value) { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2060,7 +2060,7 @@ public Builder clearNetwork() { * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for network to set. * @return This builder for chaining. @@ -2092,7 +2092,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -2122,7 +2122,7 @@ public java.lang.String getSubnetwork() { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -2152,7 +2152,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The subnetwork to set. * @return This builder for chaining. @@ -2181,7 +2181,7 @@ public Builder setSubnetwork(java.lang.String value) { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2206,7 +2206,7 @@ public Builder clearSubnetwork() { * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for subnetwork to set. * @return This builder for chaining. @@ -2516,7 +2516,7 @@ public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -2540,7 +2540,7 @@ public java.lang.String getServiceAccount() { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -2564,7 +2564,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccount to set. * @return This builder for chaining. @@ -2587,7 +2587,7 @@ public Builder setServiceAccount(java.lang.String value) { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2606,7 +2606,7 @@ public Builder clearServiceAccount() { * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/NodeConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/NodeConfigOrBuilder.java index 71c4d465b69d..c10a2dbfc2e6 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/NodeConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/NodeConfigOrBuilder.java @@ -169,7 +169,7 @@ public interface NodeConfigOrBuilder * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -191,7 +191,7 @@ public interface NodeConfigOrBuilder * `nodeConfig.subnetwork`. * * - * string network = 3; + * string network = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -212,7 +212,7 @@ public interface NodeConfigOrBuilder * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -232,7 +232,7 @@ public interface NodeConfigOrBuilder * location. * * - * string subnetwork = 4; + * string subnetwork = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -335,7 +335,7 @@ public interface NodeConfigOrBuilder * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -349,7 +349,7 @@ public interface NodeConfigOrBuilder * service account is used. Cannot be updated. * * - * string service_account = 7; + * string service_account = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfig.java index 5a6e237a3761..0977c53e7a1f 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfig.java @@ -253,7 +253,7 @@ private WebServerPluginsMode(int value) { * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -279,7 +279,7 @@ private WebServerPluginsMode(int value) {
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -299,7 +299,7 @@ public java.lang.String getImageVersion() { * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -325,7 +325,7 @@ public java.lang.String getImageVersion() {
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ @@ -1646,7 +1646,7 @@ public Builder mergeFrom( * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1672,7 +1672,7 @@ public Builder mergeFrom(
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -1691,7 +1691,7 @@ public java.lang.String getImageVersion() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1717,7 +1717,7 @@ public java.lang.String getImageVersion() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ @@ -1736,7 +1736,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1762,7 +1762,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The imageVersion to set. * @return This builder for chaining. @@ -1780,7 +1780,7 @@ public Builder setImageVersion(java.lang.String value) { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1806,7 +1806,7 @@ public Builder setImageVersion(java.lang.String value) {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1820,7 +1820,7 @@ public Builder clearImageVersion() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1846,7 +1846,7 @@ public Builder clearImageVersion() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for imageVersion to set. * @return This builder for chaining. diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfigOrBuilder.java index 8bb622ba5ecd..784ec95c2bd5 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/SoftwareConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface SoftwareConfigOrBuilder * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -54,7 +54,7 @@ public interface SoftwareConfigOrBuilder
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -63,7 +63,7 @@ public interface SoftwareConfigOrBuilder * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -89,7 +89,7 @@ public interface SoftwareConfigOrBuilder
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMap.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMap.java index cd73f32ef753..deb7cf886286 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMap.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMap.java @@ -162,6 +162,13 @@ public int getDataCount() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,6 +193,13 @@ public java.util.Map getData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -201,6 +215,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,6 +244,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -793,6 +821,13 @@ public int getDataCount() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -817,6 +852,13 @@ public java.util.Map getData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -832,6 +874,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -854,6 +903,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -882,6 +938,13 @@ public Builder clearData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -906,6 +969,13 @@ public java.util.Map getMutableData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -928,6 +998,13 @@ public Builder putData(java.lang.String key, java.lang.String value) { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapOrBuilder.java index ee544cf34ca7..5a6032aaf9ef 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapOrBuilder.java @@ -58,6 +58,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -70,6 +77,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -85,6 +99,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -97,6 +118,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -113,6 +141,13 @@ java.lang.String getDataOrDefault( * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecret.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecret.java index f2f586573e08..89a812ea2e56 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecret.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecret.java @@ -163,6 +163,13 @@ public int getDataCount() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -188,6 +195,13 @@ public java.util.Map getData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,6 +218,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -227,6 +248,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -794,6 +822,13 @@ public int getDataCount() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -819,6 +854,13 @@ public java.util.Map getData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -835,6 +877,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -858,6 +907,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -887,6 +943,13 @@ public Builder clearData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -912,6 +975,13 @@ public java.util.Map getMutableData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -935,6 +1005,13 @@ public Builder putData(java.lang.String key, java.lang.String value) { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretOrBuilder.java index 3056d615287a..ff8575e14bcb 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretOrBuilder.java @@ -59,6 +59,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -72,6 +79,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,6 +102,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -101,6 +122,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -118,6 +146,13 @@ java.lang.String getDataOrDefault( * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/proto/google/cloud/orchestration/airflow/service/v1/environments.proto b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/proto/google/cloud/orchestration/airflow/service/v1/environments.proto index 9976999b6f04..d27cb6be08f4 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/proto/google/cloud/orchestration/airflow/service/v1/environments.proto +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/proto/google/cloud/orchestration/airflow/service/v1/environments.proto @@ -769,6 +769,13 @@ message UserWorkloadsSecret { // pairs, which can contain sensitive values such as a password, a token, or a // key. The values for all keys have to be base64-encoded strings. For details // see: https://kubernetes.io/docs/concepts/configuration/secret/ + // + // Example: + // + // { + // "example": "ZXhhbXBsZV92YWx1ZQ==", + // "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + // } map data = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -798,6 +805,13 @@ message UserWorkloadsConfigMap { // Optional. The "data" field of Kubernetes ConfigMap, organized in key-value // pairs. For details see: // https://kubernetes.io/docs/concepts/configuration/configmap/ + // + // Example: + // + // { + // "example_key": "example_value", + // "another_key": "another_value" + // } map data = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -1064,14 +1078,16 @@ message EnvironmentConfig { // composer-1.*.*-airflow-*.*.*. int32 node_count = 3; - // The configuration settings for software inside the environment. - SoftwareConfig software_config = 4; + // Optional. The configuration settings for software inside the environment. + SoftwareConfig software_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // The configuration used for the Kubernetes Engine cluster. - NodeConfig node_config = 5; + // Optional. The configuration used for the Kubernetes Engine cluster. + NodeConfig node_config = 5 [(google.api.field_behavior) = OPTIONAL]; - // The configuration used for the Private IP Cloud Composer environment. - PrivateEnvironmentConfig private_environment_config = 7; + // Optional. The configuration used for the Private IP Cloud Composer + // environment. + PrivateEnvironmentConfig private_environment_config = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The network-level access control policy for the Airflow web // server. If unspecified, no network-level access restrictions will be @@ -1274,7 +1290,7 @@ message SoftwareConfig { PLUGINS_ENABLED = 2; } - // The version of the software running in the environment. + // Optional. The version of the software running in the environment. // This encapsulates both the version of Cloud Composer functionality and the // version of Apache Airflow. It must match the regular expression // `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. @@ -1298,7 +1314,7 @@ message SoftwareConfig { // See also [version // list](/composer/docs/concepts/versioning/composer-versions) and [versioning // overview](/composer/docs/concepts/versioning/composer-versioning-overview). - string image_version = 1; + string image_version = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Apache Airflow configuration properties to override. // @@ -1511,7 +1527,7 @@ message NodeConfig { // is provided, `nodeConfig.subnetwork` must also be provided. For // [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see // `nodeConfig.subnetwork`. - string network = 3; + string network = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine subnetwork to be used for machine // communications, specified as a @@ -1522,7 +1538,7 @@ message NodeConfig { // If a subnetwork is provided, `nodeConfig.network` must also be provided, // and the subnetwork must belong to the enclosing environment's project and // location. - string subnetwork = 4; + string subnetwork = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. The disk size in GB used for node VMs. Minimum size is 30GB. // If unspecified, defaults to 100GB. Cannot be updated. @@ -1542,7 +1558,7 @@ message NodeConfig { // Optional. The Google Cloud Platform Service Account to be used by the node // VMs. If a service account is not specified, the "default" Compute Engine // service account is used. Cannot be updated. - string service_account = 7; + string service_account = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The list of instance tags applied to all node VMs. Tags are used // to identify valid sources or targets for network firewalls. Each tag within @@ -1911,15 +1927,15 @@ message Environment { ERROR = 5; } - // The resource name of the environment, in the form: + // Identifier. The resource name of the environment, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" // // EnvironmentId must start with a lowercase letter followed by up to 63 // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Configuration parameters for this environment. - EnvironmentConfig config = 2; + // Optional. Configuration parameters for this environment. + EnvironmentConfig config = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The UUID (Universally Unique IDentifier) associated with this // environment. This value is generated when the environment is created. @@ -1942,7 +1958,7 @@ message Environment { // * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // * Both keys and values are additionally constrained to be <= 128 bytes in // size. - map labels = 7; + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. Reserved for future use. bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java index 6b1242894180..cce3d7d58e29 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfig.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * @deprecated * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days * is deprecated. See - * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905 * @return The airflowDatabaseRetentionDays. */ @java.lang.Override @@ -681,7 +681,7 @@ public Builder mergeFrom( * @deprecated * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days * is deprecated. See - * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905 * @return The airflowDatabaseRetentionDays. */ @java.lang.Override @@ -705,7 +705,7 @@ public int getAirflowDatabaseRetentionDays() { * @deprecated * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days * is deprecated. See - * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905 * @param value The airflowDatabaseRetentionDays to set. * @return This builder for chaining. */ @@ -733,7 +733,7 @@ public Builder setAirflowDatabaseRetentionDays(int value) { * @deprecated * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days * is deprecated. See - * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java index 0e0f2fb197ff..ea4a684cd3f2 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/DataRetentionConfigOrBuilder.java @@ -40,7 +40,7 @@ public interface DataRetentionConfigOrBuilder * @deprecated * google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days * is deprecated. See - * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1889 + * google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905 * @return The airflowDatabaseRetentionDays. */ @java.lang.Deprecated diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/Environment.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/Environment.java index ffbe3f04cc15..832c52cb570b 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/Environment.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/Environment.java @@ -313,14 +313,14 @@ private State(int value) { * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -340,14 +340,14 @@ public java.lang.String getName() { * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -370,10 +370,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the config field is set. */ @@ -385,10 +387,12 @@ public boolean hasConfig() { * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The config. */ @@ -403,10 +407,12 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfigOrBuilder @@ -1481,14 +1487,14 @@ public Builder mergeFrom( * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1507,14 +1513,14 @@ public java.lang.String getName() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1533,14 +1539,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1558,14 +1564,14 @@ public Builder setName(java.lang.String value) { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1579,14 +1585,14 @@ public Builder clearName() { * * *
          -     * The resource name of the environment, in the form:
          +     * Identifier. The resource name of the environment, in the form:
                * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
                *
                * EnvironmentId must start with a lowercase letter followed by up to 63
                * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
                * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1612,10 +1618,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the config field is set. @@ -1627,10 +1634,11 @@ public boolean hasConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The config. @@ -1649,10 +1657,11 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfig( @@ -1673,10 +1682,11 @@ public Builder setConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfig( @@ -1695,10 +1705,11 @@ public Builder setConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeConfig( @@ -1726,10 +1737,11 @@ public Builder mergeConfig( * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearConfig() { @@ -1746,10 +1758,11 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.Builder @@ -1762,10 +1775,11 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfigOrBuilder @@ -1783,10 +1797,11 @@ public Builder clearConfig() { * * *
          -     * Configuration parameters for this environment.
          +     * Optional. Configuration parameters for this environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java index 1c258c8fa1f7..4d917d847dec 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfig.java @@ -531,10 +531,11 @@ public int getNodeCount() { * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the softwareConfig field is set. @@ -547,10 +548,11 @@ public boolean hasSoftwareConfig() { * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The softwareConfig. @@ -565,10 +567,11 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig get * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -585,10 +588,12 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig get * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -600,10 +605,12 @@ public boolean hasNodeConfig() { * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -617,10 +624,12 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig getNode * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfigOrBuilder @@ -637,11 +646,12 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig getNode * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -654,11 +664,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -675,11 +686,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -2808,10 +2820,11 @@ public Builder clearNodeCount() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the softwareConfig field is set. @@ -2823,10 +2836,11 @@ public boolean hasSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The softwareConfig. @@ -2846,10 +2860,11 @@ public boolean hasSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSoftwareConfig( @@ -2870,10 +2885,11 @@ public Builder setSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSoftwareConfig( @@ -2892,10 +2908,11 @@ public Builder setSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSoftwareConfig( @@ -2923,10 +2940,11 @@ public Builder mergeSoftwareConfig( * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSoftwareConfig() { @@ -2943,10 +2961,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.Builder @@ -2959,10 +2978,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfigOrBuilder @@ -2980,10 +3000,11 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration settings for software inside the environment.
          +     * Optional. The configuration settings for software inside the environment.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -3013,10 +3034,12 @@ public Builder clearSoftwareConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -3027,10 +3050,12 @@ public boolean hasNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -3047,10 +3072,12 @@ public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig getNode * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeConfig( com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig value) { @@ -3070,10 +3097,12 @@ public Builder setNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNodeConfig( com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.Builder builderForValue) { @@ -3090,10 +3119,12 @@ public Builder setNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNodeConfig( com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig value) { @@ -3120,10 +3151,12 @@ public Builder mergeNodeConfig( * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNodeConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3139,10 +3172,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.Builder getNodeConfigBuilder() { @@ -3154,10 +3189,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -3173,10 +3210,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Kubernetes Engine cluster.
          +     * Optional. The configuration used for the Kubernetes Engine cluster.
                * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig, @@ -3207,11 +3246,12 @@ public Builder clearNodeConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -3223,11 +3263,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -3247,11 +3288,12 @@ public boolean hasPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateEnvironmentConfig( @@ -3272,11 +3314,12 @@ public Builder setPrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setPrivateEnvironmentConfig( @@ -3295,11 +3338,12 @@ public Builder setPrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergePrivateEnvironmentConfig( @@ -3327,11 +3371,12 @@ public Builder mergePrivateEnvironmentConfig( * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearPrivateEnvironmentConfig() { @@ -3348,11 +3393,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.Builder @@ -3365,11 +3411,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfigOrBuilder @@ -3387,11 +3434,12 @@ public Builder clearPrivateEnvironmentConfig() { * * *
          -     * The configuration used for the Private IP Cloud Composer environment.
          +     * Optional. The configuration used for the Private IP Cloud Composer
          +     * environment.
                * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java index cd66155bbe71..ddeba41c1385 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentConfigOrBuilder.java @@ -103,10 +103,11 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the softwareConfig field is set. @@ -116,10 +117,11 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The softwareConfig. @@ -129,10 +131,11 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration settings for software inside the environment.
          +   * Optional. The configuration settings for software inside the environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4; + * + * .google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig software_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfigOrBuilder @@ -142,10 +145,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the nodeConfig field is set. */ @@ -154,10 +159,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The nodeConfig. */ @@ -166,10 +173,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Kubernetes Engine cluster.
          +   * Optional. The configuration used for the Kubernetes Engine cluster.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5; + * + * .google.cloud.orchestration.airflow.service.v1beta1.NodeConfig node_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.orchestration.airflow.service.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder(); @@ -178,11 +187,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the privateEnvironmentConfig field is set. @@ -192,11 +202,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The privateEnvironmentConfig. @@ -207,11 +218,12 @@ public interface EnvironmentConfigOrBuilder * * *
          -   * The configuration used for the Private IP Cloud Composer environment.
          +   * Optional. The configuration used for the Private IP Cloud Composer
          +   * environment.
              * 
          * * - * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7; + * .google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig private_environment_config = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfigOrBuilder diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentOrBuilder.java index f1559153f174..8796cb99d829 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentOrBuilder.java @@ -28,14 +28,14 @@ public interface EnvironmentOrBuilder * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,14 +44,14 @@ public interface EnvironmentOrBuilder * * *
          -   * The resource name of the environment, in the form:
          +   * Identifier. The resource name of the environment, in the form:
              * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
              *
              * EnvironmentId must start with a lowercase letter followed by up to 63
              * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
              * 
          * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -61,10 +61,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the config field is set. */ @@ -73,10 +75,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The config. */ @@ -85,10 +89,12 @@ public interface EnvironmentOrBuilder * * *
          -   * Configuration parameters for this environment.
          +   * Optional. Configuration parameters for this environment.
              * 
          * - * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2; + * + * .google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfigOrBuilder getConfigOrBuilder(); diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java index e42379f8a1f0..dc8e04d6ba98 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsOuterClass.java @@ -513,431 +513,431 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "etchDatabasePropertiesResponse\022\030\n\020primar" + "y_gce_zone\030\001 \001(\t\022\032\n\022secondary_gce_zone\030\002" + " \001(\t\022%\n\035is_failover_replica_available\030\003 " - + "\001(\010\"\312\016\n\021EnvironmentConfig\022\030\n\013gke_cluster" + + "\001(\010\"\331\016\n\021EnvironmentConfig\022\030\n\013gke_cluster" + "\030\001 \001(\tB\003\340A\003\022\033\n\016dag_gcs_prefix\030\002 \001(\tB\003\340A\003" - + "\022\022\n\nnode_count\030\003 \001(\005\022[\n\017software_config\030" + + "\022\022\n\nnode_count\030\003 \001(\005\022`\n\017software_config\030" + "\004 \001(\0132B.google.cloud.orchestration.airfl" - + "ow.service.v1beta1.SoftwareConfig\022S\n\013nod" - + "e_config\030\005 \001(\0132>.google.cloud.orchestrat" - + "ion.airflow.service.v1beta1.NodeConfig\022p" - + "\n\032private_environment_config\030\007 \001(\0132L.goo" - + "gle.cloud.orchestration.airflow.service." - + "v1beta1.PrivateEnvironmentConfig\022\201\001\n!web" - + "_server_network_access_control\030\t \001(\0132Q.g" - + "oogle.cloud.orchestration.airflow.servic" - + "e.v1beta1.WebServerNetworkAccessControlB" - + "\003\340A\001\022`\n\017database_config\030\n \001(\0132B.google.c" - + "loud.orchestration.airflow.service.v1bet" - + "a1.DatabaseConfigB\003\340A\001\022c\n\021web_server_con" - + "fig\030\013 \001(\0132C.google.cloud.orchestration.a" - + "irflow.service.v1beta1.WebServerConfigB\003" - + "\340A\001\022\030\n\013airflow_uri\030\006 \001(\tB\003\340A\003\022\036\n\021airflow" - + "_byoid_uri\030\025 \001(\tB\003\340A\003\022d\n\021encryption_conf" - + "ig\030\014 \001(\0132D.google.cloud.orchestration.ai" - + "rflow.service.v1beta1.EncryptionConfigB\003" - + "\340A\001\022f\n\022maintenance_window\030\r \001(\0132E.google" - + ".cloud.orchestration.airflow.service.v1b" - + "eta1.MaintenanceWindowB\003\340A\001\022b\n\020workloads" - + "_config\030\017 \001(\0132C.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.WorkloadsConf" - + "igB\003\340A\001\022t\n\020environment_size\030\020 \001(\0162U.goog" - + "le.cloud.orchestration.airflow.service.v" - + "1beta1.EnvironmentConfig.EnvironmentSize" - + "B\003\340A\001\022\202\001\n!master_authorized_networks_con" - + "fig\030\021 \001(\0132R.google.cloud.orchestration.a" - + "irflow.service.v1beta1.MasterAuthorizedN" - + "etworksConfigB\003\340A\001\022`\n\017recovery_config\030\022 " - + "\001(\0132B.google.cloud.orchestration.airflow" - + ".service.v1beta1.RecoveryConfigB\003\340A\001\022k\n\025" - + "data_retention_config\030\023 \001(\0132G.google.clo" + + "ow.service.v1beta1.SoftwareConfigB\003\340A\001\022X" + + "\n\013node_config\030\005 \001(\0132>.google.cloud.orche" + + "stration.airflow.service.v1beta1.NodeCon" + + "figB\003\340A\001\022u\n\032private_environment_config\030\007" + + " \001(\0132L.google.cloud.orchestration.airflo" + + "w.service.v1beta1.PrivateEnvironmentConf" + + "igB\003\340A\001\022\201\001\n!web_server_network_access_co" + + "ntrol\030\t \001(\0132Q.google.cloud.orchestration" + + ".airflow.service.v1beta1.WebServerNetwor" + + "kAccessControlB\003\340A\001\022`\n\017database_config\030\n" + + " \001(\0132B.google.cloud.orchestration.airflo" + + "w.service.v1beta1.DatabaseConfigB\003\340A\001\022c\n" + + "\021web_server_config\030\013 \001(\0132C.google.cloud." + + "orchestration.airflow.service.v1beta1.We" + + "bServerConfigB\003\340A\001\022\030\n\013airflow_uri\030\006 \001(\tB" + + "\003\340A\003\022\036\n\021airflow_byoid_uri\030\025 \001(\tB\003\340A\003\022d\n\021" + + "encryption_config\030\014 \001(\0132D.google.cloud.o" + + "rchestration.airflow.service.v1beta1.Enc" + + "ryptionConfigB\003\340A\001\022f\n\022maintenance_window" + + "\030\r \001(\0132E.google.cloud.orchestration.airf" + + "low.service.v1beta1.MaintenanceWindowB\003\340" + + "A\001\022b\n\020workloads_config\030\017 \001(\0132C.google.cl" + + "oud.orchestration.airflow.service.v1beta" + + "1.WorkloadsConfigB\003\340A\001\022t\n\020environment_si" + + "ze\030\020 \001(\0162U.google.cloud.orchestration.ai" + + "rflow.service.v1beta1.EnvironmentConfig." + + "EnvironmentSizeB\003\340A\001\022\202\001\n!master_authoriz" + + "ed_networks_config\030\021 \001(\0132R.google.cloud." + + "orchestration.airflow.service.v1beta1.Ma" + + "sterAuthorizedNetworksConfigB\003\340A\001\022`\n\017rec" + + "overy_config\030\022 \001(\0132B.google.cloud.orches" + + "tration.airflow.service.v1beta1.Recovery" + + "ConfigB\003\340A\001\022k\n\025data_retention_config\030\023 \001" + + "(\0132G.google.cloud.orchestration.airflow." + + "service.v1beta1.DataRetentionConfigB\003\340A\001" + + "\022r\n\017resilience_mode\030\024 \001(\0162T.google.cloud" + + ".orchestration.airflow.service.v1beta1.E" + + "nvironmentConfig.ResilienceModeB\003\340A\001\"\210\001\n" + + "\017EnvironmentSize\022 \n\034ENVIRONMENT_SIZE_UNS" + + "PECIFIED\020\000\022\032\n\026ENVIRONMENT_SIZE_SMALL\020\001\022\033" + + "\n\027ENVIRONMENT_SIZE_MEDIUM\020\002\022\032\n\026ENVIRONME" + + "NT_SIZE_LARGE\020\003\"F\n\016ResilienceMode\022\037\n\033RES" + + "ILIENCE_MODE_UNSPECIFIED\020\000\022\023\n\017HIGH_RESIL" + + "IENCE\020\001\"\327\001\n\035WebServerNetworkAccessContro" + + "l\022{\n\021allowed_ip_ranges\030\001 \003(\0132`.google.cl" + + "oud.orchestration.airflow.service.v1beta" + + "1.WebServerNetworkAccessControl.AllowedI" + + "pRange\0329\n\016AllowedIpRange\022\r\n\005value\030\001 \001(\t\022" + + "\030\n\013description\030\002 \001(\tB\003\340A\001\"\345\007\n\016SoftwareCo" + + "nfig\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022\205\001\n\030air" + + "flow_config_overrides\030\002 \003(\0132^.google.clo" + "ud.orchestration.airflow.service.v1beta1" - + ".DataRetentionConfigB\003\340A\001\022r\n\017resilience_" - + "mode\030\024 \001(\0162T.google.cloud.orchestration." - + "airflow.service.v1beta1.EnvironmentConfi" - + "g.ResilienceModeB\003\340A\001\"\210\001\n\017EnvironmentSiz" - + "e\022 \n\034ENVIRONMENT_SIZE_UNSPECIFIED\020\000\022\032\n\026E" - + "NVIRONMENT_SIZE_SMALL\020\001\022\033\n\027ENVIRONMENT_S" - + "IZE_MEDIUM\020\002\022\032\n\026ENVIRONMENT_SIZE_LARGE\020\003" - + "\"F\n\016ResilienceMode\022\037\n\033RESILIENCE_MODE_UN" - + "SPECIFIED\020\000\022\023\n\017HIGH_RESILIENCE\020\001\"\327\001\n\035Web" - + "ServerNetworkAccessControl\022{\n\021allowed_ip" - + "_ranges\030\001 \003(\0132`.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.WebServerNetw" - + "orkAccessControl.AllowedIpRange\0329\n\016Allow" - + "edIpRange\022\r\n\005value\030\001 \001(\t\022\030\n\013description\030" - + "\002 \001(\tB\003\340A\001\"\340\007\n\016SoftwareConfig\022\025\n\rimage_v" - + "ersion\030\001 \001(\t\022\205\001\n\030airflow_config_override" - + "s\030\002 \003(\0132^.google.cloud.orchestration.air" - + "flow.service.v1beta1.SoftwareConfig.Airf" - + "lowConfigOverridesEntryB\003\340A\001\022p\n\rpypi_pac" - + "kages\030\003 \003(\0132T.google.cloud.orchestration" - + ".airflow.service.v1beta1.SoftwareConfig." - + "PypiPackagesEntryB\003\340A\001\022p\n\renv_variables\030" - + "\004 \003(\0132T.google.cloud.orchestration.airfl" - + "ow.service.v1beta1.SoftwareConfig.EnvVar" - + "iablesEntryB\003\340A\001\022\033\n\016python_version\030\006 \001(\t" - + "B\003\340A\001\022\034\n\017scheduler_count\030\007 \001(\005B\003\340A\001\022|\n\036c" - + "loud_data_lineage_integration\030\010 \001(\0132O.go" - + "ogle.cloud.orchestration.airflow.service" - + ".v1beta1.CloudDataLineageIntegrationB\003\340A" - + "\001\022}\n\027web_server_plugins_mode\030\n \001(\0162W.goo" - + "gle.cloud.orchestration.airflow.service." - + "v1beta1.SoftwareConfig.WebServerPluginsM" - + "odeB\003\340A\001\032=\n\033AirflowConfigOverridesEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021PypiP" - + "ackagesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\0323\n\021EnvVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"j\n\024WebServerPluginsMod" - + "e\022\'\n#WEB_SERVER_PLUGINS_MODE_UNSPECIFIED" - + "\020\000\022\024\n\020PLUGINS_DISABLED\020\001\022\023\n\017PLUGINS_ENAB" - + "LED\020\002\"\325\001\n\022IPAllocationPolicy\022\033\n\016use_ip_a" - + "liases\030\001 \001(\010B\003\340A\001\022)\n\034cluster_secondary_r" - + "ange_name\030\002 \001(\tB\003\340A\001\022*\n\035services_seconda" - + "ry_range_name\030\003 \001(\tB\003\340A\001\022$\n\027cluster_ipv4" - + "_cidr_block\030\004 \001(\tB\003\340A\001\022%\n\030services_ipv4_" - + "cidr_block\030\005 \001(\tB\003\340A\001\"\334\003\n\nNodeConfig\022\025\n\010" - + "location\030\001 \001(\tB\003\340A\001\022\031\n\014machine_type\030\002 \001(" - + "\tB\003\340A\001\022\024\n\007network\030\003 \001(\tB\003\340A\001\022\027\n\nsubnetwo" - + "rk\030\004 \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030\005 \001(\005B\003\340A\001" - + "\022\031\n\014oauth_scopes\030\006 \003(\tB\003\340A\001\022\034\n\017service_a" - + "ccount\030\007 \001(\tB\003\340A\001\022\021\n\004tags\030\010 \003(\tB\003\340A\001\022i\n\024" - + "ip_allocation_policy\030\t \001(\0132F.google.clou" - + "d.orchestration.airflow.service.v1beta1." - + "IPAllocationPolicyB\003\340A\001\022\036\n\021max_pods_per_" - + "node\030\n \001(\005B\003\340A\001\022!\n\024enable_ip_masq_agent\030" - + "\013 \001(\010B\003\340A\001\022(\n\033composer_network_attachmen" - + "t\030\014 \001(\tB\003\340A\001\022.\n!composer_internal_ipv4_c" - + "idr_block\030\r \001(\tB\003\340A\001\"\212\001\n\024PrivateClusterC" - + "onfig\022$\n\027enable_private_endpoint\030\001 \001(\010B\003" - + "\340A\001\022#\n\026master_ipv4_cidr_block\030\002 \001(\tB\003\340A\001" - + "\022\'\n\032master_ipv4_reserved_range\030\003 \001(\tB\003\340A" - + "\003\"\346\001\n\020NetworkingConfig\022q\n\017connection_typ" - + "e\030\001 \001(\0162S.google.cloud.orchestration.air" - + "flow.service.v1beta1.NetworkingConfig.Co" - + "nnectionTypeB\003\340A\001\"_\n\016ConnectionType\022\037\n\033C" - + "ONNECTION_TYPE_UNSPECIFIED\020\000\022\017\n\013VPC_PEER" - + "ING\020\001\022\033\n\027PRIVATE_SERVICE_CONNECT\020\002\"\217\005\n\030P" - + "rivateEnvironmentConfig\022\'\n\032enable_privat" - + "e_environment\030\001 \001(\010B\003\340A\001\022\'\n\032enable_priva" - + "te_builds_only\030\013 \001(\010B\003\340A\001\022m\n\026private_clu" - + "ster_config\030\002 \001(\0132H.google.cloud.orchest" - + "ration.airflow.service.v1beta1.PrivateCl" - + "usterConfigB\003\340A\001\022\'\n\032web_server_ipv4_cidr" - + "_block\030\003 \001(\tB\003\340A\001\022&\n\031cloud_sql_ipv4_cidr" - + "_block\030\004 \001(\tB\003\340A\001\022+\n\036web_server_ipv4_res" - + "erved_range\030\005 \001(\tB\003\340A\003\0223\n&cloud_composer" - + "_network_ipv4_cidr_block\030\007 \001(\tB\003\340A\001\0227\n*c" - + "loud_composer_network_ipv4_reserved_rang" - + "e\030\010 \001(\tB\003\340A\003\022-\n enable_privately_used_pu" - + "blic_ips\030\006 \001(\010B\003\340A\001\0221\n$cloud_composer_co" - + "nnection_subnetwork\030\t \001(\tB\003\340A\001\022d\n\021networ" - + "king_config\030\n \001(\0132D.google.cloud.orchest" - + "ration.airflow.service.v1beta1.Networkin" - + "gConfigB\003\340A\001\">\n\016DatabaseConfig\022\031\n\014machin" - + "e_type\030\001 \001(\tB\003\340A\001\022\021\n\004zone\030\002 \001(\tB\003\340A\001\",\n\017" - + "WebServerConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340" - + "A\001\"-\n\020EncryptionConfig\022\031\n\014kms_key_name\030\001" - + " \001(\tB\003\340A\001\"\224\001\n\021MaintenanceWindow\0223\n\nstart" - + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\002\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\002\022\027\n\nrecurrence\030\003 \001(\tB\003\340A\002" - + "\"\312\010\n\017WorkloadsConfig\022m\n\tscheduler\030\001 \001(\0132" - + "U.google.cloud.orchestration.airflow.ser" - + "vice.v1beta1.WorkloadsConfig.SchedulerRe" - + "sourceB\003\340A\001\022n\n\nweb_server\030\002 \001(\0132U.google" + + ".SoftwareConfig.AirflowConfigOverridesEn" + + "tryB\003\340A\001\022p\n\rpypi_packages\030\003 \003(\0132T.google" + ".cloud.orchestration.airflow.service.v1b" - + "eta1.WorkloadsConfig.WebServerResourceB\003" - + "\340A\001\022g\n\006worker\030\003 \001(\0132R.google.cloud.orche" + + "eta1.SoftwareConfig.PypiPackagesEntryB\003\340" + + "A\001\022p\n\renv_variables\030\004 \003(\0132T.google.cloud" + + ".orchestration.airflow.service.v1beta1.S" + + "oftwareConfig.EnvVariablesEntryB\003\340A\001\022\033\n\016" + + "python_version\030\006 \001(\tB\003\340A\001\022\034\n\017scheduler_c" + + "ount\030\007 \001(\005B\003\340A\001\022|\n\036cloud_data_lineage_in" + + "tegration\030\010 \001(\0132O.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.CloudDataLi" + + "neageIntegrationB\003\340A\001\022}\n\027web_server_plug" + + "ins_mode\030\n \001(\0162W.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.SoftwareConf" + + "ig.WebServerPluginsModeB\003\340A\001\032=\n\033AirflowC" + + "onfigOverridesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\0323\n\021PypiPackagesEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021EnvVariables" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n" + + "\024WebServerPluginsMode\022\'\n#WEB_SERVER_PLUG" + + "INS_MODE_UNSPECIFIED\020\000\022\024\n\020PLUGINS_DISABL" + + "ED\020\001\022\023\n\017PLUGINS_ENABLED\020\002\"\325\001\n\022IPAllocati" + + "onPolicy\022\033\n\016use_ip_aliases\030\001 \001(\010B\003\340A\001\022)\n" + + "\034cluster_secondary_range_name\030\002 \001(\tB\003\340A\001" + + "\022*\n\035services_secondary_range_name\030\003 \001(\tB" + + "\003\340A\001\022$\n\027cluster_ipv4_cidr_block\030\004 \001(\tB\003\340" + + "A\001\022%\n\030services_ipv4_cidr_block\030\005 \001(\tB\003\340A" + + "\001\"\334\003\n\nNodeConfig\022\025\n\010location\030\001 \001(\tB\003\340A\001\022" + + "\031\n\014machine_type\030\002 \001(\tB\003\340A\001\022\024\n\007network\030\003 " + + "\001(\tB\003\340A\001\022\027\n\nsubnetwork\030\004 \001(\tB\003\340A\001\022\031\n\014dis" + + "k_size_gb\030\005 \001(\005B\003\340A\001\022\031\n\014oauth_scopes\030\006 \003" + + "(\tB\003\340A\001\022\034\n\017service_account\030\007 \001(\tB\003\340A\001\022\021\n" + + "\004tags\030\010 \003(\tB\003\340A\001\022i\n\024ip_allocation_policy" + + "\030\t \001(\0132F.google.cloud.orchestration.airf" + + "low.service.v1beta1.IPAllocationPolicyB\003" + + "\340A\001\022\036\n\021max_pods_per_node\030\n \001(\005B\003\340A\001\022!\n\024e" + + "nable_ip_masq_agent\030\013 \001(\010B\003\340A\001\022(\n\033compos" + + "er_network_attachment\030\014 \001(\tB\003\340A\001\022.\n!comp" + + "oser_internal_ipv4_cidr_block\030\r \001(\tB\003\340A\001" + + "\"\212\001\n\024PrivateClusterConfig\022$\n\027enable_priv" + + "ate_endpoint\030\001 \001(\010B\003\340A\001\022#\n\026master_ipv4_c" + + "idr_block\030\002 \001(\tB\003\340A\001\022\'\n\032master_ipv4_rese" + + "rved_range\030\003 \001(\tB\003\340A\003\"\346\001\n\020NetworkingConf" + + "ig\022q\n\017connection_type\030\001 \001(\0162S.google.clo" + + "ud.orchestration.airflow.service.v1beta1" + + ".NetworkingConfig.ConnectionTypeB\003\340A\001\"_\n" + + "\016ConnectionType\022\037\n\033CONNECTION_TYPE_UNSPE" + + "CIFIED\020\000\022\017\n\013VPC_PEERING\020\001\022\033\n\027PRIVATE_SER" + + "VICE_CONNECT\020\002\"\217\005\n\030PrivateEnvironmentCon" + + "fig\022\'\n\032enable_private_environment\030\001 \001(\010B" + + "\003\340A\001\022\'\n\032enable_private_builds_only\030\013 \001(\010" + + "B\003\340A\001\022m\n\026private_cluster_config\030\002 \001(\0132H." + + "google.cloud.orchestration.airflow.servi" + + "ce.v1beta1.PrivateClusterConfigB\003\340A\001\022\'\n\032" + + "web_server_ipv4_cidr_block\030\003 \001(\tB\003\340A\001\022&\n" + + "\031cloud_sql_ipv4_cidr_block\030\004 \001(\tB\003\340A\001\022+\n" + + "\036web_server_ipv4_reserved_range\030\005 \001(\tB\003\340" + + "A\003\0223\n&cloud_composer_network_ipv4_cidr_b" + + "lock\030\007 \001(\tB\003\340A\001\0227\n*cloud_composer_networ" + + "k_ipv4_reserved_range\030\010 \001(\tB\003\340A\003\022-\n enab" + + "le_privately_used_public_ips\030\006 \001(\010B\003\340A\001\022" + + "1\n$cloud_composer_connection_subnetwork\030" + + "\t \001(\tB\003\340A\001\022d\n\021networking_config\030\n \001(\0132D." + + "google.cloud.orchestration.airflow.servi" + + "ce.v1beta1.NetworkingConfigB\003\340A\001\">\n\016Data" + + "baseConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\021\n" + + "\004zone\030\002 \001(\tB\003\340A\001\",\n\017WebServerConfig\022\031\n\014m" + + "achine_type\030\001 \001(\tB\003\340A\001\"-\n\020EncryptionConf" + + "ig\022\031\n\014kms_key_name\030\001 \001(\tB\003\340A\001\"\224\001\n\021Mainte" + + "nanceWindow\0223\n\nstart_time\030\001 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\002\0221\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\002\022\027\n\nr" + + "ecurrence\030\003 \001(\tB\003\340A\002\"\312\010\n\017WorkloadsConfig" + + "\022m\n\tscheduler\030\001 \001(\0132U.google.cloud.orche" + "stration.airflow.service.v1beta1.Workloa" - + "dsConfig.WorkerResourceB\003\340A\001\022m\n\ttriggere" - + "r\030\004 \001(\0132U.google.cloud.orchestration.air" - + "flow.service.v1beta1.WorkloadsConfig.Tri" - + "ggererResourceB\003\340A\001\022t\n\rdag_processor\030\005 \001" - + "(\0132X.google.cloud.orchestration.airflow." - + "service.v1beta1.WorkloadsConfig.DagProce" - + "ssorResourceB\003\340A\001\032j\n\021SchedulerResource\022\020" - + "\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001" - + "\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\022\022\n\005count\030\004 \001(\005" - + "B\003\340A\001\032V\n\021WebServerResource\022\020\n\003cpu\030\001 \001(\002B" - + "\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_" - + "gb\030\003 \001(\002B\003\340A\001\032\203\001\n\016WorkerResource\022\020\n\003cpu\030" - + "\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027\n\nst" - + "orage_gb\030\003 \001(\002B\003\340A\001\022\026\n\tmin_count\030\004 \001(\005B\003" - + "\340A\001\022\026\n\tmax_count\030\005 \001(\005B\003\340A\001\032Q\n\021Triggerer" - + "Resource\022\022\n\005count\030\001 \001(\005B\003\340A\001\022\020\n\003cpu\030\002 \001(" - + "\002B\003\340A\001\022\026\n\tmemory_gb\030\003 \001(\002B\003\340A\001\032m\n\024DagPro" - + "cessorResource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemo" - + "ry_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A" - + "\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\"\306\002\n\023DataRetentionC" - + "onfig\022.\n\037airflow_database_retention_days" - + "\030\001 \001(\005B\005\030\001\340A\001\022t\n\032task_logs_retention_con" - + "fig\030\004 \001(\0132K.google.cloud.orchestration.a" - + "irflow.service.v1beta1.TaskLogsRetention" - + "ConfigB\003\340A\001\022\210\001\n!airflow_metadata_retenti" - + "on_config\030\005 \001(\0132X.google.cloud.orchestra" - + "tion.airflow.service.v1beta1.AirflowMeta" - + "dataRetentionPolicyConfigB\003\340A\001\"\221\002\n\027TaskL" - + "ogsRetentionConfig\022z\n\014storage_mode\030\002 \001(\016" - + "2_.google.cloud.orchestration.airflow.se" - + "rvice.v1beta1.TaskLogsRetentionConfig.Ta" - + "skLogsStorageModeB\003\340A\001\"z\n\023TaskLogsStorag" - + "eMode\022&\n\"TASK_LOGS_STORAGE_MODE_UNSPECIF" - + "IED\020\000\022#\n\037CLOUD_LOGGING_AND_CLOUD_STORAGE" - + "\020\001\022\026\n\022CLOUD_LOGGING_ONLY\020\002\"\263\002\n$AirflowMe" - + "tadataRetentionPolicyConfig\022\203\001\n\016retentio" - + "n_mode\030\001 \001(\0162f.google.cloud.orchestratio" - + "n.airflow.service.v1beta1.AirflowMetadat" - + "aRetentionPolicyConfig.RetentionModeB\003\340A" - + "\001\022\033\n\016retention_days\030\002 \001(\005B\003\340A\001\"h\n\rRetent" - + "ionMode\022\036\n\032RETENTION_MODE_UNSPECIFIED\020\000\022" - + "\032\n\026RETENTION_MODE_ENABLED\020\001\022\033\n\027RETENTION" - + "_MODE_DISABLED\020\002\"$\n\rStorageConfig\022\023\n\006buc" - + "ket\030\001 \001(\tB\003\340A\001\"\207\001\n\016RecoveryConfig\022u\n\032sch" - + "eduled_snapshots_config\030\001 \001(\0132L.google.c" + + "dsConfig.SchedulerResourceB\003\340A\001\022n\n\nweb_s" + + "erver\030\002 \001(\0132U.google.cloud.orchestration" + + ".airflow.service.v1beta1.WorkloadsConfig" + + ".WebServerResourceB\003\340A\001\022g\n\006worker\030\003 \001(\0132" + + "R.google.cloud.orchestration.airflow.ser" + + "vice.v1beta1.WorkloadsConfig.WorkerResou" + + "rceB\003\340A\001\022m\n\ttriggerer\030\004 \001(\0132U.google.clo" + + "ud.orchestration.airflow.service.v1beta1" + + ".WorkloadsConfig.TriggererResourceB\003\340A\001\022" + + "t\n\rdag_processor\030\005 \001(\0132X.google.cloud.or" + + "chestration.airflow.service.v1beta1.Work" + + "loadsConfig.DagProcessorResourceB\003\340A\001\032j\n" + + "\021SchedulerResource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\t" + + "memory_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002" + + "B\003\340A\001\022\022\n\005count\030\004 \001(\005B\003\340A\001\032V\n\021WebServerRe" + + "source\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 " + + "\001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\032\203\001\n\016Wo" + + "rkerResource\022\020\n\003cpu\030\001 \001(\002B\003\340A\001\022\026\n\tmemory" + + "_gb\030\002 \001(\002B\003\340A\001\022\027\n\nstorage_gb\030\003 \001(\002B\003\340A\001\022" + + "\026\n\tmin_count\030\004 \001(\005B\003\340A\001\022\026\n\tmax_count\030\005 \001" + + "(\005B\003\340A\001\032Q\n\021TriggererResource\022\022\n\005count\030\001 " + + "\001(\005B\003\340A\001\022\020\n\003cpu\030\002 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030" + + "\003 \001(\002B\003\340A\001\032m\n\024DagProcessorResource\022\020\n\003cp" + + "u\030\001 \001(\002B\003\340A\001\022\026\n\tmemory_gb\030\002 \001(\002B\003\340A\001\022\027\n\n" + + "storage_gb\030\003 \001(\002B\003\340A\001\022\022\n\005count\030\004 \001(\005B\003\340A" + + "\001\"\306\002\n\023DataRetentionConfig\022.\n\037airflow_dat" + + "abase_retention_days\030\001 \001(\005B\005\030\001\340A\001\022t\n\032tas" + + "k_logs_retention_config\030\004 \001(\0132K.google.c" + "loud.orchestration.airflow.service.v1bet" - + "a1.ScheduledSnapshotsConfigB\003\340A\001\"\221\001\n\030Sch" - + "eduledSnapshotsConfig\022\024\n\007enabled\030\001 \001(\010B\003" - + "\340A\001\022\036\n\021snapshot_location\030\006 \001(\tB\003\340A\001\022\'\n\032s" - + "napshot_creation_schedule\030\003 \001(\tB\003\340A\001\022\026\n\t" - + "time_zone\030\005 \001(\tB\003\340A\001\"\333\001\n\036MasterAuthorize" - + "dNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022q\n\013cidr" - + "_blocks\030\002 \003(\0132\\.google.cloud.orchestrati" - + "on.airflow.service.v1beta1.MasterAuthori" - + "zedNetworksConfig.CidrBlock\0325\n\tCidrBlock" - + "\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001" - + "(\t\"3\n\033CloudDataLineageIntegration\022\024\n\007ena" - + "bled\030\001 \001(\010B\003\340A\001\"\300\006\n\013Environment\022\014\n\004name\030" - + "\001 \001(\t\022U\n\006config\030\002 \001(\0132E.google.cloud.orc" - + "hestration.airflow.service.v1beta1.Envir" - + "onmentConfig\022\021\n\004uuid\030\003 \001(\tB\003\340A\003\022T\n\005state" - + "\030\004 \001(\0162E.google.cloud.orchestration.airf" - + "low.service.v1beta1.Environment.State\0224\n" - + "\013create_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022`\n\006labels\030\007 \003(" - + "\0132K.google.cloud.orchestration.airflow.s" - + "ervice.v1beta1.Environment.LabelsEntryB\003" - + "\340A\001\022\032\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\rsatis" - + "fies_pzi\030\n \001(\010B\003\340A\003\022^\n\016storage_config\030\t " - + "\001(\0132A.google.cloud.orchestration.airflow" - + ".service.v1beta1.StorageConfigB\003\340A\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" - + "EATING\020\001\022\013\n\007RUNNING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010D" - + "ELETING\020\004\022\t\n\005ERROR\020\005:l\352Ai\n#composer.goog" - + "leapis.com/Environment\022Bprojects/{projec" - + "t}/locations/{location}/environments/{en" - + "vironment}\"A\n\023CheckUpgradeRequest\022\023\n\013env" - + "ironment\030\001 \001(\t\022\025\n\rimage_version\030\002 \001(\t\"\204\004" - + "\n\024CheckUpgradeResponse\022\032\n\rbuild_log_uri\030" - + "\001 \001(\tB\003\340A\003\022\204\001\n\036contains_pypi_modules_con" - + "flict\030\004 \001(\0162W.google.cloud.orchestration" - + ".airflow.service.v1beta1.CheckUpgradeRes" - + "ponse.ConflictResultB\003\340A\003\022,\n\037pypi_confli" - + "ct_build_log_extract\030\003 \001(\tB\003\340A\003\022\025\n\rimage" - + "_version\030\005 \001(\t\022y\n\021pypi_dependencies\030\006 \003(" - + "\0132^.google.cloud.orchestration.airflow.s" - + "ervice.v1beta1.CheckUpgradeResponse.Pypi" - + "DependenciesEntry\0327\n\025PypiDependenciesEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"P\n\016Co" - + "nflictResult\022\037\n\033CONFLICT_RESULT_UNSPECIF" - + "IED\020\000\022\014\n\010CONFLICT\020\001\022\017\n\013NO_CONFLICT\020\0022\345;\n" - + "\014Environments\022\270\002\n\021CreateEnvironment\022L.go" + + "a1.TaskLogsRetentionConfigB\003\340A\001\022\210\001\n!airf" + + "low_metadata_retention_config\030\005 \001(\0132X.go" + "ogle.cloud.orchestration.airflow.service" - + ".v1beta1.CreateEnvironmentRequest\032\035.goog" - + "le.longrunning.Operation\"\265\001\312AS\n\013Environm" - + "ent\022Dgoogle.cloud.orchestration.airflow." - + "service.v1beta1.OperationMetadata\332A\022pare" - + "nt,environment\202\323\344\223\002D\"5/v1beta1/{parent=p" - + "rojects/*/locations/*}/environments:\013env" - + "ironment\022\342\001\n\016GetEnvironment\022I.google.clo" - + "ud.orchestration.airflow.service.v1beta1" - + ".GetEnvironmentRequest\032?.google.cloud.or", - "chestration.airflow.service.v1beta1.Envi" - + "ronment\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=p" - + "rojects/*/locations/*/environments/*}\022\365\001" - + "\n\020ListEnvironments\022K.google.cloud.orches" - + "tration.airflow.service.v1beta1.ListEnvi" - + "ronmentsRequest\032L.google.cloud.orchestra" - + "tion.airflow.service.v1beta1.ListEnviron" - + "mentsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta1" - + "/{parent=projects/*/locations/*}/environ" - + "ments\022\302\002\n\021UpdateEnvironment\022L.google.clo" + + ".v1beta1.AirflowMetadataRetentionPolicyC" + + "onfigB\003\340A\001\"\221\002\n\027TaskLogsRetentionConfig\022z" + + "\n\014storage_mode\030\002 \001(\0162_.google.cloud.orch" + + "estration.airflow.service.v1beta1.TaskLo" + + "gsRetentionConfig.TaskLogsStorageModeB\003\340" + + "A\001\"z\n\023TaskLogsStorageMode\022&\n\"TASK_LOGS_S" + + "TORAGE_MODE_UNSPECIFIED\020\000\022#\n\037CLOUD_LOGGI" + + "NG_AND_CLOUD_STORAGE\020\001\022\026\n\022CLOUD_LOGGING_" + + "ONLY\020\002\"\263\002\n$AirflowMetadataRetentionPolic" + + "yConfig\022\203\001\n\016retention_mode\030\001 \001(\0162f.googl" + + "e.cloud.orchestration.airflow.service.v1" + + "beta1.AirflowMetadataRetentionPolicyConf" + + "ig.RetentionModeB\003\340A\001\022\033\n\016retention_days\030" + + "\002 \001(\005B\003\340A\001\"h\n\rRetentionMode\022\036\n\032RETENTION" + + "_MODE_UNSPECIFIED\020\000\022\032\n\026RETENTION_MODE_EN" + + "ABLED\020\001\022\033\n\027RETENTION_MODE_DISABLED\020\002\"$\n\r" + + "StorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\"\207\001\n\016R" + + "ecoveryConfig\022u\n\032scheduled_snapshots_con" + + "fig\030\001 \001(\0132L.google.cloud.orchestration.a" + + "irflow.service.v1beta1.ScheduledSnapshot" + + "sConfigB\003\340A\001\"\221\001\n\030ScheduledSnapshotsConfi" + + "g\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\022\036\n\021snapshot_loca" + + "tion\030\006 \001(\tB\003\340A\001\022\'\n\032snapshot_creation_sch" + + "edule\030\003 \001(\tB\003\340A\001\022\026\n\ttime_zone\030\005 \001(\tB\003\340A\001" + + "\"\333\001\n\036MasterAuthorizedNetworksConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\022q\n\013cidr_blocks\030\002 \003(\0132\\.goog" + + "le.cloud.orchestration.airflow.service.v" + + "1beta1.MasterAuthorizedNetworksConfig.Ci" + + "drBlock\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001" + + "(\t\022\022\n\ncidr_block\030\002 \001(\t\"3\n\033CloudDataLinea" + + "geIntegration\022\024\n\007enabled\030\001 \001(\010B\003\340A\001\"\312\006\n\013" + + "Environment\022\021\n\004name\030\001 \001(\tB\003\340A\010\022Z\n\006config" + + "\030\002 \001(\0132E.google.cloud.orchestration.airf" + + "low.service.v1beta1.EnvironmentConfigB\003\340" + + "A\001\022\021\n\004uuid\030\003 \001(\tB\003\340A\003\022T\n\005state\030\004 \001(\0162E.g" + + "oogle.cloud.orchestration.airflow.servic" + + "e.v1beta1.Environment.State\0224\n\013create_ti" + + "me\030\005 \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`\n\006labels\030\007 \003(\0132K.google" + + ".cloud.orchestration.airflow.service.v1b" + + "eta1.Environment.LabelsEntryB\003\340A\001\022\032\n\rsat" + + "isfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\n" + + " \001(\010B\003\340A\003\022^\n\016storage_config\030\t \001(\0132A.goog" + + "le.cloud.orchestration.airflow.service.v" + + "1beta1.StorageConfigB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013" + + "\n\007RUNNING\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022" + + "\t\n\005ERROR\020\005:l\352Ai\n#composer.googleapis.com" + + "/Environment\022Bprojects/{project}/locatio" + + "ns/{location}/environments/{environment}" + + "\"A\n\023CheckUpgradeRequest\022\023\n\013environment\030\001" + + " \001(\t\022\025\n\rimage_version\030\002 \001(\t\"\204\004\n\024CheckUpg" + + "radeResponse\022\032\n\rbuild_log_uri\030\001 \001(\tB\003\340A\003" + + "\022\204\001\n\036contains_pypi_modules_conflict\030\004 \001(" + + "\0162W.google.cloud.orchestration.airflow.s" + + "ervice.v1beta1.CheckUpgradeResponse.Conf" + + "lictResultB\003\340A\003\022,\n\037pypi_conflict_build_l" + + "og_extract\030\003 \001(\tB\003\340A\003\022\025\n\rimage_version\030\005" + + " \001(\t\022y\n\021pypi_dependencies\030\006 \003(\0132^.google" + + ".cloud.orchestration.airflow.service.v1b" + + "eta1.CheckUpgradeResponse.PypiDependenci" + + "esEntry\0327\n\025PypiDependenciesEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"P\n\016ConflictResu" + + "lt\022\037\n\033CONFLICT_RESULT_UNSPECIFIED\020\000\022\014\n\010C" + + "ONFLICT\020\001\022\017\n\013NO_CONFLICT\020\0022\345;\n\014Environme" + + "nts\022\270\002\n\021CreateEnvironment\022L.google.cloud" + + ".orchestration.airflow.service.v1beta1.C" + + "reateEnvironmentRequest\032\035.google.longrun" + + "ning.Operation\"\265\001\312AS\n\013Environment\022Dgoogl" + + "e.cloud.orchestration.airflow.service.v1" + + "beta1.OperationMetadata\332A\022parent,environ" + + "ment\202\323\344\223\002D\"5/v1beta1/{parent=projects/*/" + + "locations/*}/environments:\013environment\022\342" + + "\001\n\016GetEnvironment\022I.google.cloud.orchest" + + "ration.airflow.service.v1beta1.GetEnviro", + "nmentRequest\032?.google.cloud.orchestratio" + + "n.airflow.service.v1beta1.Environment\"D\332" + + "A\004name\202\323\344\223\0027\0225/v1beta1/{name=projects/*/" + + "locations/*/environments/*}\022\365\001\n\020ListEnvi" + + "ronments\022K.google.cloud.orchestration.ai" + + "rflow.service.v1beta1.ListEnvironmentsRe" + + "quest\032L.google.cloud.orchestration.airfl" + + "ow.service.v1beta1.ListEnvironmentsRespo" + + "nse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta1/{parent=p" + + "rojects/*/locations/*}/environments\022\302\002\n\021" + + "UpdateEnvironment\022L.google.cloud.orchest" + + "ration.airflow.service.v1beta1.UpdateEnv" + + "ironmentRequest\032\035.google.longrunning.Ope" + + "ration\"\277\001\312AS\n\013Environment\022Dgoogle.cloud." + + "orchestration.airflow.service.v1beta1.Op" + + "erationMetadata\332A\034name,environment,updat" + + "e_mask\202\323\344\223\002D25/v1beta1/{name=projects/*/" + + "locations/*/environments/*}:\013environment" + + "\022\247\002\n\021DeleteEnvironment\022L.google.cloud.or" + + "chestration.airflow.service.v1beta1.Dele" + + "teEnvironmentRequest\032\035.google.longrunnin" + + "g.Operation\"\244\001\312A]\n\025google.protobuf.Empty" + + "\022Dgoogle.cloud.orchestration.airflow.ser" + + "vice.v1beta1.OperationMetadata\332A\004name\202\323\344" + + "\223\0027*5/v1beta1/{name=projects/*/locations" + + "/*/environments/*}\022\250\002\n\020RestartWebServer\022" + + "K.google.cloud.orchestration.airflow.ser" + + "vice.v1beta1.RestartWebServerRequest\032\035.g" + + "oogle.longrunning.Operation\"\247\001\312AS\n\013Envir" + + "onment\022Dgoogle.cloud.orchestration.airfl" + + "ow.service.v1beta1.OperationMetadata\202\323\344\223" + + "\002K\"F/v1beta1/{name=projects/*/locations/" + + "*/environments/*}:restartWebServer:\001*\022\340\002" + + "\n\014CheckUpgrade\022G.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.CheckUpgrade" + + "Request\032\035.google.longrunning.Operation\"\347" + + "\001\312A\217\001\nGgoogle.cloud.orchestration.airflo" + + "w.service.v1beta1.CheckUpgradeResponse\022D" + + "google.cloud.orchestration.airflow.servi" + + "ce.v1beta1.OperationMetadata\202\323\344\223\002N\"I/v1b" + + "eta1/{environment=projects/*/locations/*" + + "/environments/*}:checkUpgrade:\001*\022\233\002\n\025Exe" + + "cuteAirflowCommand\022P.google.cloud.orches" + + "tration.airflow.service.v1beta1.ExecuteA" + + "irflowCommandRequest\032Q.google.cloud.orch" + + "estration.airflow.service.v1beta1.Execut" + + "eAirflowCommandResponse\"]\202\323\344\223\002W\"R/v1beta" + + "1/{environment=projects/*/locations/*/en" + + "vironments/*}:executeAirflowCommand:\001*\022\217" + + "\002\n\022StopAirflowCommand\022M.google.cloud.orc" + + "hestration.airflow.service.v1beta1.StopA" + + "irflowCommandRequest\032N.google.cloud.orch" + + "estration.airflow.service.v1beta1.StopAi" + + "rflowCommandResponse\"Z\202\323\344\223\002T\"O/v1beta1/{" + + "environment=projects/*/locations/*/envir" + + "onments/*}:stopAirflowCommand:\001*\022\217\002\n\022Pol" + + "lAirflowCommand\022M.google.cloud.orchestra" + + "tion.airflow.service.v1beta1.PollAirflow" + + "CommandRequest\032N.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.PollAirflowC" + + "ommandResponse\"Z\202\323\344\223\002T\"O/v1beta1/{enviro" + + "nment=projects/*/locations/*/environment" + + "s/*}:pollAirflowCommand:\001*\022\370\001\n\rListWorkl" + + "oads\022H.google.cloud.orchestration.airflo" + + "w.service.v1beta1.ListWorkloadsRequest\032I" + + ".google.cloud.orchestration.airflow.serv" + + "ice.v1beta1.ListWorkloadsResponse\"R\332A\006pa" + + "rent\202\323\344\223\002C\022A/v1beta1/{parent=projects/*/" + + "locations/*/environments/*}/workloads\022\307\002" + + "\n\031CreateUserWorkloadsSecret\022T.google.clo" + "ud.orchestration.airflow.service.v1beta1" - + ".UpdateEnvironmentRequest\032\035.google.longr" - + "unning.Operation\"\277\001\312AS\n\013Environment\022Dgoo" + + ".CreateUserWorkloadsSecretRequest\032G.goog" + + "le.cloud.orchestration.airflow.service.v" + + "1beta1.UserWorkloadsSecret\"\212\001\332A\034parent,u" + + "ser_workloads_secret\202\323\344\223\002e\"L/v1beta1/{pa" + + "rent=projects/*/locations/*/environments" + + "/*}/userWorkloadsSecrets:\025user_workloads" + + "_secret\022\221\002\n\026GetUserWorkloadsSecret\022Q.goo" + "gle.cloud.orchestration.airflow.service." - + "v1beta1.OperationMetadata\332A\034name,environ" - + "ment,update_mask\202\323\344\223\002D25/v1beta1/{name=p" - + "rojects/*/locations/*/environments/*}:\013e" - + "nvironment\022\247\002\n\021DeleteEnvironment\022L.googl" + + "v1beta1.GetUserWorkloadsSecretRequest\032G." + + "google.cloud.orchestration.airflow.servi" + + "ce.v1beta1.UserWorkloadsSecret\"[\332A\004name\202" + + "\323\344\223\002N\022L/v1beta1/{name=projects/*/locatio" + + "ns/*/environments/*/userWorkloadsSecrets" + + "/*}\022\244\002\n\030ListUserWorkloadsSecrets\022S.googl" + "e.cloud.orchestration.airflow.service.v1" - + "beta1.DeleteEnvironmentRequest\032\035.google." - + "longrunning.Operation\"\244\001\312A]\n\025google.prot" - + "obuf.Empty\022Dgoogle.cloud.orchestration.a" - + "irflow.service.v1beta1.OperationMetadata" - + "\332A\004name\202\323\344\223\0027*5/v1beta1/{name=projects/*" - + "/locations/*/environments/*}\022\250\002\n\020Restart" - + "WebServer\022K.google.cloud.orchestration.a" - + "irflow.service.v1beta1.RestartWebServerR" - + "equest\032\035.google.longrunning.Operation\"\247\001" - + "\312AS\n\013Environment\022Dgoogle.cloud.orchestra" - + "tion.airflow.service.v1beta1.OperationMe" - + "tadata\202\323\344\223\002K\"F/v1beta1/{name=projects/*/" - + "locations/*/environments/*}:restartWebSe" - + "rver:\001*\022\340\002\n\014CheckUpgrade\022G.google.cloud." - + "orchestration.airflow.service.v1beta1.Ch" - + "eckUpgradeRequest\032\035.google.longrunning.O" - + "peration\"\347\001\312A\217\001\nGgoogle.cloud.orchestrat" - + "ion.airflow.service.v1beta1.CheckUpgrade" - + "Response\022Dgoogle.cloud.orchestration.air" - + "flow.service.v1beta1.OperationMetadata\202\323" - + "\344\223\002N\"I/v1beta1/{environment=projects/*/l" - + "ocations/*/environments/*}:checkUpgrade:" - + "\001*\022\233\002\n\025ExecuteAirflowCommand\022P.google.cl" - + "oud.orchestration.airflow.service.v1beta" - + "1.ExecuteAirflowCommandRequest\032Q.google." - + "cloud.orchestration.airflow.service.v1be" - + "ta1.ExecuteAirflowCommandResponse\"]\202\323\344\223\002" - + "W\"R/v1beta1/{environment=projects/*/loca" - + "tions/*/environments/*}:executeAirflowCo" - + "mmand:\001*\022\217\002\n\022StopAirflowCommand\022M.google" - + ".cloud.orchestration.airflow.service.v1b" - + "eta1.StopAirflowCommandRequest\032N.google." - + "cloud.orchestration.airflow.service.v1be" - + "ta1.StopAirflowCommandResponse\"Z\202\323\344\223\002T\"O" - + "/v1beta1/{environment=projects/*/locatio" - + "ns/*/environments/*}:stopAirflowCommand:" - + "\001*\022\217\002\n\022PollAirflowCommand\022M.google.cloud" - + ".orchestration.airflow.service.v1beta1.P" - + "ollAirflowCommandRequest\032N.google.cloud." - + "orchestration.airflow.service.v1beta1.Po" - + "llAirflowCommandResponse\"Z\202\323\344\223\002T\"O/v1bet" - + "a1/{environment=projects/*/locations/*/e" - + "nvironments/*}:pollAirflowCommand:\001*\022\370\001\n" - + "\rListWorkloads\022H.google.cloud.orchestrat" - + "ion.airflow.service.v1beta1.ListWorkload" - + "sRequest\032I.google.cloud.orchestration.ai" - + "rflow.service.v1beta1.ListWorkloadsRespo" - + "nse\"R\332A\006parent\202\323\344\223\002C\022A/v1beta1/{parent=p" - + "rojects/*/locations/*/environments/*}/wo" - + "rkloads\022\307\002\n\031CreateUserWorkloadsSecret\022T." + + "beta1.ListUserWorkloadsSecretsRequest\032T." + "google.cloud.orchestration.airflow.servi" - + "ce.v1beta1.CreateUserWorkloadsSecretRequ" - + "est\032G.google.cloud.orchestration.airflow" - + ".service.v1beta1.UserWorkloadsSecret\"\212\001\332" - + "A\034parent,user_workloads_secret\202\323\344\223\002e\"L/v" - + "1beta1/{parent=projects/*/locations/*/en" - + "vironments/*}/userWorkloadsSecrets:\025user" - + "_workloads_secret\022\221\002\n\026GetUserWorkloadsSe" - + "cret\022Q.google.cloud.orchestration.airflo" - + "w.service.v1beta1.GetUserWorkloadsSecret" - + "Request\032G.google.cloud.orchestration.air" - + "flow.service.v1beta1.UserWorkloadsSecret" - + "\"[\332A\004name\202\323\344\223\002N\022L/v1beta1/{name=projects" - + "/*/locations/*/environments/*/userWorklo" - + "adsSecrets/*}\022\244\002\n\030ListUserWorkloadsSecre" - + "ts\022S.google.cloud.orchestration.airflow." - + "service.v1beta1.ListUserWorkloadsSecrets" - + "Request\032T.google.cloud.orchestration.air" - + "flow.service.v1beta1.ListUserWorkloadsSe" - + "cretsResponse\"]\332A\006parent\202\323\344\223\002N\022L/v1beta1" - + "/{parent=projects/*/locations/*/environm" - + "ents/*}/userWorkloadsSecrets\022\326\002\n\031UpdateU" - + "serWorkloadsSecret\022T.google.cloud.orches" - + "tration.airflow.service.v1beta1.UpdateUs" - + "erWorkloadsSecretRequest\032G.google.cloud." - + "orchestration.airflow.service.v1beta1.Us" - + "erWorkloadsSecret\"\231\001\332A\025user_workloads_se" - + "cret\202\323\344\223\002{\032b/v1beta1/{user_workloads_sec" - + "ret.name=projects/*/locations/*/environm" - + "ents/*/userWorkloadsSecrets/*}:\025user_wor" - + "kloads_secret\022\346\001\n\031DeleteUserWorkloadsSec" - + "ret\022T.google.cloud.orchestration.airflow" - + ".service.v1beta1.DeleteUserWorkloadsSecr" - + "etRequest\032\026.google.protobuf.Empty\"[\332A\004na" - + "me\202\323\344\223\002N*L/v1beta1/{name=projects/*/loca" - + "tions/*/environments/*/userWorkloadsSecr" - + "ets/*}\022\333\002\n\034CreateUserWorkloadsConfigMap\022" - + "W.google.cloud.orchestration.airflow.ser" - + "vice.v1beta1.CreateUserWorkloadsConfigMa" - + "pRequest\032J.google.cloud.orchestration.ai" - + "rflow.service.v1beta1.UserWorkloadsConfi" - + "gMap\"\225\001\332A parent,user_workloads_config_m" - + "ap\202\323\344\223\002l\"O/v1beta1/{parent=projects/*/lo" - + "cations/*/environments/*}/userWorkloadsC" - + "onfigMaps:\031user_workloads_config_map\022\235\002\n" - + "\031GetUserWorkloadsConfigMap\022T.google.clou" + + "ce.v1beta1.ListUserWorkloadsSecretsRespo" + + "nse\"]\332A\006parent\202\323\344\223\002N\022L/v1beta1/{parent=p" + + "rojects/*/locations/*/environments/*}/us" + + "erWorkloadsSecrets\022\326\002\n\031UpdateUserWorkloa" + + "dsSecret\022T.google.cloud.orchestration.ai" + + "rflow.service.v1beta1.UpdateUserWorkload" + + "sSecretRequest\032G.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.UserWorkload" + + "sSecret\"\231\001\332A\025user_workloads_secret\202\323\344\223\002{" + + "\032b/v1beta1/{user_workloads_secret.name=p" + + "rojects/*/locations/*/environments/*/use" + + "rWorkloadsSecrets/*}:\025user_workloads_sec" + + "ret\022\346\001\n\031DeleteUserWorkloadsSecret\022T.goog" + + "le.cloud.orchestration.airflow.service.v" + + "1beta1.DeleteUserWorkloadsSecretRequest\032" + + "\026.google.protobuf.Empty\"[\332A\004name\202\323\344\223\002N*L" + + "/v1beta1/{name=projects/*/locations/*/en" + + "vironments/*/userWorkloadsSecrets/*}\022\333\002\n" + + "\034CreateUserWorkloadsConfigMap\022W.google.c" + + "loud.orchestration.airflow.service.v1bet" + + "a1.CreateUserWorkloadsConfigMapRequest\032J" + + ".google.cloud.orchestration.airflow.serv" + + "ice.v1beta1.UserWorkloadsConfigMap\"\225\001\332A " + + "parent,user_workloads_config_map\202\323\344\223\002l\"O" + + "/v1beta1/{parent=projects/*/locations/*/" + + "environments/*}/userWorkloadsConfigMaps:" + + "\031user_workloads_config_map\022\235\002\n\031GetUserWo" + + "rkloadsConfigMap\022T.google.cloud.orchestr" + + "ation.airflow.service.v1beta1.GetUserWor" + + "kloadsConfigMapRequest\032J.google.cloud.or" + + "chestration.airflow.service.v1beta1.User" + + "WorkloadsConfigMap\"^\332A\004name\202\323\344\223\002Q\022O/v1be" + + "ta1/{name=projects/*/locations/*/environ" + + "ments/*/userWorkloadsConfigMaps/*}\022\260\002\n\033L" + + "istUserWorkloadsConfigMaps\022V.google.clou" + "d.orchestration.airflow.service.v1beta1." - + "GetUserWorkloadsConfigMapRequest\032J.googl" - + "e.cloud.orchestration.airflow.service.v1" - + "beta1.UserWorkloadsConfigMap\"^\332A\004name\202\323\344" - + "\223\002Q\022O/v1beta1/{name=projects/*/locations" + + "ListUserWorkloadsConfigMapsRequest\032W.goo" + + "gle.cloud.orchestration.airflow.service." + + "v1beta1.ListUserWorkloadsConfigMapsRespo" + + "nse\"`\332A\006parent\202\323\344\223\002Q\022O/v1beta1/{parent=p" + + "rojects/*/locations/*/environments/*}/us" + + "erWorkloadsConfigMaps\022\357\002\n\034UpdateUserWork" + + "loadsConfigMap\022W.google.cloud.orchestrat" + + "ion.airflow.service.v1beta1.UpdateUserWo" + + "rkloadsConfigMapRequest\032J.google.cloud.o" + + "rchestration.airflow.service.v1beta1.Use" + + "rWorkloadsConfigMap\"\251\001\332A\031user_workloads_" + + "config_map\202\323\344\223\002\206\001\032i/v1beta1/{user_worklo" + + "ads_config_map.name=projects/*/locations" + "/*/environments/*/userWorkloadsConfigMap" - + "s/*}\022\260\002\n\033ListUserWorkloadsConfigMaps\022V.g" - + "oogle.cloud.orchestration.airflow.servic" - + "e.v1beta1.ListUserWorkloadsConfigMapsReq" - + "uest\032W.google.cloud.orchestration.airflo" - + "w.service.v1beta1.ListUserWorkloadsConfi" - + "gMapsResponse\"`\332A\006parent\202\323\344\223\002Q\022O/v1beta1" - + "/{parent=projects/*/locations/*/environm" - + "ents/*}/userWorkloadsConfigMaps\022\357\002\n\034Upda" + + "s/*}:\031user_workloads_config_map\022\357\001\n\034Dele" + "teUserWorkloadsConfigMap\022W.google.cloud." - + "orchestration.airflow.service.v1beta1.Up" - + "dateUserWorkloadsConfigMapRequest\032J.goog" + + "orchestration.airflow.service.v1beta1.De" + + "leteUserWorkloadsConfigMapRequest\032\026.goog" + + "le.protobuf.Empty\"^\332A\004name\202\323\344\223\002Q*O/v1bet" + + "a1/{name=projects/*/locations/*/environm" + + "ents/*/userWorkloadsConfigMaps/*}\022\340\002\n\014Sa" + + "veSnapshot\022G.google.cloud.orchestration." + + "airflow.service.v1beta1.SaveSnapshotRequ" + + "est\032\035.google.longrunning.Operation\"\347\001\312A\217" + + "\001\nGgoogle.cloud.orchestration.airflow.se" + + "rvice.v1beta1.SaveSnapshotResponse\022Dgoog" + "le.cloud.orchestration.airflow.service.v" - + "1beta1.UserWorkloadsConfigMap\"\251\001\332A\031user_" - + "workloads_config_map\202\323\344\223\002\206\001\032i/v1beta1/{u" - + "ser_workloads_config_map.name=projects/*" - + "/locations/*/environments/*/userWorkload" - + "sConfigMaps/*}:\031user_workloads_config_ma" - + "p\022\357\001\n\034DeleteUserWorkloadsConfigMap\022W.goo" - + "gle.cloud.orchestration.airflow.service." - + "v1beta1.DeleteUserWorkloadsConfigMapRequ" - + "est\032\026.google.protobuf.Empty\"^\332A\004name\202\323\344\223" - + "\002Q*O/v1beta1/{name=projects/*/locations/" - + "*/environments/*/userWorkloadsConfigMaps" - + "/*}\022\340\002\n\014SaveSnapshot\022G.google.cloud.orch" - + "estration.airflow.service.v1beta1.SaveSn" - + "apshotRequest\032\035.google.longrunning.Opera" - + "tion\"\347\001\312A\217\001\nGgoogle.cloud.orchestration." - + "airflow.service.v1beta1.SaveSnapshotResp" - + "onse\022Dgoogle.cloud.orchestration.airflow" - + ".service.v1beta1.OperationMetadata\202\323\344\223\002N" - + "\"I/v1beta1/{environment=projects/*/locat" - + "ions/*/environments/*}:saveSnapshot:\001*\022\340" - + "\002\n\014LoadSnapshot\022G.google.cloud.orchestra" - + "tion.airflow.service.v1beta1.LoadSnapsho" - + "tRequest\032\035.google.longrunning.Operation\"" - + "\347\001\312A\217\001\nGgoogle.cloud.orchestration.airfl" - + "ow.service.v1beta1.LoadSnapshotResponse\022" - + "Dgoogle.cloud.orchestration.airflow.serv" - + "ice.v1beta1.OperationMetadata\202\323\344\223\002N\"I/v1" - + "beta1/{environment=projects/*/locations/" - + "*/environments/*}:loadSnapshot:\001*\022\360\002\n\020Da" - + "tabaseFailover\022K.google.cloud.orchestrat" - + "ion.airflow.service.v1beta1.DatabaseFail" - + "overRequest\032\035.google.longrunning.Operati" - + "on\"\357\001\312A\223\001\nKgoogle.cloud.orchestration.ai" - + "rflow.service.v1beta1.DatabaseFailoverRe" - + "sponse\022Dgoogle.cloud.orchestration.airfl" - + "ow.service.v1beta1.OperationMetadata\202\323\344\223" - + "\002R\"M/v1beta1/{environment=projects/*/loc" - + "ations/*/environments/*}:databaseFailove" - + "r:\001*\022\240\002\n\027FetchDatabaseProperties\022R.googl" - + "e.cloud.orchestration.airflow.service.v1" - + "beta1.FetchDatabasePropertiesRequest\032S.g" - + "oogle.cloud.orchestration.airflow.servic" - + "e.v1beta1.FetchDatabasePropertiesRespons" - + "e\"\\\202\323\344\223\002V\022T/v1beta1/{environment=project" - + "s/*/locations/*/environments/*}:fetchDat" - + "abaseProperties\032K\312A\027composer.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\214\001\n6com.google.cloud.orches" - + "tration.airflow.service.v1beta1P\001ZPcloud" - + ".google.com/go/orchestration/airflow/ser" - + "vice/apiv1beta1/servicepb;servicepbb\006pro" - + "to3" + + "1beta1.OperationMetadata\202\323\344\223\002N\"I/v1beta1" + + "/{environment=projects/*/locations/*/env" + + "ironments/*}:saveSnapshot:\001*\022\340\002\n\014LoadSna" + + "pshot\022G.google.cloud.orchestration.airfl" + + "ow.service.v1beta1.LoadSnapshotRequest\032\035" + + ".google.longrunning.Operation\"\347\001\312A\217\001\nGgo" + + "ogle.cloud.orchestration.airflow.service" + + ".v1beta1.LoadSnapshotResponse\022Dgoogle.cl" + + "oud.orchestration.airflow.service.v1beta" + + "1.OperationMetadata\202\323\344\223\002N\"I/v1beta1/{env" + + "ironment=projects/*/locations/*/environm" + + "ents/*}:loadSnapshot:\001*\022\360\002\n\020DatabaseFail" + + "over\022K.google.cloud.orchestration.airflo" + + "w.service.v1beta1.DatabaseFailoverReques" + + "t\032\035.google.longrunning.Operation\"\357\001\312A\223\001\n" + + "Kgoogle.cloud.orchestration.airflow.serv" + + "ice.v1beta1.DatabaseFailoverResponse\022Dgo" + + "ogle.cloud.orchestration.airflow.service" + + ".v1beta1.OperationMetadata\202\323\344\223\002R\"M/v1bet" + + "a1/{environment=projects/*/locations/*/e" + + "nvironments/*}:databaseFailover:\001*\022\240\002\n\027F" + + "etchDatabaseProperties\022R.google.cloud.or" + + "chestration.airflow.service.v1beta1.Fetc" + + "hDatabasePropertiesRequest\032S.google.clou" + + "d.orchestration.airflow.service.v1beta1." + + "FetchDatabasePropertiesResponse\"\\\202\323\344\223\002V\022" + + "T/v1beta1/{environment=projects/*/locati" + + "ons/*/environments/*}:fetchDatabasePrope" + + "rties\032K\312A\027composer.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\214\001\n6com.google.cloud.orchestration.ai" + + "rflow.service.v1beta1P\001ZPcloud.google.co" + + "m/go/orchestration/airflow/service/apiv1" + + "beta1/servicepb;servicepbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfig.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfig.java index 87635d1d70eb..c0504c623728 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfig.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfig.java @@ -253,7 +253,7 @@ private WebServerPluginsMode(int value) { * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -279,7 +279,7 @@ private WebServerPluginsMode(int value) {
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -299,7 +299,7 @@ public java.lang.String getImageVersion() { * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -325,7 +325,7 @@ public java.lang.String getImageVersion() {
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ @@ -1667,7 +1667,7 @@ public Builder mergeFrom( * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1693,7 +1693,7 @@ public Builder mergeFrom(
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -1712,7 +1712,7 @@ public java.lang.String getImageVersion() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1738,7 +1738,7 @@ public java.lang.String getImageVersion() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ @@ -1757,7 +1757,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1783,7 +1783,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The imageVersion to set. * @return This builder for chaining. @@ -1801,7 +1801,7 @@ public Builder setImageVersion(java.lang.String value) { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1827,7 +1827,7 @@ public Builder setImageVersion(java.lang.String value) {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1841,7 +1841,7 @@ public Builder clearImageVersion() { * * *
          -     * The version of the software running in the environment.
          +     * Optional. The version of the software running in the environment.
                * This encapsulates both the version of Cloud Composer functionality and the
                * version of Apache Airflow. It must match the regular expression
                * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -1867,7 +1867,7 @@ public Builder clearImageVersion() {
                * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
                * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for imageVersion to set. * @return This builder for chaining. diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfigOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfigOrBuilder.java index 4754f9904a79..94c7828b169b 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfigOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/SoftwareConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface SoftwareConfigOrBuilder * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -54,7 +54,7 @@ public interface SoftwareConfigOrBuilder
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The imageVersion. */ @@ -63,7 +63,7 @@ public interface SoftwareConfigOrBuilder * * *
          -   * The version of the software running in the environment.
          +   * Optional. The version of the software running in the environment.
              * This encapsulates both the version of Cloud Composer functionality and the
              * version of Apache Airflow. It must match the regular expression
              * `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`.
          @@ -89,7 +89,7 @@ public interface SoftwareConfigOrBuilder
              * overview](/composer/docs/concepts/versioning/composer-versioning-overview).
              * 
          * - * string image_version = 1; + * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for imageVersion. */ diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMap.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMap.java index cb62a093d903..4ae068753a37 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMap.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMap.java @@ -163,6 +163,13 @@ public int getDataCount() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -187,6 +194,13 @@ public java.util.Map getData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -202,6 +216,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -224,6 +245,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -801,6 +829,13 @@ public int getDataCount() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -825,6 +860,13 @@ public java.util.Map getData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -840,6 +882,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -862,6 +911,13 @@ public java.util.Map getDataMap() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -890,6 +946,13 @@ public Builder clearData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -914,6 +977,13 @@ public java.util.Map getMutableData() { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -936,6 +1006,13 @@ public Builder putData(java.lang.String key, java.lang.String value) { * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapOrBuilder.java index 3809c2ae454b..5c94401fbbd6 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapOrBuilder.java @@ -58,6 +58,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -70,6 +77,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -85,6 +99,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -97,6 +118,13 @@ public interface UserWorkloadsConfigMapOrBuilder * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -113,6 +141,13 @@ java.lang.String getDataOrDefault( * Optional. The "data" field of Kubernetes ConfigMap, organized in key-value * pairs. For details see: * https://kubernetes.io/docs/concepts/configuration/configmap/ + * + * Example: + * + * { + * "example_key": "example_value", + * "another_key": "another_value" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecret.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecret.java index 6585555b19d8..13b8aed81c01 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecret.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecret.java @@ -164,6 +164,13 @@ public int getDataCount() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -189,6 +196,13 @@ public java.util.Map getData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -205,6 +219,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -228,6 +249,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -805,6 +833,13 @@ public int getDataCount() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -830,6 +865,13 @@ public java.util.Map getData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -846,6 +888,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -869,6 +918,13 @@ public java.util.Map getDataMap() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -898,6 +954,13 @@ public Builder clearData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -923,6 +986,13 @@ public java.util.Map getMutableData() { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -946,6 +1016,13 @@ public Builder putData(java.lang.String key, java.lang.String value) { * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretOrBuilder.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretOrBuilder.java index 6289fac33348..00d0bf2911cf 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretOrBuilder.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretOrBuilder.java @@ -59,6 +59,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -72,6 +79,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,6 +102,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -101,6 +122,13 @@ public interface UserWorkloadsSecretOrBuilder * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -118,6 +146,13 @@ java.lang.String getDataOrDefault( * pairs, which can contain sensitive values such as a password, a token, or a * key. The values for all keys have to be base64-encoded strings. For details * see: https://kubernetes.io/docs/concepts/configuration/secret/ + * + * Example: + * + * { + * "example": "ZXhhbXBsZV92YWx1ZQ==", + * "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + * } * * * map<string, string> data = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto index cd66e2d6e18f..c4e574280ec6 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/proto/google/cloud/orchestration/airflow/service/v1beta1/environments.proto @@ -812,6 +812,13 @@ message UserWorkloadsSecret { // pairs, which can contain sensitive values such as a password, a token, or a // key. The values for all keys have to be base64-encoded strings. For details // see: https://kubernetes.io/docs/concepts/configuration/secret/ + // + // Example: + // + // { + // "example": "ZXhhbXBsZV92YWx1ZQ==", + // "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" + // } map data = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -841,6 +848,13 @@ message UserWorkloadsConfigMap { // Optional. The "data" field of Kubernetes ConfigMap, organized in key-value // pairs. For details see: // https://kubernetes.io/docs/concepts/configuration/configmap/ + // + // Example: + // + // { + // "example_key": "example_value", + // "another_key": "another_value" + // } map data = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -1100,14 +1114,16 @@ message EnvironmentConfig { // composer-1.*.*-airflow-*.*.*. int32 node_count = 3; - // The configuration settings for software inside the environment. - SoftwareConfig software_config = 4; + // Optional. The configuration settings for software inside the environment. + SoftwareConfig software_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // The configuration used for the Kubernetes Engine cluster. - NodeConfig node_config = 5; + // Optional. The configuration used for the Kubernetes Engine cluster. + NodeConfig node_config = 5 [(google.api.field_behavior) = OPTIONAL]; - // The configuration used for the Private IP Cloud Composer environment. - PrivateEnvironmentConfig private_environment_config = 7; + // Optional. The configuration used for the Private IP Cloud Composer + // environment. + PrivateEnvironmentConfig private_environment_config = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The network-level access control policy for the Airflow web // server. If unspecified, no network-level access restrictions will be @@ -1241,7 +1257,7 @@ message SoftwareConfig { PLUGINS_ENABLED = 2; } - // The version of the software running in the environment. + // Optional. The version of the software running in the environment. // This encapsulates both the version of Cloud Composer functionality and the // version of Apache Airflow. It must match the regular expression // `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. @@ -1265,7 +1281,7 @@ message SoftwareConfig { // See also [version // list](/composer/docs/concepts/versioning/composer-versions) and [versioning // overview](/composer/docs/concepts/versioning/composer-versioning-overview). - string image_version = 1; + string image_version = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Apache Airflow configuration properties to override. // @@ -2030,15 +2046,15 @@ message Environment { ERROR = 5; } - // The resource name of the environment, in the form: + // Identifier. The resource name of the environment, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" // // EnvironmentId must start with a lowercase letter followed by up to 63 // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Configuration parameters for this environment. - EnvironmentConfig config = 2; + // Optional. Configuration parameters for this environment. + EnvironmentConfig config = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The UUID (Universally Unique IDentifier) associated with this // environment. This value is generated when the environment is created. diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 3f26f4c26678..6f1ab2ea34ed 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.53.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/README.md b/java-os-config/README.md index 5b8fe97d9220..e1d32030faa8 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.55.0' +implementation 'com.google.cloud:google-cloud-os-config:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/README.md b/java-os-login/README.md index 6888a6192e1f..b981364cc3cd 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.52.0 + 2.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.52.0' +implementation 'com.google.cloud:google-cloud-os-login:2.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index f3479ee906fc..66874af606de 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.16.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.17.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json index 114c935176c6..a75f5361b713 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json +++ b/java-parallelstore/google-cloud-parallelstore/src/main/resources/META-INF/native-image/com.google.cloud.parallelstore.v1beta/reflect-config.json @@ -566,6 +566,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.parallelstore.v1beta.DeploymentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.parallelstore.v1beta.DestinationGcsBucket", "queryAllDeclaredConstructors": true, diff --git a/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientHttpJsonTest.java b/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientHttpJsonTest.java index 0bfadbf1f94c..75ab1ffaf9fa 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientHttpJsonTest.java +++ b/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientHttpJsonTest.java @@ -205,6 +205,7 @@ public void getInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -261,6 +262,7 @@ public void getInstanceTest2() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -317,6 +319,7 @@ public void createInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -382,6 +385,7 @@ public void createInstanceTest2() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -447,6 +451,7 @@ public void updateInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -471,6 +476,7 @@ public void updateInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -515,6 +521,7 @@ public void updateInstanceExceptionTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, updateMask).get(); diff --git a/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientTest.java b/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientTest.java index 29e199000e31..f5da358e7e04 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientTest.java +++ b/java-parallelstore/google-cloud-parallelstore/src/test/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClientTest.java @@ -200,6 +200,7 @@ public void getInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); mockParallelstore.addResponse(expectedResponse); @@ -250,6 +251,7 @@ public void getInstanceTest2() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); mockParallelstore.addResponse(expectedResponse); @@ -300,6 +302,7 @@ public void createInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -364,6 +367,7 @@ public void createInstanceTest2() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -428,6 +432,7 @@ public void updateInstanceTest() throws Exception { .setEffectiveReservedIpRange("effectiveReservedIpRange106116967") .setFileStripeLevel(FileStripeLevel.forNumber(0)) .setDirectoryStripeLevel(DirectoryStripeLevel.forNumber(0)) + .setDeploymentType(DeploymentType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/DeploymentType.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/DeploymentType.java new file mode 100644 index 000000000000..bb421c8311ef --- /dev/null +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/DeploymentType.java @@ -0,0 +1,181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/parallelstore/v1beta/parallelstore.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.parallelstore.v1beta; + +/** + * + * + *
          + * Represents the deployment type for the instance.
          + * 
          + * + * Protobuf enum {@code google.cloud.parallelstore.v1beta.DeploymentType} + */ +public enum DeploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * Default Deployment Type
          +   * It is equivalent to SCRATCH
          +   * 
          + * + * DEPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + DEPLOYMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +   * Scratch
          +   * 
          + * + * SCRATCH = 1; + */ + SCRATCH(1), + /** + * + * + *
          +   * Persistent
          +   * 
          + * + * PERSISTENT = 2; + */ + PERSISTENT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +   * Default Deployment Type
          +   * It is equivalent to SCRATCH
          +   * 
          + * + * DEPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +   * Scratch
          +   * 
          + * + * SCRATCH = 1; + */ + public static final int SCRATCH_VALUE = 1; + /** + * + * + *
          +   * Persistent
          +   * 
          + * + * PERSISTENT = 2; + */ + public static final int PERSISTENT_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 DeploymentType 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 DeploymentType forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_TYPE_UNSPECIFIED; + case 1: + return SCRATCH; + case 2: + return PERSISTENT; + 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 DeploymentType findValueByNumber(int number) { + return DeploymentType.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.parallelstore.v1beta.ParallelstoreProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final DeploymentType[] VALUES = values(); + + public static DeploymentType 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 DeploymentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.parallelstore.v1beta.DeploymentType) +} diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/Instance.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/Instance.java index d1360230b091..0acdccf123d1 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/Instance.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/Instance.java @@ -49,6 +49,7 @@ private Instance() { effectiveReservedIpRange_ = ""; fileStripeLevel_ = 0; directoryStripeLevel_ = 0; + deploymentType_ = 0; } @java.lang.Override @@ -1089,6 +1090,53 @@ public com.google.cloud.parallelstore.v1beta.DirectoryStripeLevel getDirectorySt : result; } + public static final int DEPLOYMENT_TYPE_FIELD_NUMBER = 17; + private int deploymentType_ = 0; + /** + * + * + *
          +   * Optional. The deployment type of the instance. Allowed values are:
          +   *
          +   * * `SCRATCH`: the instance is a scratch instance.
          +   * * `PERSISTENT`: the instance is a persistent instance.
          +   * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + @java.lang.Override + public int getDeploymentTypeValue() { + return deploymentType_; + } + /** + * + * + *
          +   * Optional. The deployment type of the instance. Allowed values are:
          +   *
          +   * * `SCRATCH`: the instance is a scratch instance.
          +   * * `PERSISTENT`: the instance is a persistent instance.
          +   * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentType. + */ + @java.lang.Override + public com.google.cloud.parallelstore.v1beta.DeploymentType getDeploymentType() { + com.google.cloud.parallelstore.v1beta.DeploymentType result = + com.google.cloud.parallelstore.v1beta.DeploymentType.forNumber(deploymentType_); + return result == null + ? com.google.cloud.parallelstore.v1beta.DeploymentType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1150,6 +1198,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(16, directoryStripeLevel_); } + if (deploymentType_ + != com.google.cloud.parallelstore.v1beta.DeploymentType.DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, deploymentType_); + } getUnknownFields().writeTo(output); } @@ -1220,6 +1273,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, directoryStripeLevel_); } + if (deploymentType_ + != com.google.cloud.parallelstore.v1beta.DeploymentType.DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, deploymentType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1256,6 +1314,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEffectiveReservedIpRange().equals(other.getEffectiveReservedIpRange())) return false; if (fileStripeLevel_ != other.fileStripeLevel_) return false; if (directoryStripeLevel_ != other.directoryStripeLevel_) return false; + if (deploymentType_ != other.deploymentType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1303,6 +1362,8 @@ public int hashCode() { hash = (53 * hash) + fileStripeLevel_; hash = (37 * hash) + DIRECTORY_STRIPE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + directoryStripeLevel_; + hash = (37 * hash) + DEPLOYMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deploymentType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1496,6 +1557,7 @@ public Builder clear() { effectiveReservedIpRange_ = ""; fileStripeLevel_ = 0; directoryStripeLevel_ = 0; + deploymentType_ = 0; return this; } @@ -1579,6 +1641,9 @@ private void buildPartial0(com.google.cloud.parallelstore.v1beta.Instance result if (((from_bitField0_ & 0x00002000) != 0)) { result.directoryStripeLevel_ = directoryStripeLevel_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.deploymentType_ = deploymentType_; + } result.bitField0_ |= to_bitField0_; } @@ -1687,6 +1752,9 @@ public Builder mergeFrom(com.google.cloud.parallelstore.v1beta.Instance other) { if (other.directoryStripeLevel_ != 0) { setDirectoryStripeLevelValue(other.getDirectoryStripeLevelValue()); } + if (other.deploymentType_ != 0) { + setDeploymentTypeValue(other.getDeploymentTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1804,6 +1872,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 128 + case 136: + { + deploymentType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3731,6 +3805,123 @@ public Builder clearDirectoryStripeLevel() { return this; } + private int deploymentType_ = 0; + /** + * + * + *
          +     * Optional. The deployment type of the instance. Allowed values are:
          +     *
          +     * * `SCRATCH`: the instance is a scratch instance.
          +     * * `PERSISTENT`: the instance is a persistent instance.
          +     * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + @java.lang.Override + public int getDeploymentTypeValue() { + return deploymentType_; + } + /** + * + * + *
          +     * Optional. The deployment type of the instance. Allowed values are:
          +     *
          +     * * `SCRATCH`: the instance is a scratch instance.
          +     * * `PERSISTENT`: the instance is a persistent instance.
          +     * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for deploymentType to set. + * @return This builder for chaining. + */ + public Builder setDeploymentTypeValue(int value) { + deploymentType_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The deployment type of the instance. Allowed values are:
          +     *
          +     * * `SCRATCH`: the instance is a scratch instance.
          +     * * `PERSISTENT`: the instance is a persistent instance.
          +     * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentType. + */ + @java.lang.Override + public com.google.cloud.parallelstore.v1beta.DeploymentType getDeploymentType() { + com.google.cloud.parallelstore.v1beta.DeploymentType result = + com.google.cloud.parallelstore.v1beta.DeploymentType.forNumber(deploymentType_); + return result == null + ? com.google.cloud.parallelstore.v1beta.DeploymentType.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Optional. The deployment type of the instance. Allowed values are:
          +     *
          +     * * `SCRATCH`: the instance is a scratch instance.
          +     * * `PERSISTENT`: the instance is a persistent instance.
          +     * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deploymentType to set. + * @return This builder for chaining. + */ + public Builder setDeploymentType(com.google.cloud.parallelstore.v1beta.DeploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + deploymentType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The deployment type of the instance. Allowed values are:
          +     *
          +     * * `SCRATCH`: the instance is a scratch instance.
          +     * * `PERSISTENT`: the instance is a persistent instance.
          +     * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentType() { + bitField0_ = (bitField0_ & ~0x00004000); + deploymentType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceOrBuilder.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceOrBuilder.java index f684a4c65201..7921823cf95c 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceOrBuilder.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceOrBuilder.java @@ -531,4 +531,39 @@ java.lang.String getLabelsOrDefault( * @return The directoryStripeLevel. */ com.google.cloud.parallelstore.v1beta.DirectoryStripeLevel getDirectoryStripeLevel(); + + /** + * + * + *
          +   * Optional. The deployment type of the instance. Allowed values are:
          +   *
          +   * * `SCRATCH`: the instance is a scratch instance.
          +   * * `PERSISTENT`: the instance is a persistent instance.
          +   * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + int getDeploymentTypeValue(); + /** + * + * + *
          +   * Optional. The deployment type of the instance. Allowed values are:
          +   *
          +   * * `SCRATCH`: the instance is a scratch instance.
          +   * * `PERSISTENT`: the instance is a persistent instance.
          +   * 
          + * + * + * .google.cloud.parallelstore.v1beta.DeploymentType deployment_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deploymentType. + */ + com.google.cloud.parallelstore.v1beta.DeploymentType getDeploymentType(); } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreProto.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreProto.java index 8a6994c4ba76..3c48442d4412 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreProto.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreProto.java @@ -130,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/longrunning/operations.proto\032\033google/" + "protobuf/empty.proto\032 google/protobuf/fi" + "eld_mask.proto\032\037google/protobuf/timestam" - + "p.proto\"\242\010\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "p.proto\"\363\010\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + "\030\n\013description\030\002 \001(\tB\003\340A\001\022E\n\005state\030\003 \001(\016" + "21.google.cloud.parallelstore.v1beta.Ins" + "tance.StateB\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032." @@ -149,167 +149,171 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01622.google.cloud.parallelstore.v1beta" + ".FileStripeLevelB\003\340A\001\022\\\n\026directory_strip" + "e_level\030\020 \001(\01627.google.cloud.parallelsto" - + "re.v1beta.DirectoryStripeLevelB\003\340A\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"a\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" - + "EATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006FA" - + "ILED\020\004\022\r\n\tUPGRADING\020\005:}\352Az\n%parallelstor" - + "e.googleapis.com/Instance\022\n\ti" - + "nstances\030\001 \003(\0132+.google.cloud.parallelst" - + "ore.v1beta.Instance\022\027\n\017next_page_token\030\002" - + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\022GetInstance" - + "Request\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%parallels" - + "tore.googleapis.com/Instance\"\315\001\n\025CreateI" - + "nstanceRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%" - + "parallelstore.googleapis.com/Instance\022\030\n" - + "\013instance_id\030\002 \001(\tB\003\340A\002\022B\n\010instance\030\003 \001(" - + "\0132+.google.cloud.parallelstore.v1beta.In" - + "stanceB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\252\001\n" - + "\025UpdateInstanceRequest\0224\n\013update_mask\030\001 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n\010" - + "instance\030\002 \001(\0132+.google.cloud.parallelst" - + "ore.v1beta.InstanceB\003\340A\002\022\027\n\nrequest_id\030\003" - + " \001(\tB\003\340A\001\"m\n\025DeleteInstanceRequest\022;\n\004na" - + "me\030\001 \001(\tB-\340A\002\372A\'\n%parallelstore.googleap" - + "is.com/Instance\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001" - + "\"\200\002\n\021OperationMetadata\0224\n\013create_time\030\001 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" - + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\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_message\030\005 \001(\tB\003\340A\003\022#\n\026" - + "requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api" - + "_version\030\007 \001(\tB\003\340A\003\"#\n\017SourceGcsBucket\022\020" - + "\n\003uri\030\001 \001(\tB\003\340A\002\"(\n\024DestinationGcsBucket" - + "\022\020\n\003uri\030\001 \001(\tB\003\340A\002\"(\n\023SourceParallelstor" - + "e\022\021\n\004path\030\001 \001(\tB\003\340A\001\"-\n\030DestinationParal" - + "lelstore\022\021\n\004path\030\001 \001(\tB\003\340A\001\"\201\003\n\021ImportDa" - + "taRequest\022O\n\021source_gcs_bucket\030\002 \001(\01322.g" - + "oogle.cloud.parallelstore.v1beta.SourceG" - + "csBucketH\000\022`\n\031destination_parallelstore\030" - + "\003 \001(\0132;.google.cloud.parallelstore.v1bet" - + "a.DestinationParallelstoreH\001\022;\n\004name\030\001 \001" - + "(\tB-\340A\002\372A\'\n%parallelstore.googleapis.com" - + "/Instance\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002" - + "\010\001\022B\n\017service_account\030\005 \001(\tB)\340A\001\372A#\n!iam" - + ".googleapis.com/ServiceAccountB\010\n\006source" - + "B\r\n\013destination\"\201\003\n\021ExportDataRequest\022V\n" - + "\024source_parallelstore\030\002 \001(\01326.google.clo" - + "ud.parallelstore.v1beta.SourceParallelst" - + "oreH\000\022Y\n\026destination_gcs_bucket\030\003 \001(\01327." - + "google.cloud.parallelstore.v1beta.Destin" - + "ationGcsBucketH\001\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" - + "parallelstore.googleapis.com/Instance\022\037\n" - + "\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022B\n\017servic" - + "e_account\030\005 \001(\tB)\340A\001\372A#\n!iam.googleapis." - + "com/ServiceAccountB\010\n\006sourceB\r\n\013destinat" - + "ion\"\024\n\022ImportDataResponse\"\333\002\n\022ImportData" - + "Metadata\022X\n\022operation_metadata\030\001 \001(\0132<.g" - + "oogle.cloud.parallelstore.v1beta.Transfe" - + "rOperationMetadata\0224\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" - + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\023\n\006target\030\004 \001(\tB\003\340A\003\022\021\n\004verb\030\005 \001(\tB\003" - + "\340A\003\022\033\n\016status_message\030\006 \001(\tB\003\340A\003\022#\n\026requ" - + "ested_cancellation\030\007 \001(\010B\003\340A\003\022\030\n\013api_ver" - + "sion\030\010 \001(\tB\003\340A\003\"\024\n\022ExportDataResponse\"\333\002" - + "\n\022ExportDataMetadata\022X\n\022operation_metada" - + "ta\030\001 \001(\0132<.google.cloud.parallelstore.v1" - + "beta.TransferOperationMetadata\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\023\n\006target\030\004 \001(\tB\003\340A\003\022\021\n\004" - + "verb\030\005 \001(\tB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" - + "\003\340A\003\022#\n\026requested_cancellation\030\007 \001(\010B\003\340A" - + "\003\022\030\n\013api_version\030\010 \001(\tB\003\340A\003\"\307\004\n\031Transfer" - + "OperationMetadata\022[\n\024source_parallelstor" - + "e\030\007 \001(\01326.google.cloud.parallelstore.v1b" - + "eta.SourceParallelstoreB\003\340A\003H\000\022T\n\021source" - + "_gcs_bucket\030\010 \001(\01322.google.cloud.paralle" - + "lstore.v1beta.SourceGcsBucketB\003\340A\003H\000\022^\n\026" - + "destination_gcs_bucket\030\t \001(\01327.google.cl" - + "oud.parallelstore.v1beta.DestinationGcsB" - + "ucketB\003\340A\003H\001\022e\n\031destination_parallelstor" - + "e\030\n \001(\0132;.google.cloud.parallelstore.v1b" - + "eta.DestinationParallelstoreB\003\340A\003H\001\022J\n\010c" - + "ounters\030\003 \001(\01323.google.cloud.parallelsto" - + "re.v1beta.TransferCountersB\003\340A\003\022K\n\rtrans" - + "fer_type\030\006 \001(\0162/.google.cloud.parallelst" - + "ore.v1beta.TransferTypeB\003\340A\003B\010\n\006sourceB\r" - + "\n\013destination\"\234\001\n\020TransferCounters\022\025\n\rob" - + "jects_found\030\001 \001(\003\022\023\n\013bytes_found\030\002 \001(\003\022\027" - + "\n\017objects_skipped\030\003 \001(\003\022\025\n\rbytes_skipped" - + "\030\004 \001(\003\022\026\n\016objects_copied\030\005 \001(\003\022\024\n\014bytes_" - + "copied\030\006 \001(\003*E\n\014TransferType\022\035\n\031TRANSFER" - + "_TYPE_UNSPECIFIED\020\000\022\n\n\006IMPORT\020\001\022\n\n\006EXPOR" - + "T\020\002*\212\001\n\017FileStripeLevel\022!\n\035FILE_STRIPE_L" - + "EVEL_UNSPECIFIED\020\000\022\031\n\025FILE_STRIPE_LEVEL_" - + "MIN\020\001\022\036\n\032FILE_STRIPE_LEVEL_BALANCED\020\002\022\031\n" - + "\025FILE_STRIPE_LEVEL_MAX\020\003*\243\001\n\024DirectorySt" - + "ripeLevel\022&\n\"DIRECTORY_STRIPE_LEVEL_UNSP" - + "ECIFIED\020\000\022\036\n\032DIRECTORY_STRIPE_LEVEL_MIN\020" - + "\001\022#\n\037DIRECTORY_STRIPE_LEVEL_BALANCED\020\002\022\036" - + "\n\032DIRECTORY_STRIPE_LEVEL_MAX\020\0032\315\014\n\rParal" - + "lelstore\022\306\001\n\rListInstances\0227.google.clou" - + "d.parallelstore.v1beta.ListInstancesRequ" - + "est\0328.google.cloud.parallelstore.v1beta." - + "ListInstancesResponse\"B\332A\006parent\202\323\344\223\0023\0221" - + "/v1beta/{parent=projects/*/locations/*}/" - + "instances\022\263\001\n\013GetInstance\0225.google.cloud" - + ".parallelstore.v1beta.GetInstanceRequest" - + "\032+.google.cloud.parallelstore.v1beta.Ins" - + "tance\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=proj" - + "ects/*/locations/*/instances/*}\022\355\001\n\016Crea" - + "teInstance\0228.google.cloud.parallelstore." - + "v1beta.CreateInstanceRequest\032\035.google.lo" - + "ngrunning.Operation\"\201\001\312A\035\n\010Instance\022\021Ope" - + "rationMetadata\332A\033parent,instance,instanc" - + "e_id\202\323\344\223\002=\"1/v1beta/{parent=projects/*/l" - + "ocations/*}/instances:\010instance\022\357\001\n\016Upda" - + "teInstance\0228.google.cloud.parallelstore." - + "v1beta.UpdateInstanceRequest\032\035.google.lo" - + "ngrunning.Operation\"\203\001\312A\035\n\010Instance\022\021Ope" - + "rationMetadata\332A\024instance,update_mask\202\323\344" - + "\223\002F2:/v1beta/{instance.name=projects/*/l" - + "ocations/*/instances/*}:\010instance\022\330\001\n\016De" - + "leteInstance\0228.google.cloud.parallelstor" - + "e.v1beta.DeleteInstanceRequest\032\035.google." - + "longrunning.Operation\"m\312A*\n\025google.proto" - + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "3*1/v1beta/{name=projects/*/locations/*/" - + "instances/*}\022\325\001\n\nImportData\0224.google.clo" - + "ud.parallelstore.v1beta.ImportDataReques" - + "t\032\035.google.longrunning.Operation\"r\312A(\n\022I" - + "mportDataResponse\022\022ImportDataMetadata\202\323\344" - + "\223\002A\"\n\t" + + "instances\030\001 \003(\0132+.google.cloud.parallels" + + "tore.v1beta.Instance\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\022GetInstanc" + + "eRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%parallel" + + "store.googleapis.com/Instance\"\315\001\n\025Create" + + "InstanceRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022" + + "%parallelstore.googleapis.com/Instance\022\030" + + "\n\013instance_id\030\002 \001(\tB\003\340A\002\022B\n\010instance\030\003 \001" + + "(\0132+.google.cloud.parallelstore.v1beta.I" + + "nstanceB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\252\001" + + "\n\025UpdateInstanceRequest\0224\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" + + "\010instance\030\002 \001(\0132+.google.cloud.parallels" + + "tore.v1beta.InstanceB\003\340A\002\022\027\n\nrequest_id\030" + + "\003 \001(\tB\003\340A\001\"m\n\025DeleteInstanceRequest\022;\n\004n" + + "ame\030\001 \001(\tB-\340A\002\372A\'\n%parallelstore.googlea" + + "pis.com/Instance\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"\200\002\n\021OperationMetadata\0224\n\013create_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\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_message\030\005 \001(\tB\003\340A\003\022#\n" + + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013ap" + + "i_version\030\007 \001(\tB\003\340A\003\"#\n\017SourceGcsBucket\022" + + "\020\n\003uri\030\001 \001(\tB\003\340A\002\"(\n\024DestinationGcsBucke" + + "t\022\020\n\003uri\030\001 \001(\tB\003\340A\002\"(\n\023SourceParallelsto" + + "re\022\021\n\004path\030\001 \001(\tB\003\340A\001\"-\n\030DestinationPara" + + "llelstore\022\021\n\004path\030\001 \001(\tB\003\340A\001\"\201\003\n\021ImportD" + + "ataRequest\022O\n\021source_gcs_bucket\030\002 \001(\01322." + + "google.cloud.parallelstore.v1beta.Source" + + "GcsBucketH\000\022`\n\031destination_parallelstore" + + "\030\003 \001(\0132;.google.cloud.parallelstore.v1be" + + "ta.DestinationParallelstoreH\001\022;\n\004name\030\001 " + + "\001(\tB-\340A\002\372A\'\n%parallelstore.googleapis.co" + + "m/Instance\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010" + + "\002\010\001\022B\n\017service_account\030\005 \001(\tB)\340A\001\372A#\n!ia" + + "m.googleapis.com/ServiceAccountB\010\n\006sourc" + + "eB\r\n\013destination\"\201\003\n\021ExportDataRequest\022V" + + "\n\024source_parallelstore\030\002 \001(\01326.google.cl" + + "oud.parallelstore.v1beta.SourceParallels" + + "toreH\000\022Y\n\026destination_gcs_bucket\030\003 \001(\01327" + + ".google.cloud.parallelstore.v1beta.Desti" + + "nationGcsBucketH\001\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%parallelstore.googleapis.com/Instance\022\037" + + "\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022B\n\017servi" + + "ce_account\030\005 \001(\tB)\340A\001\372A#\n!iam.googleapis" + + ".com/ServiceAccountB\010\n\006sourceB\r\n\013destina" + + "tion\"\024\n\022ImportDataResponse\"\333\002\n\022ImportDat" + + "aMetadata\022X\n\022operation_metadata\030\001 \001(\0132<." + + "google.cloud.parallelstore.v1beta.Transf" + + "erOperationMetadata\0224\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\004 \001(\tB\003\340A\003\022\021\n\004verb\030\005 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\006 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\007 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\010 \001(\tB\003\340A\003\"\024\n\022ExportDataResponse\"\333" + + "\002\n\022ExportDataMetadata\022X\n\022operation_metad" + + "ata\030\001 \001(\0132<.google.cloud.parallelstore.v" + + "1beta.TransferOperationMetadata\0224\n\013creat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\023\n\006target\030\004 \001(\tB\003\340A\003\022\021\n" + + "\004verb\030\005 \001(\tB\003\340A\003\022\033\n\016status_message\030\006 \001(\t" + + "B\003\340A\003\022#\n\026requested_cancellation\030\007 \001(\010B\003\340" + + "A\003\022\030\n\013api_version\030\010 \001(\tB\003\340A\003\"\307\004\n\031Transfe" + + "rOperationMetadata\022[\n\024source_parallelsto" + + "re\030\007 \001(\01326.google.cloud.parallelstore.v1" + + "beta.SourceParallelstoreB\003\340A\003H\000\022T\n\021sourc" + + "e_gcs_bucket\030\010 \001(\01322.google.cloud.parall" + + "elstore.v1beta.SourceGcsBucketB\003\340A\003H\000\022^\n" + + "\026destination_gcs_bucket\030\t \001(\01327.google.c" + + "loud.parallelstore.v1beta.DestinationGcs" + + "BucketB\003\340A\003H\001\022e\n\031destination_parallelsto" + + "re\030\n \001(\0132;.google.cloud.parallelstore.v1" + + "beta.DestinationParallelstoreB\003\340A\003H\001\022J\n\010" + + "counters\030\003 \001(\01323.google.cloud.parallelst" + + "ore.v1beta.TransferCountersB\003\340A\003\022K\n\rtran" + + "sfer_type\030\006 \001(\0162/.google.cloud.parallels" + + "tore.v1beta.TransferTypeB\003\340A\003B\010\n\006sourceB" + + "\r\n\013destination\"\234\001\n\020TransferCounters\022\025\n\ro" + + "bjects_found\030\001 \001(\003\022\023\n\013bytes_found\030\002 \001(\003\022" + + "\027\n\017objects_skipped\030\003 \001(\003\022\025\n\rbytes_skippe" + + "d\030\004 \001(\003\022\026\n\016objects_copied\030\005 \001(\003\022\024\n\014bytes" + + "_copied\030\006 \001(\003*E\n\014TransferType\022\035\n\031TRANSFE" + + "R_TYPE_UNSPECIFIED\020\000\022\n\n\006IMPORT\020\001\022\n\n\006EXPO" + + "RT\020\002*\212\001\n\017FileStripeLevel\022!\n\035FILE_STRIPE_" + + "LEVEL_UNSPECIFIED\020\000\022\031\n\025FILE_STRIPE_LEVEL" + + "_MIN\020\001\022\036\n\032FILE_STRIPE_LEVEL_BALANCED\020\002\022\031" + + "\n\025FILE_STRIPE_LEVEL_MAX\020\003*\243\001\n\024DirectoryS" + + "tripeLevel\022&\n\"DIRECTORY_STRIPE_LEVEL_UNS" + + "PECIFIED\020\000\022\036\n\032DIRECTORY_STRIPE_LEVEL_MIN" + + "\020\001\022#\n\037DIRECTORY_STRIPE_LEVEL_BALANCED\020\002\022" + + "\036\n\032DIRECTORY_STRIPE_LEVEL_MAX\020\003*N\n\016Deplo" + + "ymentType\022\037\n\033DEPLOYMENT_TYPE_UNSPECIFIED" + + "\020\000\022\013\n\007SCRATCH\020\001\022\016\n\nPERSISTENT\020\0022\315\014\n\rPara" + + "llelstore\022\306\001\n\rListInstances\0227.google.clo" + + "ud.parallelstore.v1beta.ListInstancesReq" + + "uest\0328.google.cloud.parallelstore.v1beta" + + ".ListInstancesResponse\"B\332A\006parent\202\323\344\223\0023\022" + + "1/v1beta/{parent=projects/*/locations/*}" + + "/instances\022\263\001\n\013GetInstance\0225.google.clou" + + "d.parallelstore.v1beta.GetInstanceReques" + + "t\032+.google.cloud.parallelstore.v1beta.In" + + "stance\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=pro" + + "jects/*/locations/*/instances/*}\022\355\001\n\016Cre" + + "ateInstance\0228.google.cloud.parallelstore" + + ".v1beta.CreateInstanceRequest\032\035.google.l" + + "ongrunning.Operation\"\201\001\312A\035\n\010Instance\022\021Op" + + "erationMetadata\332A\033parent,instance,instan" + + "ce_id\202\323\344\223\002=\"1/v1beta/{parent=projects/*/" + + "locations/*}/instances:\010instance\022\357\001\n\016Upd" + + "ateInstance\0228.google.cloud.parallelstore" + + ".v1beta.UpdateInstanceRequest\032\035.google.l" + + "ongrunning.Operation\"\203\001\312A\035\n\010Instance\022\021Op" + + "erationMetadata\332A\024instance,update_mask\202\323" + + "\344\223\002F2:/v1beta/{instance.name=projects/*/" + + "locations/*/instances/*}:\010instance\022\330\001\n\016D" + + "eleteInstance\0228.google.cloud.parallelsto" + + "re.v1beta.DeleteInstanceRequest\032\035.google" + + ".longrunning.Operation\"m\312A*\n\025google.prot" + + "obuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\0023*1/v1beta/{name=projects/*/locations/*" + + "/instances/*}\022\325\001\n\nImportData\0224.google.cl" + + "oud.parallelstore.v1beta.ImportDataReque" + + "st\032\035.google.longrunning.Operation\"r\312A(\n\022" + + "ImportDataResponse\022\022ImportDataMetadata\202\323" + + "\344\223\002A\" com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.84.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.85.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 2b080fec5081..2177ee7b7a24 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.52.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index 30cdd5434250..18fc1d04e990 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.32.0 + 0.33.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.32.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.33.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 377a0ad5c2f4..bd7aedda0707 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.55.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.56.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 7757e643dcd9..fb787ff9dc17 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.7.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.8.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/README.md b/java-profiler/README.md index 012b2076e77f..4b5676c234c3 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.53.0' +implementation 'com.google.cloud:google-cloud-profiler:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/README.md b/java-publicca/README.md index 026e51adb6c6..560293d1ffd3 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.50.0' +implementation 'com.google.cloud:google-cloud-publicca:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 218d56815088..3f84c7871f52 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.36.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 72fb2cede6a7..c3153d086ab6 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.50.0 + 3.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.50.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.51.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles 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 7da85b016b6a..ca2e6f87de70 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=2079 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=2080 * @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=2079 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=2080 * @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=2079 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=2080 * @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=2079 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=2080 * @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 563c971199e0..72935cd0a9da 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=2079 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=2080 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RemoveIpOverrideRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RemoveIpOverrideRequest.java index c1afcde55b7e..1d8475c117ea 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RemoveIpOverrideRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RemoveIpOverrideRequest.java @@ -23,7 +23,7 @@ * * *
          - * The removeIpOverride request message.
          + * The RemoveIpOverride request message.
            * 
          * * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RemoveIpOverrideRequest} @@ -355,7 +355,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
          -   * The removeIpOverride request message.
          +   * The RemoveIpOverride request message.
              * 
          * * Protobuf type {@code google.cloud.recaptchaenterprise.v1.RemoveIpOverrideRequest} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java index cf3b71e177f5..1e9e88449fe6 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysis.java @@ -343,7 +343,7 @@ private ClassificationReason(int value) { * * *
          -   * Challenge information for SCORE_AND_CHALLENGE keys
          +   * Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
              * 
          * * Protobuf enum {@code google.cloud.recaptchaenterprise.v1.RiskAnalysis.Challenge} @@ -736,7 +736,8 @@ public com.google.protobuf.ByteString getExtendedVerdictReasonsBytes(int index) * * *
          -   * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +   * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +   * keys
              * 
          * * @@ -753,7 +754,8 @@ public int getChallengeValue() { * * *
          -   * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +   * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +   * keys
              * 
          * * @@ -1759,7 +1761,8 @@ public Builder addExtendedVerdictReasonsBytes(com.google.protobuf.ByteString val * * *
          -     * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +     * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +     * keys
                * 
          * * @@ -1776,7 +1779,8 @@ public int getChallengeValue() { * * *
          -     * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +     * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +     * keys
                * 
          * * @@ -1796,7 +1800,8 @@ public Builder setChallengeValue(int value) { * * *
          -     * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +     * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +     * keys
                * 
          * * @@ -1817,7 +1822,8 @@ public com.google.recaptchaenterprise.v1.RiskAnalysis.Challenge getChallenge() { * * *
          -     * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +     * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +     * keys
                * 
          * * @@ -1840,7 +1846,8 @@ public Builder setChallenge(com.google.recaptchaenterprise.v1.RiskAnalysis.Chall * * *
          -     * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +     * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +     * keys
                * 
          * * diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java index a480302aa60d..73453217a7d6 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RiskAnalysisOrBuilder.java @@ -180,7 +180,8 @@ public interface RiskAnalysisOrBuilder * * *
          -   * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +   * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +   * keys
              * 
          * * @@ -194,7 +195,8 @@ public interface RiskAnalysisOrBuilder * * *
          -   * Output only. Challenge information for SCORE_AND_CHALLENGE keys
          +   * Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE
          +   * keys
              * 
          * * 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 e0ec2cbf8885..66836c5fbd46 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=1958 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1959 * @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=1958 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1959 * @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=1958 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1959 * @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=1958 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1959 * @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 327a7a8a1196..99b0c494c70b 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=1958 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1959 * @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 aa9441ae1fcf..b918acbddcca 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 @@ -996,7 +996,7 @@ message RiskAnalysis { SUSPECTED_CHARGEBACK = 7; } - // Challenge information for SCORE_AND_CHALLENGE keys + // Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys enum Challenge { // Default unspecified type. CHALLENGE_UNSPECIFIED = 0; @@ -1026,7 +1026,8 @@ message RiskAnalysis { repeated string extended_verdict_reasons = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Challenge information for SCORE_AND_CHALLENGE keys + // Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE + // keys Challenge challenge = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -2002,7 +2003,7 @@ message AddIpOverrideRequest { // Response for AddIpOverride. message AddIpOverrideResponse {} -// The removeIpOverride request message. +// The RemoveIpOverride request message. message RemoveIpOverrideRequest { // Required. The name of the key from which the IP override is removed, in the // format `projects/{project}/keys/{key}`. diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 7c85c8ef0746..b971f75c74ac 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.60.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.61.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.61.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/README.md b/java-recommender/README.md index 7dc760341a3b..9241967ddffa 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.55.0' +implementation 'com.google.cloud:google-cloud-recommender:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index b170c2b5d39f..74f2a0402c33 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.25.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.26.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.26.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis/README.md b/java-redis/README.md index 8c78d357efc5..ee38c2dc3d25 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.56.0' +implementation 'com.google.cloud:google-cloud-redis:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.57.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index 3438009501df..787b7f289cad 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resource-settings - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resource-settings:1.53.0' +implementation 'com.google.cloud:google-cloud-resource-settings:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resource-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 71277ceb18ae..b49aae04fdd0 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.55.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.56.0" ``` ## Authentication @@ -335,7 +335,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/README.md b/java-retail/README.md index d1784f813392..402bae6d356d 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.55.0' +implementation 'com.google.cloud:google-cloud-retail:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/README.md b/java-run/README.md index 090638dcdbfc..cc7402d91de4 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.53.0' +implementation 'com.google.cloud:google-cloud-run:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.54.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java index 54b447c07007..32288b88b1f9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java @@ -222,6 +222,7 @@ private ScalingMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ServiceScaling.ScalingMode) } + private int bitField0_; public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 1; private int minInstanceCount_ = 0; /** @@ -283,6 +284,45 @@ public com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode() { : result; } + public static final int MANUAL_INSTANCE_COUNT_FIELD_NUMBER = 6; + private int manualInstanceCount_ = 0; + /** + * + * + *
          +   * Optional. total instance count for the service in manual scaling mode. This
          +   * number of instances is divided among all revisions with specified traffic
          +   * based on the percent of traffic they are receiving.
          +   * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + @java.lang.Override + public boolean hasManualInstanceCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Optional. total instance count for the service in manual scaling mode. This
          +   * number of instances is divided among all revisions with specified traffic
          +   * based on the percent of traffic they are receiving.
          +   * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + @java.lang.Override + public int getManualInstanceCount() { + return manualInstanceCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +345,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, scalingMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(6, manualInstanceCount_); + } getUnknownFields().writeTo(output); } @@ -322,6 +365,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, scalingMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, manualInstanceCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -339,6 +385,10 @@ public boolean equals(final java.lang.Object obj) { if (getMinInstanceCount() != other.getMinInstanceCount()) return false; if (scalingMode_ != other.scalingMode_) return false; + if (hasManualInstanceCount() != other.hasManualInstanceCount()) return false; + if (hasManualInstanceCount()) { + if (getManualInstanceCount() != other.getManualInstanceCount()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +404,10 @@ public int hashCode() { hash = (53 * hash) + getMinInstanceCount(); hash = (37 * hash) + SCALING_MODE_FIELD_NUMBER; hash = (53 * hash) + scalingMode_; + if (hasManualInstanceCount()) { + hash = (37 * hash) + MANUAL_INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getManualInstanceCount(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -496,6 +550,7 @@ public Builder clear() { bitField0_ = 0; minInstanceCount_ = 0; scalingMode_ = 0; + manualInstanceCount_ = 0; return this; } @@ -538,6 +593,12 @@ private void buildPartial0(com.google.cloud.run.v2.ServiceScaling result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.scalingMode_ = scalingMode_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.manualInstanceCount_ = manualInstanceCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -591,6 +652,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ServiceScaling other) { if (other.scalingMode_ != 0) { setScalingModeValue(other.getScalingModeValue()); } + if (other.hasManualInstanceCount()) { + setManualInstanceCount(other.getManualInstanceCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,6 +693,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 48: + { + manualInstanceCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -809,6 +879,86 @@ public Builder clearScalingMode() { return this; } + private int manualInstanceCount_; + /** + * + * + *
          +     * Optional. total instance count for the service in manual scaling mode. This
          +     * number of instances is divided among all revisions with specified traffic
          +     * based on the percent of traffic they are receiving.
          +     * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + @java.lang.Override + public boolean hasManualInstanceCount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Optional. total instance count for the service in manual scaling mode. This
          +     * number of instances is divided among all revisions with specified traffic
          +     * based on the percent of traffic they are receiving.
          +     * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + @java.lang.Override + public int getManualInstanceCount() { + return manualInstanceCount_; + } + /** + * + * + *
          +     * Optional. total instance count for the service in manual scaling mode. This
          +     * number of instances is divided among all revisions with specified traffic
          +     * based on the percent of traffic they are receiving.
          +     * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The manualInstanceCount to set. + * @return This builder for chaining. + */ + public Builder setManualInstanceCount(int value) { + + manualInstanceCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. total instance count for the service in manual scaling mode. This
          +     * number of instances is divided among all revisions with specified traffic
          +     * based on the percent of traffic they are receiving.
          +     * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearManualInstanceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + manualInstanceCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java index 993a9f27a140..dab82152a4c0 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java @@ -67,4 +67,35 @@ public interface ServiceScalingOrBuilder * @return The scalingMode. */ com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode(); + + /** + * + * + *
          +   * Optional. total instance count for the service in manual scaling mode. This
          +   * number of instances is divided among all revisions with specified traffic
          +   * based on the percent of traffic they are receiving.
          +   * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the manualInstanceCount field is set. + */ + boolean hasManualInstanceCount(); + /** + * + * + *
          +   * Optional. total instance count for the service in manual scaling mode. This
          +   * number of instances is divided among all revisions with specified traffic
          +   * based on the percent of traffic they are receiving.
          +   * 
          + * + * optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The manualInstanceCount. + */ + int getManualInstanceCount(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java index 7f9881fc5fa9..84601871c696 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -86,31 +86,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stance_count\030\001 \001(\005B\003\340A\001\022\037\n\022max_instance_" + "count\030\002 \001(\005B\003\340A\001\"E\n\013ServiceMesh\0226\n\004mesh\030" + "\001 \001(\tB(\372A%\n#networkservices.googleapis.c" - + "om/Mesh\"\305\001\n\016ServiceScaling\022\037\n\022min_instan" + + "om/Mesh\"\210\002\n\016ServiceScaling\022\037\n\022min_instan" + "ce_count\030\001 \001(\005B\003\340A\001\022J\n\014scaling_mode\030\003 \001(" + "\0162/.google.cloud.run.v2.ServiceScaling.S" - + "calingModeB\003\340A\001\"F\n\013ScalingMode\022\034\n\030SCALIN" - + "G_MODE_UNSPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006M" - + "ANUAL\020\002\"(\n\014NodeSelector\022\030\n\013accelerator\030\001" - + " \001(\tB\003\340A\002*\263\001\n\016IngressTraffic\022\037\n\033INGRESS_" - + "TRAFFIC_UNSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC" - + "_ALL\020\001\022!\n\035INGRESS_TRAFFIC_INTERNAL_ONLY\020" - + "\002\022*\n&INGRESS_TRAFFIC_INTERNAL_LOAD_BALAN" - + "CER\020\003\022\030\n\024INGRESS_TRAFFIC_NONE\020\004*}\n\024Execu" - + "tionEnvironment\022%\n!EXECUTION_ENVIRONMENT" - + "_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRONMENT_" - + "GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN2\020\002*p" - + "\n\035EncryptionKeyRevocationAction\0220\n,ENCRY" - + "PTION_KEY_REVOCATION_ACTION_UNSPECIFIED\020" - + "\000\022\017\n\013PREVENT_NEW\020\001\022\014\n\010SHUTDOWN\020\002B\240\002\n\027com" - + ".google.cloud.run.v2B\023VendorSettingsProt" - + "oP\001Z)cloud.google.com/go/run/apiv2/runpb" - + ";runpb\352Ac\n)binaryauthorization.googleapi" - + "s.com/Policy\022\031projects/{project}/policy\022" - + "\033locations/{location}/policy\352A\\\n#network" - + "services.googleapis.com/Mesh\0225projects/{" - + "project}/locations/{location}/meshes/{me" - + "sh}b\006proto3" + + "calingModeB\003\340A\001\022\'\n\025manual_instance_count" + + "\030\006 \001(\005B\003\340A\001H\000\210\001\001\"F\n\013ScalingMode\022\034\n\030SCALI" + + "NG_MODE_UNSPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006" + + "MANUAL\020\002B\030\n\026_manual_instance_count\"(\n\014No" + + "deSelector\022\030\n\013accelerator\030\001 \001(\tB\003\340A\002*\263\001\n" + + "\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_UNSPE" + + "CIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n\035ING" + + "RESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGRESS_" + + "TRAFFIC_INTERNAL_LOAD_BALANCER\020\003\022\030\n\024INGR" + + "ESS_TRAFFIC_NONE\020\004*}\n\024ExecutionEnvironme" + + "nt\022%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\020" + + "\000\022\036\n\032EXECUTION_ENVIRONMENT_GEN1\020\001\022\036\n\032EXE" + + "CUTION_ENVIRONMENT_GEN2\020\002*p\n\035EncryptionK" + + "eyRevocationAction\0220\n,ENCRYPTION_KEY_REV" + + "OCATION_ACTION_UNSPECIFIED\020\000\022\017\n\013PREVENT_" + + "NEW\020\001\022\014\n\010SHUTDOWN\020\002B\240\002\n\027com.google.cloud" + + ".run.v2B\023VendorSettingsProtoP\001Z)cloud.go" + + "ogle.com/go/run/apiv2/runpb;runpb\352Ac\n)bi" + + "naryauthorization.googleapis.com/Policy\022" + + "\031projects/{project}/policy\022\033locations/{l" + + "ocation}/policy\352A\\\n#networkservices.goog" + + "leapis.com/Mesh\0225projects/{project}/loca" + + "tions/{location}/meshes/{mesh}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -165,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ServiceScaling_descriptor, new java.lang.String[] { - "MinInstanceCount", "ScalingMode", + "MinInstanceCount", "ScalingMode", "ManualInstanceCount", }); internal_static_google_cloud_run_v2_NodeSelector_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto index 8c38ee81a580..c3995a5f606e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto @@ -158,6 +158,12 @@ message ServiceScaling { // Optional. The scaling mode for the service. ScalingMode scaling_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. total instance count for the service in manual scaling mode. This + // number of instances is divided among all revisions with specified traffic + // based on the percent of traffic they are receiving. + optional int32 manual_instance_count = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Hardware constraints configuration. diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 78b507cd1e33..4029aa075cd8 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.53.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 707f450d6d7a..fd4383c1c89e 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.53.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 708360b32232..5b4db4a3fac6 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.23.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.24.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index 8b034554367e..df853238d106 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.55.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index e713c88a2b89..a4bf0001ed55 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.56.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.57.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 33ef47dcb389..97c1f0956739 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.61.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.62.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index ddfcf1599300..5044655675e5 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.21.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.22.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 0bd0272198d6..73ebb5218bb7 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.18.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.19.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/README.md b/java-service-control/README.md index 545bb3b2fc56..0d4e2bd68020 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.53.0' +implementation 'com.google.cloud:google-cloud-service-control:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/README.md b/java-service-management/README.md index 6d67ec11b226..9f337be1bccf 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.51.0 + 3.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.51.0' +implementation 'com.google.cloud:google-cloud-service-management:3.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/README.md b/java-service-usage/README.md index f7dcad3c2316..a0f8853045da 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.53.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index de6df69f86e4..c2bc66688663 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.54.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointProto.java index 88fb31f54542..43f445c4761d 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointProto.java @@ -59,16 +59,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\226\001\352A\222\001\n(servicedirectory.googleapis.com/" + "Endpoint\022fprojects/{project}/locations/{" + "location}/namespaces/{namespace}/service" - + "s/{service}/endpoints/{endpoint}B\334\002\n$com" + + "s/{service}/endpoints/{endpoint}B\331\002\n$com" + ".google.cloud.servicedirectory.v1B\rEndpo" + "intProtoP\001ZPcloud.google.com/go/serviced" + "irectory/apiv1/servicedirectorypb;servic" - + "edirectorypb\370\001\001\252\002 Google.Cloud.ServiceDi" - + "rectory.V1\312\002 Google\\Cloud\\ServiceDirecto" - + "ry\\V1\352\002#Google::Cloud::ServiceDirectory:" - + ":V1\352Aa\n\'servicedirectory.googleapis.com/" - + "Network\0226projects/{project}/locations/gl" - + "obal/networks/{network}b\006proto3" + + "edirectorypb\252\002 Google.Cloud.ServiceDirec" + + "tory.V1\312\002 Google\\Cloud\\ServiceDirectory\\" + + "V1\352\002#Google::Cloud::ServiceDirectory::V1" + + "\352Aa\n\'servicedirectory.googleapis.com/Net" + + "work\0226projects/{project}/locations/globa" + + "l/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceProto.java index 1bdb75112bf5..6e3d217268cb 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceProto.java @@ -65,13 +65,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "namespaces/*/services/*}:resolve:\001*\032S\312A\037" + "servicedirectory.googleapis.com\322A.https:" + "//www.googleapis.com/auth/cloud-platform" - + "B\375\001\n$com.google.cloud.servicedirectory.v" + + "B\372\001\n$com.google.cloud.servicedirectory.v" + "1B\022LookupServiceProtoP\001ZPcloud.google.co" + "m/go/servicedirectory/apiv1/servicedirec" - + "torypb;servicedirectorypb\370\001\001\252\002 Google.Cl" - + "oud.ServiceDirectory.V1\312\002 Google\\Cloud\\S" - + "erviceDirectory\\V1\352\002#Google::Cloud::Serv" - + "iceDirectory::V1b\006proto3" + + "torypb;servicedirectorypb\252\002 Google.Cloud" + + ".ServiceDirectory.V1\312\002 Google\\Cloud\\Serv" + + "iceDirectory\\V1\352\002#Google::Cloud::Service" + + "Directory::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceProto.java index 1509c3c56710..409d3ea8bf4d 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceProto.java @@ -279,14 +279,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ns/*/namespaces/*/services/*}:testIamPer" + "missions:\001*\032S\312A\037servicedirectory.googlea" + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\203\002\n$com.google.cloud.se" + + "h/cloud-platformB\200\002\n$com.google.cloud.se" + "rvicedirectory.v1B\030RegistrationServicePr" + "otoP\001ZPcloud.google.com/go/servicedirect" + "ory/apiv1/servicedirectorypb;servicedire" - + "ctorypb\370\001\001\252\002 Google.Cloud.ServiceDirecto" - + "ry.V1\312\002 Google\\Cloud\\ServiceDirectory\\V1" - + "\352\002#Google::Cloud::ServiceDirectory::V1b\006" - + "proto3" + + "ctorypb\252\002 Google.Cloud.ServiceDirectory." + + "V1\312\002 Google\\Cloud\\ServiceDirectory\\V1\352\002#" + + "Google::Cloud::ServiceDirectory::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceProto.java index c559b57d6b82..b8388e410bcc 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceProto.java @@ -59,13 +59,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t:\0028\001:\177\352A|\n\'servicedirectory.googleapis" + ".com/Service\022Qprojects/{project}/locatio" + "ns/{location}/namespaces/{namespace}/ser" - + "vices/{service}B\367\001\n$com.google.cloud.ser" + + "vices/{service}B\364\001\n$com.google.cloud.ser" + "vicedirectory.v1B\014ServiceProtoP\001ZPcloud." + "google.com/go/servicedirectory/apiv1/ser" - + "vicedirectorypb;servicedirectorypb\370\001\001\252\002 " - + "Google.Cloud.ServiceDirectory.V1\312\002 Googl" - + "e\\Cloud\\ServiceDirectory\\V1\352\002#Google::Cl" - + "oud::ServiceDirectory::V1b\006proto3" + + "vicedirectorypb;servicedirectorypb\252\002 Goo" + + "gle.Cloud.ServiceDirectory.V1\312\002 Google\\C" + + "loud\\ServiceDirectory\\V1\352\002#Google::Cloud" + + "::ServiceDirectory::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/endpoint.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/endpoint.proto index 25c3d37aed85..1d829b4cf3ea 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/endpoint.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/endpoint.proto @@ -19,7 +19,6 @@ package google.cloud.servicedirectory.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/lookup_service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/lookup_service.proto index a67567528170..c8ce416d13f9 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/lookup_service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/lookup_service.proto @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/servicedirectory/v1/service.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/registration_service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/registration_service.proto index a5b1ab447f73..cd1f04c35491 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/registration_service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/registration_service.proto @@ -28,7 +28,6 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/service.proto index c16a24f85c0a..49276a121c1c 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/proto/google/cloud/servicedirectory/v1/service.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/servicedirectory/v1/endpoint.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointProto.java index fee29f116304..3010173d8d18 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointProto.java @@ -63,17 +63,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cedirectory.googleapis.com/Endpoint\022fpro" + "jects/{project}/locations/{location}/nam" + "espaces/{namespace}/services/{service}/e" - + "ndpoints/{endpoint}B\365\002\n)com.google.cloud" + + "ndpoints/{endpoint}B\362\002\n)com.google.cloud" + ".servicedirectory.v1beta1B\rEndpointProto" + "P\001ZUcloud.google.com/go/servicedirectory" + "/apiv1beta1/servicedirectorypb;servicedi" - + "rectorypb\370\001\001\252\002%Google.Cloud.ServiceDirec" - + "tory.V1Beta1\312\002%Google\\Cloud\\ServiceDirec" - + "tory\\V1beta1\352\002(Google::Cloud::ServiceDir" - + "ectory::V1beta1\352Aa\n\'servicedirectory.goo" - + "gleapis.com/Network\0226projects/{project}/" - + "locations/global/networks/{network}b\006pro" - + "to3" + + "rectorypb\252\002%Google.Cloud.ServiceDirector" + + "y.V1Beta1\312\002%Google\\Cloud\\ServiceDirector" + + "y\\V1beta1\352\002(Google::Cloud::ServiceDirect" + + "ory::V1beta1\352Aa\n\'servicedirectory.google" + + "apis.com/Network\0226projects/{project}/loc" + + "ations/global/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceProto.java index bed4d340fd62..2da322bc719f 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceProto.java @@ -65,15 +65,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1/{name=projects/*/locations/*/names" + "paces/*/services/*}:resolve:\001*\032S\312A\037servi" + "cedirectory.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\226\002\n)" + + ".googleapis.com/auth/cloud-platformB\223\002\n)" + "com.google.cloud.servicedirectory.v1beta" + "1B\022LookupServiceProtoP\001ZUcloud.google.co" + "m/go/servicedirectory/apiv1beta1/service" - + "directorypb;servicedirectorypb\370\001\001\252\002%Goog" - + "le.Cloud.ServiceDirectory.V1Beta1\312\002%Goog" - + "le\\Cloud\\ServiceDirectory\\V1beta1\352\002(Goog" - + "le::Cloud::ServiceDirectory::V1beta1b\006pr" - + "oto3" + + "directorypb;servicedirectorypb\252\002%Google." + + "Cloud.ServiceDirectory.V1Beta1\312\002%Google\\" + + "Cloud\\ServiceDirectory\\V1beta1\352\002(Google:" + + ":Cloud::ServiceDirectory::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceProto.java index 64eb4f27d893..1bc965f25996 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceProto.java @@ -59,14 +59,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:n\352A" + "k\n)servicedirectory.googleapis.com/Names" + "pace\022>projects/{project}/locations/{loca" - + "tion}/namespaces/{namespace}B\222\002\n)com.goo" + + "tion}/namespaces/{namespace}B\217\002\n)com.goo" + "gle.cloud.servicedirectory.v1beta1B\016Name" + "spaceProtoP\001ZUcloud.google.com/go/servic" + "edirectory/apiv1beta1/servicedirectorypb" - + ";servicedirectorypb\370\001\001\252\002%Google.Cloud.Se" - + "rviceDirectory.V1Beta1\312\002%Google\\Cloud\\Se" - + "rviceDirectory\\V1beta1\352\002(Google::Cloud::" - + "ServiceDirectory::V1beta1b\006proto3" + + ";servicedirectorypb\252\002%Google.Cloud.Servi" + + "ceDirectory.V1Beta1\312\002%Google\\Cloud\\Servi" + + "ceDirectory\\V1beta1\352\002(Google::Cloud::Ser" + + "viceDirectory::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceProto.java index da4083ad7fd8..def1adca6cc1 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceProto.java @@ -293,15 +293,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ojects/*/locations/*/namespaces/*/worklo" + "ads/*}:testIamPermissions:\001*\032S\312A\037service" + "directory.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\234\002\n)co" + + "oogleapis.com/auth/cloud-platformB\231\002\n)co" + "m.google.cloud.servicedirectory.v1beta1B" + "\030RegistrationServiceProtoP\001ZUcloud.googl" + "e.com/go/servicedirectory/apiv1beta1/ser" - + "vicedirectorypb;servicedirectorypb\370\001\001\252\002%" - + "Google.Cloud.ServiceDirectory.V1Beta1\312\002%" - + "Google\\Cloud\\ServiceDirectory\\V1beta1\352\002(" - + "Google::Cloud::ServiceDirectory::V1beta1" - + "b\006proto3" + + "vicedirectorypb;servicedirectorypb\252\002%Goo" + + "gle.Cloud.ServiceDirectory.V1Beta1\312\002%Goo" + + "gle\\Cloud\\ServiceDirectory\\V1beta1\352\002(Goo" + + "gle::Cloud::ServiceDirectory::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceProto.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceProto.java index 93212bef020a..52801c02c995 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceProto.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceProto.java @@ -63,14 +63,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0028\001:\177\352A|\n\'servicedirectory.googleapis.co" + "m/Service\022Qprojects/{project}/locations/" + "{location}/namespaces/{namespace}/servic" - + "es/{service}B\220\002\n)com.google.cloud.servic" + + "es/{service}B\215\002\n)com.google.cloud.servic" + "edirectory.v1beta1B\014ServiceProtoP\001ZUclou" + "d.google.com/go/servicedirectory/apiv1be" + "ta1/servicedirectorypb;servicedirectoryp" - + "b\370\001\001\252\002%Google.Cloud.ServiceDirectory.V1B" - + "eta1\312\002%Google\\Cloud\\ServiceDirectory\\V1b" - + "eta1\352\002(Google::Cloud::ServiceDirectory::" - + "V1beta1b\006proto3" + + "b\252\002%Google.Cloud.ServiceDirectory.V1Beta" + + "1\312\002%Google\\Cloud\\ServiceDirectory\\V1beta" + + "1\352\002(Google::Cloud::ServiceDirectory::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/endpoint.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/endpoint.proto index f8a24b3ff6ad..9b0d949892ac 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/endpoint.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/endpoint.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/lookup_service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/lookup_service.proto index 448339594edd..88cbd8b7a795 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/lookup_service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/lookup_service.proto @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/servicedirectory/v1beta1/service.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/namespace.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/namespace.proto index 2d3b5315473a..c4048f10abf6 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/namespace.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/namespace.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/registration_service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/registration_service.proto index b80e5172f01e..3d32a4a03c9a 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/registration_service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/registration_service.proto @@ -28,7 +28,6 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/service.proto b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/service.proto index b8268fe325fd..f041f50b559a 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/service.proto +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/proto/google/cloud/servicedirectory/v1beta1/service.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/cloud/servicedirectory/v1beta1/endpoint.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 5aa8eb47072a..1f7817a1a29c 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.20.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.21.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java index 2842c05e2aca..65c3c03e7bbe 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventResourcesProto.java @@ -184,72 +184,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\n\005title\030\002 \001(\tB\003\340A\003\022\030\n\013description\030\003 \001(\t" + "B\003\340A\003\022\024\n\007symptom\030\004 \001(\tB\003\340A\003\022\027\n\nworkaroun" + "d\030\005 \001(\tB\003\340A\003\"!\n\010Location\022\025\n\rlocation_nam" - + "e\030\001 \001(\t\"\037\n\007Product\022\024\n\014product_name\030\001 \001(\t" - + "\"\201\001\n\013EventImpact\0227\n\007product\030\001 \001(\0132&.goog" - + "le.cloud.servicehealth.v1.Product\0229\n\010loc" - + "ation\030\002 \001(\0132\'.google.cloud.servicehealth" - + ".v1.Location\"\224\003\n\022OrganizationImpact\022\024\n\004n" - + "ame\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030\002 \003(\tB*\340A\003\372A" - + "$\n\"servicehealth.googleapis.com/Event\0228\n" - + "\005asset\030\003 \001(\0132$.google.cloud.servicehealt" - + "h.v1.AssetB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003:\273\001\352A\267\001\n/se" - + "rvicehealth.googleapis.com/OrganizationI" - + "mpact\022[organizations/{organization}/loca" - + "tions/{location}/organizationImpacts/{or" - + "ganization_impact}*\023organizationImpacts2" - + "\022organizationImpact\"9\n\005Asset\022\027\n\nasset_na" - + "me\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030\002 \001(\tB\003\340A\003\"\322" - + "\001\n\021ListEventsRequest\022:\n\006parent\030\001 \001(\tB*\340A" - + "\002\372A$\022\"servicehealth.googleapis.com/Event" - + "\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;\n\004view\030\006" - + " \001(\0162(.google.cloud.servicehealth.v1.Eve" - + "ntViewB\003\340A\001\"\207\001\n\022ListEventsResponse\0229\n\006ev" - + "ents\030\001 \003(\0132$.google.cloud.servicehealth." - + "v1.EventB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"K\n\017GetEven" - + "tRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"serviceh" - + "ealth.googleapis.com/Event\"\366\001\n\035ListOrgan" - + "izationEventsRequest\022F\n\006parent\030\001 \001(\tB6\340A" - + "\002\372A0\022.servicehealth.googleapis.com/Organ" - + "izationEvent\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "e\030\001 \001(\t\"+\n\007Product\022\024\n\014product_name\030\001 \001(\t" + + "\022\n\n\002id\030\002 \001(\t\"\201\001\n\013EventImpact\0227\n\007product\030" + + "\001 \001(\0132&.google.cloud.servicehealth.v1.Pr" + + "oduct\0229\n\010location\030\002 \001(\0132\'.google.cloud.s" + + "ervicehealth.v1.Location\"\224\003\n\022Organizatio" + + "nImpact\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022:\n\006events\030" + + "\002 \003(\tB*\340A\003\372A$\n\"servicehealth.googleapis." + + "com/Event\0228\n\005asset\030\003 \001(\0132$.google.cloud." + + "servicehealth.v1.AssetB\003\340A\003\0224\n\013update_ti" + + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003:\273\001\352A\267\001\n/servicehealth.googleapis.com/O" + + "rganizationImpact\022[organizations/{organi" + + "zation}/locations/{location}/organizatio" + + "nImpacts/{organization_impact}*\023organiza" + + "tionImpacts2\022organizationImpact\"9\n\005Asset" + + "\022\027\n\nasset_name\030\001 \001(\tB\003\340A\003\022\027\n\nasset_type\030" + + "\002 \001(\tB\003\340A\003\"\322\001\n\021ListEventsRequest\022:\n\006pare" + + "nt\030\001 \001(\tB*\340A\002\372A$\022\"servicehealth.googleap" + + "is.com/Event\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" - + "A\001\022G\n\004view\030\006 \001(\01624.google.cloud.serviceh" - + "ealth.v1.OrganizationEventViewB\003\340A\001\"\254\001\n\036" - + "ListOrganizationEventsResponse\022R\n\023organi" - + "zation_events\030\001 \003(\01320.google.cloud.servi" - + "cehealth.v1.OrganizationEventB\003\340A\003\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030" - + "\003 \003(\tB\003\340A\003\"c\n\033GetOrganizationEventReques" - + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.servicehealth.g" - + "oogleapis.com/OrganizationEvent\"\257\001\n\036List" - + "OrganizationImpactsRequest\022G\n\006parent\030\001 \001" - + "(\tB7\340A\002\372A1\022/servicehealth.googleapis.com" - + "/OrganizationImpact\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\"\257\001\n\037ListOrganizationImpactsRes" - + "ponse\022T\n\024organization_impacts\030\001 \003(\01321.go" - + "ogle.cloud.servicehealth.v1.Organization" - + "ImpactB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"e\n\034GetOrgani" - + "zationImpactRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" - + "1\n/servicehealth.googleapis.com/Organiza" - + "tionImpact*R\n\tEventView\022\032\n\026EVENT_VIEW_UN" - + "SPECIFIED\020\000\022\024\n\020EVENT_VIEW_BASIC\020\001\022\023\n\017EVE" - + "NT_VIEW_FULL\020\002*\205\001\n\025OrganizationEventView" - + "\022\'\n#ORGANIZATION_EVENT_VIEW_UNSPECIFIED\020" - + "\000\022!\n\035ORGANIZATION_EVENT_VIEW_BASIC\020\001\022 \n\034" - + "ORGANIZATION_EVENT_VIEW_FULL\020\002B\317\002\n!com.g" - + "oogle.cloud.servicehealth.v1B\023EventResou" - + "rcesProtoP\001ZGcloud.google.com/go/service" - + "health/apiv1/servicehealthpb;serviceheal" - + "thpb\252\002\035Google.Cloud.ServiceHealth.V1\312\002\035G" - + "oogle\\Cloud\\ServiceHealth\\V1\352\002 Google::C" - + "loud::ServiceHealth::V1\352Af\n1servicehealt" - + "h.googleapis.com/OrganizationLocation\0221o" - + "rganizations/{organization}/locations/{l" - + "ocation}b\006proto3" + + "A\001\022;\n\004view\030\006 \001(\0162(.google.cloud.serviceh" + + "ealth.v1.EventViewB\003\340A\001\"\207\001\n\022ListEventsRe" + + "sponse\0229\n\006events\030\001 \003(\0132$.google.cloud.se" + + "rvicehealth.v1.EventB\003\340A\003\022\034\n\017next_page_t" + + "oken\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A" + + "\003\"K\n\017GetEventRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" + + "A$\n\"servicehealth.googleapis.com/Event\"\366" + + "\001\n\035ListOrganizationEventsRequest\022F\n\006pare" + + "nt\030\001 \001(\tB6\340A\002\372A0\022.servicehealth.googleap" + + "is.com/OrganizationEvent\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\022G\n\004view\030\006 \001(\01624.google.cl" + + "oud.servicehealth.v1.OrganizationEventVi" + + "ewB\003\340A\001\"\254\001\n\036ListOrganizationEventsRespon" + + "se\022R\n\023organization_events\030\001 \003(\01320.google" + + ".cloud.servicehealth.v1.OrganizationEven" + + "tB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n\013" + + "unreachable\030\003 \003(\tB\003\340A\003\"c\n\033GetOrganizatio" + + "nEventRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.ser" + + "vicehealth.googleapis.com/OrganizationEv" + + "ent\"\257\001\n\036ListOrganizationImpactsRequest\022G" + + "\n\006parent\030\001 \001(\tB7\340A\002\372A1\022/servicehealth.go" + + "ogleapis.com/OrganizationImpact\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\"\257\001\n\037ListOrganizati" + + "onImpactsResponse\022T\n\024organization_impact" + + "s\030\001 \003(\01321.google.cloud.servicehealth.v1." + + "OrganizationImpactB\003\340A\003\022\034\n\017next_page_tok" + + "en\030\002 \001(\tB\003\340A\003\022\030\n\013unreachable\030\003 \003(\tB\003\340A\003\"" + + "e\n\034GetOrganizationImpactRequest\022E\n\004name\030" + + "\001 \001(\tB7\340A\002\372A1\n/servicehealth.googleapis." + + "com/OrganizationImpact*R\n\tEventView\022\032\n\026E" + + "VENT_VIEW_UNSPECIFIED\020\000\022\024\n\020EVENT_VIEW_BA" + + "SIC\020\001\022\023\n\017EVENT_VIEW_FULL\020\002*\205\001\n\025Organizat" + + "ionEventView\022\'\n#ORGANIZATION_EVENT_VIEW_" + + "UNSPECIFIED\020\000\022!\n\035ORGANIZATION_EVENT_VIEW" + + "_BASIC\020\001\022 \n\034ORGANIZATION_EVENT_VIEW_FULL" + + "\020\002B\317\002\n!com.google.cloud.servicehealth.v1" + + "B\023EventResourcesProtoP\001ZGcloud.google.co" + + "m/go/servicehealth/apiv1/servicehealthpb" + + ";servicehealthpb\252\002\035Google.Cloud.ServiceH" + + "ealth.V1\312\002\035Google\\Cloud\\ServiceHealth\\V1" + + "\352\002 Google::Cloud::ServiceHealth::V1\352Af\n1" + + "servicehealth.googleapis.com/Organizatio" + + "nLocation\0221organizations/{organization}/" + + "locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -324,7 +324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_servicehealth_v1_Product_descriptor, new java.lang.String[] { - "ProductName", + "ProductName", "Id", }); internal_static_google_cloud_servicehealth_v1_EventImpact_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java index 03b95318d5cc..a76be5ca7d60 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/Product.java @@ -40,6 +40,7 @@ private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Product() { productName_ = ""; + id_ = ""; } @java.lang.Override @@ -114,6 +115,57 @@ public com.google.protobuf.ByteString getProductNameBytes() { } } + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
          +   * Unique identifier for the product.
          +   * 
          + * + * 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 identifier for the product.
          +   * 
          + * + * 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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -131,6 +183,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } getUnknownFields().writeTo(output); } @@ -143,6 +198,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productName_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -160,6 +218,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.servicehealth.v1.Product) obj; if (!getProductName().equals(other.getProductName())) return false; + if (!getId().equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,6 +232,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRODUCT_NAME_FIELD_NUMBER; hash = (53 * hash) + getProductName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -313,6 +374,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; productName_ = ""; + id_ = ""; return this; } @@ -352,6 +414,9 @@ private void buildPartial0(com.google.cloud.servicehealth.v1.Product result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.productName_ = productName_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } } @java.lang.Override @@ -404,6 +469,11 @@ public Builder mergeFrom(com.google.cloud.servicehealth.v1.Product other) { bitField0_ |= 0x00000001; onChanged(); } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -436,6 +506,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -561,6 +637,112 @@ public Builder setProductNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object id_ = ""; + /** + * + * + *
          +     * Unique identifier for the product.
          +     * 
          + * + * 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 identifier for the product.
          +     * 
          + * + * 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 identifier for the product.
          +     * 
          + * + * 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 identifier for the product.
          +     * 
          + * + * string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Unique identifier for the product.
          +     * 
          + * + * 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; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java index 4070bc0a99bb..1ce89040e55e 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/ProductOrBuilder.java @@ -48,4 +48,29 @@ public interface ProductOrBuilder * @return The bytes for productName. */ com.google.protobuf.ByteString getProductNameBytes(); + + /** + * + * + *
          +   * Unique identifier for the product.
          +   * 
          + * + * string id = 2; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
          +   * Unique identifier for the product.
          +   * 
          + * + * string id = 2; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto index 9bcf816a073c..c2779bd30bed 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/proto/google/cloud/servicehealth/v1/event_resources.proto @@ -387,6 +387,9 @@ message Location { message Product { // Google Cloud product impacted by the event. Example: `"Google Cloud SQL"` string product_name = 1; + + // Unique identifier for the product. + string id = 2; } // Represents the Google Cloud products and locations impacted by the event. diff --git a/java-shell/README.md b/java-shell/README.md index 5fa308174d16..0490985340ae 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.52.0 + 2.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.52.0' +implementation 'com.google.cloud:google-cloud-shell:2.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 7bcba8ef8dab..0b1baee99315 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-css - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.21.0' +implementation 'com.google.shopping:google-shopping-css:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.21.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.22.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java index 3cf415f13ebd..54201a6d7fb8 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java @@ -67,7 +67,7 @@ * * *

          ListAccountLabels - *

          Lists the labels assigned to an account. + *

          Lists the labels owned by an account. * *

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

          *
            @@ -251,7 +251,7 @@ public AccountLabelsServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the labels assigned to an account. + * Lists the labels owned by an account. * *

            Sample code: * @@ -284,7 +284,7 @@ public final ListAccountLabelsPagedResponse listAccountLabels(AccountName parent // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the labels assigned to an account. + * Lists the labels owned by an account. * *

            Sample code: * @@ -315,7 +315,7 @@ public final ListAccountLabelsPagedResponse listAccountLabels(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the labels assigned to an account. + * Lists the labels owned by an account. * *

            Sample code: * @@ -349,7 +349,7 @@ public final ListAccountLabelsPagedResponse listAccountLabels(ListAccountLabelsR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the labels assigned to an account. + * Lists the labels owned by an account. * *

            Sample code: * @@ -383,7 +383,7 @@ public final ListAccountLabelsPagedResponse listAccountLabels(ListAccountLabelsR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the labels assigned to an account. + * Lists the labels owned by an account. * *

            Sample code: * diff --git a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java index d06c7f58297f..9a4a9bf18e69 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java +++ b/java-shopping-css/grpc-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceGrpc.java @@ -279,7 +279,7 @@ public interface AsyncService { * * *

            -     * Lists the labels assigned to an account.
            +     * Lists the labels owned by an account.
                  * 
            */ default void listAccountLabels( @@ -372,7 +372,7 @@ protected AccountLabelsServiceStub build( * * *
            -     * Lists the labels assigned to an account.
            +     * Lists the labels owned by an account.
                  * 
            */ public void listAccountLabels( @@ -458,7 +458,7 @@ protected AccountLabelsServiceBlockingStub build( * * *
            -     * Lists the labels assigned to an account.
            +     * Lists the labels owned by an account.
                  * 
            */ public com.google.shopping.css.v1.ListAccountLabelsResponse listAccountLabels( @@ -531,7 +531,7 @@ protected AccountLabelsServiceFutureStub build( * * *
            -     * Lists the labels assigned to an account.
            +     * Lists the labels owned by an account.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/accounts_labels.proto b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/accounts_labels.proto index 4d21fc3dcdc2..969c301d07ca 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/accounts_labels.proto +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/accounts_labels.proto @@ -35,7 +35,7 @@ service AccountLabelsService { option (google.api.default_host) = "css.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content"; - // Lists the labels assigned to an account. + // Lists the labels owned by an account. rpc ListAccountLabels(ListAccountLabelsRequest) returns (ListAccountLabelsResponse) { option (google.api.http) = { diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index f48a5e59752d..578b8a8d9355 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:0.9.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.9.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 98b4d8ab33c8..03a5198c028d 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:0.12.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.12.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.13.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 0292a555b229..2cb7eb0b1c0a 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:0.9.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.9.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 1389b364b7eb..1aa57d967935 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:0.29.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.29.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.30.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 19c868bb10c8..3af3a382398a 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:0.12.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.12.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.13.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 884aab99a5db..70d69a48b309 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:0.9.0' +implementation 'com.google.shopping:google-shopping-merchant-products:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.9.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java index f82c67f52919..c2a4917362f6 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java @@ -300,7 +300,9 @@ public final UnaryCallable insertProduc * } * * @param name Required. The name of the product input resource to delete. Format: - * accounts/{account}/productInputs/{product} + * accounts/{account}/productInputs/{product} where the last section `product` consists of 4 + * parts: channel~content_language~feed_label~offer_id example for product name is + * "accounts/123/productInputs/online~en~US~sku123" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(ProductInputName name) { @@ -334,7 +336,9 @@ public final void deleteProductInput(ProductInputName name) { * } * * @param name Required. The name of the product input resource to delete. Format: - * accounts/{account}/productInputs/{product} + * accounts/{account}/productInputs/{product} where the last section `product` consists of 4 + * parts: channel~content_language~feed_label~offer_id example for product name is + * "accounts/123/productInputs/online~en~US~sku123" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(String name) { diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java index 47a2c8ff3899..853bb437efca 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java @@ -236,7 +236,9 @@ public ProductsServiceStub getStub() { * } * * @param name Required. The name of the product to retrieve. Format: - * `accounts/{account}/products/{product}` + * `accounts/{account}/products/{product}` where the last section `product` consists of 4 + * parts: channel~content_language~feed_label~offer_id example for product name is + * "accounts/123/products/online~en~US~sku123" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Product getProduct(ProductName name) { @@ -267,7 +269,9 @@ public final Product getProduct(ProductName name) { * } * * @param name Required. The name of the product to retrieve. Format: - * `accounts/{account}/products/{product}` + * `accounts/{account}/products/{product}` where the last section `product` consists of 4 + * parts: channel~content_language~feed_label~offer_id example for product name is + * "accounts/123/products/online~en~US~sku123" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Product getProduct(String name) { diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java index 43d3279d252c..2be90c8a4324 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java @@ -53,7 +53,7 @@ private Attributes() { condition_ = ""; gender_ = ""; googleProductCategory_ = ""; - gtin_ = ""; + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); itemGroupId_ = ""; material_ = ""; mpn_ = ""; @@ -1348,73 +1348,77 @@ public com.google.protobuf.ByteString getGoogleProductCategoryBytes() { public static final int GTIN_FIELD_NUMBER = 26; @SuppressWarnings("serial") - private volatile java.lang.Object gtin_ = ""; + private com.google.protobuf.LazyStringArrayList gtin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return Whether the gtin field is set. + * @return A list containing the gtin. */ - @java.lang.Override - public boolean hasGtin() { - return ((bitField0_ & 0x00080000) != 0); + public com.google.protobuf.ProtocolStringList getGtinList() { + return gtin_; } /** * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The gtin. + * @return The count of gtin. */ - @java.lang.Override - public java.lang.String getGtin() { - java.lang.Object ref = gtin_; - 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(); - gtin_ = s; - return s; - } + public int getGtinCount() { + return gtin_.size(); } /** * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The bytes for gtin. + * @param index The index of the element to return. + * @return The gtin at the given index. */ - @java.lang.Override - public com.google.protobuf.ByteString getGtinBytes() { - java.lang.Object ref = gtin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gtin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.lang.String getGtin(int index) { + return gtin_.get(index); + } + /** + * + * + *
            +   * Global Trade Item Numbers
            +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * item.
            +   * You can provide up to 10 GTINs.
            +   * 
            + * + * repeated string gtin = 26; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. + */ + public com.google.protobuf.ByteString getGtinBytes(int index) { + return gtin_.getByteString(index); } public static final int ITEM_GROUP_ID_FIELD_NUMBER = 27; @@ -1434,7 +1438,7 @@ public com.google.protobuf.ByteString getGtinBytes() { */ @java.lang.Override public boolean hasItemGroupId() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -1500,7 +1504,7 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() { */ @java.lang.Override public boolean hasMaterial() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -1568,7 +1572,7 @@ public com.google.protobuf.ByteString getMaterialBytes() { */ @java.lang.Override public boolean hasMpn() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -1638,7 +1642,7 @@ public com.google.protobuf.ByteString getMpnBytes() { */ @java.lang.Override public boolean hasPattern() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -1702,7 +1706,7 @@ public com.google.protobuf.ByteString getPatternBytes() { */ @java.lang.Override public boolean hasPrice() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -1748,7 +1752,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { */ @java.lang.Override public boolean hasInstallment() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** * @@ -1800,7 +1804,7 @@ public com.google.shopping.merchant.products.v1beta.Installment getInstallment() */ @java.lang.Override public boolean hasSubscriptionCost() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -1853,7 +1857,7 @@ public com.google.shopping.merchant.products.v1beta.SubscriptionCost getSubscrip */ @java.lang.Override public boolean hasLoyaltyPoints() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -2062,7 +2066,7 @@ public com.google.protobuf.ByteString getProductTypesBytes(int index) { */ @java.lang.Override public boolean hasSalePrice() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** * @@ -2109,7 +2113,7 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { */ @java.lang.Override public boolean hasSalePriceEffectiveDate() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -2162,7 +2166,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { */ @java.lang.Override public boolean hasSellOnGoogleQuantity() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** * @@ -2198,7 +2202,7 @@ public long getSellOnGoogleQuantity() { */ @java.lang.Override public boolean hasProductHeight() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** * @@ -2254,7 +2258,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductH */ @java.lang.Override public boolean hasProductLength() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** * @@ -2308,7 +2312,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductL */ @java.lang.Override public boolean hasProductWidth() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** * @@ -2362,7 +2366,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductW */ @java.lang.Override public boolean hasProductWeight() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** * @@ -2573,7 +2577,7 @@ public int getFreeShippingThresholdCount() { */ @java.lang.Override public boolean hasShippingWeight() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** * @@ -2624,7 +2628,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingWeight getShippingWe */ @java.lang.Override public boolean hasShippingLength() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** * @@ -2675,7 +2679,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasShippingWidth() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** * @@ -2726,7 +2730,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasShippingHeight() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** * @@ -2777,7 +2781,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasMaxHandlingTime() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** * @@ -2810,7 +2814,7 @@ public long getMaxHandlingTime() { */ @java.lang.Override public boolean hasMinHandlingTime() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** * @@ -2846,7 +2850,7 @@ public long getMinHandlingTime() { */ @java.lang.Override public boolean hasShippingLabel() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** * @@ -2915,7 +2919,7 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { */ @java.lang.Override public boolean hasTransitTimeLabel() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** * @@ -2986,7 +2990,7 @@ public com.google.protobuf.ByteString getTransitTimeLabelBytes() { */ @java.lang.Override public boolean hasSize() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** * @@ -3058,7 +3062,7 @@ public com.google.protobuf.ByteString getSizeBytes() { */ @java.lang.Override public boolean hasSizeSystem() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** * @@ -3258,8 +3262,7 @@ public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuild * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; @@ -3268,14 +3271,13 @@ public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuild */ @java.lang.Override public boolean hasTaxCategory() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; @@ -3298,8 +3300,7 @@ public java.lang.String getTaxCategory() { * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; @@ -3336,7 +3337,7 @@ public com.google.protobuf.ByteString getTaxCategoryBytes() { */ @java.lang.Override public boolean hasEnergyEfficiencyClass() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** * @@ -3402,7 +3403,7 @@ public com.google.protobuf.ByteString getEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasMinEnergyEfficiencyClass() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** * @@ -3468,7 +3469,7 @@ public com.google.protobuf.ByteString getMinEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasMaxEnergyEfficiencyClass() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** * @@ -3533,7 +3534,7 @@ public com.google.protobuf.ByteString getMaxEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasUnitPricingMeasure() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** * @@ -3589,7 +3590,7 @@ public com.google.shopping.merchant.products.v1beta.UnitPricingMeasure getUnitPr */ @java.lang.Override public boolean hasUnitPricingBaseMeasure() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** * @@ -3645,7 +3646,7 @@ public boolean hasUnitPricingBaseMeasure() { */ @java.lang.Override public boolean hasMultipack() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** * @@ -3681,7 +3682,7 @@ public long getMultipack() { */ @java.lang.Override public boolean hasAdsGrouping() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** * @@ -3814,7 +3815,7 @@ public com.google.protobuf.ByteString getAdsLabelsBytes(int index) { */ @java.lang.Override public boolean hasAdsRedirect() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** * @@ -3880,7 +3881,7 @@ public com.google.protobuf.ByteString getAdsRedirectBytes() { */ @java.lang.Override public boolean hasCostOfGoodsSold() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** * @@ -4076,7 +4077,7 @@ public com.google.protobuf.ByteString getProductHighlightsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsId() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** * @@ -4206,7 +4207,7 @@ public com.google.protobuf.ByteString getDisplayAdsSimilarIdsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsTitle() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** * @@ -4273,7 +4274,7 @@ public com.google.protobuf.ByteString getDisplayAdsTitleBytes() { */ @java.lang.Override public boolean hasDisplayAdsLink() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x01000000) != 0); } /** * @@ -4339,7 +4340,7 @@ public com.google.protobuf.ByteString getDisplayAdsLinkBytes() { */ @java.lang.Override public boolean hasDisplayAdsValue() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** * @@ -4438,7 +4439,7 @@ public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { */ @java.lang.Override public boolean hasPickupMethod() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** * @@ -4504,7 +4505,7 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { */ @java.lang.Override public boolean hasPickupSla() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** * @@ -4570,7 +4571,7 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { */ @java.lang.Override public boolean hasLinkTemplate() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x10000000) != 0); } /** * @@ -4637,7 +4638,7 @@ public com.google.protobuf.ByteString getLinkTemplateBytes() { */ @java.lang.Override public boolean hasMobileLinkTemplate() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** * @@ -4705,7 +4706,7 @@ public com.google.protobuf.ByteString getMobileLinkTemplateBytes() { */ @java.lang.Override public boolean hasCustomLabel0() { - return ((bitField1_ & 0x80000000) != 0); + return ((bitField1_ & 0x40000000) != 0); } /** * @@ -4771,7 +4772,7 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { */ @java.lang.Override public boolean hasCustomLabel1() { - return ((bitField2_ & 0x00000001) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** * @@ -4837,7 +4838,7 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { */ @java.lang.Override public boolean hasCustomLabel2() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000001) != 0); } /** * @@ -4903,7 +4904,7 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { */ @java.lang.Override public boolean hasCustomLabel3() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000002) != 0); } /** * @@ -4969,7 +4970,7 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { */ @java.lang.Override public boolean hasCustomLabel4() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** * @@ -5253,7 +5254,7 @@ public com.google.protobuf.ByteString getShoppingAdsExcludedCountriesBytes(int i */ @java.lang.Override public boolean hasExternalSellerId() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** * @@ -5324,7 +5325,7 @@ public com.google.protobuf.ByteString getExternalSellerIdBytes() { */ @java.lang.Override public boolean hasPause() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000010) != 0); } /** * @@ -5559,7 +5560,7 @@ public int getCloudExportAdditionalPropertiesCount() { */ @java.lang.Override public boolean hasVirtualModelLink() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** * @@ -5729,7 +5730,7 @@ public com.google.shopping.merchant.products.v1beta.Certification getCertificati */ @java.lang.Override public boolean hasStructuredTitle() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000040) != 0); } /** * @@ -5787,7 +5788,7 @@ public com.google.shopping.merchant.products.v1beta.ProductStructuredTitle getSt */ @java.lang.Override public boolean hasStructuredDescription() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** * @@ -5850,7 +5851,7 @@ public boolean hasStructuredDescription() { */ @java.lang.Override public boolean hasAutoPricingMinPrice() { - return ((bitField2_ & 0x00000200) != 0); + return ((bitField2_ & 0x00000100) != 0); } /** * @@ -5909,7 +5910,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -5940,7 +5941,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 12, additionalImageLinks_.getRaw(i)); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, pause_); } for (int i = 0; i < lifestyleImageLinks_.size(); i++) { @@ -5977,76 +5978,76 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, googleProductCategory_); } - if (((bitField0_ & 0x00080000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, gtin_); + for (int i = 0; i < gtin_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, gtin_.getRaw(i)); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, itemGroupId_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, material_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, mpn_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, pattern_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(31, getPrice()); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(32, getInstallment()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(33, getSubscriptionCost()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeMessage(34, getLoyaltyPoints()); } for (int i = 0; i < productTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 35, productTypes_.getRaw(i)); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(36, getSalePrice()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { output.writeMessage(37, getSalePriceEffectiveDate()); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { output.writeInt64(38, sellOnGoogleQuantity_); } for (int i = 0; i < shipping_.size(); i++) { output.writeMessage(39, shipping_.get(i)); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { output.writeMessage(40, getShippingWeight()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { output.writeMessage(41, getShippingLength()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { output.writeMessage(42, getShippingWidth()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { output.writeMessage(43, getShippingHeight()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { output.writeInt64(44, maxHandlingTime_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { output.writeInt64(45, minHandlingTime_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 46, shippingLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 47, transitTimeLabel_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 48, size_); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 49, sizeSystem_); } for (int i = 0; i < sizeTypes_.size(); i++) { @@ -6055,37 +6056,37 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < taxes_.size(); i++) { output.writeMessage(51, taxes_.get(i)); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 52, taxCategory_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { output.writeMessage(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { output.writeMessage(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { output.writeInt64(58, multipack_); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 59, adsGrouping_); } for (int i = 0; i < adsLabels_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 60, adsLabels_.getRaw(i)); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 61, adsRedirect_); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { output.writeMessage(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -6094,38 +6095,38 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < productHighlights_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 64, productHighlights_.getRaw(i)); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 65, displayAdsId_); } for (int i = 0; i < displayAdsSimilarIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 66, displayAdsSimilarIds_.getRaw(i)); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 67, displayAdsTitle_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 68, displayAdsLink_); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { output.writeDouble(69, displayAdsValue_); } for (int i = 0; i < promotionIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 70, promotionIds_.getRaw(i)); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 71, customLabel0_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 72, customLabel1_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 73, customLabel2_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 74, customLabel3_); } - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 75, customLabel4_); } for (int i = 0; i < includedDestinations_.size(); i++) { @@ -6143,46 +6144,46 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(79, getDisclosureDate()); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 80, pickupMethod_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 81, pickupSla_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 82, linkTemplate_); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { output.writeMessage(84, cloudExportAdditionalProperties_.get(i)); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { output.writeMessage(119, getProductHeight()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { output.writeMessage(120, getProductLength()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { output.writeMessage(121, getProductWidth()); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { output.writeMessage(122, getProductWeight()); } for (int i = 0; i < certifications_.size(); i++) { output.writeMessage(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000200) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { output.writeMessage(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 130, virtualModelLink_); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { output.writeMessage(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { output.writeMessage(133, getStructuredDescription()); } for (int i = 0; i < freeShippingThreshold_.size(); i++) { @@ -6200,7 +6201,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -6235,7 +6236,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAdditionalImageLinksList().size(); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, pause_); } { @@ -6276,31 +6277,36 @@ public int getSerializedSize() { if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, googleProductCategory_); } - if (((bitField0_ & 0x00080000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, gtin_); + { + int dataSize = 0; + for (int i = 0; i < gtin_.size(); i++) { + dataSize += computeStringSizeNoTag(gtin_.getRaw(i)); + } + size += dataSize; + size += 2 * getGtinList().size(); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, itemGroupId_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, material_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, mpn_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, pattern_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getPrice()); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getInstallment()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getSubscriptionCost()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getLoyaltyPoints()); } { @@ -6311,47 +6317,47 @@ public int getSerializedSize() { size += dataSize; size += 2 * getProductTypesList().size(); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getSalePrice()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getSalePriceEffectiveDate()); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(38, sellOnGoogleQuantity_); } for (int i = 0; i < shipping_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, shipping_.get(i)); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShippingWeight()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getShippingLength()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getShippingWidth()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getShippingHeight()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(44, maxHandlingTime_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(45, minHandlingTime_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(46, shippingLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, transitTimeLabel_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(48, size_); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(49, sizeSystem_); } { @@ -6365,31 +6371,31 @@ public int getSerializedSize() { for (int i = 0; i < taxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(51, taxes_.get(i)); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, taxCategory_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(58, multipack_); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(59, adsGrouping_); } { @@ -6400,10 +6406,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getAdsLabelsList().size(); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(61, adsRedirect_); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -6417,7 +6423,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getProductHighlightsList().size(); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, displayAdsId_); } { @@ -6428,13 +6434,13 @@ public int getSerializedSize() { size += dataSize; size += 2 * getDisplayAdsSimilarIdsList().size(); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(67, displayAdsTitle_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(68, displayAdsLink_); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(69, displayAdsValue_); } { @@ -6445,19 +6451,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromotionIdsList().size(); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(71, customLabel0_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(72, customLabel1_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(73, customLabel2_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(74, customLabel3_); } - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(75, customLabel4_); } { @@ -6487,16 +6493,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getDisclosureDate()); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(80, pickupMethod_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(81, pickupSla_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(82, linkTemplate_); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { @@ -6504,32 +6510,32 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 84, cloudExportAdditionalProperties_.get(i)); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(119, getProductHeight()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(120, getProductLength()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(121, getProductWidth()); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getProductWeight()); } for (int i = 0; i < certifications_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000200) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(130, virtualModelLink_); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getStructuredDescription()); } @@ -6635,10 +6641,7 @@ public boolean equals(final java.lang.Object obj) { if (hasGoogleProductCategory()) { if (!getGoogleProductCategory().equals(other.getGoogleProductCategory())) return false; } - if (hasGtin() != other.hasGtin()) return false; - if (hasGtin()) { - if (!getGtin().equals(other.getGtin())) return false; - } + if (!getGtinList().equals(other.getGtinList())) return false; if (hasItemGroupId() != other.hasItemGroupId()) return false; if (hasItemGroupId()) { if (!getItemGroupId().equals(other.getItemGroupId())) return false; @@ -6966,9 +6969,9 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_PRODUCT_CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getGoogleProductCategory().hashCode(); } - if (hasGtin()) { + if (getGtinCount() > 0) { hash = (37 * hash) + GTIN_FIELD_NUMBER; - hash = (53 * hash) + getGtin().hashCode(); + hash = (53 * hash) + getGtinList().hashCode(); } if (hasItemGroupId()) { hash = (37 * hash) + ITEM_GROUP_ID_FIELD_NUMBER; @@ -7469,7 +7472,7 @@ public Builder clear() { condition_ = ""; gender_ = ""; googleProductCategory_ = ""; - gtin_ = ""; + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); itemGroupId_ = ""; material_ = ""; mpn_ = ""; @@ -7859,43 +7862,43 @@ private void buildPartial0(com.google.shopping.merchant.products.v1beta.Attribut to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00100000) != 0)) { + gtin_.makeImmutable(); result.gtin_ = gtin_; - to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.itemGroupId_ = itemGroupId_; - to_bitField0_ |= 0x00100000; + to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00400000) != 0)) { result.material_ = material_; - to_bitField0_ |= 0x00200000; + to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.mpn_ = mpn_; - to_bitField0_ |= 0x00400000; + to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.pattern_ = pattern_; - to_bitField0_ |= 0x00800000; + to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); - to_bitField0_ |= 0x01000000; + to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x04000000) != 0)) { result.installment_ = installmentBuilder_ == null ? installment_ : installmentBuilder_.build(); - to_bitField0_ |= 0x02000000; + to_bitField0_ |= 0x01000000; } if (((from_bitField0_ & 0x08000000) != 0)) { result.subscriptionCost_ = subscriptionCostBuilder_ == null ? subscriptionCost_ : subscriptionCostBuilder_.build(); - to_bitField0_ |= 0x04000000; + to_bitField0_ |= 0x02000000; } if (((from_bitField0_ & 0x10000000) != 0)) { result.loyaltyPoints_ = loyaltyPointsBuilder_ == null ? loyaltyPoints_ : loyaltyPointsBuilder_.build(); - to_bitField0_ |= 0x08000000; + to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x40000000) != 0)) { productTypes_.makeImmutable(); @@ -7903,7 +7906,7 @@ private void buildPartial0(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField0_ & 0x80000000) != 0)) { result.salePrice_ = salePriceBuilder_ == null ? salePrice_ : salePriceBuilder_.build(); - to_bitField0_ |= 0x10000000; + to_bitField0_ |= 0x08000000; } result.bitField0_ |= to_bitField0_; } @@ -7916,76 +7919,76 @@ private void buildPartial1(com.google.shopping.merchant.products.v1beta.Attribut salePriceEffectiveDateBuilder_ == null ? salePriceEffectiveDate_ : salePriceEffectiveDateBuilder_.build(); - to_bitField0_ |= 0x20000000; + to_bitField0_ |= 0x10000000; } if (((from_bitField1_ & 0x00000002) != 0)) { result.sellOnGoogleQuantity_ = sellOnGoogleQuantity_; - to_bitField0_ |= 0x40000000; + to_bitField0_ |= 0x20000000; } if (((from_bitField1_ & 0x00000004) != 0)) { result.productHeight_ = productHeightBuilder_ == null ? productHeight_ : productHeightBuilder_.build(); - to_bitField0_ |= 0x80000000; + to_bitField0_ |= 0x40000000; } - int to_bitField1_ = 0; if (((from_bitField1_ & 0x00000008) != 0)) { result.productLength_ = productLengthBuilder_ == null ? productLength_ : productLengthBuilder_.build(); - to_bitField1_ |= 0x00000001; + to_bitField0_ |= 0x80000000; } + int to_bitField1_ = 0; if (((from_bitField1_ & 0x00000010) != 0)) { result.productWidth_ = productWidthBuilder_ == null ? productWidth_ : productWidthBuilder_.build(); - to_bitField1_ |= 0x00000002; + to_bitField1_ |= 0x00000001; } if (((from_bitField1_ & 0x00000020) != 0)) { result.productWeight_ = productWeightBuilder_ == null ? productWeight_ : productWeightBuilder_.build(); - to_bitField1_ |= 0x00000004; + to_bitField1_ |= 0x00000002; } if (((from_bitField1_ & 0x00000100) != 0)) { result.shippingWeight_ = shippingWeightBuilder_ == null ? shippingWeight_ : shippingWeightBuilder_.build(); - to_bitField1_ |= 0x00000008; + to_bitField1_ |= 0x00000004; } if (((from_bitField1_ & 0x00000200) != 0)) { result.shippingLength_ = shippingLengthBuilder_ == null ? shippingLength_ : shippingLengthBuilder_.build(); - to_bitField1_ |= 0x00000010; + to_bitField1_ |= 0x00000008; } if (((from_bitField1_ & 0x00000400) != 0)) { result.shippingWidth_ = shippingWidthBuilder_ == null ? shippingWidth_ : shippingWidthBuilder_.build(); - to_bitField1_ |= 0x00000020; + to_bitField1_ |= 0x00000010; } if (((from_bitField1_ & 0x00000800) != 0)) { result.shippingHeight_ = shippingHeightBuilder_ == null ? shippingHeight_ : shippingHeightBuilder_.build(); - to_bitField1_ |= 0x00000040; + to_bitField1_ |= 0x00000020; } if (((from_bitField1_ & 0x00001000) != 0)) { result.maxHandlingTime_ = maxHandlingTime_; - to_bitField1_ |= 0x00000080; + to_bitField1_ |= 0x00000040; } if (((from_bitField1_ & 0x00002000) != 0)) { result.minHandlingTime_ = minHandlingTime_; - to_bitField1_ |= 0x00000100; + to_bitField1_ |= 0x00000080; } if (((from_bitField1_ & 0x00004000) != 0)) { result.shippingLabel_ = shippingLabel_; - to_bitField1_ |= 0x00000200; + to_bitField1_ |= 0x00000100; } if (((from_bitField1_ & 0x00008000) != 0)) { result.transitTimeLabel_ = transitTimeLabel_; - to_bitField1_ |= 0x00000400; + to_bitField1_ |= 0x00000200; } if (((from_bitField1_ & 0x00010000) != 0)) { result.size_ = size_; - to_bitField1_ |= 0x00000800; + to_bitField1_ |= 0x00000400; } if (((from_bitField1_ & 0x00020000) != 0)) { result.sizeSystem_ = sizeSystem_; - to_bitField1_ |= 0x00001000; + to_bitField1_ |= 0x00000800; } if (((from_bitField1_ & 0x00040000) != 0)) { sizeTypes_.makeImmutable(); @@ -7993,41 +7996,41 @@ private void buildPartial1(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField1_ & 0x00100000) != 0)) { result.taxCategory_ = taxCategory_; - to_bitField1_ |= 0x00002000; + to_bitField1_ |= 0x00001000; } if (((from_bitField1_ & 0x00200000) != 0)) { result.energyEfficiencyClass_ = energyEfficiencyClass_; - to_bitField1_ |= 0x00004000; + to_bitField1_ |= 0x00002000; } if (((from_bitField1_ & 0x00400000) != 0)) { result.minEnergyEfficiencyClass_ = minEnergyEfficiencyClass_; - to_bitField1_ |= 0x00008000; + to_bitField1_ |= 0x00004000; } if (((from_bitField1_ & 0x00800000) != 0)) { result.maxEnergyEfficiencyClass_ = maxEnergyEfficiencyClass_; - to_bitField1_ |= 0x00010000; + to_bitField1_ |= 0x00008000; } if (((from_bitField1_ & 0x01000000) != 0)) { result.unitPricingMeasure_ = unitPricingMeasureBuilder_ == null ? unitPricingMeasure_ : unitPricingMeasureBuilder_.build(); - to_bitField1_ |= 0x00020000; + to_bitField1_ |= 0x00010000; } if (((from_bitField1_ & 0x02000000) != 0)) { result.unitPricingBaseMeasure_ = unitPricingBaseMeasureBuilder_ == null ? unitPricingBaseMeasure_ : unitPricingBaseMeasureBuilder_.build(); - to_bitField1_ |= 0x00040000; + to_bitField1_ |= 0x00020000; } if (((from_bitField1_ & 0x04000000) != 0)) { result.multipack_ = multipack_; - to_bitField1_ |= 0x00080000; + to_bitField1_ |= 0x00040000; } if (((from_bitField1_ & 0x08000000) != 0)) { result.adsGrouping_ = adsGrouping_; - to_bitField1_ |= 0x00100000; + to_bitField1_ |= 0x00080000; } if (((from_bitField1_ & 0x10000000) != 0)) { adsLabels_.makeImmutable(); @@ -8035,12 +8038,12 @@ private void buildPartial1(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField1_ & 0x20000000) != 0)) { result.adsRedirect_ = adsRedirect_; - to_bitField1_ |= 0x00200000; + to_bitField1_ |= 0x00100000; } if (((from_bitField1_ & 0x40000000) != 0)) { result.costOfGoodsSold_ = costOfGoodsSoldBuilder_ == null ? costOfGoodsSold_ : costOfGoodsSoldBuilder_.build(); - to_bitField1_ |= 0x00400000; + to_bitField1_ |= 0x00200000; } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; @@ -8055,7 +8058,7 @@ private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attribut int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000002) != 0)) { result.displayAdsId_ = displayAdsId_; - to_bitField1_ |= 0x00800000; + to_bitField1_ |= 0x00400000; } if (((from_bitField2_ & 0x00000004) != 0)) { displayAdsSimilarIds_.makeImmutable(); @@ -8063,15 +8066,15 @@ private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField2_ & 0x00000008) != 0)) { result.displayAdsTitle_ = displayAdsTitle_; - to_bitField1_ |= 0x01000000; + to_bitField1_ |= 0x00800000; } if (((from_bitField2_ & 0x00000010) != 0)) { result.displayAdsLink_ = displayAdsLink_; - to_bitField1_ |= 0x02000000; + to_bitField1_ |= 0x01000000; } if (((from_bitField2_ & 0x00000020) != 0)) { result.displayAdsValue_ = displayAdsValue_; - to_bitField1_ |= 0x04000000; + to_bitField1_ |= 0x02000000; } if (((from_bitField2_ & 0x00000040) != 0)) { promotionIds_.makeImmutable(); @@ -8079,40 +8082,40 @@ private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField2_ & 0x00000080) != 0)) { result.pickupMethod_ = pickupMethod_; - to_bitField1_ |= 0x08000000; + to_bitField1_ |= 0x04000000; } if (((from_bitField2_ & 0x00000100) != 0)) { result.pickupSla_ = pickupSla_; - to_bitField1_ |= 0x10000000; + to_bitField1_ |= 0x08000000; } if (((from_bitField2_ & 0x00000200) != 0)) { result.linkTemplate_ = linkTemplate_; - to_bitField1_ |= 0x20000000; + to_bitField1_ |= 0x10000000; } if (((from_bitField2_ & 0x00000400) != 0)) { result.mobileLinkTemplate_ = mobileLinkTemplate_; - to_bitField1_ |= 0x40000000; + to_bitField1_ |= 0x20000000; } if (((from_bitField2_ & 0x00000800) != 0)) { result.customLabel0_ = customLabel0_; - to_bitField1_ |= 0x80000000; + to_bitField1_ |= 0x40000000; } - int to_bitField2_ = 0; if (((from_bitField2_ & 0x00001000) != 0)) { result.customLabel1_ = customLabel1_; - to_bitField2_ |= 0x00000001; + to_bitField1_ |= 0x80000000; } + int to_bitField2_ = 0; if (((from_bitField2_ & 0x00002000) != 0)) { result.customLabel2_ = customLabel2_; - to_bitField2_ |= 0x00000002; + to_bitField2_ |= 0x00000001; } if (((from_bitField2_ & 0x00004000) != 0)) { result.customLabel3_ = customLabel3_; - to_bitField2_ |= 0x00000004; + to_bitField2_ |= 0x00000002; } if (((from_bitField2_ & 0x00008000) != 0)) { result.customLabel4_ = customLabel4_; - to_bitField2_ |= 0x00000008; + to_bitField2_ |= 0x00000004; } if (((from_bitField2_ & 0x00010000) != 0)) { includedDestinations_.makeImmutable(); @@ -8128,11 +8131,11 @@ private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField2_ & 0x00080000) != 0)) { result.externalSellerId_ = externalSellerId_; - to_bitField2_ |= 0x00000010; + to_bitField2_ |= 0x00000008; } if (((from_bitField2_ & 0x00100000) != 0)) { result.pause_ = pause_; - to_bitField2_ |= 0x00000020; + to_bitField2_ |= 0x00000010; } if (((from_bitField2_ & 0x00200000) != 0)) { lifestyleImageLinks_.makeImmutable(); @@ -8140,26 +8143,26 @@ private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attribut } if (((from_bitField2_ & 0x00800000) != 0)) { result.virtualModelLink_ = virtualModelLink_; - to_bitField2_ |= 0x00000040; + to_bitField2_ |= 0x00000020; } if (((from_bitField2_ & 0x02000000) != 0)) { result.structuredTitle_ = structuredTitleBuilder_ == null ? structuredTitle_ : structuredTitleBuilder_.build(); - to_bitField2_ |= 0x00000080; + to_bitField2_ |= 0x00000040; } if (((from_bitField2_ & 0x04000000) != 0)) { result.structuredDescription_ = structuredDescriptionBuilder_ == null ? structuredDescription_ : structuredDescriptionBuilder_.build(); - to_bitField2_ |= 0x00000100; + to_bitField2_ |= 0x00000080; } if (((from_bitField2_ & 0x08000000) != 0)) { result.autoPricingMinPrice_ = autoPricingMinPriceBuilder_ == null ? autoPricingMinPrice_ : autoPricingMinPriceBuilder_.build(); - to_bitField2_ |= 0x00000200; + to_bitField2_ |= 0x00000100; } result.bitField1_ |= to_bitField1_; result.bitField2_ |= to_bitField2_; @@ -8304,9 +8307,14 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes bitField0_ |= 0x00080000; onChanged(); } - if (other.hasGtin()) { - gtin_ = other.gtin_; - bitField0_ |= 0x00100000; + if (!other.gtin_.isEmpty()) { + if (gtin_.isEmpty()) { + gtin_ = other.gtin_; + bitField0_ |= 0x00100000; + } else { + ensureGtinIsMutable(); + gtin_.addAll(other.gtin_); + } onChanged(); } if (other.hasItemGroupId()) { @@ -8982,8 +8990,9 @@ public Builder mergeFrom( } // case 202 case 210: { - gtin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + java.lang.String s = input.readStringRequireUtf8(); + ensureGtinIsMutable(); + gtin_.add(s); break; } // case 210 case 218: @@ -12109,90 +12118,133 @@ public Builder setGoogleProductCategoryBytes(com.google.protobuf.ByteString valu return this; } - private java.lang.Object gtin_ = ""; + private com.google.protobuf.LazyStringArrayList gtin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGtinIsMutable() { + if (!gtin_.isModifiable()) { + gtin_ = new com.google.protobuf.LazyStringArrayList(gtin_); + } + bitField0_ |= 0x00100000; + } /** * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return Whether the gtin field is set. + * @return A list containing the gtin. */ - public boolean hasGtin() { - return ((bitField0_ & 0x00100000) != 0); + public com.google.protobuf.ProtocolStringList getGtinList() { + gtin_.makeImmutable(); + return gtin_; } /** * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The gtin. + * @return The count of gtin. */ - public java.lang.String getGtin() { - java.lang.Object ref = gtin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gtin_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public int getGtinCount() { + return gtin_.size(); } /** * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The bytes for gtin. + * @param index The index of the element to return. + * @return The gtin at the given index. */ - public com.google.protobuf.ByteString getGtinBytes() { - java.lang.Object ref = gtin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gtin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.lang.String getGtin(int index) { + return gtin_.get(index); + } + /** + * + * + *
            +     * Global Trade Item Numbers
            +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * item.
            +     * You can provide up to 10 GTINs.
            +     * 
            + * + * repeated string gtin = 26; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. + */ + public com.google.protobuf.ByteString getGtinBytes(int index) { + return gtin_.getByteString(index); } /** * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * + * @param index The index to set the value at. * @param value The gtin to set. * @return This builder for chaining. */ - public Builder setGtin(java.lang.String value) { + public Builder setGtin(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGtinIsMutable(); + gtin_.set(index, value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
            +     * Global Trade Item Numbers
            +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * item.
            +     * You can provide up to 10 GTINs.
            +     * 
            + * + * repeated string gtin = 26; + * + * @param value The gtin to add. + * @return This builder for chaining. + */ + public Builder addGtin(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gtin_ = value; + ensureGtinIsMutable(); + gtin_.add(value); bitField0_ |= 0x00100000; onChanged(); return this; @@ -12201,18 +12253,42 @@ public Builder setGtin(java.lang.String value) { * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; + * + * @param values The gtin to add. + * @return This builder for chaining. + */ + public Builder addAllGtin(java.lang.Iterable values) { + ensureGtinIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
            +     * Global Trade Item Numbers
            +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * item.
            +     * You can provide up to 10 GTINs.
            +     * 
            + * + * repeated string gtin = 26; * * @return This builder for chaining. */ public Builder clearGtin() { - gtin_ = getDefaultInstance().getGtin(); + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); + ; onChanged(); return this; } @@ -12220,22 +12296,24 @@ public Builder clearGtin() { * * *
            -     * Global Trade Item Number
            +     * Global Trade Item Numbers
                  * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                  * item.
            +     * You can provide up to 10 GTINs.
                  * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @param value The bytes for gtin to set. + * @param value The bytes of the gtin to add. * @return This builder for chaining. */ - public Builder setGtinBytes(com.google.protobuf.ByteString value) { + public Builder addGtinBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - gtin_ = value; + ensureGtinIsMutable(); + gtin_.add(value); bitField0_ |= 0x00100000; onChanged(); return this; @@ -18149,8 +18227,7 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder( * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; @@ -18164,8 +18241,7 @@ public boolean hasTaxCategory() { * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; @@ -18187,8 +18263,7 @@ public java.lang.String getTaxCategory() { * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; @@ -18210,8 +18285,7 @@ public com.google.protobuf.ByteString getTaxCategoryBytes() { * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; @@ -18232,8 +18306,7 @@ public Builder setTaxCategory(java.lang.String value) { * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; @@ -18250,8 +18323,7 @@ public Builder clearTaxCategory() { * * *
            -     * The tax category of the product, used to configure detailed tax nexus
            -     * in account-level tax settings.
            +     * The tax category of the product.
                  * 
            * * optional string tax_category = 52; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java index 9e6608a2d532..377199044678 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java @@ -788,44 +788,64 @@ public interface AttributesOrBuilder * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return Whether the gtin field is set. + * @return A list containing the gtin. */ - boolean hasGtin(); + java.util.List getGtinList(); /** * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The gtin. + * @return The count of gtin. */ - java.lang.String getGtin(); + int getGtinCount(); /** * * *
            -   * Global Trade Item Number
            +   * Global Trade Item Numbers
                * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
                * item.
            +   * You can provide up to 10 GTINs.
                * 
            * - * optional string gtin = 26; + * repeated string gtin = 26; * - * @return The bytes for gtin. + * @param index The index of the element to return. + * @return The gtin at the given index. + */ + java.lang.String getGtin(int index); + /** + * + * + *
            +   * Global Trade Item Numbers
            +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * item.
            +   * You can provide up to 10 GTINs.
            +   * 
            + * + * repeated string gtin = 26; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. */ - com.google.protobuf.ByteString getGtinBytes(); + com.google.protobuf.ByteString getGtinBytes(int index); /** * @@ -2095,8 +2115,7 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; @@ -2108,8 +2127,7 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; @@ -2121,8 +2139,7 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * * *
            -   * The tax category of the product, used to configure detailed tax nexus
            -   * in account-level tax settings.
            +   * The tax category of the product.
                * 
            * * optional string tax_category = 52; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java index af4b9c2d0c89..52c34a35389b 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java @@ -74,6 +74,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                * Required. The name of the product input resource to delete.
                * Format: accounts/{account}/productInputs/{product}
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/productInputs/online~en~US~sku123"
                * 
            * * @@ -100,6 +104,10 @@ public java.lang.String getName() { *
                * Required. The name of the product input resource to delete.
                * Format: accounts/{account}/productInputs/{product}
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/productInputs/online~en~US~sku123"
                * 
            * * @@ -559,6 +567,10 @@ public Builder mergeFrom( *
                  * Required. The name of the product input resource to delete.
                  * Format: accounts/{account}/productInputs/{product}
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/productInputs/online~en~US~sku123"
                  * 
            * * @@ -584,6 +596,10 @@ public java.lang.String getName() { *
                  * Required. The name of the product input resource to delete.
                  * Format: accounts/{account}/productInputs/{product}
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/productInputs/online~en~US~sku123"
                  * 
            * * @@ -609,6 +625,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
                  * Required. The name of the product input resource to delete.
                  * Format: accounts/{account}/productInputs/{product}
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/productInputs/online~en~US~sku123"
                  * 
            * * @@ -633,6 +653,10 @@ public Builder setName(java.lang.String value) { *
                  * Required. The name of the product input resource to delete.
                  * Format: accounts/{account}/productInputs/{product}
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/productInputs/online~en~US~sku123"
                  * 
            * * @@ -653,6 +677,10 @@ public Builder clearName() { *
                  * Required. The name of the product input resource to delete.
                  * Format: accounts/{account}/productInputs/{product}
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/productInputs/online~en~US~sku123"
                  * 
            * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java index 8eade20425dd..0c37eb0d8003 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface DeleteProductInputRequestOrBuilder *
                * Required. The name of the product input resource to delete.
                * Format: accounts/{account}/productInputs/{product}
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/productInputs/online~en~US~sku123"
                * 
            * * @@ -45,6 +49,10 @@ public interface DeleteProductInputRequestOrBuilder *
                * Required. The name of the product input resource to delete.
                * Format: accounts/{account}/productInputs/{product}
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/productInputs/online~en~US~sku123"
                * 
            * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequest.java index 036512f7de37..95931444cadc 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequest.java @@ -73,6 +73,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                * Required. The name of the product to retrieve.
                * Format: `accounts/{account}/products/{product}`
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/products/online~en~US~sku123"
                * 
            * * @@ -99,6 +103,10 @@ public java.lang.String getName() { *
                * Required. The name of the product to retrieve.
                * Format: `accounts/{account}/products/{product}`
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/products/online~en~US~sku123"
                * 
            * * @@ -473,6 +481,10 @@ public Builder mergeFrom( *
                  * Required. The name of the product to retrieve.
                  * Format: `accounts/{account}/products/{product}`
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/products/online~en~US~sku123"
                  * 
            * * @@ -498,6 +510,10 @@ public java.lang.String getName() { *
                  * Required. The name of the product to retrieve.
                  * Format: `accounts/{account}/products/{product}`
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/products/online~en~US~sku123"
                  * 
            * * @@ -523,6 +539,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
                  * Required. The name of the product to retrieve.
                  * Format: `accounts/{account}/products/{product}`
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/products/online~en~US~sku123"
                  * 
            * * @@ -547,6 +567,10 @@ public Builder setName(java.lang.String value) { *
                  * Required. The name of the product to retrieve.
                  * Format: `accounts/{account}/products/{product}`
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/products/online~en~US~sku123"
                  * 
            * * @@ -567,6 +591,10 @@ public Builder clearName() { *
                  * Required. The name of the product to retrieve.
                  * Format: `accounts/{account}/products/{product}`
            +     * where the last section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is
            +     * "accounts/123/products/online~en~US~sku123"
                  * 
            * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequestOrBuilder.java index 23e190268db9..cd9d5ad52ff5 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/GetProductRequestOrBuilder.java @@ -30,6 +30,10 @@ public interface GetProductRequestOrBuilder *
                * Required. The name of the product to retrieve.
                * Format: `accounts/{account}/products/{product}`
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/products/online~en~US~sku123"
                * 
            * * @@ -45,6 +49,10 @@ public interface GetProductRequestOrBuilder *
                * Required. The name of the product to retrieve.
                * Format: `accounts/{account}/products/{product}`
            +   * where the last section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is
            +   * "accounts/123/products/online~en~US~sku123"
                * 
            * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java index 707ab6a861ec..d7620c608134 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java @@ -129,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
                * The maximum number of products to return. The service may return fewer than
                * this value.
            -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +   * The maximum value is 250; values above 250 will be coerced to 250.
                * If unspecified, the maximum number of products will be returned.
                * 
            * @@ -722,7 +722,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
                  * The maximum number of products to return. The service may return fewer than
                  * this value.
            -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * The maximum value is 250; values above 250 will be coerced to 250.
                  * If unspecified, the maximum number of products will be returned.
                  * 
            * @@ -740,7 +740,7 @@ public int getPageSize() { *
                  * The maximum number of products to return. The service may return fewer than
                  * this value.
            -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * The maximum value is 250; values above 250 will be coerced to 250.
                  * If unspecified, the maximum number of products will be returned.
                  * 
            * @@ -762,7 +762,7 @@ public Builder setPageSize(int value) { *
                  * The maximum number of products to return. The service may return fewer than
                  * this value.
            -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * The maximum value is 250; values above 250 will be coerced to 250.
                  * If unspecified, the maximum number of products will be returned.
                  * 
            * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java index 322d5ef21c85..6fbd0fdd9827 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java @@ -61,7 +61,7 @@ public interface ListProductsRequestOrBuilder *
                * The maximum number of products to return. The service may return fewer than
                * this value.
            -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +   * The maximum value is 250; values above 250 will be coerced to 250.
                * If unspecified, the maximum number of products will be returned.
                * 
            * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java index 75e08e86c030..aef72d1a0ea7 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java @@ -41,6 +41,7 @@ private LoyaltyProgram(com.google.protobuf.GeneratedMessageV3.Builder builder private LoyaltyProgram() { programLabel_ = ""; tierLabel_ = ""; + shippingLabel_ = ""; } @java.lang.Override @@ -344,6 +345,137 @@ public long getLoyaltyPoints() { return loyaltyPoints_; } + public static final int MEMBER_PRICE_EFFECTIVE_DATE_FIELD_NUMBER = 6; + private com.google.type.Interval memberPriceEffectiveDate_; + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return Whether the memberPriceEffectiveDate field is set. + */ + @java.lang.Override + public boolean hasMemberPriceEffectiveDate() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return The memberPriceEffectiveDate. + */ + @java.lang.Override + public com.google.type.Interval getMemberPriceEffectiveDate() { + return memberPriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveDate_; + } + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getMemberPriceEffectiveDateOrBuilder() { + return memberPriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveDate_; + } + + public static final int SHIPPING_LABEL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object shippingLabel_ = ""; + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + @java.lang.Override + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + @java.lang.Override + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + 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(); + shippingLabel_ = s; + return s; + } + } + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -373,6 +505,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(5, loyaltyPoints_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getMemberPriceEffectiveDate()); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, shippingLabel_); + } getUnknownFields().writeTo(output); } @@ -398,6 +536,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, loyaltyPoints_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMemberPriceEffectiveDate()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, shippingLabel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -434,6 +580,14 @@ public boolean equals(final java.lang.Object obj) { if (hasLoyaltyPoints()) { if (getLoyaltyPoints() != other.getLoyaltyPoints()) return false; } + if (hasMemberPriceEffectiveDate() != other.hasMemberPriceEffectiveDate()) return false; + if (hasMemberPriceEffectiveDate()) { + if (!getMemberPriceEffectiveDate().equals(other.getMemberPriceEffectiveDate())) return false; + } + if (hasShippingLabel() != other.hasShippingLabel()) return false; + if (hasShippingLabel()) { + if (!getShippingLabel().equals(other.getShippingLabel())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,6 +619,14 @@ public int hashCode() { hash = (37 * hash) + LOYALTY_POINTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLoyaltyPoints()); } + if (hasMemberPriceEffectiveDate()) { + hash = (37 * hash) + MEMBER_PRICE_EFFECTIVE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getMemberPriceEffectiveDate().hashCode(); + } + if (hasShippingLabel()) { + hash = (37 * hash) + SHIPPING_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getShippingLabel().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -608,6 +770,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPriceFieldBuilder(); getCashbackForFutureUseFieldBuilder(); + getMemberPriceEffectiveDateFieldBuilder(); } } @@ -628,6 +791,12 @@ public Builder clear() { cashbackForFutureUseBuilder_ = null; } loyaltyPoints_ = 0L; + memberPriceEffectiveDate_ = null; + if (memberPriceEffectiveDateBuilder_ != null) { + memberPriceEffectiveDateBuilder_.dispose(); + memberPriceEffectiveDateBuilder_ = null; + } + shippingLabel_ = ""; return this; } @@ -688,6 +857,17 @@ private void buildPartial0(com.google.shopping.merchant.products.v1beta.LoyaltyP result.loyaltyPoints_ = loyaltyPoints_; to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.memberPriceEffectiveDate_ = + memberPriceEffectiveDateBuilder_ == null + ? memberPriceEffectiveDate_ + : memberPriceEffectiveDateBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.shippingLabel_ = shippingLabel_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -756,6 +936,14 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.LoyaltyPro if (other.hasLoyaltyPoints()) { setLoyaltyPoints(other.getLoyaltyPoints()); } + if (other.hasMemberPriceEffectiveDate()) { + mergeMemberPriceEffectiveDate(other.getMemberPriceEffectiveDate()); + } + if (other.hasShippingLabel()) { + shippingLabel_ = other.shippingLabel_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -813,6 +1001,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 50: + { + input.readMessage( + getMemberPriceEffectiveDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + shippingLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1545,6 +1746,350 @@ public Builder clearLoyaltyPoints() { return this; } + private com.google.type.Interval memberPriceEffectiveDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + memberPriceEffectiveDateBuilder_; + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return Whether the memberPriceEffectiveDate field is set. + */ + public boolean hasMemberPriceEffectiveDate() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return The memberPriceEffectiveDate. + */ + public com.google.type.Interval getMemberPriceEffectiveDate() { + if (memberPriceEffectiveDateBuilder_ == null) { + return memberPriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveDate_; + } else { + return memberPriceEffectiveDateBuilder_.getMessage(); + } + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public Builder setMemberPriceEffectiveDate(com.google.type.Interval value) { + if (memberPriceEffectiveDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberPriceEffectiveDate_ = value; + } else { + memberPriceEffectiveDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public Builder setMemberPriceEffectiveDate(com.google.type.Interval.Builder builderForValue) { + if (memberPriceEffectiveDateBuilder_ == null) { + memberPriceEffectiveDate_ = builderForValue.build(); + } else { + memberPriceEffectiveDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public Builder mergeMemberPriceEffectiveDate(com.google.type.Interval value) { + if (memberPriceEffectiveDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && memberPriceEffectiveDate_ != null + && memberPriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { + getMemberPriceEffectiveDateBuilder().mergeFrom(value); + } else { + memberPriceEffectiveDate_ = value; + } + } else { + memberPriceEffectiveDateBuilder_.mergeFrom(value); + } + if (memberPriceEffectiveDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public Builder clearMemberPriceEffectiveDate() { + bitField0_ = (bitField0_ & ~0x00000020); + memberPriceEffectiveDate_ = null; + if (memberPriceEffectiveDateBuilder_ != null) { + memberPriceEffectiveDateBuilder_.dispose(); + memberPriceEffectiveDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public com.google.type.Interval.Builder getMemberPriceEffectiveDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMemberPriceEffectiveDateFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + public com.google.type.IntervalOrBuilder getMemberPriceEffectiveDateOrBuilder() { + if (memberPriceEffectiveDateBuilder_ != null) { + return memberPriceEffectiveDateBuilder_.getMessageOrBuilder(); + } else { + return memberPriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : memberPriceEffectiveDate_; + } + } + /** + * + * + *
            +     * A date range during which the item is eligible for member price. If not
            +     * specified, the member price is always applicable. The date range is
            +     * represented by a pair of ISO 8601 dates separated by a space,
            +     * comma, or slash.
            +     * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + getMemberPriceEffectiveDateFieldBuilder() { + if (memberPriceEffectiveDateBuilder_ == null) { + memberPriceEffectiveDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getMemberPriceEffectiveDate(), getParentForChildren(), isClean()); + memberPriceEffectiveDate_ = null; + } + return memberPriceEffectiveDateBuilder_; + } + + private java.lang.Object shippingLabel_ = ""; + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @param value The shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shippingLabel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @return This builder for chaining. + */ + public Builder clearShippingLabel() { + shippingLabel_ = getDefaultInstance().getShippingLabel(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
            +     * The label of the shipping benefit. If the field has value, this offer has
            +     * loyalty shipping benefit. If the field value isn't provided, the item is
            +     * not eligible for loyalty shipping for the given loyalty tier.
            +     * 
            + * + * optional string shipping_label = 7; + * + * @param value The bytes for shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shippingLabel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java index a058a6083854..9e95c613fc6b 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java @@ -210,4 +210,91 @@ public interface LoyaltyProgramOrBuilder * @return The loyaltyPoints. */ long getLoyaltyPoints(); + + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return Whether the memberPriceEffectiveDate field is set. + */ + boolean hasMemberPriceEffectiveDate(); + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + * + * @return The memberPriceEffectiveDate. + */ + com.google.type.Interval getMemberPriceEffectiveDate(); + /** + * + * + *
            +   * A date range during which the item is eligible for member price. If not
            +   * specified, the member price is always applicable. The date range is
            +   * represented by a pair of ISO 8601 dates separated by a space,
            +   * comma, or slash.
            +   * 
            + * + * optional .google.type.Interval member_price_effective_date = 6; + */ + com.google.type.IntervalOrBuilder getMemberPriceEffectiveDateOrBuilder(); + + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return Whether the shippingLabel field is set. + */ + boolean hasShippingLabel(); + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return The shippingLabel. + */ + java.lang.String getShippingLabel(); + /** + * + * + *
            +   * The label of the shipping benefit. If the field has value, this offer has
            +   * loyalty shipping benefit. If the field value isn't provided, the item is
            +   * not eligible for loyalty shipping for the given loyalty tier.
            +   * 
            + * + * optional string shipping_label = 7; + * + * @return The bytes for shippingLabel. + */ + com.google.protobuf.ByteString getShippingLabelBytes(); } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java index 8b1d127690a6..bf237a767cd6 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java @@ -24,10 +24,10 @@ * *
              * The processed product, built from multiple [product
            - * inputs][[google.shopping.content.bundles.Products.ProductInput] after
            - * applying rules and supplemental data sources. This processed product matches
            - * what is shown in your Merchant Center account and in Shopping ads and other
            - * surfaces across Google. Each product is built from exactly one primary
            + * inputs][google.shopping.merchant.products.v1main.ProductInput]
            + * after applying rules and supplemental data sources. This processed product
            + * matches what is shown in your Merchant Center account and in Shopping ads and
            + * other surfaces across Google. Each product is built from exactly one primary
              * data source product input, and multiple supplemental data source inputs.
              * After inserting, updating, or deleting a product input, it may take
              * several minutes before the updated processed product can be retrieved.
            @@ -92,7 +92,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
                * The name of the product.
                * Format:
            -   * `"{product.name=accounts/{account}/products/{product}}"`
            +   * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +   * section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is "accounts/123/products/online~en~US~sku123"
                * 
            * * string name = 1; @@ -117,7 +120,10 @@ public java.lang.String getName() { *
                * The name of the product.
                * Format:
            -   * `"{product.name=accounts/{account}/products/{product}}"`
            +   * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +   * section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is "accounts/123/products/online~en~US~sku123"
                * 
            * * string name = 1; @@ -941,10 +947,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                * The processed product, built from multiple [product
            -   * inputs][[google.shopping.content.bundles.Products.ProductInput] after
            -   * applying rules and supplemental data sources. This processed product matches
            -   * what is shown in your Merchant Center account and in Shopping ads and other
            -   * surfaces across Google. Each product is built from exactly one primary
            +   * inputs][google.shopping.merchant.products.v1main.ProductInput]
            +   * after applying rules and supplemental data sources. This processed product
            +   * matches what is shown in your Merchant Center account and in Shopping ads and
            +   * other surfaces across Google. Each product is built from exactly one primary
                * data source product input, and multiple supplemental data source inputs.
                * After inserting, updating, or deleting a product input, it may take
                * several minutes before the updated processed product can be retrieved.
            @@ -1336,7 +1342,10 @@ public Builder mergeFrom(
                  * 
                  * The name of the product.
                  * Format:
            -     * `"{product.name=accounts/{account}/products/{product}}"`
            +     * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +     * section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is "accounts/123/products/online~en~US~sku123"
                  * 
            * * string name = 1; @@ -1360,7 +1369,10 @@ public java.lang.String getName() { *
                  * The name of the product.
                  * Format:
            -     * `"{product.name=accounts/{account}/products/{product}}"`
            +     * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +     * section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is "accounts/123/products/online~en~US~sku123"
                  * 
            * * string name = 1; @@ -1384,7 +1396,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
                  * The name of the product.
                  * Format:
            -     * `"{product.name=accounts/{account}/products/{product}}"`
            +     * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +     * section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is "accounts/123/products/online~en~US~sku123"
                  * 
            * * string name = 1; @@ -1407,7 +1422,10 @@ public Builder setName(java.lang.String value) { *
                  * The name of the product.
                  * Format:
            -     * `"{product.name=accounts/{account}/products/{product}}"`
            +     * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +     * section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is "accounts/123/products/online~en~US~sku123"
                  * 
            * * string name = 1; @@ -1426,7 +1444,10 @@ public Builder clearName() { *
                  * The name of the product.
                  * Format:
            -     * `"{product.name=accounts/{account}/products/{product}}"`
            +     * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +     * section `product` consists of 4 parts:
            +     * channel~content_language~feed_label~offer_id
            +     * example for product name is "accounts/123/products/online~en~US~sku123"
                  * 
            * * string name = 1; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java index 6d61c134c6c1..1cf7567ed339 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java @@ -27,16 +27,16 @@ * processed product that you see in Merchant Center, in Shopping ads, or across * Google surfaces. Product inputs, rules and supplemental data source data are * combined to create the processed - * [product][google.shopping.content.bundles.Products.Product]. + * [Product][google.shopping.merchant.products.v1beta.Product]. * * Required product input attributes to pass data validation checks are * primarily defined in the [Products Data * Specification](https://support.google.com/merchants/answer/188494). * * The following attributes are required: - * [feedLabel][google.shopping.content.bundles.Products.feed_label], - * [contentLanguage][google.shopping.content.bundles.Products.content_language] - * and [offerId][google.shopping.content.bundles.Products.offer_id]. + * [feedLabel][google.shopping.merchant.products.v1beta.Product.feed_label], + * [contentLanguage][google.shopping.merchant.products.v1beta.Product.content_language] + * and [offerId][google.shopping.merchant.products.v1beta.Product.offer_id]. * * After inserting, updating, or deleting a product input, it may take several * minutes before the processed product can be retrieved. @@ -101,6 +101,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" *
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -126,6 +130,10 @@ public java.lang.String getName() { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" *
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -924,16 +932,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * processed product that you see in Merchant Center, in Shopping ads, or across * Google surfaces. Product inputs, rules and supplemental data source data are * combined to create the processed - * [product][google.shopping.content.bundles.Products.Product]. + * [Product][google.shopping.merchant.products.v1beta.Product]. * * Required product input attributes to pass data validation checks are * primarily defined in the [Products Data * Specification](https://support.google.com/merchants/answer/188494). * * The following attributes are required: - * [feedLabel][google.shopping.content.bundles.Products.feed_label], - * [contentLanguage][google.shopping.content.bundles.Products.content_language] - * and [offerId][google.shopping.content.bundles.Products.offer_id]. + * [feedLabel][google.shopping.merchant.products.v1beta.Product.feed_label], + * [contentLanguage][google.shopping.merchant.products.v1beta.Product.content_language] + * and [offerId][google.shopping.merchant.products.v1beta.Product.offer_id]. * * After inserting, updating, or deleting a product input, it may take several * minutes before the processed product can be retrieved. @@ -1305,6 +1313,10 @@ public Builder mergeFrom( * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1329,6 +1341,10 @@ public java.lang.String getName() { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1353,6 +1369,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1376,6 +1396,10 @@ public Builder setName(java.lang.String value) { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1395,6 +1419,10 @@ public Builder clearName() { * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java index 3b111c30fe70..251f41ab513e 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java @@ -31,6 +31,10 @@ public interface ProductInputOrBuilder * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,6 +49,10 @@ public interface ProductInputOrBuilder * Identifier. The name of the product input. * Format: * `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + * where the last section `productinput` consists of 4 parts: + * channel~content_language~feed_label~offer_id + * example for product input name is + * "accounts/123/productInputs/online~en~US~sku123" * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java index 29a26543eb69..ce6b3fa6b54e 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java @@ -30,7 +30,10 @@ public interface ProductOrBuilder *
                * The name of the product.
                * Format:
            -   * `"{product.name=accounts/{account}/products/{product}}"`
            +   * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +   * section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is "accounts/123/products/online~en~US~sku123"
                * 
            * * string name = 1; @@ -44,7 +47,10 @@ public interface ProductOrBuilder *
                * The name of the product.
                * Format:
            -   * `"{product.name=accounts/{account}/products/{product}}"`
            +   * `"{product.name=accounts/{account}/products/{product}}"` where the last
            +   * section `product` consists of 4 parts:
            +   * channel~content_language~feed_label~offer_id
            +   * example for product name is "accounts/123/products/online~en~US~sku123"
                * 
            * * string name = 1; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java index ad949362b8cc..013038d46358 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java @@ -130,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "g.merchant.products.v1beta\032\037google/api/f" + "ield_behavior.proto\032\037google/protobuf/tim" + "estamp.proto\032 google/shopping/type/types" - + ".proto\032\032google/type/interval.proto\"\251\'\n\nA" + + ".proto\032\032google/type/interval.proto\"\233\'\n\nA" + "ttributes\022\036\n\021identifier_exists\030\004 \001(\010H\000\210\001" + "\001\022\026\n\tis_bundle\030\005 \001(\010H\001\210\001\001\022\022\n\005title\030\006 \001(\t" + "H\002\210\001\001\022\030\n\013description\030\007 \001(\tH\003\210\001\001\022\021\n\004link\030" @@ -145,214 +145,217 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\024 \001(\0132\032.google.protobuf.Timestamp\022\022\n\005br" + "and\030\025 \001(\tH\013\210\001\001\022\022\n\005color\030\026 \001(\tH\014\210\001\001\022\026\n\tco" + "ndition\030\027 \001(\tH\r\210\001\001\022\023\n\006gender\030\030 \001(\tH\016\210\001\001\022" - + "$\n\027google_product_category\030\031 \001(\tH\017\210\001\001\022\021\n" - + "\004gtin\030\032 \001(\tH\020\210\001\001\022\032\n\ritem_group_id\030\033 \001(\tH" - + "\021\210\001\001\022\025\n\010material\030\034 \001(\tH\022\210\001\001\022\020\n\003mpn\030\035 \001(\t" - + "H\023\210\001\001\022\024\n\007pattern\030\036 \001(\tH\024\210\001\001\022*\n\005price\030\037 \001" - + "(\0132\033.google.shopping.type.Price\022J\n\013insta" - + "llment\030 \001(\01325.google.shopping.merchant." - + "products.v1beta.Installment\022U\n\021subscript" - + "ion_cost\030! \001(\0132:.google.shopping.merchan" - + "t.products.v1beta.SubscriptionCost\022O\n\016lo" - + "yalty_points\030\" \001(\01327.google.shopping.mer" - + "chant.products.v1beta.LoyaltyPoints\022S\n\020l" - + "oyalty_programs\030\210\001 \003(\01328.google.shopping" - + ".merchant.products.v1beta.LoyaltyProgram" - + "\022\025\n\rproduct_types\030# \003(\t\022/\n\nsale_price\030$ " - + "\001(\0132\033.google.shopping.type.Price\0228\n\031sale" - + "_price_effective_date\030% \001(\0132\025.google.typ" - + "e.Interval\022$\n\027sell_on_google_quantity\030& " - + "\001(\003H\025\210\001\001\022R\n\016product_height\030w \001(\0132:.googl" - + "e.shopping.merchant.products.v1beta.Prod" - + "uctDimension\022R\n\016product_length\030x \001(\0132:.g" - + "oogle.shopping.merchant.products.v1beta." - + "ProductDimension\022Q\n\rproduct_width\030y \001(\0132" - + ":.google.shopping.merchant.products.v1be" - + "ta.ProductDimension\022O\n\016product_weight\030z " - + "\001(\01327.google.shopping.merchant.products." - + "v1beta.ProductWeight\022D\n\010shipping\030\' \003(\01322" - + ".google.shopping.merchant.products.v1bet" - + "a.Shipping\022a\n\027free_shipping_threshold\030\207\001" - + " \003(\0132?.google.shopping.merchant.products" - + ".v1beta.FreeShippingThreshold\022Q\n\017shippin" - + "g_weight\030( \001(\01328.google.shopping.merchan" - + "t.products.v1beta.ShippingWeight\022T\n\017ship" - + "ping_length\030) \001(\0132;.google.shopping.merc" - + "hant.products.v1beta.ShippingDimension\022S" - + "\n\016shipping_width\030* \001(\0132;.google.shopping" - + ".merchant.products.v1beta.ShippingDimens" - + "ion\022T\n\017shipping_height\030+ \001(\0132;.google.sh" - + "opping.merchant.products.v1beta.Shipping" - + "Dimension\022\036\n\021max_handling_time\030, \001(\003H\026\210\001" - + "\001\022\036\n\021min_handling_time\030- \001(\003H\027\210\001\001\022\033\n\016shi" - + "pping_label\030. \001(\tH\030\210\001\001\022\037\n\022transit_time_l" - + "abel\030/ \001(\tH\031\210\001\001\022\021\n\004size\0300 \001(\tH\032\210\001\001\022\030\n\013si" - + "ze_system\0301 \001(\tH\033\210\001\001\022\022\n\nsize_types\0302 \003(\t" - + "\022<\n\005taxes\0303 \003(\0132-.google.shopping.mercha" - + "nt.products.v1beta.Tax\022\031\n\014tax_category\0304" - + " \001(\tH\034\210\001\001\022$\n\027energy_efficiency_class\0305 \001" - + "(\tH\035\210\001\001\022(\n\033min_energy_efficiency_class\0306" - + " \001(\tH\036\210\001\001\022(\n\033max_energy_efficiency_class" - + "\0307 \001(\tH\037\210\001\001\022Z\n\024unit_pricing_measure\0308 \001(" - + "\0132<.google.shopping.merchant.products.v1" - + "beta.UnitPricingMeasure\022c\n\031unit_pricing_" - + "base_measure\0309 \001(\0132@.google.shopping.mer" - + "chant.products.v1beta.UnitPricingBaseMea" - + "sure\022\026\n\tmultipack\030: \001(\003H \210\001\001\022\031\n\014ads_grou" - + "ping\030; \001(\tH!\210\001\001\022\022\n\nads_labels\030< \003(\t\022\031\n\014a" - + "ds_redirect\030= \001(\tH\"\210\001\001\0227\n\022cost_of_goods_" - + "sold\030> \001(\0132\033.google.shopping.type.Price\022" - + "P\n\017product_details\030? \003(\01327.google.shoppi" - + "ng.merchant.products.v1beta.ProductDetai" - + "l\022\032\n\022product_highlights\030@ \003(\t\022\033\n\016display" - + "_ads_id\030A \001(\tH#\210\001\001\022\037\n\027display_ads_simila" - + "r_ids\030B \003(\t\022\036\n\021display_ads_title\030C \001(\tH$" - + "\210\001\001\022\035\n\020display_ads_link\030D \001(\tH%\210\001\001\022\036\n\021di" - + "splay_ads_value\030E \001(\001H&\210\001\001\022\025\n\rpromotion_" - + "ids\030F \003(\t\022\032\n\rpickup_method\030P \001(\tH\'\210\001\001\022\027\n" - + "\npickup_sla\030Q \001(\tH(\210\001\001\022\032\n\rlink_template\030" - + "R \001(\tH)\210\001\001\022!\n\024mobile_link_template\030S \001(\t" - + "H*\210\001\001\022\033\n\016custom_label_0\030G \001(\tH+\210\001\001\022\033\n\016cu" - + "stom_label_1\030H \001(\tH,\210\001\001\022\033\n\016custom_label_" - + "2\030I \001(\tH-\210\001\001\022\033\n\016custom_label_3\030J \001(\tH.\210\001" - + "\001\022\033\n\016custom_label_4\030K \001(\tH/\210\001\001\022\035\n\025includ" - + "ed_destinations\030L \003(\t\022\035\n\025excluded_destin" - + "ations\030M \003(\t\022\'\n\037shopping_ads_excluded_co" - + "untries\030N \003(\t\022\037\n\022external_seller_id\030\001 \001(" - + "\tH0\210\001\001\022\022\n\005pause\030\r \001(\tH1\210\001\001\022\035\n\025lifestyle_" - + "image_links\030\016 \003(\t\022u\n\"cloud_export_additi" - + "onal_properties\030T \003(\0132I.google.shopping." - + "merchant.products.v1beta.CloudExportAddi" - + "tionalProperties\022 \n\022virtual_model_link\030\202" - + "\001 \001(\tH2\210\001\001\022O\n\016certifications\030{ \003(\01327.goo" - + "gle.shopping.merchant.products.v1beta.Ce" - + "rtification\022`\n\020structured_title\030\204\001 \001(\0132@" + + "$\n\027google_product_category\030\031 \001(\tH\017\210\001\001\022\014\n" + + "\004gtin\030\032 \003(\t\022\032\n\ritem_group_id\030\033 \001(\tH\020\210\001\001\022" + + "\025\n\010material\030\034 \001(\tH\021\210\001\001\022\020\n\003mpn\030\035 \001(\tH\022\210\001\001" + + "\022\024\n\007pattern\030\036 \001(\tH\023\210\001\001\022*\n\005price\030\037 \001(\0132\033." + + "google.shopping.type.Price\022J\n\013installmen" + + "t\030 \001(\01325.google.shopping.merchant.produ" + + "cts.v1beta.Installment\022U\n\021subscription_c" + + "ost\030! \001(\0132:.google.shopping.merchant.pro" + + "ducts.v1beta.SubscriptionCost\022O\n\016loyalty" + + "_points\030\" \001(\01327.google.shopping.merchant" + + ".products.v1beta.LoyaltyPoints\022S\n\020loyalt" + + "y_programs\030\210\001 \003(\01328.google.shopping.merc" + + "hant.products.v1beta.LoyaltyProgram\022\025\n\rp" + + "roduct_types\030# \003(\t\022/\n\nsale_price\030$ \001(\0132\033" + + ".google.shopping.type.Price\0228\n\031sale_pric" + + "e_effective_date\030% \001(\0132\025.google.type.Int" + + "erval\022$\n\027sell_on_google_quantity\030& \001(\003H\024" + + "\210\001\001\022R\n\016product_height\030w \001(\0132:.google.sho" + + "pping.merchant.products.v1beta.ProductDi" + + "mension\022R\n\016product_length\030x \001(\0132:.google" + + ".shopping.merchant.products.v1beta.Produ" + + "ctDimension\022Q\n\rproduct_width\030y \001(\0132:.goo" + + "gle.shopping.merchant.products.v1beta.Pr" + + "oductDimension\022O\n\016product_weight\030z \001(\01327" + ".google.shopping.merchant.products.v1bet" - + "a.ProductStructuredTitleH3\210\001\001\022l\n\026structu" - + "red_description\030\205\001 \001(\0132F.google.shopping" - + ".merchant.products.v1beta.ProductStructu" - + "redDescriptionH4\210\001\001\022;\n\026auto_pricing_min_" - + "price\030| \001(\0132\033.google.shopping.type.Price" - + "B\024\n\022_identifier_existsB\014\n\n_is_bundleB\010\n\006" - + "_titleB\016\n\014_descriptionB\007\n\005_linkB\016\n\014_mobi" - + "le_linkB\021\n\017_canonical_linkB\r\n\013_image_lin" - + "kB\010\n\006_adultB\014\n\n_age_groupB\017\n\r_availabili" - + "tyB\010\n\006_brandB\010\n\006_colorB\014\n\n_conditionB\t\n\007" - + "_genderB\032\n\030_google_product_categoryB\007\n\005_" - + "gtinB\020\n\016_item_group_idB\013\n\t_materialB\006\n\004_" - + "mpnB\n\n\010_patternB\032\n\030_sell_on_google_quant" - + "ityB\024\n\022_max_handling_timeB\024\n\022_min_handli" - + "ng_timeB\021\n\017_shipping_labelB\025\n\023_transit_t" - + "ime_labelB\007\n\005_sizeB\016\n\014_size_systemB\017\n\r_t" - + "ax_categoryB\032\n\030_energy_efficiency_classB" - + "\036\n\034_min_energy_efficiency_classB\036\n\034_max_" - + "energy_efficiency_classB\014\n\n_multipackB\017\n" - + "\r_ads_groupingB\017\n\r_ads_redirectB\021\n\017_disp" - + "lay_ads_idB\024\n\022_display_ads_titleB\023\n\021_dis" - + "play_ads_linkB\024\n\022_display_ads_valueB\020\n\016_" - + "pickup_methodB\r\n\013_pickup_slaB\020\n\016_link_te" - + "mplateB\027\n\025_mobile_link_templateB\021\n\017_cust" - + "om_label_0B\021\n\017_custom_label_1B\021\n\017_custom" - + "_label_2B\021\n\017_custom_label_3B\021\n\017_custom_l" - + "abel_4B\025\n\023_external_seller_idB\010\n\006_pauseB" - + "\025\n\023_virtual_model_linkB\023\n\021_structured_ti" - + "tleB\031\n\027_structured_description\"p\n\003Tax\022\014\n" - + "\004rate\030\001 \001(\001\022\017\n\007country\030\002 \001(\t\022\016\n\006region\030\003" - + " \001(\t\022\020\n\010tax_ship\030\004 \001(\010\022\023\n\013location_id\030\005 " - + "\001(\003\022\023\n\013postal_code\030\006 \001(\t\"-\n\016ShippingWeig" - + "ht\022\r\n\005value\030\001 \001(\001\022\014\n\004unit\030\002 \001(\t\"0\n\021Shipp" - + "ingDimension\022\r\n\005value\030\001 \001(\001\022\014\n\004unit\030\002 \001(" - + "\t\"5\n\026UnitPricingBaseMeasure\022\r\n\005value\030\001 \001" - + "(\003\022\014\n\004unit\030\002 \001(\t\"1\n\022UnitPricingMeasure\022\r" - + "\n\005value\030\001 \001(\001\022\014\n\004unit\030\002 \001(\t\"\244\001\n\020Subscrip" - + "tionCost\022L\n\006period\030\001 \001(\0162<.google.shoppi" - + "ng.merchant.products.v1beta.Subscription" - + "Period\022\025\n\rperiod_length\030\002 \001(\003\022+\n\006amount\030" - + "\003 \001(\0132\033.google.shopping.type.Price\"\273\001\n\013I" - + "nstallment\022\016\n\006months\030\001 \001(\003\022+\n\006amount\030\002 \001" - + "(\0132\033.google.shopping.type.Price\0225\n\013downp" - + "ayment\030\003 \001(\0132\033.google.shopping.type.Pric" - + "eH\000\210\001\001\022\030\n\013credit_type\030\004 \001(\tH\001\210\001\001B\016\n\014_dow" - + "npaymentB\016\n\014_credit_type\"B\n\rLoyaltyPoint" - + "s\022\014\n\004name\030\001 \001(\t\022\024\n\014points_value\030\002 \001(\003\022\r\n" - + "\005ratio\030\003 \001(\001\"\260\002\n\016LoyaltyProgram\022\032\n\rprogr" - + "am_label\030\001 \001(\tH\000\210\001\001\022\027\n\ntier_label\030\002 \001(\tH" - + "\001\210\001\001\022/\n\005price\030\003 \001(\0132\033.google.shopping.ty" - + "pe.PriceH\002\210\001\001\022A\n\027cashback_for_future_use" - + "\030\004 \001(\0132\033.google.shopping.type.PriceH\003\210\001\001" - + "\022\033\n\016loyalty_points\030\005 \001(\003H\004\210\001\001B\020\n\016_progra" + + "a.ProductWeight\022D\n\010shipping\030\' \003(\01322.goog" + + "le.shopping.merchant.products.v1beta.Shi" + + "pping\022a\n\027free_shipping_threshold\030\207\001 \003(\0132" + + "?.google.shopping.merchant.products.v1be" + + "ta.FreeShippingThreshold\022Q\n\017shipping_wei" + + "ght\030( \001(\01328.google.shopping.merchant.pro" + + "ducts.v1beta.ShippingWeight\022T\n\017shipping_" + + "length\030) \001(\0132;.google.shopping.merchant." + + "products.v1beta.ShippingDimension\022S\n\016shi" + + "pping_width\030* \001(\0132;.google.shopping.merc" + + "hant.products.v1beta.ShippingDimension\022T" + + "\n\017shipping_height\030+ \001(\0132;.google.shoppin" + + "g.merchant.products.v1beta.ShippingDimen" + + "sion\022\036\n\021max_handling_time\030, \001(\003H\025\210\001\001\022\036\n\021" + + "min_handling_time\030- \001(\003H\026\210\001\001\022\033\n\016shipping" + + "_label\030. \001(\tH\027\210\001\001\022\037\n\022transit_time_label\030" + + "/ \001(\tH\030\210\001\001\022\021\n\004size\0300 \001(\tH\031\210\001\001\022\030\n\013size_sy" + + "stem\0301 \001(\tH\032\210\001\001\022\022\n\nsize_types\0302 \003(\t\022<\n\005t" + + "axes\0303 \003(\0132-.google.shopping.merchant.pr" + + "oducts.v1beta.Tax\022\031\n\014tax_category\0304 \001(\tH" + + "\033\210\001\001\022$\n\027energy_efficiency_class\0305 \001(\tH\034\210" + + "\001\001\022(\n\033min_energy_efficiency_class\0306 \001(\tH" + + "\035\210\001\001\022(\n\033max_energy_efficiency_class\0307 \001(" + + "\tH\036\210\001\001\022Z\n\024unit_pricing_measure\0308 \001(\0132<.g" + + "oogle.shopping.merchant.products.v1beta." + + "UnitPricingMeasure\022c\n\031unit_pricing_base_" + + "measure\0309 \001(\0132@.google.shopping.merchant" + + ".products.v1beta.UnitPricingBaseMeasure\022" + + "\026\n\tmultipack\030: \001(\003H\037\210\001\001\022\031\n\014ads_grouping\030" + + "; \001(\tH \210\001\001\022\022\n\nads_labels\030< \003(\t\022\031\n\014ads_re" + + "direct\030= \001(\tH!\210\001\001\0227\n\022cost_of_goods_sold\030" + + "> \001(\0132\033.google.shopping.type.Price\022P\n\017pr" + + "oduct_details\030? \003(\01327.google.shopping.me" + + "rchant.products.v1beta.ProductDetail\022\032\n\022" + + "product_highlights\030@ \003(\t\022\033\n\016display_ads_" + + "id\030A \001(\tH\"\210\001\001\022\037\n\027display_ads_similar_ids" + + "\030B \003(\t\022\036\n\021display_ads_title\030C \001(\tH#\210\001\001\022\035" + + "\n\020display_ads_link\030D \001(\tH$\210\001\001\022\036\n\021display" + + "_ads_value\030E \001(\001H%\210\001\001\022\025\n\rpromotion_ids\030F" + + " \003(\t\022\032\n\rpickup_method\030P \001(\tH&\210\001\001\022\027\n\npick" + + "up_sla\030Q \001(\tH\'\210\001\001\022\032\n\rlink_template\030R \001(\t" + + "H(\210\001\001\022!\n\024mobile_link_template\030S \001(\tH)\210\001\001" + + "\022\033\n\016custom_label_0\030G \001(\tH*\210\001\001\022\033\n\016custom_" + + "label_1\030H \001(\tH+\210\001\001\022\033\n\016custom_label_2\030I \001" + + "(\tH,\210\001\001\022\033\n\016custom_label_3\030J \001(\tH-\210\001\001\022\033\n\016" + + "custom_label_4\030K \001(\tH.\210\001\001\022\035\n\025included_de" + + "stinations\030L \003(\t\022\035\n\025excluded_destination" + + "s\030M \003(\t\022\'\n\037shopping_ads_excluded_countri" + + "es\030N \003(\t\022\037\n\022external_seller_id\030\001 \001(\tH/\210\001" + + "\001\022\022\n\005pause\030\r \001(\tH0\210\001\001\022\035\n\025lifestyle_image" + + "_links\030\016 \003(\t\022u\n\"cloud_export_additional_" + + "properties\030T \003(\0132I.google.shopping.merch" + + "ant.products.v1beta.CloudExportAdditiona" + + "lProperties\022 \n\022virtual_model_link\030\202\001 \001(\t" + + "H1\210\001\001\022O\n\016certifications\030{ \003(\01327.google.s" + + "hopping.merchant.products.v1beta.Certifi" + + "cation\022`\n\020structured_title\030\204\001 \001(\0132@.goog" + + "le.shopping.merchant.products.v1beta.Pro" + + "ductStructuredTitleH2\210\001\001\022l\n\026structured_d" + + "escription\030\205\001 \001(\0132F.google.shopping.merc" + + "hant.products.v1beta.ProductStructuredDe" + + "scriptionH3\210\001\001\022;\n\026auto_pricing_min_price" + + "\030| \001(\0132\033.google.shopping.type.PriceB\024\n\022_" + + "identifier_existsB\014\n\n_is_bundleB\010\n\006_titl" + + "eB\016\n\014_descriptionB\007\n\005_linkB\016\n\014_mobile_li" + + "nkB\021\n\017_canonical_linkB\r\n\013_image_linkB\010\n\006" + + "_adultB\014\n\n_age_groupB\017\n\r_availabilityB\010\n" + + "\006_brandB\010\n\006_colorB\014\n\n_conditionB\t\n\007_gend" + + "erB\032\n\030_google_product_categoryB\020\n\016_item_" + + "group_idB\013\n\t_materialB\006\n\004_mpnB\n\n\010_patter" + + "nB\032\n\030_sell_on_google_quantityB\024\n\022_max_ha" + + "ndling_timeB\024\n\022_min_handling_timeB\021\n\017_sh" + + "ipping_labelB\025\n\023_transit_time_labelB\007\n\005_" + + "sizeB\016\n\014_size_systemB\017\n\r_tax_categoryB\032\n" + + "\030_energy_efficiency_classB\036\n\034_min_energy" + + "_efficiency_classB\036\n\034_max_energy_efficie" + + "ncy_classB\014\n\n_multipackB\017\n\r_ads_grouping" + + "B\017\n\r_ads_redirectB\021\n\017_display_ads_idB\024\n\022" + + "_display_ads_titleB\023\n\021_display_ads_linkB" + + "\024\n\022_display_ads_valueB\020\n\016_pickup_methodB" + + "\r\n\013_pickup_slaB\020\n\016_link_templateB\027\n\025_mob" + + "ile_link_templateB\021\n\017_custom_label_0B\021\n\017" + + "_custom_label_1B\021\n\017_custom_label_2B\021\n\017_c" + + "ustom_label_3B\021\n\017_custom_label_4B\025\n\023_ext" + + "ernal_seller_idB\010\n\006_pauseB\025\n\023_virtual_mo" + + "del_linkB\023\n\021_structured_titleB\031\n\027_struct" + + "ured_description\"p\n\003Tax\022\014\n\004rate\030\001 \001(\001\022\017\n" + + "\007country\030\002 \001(\t\022\016\n\006region\030\003 \001(\t\022\020\n\010tax_sh" + + "ip\030\004 \001(\010\022\023\n\013location_id\030\005 \001(\003\022\023\n\013postal_" + + "code\030\006 \001(\t\"-\n\016ShippingWeight\022\r\n\005value\030\001 " + + "\001(\001\022\014\n\004unit\030\002 \001(\t\"0\n\021ShippingDimension\022\r" + + "\n\005value\030\001 \001(\001\022\014\n\004unit\030\002 \001(\t\"5\n\026UnitPrici" + + "ngBaseMeasure\022\r\n\005value\030\001 \001(\003\022\014\n\004unit\030\002 \001" + + "(\t\"1\n\022UnitPricingMeasure\022\r\n\005value\030\001 \001(\001\022" + + "\014\n\004unit\030\002 \001(\t\"\244\001\n\020SubscriptionCost\022L\n\006pe" + + "riod\030\001 \001(\0162<.google.shopping.merchant.pr" + + "oducts.v1beta.SubscriptionPeriod\022\025\n\rperi" + + "od_length\030\002 \001(\003\022+\n\006amount\030\003 \001(\0132\033.google" + + ".shopping.type.Price\"\273\001\n\013Installment\022\016\n\006" + + "months\030\001 \001(\003\022+\n\006amount\030\002 \001(\0132\033.google.sh" + + "opping.type.Price\0225\n\013downpayment\030\003 \001(\0132\033" + + ".google.shopping.type.PriceH\000\210\001\001\022\030\n\013cred" + + "it_type\030\004 \001(\tH\001\210\001\001B\016\n\014_downpaymentB\016\n\014_c" + + "redit_type\"B\n\rLoyaltyPoints\022\014\n\004name\030\001 \001(" + + "\t\022\024\n\014points_value\030\002 \001(\003\022\r\n\005ratio\030\003 \001(\001\"\301" + + "\003\n\016LoyaltyProgram\022\032\n\rprogram_label\030\001 \001(\t" + + "H\000\210\001\001\022\027\n\ntier_label\030\002 \001(\tH\001\210\001\001\022/\n\005price\030" + + "\003 \001(\0132\033.google.shopping.type.PriceH\002\210\001\001\022" + + "A\n\027cashback_for_future_use\030\004 \001(\0132\033.googl" + + "e.shopping.type.PriceH\003\210\001\001\022\033\n\016loyalty_po" + + "ints\030\005 \001(\003H\004\210\001\001\022?\n\033member_price_effectiv" + + "e_date\030\006 \001(\0132\025.google.type.IntervalH\005\210\001\001" + + "\022\033\n\016shipping_label\030\007 \001(\tH\006\210\001\001B\020\n\016_progra" + "m_labelB\r\n\013_tier_labelB\010\n\006_priceB\032\n\030_cas" - + "hback_for_future_useB\021\n\017_loyalty_points\"" - + "\203\003\n\010Shipping\022*\n\005price\030\001 \001(\0132\033.google.sho" - + "pping.type.Price\022\017\n\007country\030\002 \001(\t\022\016\n\006reg" - + "ion\030\003 \001(\t\022\017\n\007service\030\004 \001(\t\022\023\n\013location_i" - + "d\030\005 \001(\003\022\033\n\023location_group_name\030\006 \001(\t\022\023\n\013" - + "postal_code\030\007 \001(\t\022\036\n\021min_handling_time\030\010" - + " \001(\003H\000\210\001\001\022\036\n\021max_handling_time\030\t \001(\003H\001\210\001" - + "\001\022\035\n\020min_transit_time\030\n \001(\003H\002\210\001\001\022\035\n\020max_" - + "transit_time\030\013 \001(\003H\003\210\001\001B\024\n\022_min_handling" - + "_timeB\024\n\022_max_handling_timeB\023\n\021_min_tran" - + "sit_timeB\023\n\021_max_transit_time\"\210\001\n\025FreeSh" - + "ippingThreshold\022\024\n\007country\030\001 \001(\tH\000\210\001\001\0229\n" - + "\017price_threshold\030\002 \001(\0132\033.google.shopping" - + ".type.PriceH\001\210\001\001B\n\n\010_countryB\022\n\020_price_t" - + "hreshold\"V\n\rProductDetail\022\024\n\014section_nam" - + "e\030\001 \001(\t\022\026\n\016attribute_name\030\002 \001(\t\022\027\n\017attri" - + "bute_value\030\003 \001(\t\"\373\001\n\rCertification\022$\n\027ce" - + "rtification_authority\030\001 \001(\tH\000\210\001\001\022\037\n\022cert" - + "ification_name\030\002 \001(\tH\001\210\001\001\022\037\n\022certificati" - + "on_code\030\003 \001(\tH\002\210\001\001\022 \n\023certification_valu" - + "e\030\004 \001(\tH\003\210\001\001B\032\n\030_certification_authority" - + "B\025\n\023_certification_nameB\025\n\023_certificatio" - + "n_codeB\026\n\024_certification_value\"t\n\026Produc" - + "tStructuredTitle\022 \n\023digital_source_type\030" - + "\001 \001(\tH\000\210\001\001\022\024\n\007content\030\002 \001(\tH\001\210\001\001B\026\n\024_dig" - + "ital_source_typeB\n\n\010_content\"z\n\034ProductS" - + "tructuredDescription\022 \n\023digital_source_t" - + "ype\030\001 \001(\tH\000\210\001\001\022\024\n\007content\030\002 \001(\tH\001\210\001\001B\026\n\024" - + "_digital_source_typeB\n\n\010_content\"9\n\020Prod" - + "uctDimension\022\022\n\005value\030\001 \001(\001B\003\340A\002\022\021\n\004unit" - + "\030\002 \001(\tB\003\340A\002\"6\n\rProductWeight\022\022\n\005value\030\001 " - + "\001(\001B\003\340A\002\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"\367\007\n\rProductS" - + "tatus\022g\n\024destination_statuses\030\003 \003(\0132I.go" - + "ogle.shopping.merchant.products.v1beta.P" - + "roductStatus.DestinationStatus\022a\n\021item_l" - + "evel_issues\030\004 \003(\0132F.google.shopping.merc" - + "hant.products.v1beta.ProductStatus.ItemL" - + "evelIssue\0221\n\rcreation_date\030\005 \001(\0132\032.googl" - + "e.protobuf.Timestamp\0224\n\020last_update_date" - + "\030\006 \001(\0132\032.google.protobuf.Timestamp\022:\n\026go" - + "ogle_expiration_date\030\007 \001(\0132\032.google.prot" - + "obuf.Timestamp\032\301\001\n\021DestinationStatus\022V\n\021" - + "reporting_context\030\001 \001(\0162;.google.shoppin" - + "g.type.ReportingContext.ReportingContext" - + "Enum\022\032\n\022approved_countries\030\002 \003(\t\022\031\n\021pend" - + "ing_countries\030\003 \003(\t\022\035\n\025disapproved_count" - + "ries\030\004 \003(\t\032\260\003\n\016ItemLevelIssue\022\014\n\004code\030\001 " - + "\001(\t\022a\n\010severity\030\002 \001(\0162O.google.shopping." - + "merchant.products.v1beta.ProductStatus.I" - + "temLevelIssue.Severity\022\022\n\nresolution\030\003 \001" - + "(\t\022\021\n\tattribute\030\004 \001(\t\022V\n\021reporting_conte" - + "xt\030\005 \001(\0162;.google.shopping.type.Reportin" - + "gContext.ReportingContextEnum\022\023\n\013descrip" - + "tion\030\006 \001(\t\022\016\n\006detail\030\007 \001(\t\022\025\n\rdocumentat" - + "ion\030\010 \001(\t\022\034\n\024applicable_countries\030\t \003(\t\"" - + "T\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\020\n" - + "\014NOT_IMPACTED\020\001\022\013\n\007DEMOTED\020\002\022\017\n\013DISAPPRO" - + "VED\020\003\"\245\002\n\037CloudExportAdditionalPropertie" - + "s\022\032\n\rproperty_name\030\001 \001(\tH\000\210\001\001\022\022\n\ntext_va" - + "lue\030\002 \003(\t\022\027\n\nbool_value\030\003 \001(\010H\001\210\001\001\022\021\n\tin" - + "t_value\030\004 \003(\003\022\023\n\013float_value\030\005 \003(\002\022\026\n\tmi" - + "n_value\030\006 \001(\002H\002\210\001\001\022\026\n\tmax_value\030\007 \001(\002H\003\210" - + "\001\001\022\026\n\tunit_code\030\010 \001(\tH\004\210\001\001B\020\n\016_property_" - + "nameB\r\n\013_bool_valueB\014\n\n_min_valueB\014\n\n_ma" - + "x_valueB\014\n\n_unit_code*N\n\022SubscriptionPer" - + "iod\022#\n\037SUBSCRIPTION_PERIOD_UNSPECIFIED\020\000" - + "\022\t\n\005MONTH\020\001\022\010\n\004YEAR\020\002B\225\001\n,com.google.sho" - + "pping.merchant.products.v1betaB\023Products" - + "CommonProtoP\001ZNcloud.google.com/go/shopp" - + "ing/merchant/products/apiv1beta/products" - + "pb;productspbb\006proto3" + + "hback_for_future_useB\021\n\017_loyalty_pointsB" + + "\036\n\034_member_price_effective_dateB\021\n\017_ship" + + "ping_label\"\203\003\n\010Shipping\022*\n\005price\030\001 \001(\0132\033" + + ".google.shopping.type.Price\022\017\n\007country\030\002" + + " \001(\t\022\016\n\006region\030\003 \001(\t\022\017\n\007service\030\004 \001(\t\022\023\n" + + "\013location_id\030\005 \001(\003\022\033\n\023location_group_nam" + + "e\030\006 \001(\t\022\023\n\013postal_code\030\007 \001(\t\022\036\n\021min_hand" + + "ling_time\030\010 \001(\003H\000\210\001\001\022\036\n\021max_handling_tim" + + "e\030\t \001(\003H\001\210\001\001\022\035\n\020min_transit_time\030\n \001(\003H\002" + + "\210\001\001\022\035\n\020max_transit_time\030\013 \001(\003H\003\210\001\001B\024\n\022_m" + + "in_handling_timeB\024\n\022_max_handling_timeB\023" + + "\n\021_min_transit_timeB\023\n\021_max_transit_time" + + "\"\210\001\n\025FreeShippingThreshold\022\024\n\007country\030\001 " + + "\001(\tH\000\210\001\001\0229\n\017price_threshold\030\002 \001(\0132\033.goog" + + "le.shopping.type.PriceH\001\210\001\001B\n\n\010_countryB" + + "\022\n\020_price_threshold\"V\n\rProductDetail\022\024\n\014" + + "section_name\030\001 \001(\t\022\026\n\016attribute_name\030\002 \001" + + "(\t\022\027\n\017attribute_value\030\003 \001(\t\"\373\001\n\rCertific" + + "ation\022$\n\027certification_authority\030\001 \001(\tH\000" + + "\210\001\001\022\037\n\022certification_name\030\002 \001(\tH\001\210\001\001\022\037\n\022" + + "certification_code\030\003 \001(\tH\002\210\001\001\022 \n\023certifi" + + "cation_value\030\004 \001(\tH\003\210\001\001B\032\n\030_certificatio" + + "n_authorityB\025\n\023_certification_nameB\025\n\023_c" + + "ertification_codeB\026\n\024_certification_valu" + + "e\"t\n\026ProductStructuredTitle\022 \n\023digital_s" + + "ource_type\030\001 \001(\tH\000\210\001\001\022\024\n\007content\030\002 \001(\tH\001" + + "\210\001\001B\026\n\024_digital_source_typeB\n\n\010_content\"" + + "z\n\034ProductStructuredDescription\022 \n\023digit" + + "al_source_type\030\001 \001(\tH\000\210\001\001\022\024\n\007content\030\002 \001" + + "(\tH\001\210\001\001B\026\n\024_digital_source_typeB\n\n\010_cont" + + "ent\"9\n\020ProductDimension\022\022\n\005value\030\001 \001(\001B\003" + + "\340A\002\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"6\n\rProductWeight\022" + + "\022\n\005value\030\001 \001(\001B\003\340A\002\022\021\n\004unit\030\002 \001(\tB\003\340A\002\"\367" + + "\007\n\rProductStatus\022g\n\024destination_statuses" + + "\030\003 \003(\0132I.google.shopping.merchant.produc" + + "ts.v1beta.ProductStatus.DestinationStatu" + + "s\022a\n\021item_level_issues\030\004 \003(\0132F.google.sh" + + "opping.merchant.products.v1beta.ProductS" + + "tatus.ItemLevelIssue\0221\n\rcreation_date\030\005 " + + "\001(\0132\032.google.protobuf.Timestamp\0224\n\020last_" + + "update_date\030\006 \001(\0132\032.google.protobuf.Time" + + "stamp\022:\n\026google_expiration_date\030\007 \001(\0132\032." + + "google.protobuf.Timestamp\032\301\001\n\021Destinatio" + + "nStatus\022V\n\021reporting_context\030\001 \001(\0162;.goo" + + "gle.shopping.type.ReportingContext.Repor" + + "tingContextEnum\022\032\n\022approved_countries\030\002 " + + "\003(\t\022\031\n\021pending_countries\030\003 \003(\t\022\035\n\025disapp" + + "roved_countries\030\004 \003(\t\032\260\003\n\016ItemLevelIssue" + + "\022\014\n\004code\030\001 \001(\t\022a\n\010severity\030\002 \001(\0162O.googl" + + "e.shopping.merchant.products.v1beta.Prod" + + "uctStatus.ItemLevelIssue.Severity\022\022\n\nres" + + "olution\030\003 \001(\t\022\021\n\tattribute\030\004 \001(\t\022V\n\021repo" + + "rting_context\030\005 \001(\0162;.google.shopping.ty" + + "pe.ReportingContext.ReportingContextEnum" + + "\022\023\n\013description\030\006 \001(\t\022\016\n\006detail\030\007 \001(\t\022\025\n" + + "\rdocumentation\030\010 \001(\t\022\034\n\024applicable_count" + + "ries\030\t \003(\t\"T\n\010Severity\022\030\n\024SEVERITY_UNSPE" + + "CIFIED\020\000\022\020\n\014NOT_IMPACTED\020\001\022\013\n\007DEMOTED\020\002\022" + + "\017\n\013DISAPPROVED\020\003\"\245\002\n\037CloudExportAddition" + + "alProperties\022\032\n\rproperty_name\030\001 \001(\tH\000\210\001\001" + + "\022\022\n\ntext_value\030\002 \003(\t\022\027\n\nbool_value\030\003 \001(\010" + + "H\001\210\001\001\022\021\n\tint_value\030\004 \003(\003\022\023\n\013float_value\030" + + "\005 \003(\002\022\026\n\tmin_value\030\006 \001(\002H\002\210\001\001\022\026\n\tmax_val" + + "ue\030\007 \001(\002H\003\210\001\001\022\026\n\tunit_code\030\010 \001(\tH\004\210\001\001B\020\n" + + "\016_property_nameB\r\n\013_bool_valueB\014\n\n_min_v" + + "alueB\014\n\n_max_valueB\014\n\n_unit_code*N\n\022Subs" + + "criptionPeriod\022#\n\037SUBSCRIPTION_PERIOD_UN" + + "SPECIFIED\020\000\022\t\n\005MONTH\020\001\022\010\n\004YEAR\020\002B\225\001\n,com" + + ".google.shopping.merchant.products.v1bet" + + "aB\023ProductsCommonProtoP\001ZNcloud.google.c" + + "om/go/shopping/merchant/products/apiv1be" + + "ta/productspb;productspbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -532,7 +535,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_products_v1beta_LoyaltyProgram_descriptor, new java.lang.String[] { - "ProgramLabel", "TierLabel", "Price", "CashbackForFutureUse", "LoyaltyPoints", + "ProgramLabel", + "TierLabel", + "Price", + "CashbackForFutureUse", + "LoyaltyPoints", + "MemberPriceEffectiveDate", + "ShippingLabel", }); internal_static_google_shopping_merchant_products_v1beta_Shipping_descriptor = getDescriptor().getMessageTypes().get(10); diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Shipping.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Shipping.java index f8c501cf4d9d..45d4cb484a5d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Shipping.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Shipping.java @@ -412,11 +412,11 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -435,11 +435,11 @@ public boolean hasMinHandlingTime() { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -461,13 +461,13 @@ public long getMinHandlingTime() { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -486,13 +486,13 @@ public boolean hasMaxHandlingTime() { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -514,11 +514,11 @@ public long getMaxHandlingTime() { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -537,11 +537,11 @@ public boolean hasMinTransitTime() { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -563,13 +563,13 @@ public long getMinTransitTime() { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -588,13 +588,13 @@ public boolean hasMaxTransitTime() { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2036,11 +2036,11 @@ public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2059,11 +2059,11 @@ public boolean hasMinHandlingTime() { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2082,11 +2082,11 @@ public long getMinHandlingTime() { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2109,11 +2109,11 @@ public Builder setMinHandlingTime(long value) { * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2136,13 +2136,13 @@ public Builder clearMinHandlingTime() { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2161,13 +2161,13 @@ public boolean hasMaxHandlingTime() { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2186,13 +2186,13 @@ public long getMaxHandlingTime() { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2215,13 +2215,13 @@ public Builder setMaxHandlingTime(long value) { * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -2244,11 +2244,11 @@ public Builder clearMaxHandlingTime() { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2267,11 +2267,11 @@ public boolean hasMinTransitTime() { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2290,11 +2290,11 @@ public long getMinTransitTime() { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2317,11 +2317,11 @@ public Builder setMinTransitTime(long value) { * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2344,13 +2344,13 @@ public Builder clearMinTransitTime() { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2369,13 +2369,13 @@ public boolean hasMaxTransitTime() { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2394,13 +2394,13 @@ public long getMaxTransitTime() { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -2423,13 +2423,13 @@ public Builder setMaxTransitTime(long value) { * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ShippingOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ShippingOrBuilder.java index 6f2fc9a4641f..b68550078fee 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ShippingOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ShippingOrBuilder.java @@ -220,11 +220,11 @@ public interface ShippingOrBuilder * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -240,11 +240,11 @@ public interface ShippingOrBuilder * Minimum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * can only be present together with - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; * but it is not required if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -261,13 +261,13 @@ public interface ShippingOrBuilder * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -283,13 +283,13 @@ public interface ShippingOrBuilder * Maximum handling time (inclusive) between when the order is received and * shipped in business days. 0 means that the order is shipped on the same * day as it is received if it happens before the cut-off time. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + * [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] * is optional if - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * is present. * * @@ -306,11 +306,11 @@ public interface ShippingOrBuilder * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -326,11 +326,11 @@ public interface ShippingOrBuilder * Minimum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * can only be present together with - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; * but it is not required if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -347,13 +347,13 @@ public interface ShippingOrBuilder * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * @@ -369,13 +369,13 @@ public interface ShippingOrBuilder * Maximum transit time (inclusive) between when the order has shipped and * when it is delivered in business days. 0 means that the order is * delivered on the same day as it ships. Both - * [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + * [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] * and - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * are required if providing shipping speeds. - * [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + * [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] * is optional if - * [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + * [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] * is present. * * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto index 88cbe1d5f1c5..53315dd6bd97 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto @@ -65,16 +65,16 @@ service ProductInputsService { // processed product that you see in Merchant Center, in Shopping ads, or across // Google surfaces. Product inputs, rules and supplemental data source data are // combined to create the processed -// [product][google.shopping.content.bundles.Products.Product]. +// [Product][google.shopping.merchant.products.v1beta.Product]. // // Required product input attributes to pass data validation checks are // primarily defined in the [Products Data // Specification](https://support.google.com/merchants/answer/188494). // // The following attributes are required: -// [feedLabel][google.shopping.content.bundles.Products.feed_label], -// [contentLanguage][google.shopping.content.bundles.Products.content_language] -// and [offerId][google.shopping.content.bundles.Products.offer_id]. +// [feedLabel][google.shopping.merchant.products.v1beta.Product.feed_label], +// [contentLanguage][google.shopping.merchant.products.v1beta.Product.content_language] +// and [offerId][google.shopping.merchant.products.v1beta.Product.offer_id]. // // After inserting, updating, or deleting a product input, it may take several // minutes before the processed product can be retrieved. @@ -93,6 +93,10 @@ message ProductInput { // Identifier. The name of the product input. // Format: // `"{productinput.name=accounts/{account}/productInputs/{productinput}}"` + // where the last section `productinput` consists of 4 parts: + // channel~content_language~feed_label~offer_id + // example for product input name is + // "accounts/123/productInputs/online~en~US~sku123" string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The name of the processed product. @@ -193,6 +197,10 @@ message InsertProductInputRequest { message DeleteProductInputRequest { // Required. The name of the product input resource to delete. // Format: accounts/{account}/productInputs/{product} + // where the last section `product` consists of 4 parts: + // channel~content_language~feed_label~offer_id + // example for product name is + // "accounts/123/productInputs/online~en~US~sku123" string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto index d163bb7a4ec7..755e10ea6754 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto @@ -64,10 +64,10 @@ service ProductsService { } // The processed product, built from multiple [product -// inputs][[google.shopping.content.bundles.Products.ProductInput] after -// applying rules and supplemental data sources. This processed product matches -// what is shown in your Merchant Center account and in Shopping ads and other -// surfaces across Google. Each product is built from exactly one primary +// inputs][google.shopping.merchant.products.v1main.ProductInput] +// after applying rules and supplemental data sources. This processed product +// matches what is shown in your Merchant Center account and in Shopping ads and +// other surfaces across Google. Each product is built from exactly one primary // data source product input, and multiple supplemental data source inputs. // After inserting, updating, or deleting a product input, it may take // several minutes before the updated processed product can be retrieved. @@ -84,7 +84,10 @@ message Product { // The name of the product. // Format: - // `"{product.name=accounts/{account}/products/{product}}"` + // `"{product.name=accounts/{account}/products/{product}}"` where the last + // section `product` consists of 4 parts: + // channel~content_language~feed_label~offer_id + // example for product name is "accounts/123/products/online~en~US~sku123" string name = 1; // Output only. The @@ -148,6 +151,10 @@ message Product { message GetProductRequest { // Required. The name of the product to retrieve. // Format: `accounts/{account}/products/{product}` + // where the last section `product` consists of 4 parts: + // channel~content_language~feed_label~offer_id + // example for product name is + // "accounts/123/products/online~en~US~sku123" string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -169,7 +176,7 @@ message ListProductsRequest { // The maximum number of products to return. The service may return fewer than // this value. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The maximum value is 250; values above 250 will be coerced to 250. // If unspecified, the maximum number of products will be returned. int32 page_size = 2; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto index 4bab62e28a6a..a221ff1f2b19 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto @@ -117,10 +117,11 @@ message Attributes { // categories through the API. optional string google_product_category = 25; - // Global Trade Item Number + // Global Trade Item Numbers // ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the // item. - optional string gtin = 26; + // You can provide up to 10 GTINs. + repeated string gtin = 26; // Shared identifier for all variants of the same product. optional string item_group_id = 27; @@ -235,8 +236,7 @@ message Attributes { // Tax information. repeated Tax taxes = 51; - // The tax category of the product, used to configure detailed tax nexus - // in account-level tax settings. + // The tax category of the product. optional string tax_category = 52; // The energy efficiency class as defined in EU directive 2010/30/EU. @@ -521,6 +521,17 @@ message LoyaltyProgram { // The amount of loyalty points earned on a purchase. optional int64 loyalty_points = 5; + + // A date range during which the item is eligible for member price. If not + // specified, the member price is always applicable. The date range is + // represented by a pair of ISO 8601 dates separated by a space, + // comma, or slash. + optional google.type.Interval member_price_effective_date = 6; + + // The label of the shipping benefit. If the field has value, this offer has + // loyalty shipping benefit. If the field value isn't provided, the item is + // not eligible for loyalty shipping for the given loyalty tier. + optional string shipping_label = 7; } // The Shipping of the product. @@ -558,48 +569,48 @@ message Shipping { // Minimum handling time (inclusive) between when the order is received and // shipped in business days. 0 means that the order is shipped on the same // day as it is received if it happens before the cut-off time. - // [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + // [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] // can only be present together with - // [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]; + // [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]; // but it is not required if - // [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + // [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] // is present. optional int64 min_handling_time = 8; // Maximum handling time (inclusive) between when the order is received and // shipped in business days. 0 means that the order is shipped on the same // day as it is received if it happens before the cut-off time. Both - // [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + // [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] // and - // [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + // [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] // are required if providing shipping speeds. - // [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time] + // [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time] // is optional if - // [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + // [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] // is present. optional int64 max_handling_time = 9; // Minimum transit time (inclusive) between when the order has shipped and // when it is delivered in business days. 0 means that the order is // delivered on the same day as it ships. - // [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + // [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] // can only be present together with - // [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]; + // [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]; // but it is not required if - // [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + // [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] // is present. optional int64 min_transit_time = 10; // Maximum transit time (inclusive) between when the order has shipped and // when it is delivered in business days. 0 means that the order is // delivered on the same day as it ships. Both - // [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time] + // [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time] // and - // [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + // [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] // are required if providing shipping speeds. - // [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time] + // [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time] // is optional if - // [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time] + // [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time] // is present. optional int64 max_transit_time = 11; } diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 42ee757f3c7b..50b9879949d6 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:0.9.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.9.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.10.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index fff769418f5c..f61ccc7e79a6 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:0.16.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.16.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.17.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 0afb36c1614f..039a4b000d54 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:0.29.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.29.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.30.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/README.md b/java-speech/README.md index f441415556fa..ad5c700d6885 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.48.0 + 4.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.48.0' +implementation 'com.google.cloud:google-cloud-speech:4.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.49.0" ``` ## Authentication @@ -230,7 +230,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index d189aa698fe1..cc50b3daf62f 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.53.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index de65321da6c0..45c6aeaa6ed3 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.38.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.39.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/README.md b/java-talent/README.md index 6ccb7d09587e..2a7ce111f3c3 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.54.0' +implementation 'com.google.cloud:google-cloud-talent:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/README.md b/java-tasks/README.md index 239d809b7ea5..5b4e9267179d 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.53.0' +implementation 'com.google.cloud:google-cloud-tasks:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 25eb8085888f..0f3f5c733beb 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.23.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.24.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 0bfa47d98230..fe7e63d7cefe 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.54.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/README.md b/java-tpu/README.md index dbf8e6e4b83c..52b9a15f526c 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.54.0' +implementation 'com.google.cloud:google-cloud-tpu:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/README.md b/java-trace/README.md index 8e369d8df41f..bc6f9d281c23 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.53.0' +implementation 'com.google.cloud:google-cloud-trace:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/README.md b/java-translate/README.md index 3a3830cbc0c5..62a3d2d7c11e 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.53.0' +implementation 'com.google.cloud:google-cloud-translate:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.54.0" ``` ## Authentication @@ -271,7 +271,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index f758a42eeef3..591f135608b0 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.52.0 + 2.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.52.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index ba78012a95e3..cc7bf159570f 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.55.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.56.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index a21b5a40e3ec..f8f0d81ca06b 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.53.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 806d73678c57..c1f8744dd57e 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.52.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/README.md b/java-vision/README.md index 87f4e4740eb6..4ace20508164 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.51.0 + 3.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.51.0' +implementation 'com.google.cloud:google-cloud-vision:3.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/README.md b/java-visionai/README.md index 079534b7119c..1e9762ef7364 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.10.0' +implementation 'com.google.cloud:google-cloud-visionai:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.11.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index fe17482f45ee..4b652cbd8e54 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.53.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index ebb2392519e6..ebfd26821409 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.47.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.48.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 7a292e8adfaf..1b30f3cf06d4 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.54.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 23b131d01e36..80be0dac3673 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.52.0 + 2.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.52.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.53.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index dfff19b1d3ec..be5786ca4120 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.53.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index c76957b4341a..83e434c8d8cb 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.53.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/README.md b/java-workflows/README.md index 5f83651bf50c..96cba9e21cd6 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.53.0' +implementation 'com.google.cloud:google-cloud-workflows:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.54.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 774357863bcb..3297910e2121 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.17.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/README.md b/java-workstations/README.md index 581b8bdab2b4..56943ce10953 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.41.0' +implementation 'com.google.cloud:google-cloud-workstations:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.42.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles